autotool.patch 3.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046820478204882049820508205182052820538205482055820568205782058820598206082061820628206382064820658206682067820688206982070820718207282073820748207582076820778207882079820808208182082820838208482085820868208782088820898209082091820928209382094820958209682097820988209982100821018210282103821048210582106821078210882109821108211182112821138211482115821168211782118821198212082121821228212382124821258212682127821288212982130821318213282133821348213582136821378213882139821408214182142821438214482145821468214782148821498215082151821528215382154821558215682157821588215982160821618216282163821648216582166821678216882169821708217182172821738217482175821768217782178821798218082181821828218382184821858218682187821888218982190821918219282193821948219582196821978219882199822008220182202822038220482205822068220782208822098221082211822128221382214822158221682217822188221982220822218222282223822248222582226822278222882229822308223182232822338223482235822368223782238822398224082241822428224382244822458224682247822488224982250822518225282253822548225582256822578225882259822608226182262822638226482265822668226782268822698227082271822728227382274822758227682277822788227982280822818228282283822848228582286822878228882289822908229182292822938229482295822968229782298822998230082301823028230382304823058230682307823088230982310823118231282313823148231582316823178231882319823208232182322823238232482325823268232782328823298233082331823328233382334823358233682337823388233982340823418234282343823448234582346823478234882349823508235182352823538235482355823568235782358823598236082361823628236382364823658236682367823688236982370823718237282373823748237582376823778237882379823808238182382823838238482385823868238782388823898239082391823928239382394823958239682397823988239982400824018240282403824048240582406824078240882409824108241182412824138241482415824168241782418824198242082421824228242382424824258242682427824288242982430824318243282433824348243582436824378243882439824408244182442824438244482445824468244782448824498245082451824528245382454824558245682457824588245982460824618246282463824648246582466824678246882469824708247182472824738247482475824768247782478824798248082481824828248382484824858248682487824888248982490824918249282493824948249582496824978249882499825008250182502825038250482505825068250782508825098251082511825128251382514825158251682517825188251982520825218252282523825248252582526825278252882529825308253182532825338253482535825368253782538825398254082541825428254382544825458254682547825488254982550825518255282553825548255582556825578255882559825608256182562825638256482565825668256782568825698257082571825728257382574825758257682577825788257982580825818258282583825848258582586825878258882589825908259182592825938259482595825968259782598825998260082601826028260382604826058260682607826088260982610826118261282613826148261582616826178261882619826208262182622826238262482625826268262782628826298263082631826328263382634826358263682637826388263982640826418264282643826448264582646826478264882649826508265182652826538265482655826568265782658826598266082661826628266382664826658266682667826688266982670826718267282673826748267582676826778267882679826808268182682826838268482685826868268782688826898269082691826928269382694826958269682697826988269982700827018270282703827048270582706827078270882709827108271182712827138271482715827168271782718827198272082721827228272382724827258272682727827288272982730827318273282733827348273582736827378273882739827408274182742827438274482745827468274782748827498275082751827528275382754827558275682757827588275982760827618276282763827648276582766827678276882769827708277182772827738277482775827768277782778827798278082781827828278382784827858278682787827888278982790827918279282793827948279582796827978279882799828008280182802828038280482805828068280782808828098281082811828128281382814828158281682817828188281982820828218282282823828248282582826828278282882829828308283182832828338283482835828368283782838828398284082841828428284382844828458284682847828488284982850828518285282853828548285582856828578285882859828608286182862828638286482865828668286782868828698287082871828728287382874828758287682877828788287982880828818288282883828848288582886828878288882889828908289182892828938289482895828968289782898828998290082901829028290382904829058290682907829088290982910829118291282913829148291582916829178291882919829208292182922829238292482925829268292782928829298293082931829328293382934829358293682937829388293982940829418294282943829448294582946829478294882949829508295182952829538295482955829568295782958829598296082961829628296382964829658296682967829688296982970829718297282973829748297582976829778297882979829808298182982829838298482985829868298782988829898299082991829928299382994829958299682997829988299983000830018300283003830048300583006830078300883009830108301183012830138301483015830168301783018830198302083021830228302383024830258302683027830288302983030830318303283033830348303583036830378303883039830408304183042830438304483045830468304783048830498305083051830528305383054830558305683057830588305983060830618306283063830648306583066830678306883069830708307183072830738307483075830768307783078830798308083081830828308383084830858308683087830888308983090830918309283093830948309583096830978309883099831008310183102831038310483105831068310783108831098311083111831128311383114831158311683117831188311983120831218312283123831248312583126831278312883129831308313183132831338313483135831368313783138831398314083141831428314383144831458314683147831488314983150831518315283153831548315583156831578315883159831608316183162831638316483165831668316783168831698317083171831728317383174831758317683177831788317983180831818318283183831848318583186831878318883189831908319183192831938319483195831968319783198831998320083201832028320383204832058320683207832088320983210832118321283213832148321583216832178321883219832208322183222832238322483225832268322783228832298323083231832328323383234832358323683237832388323983240832418324283243832448324583246832478324883249832508325183252832538325483255832568325783258832598326083261832628326383264832658326683267832688326983270832718327283273832748327583276832778327883279832808328183282832838328483285832868328783288832898329083291832928329383294832958329683297832988329983300833018330283303833048330583306833078330883309833108331183312833138331483315833168331783318833198332083321833228332383324833258332683327833288332983330833318333283333833348333583336833378333883339833408334183342833438334483345833468334783348833498335083351833528335383354833558335683357833588335983360833618336283363833648336583366833678336883369833708337183372833738337483375833768337783378833798338083381833828338383384833858338683387833888338983390833918339283393833948339583396833978339883399834008340183402834038340483405834068340783408834098341083411834128341383414834158341683417834188341983420834218342283423834248342583426834278342883429834308343183432834338343483435834368343783438834398344083441834428344383444834458344683447834488344983450834518345283453834548345583456834578345883459834608346183462834638346483465834668346783468834698347083471834728347383474834758347683477834788347983480834818348283483834848348583486834878348883489834908349183492834938349483495834968349783498834998350083501835028350383504835058350683507835088350983510835118351283513835148351583516835178351883519835208352183522835238352483525835268352783528835298353083531835328353383534835358353683537835388353983540835418354283543835448354583546835478354883549835508355183552835538355483555835568355783558835598356083561835628356383564835658356683567835688356983570835718357283573835748357583576835778357883579835808358183582835838358483585835868358783588835898359083591835928359383594835958359683597835988359983600836018360283603836048360583606836078360883609836108361183612836138361483615836168361783618836198362083621836228362383624836258362683627836288362983630836318363283633836348363583636836378363883639836408364183642836438364483645836468364783648836498365083651836528365383654836558365683657836588365983660836618366283663836648366583666836678366883669836708367183672836738367483675836768367783678836798368083681836828368383684836858368683687836888368983690836918369283693836948369583696836978369883699837008370183702837038370483705837068370783708837098371083711837128371383714837158371683717837188371983720837218372283723837248372583726837278372883729837308373183732837338373483735837368373783738837398374083741837428374383744837458374683747837488374983750837518375283753837548375583756837578375883759837608376183762837638376483765837668376783768837698377083771837728377383774837758377683777837788377983780837818378283783837848378583786837878378883789837908379183792837938379483795837968379783798837998380083801838028380383804838058380683807838088380983810838118381283813838148381583816838178381883819838208382183822838238382483825838268382783828838298383083831838328383383834838358383683837838388383983840838418384283843838448384583846838478384883849838508385183852838538385483855838568385783858838598386083861838628386383864838658386683867838688386983870838718387283873838748387583876838778387883879838808388183882838838388483885838868388783888838898389083891838928389383894838958389683897838988389983900839018390283903839048390583906839078390883909839108391183912839138391483915839168391783918839198392083921839228392383924839258392683927839288392983930839318393283933839348393583936839378393883939839408394183942839438394483945839468394783948839498395083951839528395383954839558395683957839588395983960839618396283963839648396583966839678396883969839708397183972839738397483975839768397783978839798398083981839828398383984839858398683987839888398983990839918399283993839948399583996839978399883999840008400184002840038400484005840068400784008840098401084011840128401384014840158401684017840188401984020840218402284023840248402584026840278402884029840308403184032840338403484035840368403784038840398404084041840428404384044840458404684047840488404984050840518405284053840548405584056840578405884059840608406184062840638406484065840668406784068840698407084071840728407384074840758407684077840788407984080840818408284083840848408584086840878408884089840908409184092840938409484095840968409784098840998410084101841028410384104841058410684107841088410984110841118411284113841148411584116841178411884119841208412184122841238412484125841268412784128841298413084131841328413384134841358413684137841388413984140841418414284143841448414584146841478414884149841508415184152841538415484155841568415784158841598416084161841628416384164841658416684167841688416984170841718417284173841748417584176841778417884179841808418184182841838418484185841868418784188841898419084191841928419384194841958419684197841988419984200842018420284203842048420584206842078420884209842108421184212842138421484215842168421784218842198422084221842228422384224842258422684227842288422984230842318423284233842348423584236842378423884239842408424184242842438424484245842468424784248842498425084251842528425384254842558425684257842588425984260842618426284263842648426584266842678426884269842708427184272842738427484275842768427784278842798428084281842828428384284842858428684287842888428984290842918429284293842948429584296842978429884299843008430184302843038430484305843068430784308843098431084311843128431384314843158431684317843188431984320843218432284323843248432584326843278432884329843308433184332843338433484335843368433784338843398434084341843428434384344843458434684347843488434984350843518435284353843548435584356843578435884359843608436184362843638436484365843668436784368843698437084371843728437384374843758437684377843788437984380843818438284383843848438584386843878438884389843908439184392843938439484395843968439784398843998440084401844028440384404844058440684407844088440984410844118441284413844148441584416844178441884419844208442184422844238442484425844268442784428844298443084431844328443384434844358443684437844388443984440844418444284443844448444584446844478444884449844508445184452844538445484455844568445784458844598446084461844628446384464844658446684467844688446984470844718447284473844748447584476844778447884479844808448184482844838448484485844868448784488844898449084491844928449384494844958449684497844988449984500845018450284503845048450584506845078450884509845108451184512845138451484515845168451784518845198452084521845228452384524845258452684527845288452984530845318453284533845348453584536845378453884539845408454184542845438454484545845468454784548845498455084551845528455384554845558455684557845588455984560845618456284563845648456584566845678456884569845708457184572845738457484575845768457784578845798458084581845828458384584845858458684587845888458984590845918459284593845948459584596845978459884599846008460184602846038460484605846068460784608846098461084611846128461384614846158461684617846188461984620846218462284623846248462584626846278462884629846308463184632846338463484635846368463784638846398464084641846428464384644846458464684647846488464984650846518465284653846548465584656846578465884659846608466184662846638466484665846668466784668846698467084671846728467384674846758467684677846788467984680846818468284683846848468584686846878468884689846908469184692846938469484695846968469784698846998470084701847028470384704847058470684707847088470984710847118471284713847148471584716847178471884719847208472184722847238472484725847268472784728847298473084731847328473384734847358473684737847388473984740847418474284743847448474584746847478474884749847508475184752847538475484755847568475784758847598476084761847628476384764847658476684767847688476984770847718477284773847748477584776847778477884779847808478184782847838478484785847868478784788847898479084791847928479384794847958479684797847988479984800848018480284803848048480584806848078480884809848108481184812848138481484815848168481784818848198482084821848228482384824848258482684827848288482984830848318483284833848348483584836848378483884839848408484184842848438484484845848468484784848848498485084851848528485384854848558485684857848588485984860848618486284863848648486584866848678486884869848708487184872848738487484875848768487784878848798488084881848828488384884848858488684887848888488984890848918489284893848948489584896848978489884899849008490184902849038490484905849068490784908849098491084911849128491384914849158491684917849188491984920849218492284923849248492584926849278492884929849308493184932849338493484935849368493784938849398494084941849428494384944849458494684947849488494984950849518495284953849548495584956849578495884959849608496184962849638496484965849668496784968849698497084971849728497384974849758497684977849788497984980849818498284983849848498584986849878498884989849908499184992849938499484995849968499784998849998500085001850028500385004850058500685007850088500985010850118501285013850148501585016850178501885019850208502185022850238502485025850268502785028850298503085031850328503385034850358503685037850388503985040850418504285043850448504585046850478504885049850508505185052850538505485055850568505785058850598506085061850628506385064850658506685067850688506985070850718507285073850748507585076850778507885079850808508185082850838508485085850868508785088850898509085091850928509385094850958509685097850988509985100851018510285103851048510585106851078510885109851108511185112851138511485115851168511785118851198512085121851228512385124851258512685127851288512985130851318513285133851348513585136851378513885139851408514185142851438514485145851468514785148851498515085151851528515385154851558515685157851588515985160851618516285163851648516585166851678516885169851708517185172851738517485175851768517785178851798518085181851828518385184851858518685187851888518985190851918519285193851948519585196851978519885199852008520185202852038520485205852068520785208852098521085211852128521385214852158521685217852188521985220852218522285223852248522585226852278522885229852308523185232852338523485235852368523785238852398524085241852428524385244852458524685247852488524985250852518525285253852548525585256852578525885259852608526185262852638526485265852668526785268852698527085271852728527385274852758527685277852788527985280852818528285283852848528585286852878528885289852908529185292852938529485295852968529785298852998530085301853028530385304853058530685307853088530985310853118531285313853148531585316853178531885319853208532185322853238532485325853268532785328853298533085331853328533385334853358533685337853388533985340853418534285343853448534585346853478534885349853508535185352853538535485355853568535785358853598536085361853628536385364853658536685367853688536985370853718537285373853748537585376853778537885379853808538185382853838538485385853868538785388853898539085391853928539385394853958539685397853988539985400854018540285403854048540585406854078540885409854108541185412854138541485415854168541785418854198542085421854228542385424854258542685427854288542985430854318543285433854348543585436854378543885439854408544185442854438544485445854468544785448854498545085451854528545385454854558545685457854588545985460854618546285463854648546585466854678546885469854708547185472854738547485475854768547785478854798548085481854828548385484854858548685487854888548985490854918549285493854948549585496854978549885499855008550185502855038550485505855068550785508855098551085511855128551385514855158551685517855188551985520855218552285523855248552585526855278552885529855308553185532855338553485535855368553785538855398554085541855428554385544855458554685547855488554985550855518555285553855548555585556855578555885559855608556185562855638556485565855668556785568855698557085571855728557385574855758557685577855788557985580855818558285583855848558585586855878558885589855908559185592855938559485595855968559785598855998560085601856028560385604856058560685607856088560985610856118561285613856148561585616856178561885619856208562185622856238562485625856268562785628856298563085631856328563385634856358563685637856388563985640856418564285643856448564585646856478564885649856508565185652856538565485655856568565785658856598566085661856628566385664856658566685667856688566985670856718567285673856748567585676856778567885679856808568185682856838568485685856868568785688856898569085691856928569385694856958569685697856988569985700857018570285703857048570585706857078570885709857108571185712857138571485715857168571785718857198572085721857228572385724857258572685727857288572985730857318573285733857348573585736857378573885739857408574185742857438574485745857468574785748857498575085751857528575385754857558575685757857588575985760857618576285763857648576585766857678576885769857708577185772857738577485775857768577785778857798578085781857828578385784857858578685787857888578985790857918579285793857948579585796857978579885799858008580185802858038580485805858068580785808858098581085811858128581385814858158581685817858188581985820858218582285823858248582585826858278582885829858308583185832858338583485835858368583785838858398584085841858428584385844858458584685847858488584985850858518585285853858548585585856858578585885859858608586185862858638586485865858668586785868858698587085871858728587385874858758587685877858788587985880858818588285883858848588585886858878588885889858908589185892858938589485895858968589785898858998590085901859028590385904859058590685907859088590985910859118591285913859148591585916859178591885919859208592185922859238592485925859268592785928859298593085931859328593385934859358593685937859388593985940859418594285943859448594585946859478594885949859508595185952859538595485955859568595785958859598596085961859628596385964859658596685967859688596985970859718597285973859748597585976859778597885979859808598185982859838598485985859868598785988859898599085991859928599385994859958599685997859988599986000860018600286003860048600586006860078600886009860108601186012860138601486015860168601786018860198602086021860228602386024860258602686027860288602986030860318603286033860348603586036860378603886039860408604186042860438604486045860468604786048860498605086051860528605386054860558605686057860588605986060860618606286063860648606586066860678606886069860708607186072860738607486075860768607786078860798608086081860828608386084860858608686087860888608986090860918609286093860948609586096860978609886099861008610186102861038610486105861068610786108861098611086111861128611386114861158611686117861188611986120861218612286123861248612586126861278612886129861308613186132861338613486135861368613786138861398614086141861428614386144861458614686147861488614986150861518615286153861548615586156861578615886159861608616186162861638616486165861668616786168861698617086171861728617386174861758617686177861788617986180861818618286183861848618586186861878618886189861908619186192861938619486195861968619786198861998620086201862028620386204862058620686207862088620986210862118621286213862148621586216862178621886219862208622186222862238622486225862268622786228862298623086231862328623386234862358623686237862388623986240862418624286243862448624586246862478624886249862508625186252862538625486255862568625786258862598626086261862628626386264862658626686267862688626986270862718627286273862748627586276862778627886279862808628186282862838628486285862868628786288862898629086291862928629386294862958629686297862988629986300863018630286303863048630586306863078630886309863108631186312863138631486315863168631786318863198632086321863228632386324863258632686327863288632986330863318633286333863348633586336863378633886339863408634186342863438634486345863468634786348863498635086351863528635386354863558635686357863588635986360863618636286363863648636586366863678636886369863708637186372863738637486375863768637786378863798638086381863828638386384863858638686387863888638986390863918639286393863948639586396863978639886399864008640186402864038640486405864068640786408864098641086411864128641386414864158641686417864188641986420864218642286423864248642586426864278642886429864308643186432864338643486435864368643786438864398644086441864428644386444864458644686447864488644986450864518645286453864548645586456864578645886459864608646186462864638646486465864668646786468864698647086471864728647386474864758647686477864788647986480864818648286483864848648586486864878648886489864908649186492864938649486495864968649786498864998650086501865028650386504865058650686507865088650986510865118651286513865148651586516865178651886519865208652186522865238652486525865268652786528865298653086531865328653386534865358653686537865388653986540865418654286543865448654586546865478654886549865508655186552865538655486555865568655786558865598656086561865628656386564865658656686567865688656986570865718657286573865748657586576865778657886579865808658186582865838658486585865868658786588865898659086591865928659386594865958659686597865988659986600866018660286603866048660586606866078660886609866108661186612866138661486615866168661786618866198662086621866228662386624866258662686627866288662986630866318663286633866348663586636866378663886639866408664186642866438664486645866468664786648866498665086651866528665386654866558665686657866588665986660866618666286663866648666586666866678666886669866708667186672866738667486675866768667786678866798668086681866828668386684866858668686687866888668986690866918669286693866948669586696866978669886699867008670186702867038670486705867068670786708867098671086711867128671386714867158671686717867188671986720867218672286723867248672586726867278672886729867308673186732867338673486735867368673786738867398674086741867428674386744867458674686747867488674986750867518675286753867548675586756867578675886759867608676186762867638676486765867668676786768867698677086771867728677386774867758677686777867788677986780867818678286783867848678586786867878678886789867908679186792867938679486795867968679786798867998680086801868028680386804868058680686807868088680986810868118681286813868148681586816868178681886819868208682186822868238682486825868268682786828868298683086831868328683386834868358683686837868388683986840868418684286843868448684586846868478684886849868508685186852868538685486855868568685786858868598686086861868628686386864868658686686867868688686986870868718687286873868748687586876868778687886879868808688186882868838688486885868868688786888868898689086891868928689386894868958689686897868988689986900869018690286903869048690586906869078690886909869108691186912869138691486915869168691786918869198692086921869228692386924869258692686927869288692986930869318693286933869348693586936869378693886939869408694186942869438694486945869468694786948869498695086951869528695386954869558695686957869588695986960869618696286963869648696586966869678696886969869708697186972869738697486975869768697786978869798698086981869828698386984869858698686987869888698986990869918699286993869948699586996869978699886999870008700187002870038700487005870068700787008870098701087011870128701387014870158701687017870188701987020870218702287023870248702587026870278702887029870308703187032870338703487035870368703787038870398704087041870428704387044870458704687047870488704987050870518705287053870548705587056870578705887059870608706187062870638706487065870668706787068870698707087071870728707387074870758707687077870788707987080870818708287083870848708587086870878708887089870908709187092870938709487095870968709787098870998710087101871028710387104871058710687107871088710987110871118711287113871148711587116871178711887119871208712187122871238712487125871268712787128871298713087131871328713387134871358713687137871388713987140871418714287143871448714587146871478714887149871508715187152871538715487155871568715787158871598716087161871628716387164871658716687167871688716987170871718717287173871748717587176871778717887179871808718187182871838718487185871868718787188871898719087191871928719387194871958719687197871988719987200872018720287203872048720587206872078720887209872108721187212872138721487215872168721787218872198722087221872228722387224872258722687227872288722987230872318723287233872348723587236872378723887239872408724187242872438724487245872468724787248872498725087251872528725387254872558725687257872588725987260872618726287263872648726587266872678726887269872708727187272872738727487275872768727787278872798728087281872828728387284872858728687287872888728987290872918729287293872948729587296872978729887299873008730187302873038730487305873068730787308873098731087311873128731387314873158731687317873188731987320873218732287323873248732587326873278732887329873308733187332873338733487335873368733787338873398734087341873428734387344873458734687347873488734987350873518735287353873548735587356873578735887359873608736187362873638736487365873668736787368873698737087371873728737387374873758737687377873788737987380873818738287383873848738587386873878738887389873908739187392873938739487395873968739787398873998740087401874028740387404874058740687407874088740987410874118741287413874148741587416874178741887419874208742187422874238742487425874268742787428874298743087431874328743387434874358743687437874388743987440874418744287443874448744587446874478744887449874508745187452874538745487455874568745787458874598746087461874628746387464874658746687467874688746987470874718747287473874748747587476874778747887479874808748187482874838748487485874868748787488874898749087491874928749387494874958749687497874988749987500875018750287503875048750587506875078750887509875108751187512875138751487515875168751787518875198752087521875228752387524875258752687527875288752987530875318753287533875348753587536875378753887539875408754187542875438754487545875468754787548875498755087551875528755387554875558755687557875588755987560875618756287563875648756587566875678756887569875708757187572875738757487575875768757787578875798758087581875828758387584875858758687587875888758987590875918759287593875948759587596875978759887599876008760187602876038760487605876068760787608876098761087611876128761387614876158761687617876188761987620876218762287623876248762587626876278762887629876308763187632876338763487635876368763787638876398764087641876428764387644876458764687647876488764987650876518765287653876548765587656876578765887659876608766187662876638766487665876668766787668876698767087671876728767387674876758767687677876788767987680876818768287683876848768587686876878768887689876908769187692876938769487695876968769787698876998770087701877028770387704877058770687707877088770987710877118771287713877148771587716877178771887719877208772187722877238772487725877268772787728877298773087731877328773387734877358773687737877388773987740877418774287743877448774587746877478774887749877508775187752877538775487755877568775787758877598776087761877628776387764877658776687767877688776987770877718777287773877748777587776877778777887779877808778187782877838778487785877868778787788877898779087791877928779387794877958779687797877988779987800878018780287803878048780587806878078780887809878108781187812878138781487815878168781787818878198782087821878228782387824878258782687827878288782987830878318783287833878348783587836878378783887839878408784187842878438784487845878468784787848878498785087851878528785387854878558785687857878588785987860878618786287863878648786587866878678786887869878708787187872878738787487875878768787787878878798788087881878828788387884878858788687887878888788987890878918789287893878948789587896878978789887899879008790187902879038790487905879068790787908879098791087911879128791387914879158791687917879188791987920879218792287923879248792587926879278792887929879308793187932879338793487935879368793787938879398794087941879428794387944879458794687947879488794987950879518795287953879548795587956879578795887959879608796187962879638796487965879668796787968879698797087971879728797387974879758797687977879788797987980879818798287983879848798587986879878798887989879908799187992879938799487995879968799787998879998800088001880028800388004880058800688007880088800988010880118801288013880148801588016880178801888019880208802188022880238802488025880268802788028880298803088031880328803388034880358803688037880388803988040880418804288043880448804588046880478804888049880508805188052880538805488055880568805788058880598806088061880628806388064880658806688067880688806988070880718807288073880748807588076880778807888079880808808188082880838808488085880868808788088880898809088091880928809388094880958809688097880988809988100881018810288103881048810588106881078810888109881108811188112881138811488115881168811788118881198812088121881228812388124881258812688127881288812988130881318813288133881348813588136881378813888139881408814188142881438814488145881468814788148881498815088151881528815388154881558815688157881588815988160881618816288163881648816588166881678816888169881708817188172881738817488175881768817788178881798818088181881828818388184881858818688187881888818988190881918819288193881948819588196881978819888199882008820188202882038820488205882068820788208882098821088211882128821388214882158821688217882188821988220882218822288223882248822588226882278822888229882308823188232882338823488235882368823788238882398824088241882428824388244882458824688247882488824988250882518825288253882548825588256882578825888259882608826188262882638826488265882668826788268882698827088271882728827388274882758827688277882788827988280882818828288283882848828588286882878828888289882908829188292882938829488295882968829788298882998830088301883028830388304883058830688307883088830988310883118831288313883148831588316883178831888319883208832188322883238832488325883268832788328883298833088331883328833388334883358833688337883388833988340883418834288343883448834588346883478834888349883508835188352883538835488355883568835788358883598836088361883628836388364883658836688367883688836988370883718837288373883748837588376883778837888379883808838188382883838838488385883868838788388883898839088391883928839388394883958839688397883988839988400884018840288403884048840588406884078840888409884108841188412884138841488415884168841788418884198842088421884228842388424884258842688427884288842988430884318843288433884348843588436884378843888439884408844188442884438844488445884468844788448884498845088451884528845388454884558845688457884588845988460884618846288463884648846588466884678846888469884708847188472884738847488475884768847788478884798848088481884828848388484884858848688487884888848988490884918849288493884948849588496884978849888499885008850188502885038850488505885068850788508885098851088511885128851388514885158851688517885188851988520885218852288523885248852588526885278852888529885308853188532885338853488535885368853788538885398854088541885428854388544885458854688547885488854988550885518855288553885548855588556885578855888559885608856188562885638856488565885668856788568885698857088571885728857388574885758857688577885788857988580885818858288583885848858588586885878858888589885908859188592885938859488595885968859788598885998860088601886028860388604886058860688607886088860988610886118861288613886148861588616886178861888619886208862188622886238862488625886268862788628886298863088631886328863388634886358863688637886388863988640886418864288643886448864588646886478864888649886508865188652886538865488655886568865788658886598866088661886628866388664886658866688667886688866988670886718867288673886748867588676886778867888679886808868188682886838868488685886868868788688886898869088691886928869388694886958869688697886988869988700887018870288703887048870588706887078870888709887108871188712887138871488715887168871788718887198872088721887228872388724887258872688727887288872988730887318873288733887348873588736887378873888739887408874188742887438874488745887468874788748887498875088751887528875388754887558875688757887588875988760887618876288763887648876588766887678876888769887708877188772887738877488775887768877788778887798878088781887828878388784887858878688787887888878988790887918879288793887948879588796887978879888799888008880188802888038880488805888068880788808888098881088811888128881388814888158881688817888188881988820888218882288823888248882588826888278882888829888308883188832888338883488835888368883788838888398884088841888428884388844888458884688847888488884988850888518885288853888548885588856888578885888859888608886188862888638886488865888668886788868888698887088871888728887388874888758887688877888788887988880888818888288883888848888588886888878888888889888908889188892888938889488895888968889788898888998890088901889028890388904889058890688907889088890988910889118891288913889148891588916889178891888919889208892188922889238892488925889268892788928889298893088931889328893388934889358893688937889388893988940889418894288943889448894588946889478894888949889508895188952889538895488955889568895788958889598896088961889628896388964889658896688967889688896988970889718897288973889748897588976889778897888979889808898188982889838898488985889868898788988889898899088991889928899388994889958899688997889988899989000890018900289003890048900589006890078900889009890108901189012890138901489015890168901789018890198902089021890228902389024890258902689027890288902989030890318903289033890348903589036890378903889039890408904189042890438904489045890468904789048890498905089051890528905389054890558905689057890588905989060890618906289063890648906589066890678906889069890708907189072890738907489075890768907789078890798908089081890828908389084890858908689087890888908989090890918909289093890948909589096890978909889099891008910189102891038910489105891068910789108891098911089111891128911389114891158911689117891188911989120891218912289123891248912589126891278912889129891308913189132891338913489135891368913789138891398914089141891428914389144891458914689147891488914989150891518915289153891548915589156891578915889159891608916189162891638916489165891668916789168891698917089171891728917389174891758917689177891788917989180891818918289183891848918589186891878918889189891908919189192891938919489195891968919789198891998920089201892028920389204892058920689207892088920989210892118921289213892148921589216892178921889219892208922189222892238922489225892268922789228892298923089231892328923389234892358923689237892388923989240892418924289243892448924589246892478924889249892508925189252892538925489255892568925789258892598926089261892628926389264892658926689267892688926989270892718927289273892748927589276892778927889279892808928189282892838928489285892868928789288892898929089291892928929389294892958929689297892988929989300893018930289303893048930589306893078930889309893108931189312893138931489315893168931789318893198932089321893228932389324893258932689327893288932989330893318933289333893348933589336893378933889339893408934189342893438934489345893468934789348893498935089351893528935389354893558935689357893588935989360893618936289363893648936589366893678936889369893708937189372893738937489375893768937789378893798938089381893828938389384893858938689387893888938989390893918939289393893948939589396893978939889399894008940189402894038940489405894068940789408894098941089411894128941389414894158941689417894188941989420894218942289423894248942589426894278942889429894308943189432894338943489435894368943789438894398944089441894428944389444894458944689447894488944989450894518945289453894548945589456894578945889459894608946189462894638946489465894668946789468894698947089471894728947389474894758947689477894788947989480894818948289483894848948589486894878948889489894908949189492894938949489495894968949789498894998950089501895028950389504895058950689507895088950989510895118951289513895148951589516895178951889519895208952189522895238952489525895268952789528895298953089531895328953389534895358953689537895388953989540895418954289543895448954589546895478954889549895508955189552895538955489555895568955789558895598956089561895628956389564895658956689567895688956989570895718957289573895748957589576895778957889579895808958189582895838958489585895868958789588895898959089591895928959389594895958959689597895988959989600896018960289603896048960589606896078960889609896108961189612896138961489615896168961789618896198962089621896228962389624896258962689627896288962989630896318963289633896348963589636896378963889639896408964189642896438964489645896468964789648896498965089651896528965389654896558965689657896588965989660896618966289663896648966589666896678966889669896708967189672896738967489675896768967789678896798968089681896828968389684896858968689687896888968989690896918969289693896948969589696896978969889699897008970189702897038970489705897068970789708897098971089711897128971389714897158971689717897188971989720897218972289723897248972589726897278972889729897308973189732897338973489735897368973789738897398974089741897428974389744897458974689747897488974989750897518975289753897548975589756897578975889759897608976189762897638976489765897668976789768897698977089771897728977389774897758977689777897788977989780897818978289783897848978589786897878978889789897908979189792897938979489795897968979789798897998980089801898028980389804898058980689807898088980989810898118981289813898148981589816898178981889819898208982189822898238982489825898268982789828898298983089831898328983389834898358983689837898388983989840898418984289843898448984589846898478984889849898508985189852898538985489855898568985789858898598986089861898628986389864898658986689867898688986989870898718987289873898748987589876898778987889879898808988189882898838988489885898868988789888898898989089891898928989389894898958989689897898988989989900899018990289903899048990589906899078990889909899108991189912899138991489915899168991789918899198992089921899228992389924899258992689927899288992989930899318993289933899348993589936899378993889939899408994189942899438994489945899468994789948899498995089951899528995389954899558995689957899588995989960899618996289963899648996589966899678996889969899708997189972899738997489975899768997789978899798998089981899828998389984899858998689987899888998989990899918999289993899948999589996899978999889999900009000190002900039000490005900069000790008900099001090011900129001390014900159001690017900189001990020900219002290023900249002590026900279002890029900309003190032900339003490035900369003790038900399004090041900429004390044900459004690047900489004990050900519005290053900549005590056900579005890059900609006190062900639006490065900669006790068900699007090071900729007390074900759007690077900789007990080900819008290083900849008590086900879008890089900909009190092900939009490095900969009790098900999010090101901029010390104901059010690107901089010990110901119011290113901149011590116901179011890119901209012190122901239012490125901269012790128901299013090131901329013390134901359013690137901389013990140901419014290143901449014590146901479014890149901509015190152901539015490155901569015790158901599016090161901629016390164901659016690167901689016990170901719017290173901749017590176901779017890179901809018190182901839018490185901869018790188901899019090191901929019390194901959019690197901989019990200902019020290203902049020590206902079020890209902109021190212902139021490215902169021790218902199022090221902229022390224902259022690227902289022990230902319023290233902349023590236902379023890239902409024190242902439024490245902469024790248902499025090251902529025390254902559025690257902589025990260902619026290263902649026590266902679026890269902709027190272902739027490275902769027790278902799028090281902829028390284902859028690287902889028990290902919029290293902949029590296902979029890299903009030190302903039030490305903069030790308903099031090311903129031390314903159031690317903189031990320903219032290323903249032590326903279032890329903309033190332903339033490335903369033790338903399034090341903429034390344903459034690347903489034990350903519035290353903549035590356903579035890359903609036190362903639036490365903669036790368903699037090371903729037390374903759037690377903789037990380903819038290383903849038590386903879038890389903909039190392903939039490395903969039790398903999040090401904029040390404904059040690407904089040990410904119041290413904149041590416904179041890419904209042190422904239042490425904269042790428904299043090431904329043390434904359043690437904389043990440904419044290443904449044590446904479044890449904509045190452904539045490455904569045790458904599046090461904629046390464904659046690467904689046990470904719047290473904749047590476904779047890479904809048190482904839048490485904869048790488904899049090491904929049390494904959049690497904989049990500905019050290503905049050590506905079050890509905109051190512905139051490515905169051790518905199052090521905229052390524905259052690527905289052990530905319053290533905349053590536905379053890539905409054190542905439054490545905469054790548905499055090551905529055390554905559055690557905589055990560905619056290563905649056590566905679056890569905709057190572905739057490575905769057790578905799058090581905829058390584905859058690587905889058990590905919059290593905949059590596905979059890599906009060190602906039060490605906069060790608906099061090611906129061390614906159061690617906189061990620906219062290623906249062590626906279062890629906309063190632906339063490635906369063790638906399064090641906429064390644906459064690647906489064990650906519065290653906549065590656906579065890659906609066190662906639066490665906669066790668906699067090671906729067390674906759067690677906789067990680906819068290683906849068590686906879068890689906909069190692906939069490695906969069790698906999070090701907029070390704907059070690707907089070990710907119071290713907149071590716907179071890719907209072190722907239072490725907269072790728907299073090731907329073390734907359073690737907389073990740907419074290743907449074590746907479074890749907509075190752907539075490755907569075790758907599076090761907629076390764907659076690767907689076990770907719077290773907749077590776907779077890779907809078190782907839078490785907869078790788907899079090791907929079390794907959079690797907989079990800908019080290803908049080590806908079080890809908109081190812908139081490815908169081790818908199082090821908229082390824908259082690827908289082990830908319083290833908349083590836908379083890839908409084190842908439084490845908469084790848908499085090851908529085390854908559085690857908589085990860908619086290863908649086590866908679086890869908709087190872908739087490875908769087790878908799088090881908829088390884908859088690887908889088990890908919089290893908949089590896908979089890899909009090190902909039090490905909069090790908909099091090911909129091390914909159091690917909189091990920909219092290923909249092590926909279092890929909309093190932909339093490935909369093790938909399094090941909429094390944909459094690947909489094990950909519095290953909549095590956909579095890959909609096190962909639096490965909669096790968909699097090971909729097390974909759097690977909789097990980909819098290983909849098590986909879098890989909909099190992909939099490995909969099790998909999100091001910029100391004910059100691007910089100991010910119101291013910149101591016910179101891019910209102191022910239102491025910269102791028910299103091031910329103391034910359103691037910389103991040910419104291043910449104591046910479104891049910509105191052910539105491055910569105791058910599106091061910629106391064910659106691067910689106991070910719107291073910749107591076910779107891079910809108191082910839108491085910869108791088910899109091091910929109391094910959109691097910989109991100911019110291103911049110591106911079110891109911109111191112911139111491115911169111791118911199112091121911229112391124911259112691127911289112991130911319113291133911349113591136911379113891139911409114191142911439114491145911469114791148911499115091151911529115391154911559115691157911589115991160911619116291163911649116591166911679116891169911709117191172911739117491175911769117791178911799118091181911829118391184911859118691187911889118991190911919119291193911949119591196911979119891199912009120191202912039120491205912069120791208912099121091211912129121391214912159121691217912189121991220912219122291223912249122591226912279122891229912309123191232912339123491235912369123791238912399124091241912429124391244912459124691247912489124991250912519125291253912549125591256912579125891259912609126191262912639126491265912669126791268912699127091271912729127391274912759127691277912789127991280912819128291283912849128591286912879128891289912909129191292912939129491295912969129791298912999130091301913029130391304913059130691307913089130991310913119131291313913149131591316913179131891319913209132191322913239132491325913269132791328913299133091331913329133391334913359133691337913389133991340913419134291343913449134591346913479134891349913509135191352913539135491355913569135791358913599136091361913629136391364913659136691367913689136991370913719137291373913749137591376913779137891379913809138191382913839138491385913869138791388913899139091391913929139391394913959139691397913989139991400914019140291403914049140591406914079140891409914109141191412914139141491415914169141791418914199142091421914229142391424914259142691427914289142991430914319143291433914349143591436914379143891439914409144191442914439144491445914469144791448914499145091451914529145391454914559145691457914589145991460914619146291463914649146591466914679146891469914709147191472914739147491475914769147791478914799148091481914829148391484914859148691487914889148991490914919149291493914949149591496914979149891499915009150191502915039150491505915069150791508915099151091511915129151391514915159151691517915189151991520915219152291523915249152591526915279152891529915309153191532915339153491535915369153791538915399154091541915429154391544915459154691547915489154991550915519155291553915549155591556915579155891559915609156191562915639156491565915669156791568915699157091571915729157391574915759157691577915789157991580915819158291583915849158591586915879158891589915909159191592915939159491595915969159791598915999160091601916029160391604916059160691607916089160991610916119161291613916149161591616916179161891619916209162191622916239162491625916269162791628916299163091631916329163391634916359163691637916389163991640916419164291643916449164591646916479164891649916509165191652916539165491655916569165791658916599166091661916629166391664916659166691667916689166991670916719167291673916749167591676916779167891679916809168191682916839168491685916869168791688916899169091691916929169391694916959169691697916989169991700917019170291703917049170591706917079170891709917109171191712917139171491715917169171791718917199172091721917229172391724917259172691727917289172991730917319173291733917349173591736917379173891739917409174191742917439174491745917469174791748917499175091751917529175391754917559175691757917589175991760917619176291763917649176591766917679176891769917709177191772917739177491775917769177791778917799178091781917829178391784917859178691787917889178991790917919179291793917949179591796917979179891799918009180191802918039180491805918069180791808918099181091811918129181391814918159181691817918189181991820918219182291823918249182591826918279182891829918309183191832918339183491835918369183791838918399184091841918429184391844918459184691847918489184991850918519185291853918549185591856918579185891859918609186191862918639186491865918669186791868918699187091871918729187391874918759187691877918789187991880918819188291883918849188591886918879188891889918909189191892918939189491895918969189791898918999190091901919029190391904919059190691907919089190991910919119191291913919149191591916919179191891919919209192191922919239192491925919269192791928919299193091931919329193391934919359193691937919389193991940919419194291943919449194591946919479194891949919509195191952919539195491955919569195791958919599196091961919629196391964919659196691967919689196991970919719197291973919749197591976919779197891979919809198191982919839198491985919869198791988919899199091991919929199391994919959199691997919989199992000920019200292003920049200592006920079200892009920109201192012920139201492015920169201792018920199202092021920229202392024920259202692027920289202992030920319203292033920349203592036920379203892039920409204192042920439204492045920469204792048920499205092051920529205392054920559205692057920589205992060920619206292063920649206592066920679206892069920709207192072920739207492075920769207792078920799208092081920829208392084920859208692087920889208992090920919209292093920949209592096920979209892099921009210192102921039210492105921069210792108921099211092111921129211392114921159211692117921189211992120921219212292123921249212592126921279212892129921309213192132921339213492135921369213792138921399214092141921429214392144921459214692147921489214992150921519215292153921549215592156921579215892159921609216192162921639216492165921669216792168921699217092171921729217392174921759217692177921789217992180921819218292183921849218592186921879218892189921909219192192921939219492195921969219792198921999220092201922029220392204922059220692207922089220992210922119221292213922149221592216922179221892219922209222192222922239222492225922269222792228922299223092231922329223392234922359223692237922389223992240922419224292243922449224592246922479224892249922509225192252922539225492255922569225792258922599226092261922629226392264922659226692267922689226992270922719227292273922749227592276922779227892279922809228192282922839228492285922869228792288922899229092291922929229392294922959229692297922989229992300923019230292303923049230592306923079230892309923109231192312923139231492315923169231792318923199232092321923229232392324923259232692327923289232992330923319233292333923349233592336923379233892339923409234192342923439234492345923469234792348923499235092351923529235392354923559235692357923589235992360923619236292363923649236592366923679236892369923709237192372923739237492375923769237792378923799238092381923829238392384923859238692387923889238992390923919239292393923949239592396923979239892399924009240192402924039240492405924069240792408924099241092411924129241392414924159241692417924189241992420924219242292423924249242592426924279242892429924309243192432924339243492435924369243792438924399244092441924429244392444924459244692447924489244992450924519245292453924549245592456924579245892459924609246192462924639246492465924669246792468924699247092471924729247392474924759247692477924789247992480924819248292483924849248592486924879248892489924909249192492924939249492495924969249792498924999250092501925029250392504925059250692507925089250992510925119251292513925149251592516925179251892519925209252192522925239252492525925269252792528925299253092531925329253392534925359253692537925389253992540925419254292543925449254592546925479254892549925509255192552925539255492555925569255792558925599256092561925629256392564925659256692567925689256992570925719257292573925749257592576925779257892579925809258192582925839258492585925869258792588925899259092591925929259392594925959259692597925989259992600926019260292603926049260592606926079260892609926109261192612926139261492615926169261792618926199262092621926229262392624926259262692627926289262992630926319263292633926349263592636926379263892639926409264192642926439264492645926469264792648926499265092651926529265392654926559265692657926589265992660926619266292663926649266592666926679266892669926709267192672926739267492675926769267792678926799268092681926829268392684926859268692687926889268992690926919269292693926949269592696926979269892699927009270192702927039270492705927069270792708927099271092711927129271392714927159271692717927189271992720927219272292723927249272592726927279272892729927309273192732927339273492735927369273792738927399274092741927429274392744927459274692747927489274992750927519275292753927549275592756927579275892759927609276192762927639276492765927669276792768927699277092771927729277392774927759277692777927789277992780927819278292783927849278592786927879278892789927909279192792927939279492795927969279792798927999280092801928029280392804928059280692807928089280992810928119281292813928149281592816928179281892819928209282192822928239282492825928269282792828928299283092831928329283392834928359283692837928389283992840928419284292843928449284592846928479284892849928509285192852928539285492855928569285792858928599286092861928629286392864928659286692867928689286992870928719287292873928749287592876928779287892879928809288192882928839288492885928869288792888928899289092891928929289392894928959289692897928989289992900929019290292903929049290592906929079290892909929109291192912929139291492915929169291792918929199292092921929229292392924929259292692927929289292992930929319293292933929349293592936929379293892939929409294192942929439294492945929469294792948929499295092951929529295392954929559295692957929589295992960929619296292963929649296592966929679296892969929709297192972929739297492975929769297792978929799298092981929829298392984929859298692987929889298992990929919299292993929949299592996929979299892999930009300193002930039300493005930069300793008930099301093011930129301393014930159301693017930189301993020930219302293023930249302593026930279302893029930309303193032930339303493035930369303793038930399304093041930429304393044930459304693047930489304993050930519305293053930549305593056930579305893059930609306193062930639306493065930669306793068930699307093071930729307393074930759307693077930789307993080930819308293083930849308593086930879308893089930909309193092930939309493095930969309793098930999310093101931029310393104931059310693107931089310993110931119311293113931149311593116931179311893119931209312193122931239312493125931269312793128931299313093131931329313393134931359313693137931389313993140931419314293143931449314593146931479314893149931509315193152931539315493155931569315793158931599316093161931629316393164931659316693167931689316993170931719317293173931749317593176931779317893179931809318193182931839318493185931869318793188931899319093191931929319393194931959319693197931989319993200932019320293203932049320593206932079320893209932109321193212932139321493215932169321793218932199322093221932229322393224932259322693227932289322993230932319323293233932349323593236932379323893239932409324193242932439324493245932469324793248932499325093251932529325393254932559325693257932589325993260932619326293263932649326593266932679326893269932709327193272932739327493275932769327793278932799328093281932829328393284932859328693287932889328993290932919329293293932949329593296932979329893299933009330193302933039330493305933069330793308933099331093311933129331393314933159331693317933189331993320933219332293323933249332593326933279332893329933309333193332933339333493335933369333793338933399334093341933429334393344933459334693347933489334993350933519335293353933549335593356933579335893359933609336193362933639336493365933669336793368933699337093371933729337393374933759337693377933789337993380933819338293383933849338593386933879338893389933909339193392933939339493395933969339793398933999340093401934029340393404934059340693407934089340993410934119341293413934149341593416934179341893419934209342193422934239342493425934269342793428934299343093431934329343393434934359343693437934389343993440934419344293443934449344593446934479344893449934509345193452934539345493455934569345793458934599346093461934629346393464934659346693467934689346993470934719347293473934749347593476934779347893479934809348193482934839348493485934869348793488934899349093491934929349393494934959349693497934989349993500935019350293503935049350593506935079350893509935109351193512935139351493515935169351793518935199352093521935229352393524935259352693527935289352993530935319353293533935349353593536935379353893539935409354193542935439354493545935469354793548935499355093551935529355393554935559355693557935589355993560935619356293563935649356593566935679356893569935709357193572935739357493575935769357793578935799358093581935829358393584935859358693587935889358993590935919359293593935949359593596935979359893599936009360193602936039360493605936069360793608936099361093611936129361393614936159361693617936189361993620936219362293623936249362593626936279362893629936309363193632936339363493635936369363793638936399364093641936429364393644936459364693647936489364993650936519365293653936549365593656936579365893659936609366193662936639366493665936669366793668936699367093671936729367393674936759367693677936789367993680936819368293683936849368593686936879368893689936909369193692936939369493695936969369793698936999370093701937029370393704937059370693707937089370993710937119371293713937149371593716937179371893719937209372193722937239372493725937269372793728937299373093731937329373393734937359373693737937389373993740937419374293743937449374593746937479374893749937509375193752937539375493755937569375793758937599376093761937629376393764937659376693767937689376993770937719377293773937749377593776937779377893779937809378193782937839378493785937869378793788937899379093791937929379393794937959379693797937989379993800938019380293803938049380593806938079380893809938109381193812938139381493815938169381793818938199382093821938229382393824938259382693827938289382993830938319383293833938349383593836938379383893839938409384193842938439384493845938469384793848938499385093851938529385393854938559385693857938589385993860938619386293863938649386593866938679386893869938709387193872938739387493875938769387793878938799388093881938829388393884938859388693887938889388993890938919389293893938949389593896938979389893899939009390193902939039390493905939069390793908939099391093911939129391393914939159391693917939189391993920939219392293923939249392593926939279392893929939309393193932939339393493935939369393793938939399394093941939429394393944939459394693947939489394993950939519395293953939549395593956939579395893959939609396193962939639396493965939669396793968939699397093971939729397393974939759397693977939789397993980939819398293983939849398593986939879398893989939909399193992939939399493995939969399793998939999400094001940029400394004940059400694007940089400994010940119401294013940149401594016940179401894019940209402194022940239402494025940269402794028940299403094031940329403394034940359403694037940389403994040940419404294043940449404594046940479404894049940509405194052940539405494055940569405794058940599406094061940629406394064940659406694067940689406994070940719407294073940749407594076940779407894079940809408194082940839408494085940869408794088940899409094091940929409394094940959409694097940989409994100941019410294103941049410594106941079410894109941109411194112941139411494115941169411794118941199412094121941229412394124941259412694127941289412994130941319413294133941349413594136941379413894139941409414194142941439414494145941469414794148941499415094151941529415394154941559415694157941589415994160941619416294163941649416594166941679416894169941709417194172941739417494175941769417794178941799418094181941829418394184941859418694187941889418994190941919419294193941949419594196941979419894199942009420194202942039420494205942069420794208942099421094211942129421394214942159421694217942189421994220942219422294223942249422594226942279422894229942309423194232942339423494235942369423794238942399424094241942429424394244942459424694247942489424994250942519425294253942549425594256942579425894259942609426194262942639426494265942669426794268942699427094271942729427394274942759427694277942789427994280942819428294283942849428594286942879428894289942909429194292942939429494295942969429794298942999430094301943029430394304943059430694307943089430994310943119431294313943149431594316943179431894319943209432194322943239432494325943269432794328943299433094331943329433394334943359433694337943389433994340943419434294343943449434594346943479434894349943509435194352943539435494355943569435794358943599436094361943629436394364943659436694367943689436994370943719437294373943749437594376943779437894379943809438194382943839438494385943869438794388943899439094391943929439394394943959439694397943989439994400944019440294403944049440594406944079440894409944109441194412944139441494415944169441794418944199442094421944229442394424944259442694427944289442994430944319443294433944349443594436944379443894439944409444194442944439444494445944469444794448944499445094451944529445394454944559445694457944589445994460944619446294463944649446594466944679446894469944709447194472944739447494475944769447794478944799448094481944829448394484944859448694487944889448994490944919449294493944949449594496944979449894499945009450194502945039450494505945069450794508945099451094511945129451394514945159451694517945189451994520945219452294523945249452594526945279452894529945309453194532945339453494535945369453794538945399454094541945429454394544945459454694547945489454994550945519455294553945549455594556945579455894559945609456194562945639456494565945669456794568945699457094571945729457394574945759457694577945789457994580945819458294583945849458594586945879458894589945909459194592945939459494595945969459794598945999460094601946029460394604946059460694607946089460994610946119461294613946149461594616946179461894619946209462194622946239462494625946269462794628946299463094631946329463394634946359463694637946389463994640946419464294643946449464594646946479464894649946509465194652946539465494655946569465794658946599466094661946629466394664946659466694667946689466994670946719467294673946749467594676946779467894679946809468194682946839468494685946869468794688946899469094691946929469394694946959469694697946989469994700947019470294703947049470594706947079470894709947109471194712947139471494715947169471794718947199472094721947229472394724947259472694727947289472994730947319473294733947349473594736947379473894739947409474194742947439474494745947469474794748947499475094751947529475394754947559475694757947589475994760947619476294763947649476594766947679476894769947709477194772947739477494775947769477794778947799478094781947829478394784947859478694787947889478994790947919479294793947949479594796947979479894799948009480194802948039480494805948069480794808948099481094811948129481394814948159481694817948189481994820948219482294823948249482594826948279482894829948309483194832948339483494835948369483794838948399484094841948429484394844948459484694847948489484994850948519485294853948549485594856948579485894859948609486194862948639486494865948669486794868948699487094871948729487394874948759487694877948789487994880948819488294883948849488594886948879488894889948909489194892948939489494895948969489794898948999490094901949029490394904949059490694907949089490994910949119491294913949149491594916949179491894919949209492194922949239492494925949269492794928949299493094931949329493394934949359493694937949389493994940949419494294943949449494594946949479494894949949509495194952949539495494955949569495794958949599496094961949629496394964949659496694967949689496994970949719497294973949749497594976949779497894979949809498194982949839498494985949869498794988949899499094991949929499394994949959499694997949989499995000950019500295003950049500595006950079500895009950109501195012950139501495015950169501795018950199502095021950229502395024950259502695027950289502995030950319503295033950349503595036950379503895039950409504195042950439504495045950469504795048950499505095051950529505395054950559505695057950589505995060950619506295063950649506595066950679506895069950709507195072950739507495075950769507795078950799508095081950829508395084950859508695087950889508995090950919509295093950949509595096950979509895099951009510195102951039510495105951069510795108951099511095111951129511395114951159511695117951189511995120951219512295123951249512595126951279512895129951309513195132951339513495135951369513795138951399514095141951429514395144951459514695147951489514995150951519515295153951549515595156951579515895159951609516195162951639516495165951669516795168951699517095171951729517395174951759517695177951789517995180951819518295183951849518595186951879518895189951909519195192951939519495195951969519795198951999520095201952029520395204952059520695207952089520995210952119521295213952149521595216952179521895219952209522195222952239522495225952269522795228952299523095231952329523395234952359523695237952389523995240952419524295243952449524595246952479524895249952509525195252952539525495255952569525795258952599526095261952629526395264952659526695267952689526995270952719527295273952749527595276952779527895279952809528195282952839528495285952869528795288952899529095291952929529395294952959529695297952989529995300953019530295303953049530595306953079530895309953109531195312953139531495315953169531795318953199532095321953229532395324953259532695327953289532995330953319533295333953349533595336953379533895339953409534195342953439534495345953469534795348953499535095351953529535395354953559535695357953589535995360953619536295363953649536595366953679536895369953709537195372953739537495375953769537795378953799538095381953829538395384953859538695387953889538995390953919539295393953949539595396953979539895399954009540195402954039540495405954069540795408954099541095411954129541395414954159541695417954189541995420954219542295423954249542595426954279542895429954309543195432954339543495435954369543795438954399544095441954429544395444954459544695447954489544995450954519545295453
  1. diff -Nur gmp-4.3.2.orig/aclocal.m4 gmp-4.3.2/aclocal.m4
  2. --- gmp-4.3.2.orig/aclocal.m4 2010-01-07 21:09:37.000000000 +0100
  3. +++ gmp-4.3.2/aclocal.m4 2011-02-16 19:23:16.833558505 +0100
  4. @@ -1,7 +1,7 @@
  5. -# generated automatically by aclocal 1.8.4 -*- Autoconf -*-
  6. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  7. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  8. -# Free Software Foundation, Inc.
  9. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  10. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11. # This file is free software; the Free Software Foundation
  12. # gives unlimited permission to copy and/or distribute it,
  13. # with or without modifications, as long as this notice is preserved.
  14. @@ -11,103 +11,196 @@
  15. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  16. # PARTICULAR PURPOSE.
  17. +m4_ifndef([AC_AUTOCONF_VERSION],
  18. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  19. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  20. +[m4_warning([this file was generated for autoconf 2.65.
  21. +You have another version of autoconf. It may work, but is not guaranteed to.
  22. +If you have problems, you may need to regenerate the build system entirely.
  23. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  24. +
  25. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  26. +#
  27. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  28. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  29. +# Written by Gordon Matzigkeit, 1996
  30. +#
  31. +# This file is free software; the Free Software Foundation gives
  32. +# unlimited permission to copy and/or distribute it, with or without
  33. +# modifications, as long as this notice is preserved.
  34. +
  35. +m4_define([_LT_COPYING], [dnl
  36. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  37. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  38. +# Written by Gordon Matzigkeit, 1996
  39. +#
  40. +# This file is part of GNU Libtool.
  41. +#
  42. +# GNU Libtool is free software; you can redistribute it and/or
  43. +# modify it under the terms of the GNU General Public License as
  44. +# published by the Free Software Foundation; either version 2 of
  45. +# the License, or (at your option) any later version.
  46. +#
  47. +# As a special exception to the GNU General Public License,
  48. +# if you distribute this file as part of a program or library that
  49. +# is built using GNU Libtool, you may include this file under the
  50. +# same distribution terms that you use for the rest of that program.
  51. +#
  52. +# GNU Libtool is distributed in the hope that it will be useful,
  53. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  54. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  55. +# GNU General Public License for more details.
  56. +#
  57. +# You should have received a copy of the GNU General Public License
  58. +# along with GNU Libtool; see the file COPYING. If not, a copy
  59. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  60. +# obtained by writing to the Free Software Foundation, Inc.,
  61. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  62. +])
  63. +
  64. +# serial 56 LT_INIT
  65. -# serial 51 AC_PROG_LIBTOOL
  66. +# LT_PREREQ(VERSION)
  67. +# ------------------
  68. +# Complain and exit if this libtool version is less that VERSION.
  69. +m4_defun([LT_PREREQ],
  70. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  71. + [m4_default([$3],
  72. + [m4_fatal([Libtool version $1 or higher is required],
  73. + 63)])],
  74. + [$2])])
  75. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  76. -# -----------------------------------------------------------
  77. -# If this macro is not defined by Autoconf, define it here.
  78. -m4_ifdef([AC_PROVIDE_IFELSE],
  79. - [],
  80. - [m4_define([AC_PROVIDE_IFELSE],
  81. - [m4_ifdef([AC_PROVIDE_$1],
  82. - [$2], [$3])])])
  83. +# _LT_CHECK_BUILDDIR
  84. +# ------------------
  85. +# Complain if the absolute build directory name contains unusual characters
  86. +m4_defun([_LT_CHECK_BUILDDIR],
  87. +[case `pwd` in
  88. + *\ * | *\ *)
  89. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  90. +esac
  91. +])
  92. -# AC_PROG_LIBTOOL
  93. -# ---------------
  94. -AC_DEFUN([AC_PROG_LIBTOOL],
  95. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  96. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  97. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  98. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  99. - [AC_LIBTOOL_CXX],
  100. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  101. - ])])
  102. -dnl And a similar setup for Fortran 77 support
  103. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  104. - [AC_LIBTOOL_F77],
  105. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  106. -])])
  107. -
  108. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  109. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  110. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  111. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  112. - [AC_LIBTOOL_GCJ],
  113. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  114. - [AC_LIBTOOL_GCJ],
  115. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  116. - [AC_LIBTOOL_GCJ],
  117. - [ifdef([AC_PROG_GCJ],
  118. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  119. - ifdef([A][M_PROG_GCJ],
  120. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  121. - ifdef([LT_AC_PROG_GCJ],
  122. - [define([LT_AC_PROG_GCJ],
  123. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  124. -])])# AC_PROG_LIBTOOL
  125. +# LT_INIT([OPTIONS])
  126. +# ------------------
  127. +AC_DEFUN([LT_INIT],
  128. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  129. +AC_BEFORE([$0], [LT_LANG])dnl
  130. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  131. +AC_BEFORE([$0], [LTDL_INIT])dnl
  132. +m4_require([_LT_CHECK_BUILDDIR])dnl
  133. +
  134. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  135. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  136. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  137. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  138. +dnl unless we require an AC_DEFUNed macro:
  139. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  140. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  141. +AC_REQUIRE([LTVERSION_VERSION])dnl
  142. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  143. +m4_require([_LT_PROG_LTMAIN])dnl
  144. -# _AC_PROG_LIBTOOL
  145. -# ----------------
  146. -AC_DEFUN([_AC_PROG_LIBTOOL],
  147. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  148. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  149. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  150. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  151. +dnl Parse OPTIONS
  152. +_LT_SET_OPTIONS([$0], [$1])
  153. # This can be used to rebuild libtool when needed
  154. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  155. +LIBTOOL_DEPS="$ltmain"
  156. # Always use our own libtool.
  157. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  158. AC_SUBST(LIBTOOL)dnl
  159. -# Prevent multiple expansion
  160. -define([AC_PROG_LIBTOOL], [])
  161. -])# _AC_PROG_LIBTOOL
  162. +_LT_SETUP
  163. +# Only expand once:
  164. +m4_define([LT_INIT])
  165. +])# LT_INIT
  166. +
  167. +# Old names:
  168. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  169. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  170. +dnl aclocal-1.4 backwards compatibility:
  171. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  172. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  173. -# AC_LIBTOOL_SETUP
  174. -# ----------------
  175. -AC_DEFUN([AC_LIBTOOL_SETUP],
  176. -[AC_PREREQ(2.50)dnl
  177. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  178. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  179. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  180. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  181. +
  182. +# _LT_CC_BASENAME(CC)
  183. +# -------------------
  184. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  185. +m4_defun([_LT_CC_BASENAME],
  186. +[for cc_temp in $1""; do
  187. + case $cc_temp in
  188. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  189. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  190. + \-*) ;;
  191. + *) break;;
  192. + esac
  193. +done
  194. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  195. +])
  196. +
  197. +
  198. +# _LT_FILEUTILS_DEFAULTS
  199. +# ----------------------
  200. +# It is okay to use these file commands and assume they have been set
  201. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  202. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  203. +[: ${CP="cp -f"}
  204. +: ${MV="mv -f"}
  205. +: ${RM="rm -f"}
  206. +])# _LT_FILEUTILS_DEFAULTS
  207. +
  208. +
  209. +# _LT_SETUP
  210. +# ---------
  211. +m4_defun([_LT_SETUP],
  212. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  213. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  214. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  215. +_LT_DECL([], [host], [0])dnl
  216. +_LT_DECL([], [host_os], [0])dnl
  217. +dnl
  218. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  219. +_LT_DECL([], [build], [0])dnl
  220. +_LT_DECL([], [build_os], [0])dnl
  221. +dnl
  222. AC_REQUIRE([AC_PROG_CC])dnl
  223. -AC_REQUIRE([AC_PROG_LD])dnl
  224. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  225. -AC_REQUIRE([AC_PROG_NM])dnl
  226. -
  227. +AC_REQUIRE([LT_PATH_LD])dnl
  228. +AC_REQUIRE([LT_PATH_NM])dnl
  229. +dnl
  230. AC_REQUIRE([AC_PROG_LN_S])dnl
  231. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  232. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  233. -AC_REQUIRE([AC_OBJEXT])dnl
  234. -AC_REQUIRE([AC_EXEEXT])dnl
  235. +test -z "$LN_S" && LN_S="ln -s"
  236. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  237. dnl
  238. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  239. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  240. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  241. +dnl
  242. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  243. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  244. +m4_require([_LT_CMD_RELOAD])dnl
  245. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  246. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  247. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  248. +
  249. +_LT_CONFIG_LIBTOOL_INIT([
  250. +# See if we are running on zsh, and set the options which allow our
  251. +# commands through without removal of \ escapes INIT.
  252. +if test -n "\${ZSH_VERSION+set}" ; then
  253. + setopt NO_GLOB_SUBST
  254. +fi
  255. +])
  256. +if test -n "${ZSH_VERSION+set}" ; then
  257. + setopt NO_GLOB_SUBST
  258. +fi
  259. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  260. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  261. -AC_LIBTOOL_OBJDIR
  262. +_LT_CHECK_OBJDIR
  263. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  264. -_LT_AC_PROG_ECHO_BACKSLASH
  265. +m4_require([_LT_TAG_COMPILER])dnl
  266. +_LT_PROG_ECHO_BACKSLASH
  267. case $host_os in
  268. aix3*)
  269. @@ -123,114 +216,653 @@
  270. # Sed substitution that helps us do robust quoting. It backslashifies
  271. # metacharacters that are still active within double-quoted strings.
  272. -Xsed='sed -e 1s/^X//'
  273. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  274. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  275. # Same as above, but do not quote variable references.
  276. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  277. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  278. # Sed substitution to delay expansion of an escaped shell variable in a
  279. # double_quote_subst'ed string.
  280. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  281. +# Sed substitution to delay expansion of an escaped single quote.
  282. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  283. +
  284. # Sed substitution to avoid accidental globbing in evaled expressions
  285. no_glob_subst='s/\*/\\\*/g'
  286. -# Constants:
  287. -rm="rm -f"
  288. -
  289. # Global variables:
  290. -default_ofile=libtool
  291. +ofile=libtool
  292. can_build_shared=yes
  293. # All known linkers require a `.a' archive for static linking (except MSVC,
  294. # which needs '.lib').
  295. libext=a
  296. -ltmain="$ac_aux_dir/ltmain.sh"
  297. -ofile="$default_ofile"
  298. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  299. -AC_CHECK_TOOL(AR, ar, false)
  300. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  301. -AC_CHECK_TOOL(STRIP, strip, :)
  302. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  303. old_CC="$CC"
  304. old_CFLAGS="$CFLAGS"
  305. # Set sane defaults for various variables
  306. -test -z "$AR" && AR=ar
  307. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  308. -test -z "$AS" && AS=as
  309. test -z "$CC" && CC=cc
  310. test -z "$LTCC" && LTCC=$CC
  311. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  312. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  313. test -z "$LD" && LD=ld
  314. -test -z "$LN_S" && LN_S="ln -s"
  315. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  316. -test -z "$NM" && NM=nm
  317. -test -z "$SED" && SED=sed
  318. -test -z "$OBJDUMP" && OBJDUMP=objdump
  319. -test -z "$RANLIB" && RANLIB=:
  320. -test -z "$STRIP" && STRIP=:
  321. test -z "$ac_objext" && ac_objext=o
  322. -# Determine commands to create old-style static archives.
  323. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  324. -old_postinstall_cmds='chmod 644 $oldlib'
  325. -old_postuninstall_cmds=
  326. -
  327. -if test -n "$RANLIB"; then
  328. - case $host_os in
  329. - openbsd*)
  330. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  331. - ;;
  332. - *)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  334. - ;;
  335. - esac
  336. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  337. -fi
  338. -
  339. _LT_CC_BASENAME([$compiler])
  340. # Only perform the check for file, if the check method requires it
  341. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  342. case $deplibs_check_method in
  343. file_magic*)
  344. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  345. - AC_PATH_MAGIC
  346. + _LT_PATH_MAGIC
  347. fi
  348. ;;
  349. esac
  350. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  351. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  352. -enable_win32_dll=yes, enable_win32_dll=no)
  353. -
  354. -AC_ARG_ENABLE([libtool-lock],
  355. - [AC_HELP_STRING([--disable-libtool-lock],
  356. - [avoid locking (might break parallel builds)])])
  357. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  358. +# Use C for the default configuration in the libtool script
  359. +LT_SUPPORTED_TAG([CC])
  360. +_LT_LANG_C_CONFIG
  361. +_LT_LANG_DEFAULT_CONFIG
  362. +_LT_CONFIG_COMMANDS
  363. +])# _LT_SETUP
  364. -AC_ARG_WITH([pic],
  365. - [AC_HELP_STRING([--with-pic],
  366. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  367. - [pic_mode="$withval"],
  368. - [pic_mode=default])
  369. -test -z "$pic_mode" && pic_mode=default
  370. -# Use C for the default configuration in the libtool script
  371. -tagname=
  372. -AC_LIBTOOL_LANG_C_CONFIG
  373. -_LT_AC_TAGCONFIG
  374. -])# AC_LIBTOOL_SETUP
  375. +# _LT_PROG_LTMAIN
  376. +# ---------------
  377. +# Note that this code is called both from `configure', and `config.status'
  378. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  379. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  380. +# so we pass a copy along to make sure it has a sensible value anyway.
  381. +m4_defun([_LT_PROG_LTMAIN],
  382. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  383. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  384. +ltmain="$ac_aux_dir/ltmain.sh"
  385. +])# _LT_PROG_LTMAIN
  386. +
  387. +
  388. +
  389. +# So that we can recreate a full libtool script including additional
  390. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  391. +# in macros and then make a single call at the end using the `libtool'
  392. +# label.
  393. +
  394. +
  395. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  396. +# ----------------------------------------
  397. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  398. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  399. +[m4_ifval([$1],
  400. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  401. + [$1
  402. +])])])
  403. +
  404. +# Initialize.
  405. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  406. +
  407. +
  408. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  409. +# ------------------------------
  410. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  411. +m4_define([_LT_CONFIG_LIBTOOL],
  412. +[m4_ifval([$1],
  413. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  414. + [$1
  415. +])])])
  416. +
  417. +# Initialize.
  418. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  419. +
  420. +
  421. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  422. +# -----------------------------------------------------
  423. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  424. +[_LT_CONFIG_LIBTOOL([$1])
  425. +_LT_CONFIG_LIBTOOL_INIT([$2])
  426. +])
  427. +
  428. +
  429. +# _LT_FORMAT_COMMENT([COMMENT])
  430. +# -----------------------------
  431. +# Add leading comment marks to the start of each line, and a trailing
  432. +# full-stop to the whole comment if one is not present already.
  433. +m4_define([_LT_FORMAT_COMMENT],
  434. +[m4_ifval([$1], [
  435. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  436. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  437. +)])
  438. +
  439. +
  440. +
  441. +
  442. +
  443. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  444. +# -------------------------------------------------------------------
  445. +# CONFIGNAME is the name given to the value in the libtool script.
  446. +# VARNAME is the (base) name used in the configure script.
  447. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  448. +# VARNAME. Any other value will be used directly.
  449. +m4_define([_LT_DECL],
  450. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  451. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  452. + [m4_ifval([$1], [$1], [$2])])
  453. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  454. + m4_ifval([$4],
  455. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  456. + lt_dict_add_subkey([lt_decl_dict], [$2],
  457. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  458. +])
  459. +
  460. +
  461. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  462. +# --------------------------------------------------------
  463. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  464. +
  465. +
  466. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  467. +# ------------------------------------------------
  468. +m4_define([lt_decl_tag_varnames],
  469. +[_lt_decl_filter([tagged?], [yes], $@)])
  470. +
  471. +
  472. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  473. +# ---------------------------------------------------------
  474. +m4_define([_lt_decl_filter],
  475. +[m4_case([$#],
  476. + [0], [m4_fatal([$0: too few arguments: $#])],
  477. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  478. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  479. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  480. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  481. +])
  482. +
  483. +
  484. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  485. +# --------------------------------------------------
  486. +m4_define([lt_decl_quote_varnames],
  487. +[_lt_decl_filter([value], [1], $@)])
  488. +
  489. +
  490. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  491. +# ---------------------------------------------------
  492. +m4_define([lt_decl_dquote_varnames],
  493. +[_lt_decl_filter([value], [2], $@)])
  494. +
  495. +
  496. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  497. +# ---------------------------------------------------
  498. +m4_define([lt_decl_varnames_tagged],
  499. +[m4_assert([$# <= 2])dnl
  500. +_$0(m4_quote(m4_default([$1], [[, ]])),
  501. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  502. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  503. +m4_define([_lt_decl_varnames_tagged],
  504. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  505. +
  506. +
  507. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  508. +# ------------------------------------------------
  509. +m4_define([lt_decl_all_varnames],
  510. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  511. + m4_if([$2], [],
  512. + m4_quote(lt_decl_varnames),
  513. + m4_quote(m4_shift($@))))[]dnl
  514. +])
  515. +m4_define([_lt_decl_all_varnames],
  516. +[lt_join($@, lt_decl_varnames_tagged([$1],
  517. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  518. +])
  519. +
  520. +
  521. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  522. +# ------------------------------------
  523. +# Quote a variable value, and forward it to `config.status' so that its
  524. +# declaration there will have the same value as in `configure'. VARNAME
  525. +# must have a single quote delimited value for this to work.
  526. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  527. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  528. +
  529. +# _LT_CONFIG_STATUS_DECLARATIONS
  530. +# ------------------------------
  531. +# We delimit libtool config variables with single quotes, so when
  532. +# we write them to config.status, we have to be sure to quote all
  533. +# embedded single quotes properly. In configure, this macro expands
  534. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  535. +#
  536. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  537. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  538. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  539. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  540. +
  541. +
  542. +# _LT_LIBTOOL_TAGS
  543. +# ----------------
  544. +# Output comment and list of tags supported by the script
  545. +m4_defun([_LT_LIBTOOL_TAGS],
  546. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  547. +available_tags="_LT_TAGS"dnl
  548. +])
  549. +
  550. +
  551. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  552. +# -----------------------------------
  553. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  554. +# expand to a commented shell variable setting:
  555. +#
  556. +# # Some comment about what VAR is for.
  557. +# visible_name=$lt_internal_name
  558. +m4_define([_LT_LIBTOOL_DECLARE],
  559. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  560. + [description])))[]dnl
  561. +m4_pushdef([_libtool_name],
  562. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  563. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  564. + [0], [_libtool_name=[$]$1],
  565. + [1], [_libtool_name=$lt_[]$1],
  566. + [2], [_libtool_name=$lt_[]$1],
  567. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  568. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  569. +])
  570. +
  571. +
  572. +# _LT_LIBTOOL_CONFIG_VARS
  573. +# -----------------------
  574. +# Produce commented declarations of non-tagged libtool config variables
  575. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  576. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  577. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  578. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  579. +[m4_foreach([_lt_var],
  580. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  581. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  582. +
  583. +
  584. +# _LT_LIBTOOL_TAG_VARS(TAG)
  585. +# -------------------------
  586. +m4_define([_LT_LIBTOOL_TAG_VARS],
  587. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  588. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  589. +
  590. +
  591. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  592. +# ------------------------------
  593. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  594. -# _LT_AC_SYS_COMPILER
  595. +
  596. +# _LT_CONFIG_COMMANDS
  597. # -------------------
  598. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  599. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  600. +# variables for single and double quote escaping we saved from calls
  601. +# to _LT_DECL, we can put quote escaped variables declarations
  602. +# into `config.status', and then the shell code to quote escape them in
  603. +# for loops in `config.status'. Finally, any additional code accumulated
  604. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  605. +m4_defun([_LT_CONFIG_COMMANDS],
  606. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  607. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  608. + dnl instead of duplicating it all over again into config.status,
  609. + dnl then we will have config.status run $CONFIG_LT later, so it
  610. + dnl needs to know what name is stored there:
  611. + [AC_CONFIG_COMMANDS([libtool],
  612. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  613. + dnl If the libtool generation code is destined for config.status,
  614. + dnl expand the accumulated commands and init code now:
  615. + [AC_CONFIG_COMMANDS([libtool],
  616. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  617. +])#_LT_CONFIG_COMMANDS
  618. +
  619. +
  620. +# Initialize.
  621. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  622. +[
  623. +
  624. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  625. +# if CDPATH is set.
  626. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  627. +
  628. +sed_quote_subst='$sed_quote_subst'
  629. +double_quote_subst='$double_quote_subst'
  630. +delay_variable_subst='$delay_variable_subst'
  631. +_LT_CONFIG_STATUS_DECLARATIONS
  632. +LTCC='$LTCC'
  633. +LTCFLAGS='$LTCFLAGS'
  634. +compiler='$compiler_DEFAULT'
  635. +
  636. +# Quote evaled strings.
  637. +for var in lt_decl_all_varnames([[ \
  638. +]], lt_decl_quote_varnames); do
  639. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  640. + *[[\\\\\\\`\\"\\\$]]*)
  641. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  642. + ;;
  643. + *)
  644. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  645. + ;;
  646. + esac
  647. +done
  648. +
  649. +# Double-quote double-evaled strings.
  650. +for var in lt_decl_all_varnames([[ \
  651. +]], lt_decl_dquote_varnames); do
  652. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  653. + *[[\\\\\\\`\\"\\\$]]*)
  654. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  655. + ;;
  656. + *)
  657. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  658. + ;;
  659. + esac
  660. +done
  661. +
  662. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  663. +case \$lt_ECHO in
  664. +*'\\\[$]0 --fallback-echo"')dnl "
  665. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  666. + ;;
  667. +esac
  668. +
  669. +_LT_OUTPUT_LIBTOOL_INIT
  670. +])
  671. +
  672. +
  673. +# LT_OUTPUT
  674. +# ---------
  675. +# This macro allows early generation of the libtool script (before
  676. +# AC_OUTPUT is called), incase it is used in configure for compilation
  677. +# tests.
  678. +AC_DEFUN([LT_OUTPUT],
  679. +[: ${CONFIG_LT=./config.lt}
  680. +AC_MSG_NOTICE([creating $CONFIG_LT])
  681. +cat >"$CONFIG_LT" <<_LTEOF
  682. +#! $SHELL
  683. +# Generated by $as_me.
  684. +# Run this file to recreate a libtool stub with the current configuration.
  685. +
  686. +lt_cl_silent=false
  687. +SHELL=\${CONFIG_SHELL-$SHELL}
  688. +_LTEOF
  689. +
  690. +cat >>"$CONFIG_LT" <<\_LTEOF
  691. +AS_SHELL_SANITIZE
  692. +_AS_PREPARE
  693. +
  694. +exec AS_MESSAGE_FD>&1
  695. +exec AS_MESSAGE_LOG_FD>>config.log
  696. +{
  697. + echo
  698. + AS_BOX([Running $as_me.])
  699. +} >&AS_MESSAGE_LOG_FD
  700. +
  701. +lt_cl_help="\
  702. +\`$as_me' creates a local libtool stub from the current configuration,
  703. +for use in further configure time tests before the real libtool is
  704. +generated.
  705. +
  706. +Usage: $[0] [[OPTIONS]]
  707. +
  708. + -h, --help print this help, then exit
  709. + -V, --version print version number, then exit
  710. + -q, --quiet do not print progress messages
  711. + -d, --debug don't remove temporary files
  712. +
  713. +Report bugs to <bug-libtool@gnu.org>."
  714. +
  715. +lt_cl_version="\
  716. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  717. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  718. +configured by $[0], generated by m4_PACKAGE_STRING.
  719. +
  720. +Copyright (C) 2008 Free Software Foundation, Inc.
  721. +This config.lt script is free software; the Free Software Foundation
  722. +gives unlimited permision to copy, distribute and modify it."
  723. +
  724. +while test $[#] != 0
  725. +do
  726. + case $[1] in
  727. + --version | --v* | -V )
  728. + echo "$lt_cl_version"; exit 0 ;;
  729. + --help | --h* | -h )
  730. + echo "$lt_cl_help"; exit 0 ;;
  731. + --debug | --d* | -d )
  732. + debug=: ;;
  733. + --quiet | --q* | --silent | --s* | -q )
  734. + lt_cl_silent=: ;;
  735. +
  736. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  737. +Try \`$[0] --help' for more information.]) ;;
  738. +
  739. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  740. +Try \`$[0] --help' for more information.]) ;;
  741. + esac
  742. + shift
  743. +done
  744. +
  745. +if $lt_cl_silent; then
  746. + exec AS_MESSAGE_FD>/dev/null
  747. +fi
  748. +_LTEOF
  749. +
  750. +cat >>"$CONFIG_LT" <<_LTEOF
  751. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  752. +_LTEOF
  753. +
  754. +cat >>"$CONFIG_LT" <<\_LTEOF
  755. +AC_MSG_NOTICE([creating $ofile])
  756. +_LT_OUTPUT_LIBTOOL_COMMANDS
  757. +AS_EXIT(0)
  758. +_LTEOF
  759. +chmod +x "$CONFIG_LT"
  760. +
  761. +# configure is writing to config.log, but config.lt does its own redirection,
  762. +# appending to config.log, which fails on DOS, as config.log is still kept
  763. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  764. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  765. +if test "$no_create" != yes; then
  766. + lt_cl_success=:
  767. + test "$silent" = yes &&
  768. + lt_config_lt_args="$lt_config_lt_args --quiet"
  769. + exec AS_MESSAGE_LOG_FD>/dev/null
  770. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  771. + exec AS_MESSAGE_LOG_FD>>config.log
  772. + $lt_cl_success || AS_EXIT(1)
  773. +fi
  774. +])# LT_OUTPUT
  775. +
  776. +
  777. +# _LT_CONFIG(TAG)
  778. +# ---------------
  779. +# If TAG is the built-in tag, create an initial libtool script with a
  780. +# default configuration from the untagged config vars. Otherwise add code
  781. +# to config.status for appending the configuration named by TAG from the
  782. +# matching tagged config vars.
  783. +m4_defun([_LT_CONFIG],
  784. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  785. +_LT_CONFIG_SAVE_COMMANDS([
  786. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  787. + m4_if(_LT_TAG, [C], [
  788. + # See if we are running on zsh, and set the options which allow our
  789. + # commands through without removal of \ escapes.
  790. + if test -n "${ZSH_VERSION+set}" ; then
  791. + setopt NO_GLOB_SUBST
  792. + fi
  793. +
  794. + cfgfile="${ofile}T"
  795. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  796. + $RM "$cfgfile"
  797. +
  798. + cat <<_LT_EOF >> "$cfgfile"
  799. +#! $SHELL
  800. +
  801. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  802. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  803. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  804. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  805. +#
  806. +_LT_COPYING
  807. +_LT_LIBTOOL_TAGS
  808. +
  809. +# ### BEGIN LIBTOOL CONFIG
  810. +_LT_LIBTOOL_CONFIG_VARS
  811. +_LT_LIBTOOL_TAG_VARS
  812. +# ### END LIBTOOL CONFIG
  813. +
  814. +_LT_EOF
  815. +
  816. + case $host_os in
  817. + aix3*)
  818. + cat <<\_LT_EOF >> "$cfgfile"
  819. +# AIX sometimes has problems with the GCC collect2 program. For some
  820. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  821. +# vanish in a puff of smoke.
  822. +if test "X${COLLECT_NAMES+set}" != Xset; then
  823. + COLLECT_NAMES=
  824. + export COLLECT_NAMES
  825. +fi
  826. +_LT_EOF
  827. + ;;
  828. + esac
  829. +
  830. + _LT_PROG_LTMAIN
  831. +
  832. + # We use sed instead of cat because bash on DJGPP gets confused if
  833. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  834. + # text mode, it properly converts lines to CR/LF. This bash problem
  835. + # is reportedly fixed, but why not run on old versions too?
  836. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  837. + || (rm -f "$cfgfile"; exit 1)
  838. +
  839. + _LT_PROG_XSI_SHELLFNS
  840. +
  841. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  842. + || (rm -f "$cfgfile"; exit 1)
  843. +
  844. + mv -f "$cfgfile" "$ofile" ||
  845. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  846. + chmod +x "$ofile"
  847. +],
  848. +[cat <<_LT_EOF >> "$ofile"
  849. +
  850. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  851. +dnl in a comment (ie after a #).
  852. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  853. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  854. +# ### END LIBTOOL TAG CONFIG: $1
  855. +_LT_EOF
  856. +])dnl /m4_if
  857. +],
  858. +[m4_if([$1], [], [
  859. + PACKAGE='$PACKAGE'
  860. + VERSION='$VERSION'
  861. + TIMESTAMP='$TIMESTAMP'
  862. + RM='$RM'
  863. + ofile='$ofile'], [])
  864. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  865. +])# _LT_CONFIG
  866. +
  867. +
  868. +# LT_SUPPORTED_TAG(TAG)
  869. +# ---------------------
  870. +# Trace this macro to discover what tags are supported by the libtool
  871. +# --tag option, using:
  872. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  873. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  874. +
  875. +
  876. +# C support is built-in for now
  877. +m4_define([_LT_LANG_C_enabled], [])
  878. +m4_define([_LT_TAGS], [])
  879. +
  880. +
  881. +# LT_LANG(LANG)
  882. +# -------------
  883. +# Enable libtool support for the given language if not already enabled.
  884. +AC_DEFUN([LT_LANG],
  885. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  886. +m4_case([$1],
  887. + [C], [_LT_LANG(C)],
  888. + [C++], [_LT_LANG(CXX)],
  889. + [Java], [_LT_LANG(GCJ)],
  890. + [Fortran 77], [_LT_LANG(F77)],
  891. + [Fortran], [_LT_LANG(FC)],
  892. + [Windows Resource], [_LT_LANG(RC)],
  893. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  894. + [_LT_LANG($1)],
  895. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  896. +])# LT_LANG
  897. +
  898. +
  899. +# _LT_LANG(LANGNAME)
  900. +# ------------------
  901. +m4_defun([_LT_LANG],
  902. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  903. + [LT_SUPPORTED_TAG([$1])dnl
  904. + m4_append([_LT_TAGS], [$1 ])dnl
  905. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  906. + _LT_LANG_$1_CONFIG($1)])dnl
  907. +])# _LT_LANG
  908. +
  909. +
  910. +# _LT_LANG_DEFAULT_CONFIG
  911. +# -----------------------
  912. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  913. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  914. + [LT_LANG(CXX)],
  915. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  916. +
  917. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  918. + [LT_LANG(F77)],
  919. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  920. +
  921. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  922. + [LT_LANG(FC)],
  923. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  924. +
  925. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  926. +dnl pulling things in needlessly.
  927. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  928. + [LT_LANG(GCJ)],
  929. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  930. + [LT_LANG(GCJ)],
  931. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  932. + [LT_LANG(GCJ)],
  933. + [m4_ifdef([AC_PROG_GCJ],
  934. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  935. + m4_ifdef([A][M_PROG_GCJ],
  936. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  937. + m4_ifdef([LT_PROG_GCJ],
  938. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  939. +
  940. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  941. + [LT_LANG(RC)],
  942. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  943. +])# _LT_LANG_DEFAULT_CONFIG
  944. +
  945. +# Obsolete macros:
  946. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  947. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  948. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  949. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  950. +dnl aclocal-1.4 backwards compatibility:
  951. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  952. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  953. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  954. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  955. +
  956. +
  957. +# _LT_TAG_COMPILER
  958. +# ----------------
  959. +m4_defun([_LT_TAG_COMPILER],
  960. [AC_REQUIRE([AC_PROG_CC])dnl
  961. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  962. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  963. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  964. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  965. +
  966. # If no C compiler was specified, use CC.
  967. LTCC=${LTCC-"$CC"}
  968. @@ -239,36 +871,20 @@
  969. # Allow CC to be a program name with arguments.
  970. compiler=$CC
  971. -])# _LT_AC_SYS_COMPILER
  972. -
  973. -
  974. -# _LT_CC_BASENAME(CC)
  975. -# -------------------
  976. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  977. -AC_DEFUN([_LT_CC_BASENAME],
  978. -[for cc_temp in $1""; do
  979. - case $cc_temp in
  980. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  981. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  982. - \-*) ;;
  983. - *) break;;
  984. - esac
  985. -done
  986. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  987. -])
  988. +])# _LT_TAG_COMPILER
  989. # _LT_COMPILER_BOILERPLATE
  990. # ------------------------
  991. # Check for compiler boilerplate output or warnings with
  992. # the simple compiler test code.
  993. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  994. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  995. +m4_defun([_LT_COMPILER_BOILERPLATE],
  996. +[m4_require([_LT_DECL_SED])dnl
  997. ac_outfile=conftest.$ac_objext
  998. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  999. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1000. _lt_compiler_boilerplate=`cat conftest.err`
  1001. -$rm conftest*
  1002. +$RM conftest*
  1003. ])# _LT_COMPILER_BOILERPLATE
  1004. @@ -276,26 +892,150 @@
  1005. # ----------------------
  1006. # Check for linker boilerplate output or warnings with
  1007. # the simple link test code.
  1008. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1009. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1010. +m4_defun([_LT_LINKER_BOILERPLATE],
  1011. +[m4_require([_LT_DECL_SED])dnl
  1012. ac_outfile=conftest.$ac_objext
  1013. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1014. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1015. _lt_linker_boilerplate=`cat conftest.err`
  1016. -$rm conftest*
  1017. +$RM -r conftest*
  1018. ])# _LT_LINKER_BOILERPLATE
  1019. +# _LT_REQUIRED_DARWIN_CHECKS
  1020. +# -------------------------
  1021. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1022. + case $host_os in
  1023. + rhapsody* | darwin*)
  1024. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1025. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1026. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1027. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1028. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1029. + _LT_DECL([], [DSYMUTIL], [1],
  1030. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1031. + _LT_DECL([], [NMEDIT], [1],
  1032. + [Tool to change global to local symbols on Mac OS X])
  1033. + _LT_DECL([], [LIPO], [1],
  1034. + [Tool to manipulate fat objects and archives on Mac OS X])
  1035. + _LT_DECL([], [OTOOL], [1],
  1036. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1037. + _LT_DECL([], [OTOOL64], [1],
  1038. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1039. +
  1040. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1041. + [lt_cv_apple_cc_single_mod=no
  1042. + if test -z "${LT_MULTI_MODULE}"; then
  1043. + # By default we will add the -single_module flag. You can override
  1044. + # by either setting the environment variable LT_MULTI_MODULE
  1045. + # non-empty at configure time, or by adding -multi_module to the
  1046. + # link flags.
  1047. + rm -rf libconftest.dylib*
  1048. + echo "int foo(void){return 1;}" > conftest.c
  1049. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1050. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1051. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1052. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1053. + _lt_result=$?
  1054. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1055. + lt_cv_apple_cc_single_mod=yes
  1056. + else
  1057. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1058. + fi
  1059. + rm -rf libconftest.dylib*
  1060. + rm -f conftest.*
  1061. + fi])
  1062. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1063. + [lt_cv_ld_exported_symbols_list],
  1064. + [lt_cv_ld_exported_symbols_list=no
  1065. + save_LDFLAGS=$LDFLAGS
  1066. + echo "_main" > conftest.sym
  1067. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1068. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1069. + [lt_cv_ld_exported_symbols_list=yes],
  1070. + [lt_cv_ld_exported_symbols_list=no])
  1071. + LDFLAGS="$save_LDFLAGS"
  1072. + ])
  1073. + case $host_os in
  1074. + rhapsody* | darwin1.[[012]])
  1075. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1076. + darwin1.*)
  1077. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1078. + darwin*) # darwin 5.x on
  1079. + # if running on 10.5 or later, the deployment target defaults
  1080. + # to the OS version, if on x86, and 10.4, the deployment
  1081. + # target defaults to 10.4. Don't you love it?
  1082. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1083. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1084. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1085. + 10.[[012]]*)
  1086. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1087. + 10.*)
  1088. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1089. + esac
  1090. + ;;
  1091. + esac
  1092. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1093. + _lt_dar_single_mod='$single_module'
  1094. + fi
  1095. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1096. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1097. + else
  1098. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1099. + fi
  1100. + if test "$DSYMUTIL" != ":"; then
  1101. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1102. + else
  1103. + _lt_dsymutil=
  1104. + fi
  1105. + ;;
  1106. + esac
  1107. +])
  1108. -# _LT_AC_SYS_LIBPATH_AIX
  1109. -# ----------------------
  1110. +
  1111. +# _LT_DARWIN_LINKER_FEATURES
  1112. +# --------------------------
  1113. +# Checks for linker and compiler features on darwin
  1114. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1115. +[
  1116. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1117. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1118. + _LT_TAGVAR(hardcode_direct, $1)=no
  1119. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1120. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1121. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1122. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1123. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1124. + case $cc_basename in
  1125. + ifort*) _lt_dar_can_shared=yes ;;
  1126. + *) _lt_dar_can_shared=$GCC ;;
  1127. + esac
  1128. + if test "$_lt_dar_can_shared" = "yes"; then
  1129. + output_verbose_link_cmd=echo
  1130. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1131. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1132. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1133. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1134. + m4_if([$1], [CXX],
  1135. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1136. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1137. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1138. + fi
  1139. +],[])
  1140. + else
  1141. + _LT_TAGVAR(ld_shlibs, $1)=no
  1142. + fi
  1143. +])
  1144. +
  1145. +# _LT_SYS_MODULE_PATH_AIX
  1146. +# -----------------------
  1147. # Links a minimal program and checks the executable
  1148. # for the system default hardcoded library path. In most cases,
  1149. # this is /usr/lib:/lib, but when the MPI compilers are used
  1150. # the location of the communication and MPI libs are included too.
  1151. # If we don't find anything, use the default library path according
  1152. # to the aix ld manual.
  1153. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1154. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1155. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1156. +[m4_require([_LT_DECL_SED])dnl
  1157. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1158. lt_aix_libpath_sed='
  1159. /Import File Strings/,/^$/ {
  1160. @@ -310,45 +1050,45 @@
  1161. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1162. fi],[])
  1163. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1164. -])# _LT_AC_SYS_LIBPATH_AIX
  1165. +])# _LT_SYS_MODULE_PATH_AIX
  1166. -# _LT_AC_SHELL_INIT(ARG)
  1167. -# ----------------------
  1168. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1169. +# _LT_SHELL_INIT(ARG)
  1170. +# -------------------
  1171. +m4_define([_LT_SHELL_INIT],
  1172. [ifdef([AC_DIVERSION_NOTICE],
  1173. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1174. [AC_DIVERT_PUSH(NOTICE)])
  1175. $1
  1176. AC_DIVERT_POP
  1177. -])# _LT_AC_SHELL_INIT
  1178. +])# _LT_SHELL_INIT
  1179. -# _LT_AC_PROG_ECHO_BACKSLASH
  1180. -# --------------------------
  1181. +# _LT_PROG_ECHO_BACKSLASH
  1182. +# -----------------------
  1183. # Add some code to the start of the generated configure script which
  1184. # will find an echo command which doesn't interpret backslashes.
  1185. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1186. -[_LT_AC_SHELL_INIT([
  1187. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1188. +[_LT_SHELL_INIT([
  1189. # Check that we are running under the correct shell.
  1190. SHELL=${CONFIG_SHELL-/bin/sh}
  1191. -case X$ECHO in
  1192. +case X$lt_ECHO in
  1193. X*--fallback-echo)
  1194. # Remove one level of quotation (which was required for Make).
  1195. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1196. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1197. ;;
  1198. esac
  1199. -echo=${ECHO-echo}
  1200. +ECHO=${lt_ECHO-echo}
  1201. if test "X[$]1" = X--no-reexec; then
  1202. # Discard the --no-reexec flag, and continue.
  1203. shift
  1204. elif test "X[$]1" = X--fallback-echo; then
  1205. # Avoid inline document here, it may be left over
  1206. :
  1207. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1208. - # Yippee, $echo works!
  1209. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1210. + # Yippee, $ECHO works!
  1211. :
  1212. else
  1213. # Restart under the correct shell.
  1214. @@ -358,9 +1098,9 @@
  1215. if test "X[$]1" = X--fallback-echo; then
  1216. # used as fallback echo
  1217. shift
  1218. - cat <<EOF
  1219. + cat <<_LT_EOF
  1220. [$]*
  1221. -EOF
  1222. +_LT_EOF
  1223. exit 0
  1224. fi
  1225. @@ -368,124 +1108,127 @@
  1226. # if CDPATH is set.
  1227. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1228. -if test -z "$ECHO"; then
  1229. -if test "X${echo_test_string+set}" != Xset; then
  1230. -# find a string as large as possible, as long as the shell can cope with it
  1231. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1232. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1233. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1234. - echo_test_string=`eval $cmd` &&
  1235. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1236. - then
  1237. - break
  1238. - fi
  1239. - done
  1240. -fi
  1241. +if test -z "$lt_ECHO"; then
  1242. + if test "X${echo_test_string+set}" != Xset; then
  1243. + # find a string as large as possible, as long as the shell can cope with it
  1244. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1245. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1246. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1247. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1248. + then
  1249. + break
  1250. + fi
  1251. + done
  1252. + fi
  1253. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1254. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1255. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1256. - :
  1257. -else
  1258. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1259. - # backslashes. This makes it impossible to quote backslashes using
  1260. - # echo "$something" | sed 's/\\/\\\\/g'
  1261. - #
  1262. - # So, first we look for a working echo in the user's PATH.
  1263. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1264. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1265. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1266. + :
  1267. + else
  1268. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1269. + # backslashes. This makes it impossible to quote backslashes using
  1270. + # echo "$something" | sed 's/\\/\\\\/g'
  1271. + #
  1272. + # So, first we look for a working echo in the user's PATH.
  1273. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1274. - for dir in $PATH /usr/ucb; do
  1275. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1276. + for dir in $PATH /usr/ucb; do
  1277. + IFS="$lt_save_ifs"
  1278. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1279. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1280. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1281. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1282. + ECHO="$dir/echo"
  1283. + break
  1284. + fi
  1285. + done
  1286. IFS="$lt_save_ifs"
  1287. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1288. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1289. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1290. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1291. - echo="$dir/echo"
  1292. - break
  1293. - fi
  1294. - done
  1295. - IFS="$lt_save_ifs"
  1296. - if test "X$echo" = Xecho; then
  1297. - # We didn't find a better echo, so look for alternatives.
  1298. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1299. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1300. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1301. - # This shell has a builtin print -r that does the trick.
  1302. - echo='print -r'
  1303. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1304. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1305. - # If we have ksh, try running configure again with it.
  1306. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1307. - export ORIGINAL_CONFIG_SHELL
  1308. - CONFIG_SHELL=/bin/ksh
  1309. - export CONFIG_SHELL
  1310. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1311. - else
  1312. - # Try using printf.
  1313. - echo='printf %s\n'
  1314. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1315. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1316. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1317. - # Cool, printf works
  1318. - :
  1319. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1320. - test "X$echo_testing_string" = 'X\t' &&
  1321. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1322. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1323. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1324. - export CONFIG_SHELL
  1325. - SHELL="$CONFIG_SHELL"
  1326. - export SHELL
  1327. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1328. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1329. - test "X$echo_testing_string" = 'X\t' &&
  1330. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1331. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1332. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1333. + if test "X$ECHO" = Xecho; then
  1334. + # We didn't find a better echo, so look for alternatives.
  1335. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1336. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1337. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1338. + # This shell has a builtin print -r that does the trick.
  1339. + ECHO='print -r'
  1340. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1341. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1342. + # If we have ksh, try running configure again with it.
  1343. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1344. + export ORIGINAL_CONFIG_SHELL
  1345. + CONFIG_SHELL=/bin/ksh
  1346. + export CONFIG_SHELL
  1347. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1348. else
  1349. - # maybe with a smaller string...
  1350. - prev=:
  1351. + # Try using printf.
  1352. + ECHO='printf %s\n'
  1353. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1354. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1355. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1356. + # Cool, printf works
  1357. + :
  1358. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1359. + test "X$echo_testing_string" = 'X\t' &&
  1360. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1361. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1362. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1363. + export CONFIG_SHELL
  1364. + SHELL="$CONFIG_SHELL"
  1365. + export SHELL
  1366. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1367. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1368. + test "X$echo_testing_string" = 'X\t' &&
  1369. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1370. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1371. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1372. + else
  1373. + # maybe with a smaller string...
  1374. + prev=:
  1375. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1376. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1377. - then
  1378. - break
  1379. - fi
  1380. - prev="$cmd"
  1381. - done
  1382. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1383. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1384. + then
  1385. + break
  1386. + fi
  1387. + prev="$cmd"
  1388. + done
  1389. - if test "$prev" != 'sed 50q "[$]0"'; then
  1390. - echo_test_string=`eval $prev`
  1391. - export echo_test_string
  1392. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1393. - else
  1394. - # Oops. We lost completely, so just stick with echo.
  1395. - echo=echo
  1396. - fi
  1397. + if test "$prev" != 'sed 50q "[$]0"'; then
  1398. + echo_test_string=`eval $prev`
  1399. + export echo_test_string
  1400. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1401. + else
  1402. + # Oops. We lost completely, so just stick with echo.
  1403. + ECHO=echo
  1404. + fi
  1405. + fi
  1406. fi
  1407. fi
  1408. fi
  1409. fi
  1410. -fi
  1411. # Copy echo and quote the copy suitably for passing to libtool from
  1412. # the Makefile, instead of quoting the original, which is used later.
  1413. -ECHO=$echo
  1414. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1415. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1416. +lt_ECHO=$ECHO
  1417. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1418. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1419. fi
  1420. -AC_SUBST(ECHO)
  1421. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1422. +AC_SUBST(lt_ECHO)
  1423. +])
  1424. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1425. +_LT_DECL([], [ECHO], [1],
  1426. + [An echo program that does not interpret backslashes])
  1427. +])# _LT_PROG_ECHO_BACKSLASH
  1428. -# _LT_AC_LOCK
  1429. -# -----------
  1430. -AC_DEFUN([_LT_AC_LOCK],
  1431. +# _LT_ENABLE_LOCK
  1432. +# ---------------
  1433. +m4_defun([_LT_ENABLE_LOCK],
  1434. [AC_ARG_ENABLE([libtool-lock],
  1435. - [AC_HELP_STRING([--disable-libtool-lock],
  1436. - [avoid locking (might break parallel builds)])])
  1437. + [AS_HELP_STRING([--disable-libtool-lock],
  1438. + [avoid locking (might break parallel builds)])])
  1439. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1440. # Some flags need to be propagated to the compiler or linker for good
  1441. @@ -496,12 +1239,12 @@
  1442. echo 'int i;' > conftest.$ac_ext
  1443. if AC_TRY_EVAL(ac_compile); then
  1444. case `/usr/bin/file conftest.$ac_objext` in
  1445. - *ELF-32*)
  1446. - HPUX_IA64_MODE="32"
  1447. - ;;
  1448. - *ELF-64*)
  1449. - HPUX_IA64_MODE="64"
  1450. - ;;
  1451. + *ELF-32*)
  1452. + HPUX_IA64_MODE="32"
  1453. + ;;
  1454. + *ELF-64*)
  1455. + HPUX_IA64_MODE="64"
  1456. + ;;
  1457. esac
  1458. fi
  1459. rm -rf conftest*
  1460. @@ -510,79 +1253,79 @@
  1461. # Find out which ABI we are using.
  1462. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1463. if AC_TRY_EVAL(ac_compile); then
  1464. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1465. - case `/usr/bin/file conftest.$ac_objext` in
  1466. - *32-bit*)
  1467. - LD="${LD-ld} -melf32bsmip"
  1468. - ;;
  1469. - *N32*)
  1470. - LD="${LD-ld} -melf32bmipn32"
  1471. - ;;
  1472. - *64-bit*)
  1473. - LD="${LD-ld} -melf64bmip"
  1474. - ;;
  1475. - esac
  1476. - else
  1477. - case `/usr/bin/file conftest.$ac_objext` in
  1478. - *32-bit*)
  1479. - LD="${LD-ld} -32"
  1480. - ;;
  1481. - *N32*)
  1482. - LD="${LD-ld} -n32"
  1483. - ;;
  1484. - *64-bit*)
  1485. - LD="${LD-ld} -64"
  1486. - ;;
  1487. - esac
  1488. - fi
  1489. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1490. + case `/usr/bin/file conftest.$ac_objext` in
  1491. + *32-bit*)
  1492. + LD="${LD-ld} -melf32bsmip"
  1493. + ;;
  1494. + *N32*)
  1495. + LD="${LD-ld} -melf32bmipn32"
  1496. + ;;
  1497. + *64-bit*)
  1498. + LD="${LD-ld} -melf64bmip"
  1499. + ;;
  1500. + esac
  1501. + else
  1502. + case `/usr/bin/file conftest.$ac_objext` in
  1503. + *32-bit*)
  1504. + LD="${LD-ld} -32"
  1505. + ;;
  1506. + *N32*)
  1507. + LD="${LD-ld} -n32"
  1508. + ;;
  1509. + *64-bit*)
  1510. + LD="${LD-ld} -64"
  1511. + ;;
  1512. + esac
  1513. + fi
  1514. fi
  1515. rm -rf conftest*
  1516. ;;
  1517. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1518. -s390*-*linux*|sparc*-*linux*)
  1519. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1520. # Find out which ABI we are using.
  1521. echo 'int i;' > conftest.$ac_ext
  1522. if AC_TRY_EVAL(ac_compile); then
  1523. case `/usr/bin/file conftest.o` in
  1524. - *32-bit*)
  1525. - case $host in
  1526. - x86_64-*kfreebsd*-gnu)
  1527. - LD="${LD-ld} -m elf_i386_fbsd"
  1528. - ;;
  1529. - x86_64-*linux*)
  1530. - LD="${LD-ld} -m elf_i386"
  1531. - ;;
  1532. - ppc64-*linux*|powerpc64-*linux*)
  1533. - LD="${LD-ld} -m elf32ppclinux"
  1534. - ;;
  1535. - s390x-*linux*)
  1536. - LD="${LD-ld} -m elf_s390"
  1537. - ;;
  1538. - sparc64-*linux*)
  1539. - LD="${LD-ld} -m elf32_sparc"
  1540. - ;;
  1541. - esac
  1542. - ;;
  1543. - *64-bit*)
  1544. - case $host in
  1545. - x86_64-*kfreebsd*-gnu)
  1546. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1547. - ;;
  1548. - x86_64-*linux*)
  1549. - LD="${LD-ld} -m elf_x86_64"
  1550. - ;;
  1551. - ppc*-*linux*|powerpc*-*linux*)
  1552. - LD="${LD-ld} -m elf64ppc"
  1553. - ;;
  1554. - s390*-*linux*)
  1555. - LD="${LD-ld} -m elf64_s390"
  1556. - ;;
  1557. - sparc*-*linux*)
  1558. - LD="${LD-ld} -m elf64_sparc"
  1559. - ;;
  1560. - esac
  1561. - ;;
  1562. + *32-bit*)
  1563. + case $host in
  1564. + x86_64-*kfreebsd*-gnu)
  1565. + LD="${LD-ld} -m elf_i386_fbsd"
  1566. + ;;
  1567. + x86_64-*linux*)
  1568. + LD="${LD-ld} -m elf_i386"
  1569. + ;;
  1570. + ppc64-*linux*|powerpc64-*linux*)
  1571. + LD="${LD-ld} -m elf32ppclinux"
  1572. + ;;
  1573. + s390x-*linux*)
  1574. + LD="${LD-ld} -m elf_s390"
  1575. + ;;
  1576. + sparc64-*linux*)
  1577. + LD="${LD-ld} -m elf32_sparc"
  1578. + ;;
  1579. + esac
  1580. + ;;
  1581. + *64-bit*)
  1582. + case $host in
  1583. + x86_64-*kfreebsd*-gnu)
  1584. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1585. + ;;
  1586. + x86_64-*linux*)
  1587. + LD="${LD-ld} -m elf_x86_64"
  1588. + ;;
  1589. + ppc*-*linux*|powerpc*-*linux*)
  1590. + LD="${LD-ld} -m elf64ppc"
  1591. + ;;
  1592. + s390*-*linux*|s390*-*tpf*)
  1593. + LD="${LD-ld} -m elf64_s390"
  1594. + ;;
  1595. + sparc*-*linux*)
  1596. + LD="${LD-ld} -m elf64_sparc"
  1597. + ;;
  1598. + esac
  1599. + ;;
  1600. esac
  1601. fi
  1602. rm -rf conftest*
  1603. @@ -594,7 +1337,7 @@
  1604. CFLAGS="$CFLAGS -belf"
  1605. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1606. [AC_LANG_PUSH(C)
  1607. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1608. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1609. AC_LANG_POP])
  1610. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1611. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1612. @@ -609,37 +1352,74 @@
  1613. *64-bit*)
  1614. case $lt_cv_prog_gnu_ld in
  1615. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1616. - *) LD="${LD-ld} -64" ;;
  1617. + *)
  1618. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1619. + LD="${LD-ld} -64"
  1620. + fi
  1621. + ;;
  1622. esac
  1623. ;;
  1624. esac
  1625. fi
  1626. rm -rf conftest*
  1627. ;;
  1628. -
  1629. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1630. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1631. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1632. - AC_CHECK_TOOL(AS, as, false)
  1633. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1634. - ;;
  1635. - ])
  1636. esac
  1637. need_locks="$enable_libtool_lock"
  1638. +])# _LT_ENABLE_LOCK
  1639. +
  1640. +
  1641. +# _LT_CMD_OLD_ARCHIVE
  1642. +# -------------------
  1643. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1644. +[AC_CHECK_TOOL(AR, ar, false)
  1645. +test -z "$AR" && AR=ar
  1646. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1647. +_LT_DECL([], [AR], [1], [The archiver])
  1648. +_LT_DECL([], [AR_FLAGS], [1])
  1649. +
  1650. +AC_CHECK_TOOL(STRIP, strip, :)
  1651. +test -z "$STRIP" && STRIP=:
  1652. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1653. +
  1654. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1655. +test -z "$RANLIB" && RANLIB=:
  1656. +_LT_DECL([], [RANLIB], [1],
  1657. + [Commands used to install an old-style archive])
  1658. +
  1659. +# Determine commands to create old-style static archives.
  1660. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1661. +old_postinstall_cmds='chmod 644 $oldlib'
  1662. +old_postuninstall_cmds=
  1663. -])# _LT_AC_LOCK
  1664. +if test -n "$RANLIB"; then
  1665. + case $host_os in
  1666. + openbsd*)
  1667. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1668. + ;;
  1669. + *)
  1670. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1671. + ;;
  1672. + esac
  1673. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1674. +fi
  1675. +_LT_DECL([], [old_postinstall_cmds], [2])
  1676. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1677. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1678. + [Commands used to build an old-style archive])
  1679. +])# _LT_CMD_OLD_ARCHIVE
  1680. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1681. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1682. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1683. # ----------------------------------------------------------------
  1684. # Check whether the given compiler option works
  1685. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1686. -[AC_REQUIRE([LT_AC_PROG_SED])
  1687. +AC_DEFUN([_LT_COMPILER_OPTION],
  1688. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1689. +m4_require([_LT_DECL_SED])dnl
  1690. AC_CACHE_CHECK([$1], [$2],
  1691. [$2=no
  1692. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1693. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1694. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1695. lt_compiler_flag="$3"
  1696. # Insert the option either (1) after the last *FLAGS variable, or
  1697. @@ -659,29 +1439,35 @@
  1698. if (exit $ac_status) && test -s "$ac_outfile"; then
  1699. # The compiler can only warn and ignore the option if not recognized
  1700. # So say no if there are warnings other than the usual output.
  1701. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1702. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1703. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1704. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1705. $2=yes
  1706. fi
  1707. fi
  1708. - $rm conftest*
  1709. + $RM conftest*
  1710. ])
  1711. if test x"[$]$2" = xyes; then
  1712. - ifelse([$5], , :, [$5])
  1713. + m4_if([$5], , :, [$5])
  1714. else
  1715. - ifelse([$6], , :, [$6])
  1716. + m4_if([$6], , :, [$6])
  1717. fi
  1718. -])# AC_LIBTOOL_COMPILER_OPTION
  1719. -
  1720. +])# _LT_COMPILER_OPTION
  1721. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1722. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1723. -# ------------------------------------------------------------
  1724. -# Check whether the given compiler option works
  1725. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1726. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1727. +# Old name:
  1728. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1729. +dnl aclocal-1.4 backwards compatibility:
  1730. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1731. +
  1732. +
  1733. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1734. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1735. +# ----------------------------------------------------
  1736. +# Check whether the given linker option works
  1737. +AC_DEFUN([_LT_LINKER_OPTION],
  1738. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1739. +m4_require([_LT_DECL_SED])dnl
  1740. AC_CACHE_CHECK([$1], [$2],
  1741. [$2=no
  1742. save_LDFLAGS="$LDFLAGS"
  1743. @@ -693,7 +1479,7 @@
  1744. if test -s conftest.err; then
  1745. # Append any errors to the config.log.
  1746. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1747. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1748. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1749. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1750. if diff conftest.exp conftest.er2 >/dev/null; then
  1751. $2=yes
  1752. @@ -702,22 +1488,28 @@
  1753. $2=yes
  1754. fi
  1755. fi
  1756. - $rm conftest*
  1757. + $RM -r conftest*
  1758. LDFLAGS="$save_LDFLAGS"
  1759. ])
  1760. if test x"[$]$2" = xyes; then
  1761. - ifelse([$4], , :, [$4])
  1762. + m4_if([$4], , :, [$4])
  1763. else
  1764. - ifelse([$5], , :, [$5])
  1765. + m4_if([$5], , :, [$5])
  1766. fi
  1767. -])# AC_LIBTOOL_LINKER_OPTION
  1768. +])# _LT_LINKER_OPTION
  1769. +# Old name:
  1770. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1771. +dnl aclocal-1.4 backwards compatibility:
  1772. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1773. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1774. -# --------------------------
  1775. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1776. -[# find the maximum length of command line arguments
  1777. +
  1778. +# LT_CMD_MAX_LEN
  1779. +#---------------
  1780. +AC_DEFUN([LT_CMD_MAX_LEN],
  1781. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1782. +# find the maximum length of command line arguments
  1783. AC_MSG_CHECKING([the maximum length of command line arguments])
  1784. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1785. i=0
  1786. @@ -739,7 +1531,7 @@
  1787. lt_cv_sys_max_cmd_len=-1;
  1788. ;;
  1789. - cygwin* | mingw*)
  1790. + cygwin* | mingw* | cegcc*)
  1791. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1792. # about 5 minutes as the teststring grows exponentially.
  1793. # Worse, since 9x/ME are not pre-emptively multitasking,
  1794. @@ -794,7 +1586,7 @@
  1795. sysv5* | sco5v6* | sysv4.2uw2*)
  1796. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1797. if test -n "$kargmax"; then
  1798. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1799. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1800. else
  1801. lt_cv_sys_max_cmd_len=32768
  1802. fi
  1803. @@ -805,20 +1597,28 @@
  1804. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1805. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1806. else
  1807. + # Make teststring a little bigger before we do anything with it.
  1808. + # a 1K string should be a reasonable start.
  1809. + for i in 1 2 3 4 5 6 7 8 ; do
  1810. + teststring=$teststring$teststring
  1811. + done
  1812. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1813. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1814. - = "XX$teststring") >/dev/null 2>&1 &&
  1815. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1816. - lt_cv_sys_max_cmd_len=$new_result &&
  1817. + # If test is not a shell built-in, we'll probably end up computing a
  1818. + # maximum length that is only half of the actual maximum length, but
  1819. + # we can't tell.
  1820. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1821. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1822. test $i != 17 # 1/2 MB should be enough
  1823. do
  1824. i=`expr $i + 1`
  1825. teststring=$teststring$teststring
  1826. done
  1827. + # Only check the string length outside the loop.
  1828. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1829. teststring=
  1830. - # Add a significant safety factor because C++ compilers can tack on massive
  1831. - # amounts of additional arguments before passing them to the linker.
  1832. - # It appears as though 1/2 is a usable value.
  1833. + # Add a significant safety factor because C++ compilers can tack on
  1834. + # massive amounts of additional arguments before passing them to the
  1835. + # linker. It appears as though 1/2 is a usable value.
  1836. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1837. fi
  1838. ;;
  1839. @@ -829,27 +1629,35 @@
  1840. else
  1841. AC_MSG_RESULT(none)
  1842. fi
  1843. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1844. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1845. +_LT_DECL([], [max_cmd_len], [0],
  1846. + [What is the maximum length of a command?])
  1847. +])# LT_CMD_MAX_LEN
  1848. +# Old name:
  1849. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1850. +dnl aclocal-1.4 backwards compatibility:
  1851. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1852. -# _LT_AC_CHECK_DLFCN
  1853. -# ------------------
  1854. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1855. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1856. -])# _LT_AC_CHECK_DLFCN
  1857. +
  1858. +# _LT_HEADER_DLFCN
  1859. +# ----------------
  1860. +m4_defun([_LT_HEADER_DLFCN],
  1861. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1862. +])# _LT_HEADER_DLFCN
  1863. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1864. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1865. -# ---------------------------------------------------------------------
  1866. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1867. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1868. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1869. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1870. +# ----------------------------------------------------------------
  1871. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1872. +[m4_require([_LT_HEADER_DLFCN])dnl
  1873. if test "$cross_compiling" = yes; then :
  1874. [$4]
  1875. else
  1876. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1877. lt_status=$lt_dlunknown
  1878. - cat > conftest.$ac_ext <<EOF
  1879. + cat > conftest.$ac_ext <<_LT_EOF
  1880. [#line __oline__ "configure"
  1881. #include "confdefs.h"
  1882. @@ -891,10 +1699,6 @@
  1883. # endif
  1884. #endif
  1885. -#ifdef __cplusplus
  1886. -extern "C" void exit (int);
  1887. -#endif
  1888. -
  1889. void fnord() { int i=42;}
  1890. int main ()
  1891. {
  1892. @@ -910,9 +1714,9 @@
  1893. else
  1894. puts (dlerror ());
  1895. - exit (status);
  1896. + return status;
  1897. }]
  1898. -EOF
  1899. +_LT_EOF
  1900. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1901. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1902. lt_status=$?
  1903. @@ -927,13 +1731,13 @@
  1904. fi
  1905. fi
  1906. rm -fr conftest*
  1907. -])# _LT_AC_TRY_DLOPEN_SELF
  1908. +])# _LT_TRY_DLOPEN_SELF
  1909. -# AC_LIBTOOL_DLOPEN_SELF
  1910. -# ----------------------
  1911. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1912. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1913. +# LT_SYS_DLOPEN_SELF
  1914. +# ------------------
  1915. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1916. +[m4_require([_LT_HEADER_DLFCN])dnl
  1917. if test "x$enable_dlopen" != xyes; then
  1918. enable_dlopen=unknown
  1919. enable_dlopen_self=unknown
  1920. @@ -949,15 +1753,15 @@
  1921. lt_cv_dlopen_self=yes
  1922. ;;
  1923. - mingw* | pw32*)
  1924. + mingw* | pw32* | cegcc*)
  1925. lt_cv_dlopen="LoadLibrary"
  1926. lt_cv_dlopen_libs=
  1927. - ;;
  1928. + ;;
  1929. cygwin*)
  1930. lt_cv_dlopen="dlopen"
  1931. lt_cv_dlopen_libs=
  1932. - ;;
  1933. + ;;
  1934. darwin*)
  1935. # if libdl is installed we need to link against it
  1936. @@ -967,13 +1771,13 @@
  1937. lt_cv_dlopen_libs=
  1938. lt_cv_dlopen_self=yes
  1939. ])
  1940. - ;;
  1941. + ;;
  1942. *)
  1943. AC_CHECK_FUNC([shl_load],
  1944. [lt_cv_dlopen="shl_load"],
  1945. [AC_CHECK_LIB([dld], [shl_load],
  1946. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1947. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1948. [AC_CHECK_FUNC([dlopen],
  1949. [lt_cv_dlopen="dlopen"],
  1950. [AC_CHECK_LIB([dl], [dlopen],
  1951. @@ -981,7 +1785,7 @@
  1952. [AC_CHECK_LIB([svld], [dlopen],
  1953. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1954. [AC_CHECK_LIB([dld], [dld_link],
  1955. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1956. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1957. ])
  1958. ])
  1959. ])
  1960. @@ -1009,7 +1813,7 @@
  1961. AC_CACHE_CHECK([whether a program can dlopen itself],
  1962. lt_cv_dlopen_self, [dnl
  1963. - _LT_AC_TRY_DLOPEN_SELF(
  1964. + _LT_TRY_DLOPEN_SELF(
  1965. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1966. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1967. ])
  1968. @@ -1017,8 +1821,8 @@
  1969. if test "x$lt_cv_dlopen_self" = xyes; then
  1970. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1971. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1972. - lt_cv_dlopen_self_static, [dnl
  1973. - _LT_AC_TRY_DLOPEN_SELF(
  1974. + lt_cv_dlopen_self_static, [dnl
  1975. + _LT_TRY_DLOPEN_SELF(
  1976. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1977. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1978. ])
  1979. @@ -1040,19 +1844,32 @@
  1980. *) enable_dlopen_self_static=unknown ;;
  1981. esac
  1982. fi
  1983. -])# AC_LIBTOOL_DLOPEN_SELF
  1984. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1985. + [Whether dlopen is supported])
  1986. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1987. + [Whether dlopen of programs is supported])
  1988. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1989. + [Whether dlopen of statically linked programs is supported])
  1990. +])# LT_SYS_DLOPEN_SELF
  1991. +
  1992. +# Old name:
  1993. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1994. +dnl aclocal-1.4 backwards compatibility:
  1995. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1996. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1997. -# ---------------------------------
  1998. -# Check to see if options -c and -o are simultaneously supported by compiler
  1999. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2000. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2001. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2002. +# _LT_COMPILER_C_O([TAGNAME])
  2003. +# ---------------------------
  2004. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2005. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2006. +m4_defun([_LT_COMPILER_C_O],
  2007. +[m4_require([_LT_DECL_SED])dnl
  2008. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2009. +m4_require([_LT_TAG_COMPILER])dnl
  2010. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2011. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2012. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2013. - $rm -r conftest 2>/dev/null
  2014. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2015. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2016. + $RM -r conftest 2>/dev/null
  2017. mkdir conftest
  2018. cd conftest
  2019. mkdir out
  2020. @@ -1076,37 +1893,41 @@
  2021. then
  2022. # The compiler can only warn and ignore the option if not recognized
  2023. # So say no if there are warnings
  2024. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2025. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2026. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2027. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2028. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2029. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2030. fi
  2031. fi
  2032. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2033. - $rm conftest*
  2034. + $RM conftest*
  2035. # SGI C++ compiler will create directory out/ii_files/ for
  2036. # template instantiation
  2037. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2038. - $rm out/* && rmdir out
  2039. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2040. + $RM out/* && rmdir out
  2041. cd ..
  2042. - rmdir conftest
  2043. - $rm conftest*
  2044. + $RM -r conftest
  2045. + $RM conftest*
  2046. ])
  2047. -])# AC_LIBTOOL_PROG_CC_C_O
  2048. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2049. + [Does compiler simultaneously support -c and -o options?])
  2050. +])# _LT_COMPILER_C_O
  2051. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2052. -# -----------------------------------------
  2053. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2054. +# ----------------------------------
  2055. # Check to see if we can do hard links to lock some files if needed
  2056. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2057. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2058. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2059. +[m4_require([_LT_ENABLE_LOCK])dnl
  2060. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2061. +_LT_COMPILER_C_O([$1])
  2062. hard_links="nottested"
  2063. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2064. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2065. # do not overwrite the value of need_locks provided by the user
  2066. AC_MSG_CHECKING([if we can lock with hard links])
  2067. hard_links=yes
  2068. - $rm conftest*
  2069. + $RM conftest*
  2070. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2071. touch conftest.a
  2072. ln conftest.a conftest.b 2>&5 || hard_links=no
  2073. @@ -1119,12 +1940,13 @@
  2074. else
  2075. need_locks=no
  2076. fi
  2077. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2078. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2079. +])# _LT_COMPILER_FILE_LOCKS
  2080. -# AC_LIBTOOL_OBJDIR
  2081. -# -----------------
  2082. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2083. +# _LT_CHECK_OBJDIR
  2084. +# ----------------
  2085. +m4_defun([_LT_CHECK_OBJDIR],
  2086. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2087. [rm -f .libs 2>/dev/null
  2088. mkdir .libs 2>/dev/null
  2089. @@ -1136,40 +1958,46 @@
  2090. fi
  2091. rmdir .libs 2>/dev/null])
  2092. objdir=$lt_cv_objdir
  2093. -])# AC_LIBTOOL_OBJDIR
  2094. +_LT_DECL([], [objdir], [0],
  2095. + [The name of the directory that contains temporary libtool files])dnl
  2096. +m4_pattern_allow([LT_OBJDIR])dnl
  2097. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2098. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2099. +])# _LT_CHECK_OBJDIR
  2100. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2101. -# ----------------------------------------------
  2102. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2103. +# --------------------------------------
  2104. # Check hardcoding attributes.
  2105. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2106. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2107. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2108. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2109. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2110. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2111. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2112. +_LT_TAGVAR(hardcode_action, $1)=
  2113. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2114. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2115. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2116. - # We can hardcode non-existant directories.
  2117. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2118. + # We can hardcode non-existent directories.
  2119. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2120. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2121. # have to relink, otherwise we might link with an installed library
  2122. # when we should be linking with a yet-to-be-installed one
  2123. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2124. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2125. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2126. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2127. # Linking always hardcodes the temporary library directory.
  2128. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2129. + _LT_TAGVAR(hardcode_action, $1)=relink
  2130. else
  2131. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2132. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2133. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2134. fi
  2135. else
  2136. # We cannot hardcode anything, or else we can only hardcode existing
  2137. # directories.
  2138. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2139. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2140. fi
  2141. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2142. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2143. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2144. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2145. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2146. # Fast installation is not supported
  2147. enable_fast_install=no
  2148. elif test "$shlibpath_overrides_runpath" = yes ||
  2149. @@ -1177,73 +2005,70 @@
  2150. # Fast installation is not necessary
  2151. enable_fast_install=needless
  2152. fi
  2153. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2154. +_LT_TAGDECL([], [hardcode_action], [0],
  2155. + [How to hardcode a shared library path into an executable])
  2156. +])# _LT_LINKER_HARDCODE_LIBPATH
  2157. -# AC_LIBTOOL_SYS_LIB_STRIP
  2158. -# ------------------------
  2159. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2160. -[striplib=
  2161. +# _LT_CMD_STRIPLIB
  2162. +# ----------------
  2163. +m4_defun([_LT_CMD_STRIPLIB],
  2164. +[m4_require([_LT_DECL_EGREP])
  2165. +striplib=
  2166. old_striplib=
  2167. AC_MSG_CHECKING([whether stripping libraries is possible])
  2168. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2169. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2170. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2171. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2172. AC_MSG_RESULT([yes])
  2173. else
  2174. # FIXME - insert some real tests, host_os isn't really good enough
  2175. case $host_os in
  2176. - darwin*)
  2177. - if test -n "$STRIP" ; then
  2178. - striplib="$STRIP -x"
  2179. - old_striplib="$STRIP -S"
  2180. - AC_MSG_RESULT([yes])
  2181. - else
  2182. - AC_MSG_RESULT([no])
  2183. -fi
  2184. - ;;
  2185. - *)
  2186. - AC_MSG_RESULT([no])
  2187. + darwin*)
  2188. + if test -n "$STRIP" ; then
  2189. + striplib="$STRIP -x"
  2190. + old_striplib="$STRIP -S"
  2191. + AC_MSG_RESULT([yes])
  2192. + else
  2193. + AC_MSG_RESULT([no])
  2194. + fi
  2195. + ;;
  2196. + *)
  2197. + AC_MSG_RESULT([no])
  2198. ;;
  2199. esac
  2200. fi
  2201. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2202. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2203. +_LT_DECL([], [striplib], [1])
  2204. +])# _LT_CMD_STRIPLIB
  2205. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2206. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2207. # -----------------------------
  2208. # PORTME Fill in your ld.so characteristics
  2209. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2210. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2211. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2212. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2213. +m4_require([_LT_DECL_EGREP])dnl
  2214. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2215. +m4_require([_LT_DECL_OBJDUMP])dnl
  2216. +m4_require([_LT_DECL_SED])dnl
  2217. AC_MSG_CHECKING([dynamic linker characteristics])
  2218. -library_names_spec=
  2219. -libname_spec='lib$name'
  2220. -soname_spec=
  2221. -shrext_cmds=".so"
  2222. -postinstall_cmds=
  2223. -postuninstall_cmds=
  2224. -finish_cmds=
  2225. -finish_eval=
  2226. -shlibpath_var=
  2227. -shlibpath_overrides_runpath=unknown
  2228. -version_type=none
  2229. -dynamic_linker="$host_os ld.so"
  2230. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2231. -m4_if($1,[],[
  2232. +m4_if([$1],
  2233. + [], [
  2234. if test "$GCC" = yes; then
  2235. case $host_os in
  2236. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2237. *) lt_awk_arg="/^libraries:/" ;;
  2238. esac
  2239. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2240. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2241. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2242. # if the path contains ";" then we assume it to be the separator
  2243. # otherwise default to the standard path separator (i.e. ":") - it is
  2244. # assumed that no part of a normal pathname contains ";" but that should
  2245. # okay in the real world where ";" in dirpaths is itself problematic.
  2246. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2247. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2248. else
  2249. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2250. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2251. fi
  2252. # Ok, now we have the path, separated by spaces, we can step through it
  2253. # and add multilib dir if necessary.
  2254. @@ -1257,7 +2082,7 @@
  2255. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2256. fi
  2257. done
  2258. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2259. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2260. BEGIN {RS=" "; FS="/|\n";} {
  2261. lt_foo="";
  2262. lt_count=0;
  2263. @@ -1277,10 +2102,23 @@
  2264. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2265. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2266. }'`
  2267. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2268. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2269. else
  2270. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2271. fi])
  2272. +library_names_spec=
  2273. +libname_spec='lib$name'
  2274. +soname_spec=
  2275. +shrext_cmds=".so"
  2276. +postinstall_cmds=
  2277. +postuninstall_cmds=
  2278. +finish_cmds=
  2279. +finish_eval=
  2280. +shlibpath_var=
  2281. +shlibpath_overrides_runpath=unknown
  2282. +version_type=none
  2283. +dynamic_linker="$host_os ld.so"
  2284. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2285. need_lib_prefix=unknown
  2286. hardcode_into_libs=no
  2287. @@ -1298,7 +2136,7 @@
  2288. soname_spec='${libname}${release}${shared_ext}$major'
  2289. ;;
  2290. -aix4* | aix5*)
  2291. +aix[[4-9]]*)
  2292. version_type=linux
  2293. need_lib_prefix=no
  2294. need_version=no
  2295. @@ -1317,7 +2155,7 @@
  2296. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2297. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2298. echo ' yes '
  2299. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2300. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2301. :
  2302. else
  2303. can_build_shared=no
  2304. @@ -1343,9 +2181,18 @@
  2305. ;;
  2306. amigaos*)
  2307. - library_names_spec='$libname.ixlibrary $libname.a'
  2308. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2309. - 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'
  2310. + case $host_cpu in
  2311. + powerpc)
  2312. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2313. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2314. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2315. + ;;
  2316. + m68k)
  2317. + library_names_spec='$libname.ixlibrary $libname.a'
  2318. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2319. + 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'
  2320. + ;;
  2321. + esac
  2322. ;;
  2323. beos*)
  2324. @@ -1368,25 +2215,28 @@
  2325. # libtool to hard-code these into programs
  2326. ;;
  2327. -cygwin* | mingw* | pw32*)
  2328. +cygwin* | mingw* | pw32* | cegcc*)
  2329. version_type=windows
  2330. shrext_cmds=".dll"
  2331. need_version=no
  2332. need_lib_prefix=no
  2333. case $GCC,$host_os in
  2334. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2335. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2336. library_names_spec='$libname.dll.a'
  2337. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2338. postinstall_cmds='base_file=`basename \${file}`~
  2339. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2340. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2341. dldir=$destdir/`dirname \$dlpath`~
  2342. test -d \$dldir || mkdir -p \$dldir~
  2343. $install_prog $dir/$dlname \$dldir/$dlname~
  2344. - chmod a+x \$dldir/$dlname'
  2345. + chmod a+x \$dldir/$dlname~
  2346. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2347. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2348. + fi'
  2349. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2350. dlpath=$dir/\$dldll~
  2351. - $rm \$dlpath'
  2352. + $RM \$dlpath'
  2353. shlibpath_overrides_runpath=yes
  2354. case $host_os in
  2355. @@ -1395,20 +2245,20 @@
  2356. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2357. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2358. ;;
  2359. - mingw*)
  2360. + mingw* | cegcc*)
  2361. # MinGW DLLs use traditional 'lib' prefix
  2362. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2363. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2364. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2365. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2366. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2367. # It is most probably a Windows format PATH printed by
  2368. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2369. # path with ; separators, and with drive letters. We can handle the
  2370. # drive letters (cygwin fileutils understands them), so leave them,
  2371. # especially as we might pass files found there to a mingw objdump,
  2372. # which wouldn't understand a cygwinified path. Ahh.
  2373. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2374. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2375. else
  2376. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2377. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2378. fi
  2379. ;;
  2380. pw32*)
  2381. @@ -1432,13 +2282,13 @@
  2382. version_type=darwin
  2383. need_lib_prefix=no
  2384. need_version=no
  2385. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2386. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2387. soname_spec='${libname}${release}${major}$shared_ext'
  2388. shlibpath_overrides_runpath=yes
  2389. shlibpath_var=DYLD_LIBRARY_PATH
  2390. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2391. - m4_if([$1], [],[
  2392. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2393. +m4_if([$1], [],[
  2394. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2395. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2396. ;;
  2397. @@ -1531,18 +2381,18 @@
  2398. fi
  2399. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2400. ;;
  2401. - hppa*64*)
  2402. - shrext_cmds='.sl'
  2403. - hardcode_into_libs=yes
  2404. - dynamic_linker="$host_os dld.sl"
  2405. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2406. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2407. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2408. - soname_spec='${libname}${release}${shared_ext}$major'
  2409. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2410. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2411. - ;;
  2412. - *)
  2413. + hppa*64*)
  2414. + shrext_cmds='.sl'
  2415. + hardcode_into_libs=yes
  2416. + dynamic_linker="$host_os dld.sl"
  2417. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2418. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2419. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2420. + soname_spec='${libname}${release}${shared_ext}$major'
  2421. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2422. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2423. + ;;
  2424. + *)
  2425. shrext_cmds='.sl'
  2426. dynamic_linker="$host_os dld.sl"
  2427. shlibpath_var=SHLIB_PATH
  2428. @@ -1610,7 +2460,7 @@
  2429. ;;
  2430. # This must be Linux ELF.
  2431. -linux* | k*bsd*-gnu)
  2432. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2433. version_type=linux
  2434. need_lib_prefix=no
  2435. need_version=no
  2436. @@ -1619,6 +2469,17 @@
  2437. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2438. shlibpath_var=LD_LIBRARY_PATH
  2439. shlibpath_overrides_runpath=no
  2440. + # Some binutils ld are patched to set DT_RUNPATH
  2441. + save_LDFLAGS=$LDFLAGS
  2442. + save_libdir=$libdir
  2443. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2444. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2445. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2446. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2447. + [shlibpath_overrides_runpath=yes])])
  2448. + LDFLAGS=$save_LDFLAGS
  2449. + libdir=$save_libdir
  2450. +
  2451. # This implies no fast_install, which is unacceptable.
  2452. # Some rework will be needed to allow for fast_install
  2453. # before this can be enabled.
  2454. @@ -1626,7 +2487,7 @@
  2455. # Append ld.so.conf contents to the search path
  2456. if test -f /etc/ld.so.conf; then
  2457. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2458. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2459. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2460. fi
  2461. @@ -1639,11 +2500,23 @@
  2462. dynamic_linker='GNU/Linux ld.so'
  2463. ;;
  2464. +netbsdelf*-gnu)
  2465. + version_type=linux
  2466. + need_lib_prefix=no
  2467. + need_version=no
  2468. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2469. + soname_spec='${libname}${release}${shared_ext}$major'
  2470. + shlibpath_var=LD_LIBRARY_PATH
  2471. + shlibpath_overrides_runpath=no
  2472. + hardcode_into_libs=yes
  2473. + dynamic_linker='NetBSD ld.elf_so'
  2474. + ;;
  2475. +
  2476. netbsd*)
  2477. version_type=sunos
  2478. need_lib_prefix=no
  2479. need_version=no
  2480. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2481. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2483. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2484. dynamic_linker='NetBSD (a.out) ld.so'
  2485. @@ -1664,14 +2537,16 @@
  2486. shlibpath_overrides_runpath=yes
  2487. ;;
  2488. -nto-qnx*)
  2489. - version_type=linux
  2490. +*nto* | *qnx*)
  2491. + version_type=qnx
  2492. need_lib_prefix=no
  2493. need_version=no
  2494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2495. soname_spec='${libname}${release}${shared_ext}$major'
  2496. shlibpath_var=LD_LIBRARY_PATH
  2497. - shlibpath_overrides_runpath=yes
  2498. + shlibpath_overrides_runpath=no
  2499. + hardcode_into_libs=yes
  2500. + dynamic_linker='ldqnx.so'
  2501. ;;
  2502. openbsd*)
  2503. @@ -1680,13 +2555,13 @@
  2504. need_lib_prefix=no
  2505. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2506. case $host_os in
  2507. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2508. - *) need_version=no ;;
  2509. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2510. + *) need_version=no ;;
  2511. esac
  2512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2513. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2514. shlibpath_var=LD_LIBRARY_PATH
  2515. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2516. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2517. case $host_os in
  2518. openbsd2.[[89]] | openbsd2.[[89]].*)
  2519. shlibpath_overrides_runpath=no
  2520. @@ -1758,7 +2633,6 @@
  2521. sni)
  2522. shlibpath_overrides_runpath=no
  2523. need_lib_prefix=no
  2524. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2525. runpath_var=LD_RUN_PATH
  2526. ;;
  2527. siemens)
  2528. @@ -1789,13 +2663,12 @@
  2529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2530. soname_spec='${libname}${release}${shared_ext}$major'
  2531. shlibpath_var=LD_LIBRARY_PATH
  2532. + shlibpath_overrides_runpath=yes
  2533. hardcode_into_libs=yes
  2534. if test "$with_gnu_ld" = yes; then
  2535. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2536. - shlibpath_overrides_runpath=no
  2537. else
  2538. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2539. - shlibpath_overrides_runpath=yes
  2540. case $host_os in
  2541. sco3.2v5*)
  2542. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2543. @@ -1805,6 +2678,17 @@
  2544. sys_lib_dlsearch_path_spec='/usr/lib'
  2545. ;;
  2546. +tpf*)
  2547. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2548. + version_type=linux
  2549. + need_lib_prefix=no
  2550. + need_version=no
  2551. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2552. + shlibpath_var=LD_LIBRARY_PATH
  2553. + shlibpath_overrides_runpath=no
  2554. + hardcode_into_libs=yes
  2555. + ;;
  2556. +
  2557. uts4*)
  2558. version_type=linux
  2559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2560. @@ -1823,277 +2707,54 @@
  2561. if test "$GCC" = yes; then
  2562. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2563. fi
  2564. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2565. -
  2566. -
  2567. -# _LT_AC_TAGCONFIG
  2568. -# ----------------
  2569. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2570. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2571. -AC_ARG_WITH([tags],
  2572. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2573. - [include additional configurations @<:@automatic@:>@])],
  2574. - [tagnames="$withval"])
  2575. -
  2576. -if test -f "$ltmain" && test -n "$tagnames"; then
  2577. - if test ! -f "${ofile}"; then
  2578. - AC_MSG_WARN([output file `$ofile' does not exist])
  2579. - fi
  2580. -
  2581. - if test -z "$LTCC"; then
  2582. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2583. - if test -z "$LTCC"; then
  2584. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2585. - else
  2586. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2587. - fi
  2588. - fi
  2589. - if test -z "$LTCFLAGS"; then
  2590. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2591. - fi
  2592. -
  2593. - # Extract list of available tagged configurations in $ofile.
  2594. - # Note that this assumes the entire list is on one line.
  2595. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2596. -
  2597. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2598. - for tagname in $tagnames; do
  2599. - IFS="$lt_save_ifs"
  2600. - # Check whether tagname contains only valid characters
  2601. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2602. - "") ;;
  2603. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2604. - ;;
  2605. - esac
  2606. -
  2607. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2608. - then
  2609. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2610. - fi
  2611. -
  2612. - # Update the list of available tags.
  2613. - if test -n "$tagname"; then
  2614. - echo appending configuration tag \"$tagname\" to $ofile
  2615. -
  2616. - case $tagname in
  2617. - CXX)
  2618. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2619. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2620. - (test "X$CXX" != "Xg++"))) ; then
  2621. - AC_LIBTOOL_LANG_CXX_CONFIG
  2622. - else
  2623. - tagname=""
  2624. - fi
  2625. - ;;
  2626. -
  2627. - F77)
  2628. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2629. - AC_LIBTOOL_LANG_F77_CONFIG
  2630. - else
  2631. - tagname=""
  2632. - fi
  2633. - ;;
  2634. -
  2635. - GCJ)
  2636. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2637. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2638. - else
  2639. - tagname=""
  2640. - fi
  2641. - ;;
  2642. -
  2643. - RC)
  2644. - AC_LIBTOOL_LANG_RC_CONFIG
  2645. - ;;
  2646. -
  2647. - *)
  2648. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2649. - ;;
  2650. - esac
  2651. -
  2652. - # Append the new tag name to the list of available tags.
  2653. - if test -n "$tagname" ; then
  2654. - available_tags="$available_tags $tagname"
  2655. - fi
  2656. - fi
  2657. - done
  2658. - IFS="$lt_save_ifs"
  2659. - # Now substitute the updated list of available tags.
  2660. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2661. - mv "${ofile}T" "$ofile"
  2662. - chmod +x "$ofile"
  2663. - else
  2664. - rm -f "${ofile}T"
  2665. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2666. - fi
  2667. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2668. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2669. +fi
  2670. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2671. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2672. fi
  2673. -])# _LT_AC_TAGCONFIG
  2674. -
  2675. -
  2676. -# AC_LIBTOOL_DLOPEN
  2677. -# -----------------
  2678. -# enable checks for dlopen support
  2679. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2680. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2681. -])# AC_LIBTOOL_DLOPEN
  2682. -
  2683. -
  2684. -# AC_LIBTOOL_WIN32_DLL
  2685. -# --------------------
  2686. -# declare package support for building win32 DLLs
  2687. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2688. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2689. -])# AC_LIBTOOL_WIN32_DLL
  2690. -
  2691. -
  2692. -# AC_ENABLE_SHARED([DEFAULT])
  2693. -# ---------------------------
  2694. -# implement the --enable-shared flag
  2695. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2696. -AC_DEFUN([AC_ENABLE_SHARED],
  2697. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2698. -AC_ARG_ENABLE([shared],
  2699. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2700. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2701. - [p=${PACKAGE-default}
  2702. - case $enableval in
  2703. - yes) enable_shared=yes ;;
  2704. - no) enable_shared=no ;;
  2705. - *)
  2706. - enable_shared=no
  2707. - # Look at the argument we got. We use all the common list separators.
  2708. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2709. - for pkg in $enableval; do
  2710. - IFS="$lt_save_ifs"
  2711. - if test "X$pkg" = "X$p"; then
  2712. - enable_shared=yes
  2713. - fi
  2714. - done
  2715. - IFS="$lt_save_ifs"
  2716. - ;;
  2717. - esac],
  2718. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2719. -])# AC_ENABLE_SHARED
  2720. -
  2721. -
  2722. -# AC_DISABLE_SHARED
  2723. -# -----------------
  2724. -# set the default shared flag to --disable-shared
  2725. -AC_DEFUN([AC_DISABLE_SHARED],
  2726. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2727. -AC_ENABLE_SHARED(no)
  2728. -])# AC_DISABLE_SHARED
  2729. -
  2730. -
  2731. -# AC_ENABLE_STATIC([DEFAULT])
  2732. -# ---------------------------
  2733. -# implement the --enable-static flag
  2734. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2735. -AC_DEFUN([AC_ENABLE_STATIC],
  2736. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2737. -AC_ARG_ENABLE([static],
  2738. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2739. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2740. - [p=${PACKAGE-default}
  2741. - case $enableval in
  2742. - yes) enable_static=yes ;;
  2743. - no) enable_static=no ;;
  2744. - *)
  2745. - enable_static=no
  2746. - # Look at the argument we got. We use all the common list separators.
  2747. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2748. - for pkg in $enableval; do
  2749. - IFS="$lt_save_ifs"
  2750. - if test "X$pkg" = "X$p"; then
  2751. - enable_static=yes
  2752. - fi
  2753. - done
  2754. - IFS="$lt_save_ifs"
  2755. - ;;
  2756. - esac],
  2757. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2758. -])# AC_ENABLE_STATIC
  2759. -
  2760. -
  2761. -# AC_DISABLE_STATIC
  2762. -# -----------------
  2763. -# set the default static flag to --disable-static
  2764. -AC_DEFUN([AC_DISABLE_STATIC],
  2765. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2766. -AC_ENABLE_STATIC(no)
  2767. -])# AC_DISABLE_STATIC
  2768. -
  2769. -
  2770. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2771. -# ---------------------------------
  2772. -# implement the --enable-fast-install flag
  2773. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2774. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2775. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2776. -AC_ARG_ENABLE([fast-install],
  2777. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2778. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2779. - [p=${PACKAGE-default}
  2780. - case $enableval in
  2781. - yes) enable_fast_install=yes ;;
  2782. - no) enable_fast_install=no ;;
  2783. - *)
  2784. - enable_fast_install=no
  2785. - # Look at the argument we got. We use all the common list separators.
  2786. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2787. - for pkg in $enableval; do
  2788. - IFS="$lt_save_ifs"
  2789. - if test "X$pkg" = "X$p"; then
  2790. - enable_fast_install=yes
  2791. - fi
  2792. - done
  2793. - IFS="$lt_save_ifs"
  2794. - ;;
  2795. - esac],
  2796. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2797. -])# AC_ENABLE_FAST_INSTALL
  2798. -
  2799. -# AC_DISABLE_FAST_INSTALL
  2800. -# -----------------------
  2801. -# set the default to --disable-fast-install
  2802. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2803. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2804. -AC_ENABLE_FAST_INSTALL(no)
  2805. -])# AC_DISABLE_FAST_INSTALL
  2806. +_LT_DECL([], [variables_saved_for_relink], [1],
  2807. + [Variables whose values should be saved in libtool wrapper scripts and
  2808. + restored at link time])
  2809. +_LT_DECL([], [need_lib_prefix], [0],
  2810. + [Do we need the "lib" prefix for modules?])
  2811. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2812. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2813. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2814. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2815. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2816. + [Is shlibpath searched before the hard-coded library search path?])
  2817. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2818. +_LT_DECL([], [library_names_spec], [1],
  2819. + [[List of archive names. First name is the real one, the rest are links.
  2820. + The last name is the one that the linker finds with -lNAME]])
  2821. +_LT_DECL([], [soname_spec], [1],
  2822. + [[The coded name of the library, if different from the real name]])
  2823. +_LT_DECL([], [postinstall_cmds], [2],
  2824. + [Command to use after installation of a shared archive])
  2825. +_LT_DECL([], [postuninstall_cmds], [2],
  2826. + [Command to use after uninstallation of a shared archive])
  2827. +_LT_DECL([], [finish_cmds], [2],
  2828. + [Commands used to finish a libtool library installation in a directory])
  2829. +_LT_DECL([], [finish_eval], [1],
  2830. + [[As "finish_cmds", except a single script fragment to be evaled but
  2831. + not shown]])
  2832. +_LT_DECL([], [hardcode_into_libs], [0],
  2833. + [Whether we should hardcode library paths into libraries])
  2834. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2835. + [Compile-time system search path for libraries])
  2836. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2837. + [Run-time system search path for libraries])
  2838. +])# _LT_SYS_DYNAMIC_LINKER
  2839. -# AC_LIBTOOL_PICMODE([MODE])
  2840. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2841. # --------------------------
  2842. -# implement the --with-pic flag
  2843. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2844. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2845. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2846. -pic_mode=ifelse($#,1,$1,default)
  2847. -])# AC_LIBTOOL_PICMODE
  2848. -
  2849. -
  2850. -# AC_PROG_EGREP
  2851. -# -------------
  2852. -# This is predefined starting with Autoconf 2.54, so this conditional
  2853. -# definition can be removed once we require Autoconf 2.54 or later.
  2854. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2855. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2856. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2857. - then ac_cv_prog_egrep='grep -E'
  2858. - else ac_cv_prog_egrep='egrep'
  2859. - fi])
  2860. - EGREP=$ac_cv_prog_egrep
  2861. - AC_SUBST([EGREP])
  2862. -])])
  2863. -
  2864. -
  2865. -# AC_PATH_TOOL_PREFIX
  2866. -# -------------------
  2867. # find a file program which can recognize shared library
  2868. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2869. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2870. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2871. +[m4_require([_LT_DECL_EGREP])dnl
  2872. AC_MSG_CHECKING([for $1])
  2873. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2874. [case $MAGIC_CMD in
  2875. @@ -2106,7 +2767,7 @@
  2876. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2877. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2878. dnl not every word. This closes a longstanding sh security hole.
  2879. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2880. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2881. for ac_dir in $ac_dummy; do
  2882. IFS="$lt_save_ifs"
  2883. test -z "$ac_dir" && ac_dir=.
  2884. @@ -2121,7 +2782,7 @@
  2885. $EGREP "$file_magic_regex" > /dev/null; then
  2886. :
  2887. else
  2888. - cat <<EOF 1>&2
  2889. + cat <<_LT_EOF 1>&2
  2890. *** Warning: the command libtool uses to detect shared libraries,
  2891. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2892. @@ -2132,7 +2793,7 @@
  2893. *** may want to report the problem to your system manager and/or to
  2894. *** bug-libtool@gnu.org
  2895. -EOF
  2896. +_LT_EOF
  2897. fi ;;
  2898. esac
  2899. fi
  2900. @@ -2149,37 +2810,47 @@
  2901. else
  2902. AC_MSG_RESULT(no)
  2903. fi
  2904. -])# AC_PATH_TOOL_PREFIX
  2905. +_LT_DECL([], [MAGIC_CMD], [0],
  2906. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2907. +])# _LT_PATH_TOOL_PREFIX
  2908. +# Old name:
  2909. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2910. +dnl aclocal-1.4 backwards compatibility:
  2911. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2912. -# AC_PATH_MAGIC
  2913. -# -------------
  2914. +
  2915. +# _LT_PATH_MAGIC
  2916. +# --------------
  2917. # find a file program which can recognize a shared library
  2918. -AC_DEFUN([AC_PATH_MAGIC],
  2919. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2920. +m4_defun([_LT_PATH_MAGIC],
  2921. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2923. if test -n "$ac_tool_prefix"; then
  2924. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2925. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2926. else
  2927. MAGIC_CMD=:
  2928. fi
  2929. fi
  2930. -])# AC_PATH_MAGIC
  2931. +])# _LT_PATH_MAGIC
  2932. -# AC_PROG_LD
  2933. +# LT_PATH_LD
  2934. # ----------
  2935. # find the pathname to the GNU or non-GNU linker
  2936. -AC_DEFUN([AC_PROG_LD],
  2937. -[AC_ARG_WITH([gnu-ld],
  2938. - [AC_HELP_STRING([--with-gnu-ld],
  2939. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2940. - [test "$withval" = no || with_gnu_ld=yes],
  2941. - [with_gnu_ld=no])
  2942. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2943. -AC_REQUIRE([AC_PROG_CC])dnl
  2944. +AC_DEFUN([LT_PATH_LD],
  2945. +[AC_REQUIRE([AC_PROG_CC])dnl
  2946. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2947. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2948. +m4_require([_LT_DECL_SED])dnl
  2949. +m4_require([_LT_DECL_EGREP])dnl
  2950. +
  2951. +AC_ARG_WITH([gnu-ld],
  2952. + [AS_HELP_STRING([--with-gnu-ld],
  2953. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2954. + [test "$withval" = no || with_gnu_ld=yes],
  2955. + [with_gnu_ld=no])dnl
  2956. +
  2957. ac_prog=ld
  2958. if test "$GCC" = yes; then
  2959. # Check if gcc -print-prog-name=ld gives a path.
  2960. @@ -2196,9 +2867,9 @@
  2961. [[\\/]]* | ?:[[\\/]]*)
  2962. re_direlt='/[[^/]][[^/]]*/\.\./'
  2963. # Canonicalize the pathname of ld
  2964. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2965. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2966. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2967. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2968. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2969. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2970. done
  2971. test -z "$LD" && LD="$ac_prog"
  2972. ;;
  2973. @@ -2248,15 +2919,24 @@
  2974. AC_MSG_RESULT(no)
  2975. fi
  2976. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2977. -AC_PROG_LD_GNU
  2978. -])# AC_PROG_LD
  2979. +_LT_PATH_LD_GNU
  2980. +AC_SUBST([LD])
  2981. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2982. +])# LT_PATH_LD
  2983. -# AC_PROG_LD_GNU
  2984. -# --------------
  2985. -AC_DEFUN([AC_PROG_LD_GNU],
  2986. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2987. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2988. +# Old names:
  2989. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2990. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2991. +dnl aclocal-1.4 backwards compatibility:
  2992. +dnl AC_DEFUN([AM_PROG_LD], [])
  2993. +dnl AC_DEFUN([AC_PROG_LD], [])
  2994. +
  2995. +
  2996. +# _LT_PATH_LD_GNU
  2997. +#- --------------
  2998. +m4_defun([_LT_PATH_LD_GNU],
  2999. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3000. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3001. case `$LD -v 2>&1 </dev/null` in
  3002. *GNU* | *'with BFD'*)
  3003. @@ -2267,14 +2947,14 @@
  3004. ;;
  3005. esac])
  3006. with_gnu_ld=$lt_cv_prog_gnu_ld
  3007. -])# AC_PROG_LD_GNU
  3008. +])# _LT_PATH_LD_GNU
  3009. -# AC_PROG_LD_RELOAD_FLAG
  3010. -# ----------------------
  3011. +# _LT_CMD_RELOAD
  3012. +# --------------
  3013. # find reload flag for linker
  3014. # -- PORTME Some linkers may need a different reload flag.
  3015. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3016. +m4_defun([_LT_CMD_RELOAD],
  3017. [AC_CACHE_CHECK([for $LD option to reload object files],
  3018. lt_cv_ld_reload_flag,
  3019. [lt_cv_ld_reload_flag='-r'])
  3020. @@ -2293,15 +2973,19 @@
  3021. fi
  3022. ;;
  3023. esac
  3024. -])# AC_PROG_LD_RELOAD_FLAG
  3025. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3026. +_LT_DECL([], [reload_cmds], [2])dnl
  3027. +])# _LT_CMD_RELOAD
  3028. -# AC_DEPLIBS_CHECK_METHOD
  3029. -# -----------------------
  3030. +# _LT_CHECK_MAGIC_METHOD
  3031. +# ----------------------
  3032. # how to check for library dependencies
  3033. # -- PORTME fill in with the dynamic library characteristics
  3034. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3035. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3036. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3037. +[m4_require([_LT_DECL_EGREP])
  3038. +m4_require([_LT_DECL_OBJDUMP])
  3039. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3040. lt_cv_deplibs_check_method,
  3041. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3042. lt_cv_file_magic_test_file=
  3043. @@ -2318,7 +3002,7 @@
  3044. # whether `pass_all' will *always* work, you probably want this one.
  3045. case $host_os in
  3046. -aix4* | aix5*)
  3047. +aix[[4-9]]*)
  3048. lt_cv_deplibs_check_method=pass_all
  3049. ;;
  3050. @@ -2351,12 +3035,18 @@
  3051. fi
  3052. ;;
  3053. +cegcc)
  3054. + # use the weaker test based on 'objdump'. See mingw*.
  3055. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3056. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3057. + ;;
  3058. +
  3059. darwin* | rhapsody*)
  3060. lt_cv_deplibs_check_method=pass_all
  3061. ;;
  3062. freebsd* | dragonfly*)
  3063. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3064. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3065. case $host_cpu in
  3066. i*86 )
  3067. # Not sure whether the presence of OpenBSD here was a mistake.
  3068. @@ -2409,12 +3099,12 @@
  3069. ;;
  3070. # This must be Linux ELF.
  3071. -linux* | k*bsd*-gnu)
  3072. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3073. lt_cv_deplibs_check_method=pass_all
  3074. ;;
  3075. -netbsd*)
  3076. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3077. +netbsd* | netbsdelf*-gnu)
  3078. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3079. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3080. else
  3081. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3082. @@ -2427,12 +3117,12 @@
  3083. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3084. ;;
  3085. -nto-qnx*)
  3086. - lt_cv_deplibs_check_method=unknown
  3087. +*nto* | *qnx*)
  3088. + lt_cv_deplibs_check_method=pass_all
  3089. ;;
  3090. openbsd*)
  3091. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3092. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3093. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3094. else
  3095. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3096. @@ -2451,6 +3141,10 @@
  3097. lt_cv_deplibs_check_method=pass_all
  3098. ;;
  3099. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3100. + lt_cv_deplibs_check_method=pass_all
  3101. + ;;
  3102. +
  3103. sysv4 | sysv4.3*)
  3104. case $host_vendor in
  3105. motorola)
  3106. @@ -2478,7 +3172,7 @@
  3107. esac
  3108. ;;
  3109. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3110. +tpf*)
  3111. lt_cv_deplibs_check_method=pass_all
  3112. ;;
  3113. esac
  3114. @@ -2486,14 +3180,20 @@
  3115. file_magic_cmd=$lt_cv_file_magic_cmd
  3116. deplibs_check_method=$lt_cv_deplibs_check_method
  3117. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3118. -])# AC_DEPLIBS_CHECK_METHOD
  3119. +
  3120. +_LT_DECL([], [deplibs_check_method], [1],
  3121. + [Method to check whether dependent libraries are shared objects])
  3122. +_LT_DECL([], [file_magic_cmd], [1],
  3123. + [Command to use when deplibs_check_method == "file_magic"])
  3124. +])# _LT_CHECK_MAGIC_METHOD
  3125. -# AC_PROG_NM
  3126. +# LT_PATH_NM
  3127. # ----------
  3128. -# find the pathname to a BSD-compatible name lister
  3129. -AC_DEFUN([AC_PROG_NM],
  3130. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3131. +# find the pathname to a BSD- or MS-compatible name lister
  3132. +AC_DEFUN([LT_PATH_NM],
  3133. +[AC_REQUIRE([AC_PROG_CC])dnl
  3134. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3135. [if test -n "$NM"; then
  3136. # Let the user override the test.
  3137. lt_cv_path_NM="$NM"
  3138. @@ -2535,16 +3235,51 @@
  3139. done
  3140. IFS="$lt_save_ifs"
  3141. done
  3142. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3143. + : ${lt_cv_path_NM=no}
  3144. fi])
  3145. -NM="$lt_cv_path_NM"
  3146. -])# AC_PROG_NM
  3147. +if test "$lt_cv_path_NM" != "no"; then
  3148. + NM="$lt_cv_path_NM"
  3149. +else
  3150. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3151. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3152. + AC_SUBST([DUMPBIN])
  3153. + if test "$DUMPBIN" != ":"; then
  3154. + NM="$DUMPBIN"
  3155. + fi
  3156. +fi
  3157. +test -z "$NM" && NM=nm
  3158. +AC_SUBST([NM])
  3159. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3160. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3161. + [lt_cv_nm_interface="BSD nm"
  3162. + echo "int some_variable = 0;" > conftest.$ac_ext
  3163. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3164. + (eval "$ac_compile" 2>conftest.err)
  3165. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3166. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3167. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3168. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3169. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3170. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3171. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3172. + lt_cv_nm_interface="MS dumpbin"
  3173. + fi
  3174. + rm -f conftest*])
  3175. +])# LT_PATH_NM
  3176. +
  3177. +# Old names:
  3178. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3179. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3180. +dnl aclocal-1.4 backwards compatibility:
  3181. +dnl AC_DEFUN([AM_PROG_NM], [])
  3182. +dnl AC_DEFUN([AC_PROG_NM], [])
  3183. -# AC_CHECK_LIBM
  3184. -# -------------
  3185. +
  3186. +# LT_LIB_M
  3187. +# --------
  3188. # check for math library
  3189. -AC_DEFUN([AC_CHECK_LIBM],
  3190. +AC_DEFUN([LT_LIB_M],
  3191. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3192. LIBM=
  3193. case $host in
  3194. @@ -2559,4072 +3294,4740 @@
  3195. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3196. ;;
  3197. esac
  3198. -])# AC_CHECK_LIBM
  3199. +AC_SUBST([LIBM])
  3200. +])# LT_LIB_M
  3201. +# Old name:
  3202. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3203. +dnl aclocal-1.4 backwards compatibility:
  3204. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3205. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3206. -# -----------------------------------
  3207. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3208. -# LTDLINCL to the include flags for the libltdl header and adds
  3209. -# --enable-ltdl-convenience to the configure arguments. Note that
  3210. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3211. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3212. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3213. -# (note the single quotes!). If your package is not flat and you're not
  3214. -# using automake, define top_builddir and top_srcdir appropriately in
  3215. -# the Makefiles.
  3216. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3217. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3218. - case $enable_ltdl_convenience in
  3219. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3220. - "") enable_ltdl_convenience=yes
  3221. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3222. - esac
  3223. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3224. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3225. - # For backwards non-gettext consistent compatibility...
  3226. - INCLTDL="$LTDLINCL"
  3227. -])# AC_LIBLTDL_CONVENIENCE
  3228. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3229. +# -------------------------------
  3230. +m4_defun([_LT_COMPILER_NO_RTTI],
  3231. +[m4_require([_LT_TAG_COMPILER])dnl
  3232. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3233. -# -----------------------------------
  3234. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3235. -# LTDLINCL to the include flags for the libltdl header and adds
  3236. -# --enable-ltdl-install to the configure arguments. Note that
  3237. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3238. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3239. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3240. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3241. -# flat and you're not using automake, define top_builddir and top_srcdir
  3242. -# appropriately in the Makefiles.
  3243. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3244. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3245. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3246. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3247. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3248. - [if test x"$enable_ltdl_install" = xno; then
  3249. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3250. - else
  3251. - enable_ltdl_install=yes
  3252. - fi
  3253. - ])
  3254. - if test x"$enable_ltdl_install" = x"yes"; then
  3255. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3256. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3257. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3258. - else
  3259. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3260. - LIBLTDL="-lltdl"
  3261. - LTDLINCL=
  3262. - fi
  3263. - # For backwards non-gettext consistent compatibility...
  3264. - INCLTDL="$LTDLINCL"
  3265. -])# AC_LIBLTDL_INSTALLABLE
  3266. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3267. +if test "$GCC" = yes; then
  3268. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3269. -# AC_LIBTOOL_CXX
  3270. -# --------------
  3271. -# enable support for C++ libraries
  3272. -AC_DEFUN([AC_LIBTOOL_CXX],
  3273. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3274. -])# AC_LIBTOOL_CXX
  3275. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3276. + lt_cv_prog_compiler_rtti_exceptions,
  3277. + [-fno-rtti -fno-exceptions], [],
  3278. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3279. +fi
  3280. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3281. + [Compiler flag to turn off builtin functions])
  3282. +])# _LT_COMPILER_NO_RTTI
  3283. -# _LT_AC_LANG_CXX
  3284. -# ---------------
  3285. -AC_DEFUN([_LT_AC_LANG_CXX],
  3286. -[AC_REQUIRE([AC_PROG_CXX])
  3287. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3288. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3289. -])# _LT_AC_LANG_CXX
  3290. +# _LT_CMD_GLOBAL_SYMBOLS
  3291. +# ----------------------
  3292. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3293. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3294. +AC_REQUIRE([AC_PROG_CC])dnl
  3295. +AC_REQUIRE([LT_PATH_NM])dnl
  3296. +AC_REQUIRE([LT_PATH_LD])dnl
  3297. +m4_require([_LT_DECL_SED])dnl
  3298. +m4_require([_LT_DECL_EGREP])dnl
  3299. +m4_require([_LT_TAG_COMPILER])dnl
  3300. -# _LT_AC_PROG_CXXCPP
  3301. -# ------------------
  3302. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3303. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3304. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3305. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3306. [
  3307. -AC_REQUIRE([AC_PROG_CXX])
  3308. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3309. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3310. - (test "X$CXX" != "Xg++"))) ; then
  3311. - AC_PROG_CXXCPP
  3312. -fi
  3313. -])# _LT_AC_PROG_CXXCPP
  3314. -
  3315. -# AC_LIBTOOL_F77
  3316. -# --------------
  3317. -# enable support for Fortran 77 libraries
  3318. -AC_DEFUN([AC_LIBTOOL_F77],
  3319. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3320. -])# AC_LIBTOOL_F77
  3321. +# These are sane defaults that work on at least a few old systems.
  3322. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3323. +# Character class describing NM global symbol codes.
  3324. +symcode='[[BCDEGRST]]'
  3325. -# _LT_AC_LANG_F77
  3326. -# ---------------
  3327. -AC_DEFUN([_LT_AC_LANG_F77],
  3328. -[AC_REQUIRE([AC_PROG_F77])
  3329. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3330. -])# _LT_AC_LANG_F77
  3331. +# Regexp to match symbols that can be accessed directly from C.
  3332. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3333. +# Define system-specific variables.
  3334. +case $host_os in
  3335. +aix*)
  3336. + symcode='[[BCDT]]'
  3337. + ;;
  3338. +cygwin* | mingw* | pw32* | cegcc*)
  3339. + symcode='[[ABCDGISTW]]'
  3340. + ;;
  3341. +hpux*)
  3342. + if test "$host_cpu" = ia64; then
  3343. + symcode='[[ABCDEGRST]]'
  3344. + fi
  3345. + ;;
  3346. +irix* | nonstopux*)
  3347. + symcode='[[BCDEGRST]]'
  3348. + ;;
  3349. +osf*)
  3350. + symcode='[[BCDEGQRST]]'
  3351. + ;;
  3352. +solaris*)
  3353. + symcode='[[BDRT]]'
  3354. + ;;
  3355. +sco3.2v5*)
  3356. + symcode='[[DT]]'
  3357. + ;;
  3358. +sysv4.2uw2*)
  3359. + symcode='[[DT]]'
  3360. + ;;
  3361. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3362. + symcode='[[ABDT]]'
  3363. + ;;
  3364. +sysv4)
  3365. + symcode='[[DFNSTU]]'
  3366. + ;;
  3367. +esac
  3368. -# AC_LIBTOOL_GCJ
  3369. -# --------------
  3370. -# enable support for GCJ libraries
  3371. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3372. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3373. -])# AC_LIBTOOL_GCJ
  3374. +# If we're using GNU nm, then use its standard symbol codes.
  3375. +case `$NM -V 2>&1` in
  3376. +*GNU* | *'with BFD'*)
  3377. + symcode='[[ABCDGIRSTW]]' ;;
  3378. +esac
  3379. +# Transform an extracted symbol line into a proper C declaration.
  3380. +# Some systems (esp. on ia64) link data and code symbols differently,
  3381. +# so use this general approach.
  3382. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3383. -# _LT_AC_LANG_GCJ
  3384. -# ---------------
  3385. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3386. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3387. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3388. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3389. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3390. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3391. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3392. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3393. -])# _LT_AC_LANG_GCJ
  3394. +# Transform an extracted symbol line into symbol name and symbol address
  3395. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3396. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3397. +# Handle CRLF in mingw tool chain
  3398. +opt_cr=
  3399. +case $build_os in
  3400. +mingw*)
  3401. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3402. + ;;
  3403. +esac
  3404. -# AC_LIBTOOL_RC
  3405. -# -------------
  3406. -# enable support for Windows resource files
  3407. -AC_DEFUN([AC_LIBTOOL_RC],
  3408. -[AC_REQUIRE([LT_AC_PROG_RC])
  3409. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3410. -])# AC_LIBTOOL_RC
  3411. +# Try without a prefix underscore, then with it.
  3412. +for ac_symprfx in "" "_"; do
  3413. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3414. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3415. -# AC_LIBTOOL_LANG_C_CONFIG
  3416. -# ------------------------
  3417. -# Ensure that the configuration vars for the C compiler are
  3418. -# suitably defined. Those variables are subsequently used by
  3419. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3420. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3421. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3422. -[lt_save_CC="$CC"
  3423. -AC_LANG_PUSH(C)
  3424. -
  3425. -# Source file extension for C test sources.
  3426. -ac_ext=c
  3427. -
  3428. -# Object file extension for compiled C test sources.
  3429. -objext=o
  3430. -_LT_AC_TAGVAR(objext, $1)=$objext
  3431. -
  3432. -# Code to be used in simple compile tests
  3433. -lt_simple_compile_test_code="int some_variable = 0;"
  3434. -
  3435. -# Code to be used in simple link tests
  3436. -lt_simple_link_test_code='int main(){return(0);}'
  3437. -
  3438. -_LT_AC_SYS_COMPILER
  3439. -
  3440. -# save warnings/boilerplate of simple test code
  3441. -_LT_COMPILER_BOILERPLATE
  3442. -_LT_LINKER_BOILERPLATE
  3443. -
  3444. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3445. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3446. -AC_LIBTOOL_PROG_CC_C_O($1)
  3447. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3448. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3449. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3450. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3451. -AC_LIBTOOL_SYS_LIB_STRIP
  3452. -AC_LIBTOOL_DLOPEN_SELF
  3453. -
  3454. -# Report which library types will actually be built
  3455. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3456. -AC_MSG_RESULT([$can_build_shared])
  3457. -
  3458. -AC_MSG_CHECKING([whether to build shared libraries])
  3459. -test "$can_build_shared" = "no" && enable_shared=no
  3460. -
  3461. -# On AIX, shared libraries and static libraries use the same namespace, and
  3462. -# are all built from PIC.
  3463. -case $host_os in
  3464. -aix3*)
  3465. - test "$enable_shared" = yes && enable_static=no
  3466. - if test -n "$RANLIB"; then
  3467. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3468. - postinstall_cmds='$RANLIB $lib'
  3469. - fi
  3470. - ;;
  3471. -
  3472. -aix4* | aix5*)
  3473. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3474. - test "$enable_shared" = yes && enable_static=no
  3475. + # Write the raw and C identifiers.
  3476. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3477. + # Fake it for dumpbin and say T for any non-static function
  3478. + # and D for any global variable.
  3479. + # Also find C++ and __fastcall symbols from MSVC++,
  3480. + # which start with @ or ?.
  3481. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3482. +" {last_section=section; section=\$ 3};"\
  3483. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3484. +" \$ 0!~/External *\|/{next};"\
  3485. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3486. +" {if(hide[section]) next};"\
  3487. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3488. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3489. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3490. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3491. +" ' prfx=^$ac_symprfx]"
  3492. + else
  3493. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3494. fi
  3495. - ;;
  3496. -esac
  3497. -AC_MSG_RESULT([$enable_shared])
  3498. -
  3499. -AC_MSG_CHECKING([whether to build static libraries])
  3500. -# Make sure either enable_shared or enable_static is yes.
  3501. -test "$enable_shared" = yes || enable_static=yes
  3502. -AC_MSG_RESULT([$enable_static])
  3503. -
  3504. -AC_LIBTOOL_CONFIG($1)
  3505. -
  3506. -AC_LANG_POP
  3507. -CC="$lt_save_CC"
  3508. -])# AC_LIBTOOL_LANG_C_CONFIG
  3509. -
  3510. -
  3511. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3512. -# --------------------------
  3513. -# Ensure that the configuration vars for the C compiler are
  3514. -# suitably defined. Those variables are subsequently used by
  3515. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3516. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3517. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3518. -[AC_LANG_PUSH(C++)
  3519. -AC_REQUIRE([AC_PROG_CXX])
  3520. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3521. -
  3522. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3523. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3524. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3525. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3526. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3527. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3528. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3529. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3530. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3531. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3532. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3533. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3534. -_LT_AC_TAGVAR(module_cmds, $1)=
  3535. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3536. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3537. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3538. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3539. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3540. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3541. -
  3542. -# Dependencies to place before and after the object being linked:
  3543. -_LT_AC_TAGVAR(predep_objects, $1)=
  3544. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3545. -_LT_AC_TAGVAR(predeps, $1)=
  3546. -_LT_AC_TAGVAR(postdeps, $1)=
  3547. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3548. -
  3549. -# Source file extension for C++ test sources.
  3550. -ac_ext=cpp
  3551. -
  3552. -# Object file extension for compiled C++ test sources.
  3553. -objext=o
  3554. -_LT_AC_TAGVAR(objext, $1)=$objext
  3555. -
  3556. -# Code to be used in simple compile tests
  3557. -lt_simple_compile_test_code="int some_variable = 0;"
  3558. -
  3559. -# Code to be used in simple link tests
  3560. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3561. -
  3562. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3563. -_LT_AC_SYS_COMPILER
  3564. -# save warnings/boilerplate of simple test code
  3565. -_LT_COMPILER_BOILERPLATE
  3566. -_LT_LINKER_BOILERPLATE
  3567. + # Check to see that the pipe works correctly.
  3568. + pipe_works=no
  3569. -# Allow CC to be a program name with arguments.
  3570. -lt_save_CC=$CC
  3571. -lt_save_LD=$LD
  3572. -lt_save_GCC=$GCC
  3573. -GCC=$GXX
  3574. -lt_save_with_gnu_ld=$with_gnu_ld
  3575. -lt_save_path_LD=$lt_cv_path_LD
  3576. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3577. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3578. -else
  3579. - $as_unset lt_cv_prog_gnu_ld
  3580. -fi
  3581. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3582. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3583. -else
  3584. - $as_unset lt_cv_path_LD
  3585. -fi
  3586. -test -z "${LDCXX+set}" || LD=$LDCXX
  3587. -CC=${CXX-"c++"}
  3588. -compiler=$CC
  3589. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3590. -_LT_CC_BASENAME([$compiler])
  3591. + rm -f conftest*
  3592. + cat > conftest.$ac_ext <<_LT_EOF
  3593. +#ifdef __cplusplus
  3594. +extern "C" {
  3595. +#endif
  3596. +char nm_test_var;
  3597. +void nm_test_func(void);
  3598. +void nm_test_func(void){}
  3599. +#ifdef __cplusplus
  3600. +}
  3601. +#endif
  3602. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3603. +_LT_EOF
  3604. -# We don't want -fno-exception wen compiling C++ code, so set the
  3605. -# no_builtin_flag separately
  3606. -if test "$GXX" = yes; then
  3607. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3608. -else
  3609. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3610. -fi
  3611. + if AC_TRY_EVAL(ac_compile); then
  3612. + # Now try to grab the symbols.
  3613. + nlist=conftest.nm
  3614. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3615. + # Try sorting and uniquifying the output.
  3616. + if sort "$nlist" | uniq > "$nlist"T; then
  3617. + mv -f "$nlist"T "$nlist"
  3618. + else
  3619. + rm -f "$nlist"T
  3620. + fi
  3621. -if test "$GXX" = yes; then
  3622. - # Set up default GNU C++ configuration
  3623. + # Make sure that we snagged all the symbols we need.
  3624. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3625. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3626. + cat <<_LT_EOF > conftest.$ac_ext
  3627. +#ifdef __cplusplus
  3628. +extern "C" {
  3629. +#endif
  3630. - AC_PROG_LD
  3631. +_LT_EOF
  3632. + # Now generate the symbol file.
  3633. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3634. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3635. - # archiving commands below assume that GNU ld is being used.
  3636. - if test "$with_gnu_ld" = yes; then
  3637. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3638. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3639. + cat <<_LT_EOF >> conftest.$ac_ext
  3640. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3641. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3642. +/* The mapping between symbol names and symbols. */
  3643. +const struct {
  3644. + const char *name;
  3645. + void *address;
  3646. +}
  3647. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3648. +{
  3649. + { "@PROGRAM@", (void *) 0 },
  3650. +_LT_EOF
  3651. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3652. + cat <<\_LT_EOF >> conftest.$ac_ext
  3653. + {0, (void *) 0}
  3654. +};
  3655. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3656. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3657. - # investigate it a little bit more. (MM)
  3658. - wlarc='${wl}'
  3659. +/* This works around a problem in FreeBSD linker */
  3660. +#ifdef FREEBSD_WORKAROUND
  3661. +static const void *lt_preloaded_setup() {
  3662. + return lt__PROGRAM__LTX_preloaded_symbols;
  3663. +}
  3664. +#endif
  3665. - # ancient GNU ld didn't support --whole-archive et. al.
  3666. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3667. - grep 'no-whole-archive' > /dev/null; then
  3668. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3669. +#ifdef __cplusplus
  3670. +}
  3671. +#endif
  3672. +_LT_EOF
  3673. + # Now try linking the two files.
  3674. + mv conftest.$ac_objext conftstm.$ac_objext
  3675. + lt_save_LIBS="$LIBS"
  3676. + lt_save_CFLAGS="$CFLAGS"
  3677. + LIBS="conftstm.$ac_objext"
  3678. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3679. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3680. + pipe_works=yes
  3681. + fi
  3682. + LIBS="$lt_save_LIBS"
  3683. + CFLAGS="$lt_save_CFLAGS"
  3684. + else
  3685. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3686. + fi
  3687. + else
  3688. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3689. + fi
  3690. else
  3691. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3692. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3693. fi
  3694. else
  3695. - with_gnu_ld=no
  3696. - wlarc=
  3697. -
  3698. - # A generic and very simple default shared library creation
  3699. - # command for GNU C++ for the case where it uses the native
  3700. - # linker, instead of GNU ld. If possible, this setting should
  3701. - # overridden to take advantage of the native linker features on
  3702. - # the platform it is being used on.
  3703. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3704. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3705. + cat conftest.$ac_ext >&5
  3706. fi
  3707. + rm -rf conftest* conftst*
  3708. - # Commands to make compiler produce verbose output that lists
  3709. - # what "hidden" libraries, object files and flags are used when
  3710. - # linking a shared library.
  3711. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3712. -
  3713. + # Do not use the global_symbol_pipe unless it works.
  3714. + if test "$pipe_works" = yes; then
  3715. + break
  3716. + else
  3717. + lt_cv_sys_global_symbol_pipe=
  3718. + fi
  3719. +done
  3720. +])
  3721. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3722. + lt_cv_sys_global_symbol_to_cdecl=
  3723. +fi
  3724. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3725. + AC_MSG_RESULT(failed)
  3726. else
  3727. - GXX=no
  3728. - with_gnu_ld=no
  3729. - wlarc=
  3730. + AC_MSG_RESULT(ok)
  3731. fi
  3732. -# PORTME: fill in a description of your system's C++ link characteristics
  3733. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3734. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3735. -case $host_os in
  3736. - aix3*)
  3737. - # FIXME: insert proper C++ library support
  3738. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3739. - ;;
  3740. - aix4* | aix5*)
  3741. - if test "$host_cpu" = ia64; then
  3742. - # On IA64, the linker does run time linking by default, so we don't
  3743. - # have to do anything special.
  3744. - aix_use_runtimelinking=no
  3745. - exp_sym_flag='-Bexport'
  3746. - no_entry_flag=""
  3747. - else
  3748. - aix_use_runtimelinking=no
  3749. -
  3750. - # Test if we are trying to use run time linking or normal
  3751. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3752. - # need to do runtime linking.
  3753. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  3754. - for ld_flag in $LDFLAGS; do
  3755. - case $ld_flag in
  3756. - *-brtl*)
  3757. - aix_use_runtimelinking=yes
  3758. - break
  3759. - ;;
  3760. - esac
  3761. - done
  3762. - ;;
  3763. - esac
  3764. -
  3765. - exp_sym_flag='-bexport'
  3766. - no_entry_flag='-bnoentry'
  3767. - fi
  3768. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3769. + [Take the output of nm and produce a listing of raw symbols and C names])
  3770. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3771. + [Transform the output of nm in a proper C declaration])
  3772. +_LT_DECL([global_symbol_to_c_name_address],
  3773. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3774. + [Transform the output of nm in a C name address pair])
  3775. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3776. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3777. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3778. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3779. - # When large executables or shared objects are built, AIX ld can
  3780. - # have problems creating the table of contents. If linking a library
  3781. - # or program results in "error TOC overflow" add -mminimal-toc to
  3782. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3783. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3784. -
  3785. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3786. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3787. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3788. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3789. - if test "$GXX" = yes; then
  3790. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3791. - # We only want to do this on AIX 4.2 and lower, the check
  3792. - # below for broken collect2 doesn't work under 4.3+
  3793. - collect2name=`${CC} -print-prog-name=collect2`
  3794. - if test -f "$collect2name" && \
  3795. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3796. - then
  3797. - # We have reworked collect2
  3798. - :
  3799. - else
  3800. - # We have old collect2
  3801. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3802. - # It fails to find uninstalled libraries when the uninstalled
  3803. - # path is not listed in the libpath. Setting hardcode_minus_L
  3804. - # to unsupported forces relinking
  3805. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3806. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3807. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3808. - fi
  3809. - ;;
  3810. - esac
  3811. - shared_flag='-shared'
  3812. - if test "$aix_use_runtimelinking" = yes; then
  3813. - shared_flag="$shared_flag "'${wl}-G'
  3814. - fi
  3815. - else
  3816. - # not using gcc
  3817. - if test "$host_cpu" = ia64; then
  3818. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3819. - # chokes on -Wl,-G. The following line is correct:
  3820. - shared_flag='-G'
  3821. - else
  3822. - if test "$aix_use_runtimelinking" = yes; then
  3823. - shared_flag='${wl}-G'
  3824. - else
  3825. - shared_flag='${wl}-bM:SRE'
  3826. - fi
  3827. - fi
  3828. - fi
  3829. +# _LT_COMPILER_PIC([TAGNAME])
  3830. +# ---------------------------
  3831. +m4_defun([_LT_COMPILER_PIC],
  3832. +[m4_require([_LT_TAG_COMPILER])dnl
  3833. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3834. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3835. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3836. - # It seems that -bexpall does not export symbols beginning with
  3837. - # underscore (_), so it is better to generate a list of symbols to export.
  3838. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3839. - if test "$aix_use_runtimelinking" = yes; then
  3840. - # Warning - without using the other runtime loading flags (-brtl),
  3841. - # -berok will link without error, but may produce a broken library.
  3842. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3843. - # Determine the default libpath from the value encoded in an empty executable.
  3844. - _LT_AC_SYS_LIBPATH_AIX
  3845. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3846. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3847. +m4_if([$1], [CXX], [
  3848. + # C++ specific cases for pic, static, wl, etc.
  3849. + if test "$GXX" = yes; then
  3850. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3851. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3852. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3853. - else
  3854. + case $host_os in
  3855. + aix*)
  3856. + # All AIX code is PIC.
  3857. if test "$host_cpu" = ia64; then
  3858. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3859. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3860. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  3861. - else
  3862. - # Determine the default libpath from the value encoded in an empty executable.
  3863. - _LT_AC_SYS_LIBPATH_AIX
  3864. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3865. - # Warning - without using the other run time loading flags,
  3866. - # -berok will link without error, but may produce a broken library.
  3867. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3868. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3869. - # Exported symbols can be pulled into shared objects from archives
  3870. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3871. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3872. - # This is similar to how AIX traditionally builds its shared libraries.
  3873. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3874. - fi
  3875. - fi
  3876. - ;;
  3877. -
  3878. - beos*)
  3879. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3880. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3881. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3882. - # support --undefined. This deserves some investigation. FIXME
  3883. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3884. - else
  3885. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3886. - fi
  3887. - ;;
  3888. -
  3889. - chorus*)
  3890. - case $cc_basename in
  3891. - *)
  3892. - # FIXME: insert proper C++ library support
  3893. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3894. - ;;
  3895. - esac
  3896. - ;;
  3897. -
  3898. - cygwin* | mingw* | pw32*)
  3899. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3900. - # as there is no search path for DLLs.
  3901. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3902. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3903. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3904. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3905. -
  3906. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3907. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3908. - # If the export-symbols file already is a .def file (1st line
  3909. - # is EXPORTS), use it as is; otherwise, prepend...
  3910. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3911. - cp $export_symbols $output_objdir/$soname.def;
  3912. - else
  3913. - echo EXPORTS > $output_objdir/$soname.def;
  3914. - cat $export_symbols >> $output_objdir/$soname.def;
  3915. - fi~
  3916. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3917. - else
  3918. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3919. - fi
  3920. - ;;
  3921. - darwin* | rhapsody*)
  3922. - case $host_os in
  3923. - rhapsody* | darwin1.[[012]])
  3924. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  3925. - ;;
  3926. - *) # Darwin 1.3 on
  3927. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3928. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3929. - else
  3930. - case ${MACOSX_DEPLOYMENT_TARGET} in
  3931. - 10.[[012]])
  3932. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3933. - ;;
  3934. - 10.*)
  3935. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  3936. - ;;
  3937. - esac
  3938. - fi
  3939. - ;;
  3940. - esac
  3941. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3942. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3943. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3944. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3945. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3946. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3947. -
  3948. - if test "$GXX" = yes ; then
  3949. - lt_int_apple_cc_single_mod=no
  3950. - output_verbose_link_cmd='echo'
  3951. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  3952. - lt_int_apple_cc_single_mod=yes
  3953. - fi
  3954. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3955. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3956. - else
  3957. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3958. - fi
  3959. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3960. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3961. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3962. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3963. - else
  3964. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3965. - fi
  3966. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3967. - else
  3968. - case $cc_basename in
  3969. - xlc*)
  3970. - output_verbose_link_cmd='echo'
  3971. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  3972. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3973. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3974. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3975. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3976. - ;;
  3977. - *)
  3978. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3979. - ;;
  3980. - esac
  3981. - fi
  3982. - ;;
  3983. -
  3984. - dgux*)
  3985. - case $cc_basename in
  3986. - ec++*)
  3987. - # FIXME: insert proper C++ library support
  3988. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3989. - ;;
  3990. - ghcx*)
  3991. - # Green Hills C++ Compiler
  3992. - # FIXME: insert proper C++ library support
  3993. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3994. - ;;
  3995. - *)
  3996. - # FIXME: insert proper C++ library support
  3997. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3998. - ;;
  3999. - esac
  4000. - ;;
  4001. - freebsd[[12]]*)
  4002. - # C++ shared libraries reported to be fairly broken before switch to ELF
  4003. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4004. - ;;
  4005. - freebsd-elf*)
  4006. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4007. - ;;
  4008. - freebsd* | dragonfly*)
  4009. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4010. - # conventions
  4011. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4012. - ;;
  4013. - gnu*)
  4014. - ;;
  4015. - hpux9*)
  4016. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4017. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4018. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4019. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4020. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4021. - # but as the default
  4022. - # location of the library.
  4023. -
  4024. - case $cc_basename in
  4025. - CC*)
  4026. - # FIXME: insert proper C++ library support
  4027. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4028. - ;;
  4029. - aCC*)
  4030. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4031. - # Commands to make compiler produce verbose output that lists
  4032. - # what "hidden" libraries, object files and flags are used when
  4033. - # linking a shared library.
  4034. - #
  4035. - # There doesn't appear to be a way to prevent this compiler from
  4036. - # explicitly linking system object files so we need to strip them
  4037. - # from the output so that they don't get included in the library
  4038. - # dependencies.
  4039. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4040. - ;;
  4041. - *)
  4042. - if test "$GXX" = yes; then
  4043. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4044. - else
  4045. - # FIXME: insert proper C++ library support
  4046. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4047. + # AIX 5 now supports IA64 processor
  4048. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4049. fi
  4050. ;;
  4051. - esac
  4052. - ;;
  4053. - hpux10*|hpux11*)
  4054. - if test $with_gnu_ld = no; then
  4055. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4056. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4057. + amigaos*)
  4058. case $host_cpu in
  4059. - hppa*64*|ia64*) ;;
  4060. - *)
  4061. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4062. + powerpc)
  4063. + # see comment about AmigaOS4 .so support
  4064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4065. + ;;
  4066. + m68k)
  4067. + # FIXME: we need at least 68020 code to build shared libraries, but
  4068. + # adding the `-m68020' flag to GCC prevents building anything better,
  4069. + # like `-m68040'.
  4070. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4071. ;;
  4072. esac
  4073. - fi
  4074. - case $host_cpu in
  4075. - hppa*64*|ia64*)
  4076. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4077. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4078. - ;;
  4079. - *)
  4080. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4081. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4082. - # but as the default
  4083. - # location of the library.
  4084. ;;
  4085. - esac
  4086. - case $cc_basename in
  4087. - CC*)
  4088. - # FIXME: insert proper C++ library support
  4089. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4090. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4091. + # PIC is the default for these OSes.
  4092. + ;;
  4093. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4094. + # This hack is so that the source file can tell whether it is being
  4095. + # built for inclusion in a dll (and should export symbols for example).
  4096. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4097. + # (--disable-auto-import) libraries
  4098. + m4_if([$1], [GCJ], [],
  4099. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4100. + ;;
  4101. + darwin* | rhapsody*)
  4102. + # PIC is the default on this platform
  4103. + # Common symbols not allowed in MH_DYLIB files
  4104. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4105. + ;;
  4106. + *djgpp*)
  4107. + # DJGPP does not support shared libraries at all
  4108. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4109. + ;;
  4110. + interix[[3-9]]*)
  4111. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4112. + # Instead, we relocate shared libraries at runtime.
  4113. + ;;
  4114. + sysv4*MP*)
  4115. + if test -d /usr/nec; then
  4116. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4117. + fi
  4118. + ;;
  4119. + hpux*)
  4120. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4121. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4122. + # sets the default TLS model and affects inlining.
  4123. + case $host_cpu in
  4124. + hppa*64*)
  4125. ;;
  4126. - aCC*)
  4127. - case $host_cpu in
  4128. - hppa*64*)
  4129. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4130. - ;;
  4131. - ia64*)
  4132. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4133. - ;;
  4134. - *)
  4135. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4136. + *)
  4137. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4138. + ;;
  4139. + esac
  4140. + ;;
  4141. + *qnx* | *nto*)
  4142. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4143. + # it will coredump.
  4144. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4145. + ;;
  4146. + *)
  4147. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4148. + ;;
  4149. + esac
  4150. + else
  4151. + case $host_os in
  4152. + aix[[4-9]]*)
  4153. + # All AIX code is PIC.
  4154. + if test "$host_cpu" = ia64; then
  4155. + # AIX 5 now supports IA64 processor
  4156. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4157. + else
  4158. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4159. + fi
  4160. + ;;
  4161. + chorus*)
  4162. + case $cc_basename in
  4163. + cxch68*)
  4164. + # Green Hills C++ Compiler
  4165. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  4166. ;;
  4167. esac
  4168. - # Commands to make compiler produce verbose output that lists
  4169. - # what "hidden" libraries, object files and flags are used when
  4170. - # linking a shared library.
  4171. - #
  4172. - # There doesn't appear to be a way to prevent this compiler from
  4173. - # explicitly linking system object files so we need to strip them
  4174. - # from the output so that they don't get included in the library
  4175. - # dependencies.
  4176. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4177. ;;
  4178. - *)
  4179. - if test "$GXX" = yes; then
  4180. - if test $with_gnu_ld = no; then
  4181. + dgux*)
  4182. + case $cc_basename in
  4183. + ec++*)
  4184. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4185. + ;;
  4186. + ghcx*)
  4187. + # Green Hills C++ Compiler
  4188. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4189. + ;;
  4190. + *)
  4191. + ;;
  4192. + esac
  4193. + ;;
  4194. + freebsd* | dragonfly*)
  4195. + # FreeBSD uses GNU C++
  4196. + ;;
  4197. + hpux9* | hpux10* | hpux11*)
  4198. + case $cc_basename in
  4199. + CC*)
  4200. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4201. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4202. + if test "$host_cpu" != ia64; then
  4203. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4204. + fi
  4205. + ;;
  4206. + aCC*)
  4207. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4208. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4209. case $host_cpu in
  4210. - hppa*64*)
  4211. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4212. - ;;
  4213. - ia64*)
  4214. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4215. + hppa*64*|ia64*)
  4216. + # +Z the default
  4217. ;;
  4218. *)
  4219. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4220. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4221. ;;
  4222. esac
  4223. - fi
  4224. - else
  4225. - # FIXME: insert proper C++ library support
  4226. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4227. - fi
  4228. - ;;
  4229. - esac
  4230. - ;;
  4231. - interix[[3-9]]*)
  4232. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4233. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4234. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4235. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4236. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4237. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4238. - # default) and relocated if they conflict, which is a slow very memory
  4239. - # consuming and fragmenting process. To avoid this, we pick a random,
  4240. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4241. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4242. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4243. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4244. - ;;
  4245. - irix5* | irix6*)
  4246. - case $cc_basename in
  4247. - CC*)
  4248. - # SGI C++
  4249. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4250. -
  4251. - # Archives containing C++ object files must be created using
  4252. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4253. - # necessary to make sure instantiated templates are included
  4254. - # in the archive.
  4255. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4256. + ;;
  4257. + *)
  4258. + ;;
  4259. + esac
  4260. ;;
  4261. - *)
  4262. - if test "$GXX" = yes; then
  4263. - if test "$with_gnu_ld" = no; then
  4264. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  4265. - else
  4266. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4267. - fi
  4268. - fi
  4269. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4270. + interix*)
  4271. + # This is c89, which is MS Visual C++ (no shared libs)
  4272. + # Anyone wants to do a port?
  4273. ;;
  4274. - esac
  4275. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4276. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4277. - ;;
  4278. - linux* | k*bsd*-gnu)
  4279. - case $cc_basename in
  4280. - KCC*)
  4281. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4282. -
  4283. - # KCC will only create a shared library if the output file
  4284. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4285. - # to its proper name (with version) after linking.
  4286. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4287. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  4288. - # Commands to make compiler produce verbose output that lists
  4289. - # what "hidden" libraries, object files and flags are used when
  4290. - # linking a shared library.
  4291. - #
  4292. - # There doesn't appear to be a way to prevent this compiler from
  4293. - # explicitly linking system object files so we need to strip them
  4294. - # from the output so that they don't get included in the library
  4295. - # dependencies.
  4296. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4297. -
  4298. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4299. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4300. -
  4301. - # Archives containing C++ object files must be created using
  4302. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4303. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4304. - ;;
  4305. - icpc*)
  4306. - # Intel C++
  4307. - with_gnu_ld=yes
  4308. - # version 8.0 and above of icpc choke on multiply defined symbols
  4309. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4310. - # earlier do not add the objects themselves.
  4311. - case `$CC -V 2>&1` in
  4312. - *"Version 7."*)
  4313. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4314. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4315. - ;;
  4316. - *) # Version 8.0 or newer
  4317. - tmp_idyn=
  4318. - case $host_cpu in
  4319. - ia64*) tmp_idyn=' -i_dynamic';;
  4320. - esac
  4321. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4322. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4323. - ;;
  4324. + irix5* | irix6* | nonstopux*)
  4325. + case $cc_basename in
  4326. + CC*)
  4327. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4328. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4329. + # CC pic flag -KPIC is the default.
  4330. + ;;
  4331. + *)
  4332. + ;;
  4333. esac
  4334. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4335. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4336. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4337. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4338. - ;;
  4339. - pgCC*)
  4340. - # Portland Group C++ compiler
  4341. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4342. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  4343. -
  4344. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4345. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4346. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4347. - ;;
  4348. - cxx*)
  4349. - # Compaq C++
  4350. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4351. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  4352. -
  4353. - runpath_var=LD_RUN_PATH
  4354. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4355. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4356. -
  4357. - # Commands to make compiler produce verbose output that lists
  4358. - # what "hidden" libraries, object files and flags are used when
  4359. - # linking a shared library.
  4360. - #
  4361. - # There doesn't appear to be a way to prevent this compiler from
  4362. - # explicitly linking system object files so we need to strip them
  4363. - # from the output so that they don't get included in the library
  4364. - # dependencies.
  4365. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4366. ;;
  4367. - *)
  4368. - case `$CC -V 2>&1 | sed 5q` in
  4369. - *Sun\ C*)
  4370. - # Sun C++ 5.9
  4371. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4372. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4373. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  4374. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4375. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4376. -
  4377. - # Not sure whether something based on
  4378. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4379. - # would be better.
  4380. - output_verbose_link_cmd='echo'
  4381. -
  4382. - # Archives containing C++ object files must be created using
  4383. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4384. - # necessary to make sure instantiated templates are included
  4385. - # in the archive.
  4386. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4387. - ;;
  4388. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4389. + case $cc_basename in
  4390. + KCC*)
  4391. + # KAI C++ Compiler
  4392. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4393. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4394. + ;;
  4395. + ecpc* )
  4396. + # old Intel C++ for x86_64 which still supported -KPIC.
  4397. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4398. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4399. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4400. + ;;
  4401. + icpc* )
  4402. + # Intel C++, used to be incompatible with GCC.
  4403. + # ICC 10 doesn't accept -KPIC any more.
  4404. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4405. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4406. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4407. + ;;
  4408. + pgCC* | pgcpp*)
  4409. + # Portland Group C++ compiler
  4410. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4411. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4412. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4413. + ;;
  4414. + cxx*)
  4415. + # Compaq C++
  4416. + # Make sure the PIC flag is empty. It appears that all Alpha
  4417. + # Linux and Compaq Tru64 Unix objects are PIC.
  4418. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4419. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4420. + ;;
  4421. + xlc* | xlC*)
  4422. + # IBM XL 8.0 on PPC
  4423. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4424. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4425. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4426. + ;;
  4427. + *)
  4428. + case `$CC -V 2>&1 | sed 5q` in
  4429. + *Sun\ C*)
  4430. + # Sun C++ 5.9
  4431. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4432. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4433. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4434. + ;;
  4435. + esac
  4436. + ;;
  4437. esac
  4438. ;;
  4439. - esac
  4440. - ;;
  4441. - lynxos*)
  4442. - # FIXME: insert proper C++ library support
  4443. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4444. - ;;
  4445. - m88k*)
  4446. - # FIXME: insert proper C++ library support
  4447. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4448. - ;;
  4449. - mvs*)
  4450. - case $cc_basename in
  4451. - cxx*)
  4452. - # FIXME: insert proper C++ library support
  4453. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4454. - ;;
  4455. - *)
  4456. - # FIXME: insert proper C++ library support
  4457. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4458. - ;;
  4459. - esac
  4460. - ;;
  4461. - netbsd*)
  4462. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4463. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4464. - wlarc=
  4465. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4466. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4467. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4468. - fi
  4469. - # Workaround some broken pre-1.5 toolchains
  4470. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4471. - ;;
  4472. - openbsd2*)
  4473. - # C++ shared libraries are fairly broken
  4474. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4475. - ;;
  4476. - openbsd*)
  4477. - if test -f /usr/libexec/ld.so; then
  4478. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4479. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4480. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4481. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4482. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4483. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  4484. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4485. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4486. - fi
  4487. - output_verbose_link_cmd='echo'
  4488. - else
  4489. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4490. - fi
  4491. - ;;
  4492. - osf3*)
  4493. - case $cc_basename in
  4494. - KCC*)
  4495. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4496. -
  4497. - # KCC will only create a shared library if the output file
  4498. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4499. - # to its proper name (with version) after linking.
  4500. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4501. -
  4502. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4503. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4504. -
  4505. - # Archives containing C++ object files must be created using
  4506. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4507. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4508. -
  4509. - ;;
  4510. - RCC*)
  4511. - # Rational C++ 2.4.1
  4512. - # FIXME: insert proper C++ library support
  4513. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4514. - ;;
  4515. - cxx*)
  4516. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4517. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4518. -
  4519. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4520. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4521. -
  4522. - # Commands to make compiler produce verbose output that lists
  4523. - # what "hidden" libraries, object files and flags are used when
  4524. - # linking a shared library.
  4525. - #
  4526. - # There doesn't appear to be a way to prevent this compiler from
  4527. - # explicitly linking system object files so we need to strip them
  4528. - # from the output so that they don't get included in the library
  4529. - # dependencies.
  4530. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4531. + lynxos*)
  4532. ;;
  4533. - *)
  4534. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4535. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4536. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  4537. -
  4538. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4539. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4540. -
  4541. - # Commands to make compiler produce verbose output that lists
  4542. - # what "hidden" libraries, object files and flags are used when
  4543. - # linking a shared library.
  4544. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4545. -
  4546. - else
  4547. - # FIXME: insert proper C++ library support
  4548. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4549. - fi
  4550. + m88k*)
  4551. ;;
  4552. - esac
  4553. - ;;
  4554. - osf4* | osf5*)
  4555. - case $cc_basename in
  4556. - KCC*)
  4557. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4558. -
  4559. - # KCC will only create a shared library if the output file
  4560. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4561. - # to its proper name (with version) after linking.
  4562. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4563. -
  4564. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4565. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4566. -
  4567. - # Archives containing C++ object files must be created using
  4568. - # the KAI C++ compiler.
  4569. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4570. - ;;
  4571. - RCC*)
  4572. - # Rational C++ 2.4.1
  4573. - # FIXME: insert proper C++ library support
  4574. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4575. - ;;
  4576. - cxx*)
  4577. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4578. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4579. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4580. - echo "-hidden">> $lib.exp~
  4581. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  4582. - $rm $lib.exp'
  4583. -
  4584. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4585. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4586. -
  4587. - # Commands to make compiler produce verbose output that lists
  4588. - # what "hidden" libraries, object files and flags are used when
  4589. - # linking a shared library.
  4590. - #
  4591. - # There doesn't appear to be a way to prevent this compiler from
  4592. - # explicitly linking system object files so we need to strip them
  4593. - # from the output so that they don't get included in the library
  4594. - # dependencies.
  4595. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4596. + mvs*)
  4597. + case $cc_basename in
  4598. + cxx*)
  4599. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4600. + ;;
  4601. + *)
  4602. + ;;
  4603. + esac
  4604. ;;
  4605. - *)
  4606. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4607. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4608. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4609. -
  4610. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4611. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4612. -
  4613. - # Commands to make compiler produce verbose output that lists
  4614. - # what "hidden" libraries, object files and flags are used when
  4615. - # linking a shared library.
  4616. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4617. -
  4618. - else
  4619. - # FIXME: insert proper C++ library support
  4620. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4621. - fi
  4622. + netbsd* | netbsdelf*-gnu)
  4623. ;;
  4624. - esac
  4625. - ;;
  4626. - psos*)
  4627. - # FIXME: insert proper C++ library support
  4628. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4629. - ;;
  4630. - sunos4*)
  4631. - case $cc_basename in
  4632. - CC*)
  4633. - # Sun C++ 4.x
  4634. - # FIXME: insert proper C++ library support
  4635. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4636. - ;;
  4637. - lcc*)
  4638. - # Lucid
  4639. - # FIXME: insert proper C++ library support
  4640. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4641. + *qnx* | *nto*)
  4642. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4643. + # it will coredump.
  4644. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4645. + ;;
  4646. + osf3* | osf4* | osf5*)
  4647. + case $cc_basename in
  4648. + KCC*)
  4649. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4650. + ;;
  4651. + RCC*)
  4652. + # Rational C++ 2.4.1
  4653. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4654. + ;;
  4655. + cxx*)
  4656. + # Digital/Compaq C++
  4657. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4658. + # Make sure the PIC flag is empty. It appears that all Alpha
  4659. + # Linux and Compaq Tru64 Unix objects are PIC.
  4660. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4661. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4662. + ;;
  4663. + *)
  4664. + ;;
  4665. + esac
  4666. ;;
  4667. - *)
  4668. - # FIXME: insert proper C++ library support
  4669. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4670. + psos*)
  4671. ;;
  4672. - esac
  4673. - ;;
  4674. - solaris*)
  4675. - case $cc_basename in
  4676. - CC*)
  4677. - # Sun C++ 4.2, 5.x and Centerline C++
  4678. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4679. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4680. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4681. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4682. - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4683. -
  4684. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4685. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4686. - case $host_os in
  4687. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4688. + solaris*)
  4689. + case $cc_basename in
  4690. + CC*)
  4691. + # Sun C++ 4.2, 5.x and Centerline C++
  4692. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4693. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4694. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4695. + ;;
  4696. + gcx*)
  4697. + # Green Hills C++ Compiler
  4698. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4699. + ;;
  4700. *)
  4701. - # The compiler driver will combine and reorder linker options,
  4702. - # but understands `-z linker_flag'.
  4703. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4704. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4705. ;;
  4706. esac
  4707. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4708. -
  4709. - output_verbose_link_cmd='echo'
  4710. -
  4711. - # Archives containing C++ object files must be created using
  4712. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4713. - # necessary to make sure instantiated templates are included
  4714. - # in the archive.
  4715. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4716. - ;;
  4717. - gcx*)
  4718. - # Green Hills C++ Compiler
  4719. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4720. -
  4721. - # The C++ compiler must be used to create the archive.
  4722. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4723. ;;
  4724. - *)
  4725. - # GNU C++ compiler with Solaris linker
  4726. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4727. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4728. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4729. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4730. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4731. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4732. -
  4733. - # Commands to make compiler produce verbose output that lists
  4734. - # what "hidden" libraries, object files and flags are used when
  4735. - # linking a shared library.
  4736. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4737. - else
  4738. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4739. - # platform.
  4740. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4741. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4742. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4743. -
  4744. - # Commands to make compiler produce verbose output that lists
  4745. - # what "hidden" libraries, object files and flags are used when
  4746. - # linking a shared library.
  4747. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4748. - fi
  4749. -
  4750. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4751. - case $host_os in
  4752. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4753. + sunos4*)
  4754. + case $cc_basename in
  4755. + CC*)
  4756. + # Sun C++ 4.x
  4757. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4758. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4759. + ;;
  4760. + lcc*)
  4761. + # Lucid
  4762. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4763. + ;;
  4764. *)
  4765. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4766. ;;
  4767. - esac
  4768. - fi
  4769. - ;;
  4770. - esac
  4771. - ;;
  4772. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4773. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4774. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4775. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4776. - runpath_var='LD_RUN_PATH'
  4777. -
  4778. - case $cc_basename in
  4779. - CC*)
  4780. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4781. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4782. - ;;
  4783. - *)
  4784. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4785. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4786. + esac
  4787. ;;
  4788. - esac
  4789. - ;;
  4790. - sysv5* | sco3.2v5* | sco5v6*)
  4791. - # Note: We can NOT use -z defs as we might desire, because we do not
  4792. - # link with -lc, and that would cause any symbols used from libc to
  4793. - # always be unresolved, which means just about no library would
  4794. - # ever link correctly. If we're not using GNU ld we use -z text
  4795. - # though, which does catch some bad symbols but isn't as heavy-handed
  4796. - # as -z defs.
  4797. - # For security reasons, it is highly recommended that you always
  4798. - # use absolute paths for naming shared libraries, and exclude the
  4799. - # DT_RUNPATH tag from executables and libraries. But doing so
  4800. - # requires that you compile everything twice, which is a pain.
  4801. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4802. - # non-empty value in the environment. Most likely only useful for
  4803. - # creating official distributions of packages.
  4804. - # This is a hack until libtool officially supports absolute path
  4805. - # names for shared libraries.
  4806. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4807. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4808. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4809. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4810. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4811. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4812. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4813. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4814. - runpath_var='LD_RUN_PATH'
  4815. -
  4816. - case $cc_basename in
  4817. - CC*)
  4818. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4819. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4820. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4821. + case $cc_basename in
  4822. + CC*)
  4823. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4824. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4825. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4826. + ;;
  4827. + esac
  4828. ;;
  4829. - *)
  4830. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4831. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4832. + tandem*)
  4833. + case $cc_basename in
  4834. + NCC*)
  4835. + # NonStop-UX NCC 3.20
  4836. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4837. + ;;
  4838. + *)
  4839. + ;;
  4840. + esac
  4841. ;;
  4842. - esac
  4843. - ;;
  4844. - tandem*)
  4845. - case $cc_basename in
  4846. - NCC*)
  4847. - # NonStop-UX NCC 3.20
  4848. - # FIXME: insert proper C++ library support
  4849. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4850. + vxworks*)
  4851. ;;
  4852. *)
  4853. - # FIXME: insert proper C++ library support
  4854. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4855. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4856. ;;
  4857. esac
  4858. - ;;
  4859. - vxworks*)
  4860. - # FIXME: insert proper C++ library support
  4861. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4862. - ;;
  4863. - *)
  4864. - # FIXME: insert proper C++ library support
  4865. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4866. - ;;
  4867. -esac
  4868. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4869. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4870. -
  4871. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4872. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4873. -
  4874. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4875. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4876. -AC_LIBTOOL_PROG_CC_C_O($1)
  4877. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4878. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4879. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4880. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4881. -
  4882. -AC_LIBTOOL_CONFIG($1)
  4883. + fi
  4884. +],
  4885. +[
  4886. + if test "$GCC" = yes; then
  4887. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4888. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4889. -AC_LANG_POP
  4890. -CC=$lt_save_CC
  4891. -LDCXX=$LD
  4892. -LD=$lt_save_LD
  4893. -GCC=$lt_save_GCC
  4894. -with_gnu_ldcxx=$with_gnu_ld
  4895. -with_gnu_ld=$lt_save_with_gnu_ld
  4896. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4897. -lt_cv_path_LD=$lt_save_path_LD
  4898. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4899. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4900. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4901. + case $host_os in
  4902. + aix*)
  4903. + # All AIX code is PIC.
  4904. + if test "$host_cpu" = ia64; then
  4905. + # AIX 5 now supports IA64 processor
  4906. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4907. + fi
  4908. + ;;
  4909. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4910. -# ------------------------------------
  4911. -# Figure out "hidden" library dependencies from verbose
  4912. -# compiler output when linking a shared library.
  4913. -# Parse the compiler output and extract the necessary
  4914. -# objects, libraries and library flags.
  4915. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  4916. -dnl we can't use the lt_simple_compile_test_code here,
  4917. -dnl because it contains code intended for an executable,
  4918. -dnl not a library. It's possible we should let each
  4919. -dnl tag define a new lt_????_link_test_code variable,
  4920. -dnl but it's only used here...
  4921. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4922. -int a;
  4923. -void foo (void) { a = 0; }
  4924. -EOF
  4925. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4926. -class Foo
  4927. -{
  4928. -public:
  4929. - Foo (void) { a = 0; }
  4930. -private:
  4931. - int a;
  4932. -};
  4933. -EOF
  4934. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4935. - subroutine foo
  4936. - implicit none
  4937. - integer*4 a
  4938. - a=0
  4939. - return
  4940. - end
  4941. -EOF
  4942. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4943. -public class foo {
  4944. - private int a;
  4945. - public void bar (void) {
  4946. - a = 0;
  4947. - }
  4948. -};
  4949. -EOF
  4950. -])
  4951. -dnl Parse the compiler output and extract the necessary
  4952. -dnl objects, libraries and library flags.
  4953. -if AC_TRY_EVAL(ac_compile); then
  4954. - # Parse the compiler output and extract the necessary
  4955. - # objects, libraries and library flags.
  4956. + amigaos*)
  4957. + case $host_cpu in
  4958. + powerpc)
  4959. + # see comment about AmigaOS4 .so support
  4960. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4961. + ;;
  4962. + m68k)
  4963. + # FIXME: we need at least 68020 code to build shared libraries, but
  4964. + # adding the `-m68020' flag to GCC prevents building anything better,
  4965. + # like `-m68040'.
  4966. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4967. + ;;
  4968. + esac
  4969. + ;;
  4970. - # Sentinel used to keep track of whether or not we are before
  4971. - # the conftest object file.
  4972. - pre_test_object_deps_done=no
  4973. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4974. + # PIC is the default for these OSes.
  4975. + ;;
  4976. - # The `*' in the case matches for architectures that use `case' in
  4977. - # $output_verbose_cmd can trigger glob expansion during the loop
  4978. - # eval without this substitution.
  4979. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4980. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4981. + # This hack is so that the source file can tell whether it is being
  4982. + # built for inclusion in a dll (and should export symbols for example).
  4983. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4984. + # (--disable-auto-import) libraries
  4985. + m4_if([$1], [GCJ], [],
  4986. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4987. + ;;
  4988. - for p in `eval $output_verbose_link_cmd`; do
  4989. - case $p in
  4990. + darwin* | rhapsody*)
  4991. + # PIC is the default on this platform
  4992. + # Common symbols not allowed in MH_DYLIB files
  4993. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4994. + ;;
  4995. - -L* | -R* | -l*)
  4996. - # Some compilers place space between "-{L,R}" and the path.
  4997. - # Remove the space.
  4998. - if test $p = "-L" \
  4999. - || test $p = "-R"; then
  5000. - prev=$p
  5001. - continue
  5002. - else
  5003. - prev=
  5004. - fi
  5005. + hpux*)
  5006. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5007. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5008. + # sets the default TLS model and affects inlining.
  5009. + case $host_cpu in
  5010. + hppa*64*)
  5011. + # +Z the default
  5012. + ;;
  5013. + *)
  5014. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5015. + ;;
  5016. + esac
  5017. + ;;
  5018. - if test "$pre_test_object_deps_done" = no; then
  5019. - case $p in
  5020. - -L* | -R*)
  5021. - # Internal compiler library paths should come after those
  5022. - # provided the user. The postdeps already come after the
  5023. - # user supplied libs so there is no need to process them.
  5024. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5025. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5026. - else
  5027. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5028. - fi
  5029. - ;;
  5030. - # The "-l" case would never come before the object being
  5031. - # linked, so don't bother handling this case.
  5032. - esac
  5033. - else
  5034. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5035. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5036. - else
  5037. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5038. - fi
  5039. - fi
  5040. - ;;
  5041. + interix[[3-9]]*)
  5042. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5043. + # Instead, we relocate shared libraries at runtime.
  5044. + ;;
  5045. - *.$objext)
  5046. - # This assumes that the test object file only shows up
  5047. - # once in the compiler output.
  5048. - if test "$p" = "conftest.$objext"; then
  5049. - pre_test_object_deps_done=yes
  5050. - continue
  5051. - fi
  5052. + msdosdjgpp*)
  5053. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5054. + # on systems that don't support them.
  5055. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5056. + enable_shared=no
  5057. + ;;
  5058. - if test "$pre_test_object_deps_done" = no; then
  5059. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5060. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5061. - else
  5062. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5063. - fi
  5064. - else
  5065. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5066. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5067. - else
  5068. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5069. - fi
  5070. - fi
  5071. - ;;
  5072. + *nto* | *qnx*)
  5073. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5074. + # it will coredump.
  5075. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5076. + ;;
  5077. - *) ;; # Ignore the rest.
  5078. + sysv4*MP*)
  5079. + if test -d /usr/nec; then
  5080. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5081. + fi
  5082. + ;;
  5083. + *)
  5084. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5085. + ;;
  5086. esac
  5087. - done
  5088. -
  5089. - # Clean up.
  5090. - rm -f a.out a.exe
  5091. -else
  5092. - echo "libtool.m4: error: problem compiling $1 test program"
  5093. -fi
  5094. + else
  5095. + # PORTME Check for flag to pass linker flags through the system compiler.
  5096. + case $host_os in
  5097. + aix*)
  5098. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5099. + if test "$host_cpu" = ia64; then
  5100. + # AIX 5 now supports IA64 processor
  5101. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5102. + else
  5103. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5104. + fi
  5105. + ;;
  5106. -$rm -f confest.$objext
  5107. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5108. + # This hack is so that the source file can tell whether it is being
  5109. + # built for inclusion in a dll (and should export symbols for example).
  5110. + m4_if([$1], [GCJ], [],
  5111. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5112. + ;;
  5113. -# PORTME: override above test on systems where it is broken
  5114. -ifelse([$1],[CXX],
  5115. -[case $host_os in
  5116. -interix[[3-9]]*)
  5117. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5118. - # hack all around it, let's just trust "g++" to DTRT.
  5119. - _LT_AC_TAGVAR(predep_objects,$1)=
  5120. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5121. - _LT_AC_TAGVAR(postdeps,$1)=
  5122. - ;;
  5123. + hpux9* | hpux10* | hpux11*)
  5124. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5125. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5126. + # not for PA HP-UX.
  5127. + case $host_cpu in
  5128. + hppa*64*|ia64*)
  5129. + # +Z the default
  5130. + ;;
  5131. + *)
  5132. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5133. + ;;
  5134. + esac
  5135. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5136. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5137. + ;;
  5138. -linux*)
  5139. - case `$CC -V 2>&1 | sed 5q` in
  5140. - *Sun\ C*)
  5141. - # Sun C++ 5.9
  5142. - #
  5143. - # The more standards-conforming stlport4 library is
  5144. - # incompatible with the Cstd library. Avoid specifying
  5145. - # it if it's in CXXFLAGS. Ignore libCrun as
  5146. - # -library=stlport4 depends on it.
  5147. - case " $CXX $CXXFLAGS " in
  5148. - *" -library=stlport4 "*)
  5149. - solaris_use_stlport4=yes
  5150. + irix5* | irix6* | nonstopux*)
  5151. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5152. + # PIC (with -KPIC) is the default.
  5153. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5154. ;;
  5155. - esac
  5156. - if test "$solaris_use_stlport4" != yes; then
  5157. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5158. - fi
  5159. - ;;
  5160. - esac
  5161. - ;;
  5162. -solaris*)
  5163. - case $cc_basename in
  5164. - CC*)
  5165. - # The more standards-conforming stlport4 library is
  5166. - # incompatible with the Cstd library. Avoid specifying
  5167. - # it if it's in CXXFLAGS. Ignore libCrun as
  5168. - # -library=stlport4 depends on it.
  5169. - case " $CXX $CXXFLAGS " in
  5170. - *" -library=stlport4 "*)
  5171. - solaris_use_stlport4=yes
  5172. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5173. + case $cc_basename in
  5174. + # old Intel for x86_64 which still supported -KPIC.
  5175. + ecc*)
  5176. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5177. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5178. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5179. + ;;
  5180. + # icc used to be incompatible with GCC.
  5181. + # ICC 10 doesn't accept -KPIC any more.
  5182. + icc* | ifort*)
  5183. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5184. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5185. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5186. + ;;
  5187. + # Lahey Fortran 8.1.
  5188. + lf95*)
  5189. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5190. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5191. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5192. + ;;
  5193. + pgcc* | pgf77* | pgf90* | pgf95*)
  5194. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5195. + # which looks to be a dead project)
  5196. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5197. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5198. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5199. + ;;
  5200. + ccc*)
  5201. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5202. + # All Alpha code is PIC.
  5203. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5204. + ;;
  5205. + xl*)
  5206. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5207. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5208. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5209. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5210. + ;;
  5211. + *)
  5212. + case `$CC -V 2>&1 | sed 5q` in
  5213. + *Sun\ C*)
  5214. + # Sun C 5.9
  5215. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5216. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5217. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5218. + ;;
  5219. + *Sun\ F*)
  5220. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5221. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5222. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5223. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5224. + ;;
  5225. + esac
  5226. + ;;
  5227. + esac
  5228. ;;
  5229. - esac
  5230. - # Adding this requires a known-good setup of shared libraries for
  5231. - # Sun compiler versions before 5.6, else PIC objects from an old
  5232. - # archive will be linked into the output, leading to subtle bugs.
  5233. - if test "$solaris_use_stlport4" != yes; then
  5234. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5235. - fi
  5236. - ;;
  5237. - esac
  5238. - ;;
  5239. -esac
  5240. -])
  5241. + newsos6)
  5242. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5243. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5244. + ;;
  5245. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5246. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5247. -esac
  5248. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5249. + *nto* | *qnx*)
  5250. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5251. + # it will coredump.
  5252. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5253. + ;;
  5254. -# AC_LIBTOOL_LANG_F77_CONFIG
  5255. -# --------------------------
  5256. -# Ensure that the configuration vars for the C compiler are
  5257. -# suitably defined. Those variables are subsequently used by
  5258. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5259. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5260. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5261. -[AC_REQUIRE([AC_PROG_F77])
  5262. -AC_LANG_PUSH(Fortran 77)
  5263. + osf3* | osf4* | osf5*)
  5264. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5265. + # All OSF/1 code is PIC.
  5266. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5267. + ;;
  5268. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5269. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5270. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5271. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5272. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5273. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5274. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5275. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5276. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5277. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5278. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5279. -_LT_AC_TAGVAR(module_cmds, $1)=
  5280. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5281. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5282. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5283. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5284. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5285. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5286. + rdos*)
  5287. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5288. + ;;
  5289. -# Source file extension for f77 test sources.
  5290. -ac_ext=f
  5291. -
  5292. -# Object file extension for compiled f77 test sources.
  5293. -objext=o
  5294. -_LT_AC_TAGVAR(objext, $1)=$objext
  5295. -
  5296. -# Code to be used in simple compile tests
  5297. -lt_simple_compile_test_code="\
  5298. - subroutine t
  5299. - return
  5300. - end
  5301. -"
  5302. + solaris*)
  5303. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5304. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5305. + case $cc_basename in
  5306. + f77* | f90* | f95*)
  5307. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5308. + *)
  5309. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5310. + esac
  5311. + ;;
  5312. -# Code to be used in simple link tests
  5313. -lt_simple_link_test_code="\
  5314. - program t
  5315. - end
  5316. -"
  5317. + sunos4*)
  5318. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5319. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5320. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5321. + ;;
  5322. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5323. -_LT_AC_SYS_COMPILER
  5324. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5325. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5326. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5328. + ;;
  5329. -# save warnings/boilerplate of simple test code
  5330. -_LT_COMPILER_BOILERPLATE
  5331. -_LT_LINKER_BOILERPLATE
  5332. + sysv4*MP*)
  5333. + if test -d /usr/nec ;then
  5334. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5335. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5336. + fi
  5337. + ;;
  5338. -# Allow CC to be a program name with arguments.
  5339. -lt_save_CC="$CC"
  5340. -CC=${F77-"f77"}
  5341. -compiler=$CC
  5342. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5343. -_LT_CC_BASENAME([$compiler])
  5344. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5345. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5346. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5347. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5348. + ;;
  5349. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5350. -AC_MSG_RESULT([$can_build_shared])
  5351. + unicos*)
  5352. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5353. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5354. + ;;
  5355. -AC_MSG_CHECKING([whether to build shared libraries])
  5356. -test "$can_build_shared" = "no" && enable_shared=no
  5357. + uts4*)
  5358. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5359. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5360. + ;;
  5361. -# On AIX, shared libraries and static libraries use the same namespace, and
  5362. -# are all built from PIC.
  5363. -case $host_os in
  5364. -aix3*)
  5365. - test "$enable_shared" = yes && enable_static=no
  5366. - if test -n "$RANLIB"; then
  5367. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5368. - postinstall_cmds='$RANLIB $lib'
  5369. - fi
  5370. - ;;
  5371. -aix4* | aix5*)
  5372. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5373. - test "$enable_shared" = yes && enable_static=no
  5374. + *)
  5375. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5376. + ;;
  5377. + esac
  5378. fi
  5379. - ;;
  5380. +])
  5381. +case $host_os in
  5382. + # For platforms which do not support PIC, -DPIC is meaningless:
  5383. + *djgpp*)
  5384. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5385. + ;;
  5386. + *)
  5387. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5388. + ;;
  5389. esac
  5390. -AC_MSG_RESULT([$enable_shared])
  5391. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5392. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5393. + [How to pass a linker flag through the compiler])
  5394. -AC_MSG_CHECKING([whether to build static libraries])
  5395. -# Make sure either enable_shared or enable_static is yes.
  5396. -test "$enable_shared" = yes || enable_static=yes
  5397. -AC_MSG_RESULT([$enable_static])
  5398. -
  5399. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5400. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5401. -
  5402. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5403. -AC_LIBTOOL_PROG_CC_C_O($1)
  5404. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5405. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5406. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5407. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5408. +#
  5409. +# Check to make sure the PIC flag actually works.
  5410. +#
  5411. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5412. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5413. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5414. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5415. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5416. + "" | " "*) ;;
  5417. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5418. + esac],
  5419. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5420. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5421. +fi
  5422. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5423. + [Additional compiler flags for building library objects])
  5424. -AC_LIBTOOL_CONFIG($1)
  5425. +#
  5426. +# Check to make sure the static flag actually works.
  5427. +#
  5428. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5429. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5430. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5431. + $lt_tmp_static_flag,
  5432. + [],
  5433. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5434. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5435. + [Compiler flag to prevent dynamic linking])
  5436. +])# _LT_COMPILER_PIC
  5437. -AC_LANG_POP
  5438. -CC="$lt_save_CC"
  5439. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5440. +# _LT_LINKER_SHLIBS([TAGNAME])
  5441. +# ----------------------------
  5442. +# See if the linker supports building shared libraries.
  5443. +m4_defun([_LT_LINKER_SHLIBS],
  5444. +[AC_REQUIRE([LT_PATH_LD])dnl
  5445. +AC_REQUIRE([LT_PATH_NM])dnl
  5446. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5447. +m4_require([_LT_DECL_EGREP])dnl
  5448. +m4_require([_LT_DECL_SED])dnl
  5449. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5450. +m4_require([_LT_TAG_COMPILER])dnl
  5451. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5452. +m4_if([$1], [CXX], [
  5453. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5454. + case $host_os in
  5455. + aix[[4-9]]*)
  5456. + # If we're using GNU nm, then we don't want the "-C" option.
  5457. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5458. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5459. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5460. + else
  5461. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5462. + fi
  5463. + ;;
  5464. + pw32*)
  5465. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5466. + ;;
  5467. + cygwin* | mingw* | cegcc*)
  5468. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5469. + ;;
  5470. + linux* | k*bsd*-gnu)
  5471. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5472. + ;;
  5473. + *)
  5474. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5475. + ;;
  5476. + esac
  5477. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5478. +], [
  5479. + runpath_var=
  5480. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5481. + _LT_TAGVAR(always_export_symbols, $1)=no
  5482. + _LT_TAGVAR(archive_cmds, $1)=
  5483. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5484. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5485. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5486. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5487. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5488. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5489. + _LT_TAGVAR(hardcode_direct, $1)=no
  5490. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5491. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5492. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5493. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5494. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5495. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5496. + _LT_TAGVAR(inherit_rpath, $1)=no
  5497. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5498. + _LT_TAGVAR(module_cmds, $1)=
  5499. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5500. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5501. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5502. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5503. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5504. + # include_expsyms should be a list of space-separated symbols to be *always*
  5505. + # included in the symbol list
  5506. + _LT_TAGVAR(include_expsyms, $1)=
  5507. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5508. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5509. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5510. + # as well as any symbol that contains `d'.
  5511. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5512. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5513. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5514. + # the symbol is explicitly referenced. Since portable code cannot
  5515. + # rely on this symbol name, it's probably fine to never include it in
  5516. + # preloaded symbol tables.
  5517. + # Exclude shared library initialization/finalization symbols.
  5518. +dnl Note also adjust exclude_expsyms for C++ above.
  5519. + extract_expsyms_cmds=
  5520. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5521. -# --------------------------
  5522. -# Ensure that the configuration vars for the C compiler are
  5523. -# suitably defined. Those variables are subsequently used by
  5524. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5525. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5526. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5527. -[AC_LANG_SAVE
  5528. + case $host_os in
  5529. + cygwin* | mingw* | pw32* | cegcc*)
  5530. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5531. + # When not using gcc, we currently assume that we are using
  5532. + # Microsoft Visual C++.
  5533. + if test "$GCC" != yes; then
  5534. + with_gnu_ld=no
  5535. + fi
  5536. + ;;
  5537. + interix*)
  5538. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5539. + with_gnu_ld=yes
  5540. + ;;
  5541. + openbsd*)
  5542. + with_gnu_ld=no
  5543. + ;;
  5544. + linux* | k*bsd*-gnu)
  5545. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5546. + ;;
  5547. + esac
  5548. -# Source file extension for Java test sources.
  5549. -ac_ext=java
  5550. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5551. + if test "$with_gnu_ld" = yes; then
  5552. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5553. + wlarc='${wl}'
  5554. -# Object file extension for compiled Java test sources.
  5555. -objext=o
  5556. -_LT_AC_TAGVAR(objext, $1)=$objext
  5557. + # Set some defaults for GNU ld with shared library support. These
  5558. + # are reset later if shared libraries are not supported. Putting them
  5559. + # here allows them to be overridden if necessary.
  5560. + runpath_var=LD_RUN_PATH
  5561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5562. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5563. + # ancient GNU ld didn't support --whole-archive et. al.
  5564. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5565. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5566. + else
  5567. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5568. + fi
  5569. + supports_anon_versioning=no
  5570. + case `$LD -v 2>&1` in
  5571. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5572. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5573. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5574. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5575. + *\ 2.11.*) ;; # other 2.11 versions
  5576. + *) supports_anon_versioning=yes ;;
  5577. + esac
  5578. -# Code to be used in simple compile tests
  5579. -lt_simple_compile_test_code="class foo {}"
  5580. + # See if GNU ld supports shared libraries.
  5581. + case $host_os in
  5582. + aix[[3-9]]*)
  5583. + # On AIX/PPC, the GNU linker is very broken
  5584. + if test "$host_cpu" != ia64; then
  5585. + _LT_TAGVAR(ld_shlibs, $1)=no
  5586. + cat <<_LT_EOF 1>&2
  5587. -# Code to be used in simple link tests
  5588. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5589. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5590. +*** to be unable to reliably create shared libraries on AIX.
  5591. +*** Therefore, libtool is disabling shared libraries support. If you
  5592. +*** really care for shared libraries, you may want to modify your PATH
  5593. +*** so that a non-GNU linker is found, and then restart.
  5594. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5595. -_LT_AC_SYS_COMPILER
  5596. +_LT_EOF
  5597. + fi
  5598. + ;;
  5599. -# save warnings/boilerplate of simple test code
  5600. -_LT_COMPILER_BOILERPLATE
  5601. -_LT_LINKER_BOILERPLATE
  5602. + amigaos*)
  5603. + case $host_cpu in
  5604. + powerpc)
  5605. + # see comment about AmigaOS4 .so support
  5606. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5607. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5608. + ;;
  5609. + m68k)
  5610. + _LT_TAGVAR(archive_cmds, $1)='$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)'
  5611. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5612. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5613. + ;;
  5614. + esac
  5615. + ;;
  5616. -# Allow CC to be a program name with arguments.
  5617. -lt_save_CC="$CC"
  5618. -CC=${GCJ-"gcj"}
  5619. -compiler=$CC
  5620. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5621. -_LT_CC_BASENAME([$compiler])
  5622. + beos*)
  5623. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5624. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5625. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5626. + # support --undefined. This deserves some investigation. FIXME
  5627. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5628. + else
  5629. + _LT_TAGVAR(ld_shlibs, $1)=no
  5630. + fi
  5631. + ;;
  5632. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5633. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5634. + cygwin* | mingw* | pw32* | cegcc*)
  5635. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5636. + # as there is no search path for DLLs.
  5637. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5638. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5639. + _LT_TAGVAR(always_export_symbols, $1)=no
  5640. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5641. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5642. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5643. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5644. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5645. + # If the export-symbols file already is a .def file (1st line
  5646. + # is EXPORTS), use it as is; otherwise, prepend...
  5647. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5648. + cp $export_symbols $output_objdir/$soname.def;
  5649. + else
  5650. + echo EXPORTS > $output_objdir/$soname.def;
  5651. + cat $export_symbols >> $output_objdir/$soname.def;
  5652. + fi~
  5653. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5654. + else
  5655. + _LT_TAGVAR(ld_shlibs, $1)=no
  5656. + fi
  5657. + ;;
  5658. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5659. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5660. -AC_LIBTOOL_PROG_CC_C_O($1)
  5661. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5662. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5663. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5664. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5665. + interix[[3-9]]*)
  5666. + _LT_TAGVAR(hardcode_direct, $1)=no
  5667. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5668. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5669. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5670. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5671. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5672. + # default) and relocated if they conflict, which is a slow very memory
  5673. + # consuming and fragmenting process. To avoid this, we pick a random,
  5674. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5675. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5676. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5677. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5678. + ;;
  5679. -AC_LIBTOOL_CONFIG($1)
  5680. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5681. + tmp_diet=no
  5682. + if test "$host_os" = linux-dietlibc; then
  5683. + case $cc_basename in
  5684. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5685. + esac
  5686. + fi
  5687. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5688. + && test "$tmp_diet" = no
  5689. + then
  5690. + tmp_addflag=
  5691. + tmp_sharedflag='-shared'
  5692. + case $cc_basename,$host_cpu in
  5693. + pgcc*) # Portland Group C compiler
  5694. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5695. + tmp_addflag=' $pic_flag'
  5696. + ;;
  5697. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5698. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5699. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5700. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5701. + tmp_addflag=' -i_dynamic' ;;
  5702. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5703. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5704. + ifc* | ifort*) # Intel Fortran compiler
  5705. + tmp_addflag=' -nofor_main' ;;
  5706. + lf95*) # Lahey Fortran 8.1
  5707. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5708. + tmp_sharedflag='--shared' ;;
  5709. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5710. + tmp_sharedflag='-qmkshrobj'
  5711. + tmp_addflag= ;;
  5712. + esac
  5713. + case `$CC -V 2>&1 | sed 5q` in
  5714. + *Sun\ C*) # Sun C 5.9
  5715. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5716. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5717. + tmp_sharedflag='-G' ;;
  5718. + *Sun\ F*) # Sun Fortran 8.3
  5719. + tmp_sharedflag='-G' ;;
  5720. + esac
  5721. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5722. -AC_LANG_RESTORE
  5723. -CC="$lt_save_CC"
  5724. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5725. + if test "x$supports_anon_versioning" = xyes; then
  5726. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5727. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5728. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5729. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5730. + fi
  5731. + case $cc_basename in
  5732. + xlf*)
  5733. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5734. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5735. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5736. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5737. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5738. + if test "x$supports_anon_versioning" = xyes; then
  5739. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5740. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5741. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5742. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5743. + fi
  5744. + ;;
  5745. + esac
  5746. + else
  5747. + _LT_TAGVAR(ld_shlibs, $1)=no
  5748. + fi
  5749. + ;;
  5750. -# AC_LIBTOOL_LANG_RC_CONFIG
  5751. -# -------------------------
  5752. -# Ensure that the configuration vars for the Windows resource compiler are
  5753. -# suitably defined. Those variables are subsequently used by
  5754. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5755. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5756. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5757. -[AC_LANG_SAVE
  5758. + netbsd* | netbsdelf*-gnu)
  5759. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5760. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5761. + wlarc=
  5762. + else
  5763. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5764. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5765. + fi
  5766. + ;;
  5767. -# Source file extension for RC test sources.
  5768. -ac_ext=rc
  5769. + solaris*)
  5770. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5771. + _LT_TAGVAR(ld_shlibs, $1)=no
  5772. + cat <<_LT_EOF 1>&2
  5773. -# Object file extension for compiled RC test sources.
  5774. -objext=o
  5775. -_LT_AC_TAGVAR(objext, $1)=$objext
  5776. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5777. +*** create shared libraries on Solaris systems. Therefore, libtool
  5778. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5779. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5780. +*** your PATH or compiler configuration so that the native linker is
  5781. +*** used, and then restart.
  5782. -# Code to be used in simple compile tests
  5783. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5784. +_LT_EOF
  5785. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5786. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5787. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5788. + else
  5789. + _LT_TAGVAR(ld_shlibs, $1)=no
  5790. + fi
  5791. + ;;
  5792. -# Code to be used in simple link tests
  5793. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5794. -
  5795. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5796. -_LT_AC_SYS_COMPILER
  5797. -
  5798. -# save warnings/boilerplate of simple test code
  5799. -_LT_COMPILER_BOILERPLATE
  5800. -_LT_LINKER_BOILERPLATE
  5801. -
  5802. -# Allow CC to be a program name with arguments.
  5803. -lt_save_CC="$CC"
  5804. -CC=${RC-"windres"}
  5805. -compiler=$CC
  5806. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5807. -_LT_CC_BASENAME([$compiler])
  5808. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5809. -
  5810. -AC_LIBTOOL_CONFIG($1)
  5811. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5812. + case `$LD -v 2>&1` in
  5813. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5814. + _LT_TAGVAR(ld_shlibs, $1)=no
  5815. + cat <<_LT_EOF 1>&2
  5816. -AC_LANG_RESTORE
  5817. -CC="$lt_save_CC"
  5818. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5819. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5820. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5821. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5822. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5823. +*** your PATH or compiler configuration so that the native linker is
  5824. +*** used, and then restart.
  5825. +_LT_EOF
  5826. + ;;
  5827. + *)
  5828. + # For security reasons, it is highly recommended that you always
  5829. + # use absolute paths for naming shared libraries, and exclude the
  5830. + # DT_RUNPATH tag from executables and libraries. But doing so
  5831. + # requires that you compile everything twice, which is a pain.
  5832. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5833. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5834. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5835. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5836. + else
  5837. + _LT_TAGVAR(ld_shlibs, $1)=no
  5838. + fi
  5839. + ;;
  5840. + esac
  5841. + ;;
  5842. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5843. -# ----------------------------
  5844. -# If TAGNAME is not passed, then create an initial libtool script
  5845. -# with a default configuration from the untagged config vars. Otherwise
  5846. -# add code to config.status for appending the configuration named by
  5847. -# TAGNAME from the matching tagged config vars.
  5848. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5849. -[# The else clause should only fire when bootstrapping the
  5850. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5851. -# with your package, and you will get complaints that there are
  5852. -# no rules to generate ltmain.sh.
  5853. -if test -f "$ltmain"; then
  5854. - # See if we are running on zsh, and set the options which allow our commands through
  5855. - # without removal of \ escapes.
  5856. - if test -n "${ZSH_VERSION+set}" ; then
  5857. - setopt NO_GLOB_SUBST
  5858. - fi
  5859. - # Now quote all the things that may contain metacharacters while being
  5860. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5861. - # variables and quote the copies for generation of the libtool script.
  5862. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5863. - SED SHELL STRIP \
  5864. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5865. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5866. - deplibs_check_method reload_flag reload_cmds need_locks \
  5867. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5868. - lt_cv_sys_global_symbol_to_c_name_address \
  5869. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5870. - old_postinstall_cmds old_postuninstall_cmds \
  5871. - _LT_AC_TAGVAR(compiler, $1) \
  5872. - _LT_AC_TAGVAR(CC, $1) \
  5873. - _LT_AC_TAGVAR(LD, $1) \
  5874. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5875. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5876. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5877. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5878. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5879. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5880. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5881. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5882. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5883. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5884. - _LT_AC_TAGVAR(predep_objects, $1) \
  5885. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5886. - _LT_AC_TAGVAR(predeps, $1) \
  5887. - _LT_AC_TAGVAR(postdeps, $1) \
  5888. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5889. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5890. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5891. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5892. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5893. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5894. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5895. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5896. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5897. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5898. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5899. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5900. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5901. - _LT_AC_TAGVAR(module_cmds, $1) \
  5902. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5903. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5904. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5905. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5906. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5907. -
  5908. - case $var in
  5909. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5910. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5911. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5912. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5913. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5914. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5915. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5916. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5917. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5918. - postinstall_cmds | postuninstall_cmds | \
  5919. - old_postinstall_cmds | old_postuninstall_cmds | \
  5920. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5921. - # Double-quote double-evaled strings.
  5922. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5923. + sunos4*)
  5924. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5925. + wlarc=
  5926. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5927. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5928. ;;
  5929. +
  5930. *)
  5931. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5932. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5933. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5934. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5935. + else
  5936. + _LT_TAGVAR(ld_shlibs, $1)=no
  5937. + fi
  5938. ;;
  5939. esac
  5940. - done
  5941. - case $lt_echo in
  5942. - *'\[$]0 --fallback-echo"')
  5943. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5944. - ;;
  5945. - esac
  5946. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5947. + runpath_var=
  5948. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5949. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5950. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5951. + fi
  5952. + else
  5953. + # PORTME fill in a description of your system's linker (not GNU ld)
  5954. + case $host_os in
  5955. + aix3*)
  5956. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5957. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5958. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5959. + # Note: this linker hardcodes the directories in LIBPATH if there
  5960. + # are no directories specified by -L.
  5961. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5962. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5963. + # Neither direct hardcoding nor static linking is supported with a
  5964. + # broken collect2.
  5965. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5966. + fi
  5967. + ;;
  5968. -ifelse([$1], [],
  5969. - [cfgfile="${ofile}T"
  5970. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5971. - $rm -f "$cfgfile"
  5972. - AC_MSG_NOTICE([creating $ofile])],
  5973. - [cfgfile="$ofile"])
  5974. + aix[[4-9]]*)
  5975. + if test "$host_cpu" = ia64; then
  5976. + # On IA64, the linker does run time linking by default, so we don't
  5977. + # have to do anything special.
  5978. + aix_use_runtimelinking=no
  5979. + exp_sym_flag='-Bexport'
  5980. + no_entry_flag=""
  5981. + else
  5982. + # If we're using GNU nm, then we don't want the "-C" option.
  5983. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5984. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5985. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5986. + else
  5987. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5988. + fi
  5989. + aix_use_runtimelinking=no
  5990. - cat <<__EOF__ >> "$cfgfile"
  5991. -ifelse([$1], [],
  5992. -[#! $SHELL
  5993. + # Test if we are trying to use run time linking or normal
  5994. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5995. + # need to do runtime linking.
  5996. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5997. + for ld_flag in $LDFLAGS; do
  5998. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5999. + aix_use_runtimelinking=yes
  6000. + break
  6001. + fi
  6002. + done
  6003. + ;;
  6004. + esac
  6005. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6006. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6007. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6008. -#
  6009. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  6010. -# Free Software Foundation, Inc.
  6011. -#
  6012. -# This file is part of GNU Libtool:
  6013. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6014. -#
  6015. -# This program is free software; you can redistribute it and/or modify
  6016. -# it under the terms of the GNU General Public License as published by
  6017. -# the Free Software Foundation; either version 2 of the License, or
  6018. -# (at your option) any later version.
  6019. -#
  6020. -# This program is distributed in the hope that it will be useful, but
  6021. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6022. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6023. -# General Public License for more details.
  6024. -#
  6025. -# You should have received a copy of the GNU General Public License
  6026. -# along with this program; if not, write to the Free Software
  6027. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  6028. -#
  6029. -# As a special exception to the GNU General Public License, if you
  6030. -# distribute this file as part of a program that contains a
  6031. -# configuration script generated by Autoconf, you may include it under
  6032. -# the same distribution terms that you use for the rest of that program.
  6033. + exp_sym_flag='-bexport'
  6034. + no_entry_flag='-bnoentry'
  6035. + fi
  6036. -# A sed program that does not truncate output.
  6037. -SED=$lt_SED
  6038. + # When large executables or shared objects are built, AIX ld can
  6039. + # have problems creating the table of contents. If linking a library
  6040. + # or program results in "error TOC overflow" add -mminimal-toc to
  6041. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6042. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6043. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6044. -Xsed="$SED -e 1s/^X//"
  6045. + _LT_TAGVAR(archive_cmds, $1)=''
  6046. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6047. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6048. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6049. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6050. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6051. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6052. -# if CDPATH is set.
  6053. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6054. + if test "$GCC" = yes; then
  6055. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6056. + # We only want to do this on AIX 4.2 and lower, the check
  6057. + # below for broken collect2 doesn't work under 4.3+
  6058. + collect2name=`${CC} -print-prog-name=collect2`
  6059. + if test -f "$collect2name" &&
  6060. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6061. + then
  6062. + # We have reworked collect2
  6063. + :
  6064. + else
  6065. + # We have old collect2
  6066. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6067. + # It fails to find uninstalled libraries when the uninstalled
  6068. + # path is not listed in the libpath. Setting hardcode_minus_L
  6069. + # to unsupported forces relinking
  6070. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6071. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6072. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6073. + fi
  6074. + ;;
  6075. + esac
  6076. + shared_flag='-shared'
  6077. + if test "$aix_use_runtimelinking" = yes; then
  6078. + shared_flag="$shared_flag "'${wl}-G'
  6079. + fi
  6080. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6081. + else
  6082. + # not using gcc
  6083. + if test "$host_cpu" = ia64; then
  6084. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6085. + # chokes on -Wl,-G. The following line is correct:
  6086. + shared_flag='-G'
  6087. + else
  6088. + if test "$aix_use_runtimelinking" = yes; then
  6089. + shared_flag='${wl}-G'
  6090. + else
  6091. + shared_flag='${wl}-bM:SRE'
  6092. + fi
  6093. + fi
  6094. + fi
  6095. -# The names of the tagged configurations supported by this script.
  6096. -available_tags=
  6097. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6098. + # It seems that -bexpall does not export symbols beginning with
  6099. + # underscore (_), so it is better to generate a list of symbols to export.
  6100. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6101. + if test "$aix_use_runtimelinking" = yes; then
  6102. + # Warning - without using the other runtime loading flags (-brtl),
  6103. + # -berok will link without error, but may produce a broken library.
  6104. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6105. + # Determine the default libpath from the value encoded in an
  6106. + # empty executable.
  6107. + _LT_SYS_MODULE_PATH_AIX
  6108. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6109. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6110. + else
  6111. + if test "$host_cpu" = ia64; then
  6112. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6113. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6114. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6115. + else
  6116. + # Determine the default libpath from the value encoded in an
  6117. + # empty executable.
  6118. + _LT_SYS_MODULE_PATH_AIX
  6119. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6120. + # Warning - without using the other run time loading flags,
  6121. + # -berok will link without error, but may produce a broken library.
  6122. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6123. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6124. + # Exported symbols can be pulled into shared objects from archives
  6125. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6126. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6127. + # This is similar to how AIX traditionally builds its shared libraries.
  6128. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6129. + fi
  6130. + fi
  6131. + ;;
  6132. -# ### BEGIN LIBTOOL CONFIG],
  6133. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6134. + amigaos*)
  6135. + case $host_cpu in
  6136. + powerpc)
  6137. + # see comment about AmigaOS4 .so support
  6138. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6139. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6140. + ;;
  6141. + m68k)
  6142. + _LT_TAGVAR(archive_cmds, $1)='$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)'
  6143. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6144. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6145. + ;;
  6146. + esac
  6147. + ;;
  6148. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6149. + bsdi[[45]]*)
  6150. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6151. + ;;
  6152. -# Shell to use when invoking shell scripts.
  6153. -SHELL=$lt_SHELL
  6154. + cygwin* | mingw* | pw32* | cegcc*)
  6155. + # When not using gcc, we currently assume that we are using
  6156. + # Microsoft Visual C++.
  6157. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6158. + # no search path for DLLs.
  6159. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6160. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6161. + # Tell ltmain to make .lib files, not .a files.
  6162. + libext=lib
  6163. + # Tell ltmain to make .dll files, not .so files.
  6164. + shrext_cmds=".dll"
  6165. + # FIXME: Setting linknames here is a bad hack.
  6166. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6167. + # The linker will automatically build a .lib file if we build a DLL.
  6168. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6169. + # FIXME: Should let the user specify the lib program.
  6170. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6171. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6172. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6173. + ;;
  6174. -# Whether or not to build shared libraries.
  6175. -build_libtool_libs=$enable_shared
  6176. + darwin* | rhapsody*)
  6177. + _LT_DARWIN_LINKER_FEATURES($1)
  6178. + ;;
  6179. -# Whether or not to build static libraries.
  6180. -build_old_libs=$enable_static
  6181. + dgux*)
  6182. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6183. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6184. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6185. + ;;
  6186. -# Whether or not to add -lc for building shared libraries.
  6187. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6188. + freebsd1*)
  6189. + _LT_TAGVAR(ld_shlibs, $1)=no
  6190. + ;;
  6191. -# Whether or not to disallow shared libs when runtime libs are static
  6192. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6193. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6194. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6195. + # does not break anything, and helps significantly (at the cost of a little
  6196. + # extra space).
  6197. + freebsd2.2*)
  6198. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6199. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6200. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6201. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6202. + ;;
  6203. -# Whether or not to optimize for fast installation.
  6204. -fast_install=$enable_fast_install
  6205. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6206. + freebsd2*)
  6207. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6208. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6209. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6210. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6211. + ;;
  6212. -# The host system.
  6213. -host_alias=$host_alias
  6214. -host=$host
  6215. -host_os=$host_os
  6216. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6217. + freebsd* | dragonfly*)
  6218. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6219. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6220. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6221. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6222. + ;;
  6223. -# The build system.
  6224. -build_alias=$build_alias
  6225. -build=$build
  6226. -build_os=$build_os
  6227. + hpux9*)
  6228. + if test "$GCC" = yes; then
  6229. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6230. + else
  6231. + _LT_TAGVAR(archive_cmds, $1)='$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'
  6232. + fi
  6233. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6234. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6235. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6236. -# An echo program that does not interpret backslashes.
  6237. -echo=$lt_echo
  6238. + # hardcode_minus_L: Not really in the search PATH,
  6239. + # but as the default location of the library.
  6240. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6241. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6242. + ;;
  6243. -# The archiver.
  6244. -AR=$lt_AR
  6245. -AR_FLAGS=$lt_AR_FLAGS
  6246. + hpux10*)
  6247. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6248. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6249. + else
  6250. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6251. + fi
  6252. + if test "$with_gnu_ld" = no; then
  6253. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6254. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6255. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6256. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6257. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6258. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6259. + # hardcode_minus_L: Not really in the search PATH,
  6260. + # but as the default location of the library.
  6261. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6262. + fi
  6263. + ;;
  6264. -# A C compiler.
  6265. -LTCC=$lt_LTCC
  6266. + hpux11*)
  6267. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6268. + case $host_cpu in
  6269. + hppa*64*)
  6270. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6271. + ;;
  6272. + ia64*)
  6273. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6274. + ;;
  6275. + *)
  6276. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6277. + ;;
  6278. + esac
  6279. + else
  6280. + case $host_cpu in
  6281. + hppa*64*)
  6282. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6283. + ;;
  6284. + ia64*)
  6285. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6286. + ;;
  6287. + *)
  6288. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6289. + ;;
  6290. + esac
  6291. + fi
  6292. + if test "$with_gnu_ld" = no; then
  6293. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6294. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6295. -# LTCC compiler flags.
  6296. -LTCFLAGS=$lt_LTCFLAGS
  6297. + case $host_cpu in
  6298. + hppa*64*|ia64*)
  6299. + _LT_TAGVAR(hardcode_direct, $1)=no
  6300. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6301. + ;;
  6302. + *)
  6303. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6304. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6305. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6306. -# A language-specific compiler.
  6307. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6308. + # hardcode_minus_L: Not really in the search PATH,
  6309. + # but as the default location of the library.
  6310. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6311. + ;;
  6312. + esac
  6313. + fi
  6314. + ;;
  6315. -# Is the compiler the GNU C compiler?
  6316. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6317. + irix5* | irix6* | nonstopux*)
  6318. + if test "$GCC" = yes; then
  6319. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6320. + # Try to use the -exported_symbol ld option, if it does not
  6321. + # work, assume that -exports_file does not work either and
  6322. + # implicitly export all symbols.
  6323. + save_LDFLAGS="$LDFLAGS"
  6324. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6325. + AC_LINK_IFELSE(int foo(void) {},
  6326. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  6327. + )
  6328. + LDFLAGS="$save_LDFLAGS"
  6329. + else
  6330. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6331. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  6332. + fi
  6333. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6334. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6335. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6336. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6337. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6338. + ;;
  6339. -# An ERE matcher.
  6340. -EGREP=$lt_EGREP
  6341. + netbsd* | netbsdelf*-gnu)
  6342. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6343. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6344. + else
  6345. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6346. + fi
  6347. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6348. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6349. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6350. + ;;
  6351. -# The linker used to build libraries.
  6352. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6353. + newsos6)
  6354. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6355. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6356. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6357. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6358. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6359. + ;;
  6360. -# Whether we need hard or soft links.
  6361. -LN_S=$lt_LN_S
  6362. + *nto* | *qnx*)
  6363. + ;;
  6364. -# A BSD-compatible nm program.
  6365. -NM=$lt_NM
  6366. + openbsd*)
  6367. + if test -f /usr/libexec/ld.so; then
  6368. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6369. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6370. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6371. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6372. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6373. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6374. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6375. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6376. + else
  6377. + case $host_os in
  6378. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6379. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6380. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6381. + ;;
  6382. + *)
  6383. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6384. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6385. + ;;
  6386. + esac
  6387. + fi
  6388. + else
  6389. + _LT_TAGVAR(ld_shlibs, $1)=no
  6390. + fi
  6391. + ;;
  6392. -# A symbol stripping program
  6393. -STRIP=$lt_STRIP
  6394. + os2*)
  6395. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6396. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6397. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6398. + _LT_TAGVAR(archive_cmds, $1)='$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'
  6399. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6400. + ;;
  6401. -# Used to examine libraries when file_magic_cmd begins "file"
  6402. -MAGIC_CMD=$MAGIC_CMD
  6403. + osf3*)
  6404. + if test "$GCC" = yes; then
  6405. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6406. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6407. + else
  6408. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6409. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6410. + fi
  6411. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6412. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6413. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6414. + ;;
  6415. -# Used on cygwin: DLL creation program.
  6416. -DLLTOOL="$DLLTOOL"
  6417. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6418. + if test "$GCC" = yes; then
  6419. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6420. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6421. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6422. + else
  6423. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6424. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6425. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  6426. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  6427. -# Used on cygwin: object dumper.
  6428. -OBJDUMP="$OBJDUMP"
  6429. + # Both c and cxx compiler support -rpath directly
  6430. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6431. + fi
  6432. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6433. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6434. + ;;
  6435. -# Used on cygwin: assembler.
  6436. -AS="$AS"
  6437. + solaris*)
  6438. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6439. + if test "$GCC" = yes; then
  6440. + wlarc='${wl}'
  6441. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6442. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6443. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6444. + else
  6445. + case `$CC -V 2>&1` in
  6446. + *"Compilers 5.0"*)
  6447. + wlarc=''
  6448. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6449. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6450. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6451. + ;;
  6452. + *)
  6453. + wlarc='${wl}'
  6454. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6455. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6456. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6457. + ;;
  6458. + esac
  6459. + fi
  6460. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6461. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6462. + case $host_os in
  6463. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6464. + *)
  6465. + # The compiler driver will combine and reorder linker options,
  6466. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6467. + # but is careful enough not to reorder.
  6468. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6469. + if test "$GCC" = yes; then
  6470. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6471. + else
  6472. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6473. + fi
  6474. + ;;
  6475. + esac
  6476. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6477. + ;;
  6478. -# The name of the directory that contains temporary libtool files.
  6479. -objdir=$objdir
  6480. + sunos4*)
  6481. + if test "x$host_vendor" = xsequent; then
  6482. + # Use $CC to link under sequent, because it throws in some extra .o
  6483. + # files that make .init and .fini sections work.
  6484. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6485. + else
  6486. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6487. + fi
  6488. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6489. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6490. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6491. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6492. + ;;
  6493. -# How to create reloadable object files.
  6494. -reload_flag=$lt_reload_flag
  6495. -reload_cmds=$lt_reload_cmds
  6496. + sysv4)
  6497. + case $host_vendor in
  6498. + sni)
  6499. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6500. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6501. + ;;
  6502. + siemens)
  6503. + ## LD is ld it makes a PLAMLIB
  6504. + ## CC just makes a GrossModule.
  6505. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6506. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6507. + _LT_TAGVAR(hardcode_direct, $1)=no
  6508. + ;;
  6509. + motorola)
  6510. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6511. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6512. + ;;
  6513. + esac
  6514. + runpath_var='LD_RUN_PATH'
  6515. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6516. + ;;
  6517. -# How to pass a linker flag through the compiler.
  6518. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6519. + sysv4.3*)
  6520. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6521. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6522. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6523. + ;;
  6524. -# Object file suffix (normally "o").
  6525. -objext="$ac_objext"
  6526. + sysv4*MP*)
  6527. + if test -d /usr/nec; then
  6528. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6529. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6530. + runpath_var=LD_RUN_PATH
  6531. + hardcode_runpath_var=yes
  6532. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6533. + fi
  6534. + ;;
  6535. -# Old archive suffix (normally "a").
  6536. -libext="$libext"
  6537. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6538. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6539. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6540. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6541. + runpath_var='LD_RUN_PATH'
  6542. -# Shared library suffix (normally ".so").
  6543. -shrext_cmds='$shrext_cmds'
  6544. + if test "$GCC" = yes; then
  6545. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6546. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6547. + else
  6548. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6549. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6550. + fi
  6551. + ;;
  6552. -# Executable file suffix (normally "").
  6553. -exeext="$exeext"
  6554. + sysv5* | sco3.2v5* | sco5v6*)
  6555. + # Note: We can NOT use -z defs as we might desire, because we do not
  6556. + # link with -lc, and that would cause any symbols used from libc to
  6557. + # always be unresolved, which means just about no library would
  6558. + # ever link correctly. If we're not using GNU ld we use -z text
  6559. + # though, which does catch some bad symbols but isn't as heavy-handed
  6560. + # as -z defs.
  6561. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6562. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6563. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6564. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6565. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6566. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6567. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6568. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6569. + runpath_var='LD_RUN_PATH'
  6570. -# Additional compiler flags for building library objects.
  6571. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6572. -pic_mode=$pic_mode
  6573. + if test "$GCC" = yes; then
  6574. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6575. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6576. + else
  6577. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6578. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6579. + fi
  6580. + ;;
  6581. -# What is the maximum length of a command?
  6582. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6583. + uts4*)
  6584. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6585. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6586. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6587. + ;;
  6588. -# Does compiler simultaneously support -c and -o options?
  6589. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6590. + *)
  6591. + _LT_TAGVAR(ld_shlibs, $1)=no
  6592. + ;;
  6593. + esac
  6594. -# Must we lock files when doing compilation?
  6595. -need_locks=$lt_need_locks
  6596. + if test x$host_vendor = xsni; then
  6597. + case $host in
  6598. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6599. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6600. + ;;
  6601. + esac
  6602. + fi
  6603. + fi
  6604. +])
  6605. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6606. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6607. -# Do we need the lib prefix for modules?
  6608. -need_lib_prefix=$need_lib_prefix
  6609. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6610. -# Do we need a version for libraries?
  6611. -need_version=$need_version
  6612. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6613. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6614. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6615. + [The commands to extract the exported symbol list from a shared archive])
  6616. -# Whether dlopen is supported.
  6617. -dlopen_support=$enable_dlopen
  6618. +#
  6619. +# Do we need to explicitly link libc?
  6620. +#
  6621. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6622. +x|xyes)
  6623. + # Assume -lc should be added
  6624. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6625. -# Whether dlopen of programs is supported.
  6626. -dlopen_self=$enable_dlopen_self
  6627. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6628. + case $_LT_TAGVAR(archive_cmds, $1) in
  6629. + *'~'*)
  6630. + # FIXME: we may have to deal with multi-command sequences.
  6631. + ;;
  6632. + '$CC '*)
  6633. + # Test whether the compiler implicitly links with -lc since on some
  6634. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6635. + # to ld, don't add -lc before -lgcc.
  6636. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6637. + $RM conftest*
  6638. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6639. -# Whether dlopen of statically linked programs is supported.
  6640. -dlopen_self_static=$enable_dlopen_self_static
  6641. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6642. + soname=conftest
  6643. + lib=conftest
  6644. + libobjs=conftest.$ac_objext
  6645. + deplibs=
  6646. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6647. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6648. + compiler_flags=-v
  6649. + linker_flags=-v
  6650. + verstring=
  6651. + output_objdir=.
  6652. + libname=conftest
  6653. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6654. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6655. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6656. + then
  6657. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6658. + else
  6659. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6660. + fi
  6661. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6662. + else
  6663. + cat conftest.err 1>&5
  6664. + fi
  6665. + $RM conftest*
  6666. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6667. + ;;
  6668. + esac
  6669. + fi
  6670. + ;;
  6671. +esac
  6672. -# Compiler flag to prevent dynamic linking.
  6673. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6674. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6675. + [Whether or not to add -lc for building shared libraries])
  6676. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6677. + [enable_shared_with_static_runtimes], [0],
  6678. + [Whether or not to disallow shared libs when runtime libs are static])
  6679. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6680. + [Compiler flag to allow reflexive dlopens])
  6681. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6682. + [Compiler flag to generate shared objects directly from archives])
  6683. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6684. + [Whether the compiler copes with passing no objects directly])
  6685. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6686. + [Create an old-style archive from a shared archive])
  6687. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6688. + [Create a temporary old-style archive to link instead of a shared archive])
  6689. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6690. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6691. +_LT_TAGDECL([], [module_cmds], [2],
  6692. + [Commands used to build a loadable module if different from building
  6693. + a shared archive.])
  6694. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6695. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6696. + [Whether we are building with GNU ld or not])
  6697. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6698. + [Flag that allows shared libraries with undefined symbols to be built])
  6699. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6700. + [Flag that enforces no undefined symbols])
  6701. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6702. + [Flag to hardcode $libdir into a binary during linking.
  6703. + This must work even if $libdir does not exist])
  6704. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6705. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6706. + during linking. This must work even if $libdir does not exist]])
  6707. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6708. + [Whether we need a single "-rpath" flag with a separated argument])
  6709. +_LT_TAGDECL([], [hardcode_direct], [0],
  6710. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6711. + DIR into the resulting binary])
  6712. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6713. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6714. + DIR into the resulting binary and the resulting library dependency is
  6715. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6716. + library is relocated])
  6717. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6718. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6719. + into the resulting binary])
  6720. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6721. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6722. + into the resulting binary])
  6723. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6724. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6725. + into the library and all subsequent libraries and executables linked
  6726. + against it])
  6727. +_LT_TAGDECL([], [inherit_rpath], [0],
  6728. + [Set to yes if linker adds runtime paths of dependent libraries
  6729. + to runtime path list])
  6730. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6731. + [Whether libtool must link a program against all its dependency libraries])
  6732. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6733. + [Fix the shell variable $srcfile for the compiler])
  6734. +_LT_TAGDECL([], [always_export_symbols], [0],
  6735. + [Set to "yes" if exported symbols are required])
  6736. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6737. + [The commands to list exported symbols])
  6738. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6739. + [Symbols that should not be listed in the preloaded symbols])
  6740. +_LT_TAGDECL([], [include_expsyms], [1],
  6741. + [Symbols that must always be exported])
  6742. +_LT_TAGDECL([], [prelink_cmds], [2],
  6743. + [Commands necessary for linking programs (against libraries) with templates])
  6744. +_LT_TAGDECL([], [file_list_spec], [1],
  6745. + [Specify filename containing input files])
  6746. +dnl FIXME: Not yet implemented
  6747. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6748. +dnl [Compiler flag to generate thread safe objects])
  6749. +])# _LT_LINKER_SHLIBS
  6750. -# Compiler flag to turn off builtin functions.
  6751. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6752. -# Compiler flag to allow reflexive dlopens.
  6753. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6754. +# _LT_LANG_C_CONFIG([TAG])
  6755. +# ------------------------
  6756. +# Ensure that the configuration variables for a C compiler are suitably
  6757. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6758. +# the compiler configuration to `libtool'.
  6759. +m4_defun([_LT_LANG_C_CONFIG],
  6760. +[m4_require([_LT_DECL_EGREP])dnl
  6761. +lt_save_CC="$CC"
  6762. +AC_LANG_PUSH(C)
  6763. -# Compiler flag to generate shared objects directly from archives.
  6764. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6765. +# Source file extension for C test sources.
  6766. +ac_ext=c
  6767. -# Compiler flag to generate thread-safe objects.
  6768. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6769. +# Object file extension for compiled C test sources.
  6770. +objext=o
  6771. +_LT_TAGVAR(objext, $1)=$objext
  6772. -# Library versioning type.
  6773. -version_type=$version_type
  6774. +# Code to be used in simple compile tests
  6775. +lt_simple_compile_test_code="int some_variable = 0;"
  6776. -# Format of library name prefix.
  6777. -libname_spec=$lt_libname_spec
  6778. +# Code to be used in simple link tests
  6779. +lt_simple_link_test_code='int main(){return(0);}'
  6780. -# List of archive names. First name is the real one, the rest are links.
  6781. -# The last name is the one that the linker finds with -lNAME.
  6782. -library_names_spec=$lt_library_names_spec
  6783. +_LT_TAG_COMPILER
  6784. +# Save the default compiler, since it gets overwritten when the other
  6785. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6786. +compiler_DEFAULT=$CC
  6787. -# The coded name of the library, if different from the real name.
  6788. -soname_spec=$lt_soname_spec
  6789. +# save warnings/boilerplate of simple test code
  6790. +_LT_COMPILER_BOILERPLATE
  6791. +_LT_LINKER_BOILERPLATE
  6792. -# Commands used to build and install an old-style archive.
  6793. -RANLIB=$lt_RANLIB
  6794. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6795. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6796. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6797. +if test -n "$compiler"; then
  6798. + _LT_COMPILER_NO_RTTI($1)
  6799. + _LT_COMPILER_PIC($1)
  6800. + _LT_COMPILER_C_O($1)
  6801. + _LT_COMPILER_FILE_LOCKS($1)
  6802. + _LT_LINKER_SHLIBS($1)
  6803. + _LT_SYS_DYNAMIC_LINKER($1)
  6804. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6805. + LT_SYS_DLOPEN_SELF
  6806. + _LT_CMD_STRIPLIB
  6807. +
  6808. + # Report which library types will actually be built
  6809. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6810. + AC_MSG_RESULT([$can_build_shared])
  6811. -# Create an old-style archive from a shared archive.
  6812. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6813. + AC_MSG_CHECKING([whether to build shared libraries])
  6814. + test "$can_build_shared" = "no" && enable_shared=no
  6815. -# Create a temporary old-style archive to link instead of a shared archive.
  6816. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6817. + # On AIX, shared libraries and static libraries use the same namespace, and
  6818. + # are all built from PIC.
  6819. + case $host_os in
  6820. + aix3*)
  6821. + test "$enable_shared" = yes && enable_static=no
  6822. + if test -n "$RANLIB"; then
  6823. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6824. + postinstall_cmds='$RANLIB $lib'
  6825. + fi
  6826. + ;;
  6827. -# Commands used to build and install a shared archive.
  6828. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6829. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6830. -postinstall_cmds=$lt_postinstall_cmds
  6831. -postuninstall_cmds=$lt_postuninstall_cmds
  6832. + aix[[4-9]]*)
  6833. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6834. + test "$enable_shared" = yes && enable_static=no
  6835. + fi
  6836. + ;;
  6837. + esac
  6838. + AC_MSG_RESULT([$enable_shared])
  6839. -# Commands used to build a loadable module (assumed same as above if empty)
  6840. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6841. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6842. + AC_MSG_CHECKING([whether to build static libraries])
  6843. + # Make sure either enable_shared or enable_static is yes.
  6844. + test "$enable_shared" = yes || enable_static=yes
  6845. + AC_MSG_RESULT([$enable_static])
  6846. -# Commands to strip libraries.
  6847. -old_striplib=$lt_old_striplib
  6848. -striplib=$lt_striplib
  6849. + _LT_CONFIG($1)
  6850. +fi
  6851. +AC_LANG_POP
  6852. +CC="$lt_save_CC"
  6853. +])# _LT_LANG_C_CONFIG
  6854. -# Dependencies to place before the objects being linked to create a
  6855. -# shared library.
  6856. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6857. -# Dependencies to place after the objects being linked to create a
  6858. -# shared library.
  6859. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6860. +# _LT_PROG_CXX
  6861. +# ------------
  6862. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6863. +# compiler, we have our own version here.
  6864. +m4_defun([_LT_PROG_CXX],
  6865. +[
  6866. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6867. +AC_PROG_CXX
  6868. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6869. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6870. + (test "X$CXX" != "Xg++"))) ; then
  6871. + AC_PROG_CXXCPP
  6872. +else
  6873. + _lt_caught_CXX_error=yes
  6874. +fi
  6875. +popdef([AC_MSG_ERROR])
  6876. +])# _LT_PROG_CXX
  6877. -# Dependencies to place before the objects being linked to create a
  6878. -# shared library.
  6879. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6880. +dnl aclocal-1.4 backwards compatibility:
  6881. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6882. -# Dependencies to place after the objects being linked to create a
  6883. -# shared library.
  6884. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6885. -# The library search path used internally by the compiler when linking
  6886. -# a shared library.
  6887. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6888. +# _LT_LANG_CXX_CONFIG([TAG])
  6889. +# --------------------------
  6890. +# Ensure that the configuration variables for a C++ compiler are suitably
  6891. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6892. +# the compiler configuration to `libtool'.
  6893. +m4_defun([_LT_LANG_CXX_CONFIG],
  6894. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6895. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6896. +m4_require([_LT_DECL_EGREP])dnl
  6897. +
  6898. +AC_LANG_PUSH(C++)
  6899. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6900. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6901. +_LT_TAGVAR(always_export_symbols, $1)=no
  6902. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6903. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6904. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6905. +_LT_TAGVAR(hardcode_direct, $1)=no
  6906. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6907. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6908. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6909. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6910. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6911. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6912. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6913. +_LT_TAGVAR(inherit_rpath, $1)=no
  6914. +_LT_TAGVAR(module_cmds, $1)=
  6915. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6916. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6917. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6918. +_LT_TAGVAR(no_undefined_flag, $1)=
  6919. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6920. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6921. -# Method to check whether dependent libraries are shared objects.
  6922. -deplibs_check_method=$lt_deplibs_check_method
  6923. +# Source file extension for C++ test sources.
  6924. +ac_ext=cpp
  6925. -# Command to use when deplibs_check_method == file_magic.
  6926. -file_magic_cmd=$lt_file_magic_cmd
  6927. +# Object file extension for compiled C++ test sources.
  6928. +objext=o
  6929. +_LT_TAGVAR(objext, $1)=$objext
  6930. -# Flag that allows shared libraries with undefined symbols to be built.
  6931. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6932. +# No sense in running all these tests if we already determined that
  6933. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6934. +# are currently assumed to apply to all compilers on this platform,
  6935. +# and will be corrupted by setting them based on a non-working compiler.
  6936. +if test "$_lt_caught_CXX_error" != yes; then
  6937. + # Code to be used in simple compile tests
  6938. + lt_simple_compile_test_code="int some_variable = 0;"
  6939. +
  6940. + # Code to be used in simple link tests
  6941. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6942. +
  6943. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6944. + _LT_TAG_COMPILER
  6945. +
  6946. + # save warnings/boilerplate of simple test code
  6947. + _LT_COMPILER_BOILERPLATE
  6948. + _LT_LINKER_BOILERPLATE
  6949. +
  6950. + # Allow CC to be a program name with arguments.
  6951. + lt_save_CC=$CC
  6952. + lt_save_LD=$LD
  6953. + lt_save_GCC=$GCC
  6954. + GCC=$GXX
  6955. + lt_save_with_gnu_ld=$with_gnu_ld
  6956. + lt_save_path_LD=$lt_cv_path_LD
  6957. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6958. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6959. + else
  6960. + $as_unset lt_cv_prog_gnu_ld
  6961. + fi
  6962. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6963. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6964. + else
  6965. + $as_unset lt_cv_path_LD
  6966. + fi
  6967. + test -z "${LDCXX+set}" || LD=$LDCXX
  6968. + CC=${CXX-"c++"}
  6969. + compiler=$CC
  6970. + _LT_TAGVAR(compiler, $1)=$CC
  6971. + _LT_CC_BASENAME([$compiler])
  6972. -# Flag that forces no undefined symbols.
  6973. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6974. + if test -n "$compiler"; then
  6975. + # We don't want -fno-exception when compiling C++ code, so set the
  6976. + # no_builtin_flag separately
  6977. + if test "$GXX" = yes; then
  6978. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6979. + else
  6980. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6981. + fi
  6982. -# Commands used to finish a libtool library installation in a directory.
  6983. -finish_cmds=$lt_finish_cmds
  6984. + if test "$GXX" = yes; then
  6985. + # Set up default GNU C++ configuration
  6986. -# Same as above, but a single script fragment to be evaled but not shown.
  6987. -finish_eval=$lt_finish_eval
  6988. + LT_PATH_LD
  6989. -# Take the output of nm and produce a listing of raw symbols and C names.
  6990. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6991. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6992. + # archiving commands below assume that GNU ld is being used.
  6993. + if test "$with_gnu_ld" = yes; then
  6994. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6995. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6996. +
  6997. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6998. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6999. +
  7000. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7001. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7002. + # investigate it a little bit more. (MM)
  7003. + wlarc='${wl}'
  7004. +
  7005. + # ancient GNU ld didn't support --whole-archive et. al.
  7006. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7007. + $GREP 'no-whole-archive' > /dev/null; then
  7008. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7009. + else
  7010. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7011. + fi
  7012. + else
  7013. + with_gnu_ld=no
  7014. + wlarc=
  7015. -# Transform the output of nm in a proper C declaration
  7016. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7017. + # A generic and very simple default shared library creation
  7018. + # command for GNU C++ for the case where it uses the native
  7019. + # linker, instead of GNU ld. If possible, this setting should
  7020. + # overridden to take advantage of the native linker features on
  7021. + # the platform it is being used on.
  7022. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7023. + fi
  7024. -# Transform the output of nm in a C name address pair
  7025. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7026. + # Commands to make compiler produce verbose output that lists
  7027. + # what "hidden" libraries, object files and flags are used when
  7028. + # linking a shared library.
  7029. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7030. -# This is the shared library runtime path variable.
  7031. -runpath_var=$runpath_var
  7032. + else
  7033. + GXX=no
  7034. + with_gnu_ld=no
  7035. + wlarc=
  7036. + fi
  7037. -# This is the shared library path variable.
  7038. -shlibpath_var=$shlibpath_var
  7039. + # PORTME: fill in a description of your system's C++ link characteristics
  7040. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7041. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7042. + case $host_os in
  7043. + aix3*)
  7044. + # FIXME: insert proper C++ library support
  7045. + _LT_TAGVAR(ld_shlibs, $1)=no
  7046. + ;;
  7047. + aix[[4-9]]*)
  7048. + if test "$host_cpu" = ia64; then
  7049. + # On IA64, the linker does run time linking by default, so we don't
  7050. + # have to do anything special.
  7051. + aix_use_runtimelinking=no
  7052. + exp_sym_flag='-Bexport'
  7053. + no_entry_flag=""
  7054. + else
  7055. + aix_use_runtimelinking=no
  7056. -# Is shlibpath searched before the hard-coded library search path?
  7057. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7058. + # Test if we are trying to use run time linking or normal
  7059. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7060. + # need to do runtime linking.
  7061. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7062. + for ld_flag in $LDFLAGS; do
  7063. + case $ld_flag in
  7064. + *-brtl*)
  7065. + aix_use_runtimelinking=yes
  7066. + break
  7067. + ;;
  7068. + esac
  7069. + done
  7070. + ;;
  7071. + esac
  7072. -# How to hardcode a shared library path into an executable.
  7073. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7074. + exp_sym_flag='-bexport'
  7075. + no_entry_flag='-bnoentry'
  7076. + fi
  7077. -# Whether we should hardcode library paths into libraries.
  7078. -hardcode_into_libs=$hardcode_into_libs
  7079. + # When large executables or shared objects are built, AIX ld can
  7080. + # have problems creating the table of contents. If linking a library
  7081. + # or program results in "error TOC overflow" add -mminimal-toc to
  7082. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7083. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7084. +
  7085. + _LT_TAGVAR(archive_cmds, $1)=''
  7086. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7087. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7088. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7089. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7090. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7091. +
  7092. + if test "$GXX" = yes; then
  7093. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7094. + # We only want to do this on AIX 4.2 and lower, the check
  7095. + # below for broken collect2 doesn't work under 4.3+
  7096. + collect2name=`${CC} -print-prog-name=collect2`
  7097. + if test -f "$collect2name" &&
  7098. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7099. + then
  7100. + # We have reworked collect2
  7101. + :
  7102. + else
  7103. + # We have old collect2
  7104. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7105. + # It fails to find uninstalled libraries when the uninstalled
  7106. + # path is not listed in the libpath. Setting hardcode_minus_L
  7107. + # to unsupported forces relinking
  7108. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7109. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7110. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7111. + fi
  7112. + esac
  7113. + shared_flag='-shared'
  7114. + if test "$aix_use_runtimelinking" = yes; then
  7115. + shared_flag="$shared_flag "'${wl}-G'
  7116. + fi
  7117. + else
  7118. + # not using gcc
  7119. + if test "$host_cpu" = ia64; then
  7120. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7121. + # chokes on -Wl,-G. The following line is correct:
  7122. + shared_flag='-G'
  7123. + else
  7124. + if test "$aix_use_runtimelinking" = yes; then
  7125. + shared_flag='${wl}-G'
  7126. + else
  7127. + shared_flag='${wl}-bM:SRE'
  7128. + fi
  7129. + fi
  7130. + fi
  7131. -# Flag to hardcode \$libdir into a binary during linking.
  7132. -# This must work even if \$libdir does not exist.
  7133. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7134. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7135. + # It seems that -bexpall does not export symbols beginning with
  7136. + # underscore (_), so it is better to generate a list of symbols to
  7137. + # export.
  7138. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7139. + if test "$aix_use_runtimelinking" = yes; then
  7140. + # Warning - without using the other runtime loading flags (-brtl),
  7141. + # -berok will link without error, but may produce a broken library.
  7142. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7143. + # Determine the default libpath from the value encoded in an empty
  7144. + # executable.
  7145. + _LT_SYS_MODULE_PATH_AIX
  7146. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7147. -# If ld is used when linking, flag to hardcode \$libdir into
  7148. -# a binary during linking. This must work even if \$libdir does
  7149. -# not exist.
  7150. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7151. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7152. + else
  7153. + if test "$host_cpu" = ia64; then
  7154. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7155. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7156. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7157. + else
  7158. + # Determine the default libpath from the value encoded in an
  7159. + # empty executable.
  7160. + _LT_SYS_MODULE_PATH_AIX
  7161. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7162. + # Warning - without using the other run time loading flags,
  7163. + # -berok will link without error, but may produce a broken library.
  7164. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7165. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7166. + # Exported symbols can be pulled into shared objects from archives
  7167. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7168. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7169. + # This is similar to how AIX traditionally builds its shared
  7170. + # libraries.
  7171. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7172. + fi
  7173. + fi
  7174. + ;;
  7175. -# Whether we need a single -rpath flag with a separated argument.
  7176. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7177. + beos*)
  7178. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7179. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7180. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7181. + # support --undefined. This deserves some investigation. FIXME
  7182. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7183. + else
  7184. + _LT_TAGVAR(ld_shlibs, $1)=no
  7185. + fi
  7186. + ;;
  7187. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7188. -# resulting binary.
  7189. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7190. + chorus*)
  7191. + case $cc_basename in
  7192. + *)
  7193. + # FIXME: insert proper C++ library support
  7194. + _LT_TAGVAR(ld_shlibs, $1)=no
  7195. + ;;
  7196. + esac
  7197. + ;;
  7198. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7199. -# resulting binary.
  7200. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7201. + cygwin* | mingw* | pw32* | cegcc*)
  7202. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7203. + # as there is no search path for DLLs.
  7204. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7205. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7206. + _LT_TAGVAR(always_export_symbols, $1)=no
  7207. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7208. +
  7209. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7210. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7211. + # If the export-symbols file already is a .def file (1st line
  7212. + # is EXPORTS), use it as is; otherwise, prepend...
  7213. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7214. + cp $export_symbols $output_objdir/$soname.def;
  7215. + else
  7216. + echo EXPORTS > $output_objdir/$soname.def;
  7217. + cat $export_symbols >> $output_objdir/$soname.def;
  7218. + fi~
  7219. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7220. + else
  7221. + _LT_TAGVAR(ld_shlibs, $1)=no
  7222. + fi
  7223. + ;;
  7224. + darwin* | rhapsody*)
  7225. + _LT_DARWIN_LINKER_FEATURES($1)
  7226. + ;;
  7227. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7228. -# the resulting binary.
  7229. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7230. + dgux*)
  7231. + case $cc_basename in
  7232. + ec++*)
  7233. + # FIXME: insert proper C++ library support
  7234. + _LT_TAGVAR(ld_shlibs, $1)=no
  7235. + ;;
  7236. + ghcx*)
  7237. + # Green Hills C++ Compiler
  7238. + # FIXME: insert proper C++ library support
  7239. + _LT_TAGVAR(ld_shlibs, $1)=no
  7240. + ;;
  7241. + *)
  7242. + # FIXME: insert proper C++ library support
  7243. + _LT_TAGVAR(ld_shlibs, $1)=no
  7244. + ;;
  7245. + esac
  7246. + ;;
  7247. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7248. -# and all subsequent libraries and executables linked against it.
  7249. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7250. + freebsd[[12]]*)
  7251. + # C++ shared libraries reported to be fairly broken before
  7252. + # switch to ELF
  7253. + _LT_TAGVAR(ld_shlibs, $1)=no
  7254. + ;;
  7255. -# Variables whose values should be saved in libtool wrapper scripts and
  7256. -# restored at relink time.
  7257. -variables_saved_for_relink="$variables_saved_for_relink"
  7258. + freebsd-elf*)
  7259. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7260. + ;;
  7261. -# Whether libtool must link a program against all its dependency libraries.
  7262. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7263. + freebsd* | dragonfly*)
  7264. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7265. + # conventions
  7266. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7267. + ;;
  7268. -# Compile-time system search path for libraries
  7269. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7270. + gnu*)
  7271. + ;;
  7272. -# Run-time system search path for libraries
  7273. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7274. + hpux9*)
  7275. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7276. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7277. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7278. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7279. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7280. + # but as the default
  7281. + # location of the library.
  7282. +
  7283. + case $cc_basename in
  7284. + CC*)
  7285. + # FIXME: insert proper C++ library support
  7286. + _LT_TAGVAR(ld_shlibs, $1)=no
  7287. + ;;
  7288. + aCC*)
  7289. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7290. + # Commands to make compiler produce verbose output that lists
  7291. + # what "hidden" libraries, object files and flags are used when
  7292. + # linking a shared library.
  7293. + #
  7294. + # There doesn't appear to be a way to prevent this compiler from
  7295. + # explicitly linking system object files so we need to strip them
  7296. + # from the output so that they don't get included in the library
  7297. + # dependencies.
  7298. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7299. + ;;
  7300. + *)
  7301. + if test "$GXX" = yes; then
  7302. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7303. + else
  7304. + # FIXME: insert proper C++ library support
  7305. + _LT_TAGVAR(ld_shlibs, $1)=no
  7306. + fi
  7307. + ;;
  7308. + esac
  7309. + ;;
  7310. -# Fix the shell variable \$srcfile for the compiler.
  7311. -fix_srcfile_path=$lt_fix_srcfile_path
  7312. + hpux10*|hpux11*)
  7313. + if test $with_gnu_ld = no; then
  7314. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7315. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7316. +
  7317. + case $host_cpu in
  7318. + hppa*64*|ia64*)
  7319. + ;;
  7320. + *)
  7321. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7322. + ;;
  7323. + esac
  7324. + fi
  7325. + case $host_cpu in
  7326. + hppa*64*|ia64*)
  7327. + _LT_TAGVAR(hardcode_direct, $1)=no
  7328. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7329. + ;;
  7330. + *)
  7331. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7332. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7333. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7334. + # but as the default
  7335. + # location of the library.
  7336. + ;;
  7337. + esac
  7338. -# Set to yes if exported symbols are required.
  7339. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7340. + case $cc_basename in
  7341. + CC*)
  7342. + # FIXME: insert proper C++ library support
  7343. + _LT_TAGVAR(ld_shlibs, $1)=no
  7344. + ;;
  7345. + aCC*)
  7346. + case $host_cpu in
  7347. + hppa*64*)
  7348. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7349. + ;;
  7350. + ia64*)
  7351. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7352. + ;;
  7353. + *)
  7354. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7355. + ;;
  7356. + esac
  7357. + # Commands to make compiler produce verbose output that lists
  7358. + # what "hidden" libraries, object files and flags are used when
  7359. + # linking a shared library.
  7360. + #
  7361. + # There doesn't appear to be a way to prevent this compiler from
  7362. + # explicitly linking system object files so we need to strip them
  7363. + # from the output so that they don't get included in the library
  7364. + # dependencies.
  7365. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7366. + ;;
  7367. + *)
  7368. + if test "$GXX" = yes; then
  7369. + if test $with_gnu_ld = no; then
  7370. + case $host_cpu in
  7371. + hppa*64*)
  7372. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7373. + ;;
  7374. + ia64*)
  7375. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7376. + ;;
  7377. + *)
  7378. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7379. + ;;
  7380. + esac
  7381. + fi
  7382. + else
  7383. + # FIXME: insert proper C++ library support
  7384. + _LT_TAGVAR(ld_shlibs, $1)=no
  7385. + fi
  7386. + ;;
  7387. + esac
  7388. + ;;
  7389. -# The commands to list exported symbols.
  7390. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7391. + interix[[3-9]]*)
  7392. + _LT_TAGVAR(hardcode_direct, $1)=no
  7393. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7394. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7395. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7396. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7397. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7398. + # default) and relocated if they conflict, which is a slow very memory
  7399. + # consuming and fragmenting process. To avoid this, we pick a random,
  7400. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7401. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7402. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7403. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7404. + ;;
  7405. + irix5* | irix6*)
  7406. + case $cc_basename in
  7407. + CC*)
  7408. + # SGI C++
  7409. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7410. +
  7411. + # Archives containing C++ object files must be created using
  7412. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7413. + # necessary to make sure instantiated templates are included
  7414. + # in the archive.
  7415. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7416. + ;;
  7417. + *)
  7418. + if test "$GXX" = yes; then
  7419. + if test "$with_gnu_ld" = no; then
  7420. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7421. + else
  7422. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  7423. + fi
  7424. + fi
  7425. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7426. + ;;
  7427. + esac
  7428. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7429. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7430. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7431. + ;;
  7432. -# The commands to extract the exported symbol list from a shared archive.
  7433. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7434. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7435. + case $cc_basename in
  7436. + KCC*)
  7437. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7438. +
  7439. + # KCC will only create a shared library if the output file
  7440. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7441. + # to its proper name (with version) after linking.
  7442. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7443. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  7444. + # Commands to make compiler produce verbose output that lists
  7445. + # what "hidden" libraries, object files and flags are used when
  7446. + # linking a shared library.
  7447. + #
  7448. + # There doesn't appear to be a way to prevent this compiler from
  7449. + # explicitly linking system object files so we need to strip them
  7450. + # from the output so that they don't get included in the library
  7451. + # dependencies.
  7452. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7453. +
  7454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7455. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7456. +
  7457. + # Archives containing C++ object files must be created using
  7458. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7459. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7460. + ;;
  7461. + icpc* | ecpc* )
  7462. + # Intel C++
  7463. + with_gnu_ld=yes
  7464. + # version 8.0 and above of icpc choke on multiply defined symbols
  7465. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7466. + # earlier do not add the objects themselves.
  7467. + case `$CC -V 2>&1` in
  7468. + *"Version 7."*)
  7469. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7470. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7471. + ;;
  7472. + *) # Version 8.0 or newer
  7473. + tmp_idyn=
  7474. + case $host_cpu in
  7475. + ia64*) tmp_idyn=' -i_dynamic';;
  7476. + esac
  7477. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7478. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7479. + ;;
  7480. + esac
  7481. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7482. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7483. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7484. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7485. + ;;
  7486. + pgCC* | pgcpp*)
  7487. + # Portland Group C++ compiler
  7488. + case `$CC -V` in
  7489. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7490. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7491. + rm -rf $tpldir~
  7492. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7493. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7494. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7495. + rm -rf $tpldir~
  7496. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7497. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7498. + $RANLIB $oldlib'
  7499. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7500. + rm -rf $tpldir~
  7501. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7502. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7503. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7504. + rm -rf $tpldir~
  7505. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7506. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7507. + ;;
  7508. + *) # Version 6 will use weak symbols
  7509. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7510. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7511. + ;;
  7512. + esac
  7513. -# Symbols that should not be listed in the preloaded symbols.
  7514. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7515. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7516. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7517. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7518. + ;;
  7519. + cxx*)
  7520. + # Compaq C++
  7521. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7522. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  7523. -# Symbols that must always be exported.
  7524. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7525. + runpath_var=LD_RUN_PATH
  7526. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7527. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7528. -ifelse([$1],[],
  7529. -[# ### END LIBTOOL CONFIG],
  7530. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7531. + # Commands to make compiler produce verbose output that lists
  7532. + # what "hidden" libraries, object files and flags are used when
  7533. + # linking a shared library.
  7534. + #
  7535. + # There doesn't appear to be a way to prevent this compiler from
  7536. + # explicitly linking system object files so we need to strip them
  7537. + # from the output so that they don't get included in the library
  7538. + # dependencies.
  7539. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7540. + ;;
  7541. + xl*)
  7542. + # IBM XL 8.0 on PPC, with GNU ld
  7543. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7544. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7545. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7546. + if test "x$supports_anon_versioning" = xyes; then
  7547. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7548. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7549. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7550. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7551. + fi
  7552. + ;;
  7553. + *)
  7554. + case `$CC -V 2>&1 | sed 5q` in
  7555. + *Sun\ C*)
  7556. + # Sun C++ 5.9
  7557. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7558. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7559. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  7560. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7561. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7562. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7563. +
  7564. + # Not sure whether something based on
  7565. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7566. + # would be better.
  7567. + output_verbose_link_cmd='echo'
  7568. +
  7569. + # Archives containing C++ object files must be created using
  7570. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7571. + # necessary to make sure instantiated templates are included
  7572. + # in the archive.
  7573. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7574. + ;;
  7575. + esac
  7576. + ;;
  7577. + esac
  7578. + ;;
  7579. -__EOF__
  7580. + lynxos*)
  7581. + # FIXME: insert proper C++ library support
  7582. + _LT_TAGVAR(ld_shlibs, $1)=no
  7583. + ;;
  7584. -ifelse([$1],[], [
  7585. - case $host_os in
  7586. - aix3*)
  7587. - cat <<\EOF >> "$cfgfile"
  7588. + m88k*)
  7589. + # FIXME: insert proper C++ library support
  7590. + _LT_TAGVAR(ld_shlibs, $1)=no
  7591. + ;;
  7592. -# AIX sometimes has problems with the GCC collect2 program. For some
  7593. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7594. -# vanish in a puff of smoke.
  7595. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7596. - COLLECT_NAMES=
  7597. - export COLLECT_NAMES
  7598. -fi
  7599. -EOF
  7600. - ;;
  7601. - esac
  7602. + mvs*)
  7603. + case $cc_basename in
  7604. + cxx*)
  7605. + # FIXME: insert proper C++ library support
  7606. + _LT_TAGVAR(ld_shlibs, $1)=no
  7607. + ;;
  7608. + *)
  7609. + # FIXME: insert proper C++ library support
  7610. + _LT_TAGVAR(ld_shlibs, $1)=no
  7611. + ;;
  7612. + esac
  7613. + ;;
  7614. - # We use sed instead of cat because bash on DJGPP gets confused if
  7615. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7616. - # text mode, it properly converts lines to CR/LF. This bash problem
  7617. - # is reportedly fixed, but why not run on old versions too?
  7618. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7619. + netbsd*)
  7620. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7621. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7622. + wlarc=
  7623. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7624. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7625. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7626. + fi
  7627. + # Workaround some broken pre-1.5 toolchains
  7628. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7629. + ;;
  7630. - mv -f "$cfgfile" "$ofile" || \
  7631. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7632. - chmod +x "$ofile"
  7633. -])
  7634. -else
  7635. - # If there is no Makefile yet, we rely on a make rule to execute
  7636. - # `config.status --recheck' to rerun these tests and create the
  7637. - # libtool script then.
  7638. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7639. - if test -f "$ltmain_in"; then
  7640. - test -f Makefile && make "$ltmain"
  7641. - fi
  7642. -fi
  7643. -])# AC_LIBTOOL_CONFIG
  7644. + *nto* | *qnx*)
  7645. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7646. + ;;
  7647. + openbsd2*)
  7648. + # C++ shared libraries are fairly broken
  7649. + _LT_TAGVAR(ld_shlibs, $1)=no
  7650. + ;;
  7651. +
  7652. + openbsd*)
  7653. + if test -f /usr/libexec/ld.so; then
  7654. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7655. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7656. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7657. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7658. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7659. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7660. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  7661. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7662. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7663. + fi
  7664. + output_verbose_link_cmd=echo
  7665. + else
  7666. + _LT_TAGVAR(ld_shlibs, $1)=no
  7667. + fi
  7668. + ;;
  7669. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7670. -# -------------------------------------------
  7671. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7672. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7673. + osf3* | osf4* | osf5*)
  7674. + case $cc_basename in
  7675. + KCC*)
  7676. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7677. +
  7678. + # KCC will only create a shared library if the output file
  7679. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7680. + # to its proper name (with version) after linking.
  7681. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7682. +
  7683. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7684. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7685. +
  7686. + # Archives containing C++ object files must be created using
  7687. + # the KAI C++ compiler.
  7688. + case $host in
  7689. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7690. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7691. + esac
  7692. + ;;
  7693. + RCC*)
  7694. + # Rational C++ 2.4.1
  7695. + # FIXME: insert proper C++ library support
  7696. + _LT_TAGVAR(ld_shlibs, $1)=no
  7697. + ;;
  7698. + cxx*)
  7699. + case $host in
  7700. + osf3*)
  7701. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7702. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7703. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7704. + ;;
  7705. + *)
  7706. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7707. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7708. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7709. + echo "-hidden">> $lib.exp~
  7710. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  7711. + $RM $lib.exp'
  7712. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7713. + ;;
  7714. + esac
  7715. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7716. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7717. -if test "$GCC" = yes; then
  7718. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7719. + # Commands to make compiler produce verbose output that lists
  7720. + # what "hidden" libraries, object files and flags are used when
  7721. + # linking a shared library.
  7722. + #
  7723. + # There doesn't appear to be a way to prevent this compiler from
  7724. + # explicitly linking system object files so we need to strip them
  7725. + # from the output so that they don't get included in the library
  7726. + # dependencies.
  7727. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7728. + ;;
  7729. + *)
  7730. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7731. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7732. + case $host in
  7733. + osf3*)
  7734. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7735. + ;;
  7736. + *)
  7737. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7738. + ;;
  7739. + esac
  7740. +
  7741. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7742. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7743. +
  7744. + # Commands to make compiler produce verbose output that lists
  7745. + # what "hidden" libraries, object files and flags are used when
  7746. + # linking a shared library.
  7747. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7748. +
  7749. + else
  7750. + # FIXME: insert proper C++ library support
  7751. + _LT_TAGVAR(ld_shlibs, $1)=no
  7752. + fi
  7753. + ;;
  7754. + esac
  7755. + ;;
  7756. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7757. - lt_cv_prog_compiler_rtti_exceptions,
  7758. - [-fno-rtti -fno-exceptions], [],
  7759. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7760. -fi
  7761. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7762. + psos*)
  7763. + # FIXME: insert proper C++ library support
  7764. + _LT_TAGVAR(ld_shlibs, $1)=no
  7765. + ;;
  7766. + sunos4*)
  7767. + case $cc_basename in
  7768. + CC*)
  7769. + # Sun C++ 4.x
  7770. + # FIXME: insert proper C++ library support
  7771. + _LT_TAGVAR(ld_shlibs, $1)=no
  7772. + ;;
  7773. + lcc*)
  7774. + # Lucid
  7775. + # FIXME: insert proper C++ library support
  7776. + _LT_TAGVAR(ld_shlibs, $1)=no
  7777. + ;;
  7778. + *)
  7779. + # FIXME: insert proper C++ library support
  7780. + _LT_TAGVAR(ld_shlibs, $1)=no
  7781. + ;;
  7782. + esac
  7783. + ;;
  7784. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7785. -# ---------------------------------
  7786. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7787. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7788. -AC_REQUIRE([LT_AC_PROG_SED])
  7789. -AC_REQUIRE([AC_PROG_NM])
  7790. -AC_REQUIRE([AC_OBJEXT])
  7791. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7792. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7793. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7794. -[
  7795. -# These are sane defaults that work on at least a few old systems.
  7796. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7797. + solaris*)
  7798. + case $cc_basename in
  7799. + CC*)
  7800. + # Sun C++ 4.2, 5.x and Centerline C++
  7801. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7802. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7803. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7804. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7805. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7806. +
  7807. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7808. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7809. + case $host_os in
  7810. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7811. + *)
  7812. + # The compiler driver will combine and reorder linker options,
  7813. + # but understands `-z linker_flag'.
  7814. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7815. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7816. + ;;
  7817. + esac
  7818. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7819. -# Character class describing NM global symbol codes.
  7820. -symcode='[[BCDEGRST]]'
  7821. + output_verbose_link_cmd='echo'
  7822. -# Regexp to match symbols that can be accessed directly from C.
  7823. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7824. + # Archives containing C++ object files must be created using
  7825. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7826. + # necessary to make sure instantiated templates are included
  7827. + # in the archive.
  7828. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7829. + ;;
  7830. + gcx*)
  7831. + # Green Hills C++ Compiler
  7832. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7833. -# Transform an extracted symbol line into a proper C declaration
  7834. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7835. + # The C++ compiler must be used to create the archive.
  7836. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7837. + ;;
  7838. + *)
  7839. + # GNU C++ compiler with Solaris linker
  7840. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7841. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7842. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7843. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7844. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7845. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7846. +
  7847. + # Commands to make compiler produce verbose output that lists
  7848. + # what "hidden" libraries, object files and flags are used when
  7849. + # linking a shared library.
  7850. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7851. + else
  7852. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7853. + # platform.
  7854. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7855. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7856. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7857. +
  7858. + # Commands to make compiler produce verbose output that lists
  7859. + # what "hidden" libraries, object files and flags are used when
  7860. + # linking a shared library.
  7861. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7862. + fi
  7863. +
  7864. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7865. + case $host_os in
  7866. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7867. + *)
  7868. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7869. + ;;
  7870. + esac
  7871. + fi
  7872. + ;;
  7873. + esac
  7874. + ;;
  7875. -# Transform an extracted symbol line into symbol name and symbol address
  7876. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7877. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7878. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7879. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7880. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7881. + runpath_var='LD_RUN_PATH'
  7882. -# Define system-specific variables.
  7883. -case $host_os in
  7884. -aix*)
  7885. - symcode='[[BCDT]]'
  7886. - ;;
  7887. -cygwin* | mingw* | pw32*)
  7888. - symcode='[[ABCDGISTW]]'
  7889. - ;;
  7890. -hpux*) # Its linker distinguishes data from code symbols
  7891. - if test "$host_cpu" = ia64; then
  7892. - symcode='[[ABCDEGRST]]'
  7893. - fi
  7894. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7895. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7896. - ;;
  7897. -linux* | k*bsd*-gnu)
  7898. - if test "$host_cpu" = ia64; then
  7899. - symcode='[[ABCDGIRSTW]]'
  7900. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7901. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7902. - fi
  7903. - ;;
  7904. -irix* | nonstopux*)
  7905. - symcode='[[BCDEGRST]]'
  7906. - ;;
  7907. -osf*)
  7908. - symcode='[[BCDEGQRST]]'
  7909. - ;;
  7910. -solaris*)
  7911. - symcode='[[BDRT]]'
  7912. - ;;
  7913. -sco3.2v5*)
  7914. - symcode='[[DT]]'
  7915. - ;;
  7916. -sysv4.2uw2*)
  7917. - symcode='[[DT]]'
  7918. - ;;
  7919. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7920. - symcode='[[ABDT]]'
  7921. - ;;
  7922. -sysv4)
  7923. - symcode='[[DFNSTU]]'
  7924. - ;;
  7925. -esac
  7926. + case $cc_basename in
  7927. + CC*)
  7928. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7929. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7930. + ;;
  7931. + *)
  7932. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7933. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7934. + ;;
  7935. + esac
  7936. + ;;
  7937. -# Handle CRLF in mingw tool chain
  7938. -opt_cr=
  7939. -case $build_os in
  7940. -mingw*)
  7941. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7942. - ;;
  7943. -esac
  7944. + sysv5* | sco3.2v5* | sco5v6*)
  7945. + # Note: We can NOT use -z defs as we might desire, because we do not
  7946. + # link with -lc, and that would cause any symbols used from libc to
  7947. + # always be unresolved, which means just about no library would
  7948. + # ever link correctly. If we're not using GNU ld we use -z text
  7949. + # though, which does catch some bad symbols but isn't as heavy-handed
  7950. + # as -z defs.
  7951. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7952. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7953. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7954. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7955. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7956. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7957. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7958. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7959. + runpath_var='LD_RUN_PATH'
  7960. -# If we're using GNU nm, then use its standard symbol codes.
  7961. -case `$NM -V 2>&1` in
  7962. -*GNU* | *'with BFD'*)
  7963. - symcode='[[ABCDGIRSTW]]' ;;
  7964. -esac
  7965. + case $cc_basename in
  7966. + CC*)
  7967. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7968. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7969. + ;;
  7970. + *)
  7971. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7972. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. + ;;
  7974. + esac
  7975. + ;;
  7976. -# Try without a prefix undercore, then with it.
  7977. -for ac_symprfx in "" "_"; do
  7978. + tandem*)
  7979. + case $cc_basename in
  7980. + NCC*)
  7981. + # NonStop-UX NCC 3.20
  7982. + # FIXME: insert proper C++ library support
  7983. + _LT_TAGVAR(ld_shlibs, $1)=no
  7984. + ;;
  7985. + *)
  7986. + # FIXME: insert proper C++ library support
  7987. + _LT_TAGVAR(ld_shlibs, $1)=no
  7988. + ;;
  7989. + esac
  7990. + ;;
  7991. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7992. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7993. + vxworks*)
  7994. + # FIXME: insert proper C++ library support
  7995. + _LT_TAGVAR(ld_shlibs, $1)=no
  7996. + ;;
  7997. - # Write the raw and C identifiers.
  7998. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7999. + *)
  8000. + # FIXME: insert proper C++ library support
  8001. + _LT_TAGVAR(ld_shlibs, $1)=no
  8002. + ;;
  8003. + esac
  8004. - # Check to see that the pipe works correctly.
  8005. - pipe_works=no
  8006. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8007. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8008. - rm -f conftest*
  8009. - cat > conftest.$ac_ext <<EOF
  8010. -#ifdef __cplusplus
  8011. -extern "C" {
  8012. -#endif
  8013. -char nm_test_var;
  8014. -void nm_test_func(){}
  8015. -#ifdef __cplusplus
  8016. -}
  8017. -#endif
  8018. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8019. -EOF
  8020. + _LT_TAGVAR(GCC, $1)="$GXX"
  8021. + _LT_TAGVAR(LD, $1)="$LD"
  8022. - if AC_TRY_EVAL(ac_compile); then
  8023. - # Now try to grab the symbols.
  8024. - nlist=conftest.nm
  8025. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8026. - # Try sorting and uniquifying the output.
  8027. - if sort "$nlist" | uniq > "$nlist"T; then
  8028. - mv -f "$nlist"T "$nlist"
  8029. - else
  8030. - rm -f "$nlist"T
  8031. - fi
  8032. + ## CAVEAT EMPTOR:
  8033. + ## There is no encapsulation within the following macros, do not change
  8034. + ## the running order or otherwise move them around unless you know exactly
  8035. + ## what you are doing...
  8036. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8037. + _LT_COMPILER_PIC($1)
  8038. + _LT_COMPILER_C_O($1)
  8039. + _LT_COMPILER_FILE_LOCKS($1)
  8040. + _LT_LINKER_SHLIBS($1)
  8041. + _LT_SYS_DYNAMIC_LINKER($1)
  8042. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8043. +
  8044. + _LT_CONFIG($1)
  8045. + fi # test -n "$compiler"
  8046. +
  8047. + CC=$lt_save_CC
  8048. + LDCXX=$LD
  8049. + LD=$lt_save_LD
  8050. + GCC=$lt_save_GCC
  8051. + with_gnu_ld=$lt_save_with_gnu_ld
  8052. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8053. + lt_cv_path_LD=$lt_save_path_LD
  8054. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8055. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8056. +fi # test "$_lt_caught_CXX_error" != yes
  8057. - # Make sure that we snagged all the symbols we need.
  8058. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8059. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8060. - cat <<EOF > conftest.$ac_ext
  8061. -#ifdef __cplusplus
  8062. -extern "C" {
  8063. -#endif
  8064. +AC_LANG_POP
  8065. +])# _LT_LANG_CXX_CONFIG
  8066. -EOF
  8067. - # Now generate the symbol file.
  8068. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8069. - cat <<EOF >> conftest.$ac_ext
  8070. -#if defined (__STDC__) && __STDC__
  8071. -# define lt_ptr_t void *
  8072. -#else
  8073. -# define lt_ptr_t char *
  8074. -# define const
  8075. -#endif
  8076. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8077. +# ---------------------------------
  8078. +# Figure out "hidden" library dependencies from verbose
  8079. +# compiler output when linking a shared library.
  8080. +# Parse the compiler output and extract the necessary
  8081. +# objects, libraries and library flags.
  8082. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8083. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8084. +# Dependencies to place before and after the object being linked:
  8085. +_LT_TAGVAR(predep_objects, $1)=
  8086. +_LT_TAGVAR(postdep_objects, $1)=
  8087. +_LT_TAGVAR(predeps, $1)=
  8088. +_LT_TAGVAR(postdeps, $1)=
  8089. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8090. -/* The mapping between symbol names and symbols. */
  8091. -const struct {
  8092. - const char *name;
  8093. - lt_ptr_t address;
  8094. -}
  8095. -lt_preloaded_symbols[[]] =
  8096. +dnl we can't use the lt_simple_compile_test_code here,
  8097. +dnl because it contains code intended for an executable,
  8098. +dnl not a library. It's possible we should let each
  8099. +dnl tag define a new lt_????_link_test_code variable,
  8100. +dnl but it's only used here...
  8101. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8102. +int a;
  8103. +void foo (void) { a = 0; }
  8104. +_LT_EOF
  8105. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8106. +class Foo
  8107. {
  8108. -EOF
  8109. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8110. - cat <<\EOF >> conftest.$ac_ext
  8111. - {0, (lt_ptr_t) 0}
  8112. +public:
  8113. + Foo (void) { a = 0; }
  8114. +private:
  8115. + int a;
  8116. };
  8117. -
  8118. -#ifdef __cplusplus
  8119. -}
  8120. -#endif
  8121. -EOF
  8122. - # Now try linking the two files.
  8123. - mv conftest.$ac_objext conftstm.$ac_objext
  8124. - lt_save_LIBS="$LIBS"
  8125. - lt_save_CFLAGS="$CFLAGS"
  8126. - LIBS="conftstm.$ac_objext"
  8127. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8128. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8129. - pipe_works=yes
  8130. - fi
  8131. - LIBS="$lt_save_LIBS"
  8132. - CFLAGS="$lt_save_CFLAGS"
  8133. - else
  8134. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8135. - fi
  8136. - else
  8137. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8138. - fi
  8139. - else
  8140. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8141. - fi
  8142. - else
  8143. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8144. - cat conftest.$ac_ext >&5
  8145. - fi
  8146. - rm -f conftest* conftst*
  8147. -
  8148. - # Do not use the global_symbol_pipe unless it works.
  8149. - if test "$pipe_works" = yes; then
  8150. - break
  8151. - else
  8152. - lt_cv_sys_global_symbol_pipe=
  8153. - fi
  8154. -done
  8155. +_LT_EOF
  8156. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8157. + subroutine foo
  8158. + implicit none
  8159. + integer*4 a
  8160. + a=0
  8161. + return
  8162. + end
  8163. +_LT_EOF
  8164. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8165. + subroutine foo
  8166. + implicit none
  8167. + integer a
  8168. + a=0
  8169. + return
  8170. + end
  8171. +_LT_EOF
  8172. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8173. +public class foo {
  8174. + private int a;
  8175. + public void bar (void) {
  8176. + a = 0;
  8177. + }
  8178. +};
  8179. +_LT_EOF
  8180. ])
  8181. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8182. - lt_cv_sys_global_symbol_to_cdecl=
  8183. -fi
  8184. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8185. - AC_MSG_RESULT(failed)
  8186. +dnl Parse the compiler output and extract the necessary
  8187. +dnl objects, libraries and library flags.
  8188. +if AC_TRY_EVAL(ac_compile); then
  8189. + # Parse the compiler output and extract the necessary
  8190. + # objects, libraries and library flags.
  8191. +
  8192. + # Sentinel used to keep track of whether or not we are before
  8193. + # the conftest object file.
  8194. + pre_test_object_deps_done=no
  8195. +
  8196. + for p in `eval "$output_verbose_link_cmd"`; do
  8197. + case $p in
  8198. +
  8199. + -L* | -R* | -l*)
  8200. + # Some compilers place space between "-{L,R}" and the path.
  8201. + # Remove the space.
  8202. + if test $p = "-L" ||
  8203. + test $p = "-R"; then
  8204. + prev=$p
  8205. + continue
  8206. + else
  8207. + prev=
  8208. + fi
  8209. +
  8210. + if test "$pre_test_object_deps_done" = no; then
  8211. + case $p in
  8212. + -L* | -R*)
  8213. + # Internal compiler library paths should come after those
  8214. + # provided the user. The postdeps already come after the
  8215. + # user supplied libs so there is no need to process them.
  8216. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8217. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8218. + else
  8219. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8220. + fi
  8221. + ;;
  8222. + # The "-l" case would never come before the object being
  8223. + # linked, so don't bother handling this case.
  8224. + esac
  8225. + else
  8226. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8227. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8228. + else
  8229. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8230. + fi
  8231. + fi
  8232. + ;;
  8233. +
  8234. + *.$objext)
  8235. + # This assumes that the test object file only shows up
  8236. + # once in the compiler output.
  8237. + if test "$p" = "conftest.$objext"; then
  8238. + pre_test_object_deps_done=yes
  8239. + continue
  8240. + fi
  8241. +
  8242. + if test "$pre_test_object_deps_done" = no; then
  8243. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8244. + _LT_TAGVAR(predep_objects, $1)="$p"
  8245. + else
  8246. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8247. + fi
  8248. + else
  8249. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8250. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8251. + else
  8252. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8253. + fi
  8254. + fi
  8255. + ;;
  8256. +
  8257. + *) ;; # Ignore the rest.
  8258. +
  8259. + esac
  8260. + done
  8261. +
  8262. + # Clean up.
  8263. + rm -f a.out a.exe
  8264. else
  8265. - AC_MSG_RESULT(ok)
  8266. + echo "libtool.m4: error: problem compiling $1 test program"
  8267. fi
  8268. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8269. +$RM -f confest.$objext
  8270. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8271. -# ---------------------------------------
  8272. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8273. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8274. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8275. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8276. +# PORTME: override above test on systems where it is broken
  8277. +m4_if([$1], [CXX],
  8278. +[case $host_os in
  8279. +interix[[3-9]]*)
  8280. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8281. + # hack all around it, let's just trust "g++" to DTRT.
  8282. + _LT_TAGVAR(predep_objects,$1)=
  8283. + _LT_TAGVAR(postdep_objects,$1)=
  8284. + _LT_TAGVAR(postdeps,$1)=
  8285. + ;;
  8286. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8287. - ifelse([$1],[CXX],[
  8288. - # C++ specific cases for pic, static, wl, etc.
  8289. - if test "$GXX" = yes; then
  8290. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8291. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8292. +linux*)
  8293. + case `$CC -V 2>&1 | sed 5q` in
  8294. + *Sun\ C*)
  8295. + # Sun C++ 5.9
  8296. - case $host_os in
  8297. - aix*)
  8298. - # All AIX code is PIC.
  8299. - if test "$host_cpu" = ia64; then
  8300. - # AIX 5 now supports IA64 processor
  8301. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8302. - fi
  8303. - ;;
  8304. - amigaos*)
  8305. - # FIXME: we need at least 68020 code to build shared libraries, but
  8306. - # adding the `-m68020' flag to GCC prevents building anything better,
  8307. - # like `-m68040'.
  8308. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8309. - ;;
  8310. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8311. - # PIC is the default for these OSes.
  8312. - ;;
  8313. - mingw* | cygwin* | os2* | pw32*)
  8314. - # This hack is so that the source file can tell whether it is being
  8315. - # built for inclusion in a dll (and should export symbols for example).
  8316. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8317. - # (--disable-auto-import) libraries
  8318. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8319. - ;;
  8320. - darwin* | rhapsody*)
  8321. - # PIC is the default on this platform
  8322. - # Common symbols not allowed in MH_DYLIB files
  8323. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8324. - ;;
  8325. - *djgpp*)
  8326. - # DJGPP does not support shared libraries at all
  8327. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8328. - ;;
  8329. - interix[[3-9]]*)
  8330. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8331. - # Instead, we relocate shared libraries at runtime.
  8332. - ;;
  8333. - sysv4*MP*)
  8334. - if test -d /usr/nec; then
  8335. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8336. - fi
  8337. - ;;
  8338. - hpux*)
  8339. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8340. - # not for PA HP-UX.
  8341. - case $host_cpu in
  8342. - hppa*64*|ia64*)
  8343. - ;;
  8344. - *)
  8345. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8346. - ;;
  8347. - esac
  8348. + # The more standards-conforming stlport4 library is
  8349. + # incompatible with the Cstd library. Avoid specifying
  8350. + # it if it's in CXXFLAGS. Ignore libCrun as
  8351. + # -library=stlport4 depends on it.
  8352. + case " $CXX $CXXFLAGS " in
  8353. + *" -library=stlport4 "*)
  8354. + solaris_use_stlport4=yes
  8355. ;;
  8356. - *)
  8357. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8358. + esac
  8359. +
  8360. + if test "$solaris_use_stlport4" != yes; then
  8361. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8362. + fi
  8363. + ;;
  8364. + esac
  8365. + ;;
  8366. +
  8367. +solaris*)
  8368. + case $cc_basename in
  8369. + CC*)
  8370. + # The more standards-conforming stlport4 library is
  8371. + # incompatible with the Cstd library. Avoid specifying
  8372. + # it if it's in CXXFLAGS. Ignore libCrun as
  8373. + # -library=stlport4 depends on it.
  8374. + case " $CXX $CXXFLAGS " in
  8375. + *" -library=stlport4 "*)
  8376. + solaris_use_stlport4=yes
  8377. ;;
  8378. esac
  8379. - else
  8380. +
  8381. + # Adding this requires a known-good setup of shared libraries for
  8382. + # Sun compiler versions before 5.6, else PIC objects from an old
  8383. + # archive will be linked into the output, leading to subtle bugs.
  8384. + if test "$solaris_use_stlport4" != yes; then
  8385. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8386. + fi
  8387. + ;;
  8388. + esac
  8389. + ;;
  8390. +esac
  8391. +])
  8392. +
  8393. +case " $_LT_TAGVAR(postdeps, $1) " in
  8394. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8395. +esac
  8396. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8397. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8398. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8399. +fi
  8400. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8401. + [The directories searched by this compiler when creating a shared library])
  8402. +_LT_TAGDECL([], [predep_objects], [1],
  8403. + [Dependencies to place before and after the objects being linked to
  8404. + create a shared library])
  8405. +_LT_TAGDECL([], [postdep_objects], [1])
  8406. +_LT_TAGDECL([], [predeps], [1])
  8407. +_LT_TAGDECL([], [postdeps], [1])
  8408. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8409. + [The library search path used internally by the compiler when linking
  8410. + a shared library])
  8411. +])# _LT_SYS_HIDDEN_LIBDEPS
  8412. +
  8413. +
  8414. +# _LT_PROG_F77
  8415. +# ------------
  8416. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8417. +# if there is no fortran compiler, we have our own version here.
  8418. +m4_defun([_LT_PROG_F77],
  8419. +[
  8420. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8421. +AC_PROG_F77
  8422. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8423. + _lt_disable_F77=yes
  8424. +fi
  8425. +popdef([AC_MSG_ERROR])
  8426. +])# _LT_PROG_F77
  8427. +
  8428. +dnl aclocal-1.4 backwards compatibility:
  8429. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8430. +
  8431. +
  8432. +# _LT_LANG_F77_CONFIG([TAG])
  8433. +# --------------------------
  8434. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8435. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8436. +# to write the compiler configuration to `libtool'.
  8437. +m4_defun([_LT_LANG_F77_CONFIG],
  8438. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8439. +AC_LANG_PUSH(Fortran 77)
  8440. +
  8441. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8442. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8443. +_LT_TAGVAR(always_export_symbols, $1)=no
  8444. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8445. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8446. +_LT_TAGVAR(hardcode_direct, $1)=no
  8447. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8448. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8449. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8450. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8451. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8452. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8453. +_LT_TAGVAR(inherit_rpath, $1)=no
  8454. +_LT_TAGVAR(module_cmds, $1)=
  8455. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8456. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8457. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8458. +_LT_TAGVAR(no_undefined_flag, $1)=
  8459. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8460. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8461. +
  8462. +# Source file extension for f77 test sources.
  8463. +ac_ext=f
  8464. +
  8465. +# Object file extension for compiled f77 test sources.
  8466. +objext=o
  8467. +_LT_TAGVAR(objext, $1)=$objext
  8468. +
  8469. +# No sense in running all these tests if we already determined that
  8470. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8471. +# are currently assumed to apply to all compilers on this platform,
  8472. +# and will be corrupted by setting them based on a non-working compiler.
  8473. +if test "$_lt_disable_F77" != yes; then
  8474. + # Code to be used in simple compile tests
  8475. + lt_simple_compile_test_code="\
  8476. + subroutine t
  8477. + return
  8478. + end
  8479. +"
  8480. +
  8481. + # Code to be used in simple link tests
  8482. + lt_simple_link_test_code="\
  8483. + program t
  8484. + end
  8485. +"
  8486. +
  8487. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8488. + _LT_TAG_COMPILER
  8489. +
  8490. + # save warnings/boilerplate of simple test code
  8491. + _LT_COMPILER_BOILERPLATE
  8492. + _LT_LINKER_BOILERPLATE
  8493. +
  8494. + # Allow CC to be a program name with arguments.
  8495. + lt_save_CC="$CC"
  8496. + lt_save_GCC=$GCC
  8497. + CC=${F77-"f77"}
  8498. + compiler=$CC
  8499. + _LT_TAGVAR(compiler, $1)=$CC
  8500. + _LT_CC_BASENAME([$compiler])
  8501. + GCC=$G77
  8502. + if test -n "$compiler"; then
  8503. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8504. + AC_MSG_RESULT([$can_build_shared])
  8505. +
  8506. + AC_MSG_CHECKING([whether to build shared libraries])
  8507. + test "$can_build_shared" = "no" && enable_shared=no
  8508. +
  8509. + # On AIX, shared libraries and static libraries use the same namespace, and
  8510. + # are all built from PIC.
  8511. case $host_os in
  8512. - aix4* | aix5*)
  8513. - # All AIX code is PIC.
  8514. - if test "$host_cpu" = ia64; then
  8515. - # AIX 5 now supports IA64 processor
  8516. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8517. - else
  8518. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8519. + aix3*)
  8520. + test "$enable_shared" = yes && enable_static=no
  8521. + if test -n "$RANLIB"; then
  8522. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8523. + postinstall_cmds='$RANLIB $lib'
  8524. + fi
  8525. + ;;
  8526. + aix[[4-9]]*)
  8527. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8528. + test "$enable_shared" = yes && enable_static=no
  8529. fi
  8530. - ;;
  8531. - chorus*)
  8532. - case $cc_basename in
  8533. - cxch68*)
  8534. - # Green Hills C++ Compiler
  8535. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  8536. - ;;
  8537. - esac
  8538. - ;;
  8539. - darwin*)
  8540. - # PIC is the default on this platform
  8541. - # Common symbols not allowed in MH_DYLIB files
  8542. - case $cc_basename in
  8543. - xlc*)
  8544. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8545. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8546. - ;;
  8547. - esac
  8548. - ;;
  8549. - dgux*)
  8550. - case $cc_basename in
  8551. - ec++*)
  8552. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8553. - ;;
  8554. - ghcx*)
  8555. - # Green Hills C++ Compiler
  8556. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8557. - ;;
  8558. - *)
  8559. - ;;
  8560. - esac
  8561. - ;;
  8562. - freebsd* | dragonfly*)
  8563. - # FreeBSD uses GNU C++
  8564. - ;;
  8565. - hpux9* | hpux10* | hpux11*)
  8566. - case $cc_basename in
  8567. - CC*)
  8568. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8569. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8570. - if test "$host_cpu" != ia64; then
  8571. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8572. - fi
  8573. - ;;
  8574. - aCC*)
  8575. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8576. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8577. - case $host_cpu in
  8578. - hppa*64*|ia64*)
  8579. - # +Z the default
  8580. - ;;
  8581. - *)
  8582. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8583. - ;;
  8584. - esac
  8585. - ;;
  8586. - *)
  8587. - ;;
  8588. - esac
  8589. - ;;
  8590. - interix*)
  8591. - # This is c89, which is MS Visual C++ (no shared libs)
  8592. - # Anyone wants to do a port?
  8593. - ;;
  8594. - irix5* | irix6* | nonstopux*)
  8595. - case $cc_basename in
  8596. - CC*)
  8597. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8598. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8599. - # CC pic flag -KPIC is the default.
  8600. - ;;
  8601. - *)
  8602. - ;;
  8603. - esac
  8604. - ;;
  8605. - linux* | k*bsd*-gnu)
  8606. - case $cc_basename in
  8607. - KCC*)
  8608. - # KAI C++ Compiler
  8609. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8610. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8611. - ;;
  8612. - icpc* | ecpc*)
  8613. - # Intel C++
  8614. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8615. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8616. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8617. - ;;
  8618. - pgCC*)
  8619. - # Portland Group C++ compiler.
  8620. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8621. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8622. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8623. - ;;
  8624. - cxx*)
  8625. - # Compaq C++
  8626. - # Make sure the PIC flag is empty. It appears that all Alpha
  8627. - # Linux and Compaq Tru64 Unix objects are PIC.
  8628. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8629. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8630. - ;;
  8631. - *)
  8632. - case `$CC -V 2>&1 | sed 5q` in
  8633. - *Sun\ C*)
  8634. - # Sun C++ 5.9
  8635. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8636. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8637. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8638. - ;;
  8639. - esac
  8640. - ;;
  8641. - esac
  8642. - ;;
  8643. - lynxos*)
  8644. - ;;
  8645. - m88k*)
  8646. - ;;
  8647. - mvs*)
  8648. - case $cc_basename in
  8649. - cxx*)
  8650. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8651. - ;;
  8652. - *)
  8653. - ;;
  8654. - esac
  8655. - ;;
  8656. - netbsd*)
  8657. - ;;
  8658. - osf3* | osf4* | osf5*)
  8659. - case $cc_basename in
  8660. - KCC*)
  8661. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8662. - ;;
  8663. - RCC*)
  8664. - # Rational C++ 2.4.1
  8665. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8666. - ;;
  8667. - cxx*)
  8668. - # Digital/Compaq C++
  8669. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8670. - # Make sure the PIC flag is empty. It appears that all Alpha
  8671. - # Linux and Compaq Tru64 Unix objects are PIC.
  8672. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8673. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8674. - ;;
  8675. - *)
  8676. - ;;
  8677. - esac
  8678. - ;;
  8679. - psos*)
  8680. - ;;
  8681. - solaris*)
  8682. - case $cc_basename in
  8683. - CC*)
  8684. - # Sun C++ 4.2, 5.x and Centerline C++
  8685. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8686. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8687. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8688. - ;;
  8689. - gcx*)
  8690. - # Green Hills C++ Compiler
  8691. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8692. - ;;
  8693. - *)
  8694. - ;;
  8695. - esac
  8696. - ;;
  8697. - sunos4*)
  8698. - case $cc_basename in
  8699. - CC*)
  8700. - # Sun C++ 4.x
  8701. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8702. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8703. - ;;
  8704. - lcc*)
  8705. - # Lucid
  8706. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8707. - ;;
  8708. - *)
  8709. - ;;
  8710. - esac
  8711. - ;;
  8712. - tandem*)
  8713. - case $cc_basename in
  8714. - NCC*)
  8715. - # NonStop-UX NCC 3.20
  8716. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8717. - ;;
  8718. - *)
  8719. - ;;
  8720. - esac
  8721. - ;;
  8722. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8723. - case $cc_basename in
  8724. - CC*)
  8725. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8726. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8727. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8728. - ;;
  8729. - esac
  8730. - ;;
  8731. - vxworks*)
  8732. - ;;
  8733. - *)
  8734. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8735. - ;;
  8736. + ;;
  8737. esac
  8738. - fi
  8739. -],
  8740. + AC_MSG_RESULT([$enable_shared])
  8741. +
  8742. + AC_MSG_CHECKING([whether to build static libraries])
  8743. + # Make sure either enable_shared or enable_static is yes.
  8744. + test "$enable_shared" = yes || enable_static=yes
  8745. + AC_MSG_RESULT([$enable_static])
  8746. +
  8747. + _LT_TAGVAR(GCC, $1)="$G77"
  8748. + _LT_TAGVAR(LD, $1)="$LD"
  8749. +
  8750. + ## CAVEAT EMPTOR:
  8751. + ## There is no encapsulation within the following macros, do not change
  8752. + ## the running order or otherwise move them around unless you know exactly
  8753. + ## what you are doing...
  8754. + _LT_COMPILER_PIC($1)
  8755. + _LT_COMPILER_C_O($1)
  8756. + _LT_COMPILER_FILE_LOCKS($1)
  8757. + _LT_LINKER_SHLIBS($1)
  8758. + _LT_SYS_DYNAMIC_LINKER($1)
  8759. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8760. +
  8761. + _LT_CONFIG($1)
  8762. + fi # test -n "$compiler"
  8763. +
  8764. + GCC=$lt_save_GCC
  8765. + CC="$lt_save_CC"
  8766. +fi # test "$_lt_disable_F77" != yes
  8767. +
  8768. +AC_LANG_POP
  8769. +])# _LT_LANG_F77_CONFIG
  8770. +
  8771. +
  8772. +# _LT_PROG_FC
  8773. +# -----------
  8774. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8775. +# if there is no fortran compiler, we have our own version here.
  8776. +m4_defun([_LT_PROG_FC],
  8777. [
  8778. - if test "$GCC" = yes; then
  8779. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8780. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8781. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8782. +AC_PROG_FC
  8783. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8784. + _lt_disable_FC=yes
  8785. +fi
  8786. +popdef([AC_MSG_ERROR])
  8787. +])# _LT_PROG_FC
  8788. +
  8789. +dnl aclocal-1.4 backwards compatibility:
  8790. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8791. +
  8792. +
  8793. +# _LT_LANG_FC_CONFIG([TAG])
  8794. +# -------------------------
  8795. +# Ensure that the configuration variables for a Fortran compiler are
  8796. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8797. +# to write the compiler configuration to `libtool'.
  8798. +m4_defun([_LT_LANG_FC_CONFIG],
  8799. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8800. +AC_LANG_PUSH(Fortran)
  8801. +
  8802. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8803. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8804. +_LT_TAGVAR(always_export_symbols, $1)=no
  8805. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8806. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8807. +_LT_TAGVAR(hardcode_direct, $1)=no
  8808. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8809. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8810. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8811. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8812. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8813. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8814. +_LT_TAGVAR(inherit_rpath, $1)=no
  8815. +_LT_TAGVAR(module_cmds, $1)=
  8816. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8817. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8818. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8819. +_LT_TAGVAR(no_undefined_flag, $1)=
  8820. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8821. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8822. +
  8823. +# Source file extension for fc test sources.
  8824. +ac_ext=${ac_fc_srcext-f}
  8825. +
  8826. +# Object file extension for compiled fc test sources.
  8827. +objext=o
  8828. +_LT_TAGVAR(objext, $1)=$objext
  8829. +
  8830. +# No sense in running all these tests if we already determined that
  8831. +# the FC compiler isn't working. Some variables (like enable_shared)
  8832. +# are currently assumed to apply to all compilers on this platform,
  8833. +# and will be corrupted by setting them based on a non-working compiler.
  8834. +if test "$_lt_disable_FC" != yes; then
  8835. + # Code to be used in simple compile tests
  8836. + lt_simple_compile_test_code="\
  8837. + subroutine t
  8838. + return
  8839. + end
  8840. +"
  8841. +
  8842. + # Code to be used in simple link tests
  8843. + lt_simple_link_test_code="\
  8844. + program t
  8845. + end
  8846. +"
  8847. +
  8848. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8849. + _LT_TAG_COMPILER
  8850. +
  8851. + # save warnings/boilerplate of simple test code
  8852. + _LT_COMPILER_BOILERPLATE
  8853. + _LT_LINKER_BOILERPLATE
  8854. +
  8855. + # Allow CC to be a program name with arguments.
  8856. + lt_save_CC="$CC"
  8857. + lt_save_GCC=$GCC
  8858. + CC=${FC-"f95"}
  8859. + compiler=$CC
  8860. + GCC=$ac_cv_fc_compiler_gnu
  8861. +
  8862. + _LT_TAGVAR(compiler, $1)=$CC
  8863. + _LT_CC_BASENAME([$compiler])
  8864. +
  8865. + if test -n "$compiler"; then
  8866. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8867. + AC_MSG_RESULT([$can_build_shared])
  8868. +
  8869. + AC_MSG_CHECKING([whether to build shared libraries])
  8870. + test "$can_build_shared" = "no" && enable_shared=no
  8871. +
  8872. + # On AIX, shared libraries and static libraries use the same namespace, and
  8873. + # are all built from PIC.
  8874. + case $host_os in
  8875. + aix3*)
  8876. + test "$enable_shared" = yes && enable_static=no
  8877. + if test -n "$RANLIB"; then
  8878. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8879. + postinstall_cmds='$RANLIB $lib'
  8880. + fi
  8881. + ;;
  8882. + aix[[4-9]]*)
  8883. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8884. + test "$enable_shared" = yes && enable_static=no
  8885. + fi
  8886. + ;;
  8887. + esac
  8888. + AC_MSG_RESULT([$enable_shared])
  8889. - case $host_os in
  8890. - aix*)
  8891. - # All AIX code is PIC.
  8892. - if test "$host_cpu" = ia64; then
  8893. - # AIX 5 now supports IA64 processor
  8894. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8895. - fi
  8896. - ;;
  8897. + AC_MSG_CHECKING([whether to build static libraries])
  8898. + # Make sure either enable_shared or enable_static is yes.
  8899. + test "$enable_shared" = yes || enable_static=yes
  8900. + AC_MSG_RESULT([$enable_static])
  8901. +
  8902. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8903. + _LT_TAGVAR(LD, $1)="$LD"
  8904. +
  8905. + ## CAVEAT EMPTOR:
  8906. + ## There is no encapsulation within the following macros, do not change
  8907. + ## the running order or otherwise move them around unless you know exactly
  8908. + ## what you are doing...
  8909. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8910. + _LT_COMPILER_PIC($1)
  8911. + _LT_COMPILER_C_O($1)
  8912. + _LT_COMPILER_FILE_LOCKS($1)
  8913. + _LT_LINKER_SHLIBS($1)
  8914. + _LT_SYS_DYNAMIC_LINKER($1)
  8915. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8916. +
  8917. + _LT_CONFIG($1)
  8918. + fi # test -n "$compiler"
  8919. +
  8920. + GCC=$lt_save_GCC
  8921. + CC="$lt_save_CC"
  8922. +fi # test "$_lt_disable_FC" != yes
  8923. - amigaos*)
  8924. - # FIXME: we need at least 68020 code to build shared libraries, but
  8925. - # adding the `-m68020' flag to GCC prevents building anything better,
  8926. - # like `-m68040'.
  8927. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8928. - ;;
  8929. +AC_LANG_POP
  8930. +])# _LT_LANG_FC_CONFIG
  8931. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8932. - # PIC is the default for these OSes.
  8933. - ;;
  8934. - mingw* | cygwin* | pw32* | os2*)
  8935. - # This hack is so that the source file can tell whether it is being
  8936. - # built for inclusion in a dll (and should export symbols for example).
  8937. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8938. - # (--disable-auto-import) libraries
  8939. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8940. - ;;
  8941. +# _LT_LANG_GCJ_CONFIG([TAG])
  8942. +# --------------------------
  8943. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8944. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8945. +# to write the compiler configuration to `libtool'.
  8946. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8947. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8948. +AC_LANG_SAVE
  8949. - darwin* | rhapsody*)
  8950. - # PIC is the default on this platform
  8951. - # Common symbols not allowed in MH_DYLIB files
  8952. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8953. - ;;
  8954. +# Source file extension for Java test sources.
  8955. +ac_ext=java
  8956. - interix[[3-9]]*)
  8957. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8958. - # Instead, we relocate shared libraries at runtime.
  8959. - ;;
  8960. +# Object file extension for compiled Java test sources.
  8961. +objext=o
  8962. +_LT_TAGVAR(objext, $1)=$objext
  8963. - msdosdjgpp*)
  8964. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  8965. - # on systems that don't support them.
  8966. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8967. - enable_shared=no
  8968. - ;;
  8969. +# Code to be used in simple compile tests
  8970. +lt_simple_compile_test_code="class foo {}"
  8971. - sysv4*MP*)
  8972. - if test -d /usr/nec; then
  8973. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8974. - fi
  8975. - ;;
  8976. +# Code to be used in simple link tests
  8977. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8978. - hpux*)
  8979. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8980. - # not for PA HP-UX.
  8981. - case $host_cpu in
  8982. - hppa*64*|ia64*)
  8983. - # +Z the default
  8984. - ;;
  8985. - *)
  8986. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8987. - ;;
  8988. - esac
  8989. - ;;
  8990. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8991. +_LT_TAG_COMPILER
  8992. - *)
  8993. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8994. - ;;
  8995. - esac
  8996. - else
  8997. - # PORTME Check for flag to pass linker flags through the system compiler.
  8998. - case $host_os in
  8999. - aix*)
  9000. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9001. - if test "$host_cpu" = ia64; then
  9002. - # AIX 5 now supports IA64 processor
  9003. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9004. - else
  9005. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9006. - fi
  9007. - ;;
  9008. - darwin*)
  9009. - # PIC is the default on this platform
  9010. - # Common symbols not allowed in MH_DYLIB files
  9011. - case $cc_basename in
  9012. - xlc*)
  9013. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9014. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9015. - ;;
  9016. - esac
  9017. - ;;
  9018. +# save warnings/boilerplate of simple test code
  9019. +_LT_COMPILER_BOILERPLATE
  9020. +_LT_LINKER_BOILERPLATE
  9021. - mingw* | cygwin* | pw32* | os2*)
  9022. - # This hack is so that the source file can tell whether it is being
  9023. - # built for inclusion in a dll (and should export symbols for example).
  9024. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9025. - ;;
  9026. +# Allow CC to be a program name with arguments.
  9027. +lt_save_CC="$CC"
  9028. +lt_save_GCC=$GCC
  9029. +GCC=yes
  9030. +CC=${GCJ-"gcj"}
  9031. +compiler=$CC
  9032. +_LT_TAGVAR(compiler, $1)=$CC
  9033. +_LT_TAGVAR(LD, $1)="$LD"
  9034. +_LT_CC_BASENAME([$compiler])
  9035. - hpux9* | hpux10* | hpux11*)
  9036. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9037. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9038. - # not for PA HP-UX.
  9039. - case $host_cpu in
  9040. - hppa*64*|ia64*)
  9041. - # +Z the default
  9042. - ;;
  9043. - *)
  9044. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9045. - ;;
  9046. - esac
  9047. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9048. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9049. - ;;
  9050. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  9051. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9052. - irix5* | irix6* | nonstopux*)
  9053. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9054. - # PIC (with -KPIC) is the default.
  9055. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9056. - ;;
  9057. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9058. - newsos6)
  9059. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9060. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9061. - ;;
  9062. +if test -n "$compiler"; then
  9063. + _LT_COMPILER_NO_RTTI($1)
  9064. + _LT_COMPILER_PIC($1)
  9065. + _LT_COMPILER_C_O($1)
  9066. + _LT_COMPILER_FILE_LOCKS($1)
  9067. + _LT_LINKER_SHLIBS($1)
  9068. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9069. - linux* | k*bsd*-gnu)
  9070. - case $cc_basename in
  9071. - icc* | ecc*)
  9072. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9073. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9074. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9075. - ;;
  9076. - pgcc* | pgf77* | pgf90* | pgf95*)
  9077. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9078. - # which looks to be a dead project)
  9079. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9080. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9081. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9082. - ;;
  9083. - ccc*)
  9084. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9085. - # All Alpha code is PIC.
  9086. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9087. - ;;
  9088. - *)
  9089. - case `$CC -V 2>&1 | sed 5q` in
  9090. - *Sun\ C*)
  9091. - # Sun C 5.9
  9092. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9093. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9094. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9095. - ;;
  9096. - *Sun\ F*)
  9097. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9098. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9099. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9100. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9101. - ;;
  9102. - esac
  9103. - ;;
  9104. - esac
  9105. - ;;
  9106. + _LT_CONFIG($1)
  9107. +fi
  9108. - osf3* | osf4* | osf5*)
  9109. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9110. - # All OSF/1 code is PIC.
  9111. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9112. - ;;
  9113. +AC_LANG_RESTORE
  9114. - rdos*)
  9115. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9116. - ;;
  9117. +GCC=$lt_save_GCC
  9118. +CC="$lt_save_CC"
  9119. +])# _LT_LANG_GCJ_CONFIG
  9120. - solaris*)
  9121. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9122. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9123. - case $cc_basename in
  9124. - f77* | f90* | f95*)
  9125. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9126. - *)
  9127. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9128. - esac
  9129. - ;;
  9130. - sunos4*)
  9131. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9132. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9133. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9134. - ;;
  9135. +# _LT_LANG_RC_CONFIG([TAG])
  9136. +# -------------------------
  9137. +# Ensure that the configuration variables for the Windows resource compiler
  9138. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9139. +# to write the compiler configuration to `libtool'.
  9140. +m4_defun([_LT_LANG_RC_CONFIG],
  9141. +[AC_REQUIRE([LT_PROG_RC])dnl
  9142. +AC_LANG_SAVE
  9143. - sysv4 | sysv4.2uw2* | sysv4.3*)
  9144. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9145. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9146. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9147. - ;;
  9148. +# Source file extension for RC test sources.
  9149. +ac_ext=rc
  9150. - sysv4*MP*)
  9151. - if test -d /usr/nec ;then
  9152. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9153. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9154. - fi
  9155. - ;;
  9156. +# Object file extension for compiled RC test sources.
  9157. +objext=o
  9158. +_LT_TAGVAR(objext, $1)=$objext
  9159. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9160. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9161. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9162. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9163. - ;;
  9164. +# Code to be used in simple compile tests
  9165. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9166. +
  9167. +# Code to be used in simple link tests
  9168. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9169. +
  9170. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9171. +_LT_TAG_COMPILER
  9172. +
  9173. +# save warnings/boilerplate of simple test code
  9174. +_LT_COMPILER_BOILERPLATE
  9175. +_LT_LINKER_BOILERPLATE
  9176. +
  9177. +# Allow CC to be a program name with arguments.
  9178. +lt_save_CC="$CC"
  9179. +lt_save_GCC=$GCC
  9180. +GCC=
  9181. +CC=${RC-"windres"}
  9182. +compiler=$CC
  9183. +_LT_TAGVAR(compiler, $1)=$CC
  9184. +_LT_CC_BASENAME([$compiler])
  9185. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9186. +
  9187. +if test -n "$compiler"; then
  9188. + :
  9189. + _LT_CONFIG($1)
  9190. +fi
  9191. +
  9192. +GCC=$lt_save_GCC
  9193. +AC_LANG_RESTORE
  9194. +CC="$lt_save_CC"
  9195. +])# _LT_LANG_RC_CONFIG
  9196. +
  9197. +
  9198. +# LT_PROG_GCJ
  9199. +# -----------
  9200. +AC_DEFUN([LT_PROG_GCJ],
  9201. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9202. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9203. + [AC_CHECK_TOOL(GCJ, gcj,)
  9204. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9205. + AC_SUBST(GCJFLAGS)])])[]dnl
  9206. +])
  9207. +
  9208. +# Old name:
  9209. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9210. +dnl aclocal-1.4 backwards compatibility:
  9211. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9212. +
  9213. +
  9214. +# LT_PROG_RC
  9215. +# ----------
  9216. +AC_DEFUN([LT_PROG_RC],
  9217. +[AC_CHECK_TOOL(RC, windres,)
  9218. +])
  9219. +
  9220. +# Old name:
  9221. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9222. +dnl aclocal-1.4 backwards compatibility:
  9223. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9224. +
  9225. +
  9226. +# _LT_DECL_EGREP
  9227. +# --------------
  9228. +# If we don't have a new enough Autoconf to choose the best grep
  9229. +# available, choose the one first in the user's PATH.
  9230. +m4_defun([_LT_DECL_EGREP],
  9231. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9232. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9233. +test -z "$GREP" && GREP=grep
  9234. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9235. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9236. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9237. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9238. +AC_SUBST([GREP])
  9239. +])
  9240. +
  9241. +
  9242. +# _LT_DECL_OBJDUMP
  9243. +# --------------
  9244. +# If we don't have a new enough Autoconf to choose the best objdump
  9245. +# available, choose the one first in the user's PATH.
  9246. +m4_defun([_LT_DECL_OBJDUMP],
  9247. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9248. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9249. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9250. +AC_SUBST([OBJDUMP])
  9251. +])
  9252. +
  9253. +
  9254. +# _LT_DECL_SED
  9255. +# ------------
  9256. +# Check for a fully-functional sed program, that truncates
  9257. +# as few characters as possible. Prefer GNU sed if found.
  9258. +m4_defun([_LT_DECL_SED],
  9259. +[AC_PROG_SED
  9260. +test -z "$SED" && SED=sed
  9261. +Xsed="$SED -e 1s/^X//"
  9262. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9263. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9264. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9265. +])# _LT_DECL_SED
  9266. +
  9267. +m4_ifndef([AC_PROG_SED], [
  9268. +# NOTE: This macro has been submitted for inclusion into #
  9269. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9270. +# a released version of Autoconf we should remove this #
  9271. +# macro and use it instead. #
  9272. +
  9273. +m4_defun([AC_PROG_SED],
  9274. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9275. +AC_CACHE_VAL(lt_cv_path_SED,
  9276. +[# Loop through the user's path and test for sed and gsed.
  9277. +# Then use that list of sed's as ones to test for truncation.
  9278. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9279. +for as_dir in $PATH
  9280. +do
  9281. + IFS=$as_save_IFS
  9282. + test -z "$as_dir" && as_dir=.
  9283. + for lt_ac_prog in sed gsed; do
  9284. + for ac_exec_ext in '' $ac_executable_extensions; do
  9285. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9286. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9287. + fi
  9288. + done
  9289. + done
  9290. +done
  9291. +IFS=$as_save_IFS
  9292. +lt_ac_max=0
  9293. +lt_ac_count=0
  9294. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9295. +# along with /bin/sed that truncates output.
  9296. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9297. + test ! -f $lt_ac_sed && continue
  9298. + cat /dev/null > conftest.in
  9299. + lt_ac_count=0
  9300. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9301. + # Check for GNU sed and select it if it is found.
  9302. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9303. + lt_cv_path_SED=$lt_ac_sed
  9304. + break
  9305. + fi
  9306. + while true; do
  9307. + cat conftest.in conftest.in >conftest.tmp
  9308. + mv conftest.tmp conftest.in
  9309. + cp conftest.in conftest.nl
  9310. + echo >>conftest.nl
  9311. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9312. + cmp -s conftest.out conftest.nl || break
  9313. + # 10000 chars as input seems more than enough
  9314. + test $lt_ac_count -gt 10 && break
  9315. + lt_ac_count=`expr $lt_ac_count + 1`
  9316. + if test $lt_ac_count -gt $lt_ac_max; then
  9317. + lt_ac_max=$lt_ac_count
  9318. + lt_cv_path_SED=$lt_ac_sed
  9319. + fi
  9320. + done
  9321. +done
  9322. +])
  9323. +SED=$lt_cv_path_SED
  9324. +AC_SUBST([SED])
  9325. +AC_MSG_RESULT([$SED])
  9326. +])#AC_PROG_SED
  9327. +])#m4_ifndef
  9328. - unicos*)
  9329. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9330. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9331. - ;;
  9332. +# Old name:
  9333. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9334. +dnl aclocal-1.4 backwards compatibility:
  9335. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9336. - uts4*)
  9337. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9338. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9339. - ;;
  9340. - *)
  9341. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9342. - ;;
  9343. - esac
  9344. - fi
  9345. -])
  9346. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9347. +# _LT_CHECK_SHELL_FEATURES
  9348. +# ------------------------
  9349. +# Find out whether the shell is Bourne or XSI compatible,
  9350. +# or has some other useful features.
  9351. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9352. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9353. +# Try some XSI features
  9354. +xsi_shell=no
  9355. +( _lt_dummy="a/b/c"
  9356. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9357. + = c,a/b,, \
  9358. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9359. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9360. + && xsi_shell=yes
  9361. +AC_MSG_RESULT([$xsi_shell])
  9362. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9363. +
  9364. +AC_MSG_CHECKING([whether the shell understands "+="])
  9365. +lt_shell_append=no
  9366. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9367. + >/dev/null 2>&1 \
  9368. + && lt_shell_append=yes
  9369. +AC_MSG_RESULT([$lt_shell_append])
  9370. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9371. -#
  9372. -# Check to make sure the PIC flag actually works.
  9373. -#
  9374. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9375. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9376. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  9377. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9378. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9379. - "" | " "*) ;;
  9380. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9381. - esac],
  9382. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9383. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9384. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9385. + lt_unset=unset
  9386. +else
  9387. + lt_unset=false
  9388. fi
  9389. -case $host_os in
  9390. - # For platforms which do not support PIC, -DPIC is meaningless:
  9391. - *djgpp*)
  9392. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9393. - ;;
  9394. - *)
  9395. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9396. - ;;
  9397. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9398. +
  9399. +# test EBCDIC or ASCII
  9400. +case `echo X|tr X '\101'` in
  9401. + A) # ASCII based system
  9402. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9403. + lt_SP2NL='tr \040 \012'
  9404. + lt_NL2SP='tr \015\012 \040\040'
  9405. + ;;
  9406. + *) # EBCDIC based system
  9407. + lt_SP2NL='tr \100 \n'
  9408. + lt_NL2SP='tr \r\n \100\100'
  9409. + ;;
  9410. esac
  9411. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9412. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9413. +])# _LT_CHECK_SHELL_FEATURES
  9414. +
  9415. +
  9416. +# _LT_PROG_XSI_SHELLFNS
  9417. +# ---------------------
  9418. +# Bourne and XSI compatible variants of some useful shell functions.
  9419. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9420. +[case $xsi_shell in
  9421. + yes)
  9422. + cat << \_LT_EOF >> "$cfgfile"
  9423. +
  9424. +# func_dirname file append nondir_replacement
  9425. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9426. +# otherwise set result to NONDIR_REPLACEMENT.
  9427. +func_dirname ()
  9428. +{
  9429. + case ${1} in
  9430. + */*) func_dirname_result="${1%/*}${2}" ;;
  9431. + * ) func_dirname_result="${3}" ;;
  9432. + esac
  9433. +}
  9434. -#
  9435. -# Check to make sure the static flag actually works.
  9436. -#
  9437. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9438. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9439. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  9440. - $lt_tmp_static_flag,
  9441. - [],
  9442. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9443. -])
  9444. +# func_basename file
  9445. +func_basename ()
  9446. +{
  9447. + func_basename_result="${1##*/}"
  9448. +}
  9449. +# func_dirname_and_basename file append nondir_replacement
  9450. +# perform func_basename and func_dirname in a single function
  9451. +# call:
  9452. +# dirname: Compute the dirname of FILE. If nonempty,
  9453. +# add APPEND to the result, otherwise set result
  9454. +# to NONDIR_REPLACEMENT.
  9455. +# value returned in "$func_dirname_result"
  9456. +# basename: Compute filename of FILE.
  9457. +# value retuned in "$func_basename_result"
  9458. +# Implementation must be kept synchronized with func_dirname
  9459. +# and func_basename. For efficiency, we do not delegate to
  9460. +# those functions but instead duplicate the functionality here.
  9461. +func_dirname_and_basename ()
  9462. +{
  9463. + case ${1} in
  9464. + */*) func_dirname_result="${1%/*}${2}" ;;
  9465. + * ) func_dirname_result="${3}" ;;
  9466. + esac
  9467. + func_basename_result="${1##*/}"
  9468. +}
  9469. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9470. -# ------------------------------------
  9471. -# See if the linker supports building shared libraries.
  9472. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9473. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9474. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9475. -ifelse([$1],[CXX],[
  9476. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9477. - case $host_os in
  9478. - aix4* | aix5*)
  9479. - # If we're using GNU nm, then we don't want the "-C" option.
  9480. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9481. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9482. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9483. - else
  9484. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9485. - fi
  9486. - ;;
  9487. - pw32*)
  9488. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9489. - ;;
  9490. - cygwin* | mingw*)
  9491. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9492. - ;;
  9493. - *)
  9494. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9495. - ;;
  9496. +# func_stripname prefix suffix name
  9497. +# strip PREFIX and SUFFIX off of NAME.
  9498. +# PREFIX and SUFFIX must not contain globbing or regex special
  9499. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9500. +# dot (in which case that matches only a dot).
  9501. +func_stripname ()
  9502. +{
  9503. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9504. + # positional parameters, so assign one to ordinary parameter first.
  9505. + func_stripname_result=${3}
  9506. + func_stripname_result=${func_stripname_result#"${1}"}
  9507. + func_stripname_result=${func_stripname_result%"${2}"}
  9508. +}
  9509. +
  9510. +# func_opt_split
  9511. +func_opt_split ()
  9512. +{
  9513. + func_opt_split_opt=${1%%=*}
  9514. + func_opt_split_arg=${1#*=}
  9515. +}
  9516. +
  9517. +# func_lo2o object
  9518. +func_lo2o ()
  9519. +{
  9520. + case ${1} in
  9521. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9522. + *) func_lo2o_result=${1} ;;
  9523. esac
  9524. -],[
  9525. - runpath_var=
  9526. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9527. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9528. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9529. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9530. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9531. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9532. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9533. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9534. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9535. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9536. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9537. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9538. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9539. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9540. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9541. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9542. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9543. - _LT_AC_TAGVAR(module_cmds, $1)=
  9544. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9545. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9546. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9547. - # include_expsyms should be a list of space-separated symbols to be *always*
  9548. - # included in the symbol list
  9549. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9550. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9551. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9552. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9553. - # as well as any symbol that contains `d'.
  9554. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  9555. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9556. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9557. - # the symbol is explicitly referenced. Since portable code cannot
  9558. - # rely on this symbol name, it's probably fine to never include it in
  9559. - # preloaded symbol tables.
  9560. - extract_expsyms_cmds=
  9561. - # Just being paranoid about ensuring that cc_basename is set.
  9562. - _LT_CC_BASENAME([$compiler])
  9563. - case $host_os in
  9564. - cygwin* | mingw* | pw32*)
  9565. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9566. - # When not using gcc, we currently assume that we are using
  9567. - # Microsoft Visual C++.
  9568. - if test "$GCC" != yes; then
  9569. - with_gnu_ld=no
  9570. - fi
  9571. - ;;
  9572. - interix*)
  9573. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9574. - with_gnu_ld=yes
  9575. - ;;
  9576. - openbsd*)
  9577. - with_gnu_ld=no
  9578. +}
  9579. +
  9580. +# func_xform libobj-or-source
  9581. +func_xform ()
  9582. +{
  9583. + func_xform_result=${1%.*}.lo
  9584. +}
  9585. +
  9586. +# func_arith arithmetic-term...
  9587. +func_arith ()
  9588. +{
  9589. + func_arith_result=$(( $[*] ))
  9590. +}
  9591. +
  9592. +# func_len string
  9593. +# STRING may not start with a hyphen.
  9594. +func_len ()
  9595. +{
  9596. + func_len_result=${#1}
  9597. +}
  9598. +
  9599. +_LT_EOF
  9600. ;;
  9601. - esac
  9602. + *) # Bourne compatible functions.
  9603. + cat << \_LT_EOF >> "$cfgfile"
  9604. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9605. - if test "$with_gnu_ld" = yes; then
  9606. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9607. - wlarc='${wl}'
  9608. +# func_dirname file append nondir_replacement
  9609. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9610. +# otherwise set result to NONDIR_REPLACEMENT.
  9611. +func_dirname ()
  9612. +{
  9613. + # Extract subdirectory from the argument.
  9614. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9615. + if test "X$func_dirname_result" = "X${1}"; then
  9616. + func_dirname_result="${3}"
  9617. + else
  9618. + func_dirname_result="$func_dirname_result${2}"
  9619. + fi
  9620. +}
  9621. - # Set some defaults for GNU ld with shared library support. These
  9622. - # are reset later if shared libraries are not supported. Putting them
  9623. - # here allows them to be overridden if necessary.
  9624. - runpath_var=LD_RUN_PATH
  9625. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9626. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9627. - # ancient GNU ld didn't support --whole-archive et. al.
  9628. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9629. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9630. - else
  9631. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9632. - fi
  9633. - supports_anon_versioning=no
  9634. - case `$LD -v 2>/dev/null` in
  9635. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9636. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9637. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9638. - *\ 2.11.*) ;; # other 2.11 versions
  9639. - *) supports_anon_versioning=yes ;;
  9640. - esac
  9641. +# func_basename file
  9642. +func_basename ()
  9643. +{
  9644. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9645. +}
  9646. - # See if GNU ld supports shared libraries.
  9647. - case $host_os in
  9648. - aix3* | aix4* | aix5*)
  9649. - # On AIX/PPC, the GNU linker is very broken
  9650. - if test "$host_cpu" != ia64; then
  9651. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9652. - cat <<EOF 1>&2
  9653. +dnl func_dirname_and_basename
  9654. +dnl A portable version of this function is already defined in general.m4sh
  9655. +dnl so there is no need for it here.
  9656. +
  9657. +# func_stripname prefix suffix name
  9658. +# strip PREFIX and SUFFIX off of NAME.
  9659. +# PREFIX and SUFFIX must not contain globbing or regex special
  9660. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9661. +# dot (in which case that matches only a dot).
  9662. +# func_strip_suffix prefix name
  9663. +func_stripname ()
  9664. +{
  9665. + case ${2} in
  9666. + .*) func_stripname_result=`$ECHO "X${3}" \
  9667. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9668. + *) func_stripname_result=`$ECHO "X${3}" \
  9669. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9670. + esac
  9671. +}
  9672. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9673. -*** to be unable to reliably create shared libraries on AIX.
  9674. -*** Therefore, libtool is disabling shared libraries support. If you
  9675. -*** really care for shared libraries, you may want to modify your PATH
  9676. -*** so that a non-GNU linker is found, and then restart.
  9677. +# sed scripts:
  9678. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9679. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9680. -EOF
  9681. - fi
  9682. - ;;
  9683. +# func_opt_split
  9684. +func_opt_split ()
  9685. +{
  9686. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9687. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9688. +}
  9689. - amigaos*)
  9690. - _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  9691. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9692. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9693. -
  9694. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9695. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9696. - # to version 4, is to share data among multiple programs linked
  9697. - # with the same dynamic library. Since this doesn't match the
  9698. - # behavior of shared libraries on other platforms, we can't use
  9699. - # them.
  9700. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9701. - ;;
  9702. +# func_lo2o object
  9703. +func_lo2o ()
  9704. +{
  9705. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9706. +}
  9707. - beos*)
  9708. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9709. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9710. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9711. - # support --undefined. This deserves some investigation. FIXME
  9712. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9713. - else
  9714. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9715. - fi
  9716. - ;;
  9717. +# func_xform libobj-or-source
  9718. +func_xform ()
  9719. +{
  9720. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9721. +}
  9722. - cygwin* | mingw* | pw32*)
  9723. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9724. - # as there is no search path for DLLs.
  9725. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9726. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9727. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9728. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9729. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9730. +# func_arith arithmetic-term...
  9731. +func_arith ()
  9732. +{
  9733. + func_arith_result=`expr "$[@]"`
  9734. +}
  9735. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9737. - # If the export-symbols file already is a .def file (1st line
  9738. - # is EXPORTS), use it as is; otherwise, prepend...
  9739. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9740. - cp $export_symbols $output_objdir/$soname.def;
  9741. - else
  9742. - echo EXPORTS > $output_objdir/$soname.def;
  9743. - cat $export_symbols >> $output_objdir/$soname.def;
  9744. - fi~
  9745. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9746. - else
  9747. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9748. - fi
  9749. - ;;
  9750. +# func_len string
  9751. +# STRING may not start with a hyphen.
  9752. +func_len ()
  9753. +{
  9754. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9755. +}
  9756. - interix[[3-9]]*)
  9757. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9758. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9759. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9760. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9761. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9762. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9763. - # default) and relocated if they conflict, which is a slow very memory
  9764. - # consuming and fragmenting process. To avoid this, we pick a random,
  9765. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9766. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9767. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9768. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9769. - ;;
  9770. +_LT_EOF
  9771. +esac
  9772. - gnu* | linux* | k*bsd*-gnu)
  9773. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9774. - tmp_addflag=
  9775. - case $cc_basename,$host_cpu in
  9776. - pgcc*) # Portland Group C compiler
  9777. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9778. - tmp_addflag=' $pic_flag'
  9779. - ;;
  9780. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9781. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9782. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9783. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9784. - tmp_addflag=' -i_dynamic' ;;
  9785. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9786. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9787. - ifc* | ifort*) # Intel Fortran compiler
  9788. - tmp_addflag=' -nofor_main' ;;
  9789. - esac
  9790. - case `$CC -V 2>&1 | sed 5q` in
  9791. - *Sun\ C*) # Sun C 5.9
  9792. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9793. - tmp_sharedflag='-G' ;;
  9794. - *Sun\ F*) # Sun Fortran 8.3
  9795. - tmp_sharedflag='-G' ;;
  9796. - *)
  9797. - tmp_sharedflag='-shared' ;;
  9798. - esac
  9799. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9800. +case $lt_shell_append in
  9801. + yes)
  9802. + cat << \_LT_EOF >> "$cfgfile"
  9803. +
  9804. +# func_append var value
  9805. +# Append VALUE to the end of shell variable VAR.
  9806. +func_append ()
  9807. +{
  9808. + eval "$[1]+=\$[2]"
  9809. +}
  9810. +_LT_EOF
  9811. + ;;
  9812. + *)
  9813. + cat << \_LT_EOF >> "$cfgfile"
  9814. - if test $supports_anon_versioning = yes; then
  9815. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9816. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9817. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9818. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9819. - fi
  9820. - else
  9821. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9822. - fi
  9823. - ;;
  9824. +# func_append var value
  9825. +# Append VALUE to the end of shell variable VAR.
  9826. +func_append ()
  9827. +{
  9828. + eval "$[1]=\$$[1]\$[2]"
  9829. +}
  9830. - netbsd*)
  9831. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9832. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9833. - wlarc=
  9834. - else
  9835. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9836. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9837. - fi
  9838. - ;;
  9839. +_LT_EOF
  9840. + ;;
  9841. + esac
  9842. +])
  9843. - solaris*)
  9844. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9845. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9846. - cat <<EOF 1>&2
  9847. +# Helper functions for option handling. -*- Autoconf -*-
  9848. +#
  9849. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9850. +# Written by Gary V. Vaughan, 2004
  9851. +#
  9852. +# This file is free software; the Free Software Foundation gives
  9853. +# unlimited permission to copy and/or distribute it, with or without
  9854. +# modifications, as long as this notice is preserved.
  9855. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9856. -*** create shared libraries on Solaris systems. Therefore, libtool
  9857. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9858. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9859. -*** your PATH or compiler configuration so that the native linker is
  9860. -*** used, and then restart.
  9861. +# serial 6 ltoptions.m4
  9862. -EOF
  9863. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9864. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9865. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9866. - else
  9867. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9868. - fi
  9869. - ;;
  9870. +# This is to help aclocal find these macros, as it can't see m4_define.
  9871. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9872. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9873. - case `$LD -v 2>&1` in
  9874. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9875. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9876. - cat <<_LT_EOF 1>&2
  9877. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9878. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9879. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9880. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9881. -*** your PATH or compiler configuration so that the native linker is
  9882. -*** used, and then restart.
  9883. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9884. +# ------------------------------------------
  9885. +m4_define([_LT_MANGLE_OPTION],
  9886. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9887. -_LT_EOF
  9888. - ;;
  9889. - *)
  9890. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9891. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9892. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9893. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  9894. - else
  9895. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9896. - fi
  9897. - ;;
  9898. - esac
  9899. - ;;
  9900. - sunos4*)
  9901. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9902. - wlarc=
  9903. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9904. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9905. - ;;
  9906. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9907. +# ---------------------------------------
  9908. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9909. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9910. +# saved as a flag.
  9911. +m4_define([_LT_SET_OPTION],
  9912. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9913. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9914. + _LT_MANGLE_DEFUN([$1], [$2]),
  9915. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9916. +])
  9917. +
  9918. - *)
  9919. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9920. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9921. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9922. - else
  9923. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9924. - fi
  9925. - ;;
  9926. - esac
  9927. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9928. +# ------------------------------------------------------------
  9929. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9930. +m4_define([_LT_IF_OPTION],
  9931. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9932. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9933. - runpath_var=
  9934. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9935. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9936. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9937. - fi
  9938. - else
  9939. - # PORTME fill in a description of your system's linker (not GNU ld)
  9940. - case $host_os in
  9941. - aix3*)
  9942. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9943. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9944. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9945. - # Note: this linker hardcodes the directories in LIBPATH if there
  9946. - # are no directories specified by -L.
  9947. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9948. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9949. - # Neither direct hardcoding nor static linking is supported with a
  9950. - # broken collect2.
  9951. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9952. - fi
  9953. - ;;
  9954. - aix4* | aix5*)
  9955. - if test "$host_cpu" = ia64; then
  9956. - # On IA64, the linker does run time linking by default, so we don't
  9957. - # have to do anything special.
  9958. - aix_use_runtimelinking=no
  9959. - exp_sym_flag='-Bexport'
  9960. - no_entry_flag=""
  9961. - else
  9962. - # If we're using GNU nm, then we don't want the "-C" option.
  9963. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9964. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9965. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9966. - else
  9967. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9968. - fi
  9969. - aix_use_runtimelinking=no
  9970. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9971. +# -------------------------------------------------------
  9972. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9973. +# are set.
  9974. +m4_define([_LT_UNLESS_OPTIONS],
  9975. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9976. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9977. + [m4_define([$0_found])])])[]dnl
  9978. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9979. +])[]dnl
  9980. +])
  9981. - # Test if we are trying to use run time linking or normal
  9982. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9983. - # need to do runtime linking.
  9984. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  9985. - for ld_flag in $LDFLAGS; do
  9986. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9987. - aix_use_runtimelinking=yes
  9988. - break
  9989. - fi
  9990. - done
  9991. - ;;
  9992. - esac
  9993. - exp_sym_flag='-bexport'
  9994. - no_entry_flag='-bnoentry'
  9995. - fi
  9996. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9997. +# ----------------------------------------
  9998. +# OPTION-LIST is a space-separated list of Libtool options associated
  9999. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  10000. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  10001. +# the unknown option and exit.
  10002. +m4_defun([_LT_SET_OPTIONS],
  10003. +[# Set options
  10004. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10005. + [_LT_SET_OPTION([$1], _LT_Option)])
  10006. +
  10007. +m4_if([$1],[LT_INIT],[
  10008. + dnl
  10009. + dnl Simply set some default values (i.e off) if boolean options were not
  10010. + dnl specified:
  10011. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  10012. + ])
  10013. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  10014. + ])
  10015. + dnl
  10016. + dnl If no reference was made to various pairs of opposing options, then
  10017. + dnl we run the default mode handler for the pair. For example, if neither
  10018. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10019. + dnl archives by default:
  10020. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10021. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10022. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10023. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10024. + [_LT_ENABLE_FAST_INSTALL])
  10025. + ])
  10026. +])# _LT_SET_OPTIONS
  10027. - # When large executables or shared objects are built, AIX ld can
  10028. - # have problems creating the table of contents. If linking a library
  10029. - # or program results in "error TOC overflow" add -mminimal-toc to
  10030. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10031. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10032. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  10033. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10034. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10035. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10036. - if test "$GCC" = yes; then
  10037. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  10038. - # We only want to do this on AIX 4.2 and lower, the check
  10039. - # below for broken collect2 doesn't work under 4.3+
  10040. - collect2name=`${CC} -print-prog-name=collect2`
  10041. - if test -f "$collect2name" && \
  10042. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10043. - then
  10044. - # We have reworked collect2
  10045. - :
  10046. - else
  10047. - # We have old collect2
  10048. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10049. - # It fails to find uninstalled libraries when the uninstalled
  10050. - # path is not listed in the libpath. Setting hardcode_minus_L
  10051. - # to unsupported forces relinking
  10052. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10053. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10054. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10055. - fi
  10056. - ;;
  10057. - esac
  10058. - shared_flag='-shared'
  10059. - if test "$aix_use_runtimelinking" = yes; then
  10060. - shared_flag="$shared_flag "'${wl}-G'
  10061. - fi
  10062. - else
  10063. - # not using gcc
  10064. - if test "$host_cpu" = ia64; then
  10065. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10066. - # chokes on -Wl,-G. The following line is correct:
  10067. - shared_flag='-G'
  10068. - else
  10069. - if test "$aix_use_runtimelinking" = yes; then
  10070. - shared_flag='${wl}-G'
  10071. - else
  10072. - shared_flag='${wl}-bM:SRE'
  10073. - fi
  10074. - fi
  10075. - fi
  10076. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10077. +# -----------------------------------------
  10078. +m4_define([_LT_MANGLE_DEFUN],
  10079. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10080. - # It seems that -bexpall does not export symbols beginning with
  10081. - # underscore (_), so it is better to generate a list of symbols to export.
  10082. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10083. - if test "$aix_use_runtimelinking" = yes; then
  10084. - # Warning - without using the other runtime loading flags (-brtl),
  10085. - # -berok will link without error, but may produce a broken library.
  10086. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10087. - # Determine the default libpath from the value encoded in an empty executable.
  10088. - _LT_AC_SYS_LIBPATH_AIX
  10089. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10090. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10091. - else
  10092. - if test "$host_cpu" = ia64; then
  10093. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10094. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10095. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10096. - else
  10097. - # Determine the default libpath from the value encoded in an empty executable.
  10098. - _LT_AC_SYS_LIBPATH_AIX
  10099. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10100. - # Warning - without using the other run time loading flags,
  10101. - # -berok will link without error, but may produce a broken library.
  10102. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10103. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10104. - # Exported symbols can be pulled into shared objects from archives
  10105. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10106. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10107. - # This is similar to how AIX traditionally builds its shared libraries.
  10108. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10109. - fi
  10110. - fi
  10111. - ;;
  10112. - amigaos*)
  10113. - _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  10114. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10115. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10116. - # see comment about different semantics on the GNU ld section
  10117. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10118. - ;;
  10119. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10120. +# -----------------------------------------------
  10121. +m4_define([LT_OPTION_DEFINE],
  10122. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10123. +])# LT_OPTION_DEFINE
  10124. - bsdi[[45]]*)
  10125. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10126. - ;;
  10127. - cygwin* | mingw* | pw32*)
  10128. - # When not using gcc, we currently assume that we are using
  10129. - # Microsoft Visual C++.
  10130. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10131. - # no search path for DLLs.
  10132. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10133. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10134. - # Tell ltmain to make .lib files, not .a files.
  10135. - libext=lib
  10136. - # Tell ltmain to make .dll files, not .so files.
  10137. - shrext_cmds=".dll"
  10138. - # FIXME: Setting linknames here is a bad hack.
  10139. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10140. - # The linker will automatically build a .lib file if we build a DLL.
  10141. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10142. - # FIXME: Should let the user specify the lib program.
  10143. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10144. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10145. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10146. - ;;
  10147. +# dlopen
  10148. +# ------
  10149. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10150. +])
  10151. - darwin* | rhapsody*)
  10152. - case $host_os in
  10153. - rhapsody* | darwin1.[[012]])
  10154. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10155. - ;;
  10156. - *) # Darwin 1.3 on
  10157. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10158. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10159. - else
  10160. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10161. - 10.[[012]])
  10162. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10163. - ;;
  10164. - 10.*)
  10165. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10166. - ;;
  10167. - esac
  10168. - fi
  10169. - ;;
  10170. - esac
  10171. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10172. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10173. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10174. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10175. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10176. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10177. - if test "$GCC" = yes ; then
  10178. - output_verbose_link_cmd='echo'
  10179. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10180. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10181. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10182. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10183. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10184. - else
  10185. - case $cc_basename in
  10186. - xlc*)
  10187. - output_verbose_link_cmd='echo'
  10188. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10189. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10190. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10191. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10192. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10193. - ;;
  10194. - *)
  10195. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10196. - ;;
  10197. - esac
  10198. - fi
  10199. - ;;
  10200. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10201. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10202. +AC_DIAGNOSE([obsolete],
  10203. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10204. +put the `dlopen' option into LT_INIT's first parameter.])
  10205. +])
  10206. - dgux*)
  10207. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10208. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10209. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10210. - ;;
  10211. +dnl aclocal-1.4 backwards compatibility:
  10212. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10213. - freebsd1*)
  10214. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10215. - ;;
  10216. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10217. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10218. - # does not break anything, and helps significantly (at the cost of a little
  10219. - # extra space).
  10220. - freebsd2.2*)
  10221. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10222. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10223. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10224. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10225. - ;;
  10226. +# win32-dll
  10227. +# ---------
  10228. +# Declare package support for building win32 dll's.
  10229. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10230. +[enable_win32_dll=yes
  10231. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10232. - freebsd2*)
  10233. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10234. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10235. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10236. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10237. - ;;
  10238. +case $host in
  10239. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10240. + AC_CHECK_TOOL(AS, as, false)
  10241. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10242. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10243. + ;;
  10244. +esac
  10245. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10246. - freebsd* | dragonfly*)
  10247. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10248. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10249. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10250. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10251. - ;;
  10252. +test -z "$AS" && AS=as
  10253. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10254. - hpux9*)
  10255. - if test "$GCC" = yes; then
  10256. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10257. - else
  10258. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10259. - fi
  10260. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10261. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10262. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10263. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10264. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10265. - # hardcode_minus_L: Not really in the search PATH,
  10266. - # but as the default location of the library.
  10267. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10268. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10269. - ;;
  10270. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10271. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10272. +])# win32-dll
  10273. - hpux10*)
  10274. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10275. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10276. - else
  10277. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10278. - fi
  10279. - if test "$with_gnu_ld" = no; then
  10280. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10281. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10282. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10283. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10284. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10285. +AC_DIAGNOSE([obsolete],
  10286. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10287. +put the `win32-dll' option into LT_INIT's first parameter.])
  10288. +])
  10289. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10290. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10291. +dnl aclocal-1.4 backwards compatibility:
  10292. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10293. - # hardcode_minus_L: Not really in the search PATH,
  10294. - # but as the default location of the library.
  10295. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10296. - fi
  10297. +
  10298. +# _LT_ENABLE_SHARED([DEFAULT])
  10299. +# ----------------------------
  10300. +# implement the --enable-shared flag, and supports the `shared' and
  10301. +# `disable-shared' LT_INIT options.
  10302. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10303. +m4_define([_LT_ENABLE_SHARED],
  10304. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10305. +AC_ARG_ENABLE([shared],
  10306. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10307. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10308. + [p=${PACKAGE-default}
  10309. + case $enableval in
  10310. + yes) enable_shared=yes ;;
  10311. + no) enable_shared=no ;;
  10312. + *)
  10313. + enable_shared=no
  10314. + # Look at the argument we got. We use all the common list separators.
  10315. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10316. + for pkg in $enableval; do
  10317. + IFS="$lt_save_ifs"
  10318. + if test "X$pkg" = "X$p"; then
  10319. + enable_shared=yes
  10320. + fi
  10321. + done
  10322. + IFS="$lt_save_ifs"
  10323. ;;
  10324. + esac],
  10325. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10326. - hpux11*)
  10327. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10328. - case $host_cpu in
  10329. - hppa*64*)
  10330. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10331. - ;;
  10332. - ia64*)
  10333. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10334. - ;;
  10335. - *)
  10336. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10337. - ;;
  10338. - esac
  10339. - else
  10340. - case $host_cpu in
  10341. - hppa*64*)
  10342. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10343. - ;;
  10344. - ia64*)
  10345. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10346. - ;;
  10347. - *)
  10348. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10349. - ;;
  10350. - esac
  10351. - fi
  10352. - if test "$with_gnu_ld" = no; then
  10353. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10354. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10355. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10356. + [Whether or not to build shared libraries])
  10357. +])# _LT_ENABLE_SHARED
  10358. - case $host_cpu in
  10359. - hppa*64*|ia64*)
  10360. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10361. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10362. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10363. - ;;
  10364. - *)
  10365. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10366. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10367. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10368. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10369. - # hardcode_minus_L: Not really in the search PATH,
  10370. - # but as the default location of the library.
  10371. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10372. - ;;
  10373. - esac
  10374. - fi
  10375. - ;;
  10376. +# Old names:
  10377. +AC_DEFUN([AC_ENABLE_SHARED],
  10378. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10379. +])
  10380. - irix5* | irix6* | nonstopux*)
  10381. - if test "$GCC" = yes; then
  10382. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10383. - else
  10384. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10385. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10386. - fi
  10387. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10388. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10389. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10390. - ;;
  10391. +AC_DEFUN([AC_DISABLE_SHARED],
  10392. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10393. +])
  10394. - netbsd*)
  10395. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10396. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10397. - else
  10398. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10399. - fi
  10400. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10401. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10402. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10403. - ;;
  10404. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10405. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10406. - newsos6)
  10407. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10408. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10409. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10410. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10411. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10412. - ;;
  10413. +dnl aclocal-1.4 backwards compatibility:
  10414. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10415. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10416. - openbsd*)
  10417. - if test -f /usr/libexec/ld.so; then
  10418. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10419. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10420. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10421. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10422. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10423. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10424. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10425. - else
  10426. - case $host_os in
  10427. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10428. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10429. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10430. - ;;
  10431. - *)
  10432. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10433. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10434. - ;;
  10435. - esac
  10436. - fi
  10437. - else
  10438. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10439. - fi
  10440. +
  10441. +
  10442. +# _LT_ENABLE_STATIC([DEFAULT])
  10443. +# ----------------------------
  10444. +# implement the --enable-static flag, and support the `static' and
  10445. +# `disable-static' LT_INIT options.
  10446. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10447. +m4_define([_LT_ENABLE_STATIC],
  10448. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10449. +AC_ARG_ENABLE([static],
  10450. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10451. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10452. + [p=${PACKAGE-default}
  10453. + case $enableval in
  10454. + yes) enable_static=yes ;;
  10455. + no) enable_static=no ;;
  10456. + *)
  10457. + enable_static=no
  10458. + # Look at the argument we got. We use all the common list separators.
  10459. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10460. + for pkg in $enableval; do
  10461. + IFS="$lt_save_ifs"
  10462. + if test "X$pkg" = "X$p"; then
  10463. + enable_static=yes
  10464. + fi
  10465. + done
  10466. + IFS="$lt_save_ifs"
  10467. ;;
  10468. + esac],
  10469. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10470. - os2*)
  10471. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10472. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10473. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10474. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10475. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10476. - ;;
  10477. + _LT_DECL([build_old_libs], [enable_static], [0],
  10478. + [Whether or not to build static libraries])
  10479. +])# _LT_ENABLE_STATIC
  10480. - osf3*)
  10481. - if test "$GCC" = yes; then
  10482. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10483. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10484. - else
  10485. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10486. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10487. - fi
  10488. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10489. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10490. - ;;
  10491. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10492. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10493. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10494. - if test "$GCC" = yes; then
  10495. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10496. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10497. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10498. - else
  10499. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10500. - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  10501. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10502. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  10503. +# Old names:
  10504. +AC_DEFUN([AC_ENABLE_STATIC],
  10505. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10506. +])
  10507. - # Both c and cxx compiler support -rpath directly
  10508. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10509. - fi
  10510. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10511. - ;;
  10512. +AC_DEFUN([AC_DISABLE_STATIC],
  10513. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10514. +])
  10515. - solaris*)
  10516. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10517. - if test "$GCC" = yes; then
  10518. - wlarc='${wl}'
  10519. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10520. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10521. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10522. - else
  10523. - wlarc=''
  10524. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10525. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10526. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10527. - fi
  10528. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10529. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10530. - case $host_os in
  10531. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10532. - *)
  10533. - # The compiler driver will combine and reorder linker options,
  10534. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10535. - # but is careful enough not to reorder.
  10536. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10537. - if test "$GCC" = yes; then
  10538. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10539. - else
  10540. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10541. - fi
  10542. - ;;
  10543. - esac
  10544. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10545. - ;;
  10546. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10547. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10548. - sunos4*)
  10549. - if test "x$host_vendor" = xsequent; then
  10550. - # Use $CC to link under sequent, because it throws in some extra .o
  10551. - # files that make .init and .fini sections work.
  10552. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10553. - else
  10554. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10555. - fi
  10556. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10557. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10558. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10559. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10560. - ;;
  10561. +dnl aclocal-1.4 backwards compatibility:
  10562. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10563. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10564. - sysv4)
  10565. - case $host_vendor in
  10566. - sni)
  10567. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10568. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10569. - ;;
  10570. - siemens)
  10571. - ## LD is ld it makes a PLAMLIB
  10572. - ## CC just makes a GrossModule.
  10573. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10574. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10575. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10576. - ;;
  10577. - motorola)
  10578. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10579. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10580. - ;;
  10581. - esac
  10582. - runpath_var='LD_RUN_PATH'
  10583. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10584. - ;;
  10585. - sysv4.3*)
  10586. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10587. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10588. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10589. - ;;
  10590. - sysv4*MP*)
  10591. - if test -d /usr/nec; then
  10592. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10593. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10594. - runpath_var=LD_RUN_PATH
  10595. - hardcode_runpath_var=yes
  10596. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10597. - fi
  10598. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10599. +# ----------------------------------
  10600. +# implement the --enable-fast-install flag, and support the `fast-install'
  10601. +# and `disable-fast-install' LT_INIT options.
  10602. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10603. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10604. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10605. +AC_ARG_ENABLE([fast-install],
  10606. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10607. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10608. + [p=${PACKAGE-default}
  10609. + case $enableval in
  10610. + yes) enable_fast_install=yes ;;
  10611. + no) enable_fast_install=no ;;
  10612. + *)
  10613. + enable_fast_install=no
  10614. + # Look at the argument we got. We use all the common list separators.
  10615. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10616. + for pkg in $enableval; do
  10617. + IFS="$lt_save_ifs"
  10618. + if test "X$pkg" = "X$p"; then
  10619. + enable_fast_install=yes
  10620. + fi
  10621. + done
  10622. + IFS="$lt_save_ifs"
  10623. ;;
  10624. + esac],
  10625. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10626. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10627. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10628. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10629. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10630. - runpath_var='LD_RUN_PATH'
  10631. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10632. + [Whether or not to optimize for fast installation])dnl
  10633. +])# _LT_ENABLE_FAST_INSTALL
  10634. +
  10635. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10636. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10637. +
  10638. +# Old names:
  10639. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10640. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10641. +AC_DIAGNOSE([obsolete],
  10642. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10643. +the `fast-install' option into LT_INIT's first parameter.])
  10644. +])
  10645. - if test "$GCC" = yes; then
  10646. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10647. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10648. - else
  10649. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10650. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10651. - fi
  10652. - ;;
  10653. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10654. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10655. +AC_DIAGNOSE([obsolete],
  10656. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10657. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10658. +])
  10659. - sysv5* | sco3.2v5* | sco5v6*)
  10660. - # Note: We can NOT use -z defs as we might desire, because we do not
  10661. - # link with -lc, and that would cause any symbols used from libc to
  10662. - # always be unresolved, which means just about no library would
  10663. - # ever link correctly. If we're not using GNU ld we use -z text
  10664. - # though, which does catch some bad symbols but isn't as heavy-handed
  10665. - # as -z defs.
  10666. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10667. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10668. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10669. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10670. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10671. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10672. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10673. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10674. - runpath_var='LD_RUN_PATH'
  10675. +dnl aclocal-1.4 backwards compatibility:
  10676. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10677. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10678. - if test "$GCC" = yes; then
  10679. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10680. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10681. - else
  10682. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10683. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10684. - fi
  10685. - ;;
  10686. - uts4*)
  10687. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10688. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10689. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10690. - ;;
  10691. +# _LT_WITH_PIC([MODE])
  10692. +# --------------------
  10693. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10694. +# LT_INIT options.
  10695. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10696. +m4_define([_LT_WITH_PIC],
  10697. +[AC_ARG_WITH([pic],
  10698. + [AS_HELP_STRING([--with-pic],
  10699. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10700. + [pic_mode="$withval"],
  10701. + [pic_mode=default])
  10702. - *)
  10703. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10704. - ;;
  10705. - esac
  10706. - fi
  10707. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10708. +
  10709. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10710. +])# _LT_WITH_PIC
  10711. +
  10712. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10713. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10714. +
  10715. +# Old name:
  10716. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10717. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10718. +AC_DIAGNOSE([obsolete],
  10719. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10720. +put the `pic-only' option into LT_INIT's first parameter.])
  10721. ])
  10722. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10723. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10724. -#
  10725. -# Do we need to explicitly link libc?
  10726. -#
  10727. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10728. -x|xyes)
  10729. - # Assume -lc should be added
  10730. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10731. +dnl aclocal-1.4 backwards compatibility:
  10732. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10733. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10734. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10735. - *'~'*)
  10736. - # FIXME: we may have to deal with multi-command sequences.
  10737. - ;;
  10738. - '$CC '*)
  10739. - # Test whether the compiler implicitly links with -lc since on some
  10740. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10741. - # to ld, don't add -lc before -lgcc.
  10742. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10743. - $rm conftest*
  10744. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10745. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10746. - soname=conftest
  10747. - lib=conftest
  10748. - libobjs=conftest.$ac_objext
  10749. - deplibs=
  10750. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10751. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10752. - compiler_flags=-v
  10753. - linker_flags=-v
  10754. - verstring=
  10755. - output_objdir=.
  10756. - libname=conftest
  10757. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10758. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10759. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10760. - then
  10761. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10762. - else
  10763. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10764. - fi
  10765. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10766. - else
  10767. - cat conftest.err 1>&5
  10768. - fi
  10769. - $rm conftest*
  10770. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10771. - ;;
  10772. - esac
  10773. - fi
  10774. - ;;
  10775. -esac
  10776. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10777. +m4_define([_LTDL_MODE], [])
  10778. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10779. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10780. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10781. + [m4_define([_LTDL_MODE], [recursive])])
  10782. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10783. + [m4_define([_LTDL_MODE], [subproject])])
  10784. +
  10785. +m4_define([_LTDL_TYPE], [])
  10786. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10787. + [m4_define([_LTDL_TYPE], [installable])])
  10788. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10789. + [m4_define([_LTDL_TYPE], [convenience])])
  10790. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10791. +#
  10792. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10793. +# Written by Gary V. Vaughan, 2004
  10794. +#
  10795. +# This file is free software; the Free Software Foundation gives
  10796. +# unlimited permission to copy and/or distribute it, with or without
  10797. +# modifications, as long as this notice is preserved.
  10798. -# _LT_AC_FILE_LTDLL_C
  10799. -# -------------------
  10800. -# Be careful that the start marker always follows a newline.
  10801. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10802. -# /* ltdll.c starts here */
  10803. -# #define WIN32_LEAN_AND_MEAN
  10804. -# #include <windows.h>
  10805. -# #undef WIN32_LEAN_AND_MEAN
  10806. -# #include <stdio.h>
  10807. -#
  10808. -# #ifndef __CYGWIN__
  10809. -# # ifdef __CYGWIN32__
  10810. -# # define __CYGWIN__ __CYGWIN32__
  10811. -# # endif
  10812. -# #endif
  10813. -#
  10814. -# #ifdef __cplusplus
  10815. -# extern "C" {
  10816. -# #endif
  10817. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10818. -# #ifdef __cplusplus
  10819. -# }
  10820. -# #endif
  10821. -#
  10822. -# #ifdef __CYGWIN__
  10823. -# #include <cygwin/cygwin_dll.h>
  10824. -# DECLARE_CYGWIN_DLL( DllMain );
  10825. -# #endif
  10826. -# HINSTANCE __hDllInstance_base;
  10827. -#
  10828. -# BOOL APIENTRY
  10829. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10830. -# {
  10831. -# __hDllInstance_base = hInst;
  10832. -# return TRUE;
  10833. -# }
  10834. -# /* ltdll.c ends here */
  10835. -])# _LT_AC_FILE_LTDLL_C
  10836. +# serial 6 ltsugar.m4
  10837. +# This is to help aclocal find these macros, as it can't see m4_define.
  10838. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10839. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10840. -# ---------------------------------
  10841. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10842. +# lt_join(SEP, ARG1, [ARG2...])
  10843. +# -----------------------------
  10844. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10845. +# associated separator.
  10846. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10847. +# versions in m4sugar had bugs.
  10848. +m4_define([lt_join],
  10849. +[m4_if([$#], [1], [],
  10850. + [$#], [2], [[$2]],
  10851. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10852. +m4_define([_lt_join],
  10853. +[m4_if([$#$2], [2], [],
  10854. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10855. +
  10856. +
  10857. +# lt_car(LIST)
  10858. +# lt_cdr(LIST)
  10859. +# ------------
  10860. +# Manipulate m4 lists.
  10861. +# These macros are necessary as long as will still need to support
  10862. +# Autoconf-2.59 which quotes differently.
  10863. +m4_define([lt_car], [[$1]])
  10864. +m4_define([lt_cdr],
  10865. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10866. + [$#], 1, [],
  10867. + [m4_dquote(m4_shift($@))])])
  10868. +m4_define([lt_unquote], $1)
  10869. +
  10870. +
  10871. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10872. +# ------------------------------------------
  10873. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10874. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10875. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10876. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10877. +# than defined and empty).
  10878. +#
  10879. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10880. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10881. +m4_define([lt_append],
  10882. +[m4_define([$1],
  10883. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10884. -# old names
  10885. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10886. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10887. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10888. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10889. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10890. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10891. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10892. -# This is just to silence aclocal about the macro not being used
  10893. -ifelse([AC_DISABLE_FAST_INSTALL])
  10894. -AC_DEFUN([LT_AC_PROG_GCJ],
  10895. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10896. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10897. - AC_SUBST(GCJFLAGS)
  10898. -])
  10899. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10900. +# ----------------------------------------------------------
  10901. +# Produce a SEP delimited list of all paired combinations of elements of
  10902. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10903. +# has the form PREFIXmINFIXSUFFIXn.
  10904. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10905. +m4_define([lt_combine],
  10906. +[m4_if(m4_eval([$# > 3]), [1],
  10907. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10908. +[[m4_foreach([_Lt_prefix], [$2],
  10909. + [m4_foreach([_Lt_suffix],
  10910. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10911. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10912. +
  10913. +
  10914. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10915. +# -----------------------------------------------------------------------
  10916. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10917. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10918. +m4_define([lt_if_append_uniq],
  10919. +[m4_ifdef([$1],
  10920. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10921. + [lt_append([$1], [$2], [$3])$4],
  10922. + [$5])],
  10923. + [lt_append([$1], [$2], [$3])$4])])
  10924. -AC_DEFUN([LT_AC_PROG_RC],
  10925. -[AC_CHECK_TOOL(RC, windres, no)
  10926. -])
  10927. +# lt_dict_add(DICT, KEY, VALUE)
  10928. +# -----------------------------
  10929. +m4_define([lt_dict_add],
  10930. +[m4_define([$1($2)], [$3])])
  10931. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10932. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10933. -# _AS_TEST_PREPARE
  10934. -# ----------------
  10935. -m4_ifndef([_AS_TEST_PREPARE],
  10936. -[m4_defun([_AS_TEST_PREPARE],
  10937. -[if test -x / >/dev/null 2>&1; then
  10938. - as_executable_p='test -x'
  10939. -else
  10940. - as_executable_p='test -f'
  10941. -fi
  10942. -])])# _AS_TEST_PREPARE
  10943. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10944. +# --------------------------------------------
  10945. +m4_define([lt_dict_add_subkey],
  10946. +[m4_define([$1($2:$3)], [$4])])
  10947. -# AS_EXECUTABLE_P
  10948. -# ---------------
  10949. -# Check whether a file is executable.
  10950. -m4_ifndef([AS_EXECUTABLE_P],
  10951. -[m4_defun([AS_EXECUTABLE_P],
  10952. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  10953. -$as_executable_p $1[]dnl
  10954. -])])# AS_EXECUTABLE_P
  10955. -# NOTE: This macro has been submitted for inclusion into #
  10956. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  10957. -# a released version of Autoconf we should remove this #
  10958. -# macro and use it instead. #
  10959. -# LT_AC_PROG_SED
  10960. -# --------------
  10961. -# Check for a fully-functional sed program, that truncates
  10962. -# as few characters as possible. Prefer GNU sed if found.
  10963. -AC_DEFUN([LT_AC_PROG_SED],
  10964. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  10965. -AC_CACHE_VAL(lt_cv_path_SED,
  10966. -[# Loop through the user's path and test for sed and gsed.
  10967. -# Then use that list of sed's as ones to test for truncation.
  10968. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10969. -for as_dir in $PATH
  10970. -do
  10971. - IFS=$as_save_IFS
  10972. - test -z "$as_dir" && as_dir=.
  10973. - for lt_ac_prog in sed gsed; do
  10974. - for ac_exec_ext in '' $ac_executable_extensions; do
  10975. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  10976. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10977. - fi
  10978. - done
  10979. - done
  10980. -done
  10981. -IFS=$as_save_IFS
  10982. -lt_ac_max=0
  10983. -lt_ac_count=0
  10984. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  10985. -# along with /bin/sed that truncates output.
  10986. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  10987. - test ! -f $lt_ac_sed && continue
  10988. - cat /dev/null > conftest.in
  10989. - lt_ac_count=0
  10990. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  10991. - # Check for GNU sed and select it if it is found.
  10992. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  10993. - lt_cv_path_SED=$lt_ac_sed
  10994. - break
  10995. - fi
  10996. - while true; do
  10997. - cat conftest.in conftest.in >conftest.tmp
  10998. - mv conftest.tmp conftest.in
  10999. - cp conftest.in conftest.nl
  11000. - echo >>conftest.nl
  11001. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11002. - cmp -s conftest.out conftest.nl || break
  11003. - # 10000 chars as input seems more than enough
  11004. - test $lt_ac_count -gt 10 && break
  11005. - lt_ac_count=`expr $lt_ac_count + 1`
  11006. - if test $lt_ac_count -gt $lt_ac_max; then
  11007. - lt_ac_max=$lt_ac_count
  11008. - lt_cv_path_SED=$lt_ac_sed
  11009. - fi
  11010. - done
  11011. -done
  11012. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  11013. +# ----------------------------------
  11014. +m4_define([lt_dict_fetch],
  11015. +[m4_ifval([$3],
  11016. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  11017. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  11018. +
  11019. +
  11020. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  11021. +# -----------------------------------------------------------------
  11022. +m4_define([lt_if_dict_fetch],
  11023. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  11024. + [$5],
  11025. + [$6])])
  11026. +
  11027. +
  11028. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  11029. +# --------------------------------------------------------------
  11030. +m4_define([lt_dict_filter],
  11031. +[m4_if([$5], [], [],
  11032. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  11033. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  11034. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  11035. ])
  11036. -SED=$lt_cv_path_SED
  11037. -AC_SUBST([SED])
  11038. -AC_MSG_RESULT([$SED])
  11039. +
  11040. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  11041. +#
  11042. +# Copyright (C) 2004 Free Software Foundation, Inc.
  11043. +# Written by Scott James Remnant, 2004
  11044. +#
  11045. +# This file is free software; the Free Software Foundation gives
  11046. +# unlimited permission to copy and/or distribute it, with or without
  11047. +# modifications, as long as this notice is preserved.
  11048. +
  11049. +# Generated from ltversion.in.
  11050. +
  11051. +# serial 3017 ltversion.m4
  11052. +# This file is part of GNU Libtool
  11053. +
  11054. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11055. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11056. +
  11057. +AC_DEFUN([LTVERSION_VERSION],
  11058. +[macro_version='2.2.6b'
  11059. +macro_revision='1.3017'
  11060. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11061. +_LT_DECL(, macro_revision, 0)
  11062. ])
  11063. -# -*- Autoconf -*-
  11064. -# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  11065. -# Generated from amversion.in; do not edit by hand.
  11066. -
  11067. -# This program is free software; you can redistribute it and/or modify
  11068. -# it under the terms of the GNU General Public License as published by
  11069. -# the Free Software Foundation; either version 2, or (at your option)
  11070. -# any later version.
  11071. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11072. +#
  11073. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11074. +# Written by Scott James Remnant, 2004.
  11075. +#
  11076. +# This file is free software; the Free Software Foundation gives
  11077. +# unlimited permission to copy and/or distribute it, with or without
  11078. +# modifications, as long as this notice is preserved.
  11079. -# This program is distributed in the hope that it will be useful,
  11080. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11081. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11082. -# GNU General Public License for more details.
  11083. +# serial 4 lt~obsolete.m4
  11084. -# You should have received a copy of the GNU General Public License along
  11085. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11086. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11087. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11088. +#
  11089. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11090. +# which have later been changed to m4_define as they aren't part of the
  11091. +# exported API, or moved to Autoconf or Automake where they belong.
  11092. +#
  11093. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11094. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11095. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11096. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11097. +# and doesn't know about Autoconf macros at all.)
  11098. +#
  11099. +# So we provide this file, which has a silly filename so it's always
  11100. +# included after everything else. This provides aclocal with the
  11101. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11102. +# because those macros already exist, or will be overwritten later.
  11103. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11104. +#
  11105. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11106. +# Yes, that means every name once taken will need to remain here until
  11107. +# we give up compatibility with versions before 1.7, at which point
  11108. +# we need to keep only those names which we still refer to.
  11109. +
  11110. +# This is to help aclocal find these macros, as it can't see m4_define.
  11111. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11112. +
  11113. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11114. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11115. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11116. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11117. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11118. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11119. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11120. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11121. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11122. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11123. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11124. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11125. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11126. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11127. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11128. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11129. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11130. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11131. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11132. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11133. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11134. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11135. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11136. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11137. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11138. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11139. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11140. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11141. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11142. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11143. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11144. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11145. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11146. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11147. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11148. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11149. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11150. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11151. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11152. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11153. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11154. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11155. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11156. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11157. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11158. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11159. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11160. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11161. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11162. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11163. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11164. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11165. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11166. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11167. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11168. +
  11169. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11170. +#
  11171. +# This file is free software; the Free Software Foundation
  11172. +# gives unlimited permission to copy and/or distribute it,
  11173. +# with or without modifications, as long as this notice is preserved.
  11174. # AM_AUTOMAKE_VERSION(VERSION)
  11175. # ----------------------------
  11176. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  11177. # generated from the m4 files accompanying Automake X.Y.
  11178. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
  11179. -
  11180. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  11181. -# -------------------------------
  11182. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  11183. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11184. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11185. - [AM_AUTOMAKE_VERSION([1.8.4])])
  11186. -
  11187. -# AM_AUX_DIR_EXPAND
  11188. -
  11189. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  11190. +# (This private macro should not be called outside this file.)
  11191. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  11192. +[am__api_version='1.11'
  11193. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11194. +dnl require some minimum version. Point them to the right macro.
  11195. +m4_if([$1], [1.11.1], [],
  11196. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11197. +])
  11198. -# This program is free software; you can redistribute it and/or modify
  11199. -# it under the terms of the GNU General Public License as published by
  11200. -# the Free Software Foundation; either version 2, or (at your option)
  11201. -# any later version.
  11202. +# _AM_AUTOCONF_VERSION(VERSION)
  11203. +# -----------------------------
  11204. +# aclocal traces this macro to find the Autoconf version.
  11205. +# This is a private macro too. Using m4_define simplifies
  11206. +# the logic in aclocal, which can simply ignore this definition.
  11207. +m4_define([_AM_AUTOCONF_VERSION], [])
  11208. -# This program is distributed in the hope that it will be useful,
  11209. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11210. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11211. -# GNU General Public License for more details.
  11212. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  11213. +# -------------------------------
  11214. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11215. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11216. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11217. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11218. +m4_ifndef([AC_AUTOCONF_VERSION],
  11219. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11220. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11221. -# You should have received a copy of the GNU General Public License along
  11222. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11223. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11224. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11225. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11226. +#
  11227. +# This file is free software; the Free Software Foundation
  11228. +# gives unlimited permission to copy and/or distribute it,
  11229. +# with or without modifications, as long as this notice is preserved.
  11230. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  11231. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  11232. @@ -6671,26 +8074,16 @@
  11233. am_aux_dir=`cd $ac_aux_dir && pwd`
  11234. ])
  11235. -# AM_CONDITIONAL -*- Autoconf -*-
  11236. -
  11237. -# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  11238. -
  11239. -# This program is free software; you can redistribute it and/or modify
  11240. -# it under the terms of the GNU General Public License as published by
  11241. -# the Free Software Foundation; either version 2, or (at your option)
  11242. -# any later version.
  11243. -
  11244. -# This program is distributed in the hope that it will be useful,
  11245. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11246. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11247. -# GNU General Public License for more details.
  11248. -
  11249. -# You should have received a copy of the GNU General Public License along
  11250. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11251. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11252. +# AM_CONDITIONAL -*- Autoconf -*-
  11253. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11254. +# Free Software Foundation, Inc.
  11255. +#
  11256. +# This file is free software; the Free Software Foundation
  11257. +# gives unlimited permission to copy and/or distribute it,
  11258. +# with or without modifications, as long as this notice is preserved.
  11259. -# serial 6
  11260. +# serial 9
  11261. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11262. # -------------------------------------
  11263. @@ -6699,8 +8092,11 @@
  11264. [AC_PREREQ(2.52)dnl
  11265. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  11266. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  11267. -AC_SUBST([$1_TRUE])
  11268. -AC_SUBST([$1_FALSE])
  11269. +AC_SUBST([$1_TRUE])dnl
  11270. +AC_SUBST([$1_FALSE])dnl
  11271. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11272. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11273. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11274. if $2; then
  11275. $1_TRUE=
  11276. $1_FALSE='#'
  11277. @@ -6710,57 +8106,35 @@
  11278. fi
  11279. AC_CONFIG_COMMANDS_PRE(
  11280. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  11281. - AC_MSG_ERROR([conditional "$1" was never defined.
  11282. -Usually this means the macro was only invoked conditionally.])
  11283. + AC_MSG_ERROR([[conditional "$1" was never defined.
  11284. +Usually this means the macro was only invoked conditionally.]])
  11285. fi])])
  11286. -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  11287. -
  11288. -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  11289. -
  11290. -# This program is free software; you can redistribute it and/or modify
  11291. -# it under the terms of the GNU General Public License as published by
  11292. -# the Free Software Foundation; either version 2, or (at your option)
  11293. -# any later version.
  11294. -
  11295. -# This program is distributed in the hope that it will be useful,
  11296. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11297. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11298. -# GNU General Public License for more details.
  11299. -
  11300. -# You should have received a copy of the GNU General Public License along
  11301. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11302. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11303. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11304. +# Free Software Foundation, Inc.
  11305. +#
  11306. +# This file is free software; the Free Software Foundation
  11307. +# gives unlimited permission to copy and/or distribute it,
  11308. +# with or without modifications, as long as this notice is preserved.
  11309. -# serial 7
  11310. +# serial 8
  11311. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  11312. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  11313. -# Do all the work for Automake. -*- Autoconf -*-
  11314. -
  11315. -# This macro actually does too much some checks are only needed if
  11316. -# your package does certain things. But this isn't really a big deal.
  11317. -
  11318. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
  11319. -# Free Software Foundation, Inc.
  11320. -
  11321. -# This program is free software; you can redistribute it and/or modify
  11322. -# it under the terms of the GNU General Public License as published by
  11323. -# the Free Software Foundation; either version 2, or (at your option)
  11324. -# any later version.
  11325. -
  11326. -# This program is distributed in the hope that it will be useful,
  11327. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11328. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11329. -# GNU General Public License for more details.
  11330. +# Do all the work for Automake. -*- Autoconf -*-
  11331. -# You should have received a copy of the GNU General Public License along
  11332. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11333. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11334. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11335. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11336. +#
  11337. +# This file is free software; the Free Software Foundation
  11338. +# gives unlimited permission to copy and/or distribute it,
  11339. +# with or without modifications, as long as this notice is preserved.
  11340. +# serial 16
  11341. -# serial 11
  11342. +# This macro actually does too much. Some checks are only needed if
  11343. +# your package does certain things. But this isn't really a big deal.
  11344. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  11345. # AM_INIT_AUTOMAKE([OPTIONS])
  11346. @@ -6774,16 +8148,20 @@
  11347. # arguments mandatory, and then we can depend on a new Autoconf
  11348. # release and drop the old call support.
  11349. AC_DEFUN([AM_INIT_AUTOMAKE],
  11350. -[AC_PREREQ([2.58])dnl
  11351. +[AC_PREREQ([2.62])dnl
  11352. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11353. dnl the ones we care about.
  11354. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11355. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  11356. AC_REQUIRE([AC_PROG_INSTALL])dnl
  11357. -# test to see if srcdir already configured
  11358. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  11359. - test -f $srcdir/config.status; then
  11360. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  11361. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11362. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11363. + # is not polluted with repeated "-I."
  11364. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  11365. + # test to see if srcdir already configured
  11366. + if test -f $srcdir/config.status; then
  11367. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  11368. + fi
  11369. fi
  11370. # test whether we have cygpath
  11371. @@ -6803,6 +8181,9 @@
  11372. AC_SUBST([PACKAGE], [$1])dnl
  11373. AC_SUBST([VERSION], [$2])],
  11374. [_AM_SET_OPTIONS([$1])dnl
  11375. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  11376. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  11377. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  11378. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  11379. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  11380. @@ -6818,28 +8199,46 @@
  11381. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11382. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11383. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11384. -AM_MISSING_PROG(AMTAR, tar)
  11385. -AM_PROG_INSTALL_SH
  11386. -AM_PROG_INSTALL_STRIP
  11387. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11388. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11389. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11390. # We need awk for the "check" target. The system "awk" is bad on
  11391. # some platforms.
  11392. AC_REQUIRE([AC_PROG_AWK])dnl
  11393. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11394. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11395. -
  11396. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11397. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11398. + [_AM_PROG_TAR([v7])])])
  11399. _AM_IF_OPTION([no-dependencies],,
  11400. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11401. - [_AM_DEPENDENCIES(CC)],
  11402. - [define([AC_PROG_CC],
  11403. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11404. + [_AM_DEPENDENCIES(CC)],
  11405. + [define([AC_PROG_CC],
  11406. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11407. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11408. - [_AM_DEPENDENCIES(CXX)],
  11409. - [define([AC_PROG_CXX],
  11410. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11411. + [_AM_DEPENDENCIES(CXX)],
  11412. + [define([AC_PROG_CXX],
  11413. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11414. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11415. + [_AM_DEPENDENCIES(OBJC)],
  11416. + [define([AC_PROG_OBJC],
  11417. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11418. ])
  11419. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11420. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11421. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11422. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11423. +AC_CONFIG_COMMANDS_PRE(dnl
  11424. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11425. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11426. ])
  11427. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11428. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11429. +dnl mangled by Autoconf and run in a shell conditional statement.
  11430. +m4_define([_AC_COMPILER_EXEEXT],
  11431. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11432. +
  11433. # When config.status generates a header, we must update the stamp-h file.
  11434. # This file resides in the same directory as the config header
  11435. @@ -6850,62 +8249,46 @@
  11436. # our stamp files there.
  11437. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  11438. [# Compute $1's index in $config_headers.
  11439. +_am_arg=$1
  11440. _am_stamp_count=1
  11441. for _am_header in $config_headers :; do
  11442. case $_am_header in
  11443. - $1 | $1:* )
  11444. + $_am_arg | $_am_arg:* )
  11445. break ;;
  11446. * )
  11447. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11448. esac
  11449. done
  11450. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  11451. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11452. +
  11453. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11454. +#
  11455. +# This file is free software; the Free Software Foundation
  11456. +# gives unlimited permission to copy and/or distribute it,
  11457. +# with or without modifications, as long as this notice is preserved.
  11458. # AM_PROG_INSTALL_SH
  11459. # ------------------
  11460. # Define $install_sh.
  11461. -
  11462. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  11463. -
  11464. -# This program is free software; you can redistribute it and/or modify
  11465. -# it under the terms of the GNU General Public License as published by
  11466. -# the Free Software Foundation; either version 2, or (at your option)
  11467. -# any later version.
  11468. -
  11469. -# This program is distributed in the hope that it will be useful,
  11470. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11471. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11472. -# GNU General Public License for more details.
  11473. -
  11474. -# You should have received a copy of the GNU General Public License along
  11475. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11476. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11477. -
  11478. -
  11479. AC_DEFUN([AM_PROG_INSTALL_SH],
  11480. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11481. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  11482. +if test x"${install_sh}" != xset; then
  11483. + case $am_aux_dir in
  11484. + *\ * | *\ *)
  11485. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11486. + *)
  11487. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11488. + esac
  11489. +fi
  11490. AC_SUBST(install_sh)])
  11491. -# -*- Autoconf -*-
  11492. -# Copyright (C) 2003 Free Software Foundation, Inc.
  11493. -
  11494. -# This program is free software; you can redistribute it and/or modify
  11495. -# it under the terms of the GNU General Public License as published by
  11496. -# the Free Software Foundation; either version 2, or (at your option)
  11497. -# any later version.
  11498. -
  11499. -# This program is distributed in the hope that it will be useful,
  11500. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11501. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11502. -# GNU General Public License for more details.
  11503. -
  11504. -# You should have received a copy of the GNU General Public License along
  11505. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11506. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11507. -
  11508. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11509. +#
  11510. +# This file is free software; the Free Software Foundation
  11511. +# gives unlimited permission to copy and/or distribute it,
  11512. +# with or without modifications, as long as this notice is preserved.
  11513. -# serial 1
  11514. +# serial 2
  11515. # Check whether the underlying file-system supports filenames
  11516. # with a leading dot. For instance MS-DOS doesn't.
  11517. @@ -6920,26 +8303,14 @@
  11518. rmdir .tst 2>/dev/null
  11519. AC_SUBST([am__leading_dot])])
  11520. -
  11521. -# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
  11522. +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
  11523. # Free Software Foundation, Inc.
  11524. +#
  11525. +# This file is free software; the Free Software Foundation
  11526. +# gives unlimited permission to copy and/or distribute it,
  11527. +# with or without modifications, as long as this notice is preserved.
  11528. -# This program is free software; you can redistribute it and/or modify
  11529. -# it under the terms of the GNU General Public License as published by
  11530. -# the Free Software Foundation; either version 2, or (at your option)
  11531. -# any later version.
  11532. -
  11533. -# This program is distributed in the hope that it will be useful,
  11534. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11535. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11536. -# GNU General Public License for more details.
  11537. -
  11538. -# You should have received a copy of the GNU General Public License along
  11539. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11540. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11541. -
  11542. -
  11543. -# serial 4
  11544. +# serial 5
  11545. # AM_PROG_LEX
  11546. # -----------
  11547. @@ -6953,67 +8324,56 @@
  11548. LEX=${am_missing_run}flex
  11549. fi])
  11550. -# Add --enable-maintainer-mode option to configure.
  11551. +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  11552. # From Jim Meyering
  11553. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
  11554. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11555. # Free Software Foundation, Inc.
  11556. +#
  11557. +# This file is free software; the Free Software Foundation
  11558. +# gives unlimited permission to copy and/or distribute it,
  11559. +# with or without modifications, as long as this notice is preserved.
  11560. -# This program is free software; you can redistribute it and/or modify
  11561. -# it under the terms of the GNU General Public License as published by
  11562. -# the Free Software Foundation; either version 2, or (at your option)
  11563. -# any later version.
  11564. -
  11565. -# This program is distributed in the hope that it will be useful,
  11566. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11567. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11568. -# GNU General Public License for more details.
  11569. -
  11570. -# You should have received a copy of the GNU General Public License along
  11571. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11572. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11573. -
  11574. -
  11575. -# serial 3
  11576. +# serial 5
  11577. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  11578. +# ----------------------------------
  11579. +# Control maintainer-specific portions of Makefiles.
  11580. +# Default is to disable them, unless `enable' is passed literally.
  11581. +# For symmetry, `disable' may be passed as well. Anyway, the user
  11582. +# can override the default with the --enable/--disable switch.
  11583. AC_DEFUN([AM_MAINTAINER_MODE],
  11584. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  11585. - dnl maintainer-mode is disabled by default
  11586. - AC_ARG_ENABLE(maintainer-mode,
  11587. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  11588. +[m4_case(m4_default([$1], [disable]),
  11589. + [enable], [m4_define([am_maintainer_other], [disable])],
  11590. + [disable], [m4_define([am_maintainer_other], [enable])],
  11591. + [m4_define([am_maintainer_other], [enable])
  11592. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  11593. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  11594. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  11595. + AC_ARG_ENABLE([maintainer-mode],
  11596. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  11597. (and sometimes confusing) to the casual installer],
  11598. - USE_MAINTAINER_MODE=$enableval,
  11599. - USE_MAINTAINER_MODE=no)
  11600. + [USE_MAINTAINER_MODE=$enableval],
  11601. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  11602. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  11603. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  11604. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  11605. MAINT=$MAINTAINER_MODE_TRUE
  11606. - AC_SUBST(MAINT)dnl
  11607. + AC_SUBST([MAINT])dnl
  11608. ]
  11609. )
  11610. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  11611. -# -*- Autoconf -*-
  11612. -
  11613. -
  11614. -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  11615. -
  11616. -# This program is free software; you can redistribute it and/or modify
  11617. -# it under the terms of the GNU General Public License as published by
  11618. -# the Free Software Foundation; either version 2, or (at your option)
  11619. -# any later version.
  11620. -
  11621. -# This program is distributed in the hope that it will be useful,
  11622. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11623. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11624. -# GNU General Public License for more details.
  11625. -
  11626. -# You should have received a copy of the GNU General Public License along
  11627. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11628. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11629. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11630. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11631. +# Free Software Foundation, Inc.
  11632. +#
  11633. +# This file is free software; the Free Software Foundation
  11634. +# gives unlimited permission to copy and/or distribute it,
  11635. +# with or without modifications, as long as this notice is preserved.
  11636. -# serial 3
  11637. +# serial 6
  11638. # AM_MISSING_PROG(NAME, PROGRAM)
  11639. # ------------------------------
  11640. @@ -7029,7 +8389,15 @@
  11641. # If it does, set am_missing_run to use it, otherwise, to nothing.
  11642. AC_DEFUN([AM_MISSING_HAS_RUN],
  11643. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11644. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11645. +AC_REQUIRE_AUX_FILE([missing])dnl
  11646. +if test x"${MISSING+set}" != xset; then
  11647. + case $am_aux_dir in
  11648. + *\ * | *\ *)
  11649. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11650. + *)
  11651. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11652. + esac
  11653. +fi
  11654. # Use eval to expand $SHELL
  11655. if eval "$MISSING --run true"; then
  11656. am_missing_run="$MISSING --run "
  11657. @@ -7039,92 +8407,41 @@
  11658. fi
  11659. ])
  11660. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  11661. +#
  11662. +# This file is free software; the Free Software Foundation
  11663. +# gives unlimited permission to copy and/or distribute it,
  11664. +# with or without modifications, as long as this notice is preserved.
  11665. +
  11666. # AM_PROG_MKDIR_P
  11667. # ---------------
  11668. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  11669. -
  11670. -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  11671. -
  11672. -# This program is free software; you can redistribute it and/or modify
  11673. -# it under the terms of the GNU General Public License as published by
  11674. -# the Free Software Foundation; either version 2, or (at your option)
  11675. -# any later version.
  11676. -
  11677. -# This program is distributed in the hope that it will be useful,
  11678. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11679. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11680. -# GNU General Public License for more details.
  11681. -
  11682. -# You should have received a copy of the GNU General Public License along
  11683. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11684. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11685. -
  11686. -
  11687. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  11688. -# created by `make install' are always world readable, even if the
  11689. -# installer happens to have an overly restrictive umask (e.g. 077).
  11690. -# This was a mistake. There are at least two reasons why we must not
  11691. -# use `-m 0755':
  11692. -# - it causes special bits like SGID to be ignored,
  11693. -# - it may be too restrictive (some setups expect 775 directories).
  11694. -#
  11695. -# Do not use -m 0755 and let people choose whatever they expect by
  11696. -# setting umask.
  11697. -#
  11698. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  11699. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  11700. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  11701. -# concurrently, both version can detect that a/ is missing, but only
  11702. -# one can create it and the other will error out. Consequently we
  11703. -# restrict ourselves to GNU make (using the --version option ensures
  11704. -# this.)
  11705. +# Check for `mkdir -p'.
  11706. AC_DEFUN([AM_PROG_MKDIR_P],
  11707. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  11708. - # Keeping the `.' argument allows $(mkdir_p) to be used without
  11709. - # argument. Indeed, we sometimes output rules like
  11710. - # $(mkdir_p) $(somedir)
  11711. - # where $(somedir) is conditionally defined.
  11712. - # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  11713. - # expensive solution, as it forces Make to start a sub-shell.)
  11714. - mkdir_p='mkdir -p -- .'
  11715. -else
  11716. - # On NextStep and OpenStep, the `mkdir' command does not
  11717. - # recognize any option. It will interpret all options as
  11718. - # directories to create, and then abort because `.' already
  11719. - # exists.
  11720. - for d in ./-p ./--version;
  11721. - do
  11722. - test -d $d && rmdir $d
  11723. - done
  11724. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  11725. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  11726. - mkdir_p='$(mkinstalldirs)'
  11727. - else
  11728. - mkdir_p='$(install_sh) -d'
  11729. - fi
  11730. -fi
  11731. -AC_SUBST([mkdir_p])])
  11732. -
  11733. -# Helper functions for option handling. -*- Autoconf -*-
  11734. -
  11735. -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  11736. -
  11737. -# This program is free software; you can redistribute it and/or modify
  11738. -# it under the terms of the GNU General Public License as published by
  11739. -# the Free Software Foundation; either version 2, or (at your option)
  11740. -# any later version.
  11741. -
  11742. -# This program is distributed in the hope that it will be useful,
  11743. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11744. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11745. -# GNU General Public License for more details.
  11746. +[AC_PREREQ([2.60])dnl
  11747. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  11748. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  11749. +dnl while keeping a definition of mkdir_p for backward compatibility.
  11750. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  11751. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  11752. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  11753. +dnl adjustment using top_builddir (which is defined more often than
  11754. +dnl MKDIR_P).
  11755. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  11756. +case $mkdir_p in
  11757. + [[\\/$]]* | ?:[[\\/]]*) ;;
  11758. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  11759. +esac
  11760. +])
  11761. -# You should have received a copy of the GNU General Public License along
  11762. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11763. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11764. +# Helper functions for option handling. -*- Autoconf -*-
  11765. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11766. +#
  11767. +# This file is free software; the Free Software Foundation
  11768. +# gives unlimited permission to copy and/or distribute it,
  11769. +# with or without modifications, as long as this notice is preserved.
  11770. -# serial 2
  11771. +# serial 4
  11772. # _AM_MANGLE_OPTION(NAME)
  11773. # -----------------------
  11774. @@ -7141,7 +8458,7 @@
  11775. # ----------------------------------
  11776. # OPTIONS is a space-separated list of Automake options.
  11777. AC_DEFUN([_AM_SET_OPTIONS],
  11778. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11779. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11780. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11781. # -------------------------------------------
  11782. @@ -7149,26 +8466,14 @@
  11783. AC_DEFUN([_AM_IF_OPTION],
  11784. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  11785. -
  11786. -# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
  11787. +# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
  11788. # Free Software Foundation, Inc.
  11789. +#
  11790. +# This file is free software; the Free Software Foundation
  11791. +# gives unlimited permission to copy and/or distribute it,
  11792. +# with or without modifications, as long as this notice is preserved.
  11793. -# This program is free software; you can redistribute it and/or modify
  11794. -# it under the terms of the GNU General Public License as published by
  11795. -# the Free Software Foundation; either version 2, or (at your option)
  11796. -# any later version.
  11797. -
  11798. -# This program is distributed in the hope that it will be useful,
  11799. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11800. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11801. -# GNU General Public License for more details.
  11802. -
  11803. -# You should have received a copy of the GNU General Public License along
  11804. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11805. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11806. -
  11807. -
  11808. -# serial 3
  11809. +# serial 5
  11810. AC_DEFUN([AM_C_PROTOTYPES],
  11811. [AC_REQUIRE([AC_C_PROTOTYPES])
  11812. @@ -7179,35 +8484,24 @@
  11813. fi
  11814. # Ensure some checks needed by ansi2knr itself.
  11815. AC_REQUIRE([AC_HEADER_STDC])
  11816. -AC_CHECK_HEADERS(string.h)
  11817. -AC_SUBST(U)dnl
  11818. -AC_SUBST(ANSI2KNR)dnl
  11819. +AC_CHECK_HEADERS([string.h])
  11820. +AC_SUBST([U])dnl
  11821. +AC_SUBST([ANSI2KNR])dnl
  11822. +_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
  11823. ])
  11824. AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
  11825. -#
  11826. -# Check to make sure that the build environment is sane.
  11827. -#
  11828. -
  11829. -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  11830. -
  11831. -# This program is free software; you can redistribute it and/or modify
  11832. -# it under the terms of the GNU General Public License as published by
  11833. -# the Free Software Foundation; either version 2, or (at your option)
  11834. -# any later version.
  11835. -
  11836. -# This program is distributed in the hope that it will be useful,
  11837. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11838. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11839. -# GNU General Public License for more details.
  11840. -
  11841. -# You should have received a copy of the GNU General Public License along
  11842. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11843. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11844. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  11845. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11846. +# Free Software Foundation, Inc.
  11847. +#
  11848. +# This file is free software; the Free Software Foundation
  11849. +# gives unlimited permission to copy and/or distribute it,
  11850. +# with or without modifications, as long as this notice is preserved.
  11851. -# serial 3
  11852. +# serial 5
  11853. # AM_SANITY_CHECK
  11854. # ---------------
  11855. @@ -7216,16 +8510,29 @@
  11856. # Just in case
  11857. sleep 1
  11858. echo timestamp > conftest.file
  11859. +# Reject unsafe characters in $srcdir or the absolute working directory
  11860. +# name. Accept space and tab only in the latter.
  11861. +am_lf='
  11862. +'
  11863. +case `pwd` in
  11864. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11865. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11866. +esac
  11867. +case $srcdir in
  11868. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11869. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11870. +esac
  11871. +
  11872. # Do `set' in a subshell so we don't clobber the current shell's
  11873. # arguments. Must try -L first in case configure is actually a
  11874. # symlink; some systems play weird games with the mod time of symlinks
  11875. # (eg FreeBSD returns the mod time of the symlink's containing
  11876. # directory).
  11877. if (
  11878. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11879. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11880. if test "$[*]" = "X"; then
  11881. # -L didn't work.
  11882. - set X `ls -t $srcdir/configure conftest.file`
  11883. + set X `ls -t "$srcdir/configure" conftest.file`
  11884. fi
  11885. rm -f conftest.file
  11886. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11887. @@ -7250,25 +8557,14 @@
  11888. fi
  11889. AC_MSG_RESULT(yes)])
  11890. -# AM_PROG_INSTALL_STRIP
  11891. -
  11892. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  11893. -
  11894. -# This program is free software; you can redistribute it and/or modify
  11895. -# it under the terms of the GNU General Public License as published by
  11896. -# the Free Software Foundation; either version 2, or (at your option)
  11897. -# any later version.
  11898. -
  11899. -# This program is distributed in the hope that it will be useful,
  11900. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11901. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11902. -# GNU General Public License for more details.
  11903. -
  11904. -# You should have received a copy of the GNU General Public License along
  11905. -# with this program; if not, write to the Free Software Foundation, Inc.,
  11906. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11907. -
  11908. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11909. +#
  11910. +# This file is free software; the Free Software Foundation
  11911. +# gives unlimited permission to copy and/or distribute it,
  11912. +# with or without modifications, as long as this notice is preserved.
  11913. +# AM_PROG_INSTALL_STRIP
  11914. +# ---------------------
  11915. # One issue with vendor `install' (even GNU) is that you can't
  11916. # specify the program used to strip binaries. This is especially
  11917. # annoying in cross-compiling environments, where the build's strip
  11918. @@ -7286,7 +8582,122 @@
  11919. if test "$cross_compiling" != no; then
  11920. AC_CHECK_TOOL([STRIP], [strip], :)
  11921. fi
  11922. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  11923. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11924. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11925. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11926. +#
  11927. +# This file is free software; the Free Software Foundation
  11928. +# gives unlimited permission to copy and/or distribute it,
  11929. +# with or without modifications, as long as this notice is preserved.
  11930. +
  11931. +# serial 2
  11932. +
  11933. +# _AM_SUBST_NOTMAKE(VARIABLE)
  11934. +# ---------------------------
  11935. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11936. +# This macro is traced by Automake.
  11937. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  11938. +
  11939. +# AM_SUBST_NOTMAKE(VARIABLE)
  11940. +# ---------------------------
  11941. +# Public sister of _AM_SUBST_NOTMAKE.
  11942. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11943. +
  11944. +# Check how to create a tarball. -*- Autoconf -*-
  11945. +
  11946. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11947. +#
  11948. +# This file is free software; the Free Software Foundation
  11949. +# gives unlimited permission to copy and/or distribute it,
  11950. +# with or without modifications, as long as this notice is preserved.
  11951. +
  11952. +# serial 2
  11953. +
  11954. +# _AM_PROG_TAR(FORMAT)
  11955. +# --------------------
  11956. +# Check how to create a tarball in format FORMAT.
  11957. +# FORMAT should be one of `v7', `ustar', or `pax'.
  11958. +#
  11959. +# Substitute a variable $(am__tar) that is a command
  11960. +# writing to stdout a FORMAT-tarball containing the directory
  11961. +# $tardir.
  11962. +# tardir=directory && $(am__tar) > result.tar
  11963. +#
  11964. +# Substitute a variable $(am__untar) that extract such
  11965. +# a tarball read from stdin.
  11966. +# $(am__untar) < result.tar
  11967. +AC_DEFUN([_AM_PROG_TAR],
  11968. +[# Always define AMTAR for backward compatibility.
  11969. +AM_MISSING_PROG([AMTAR], [tar])
  11970. +m4_if([$1], [v7],
  11971. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  11972. + [m4_case([$1], [ustar],, [pax],,
  11973. + [m4_fatal([Unknown tar format])])
  11974. +AC_MSG_CHECKING([how to create a $1 tar archive])
  11975. +# Loop over all known methods to create a tar archive until one works.
  11976. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  11977. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  11978. +# Do not fold the above two line into one, because Tru64 sh and
  11979. +# Solaris sh will not grok spaces in the rhs of `-'.
  11980. +for _am_tool in $_am_tools
  11981. +do
  11982. + case $_am_tool in
  11983. + gnutar)
  11984. + for _am_tar in tar gnutar gtar;
  11985. + do
  11986. + AM_RUN_LOG([$_am_tar --version]) && break
  11987. + done
  11988. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  11989. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  11990. + am__untar="$_am_tar -xf -"
  11991. + ;;
  11992. + plaintar)
  11993. + # Must skip GNU tar: if it does not support --format= it doesn't create
  11994. + # ustar tarball either.
  11995. + (tar --version) >/dev/null 2>&1 && continue
  11996. + am__tar='tar chf - "$$tardir"'
  11997. + am__tar_='tar chf - "$tardir"'
  11998. + am__untar='tar xf -'
  11999. + ;;
  12000. + pax)
  12001. + am__tar='pax -L -x $1 -w "$$tardir"'
  12002. + am__tar_='pax -L -x $1 -w "$tardir"'
  12003. + am__untar='pax -r'
  12004. + ;;
  12005. + cpio)
  12006. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  12007. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  12008. + am__untar='cpio -i -H $1 -d'
  12009. + ;;
  12010. + none)
  12011. + am__tar=false
  12012. + am__tar_=false
  12013. + am__untar=false
  12014. + ;;
  12015. + esac
  12016. +
  12017. + # If the value was cached, stop now. We just wanted to have am__tar
  12018. + # and am__untar set.
  12019. + test -n "${am_cv_prog_tar_$1}" && break
  12020. +
  12021. + # tar/untar a dummy directory, and stop if the command works
  12022. + rm -rf conftest.dir
  12023. + mkdir conftest.dir
  12024. + echo GrepMe > conftest.dir/file
  12025. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  12026. + rm -rf conftest.dir
  12027. + if test -s conftest.tar; then
  12028. + AM_RUN_LOG([$am__untar <conftest.tar])
  12029. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  12030. + fi
  12031. +done
  12032. +rm -rf conftest.dir
  12033. +
  12034. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  12035. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  12036. +AC_SUBST([am__tar])
  12037. +AC_SUBST([am__untar])
  12038. +]) # _AM_PROG_TAR
  12039. +
  12040. m4_include([acinclude.m4])
  12041. diff -Nur gmp-4.3.2.orig/ansi2knr.c gmp-4.3.2/ansi2knr.c
  12042. --- gmp-4.3.2.orig/ansi2knr.c 2010-01-07 21:09:02.000000000 +0100
  12043. +++ gmp-4.3.2/ansi2knr.c 2011-02-16 19:23:21.033556512 +0100
  12044. @@ -1,6 +1,6 @@
  12045. /* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved. */
  12046. -/*$Id$*/
  12047. +/*$Id: ansi2knr.c,v 1.14 2003/09/06 05:36:56 eggert Exp $*/
  12048. /* Convert ANSI C function definitions to K&R ("traditional C") syntax */
  12049. /*
  12050. diff -Nur gmp-4.3.2.orig/config.guess gmp-4.3.2/config.guess
  12051. --- gmp-4.3.2.orig/config.guess 2010-01-07 21:09:02.000000000 +0100
  12052. +++ gmp-4.3.2/config.guess 2011-02-16 19:23:19.543550401 +0100
  12053. @@ -1,841 +1,1533 @@
  12054. #! /bin/sh
  12055. +# Attempt to guess a canonical system name.
  12056. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  12057. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  12058. +# Free Software Foundation, Inc.
  12059. +
  12060. +timestamp='2009-06-10'
  12061. +
  12062. +# This file is free software; you can redistribute it and/or modify it
  12063. +# under the terms of the GNU General Public License as published by
  12064. +# the Free Software Foundation; either version 2 of the License, or
  12065. +# (at your option) any later version.
  12066. #
  12067. -# GMP config.guess wrapper.
  12068. -
  12069. -
  12070. -# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008 Free Software
  12071. -# Foundation, Inc.
  12072. -#
  12073. -# This file is part of the GNU MP Library.
  12074. -#
  12075. -# The GNU MP Library is free software; you can redistribute it and/or modify
  12076. -# it under the terms of the GNU Lesser General Public License as published
  12077. -# by the Free Software Foundation; either version 3 of the License, or (at
  12078. -# your option) any later version.
  12079. +# This program is distributed in the hope that it will be useful, but
  12080. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  12081. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12082. +# General Public License for more details.
  12083. #
  12084. -# The GNU MP Library is distributed in the hope that it will be useful, but
  12085. -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12086. -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  12087. -# License for more details.
  12088. +# You should have received a copy of the GNU General Public License
  12089. +# along with this program; if not, write to the Free Software
  12090. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  12091. +# 02110-1301, USA.
  12092. #
  12093. -# You should have received a copy of the GNU Lesser General Public License
  12094. -# along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  12095. +# As a special exception to the GNU General Public License, if you
  12096. +# distribute this file as part of a program that contains a
  12097. +# configuration script generated by Autoconf, you may include it under
  12098. +# the same distribution terms that you use for the rest of that program.
  12099. -# Usage: config.guess
  12100. +# Originally written by Per Bothner <per@bothner.com>.
  12101. +# Please send patches to <config-patches@gnu.org>. Submit a context
  12102. +# diff and a properly formatted ChangeLog entry.
  12103. #
  12104. -# Print the host system CPU-VENDOR-OS.
  12105. +# This script attempts to guess a canonical system name similar to
  12106. +# config.sub. If it succeeds, it prints the system name on stdout, and
  12107. +# exits with 0. Otherwise, it exits with 1.
  12108. #
  12109. -# configfsf.guess is run and its guess then sharpened up to take advantage
  12110. -# of the finer grained CPU types that GMP knows.
  12111. +# The plan is that this can be called by configure scripts if you
  12112. +# don't specify an explicit build system type.
  12113. +me=`echo "$0" | sed -e 's,.*/,,'`
  12114. -# Expect to find configfsf.guess in the same directory as this config.guess
  12115. -configfsf_guess="`echo \"$0\" | sed 's/config.guess$/configfsf.guess/'`"
  12116. -if test "$configfsf_guess" = "$0"; then
  12117. - echo "Cannot derive configfsf.guess from $0" 1>&2
  12118. - exit 1
  12119. -fi
  12120. -if test -f "$configfsf_guess"; then
  12121. - :
  12122. -else
  12123. - echo "$configfsf_guess not found" 1>&2
  12124. - exit 1
  12125. -fi
  12126. +usage="\
  12127. +Usage: $0 [OPTION]
  12128. -# Setup a $SHELL with which to run configfsf.guess, using the same
  12129. -# $CONFIG_SHELL or /bin/sh as autoconf does when running config.guess
  12130. -SHELL=${CONFIG_SHELL-/bin/sh}
  12131. +Output the configuration name of the system \`$me' is run on.
  12132. +
  12133. +Operation modes:
  12134. + -h, --help print this help, then exit
  12135. + -t, --time-stamp print date of last modification, then exit
  12136. + -v, --version print version number, then exit
  12137. +
  12138. +Report bugs and patches to <config-patches@gnu.org>."
  12139. +
  12140. +version="\
  12141. +GNU config.guess ($timestamp)
  12142. +
  12143. +Originally written by Per Bothner.
  12144. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  12145. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12146. +
  12147. +This is free software; see the source for copying conditions. There is NO
  12148. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  12149. +
  12150. +help="
  12151. +Try \`$me --help' for more information."
  12152. +
  12153. +# Parse command line
  12154. +while test $# -gt 0 ; do
  12155. + case $1 in
  12156. + --time-stamp | --time* | -t )
  12157. + echo "$timestamp" ; exit ;;
  12158. + --version | -v )
  12159. + echo "$version" ; exit ;;
  12160. + --help | --h* | -h )
  12161. + echo "$usage"; exit ;;
  12162. + -- ) # Stop option processing
  12163. + shift; break ;;
  12164. + - ) # Use stdin as input.
  12165. + break ;;
  12166. + -* )
  12167. + echo "$me: invalid option $1$help" >&2
  12168. + exit 1 ;;
  12169. + * )
  12170. + break ;;
  12171. + esac
  12172. +done
  12173. -# Identify ourselves on --version, --help or errors
  12174. if test $# != 0; then
  12175. - echo "(GNU MP wrapped config.guess)"
  12176. - $SHELL $configfsf_guess "$@"
  12177. - exit 1
  12178. -fi
  12179. -
  12180. -guess_full=`$SHELL $configfsf_guess`
  12181. -if test $? != 0; then
  12182. + echo "$me: too many arguments$help" >&2
  12183. exit 1
  12184. fi
  12185. -guess_cpu=`echo "$guess_full" | sed 's/-.*$//'`
  12186. -guess_rest=`echo "$guess_full" | sed 's/^[^-]*//'`
  12187. -exact_cpu=
  12188. -
  12189. -
  12190. -# -------------------------------------------------------------------------
  12191. -# The following should look at the current guess and probe the system to
  12192. -# establish a better guess in exact_cpu. Leave exact_cpu empty if probes
  12193. -# can't be done, or don't work.
  12194. -#
  12195. -# When a number of probes are done, test -z "$exact_cpu" can be used instead
  12196. -# of putting each probe under an "else" of the preceeding. That can stop
  12197. -# the code getting horribly nested and marching off the right side of the
  12198. -# screen.
  12199. -
  12200. -# Note that when a compile-and-link is done in one step we need to remove .o
  12201. -# files, since lame C compilers generate these even when not asked.
  12202. -#
  12203. -
  12204. -dummy=dummy-$$
  12205. -trap 'rm -f $dummy.c $dummy.o $dummy.core $dummy ${dummy}1.s ${dummy}2.c ; exit 1' 1 2 15
  12206. +trap 'exit 1' 1 2 15
  12207. -# Use $HOST_CC if defined. $CC may point to a cross-compiler
  12208. -if test x"$CC_FOR_BUILD" = x; then
  12209. - if test x"$HOST_CC" != x; then
  12210. - CC_FOR_BUILD="$HOST_CC"
  12211. - else
  12212. - if test x"$CC" != x; then
  12213. - CC_FOR_BUILD="$CC"
  12214. - else
  12215. - echo 'dummy(){}' >$dummy.c
  12216. - for c in cc gcc c89 c99; do
  12217. - ($c $dummy.c -c) >/dev/null 2>&1
  12218. - if test $? = 0; then
  12219. - CC_FOR_BUILD="$c"; break
  12220. - fi
  12221. - done
  12222. - rm -f $dummy.c $dummy.o
  12223. - if test x"$CC_FOR_BUILD" = x; then
  12224. - CC_FOR_BUILD=no_compiler_found
  12225. - fi
  12226. - fi
  12227. - fi
  12228. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  12229. +# compiler to aid in system detection is discouraged as it requires
  12230. +# temporary files to be created and, as you can see below, it is a
  12231. +# headache to deal with in a portable fashion.
  12232. +
  12233. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  12234. +# use `HOST_CC' if defined, but it is deprecated.
  12235. +
  12236. +# Portable tmp directory creation inspired by the Autoconf team.
  12237. +
  12238. +set_cc_for_build='
  12239. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  12240. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  12241. +: ${TMPDIR=/tmp} ;
  12242. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  12243. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  12244. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  12245. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  12246. +dummy=$tmp/dummy ;
  12247. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  12248. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  12249. + ,,) echo "int x;" > $dummy.c ;
  12250. + for c in cc gcc c89 c99 ; do
  12251. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  12252. + CC_FOR_BUILD="$c"; break ;
  12253. + fi ;
  12254. + done ;
  12255. + if test x"$CC_FOR_BUILD" = x ; then
  12256. + CC_FOR_BUILD=no_compiler_found ;
  12257. + fi
  12258. + ;;
  12259. + ,,*) CC_FOR_BUILD=$CC ;;
  12260. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  12261. +esac ; set_cc_for_build= ;'
  12262. +
  12263. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  12264. +# (ghazi@noc.rutgers.edu 1994-08-24)
  12265. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  12266. + PATH=$PATH:/.attbin ; export PATH
  12267. fi
  12268. -
  12269. -case "$guess_full" in
  12270. -
  12271. -alpha-*-*)
  12272. - # configfsf.guess detects exact alpha cpu types for OSF and GNU/Linux, but
  12273. - # not for *BSD and other systems. We try to get an exact type for any
  12274. - # plain "alpha" it leaves.
  12275. - #
  12276. - # configfsf.guess used to have a block of code not unlike this, but these
  12277. - # days does its thing with Linux kernel /proc/cpuinfo or OSF psrinfo.
  12278. - #
  12279. - cat <<EOF >$dummy.s
  12280. - .data
  12281. -Lformat:
  12282. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  12283. - .text
  12284. - .globl main
  12285. - .align 4
  12286. - .ent main
  12287. -main:
  12288. - .frame \$30,16,\$26,0
  12289. - ldgp \$29,0(\$27)
  12290. - .prologue 1
  12291. - .long 0x47e03d91 # implver \$17
  12292. - lda \$2,-1
  12293. - .long 0x47e20c21 # amask \$2,\$1
  12294. - lda \$16,Lformat
  12295. - not \$1,\$18
  12296. - jsr \$26,printf
  12297. - ldgp \$29,0(\$26)
  12298. - mov 0,\$16
  12299. - jsr \$26,exit
  12300. - .end main
  12301. -EOF
  12302. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  12303. - if test "$?" = 0 ; then
  12304. - case `./$dummy` in
  12305. - 0-0) exact_cpu=alpha ;;
  12306. - 1-0) exact_cpu=alphaev5 ;;
  12307. - 1-1) exact_cpu=alphaev56 ;;
  12308. - 1-101) exact_cpu=alphapca56 ;;
  12309. - 2-303) exact_cpu=alphaev6 ;;
  12310. - 2-307) exact_cpu=alphaev67 ;;
  12311. - 2-1307) exact_cpu=alphaev68 ;;
  12312. - esac
  12313. - fi
  12314. - rm -f $dummy.s $dummy.o $dummy
  12315. - ;;
  12316. -
  12317. -ia64*-*-*)
  12318. - # CPUID[3] bits 24 to 31 is the processor family. itanium2 is documented
  12319. - # as 0x1f, plain itanium has been seen returning 0x07 on two systems, but
  12320. - # haven't found any documentation on it as such.
  12321. - #
  12322. - # Defining both getcpuid and _getcpuid lets us ignore whether the system
  12323. - # expects underscores or not.
  12324. - #
  12325. - # "unsigned long long" is always 64 bits, in fact on hpux in ilp32 mode
  12326. - # (which is the default there), it's the only 64-bit type.
  12327. - #
  12328. - cat >${dummy}a.s <<EOF
  12329. - .text
  12330. - .global _getcpuid
  12331. - .proc _getcpuid
  12332. -_getcpuid:
  12333. - mov r8 = CPUID[r32] ;;
  12334. - br.ret.sptk.many rp ;;
  12335. - .endp _getcpuid
  12336. - .global getcpuid
  12337. - .proc getcpuid
  12338. -getcpuid:
  12339. - mov r8 = CPUID[r32] ;;
  12340. - br.ret.sptk.many rp ;;
  12341. - .endp getcpuid
  12342. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  12343. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  12344. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  12345. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  12346. +
  12347. +# Note: order is significant - the case branches are not exclusive.
  12348. +
  12349. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  12350. + *:NetBSD:*:*)
  12351. + # NetBSD (nbsd) targets should (where applicable) match one or
  12352. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  12353. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  12354. + # switched to ELF, *-*-netbsd* would select the old
  12355. + # object file format. This provides both forward
  12356. + # compatibility and a consistent mechanism for selecting the
  12357. + # object file format.
  12358. + #
  12359. + # Note: NetBSD doesn't particularly care about the vendor
  12360. + # portion of the name. We always set it to "unknown".
  12361. + sysctl="sysctl -n hw.machine_arch"
  12362. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  12363. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  12364. + case "${UNAME_MACHINE_ARCH}" in
  12365. + armeb) machine=armeb-unknown ;;
  12366. + arm*) machine=arm-unknown ;;
  12367. + sh3el) machine=shl-unknown ;;
  12368. + sh3eb) machine=sh-unknown ;;
  12369. + sh5el) machine=sh5le-unknown ;;
  12370. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  12371. + esac
  12372. + # The Operating System including object format, if it has switched
  12373. + # to ELF recently, or will in the future.
  12374. + case "${UNAME_MACHINE_ARCH}" in
  12375. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  12376. + eval $set_cc_for_build
  12377. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  12378. + | grep -q __ELF__
  12379. + then
  12380. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  12381. + # Return netbsd for either. FIX?
  12382. + os=netbsd
  12383. + else
  12384. + os=netbsdelf
  12385. + fi
  12386. + ;;
  12387. + *)
  12388. + os=netbsd
  12389. + ;;
  12390. + esac
  12391. + # The OS release
  12392. + # Debian GNU/NetBSD machines have a different userland, and
  12393. + # thus, need a distinct triplet. However, they do not need
  12394. + # kernel version information, so it can be replaced with a
  12395. + # suitable tag, in the style of linux-gnu.
  12396. + case "${UNAME_VERSION}" in
  12397. + Debian*)
  12398. + release='-gnu'
  12399. + ;;
  12400. + *)
  12401. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  12402. + ;;
  12403. + esac
  12404. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  12405. + # contains redundant information, the shorter form:
  12406. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  12407. + echo "${machine}-${os}${release}"
  12408. + exit ;;
  12409. + *:OpenBSD:*:*)
  12410. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  12411. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  12412. + exit ;;
  12413. + *:ekkoBSD:*:*)
  12414. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  12415. + exit ;;
  12416. + *:SolidBSD:*:*)
  12417. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  12418. + exit ;;
  12419. + macppc:MirBSD:*:*)
  12420. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  12421. + exit ;;
  12422. + *:MirBSD:*:*)
  12423. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  12424. + exit ;;
  12425. + alpha:OSF1:*:*)
  12426. + case $UNAME_RELEASE in
  12427. + *4.0)
  12428. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  12429. + ;;
  12430. + *5.*)
  12431. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  12432. + ;;
  12433. + esac
  12434. + # According to Compaq, /usr/sbin/psrinfo has been available on
  12435. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  12436. + # covers most systems running today. This code pipes the CPU
  12437. + # types through head -n 1, so we only detect the type of CPU 0.
  12438. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  12439. + case "$ALPHA_CPU_TYPE" in
  12440. + "EV4 (21064)")
  12441. + UNAME_MACHINE="alpha" ;;
  12442. + "EV4.5 (21064)")
  12443. + UNAME_MACHINE="alpha" ;;
  12444. + "LCA4 (21066/21068)")
  12445. + UNAME_MACHINE="alpha" ;;
  12446. + "EV5 (21164)")
  12447. + UNAME_MACHINE="alphaev5" ;;
  12448. + "EV5.6 (21164A)")
  12449. + UNAME_MACHINE="alphaev56" ;;
  12450. + "EV5.6 (21164PC)")
  12451. + UNAME_MACHINE="alphapca56" ;;
  12452. + "EV5.7 (21164PC)")
  12453. + UNAME_MACHINE="alphapca57" ;;
  12454. + "EV6 (21264)")
  12455. + UNAME_MACHINE="alphaev6" ;;
  12456. + "EV6.7 (21264A)")
  12457. + UNAME_MACHINE="alphaev67" ;;
  12458. + "EV6.8CB (21264C)")
  12459. + UNAME_MACHINE="alphaev68" ;;
  12460. + "EV6.8AL (21264B)")
  12461. + UNAME_MACHINE="alphaev68" ;;
  12462. + "EV6.8CX (21264D)")
  12463. + UNAME_MACHINE="alphaev68" ;;
  12464. + "EV6.9A (21264/EV69A)")
  12465. + UNAME_MACHINE="alphaev69" ;;
  12466. + "EV7 (21364)")
  12467. + UNAME_MACHINE="alphaev7" ;;
  12468. + "EV7.9 (21364A)")
  12469. + UNAME_MACHINE="alphaev79" ;;
  12470. + esac
  12471. + # A Pn.n version is a patched version.
  12472. + # A Vn.n version is a released version.
  12473. + # A Tn.n version is a released field test version.
  12474. + # A Xn.n version is an unreleased experimental baselevel.
  12475. + # 1.2 uses "1.2" for uname -r.
  12476. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  12477. + exit ;;
  12478. + Alpha\ *:Windows_NT*:*)
  12479. + # How do we know it's Interix rather than the generic POSIX subsystem?
  12480. + # Should we change UNAME_MACHINE based on the output of uname instead
  12481. + # of the specific Alpha model?
  12482. + echo alpha-pc-interix
  12483. + exit ;;
  12484. + 21064:Windows_NT:50:3)
  12485. + echo alpha-dec-winnt3.5
  12486. + exit ;;
  12487. + Amiga*:UNIX_System_V:4.0:*)
  12488. + echo m68k-unknown-sysv4
  12489. + exit ;;
  12490. + *:[Aa]miga[Oo][Ss]:*:*)
  12491. + echo ${UNAME_MACHINE}-unknown-amigaos
  12492. + exit ;;
  12493. + *:[Mm]orph[Oo][Ss]:*:*)
  12494. + echo ${UNAME_MACHINE}-unknown-morphos
  12495. + exit ;;
  12496. + *:OS/390:*:*)
  12497. + echo i370-ibm-openedition
  12498. + exit ;;
  12499. + *:z/VM:*:*)
  12500. + echo s390-ibm-zvmoe
  12501. + exit ;;
  12502. + *:OS400:*:*)
  12503. + echo powerpc-ibm-os400
  12504. + exit ;;
  12505. + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  12506. + echo arm-acorn-riscix${UNAME_RELEASE}
  12507. + exit ;;
  12508. + arm:riscos:*:*|arm:RISCOS:*:*)
  12509. + echo arm-unknown-riscos
  12510. + exit ;;
  12511. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  12512. + echo hppa1.1-hitachi-hiuxmpp
  12513. + exit ;;
  12514. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  12515. + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  12516. + if test "`(/bin/universe) 2>/dev/null`" = att ; then
  12517. + echo pyramid-pyramid-sysv3
  12518. + else
  12519. + echo pyramid-pyramid-bsd
  12520. + fi
  12521. + exit ;;
  12522. + NILE*:*:*:dcosx)
  12523. + echo pyramid-pyramid-svr4
  12524. + exit ;;
  12525. + DRS?6000:unix:4.0:6*)
  12526. + echo sparc-icl-nx6
  12527. + exit ;;
  12528. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  12529. + case `/usr/bin/uname -p` in
  12530. + sparc) echo sparc-icl-nx7; exit ;;
  12531. + esac ;;
  12532. + s390x:SunOS:*:*)
  12533. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12534. + exit ;;
  12535. + sun4H:SunOS:5.*:*)
  12536. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12537. + exit ;;
  12538. + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  12539. + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12540. + exit ;;
  12541. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  12542. + eval $set_cc_for_build
  12543. + SUN_ARCH="i386"
  12544. + # If there is a compiler, see if it is configured for 64-bit objects.
  12545. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  12546. + # This test works for both compilers.
  12547. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  12548. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  12549. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  12550. + grep IS_64BIT_ARCH >/dev/null
  12551. + then
  12552. + SUN_ARCH="x86_64"
  12553. + fi
  12554. + fi
  12555. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12556. + exit ;;
  12557. + sun4*:SunOS:6*:*)
  12558. + # According to config.sub, this is the proper way to canonicalize
  12559. + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  12560. + # it's likely to be more like Solaris than SunOS4.
  12561. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12562. + exit ;;
  12563. + sun4*:SunOS:*:*)
  12564. + case "`/usr/bin/arch -k`" in
  12565. + Series*|S4*)
  12566. + UNAME_RELEASE=`uname -v`
  12567. + ;;
  12568. + esac
  12569. + # Japanese Language versions have a version number like `4.1.3-JL'.
  12570. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  12571. + exit ;;
  12572. + sun3*:SunOS:*:*)
  12573. + echo m68k-sun-sunos${UNAME_RELEASE}
  12574. + exit ;;
  12575. + sun*:*:4.2BSD:*)
  12576. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  12577. + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  12578. + case "`/bin/arch`" in
  12579. + sun3)
  12580. + echo m68k-sun-sunos${UNAME_RELEASE}
  12581. + ;;
  12582. + sun4)
  12583. + echo sparc-sun-sunos${UNAME_RELEASE}
  12584. + ;;
  12585. + esac
  12586. + exit ;;
  12587. + aushp:SunOS:*:*)
  12588. + echo sparc-auspex-sunos${UNAME_RELEASE}
  12589. + exit ;;
  12590. + # The situation for MiNT is a little confusing. The machine name
  12591. + # can be virtually everything (everything which is not
  12592. + # "atarist" or "atariste" at least should have a processor
  12593. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  12594. + # to the lowercase version "mint" (or "freemint"). Finally
  12595. + # the system name "TOS" denotes a system which is actually not
  12596. + # MiNT. But MiNT is downward compatible to TOS, so this should
  12597. + # be no problem.
  12598. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  12599. + echo m68k-atari-mint${UNAME_RELEASE}
  12600. + exit ;;
  12601. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  12602. + echo m68k-atari-mint${UNAME_RELEASE}
  12603. + exit ;;
  12604. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  12605. + echo m68k-atari-mint${UNAME_RELEASE}
  12606. + exit ;;
  12607. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  12608. + echo m68k-milan-mint${UNAME_RELEASE}
  12609. + exit ;;
  12610. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  12611. + echo m68k-hades-mint${UNAME_RELEASE}
  12612. + exit ;;
  12613. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  12614. + echo m68k-unknown-mint${UNAME_RELEASE}
  12615. + exit ;;
  12616. + m68k:machten:*:*)
  12617. + echo m68k-apple-machten${UNAME_RELEASE}
  12618. + exit ;;
  12619. + powerpc:machten:*:*)
  12620. + echo powerpc-apple-machten${UNAME_RELEASE}
  12621. + exit ;;
  12622. + RISC*:Mach:*:*)
  12623. + echo mips-dec-mach_bsd4.3
  12624. + exit ;;
  12625. + RISC*:ULTRIX:*:*)
  12626. + echo mips-dec-ultrix${UNAME_RELEASE}
  12627. + exit ;;
  12628. + VAX*:ULTRIX*:*:*)
  12629. + echo vax-dec-ultrix${UNAME_RELEASE}
  12630. + exit ;;
  12631. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  12632. + echo clipper-intergraph-clix${UNAME_RELEASE}
  12633. + exit ;;
  12634. + mips:*:*:UMIPS | mips:*:*:RISCos)
  12635. + eval $set_cc_for_build
  12636. + sed 's/^ //' << EOF >$dummy.c
  12637. +#ifdef __cplusplus
  12638. +#include <stdio.h> /* for printf() prototype */
  12639. + int main (int argc, char *argv[]) {
  12640. +#else
  12641. + int main (argc, argv) int argc; char *argv[]; {
  12642. +#endif
  12643. + #if defined (host_mips) && defined (MIPSEB)
  12644. + #if defined (SYSTYPE_SYSV)
  12645. + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  12646. + #endif
  12647. + #if defined (SYSTYPE_SVR4)
  12648. + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  12649. + #endif
  12650. + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  12651. + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  12652. + #endif
  12653. + #endif
  12654. + exit (-1);
  12655. + }
  12656. EOF
  12657. - cat >${dummy}b.c <<EOF
  12658. -#include <stdio.h>
  12659. -unsigned long long getcpuid ();
  12660. -int
  12661. -main ()
  12662. -{
  12663. - if (getcpuid(0LL) == 0x49656E69756E6547LL && getcpuid(1LL) == 0x6C65746ELL)
  12664. - {
  12665. - /* "GenuineIntel" */
  12666. - switch ((getcpuid(3LL) >> 24) & 0xFF) {
  12667. - case 0x07: puts ("itanium"); break;
  12668. - case 0x1F: puts ("itanium2"); break; /* McKinley, Madison */
  12669. - case 0x20: puts ("itanium2"); break; /* Montecito */
  12670. - }
  12671. - }
  12672. - return 0;
  12673. -}
  12674. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  12675. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  12676. + SYSTEM_NAME=`$dummy $dummyarg` &&
  12677. + { echo "$SYSTEM_NAME"; exit; }
  12678. + echo mips-mips-riscos${UNAME_RELEASE}
  12679. + exit ;;
  12680. + Motorola:PowerMAX_OS:*:*)
  12681. + echo powerpc-motorola-powermax
  12682. + exit ;;
  12683. + Motorola:*:4.3:PL8-*)
  12684. + echo powerpc-harris-powermax
  12685. + exit ;;
  12686. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  12687. + echo powerpc-harris-powermax
  12688. + exit ;;
  12689. + Night_Hawk:Power_UNIX:*:*)
  12690. + echo powerpc-harris-powerunix
  12691. + exit ;;
  12692. + m88k:CX/UX:7*:*)
  12693. + echo m88k-harris-cxux7
  12694. + exit ;;
  12695. + m88k:*:4*:R4*)
  12696. + echo m88k-motorola-sysv4
  12697. + exit ;;
  12698. + m88k:*:3*:R3*)
  12699. + echo m88k-motorola-sysv3
  12700. + exit ;;
  12701. + AViiON:dgux:*:*)
  12702. + # DG/UX returns AViiON for all architectures
  12703. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  12704. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  12705. + then
  12706. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  12707. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  12708. + then
  12709. + echo m88k-dg-dgux${UNAME_RELEASE}
  12710. + else
  12711. + echo m88k-dg-dguxbcs${UNAME_RELEASE}
  12712. + fi
  12713. + else
  12714. + echo i586-dg-dgux${UNAME_RELEASE}
  12715. + fi
  12716. + exit ;;
  12717. + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  12718. + echo m88k-dolphin-sysv3
  12719. + exit ;;
  12720. + M88*:*:R3*:*)
  12721. + # Delta 88k system running SVR3
  12722. + echo m88k-motorola-sysv3
  12723. + exit ;;
  12724. + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  12725. + echo m88k-tektronix-sysv3
  12726. + exit ;;
  12727. + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  12728. + echo m68k-tektronix-bsd
  12729. + exit ;;
  12730. + *:IRIX*:*:*)
  12731. + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  12732. + exit ;;
  12733. + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  12734. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  12735. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  12736. + i*86:AIX:*:*)
  12737. + echo i386-ibm-aix
  12738. + exit ;;
  12739. + ia64:AIX:*:*)
  12740. + if [ -x /usr/bin/oslevel ] ; then
  12741. + IBM_REV=`/usr/bin/oslevel`
  12742. + else
  12743. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  12744. + fi
  12745. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  12746. + exit ;;
  12747. + *:AIX:2:3)
  12748. + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  12749. + eval $set_cc_for_build
  12750. + sed 's/^ //' << EOF >$dummy.c
  12751. + #include <sys/systemcfg.h>
  12752. +
  12753. + main()
  12754. + {
  12755. + if (!__power_pc())
  12756. + exit(1);
  12757. + puts("powerpc-ibm-aix3.2.5");
  12758. + exit(0);
  12759. + }
  12760. EOF
  12761. - if $CC_FOR_BUILD ${dummy}a.s ${dummy}b.c -o $dummy >/dev/null 2>&1; then
  12762. - exact_cpu=`./$dummy`
  12763. - fi
  12764. - rm -f ${dummy}a.s ${dummy}a.o ${dummy}b.c ${dummy}b.o $dummy $dummy.core core
  12765. - ;;
  12766. -
  12767. -mips-*-irix[6789]*)
  12768. - # IRIX 6 and up always has a 64-bit mips cpu
  12769. - exact_cpu=mips64
  12770. - ;;
  12771. -
  12772. -m68k-*-*)
  12773. - # NetBSD (and presumably other *BSD) "sysctl hw.model" gives for example
  12774. - # hw.model = Apple Macintosh Quadra 610 (68040)
  12775. - exact_cpu=`(sysctl hw.model) 2>/dev/null | sed -n 's/^.*\(680[012346]0\).*$/m\1/p'`
  12776. - if test -z "$exact_cpu"; then
  12777. - # Linux kernel 2.2 gives for example "CPU: 68020" (tabs in between).
  12778. - exact_cpu=`sed -n 's/^CPU:.*\(680[012346]0\).*$/m\1/p' /proc/cpuinfo 2>/dev/null`
  12779. - fi
  12780. - if test -z "$exact_cpu"; then
  12781. - # Try: movel #0,%d0; rts
  12782. - # This is to check the compiler and our asm code works etc, before
  12783. - # assuming failures below indicate cpu characteristics.
  12784. - # .byte is used to avoid problems with assembler syntax variations.
  12785. - # For testing, provoke failures by adding "illegal" possibly as
  12786. - # ".byte 0x4A, 0xFC"
  12787. - cat >$dummy.s <<EOF
  12788. - .text
  12789. - .globl main
  12790. - .globl _main
  12791. -main:
  12792. -_main:
  12793. - .byte 0x70, 0x00
  12794. - .byte 0x4e, 0x75
  12795. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  12796. + then
  12797. + echo "$SYSTEM_NAME"
  12798. + else
  12799. + echo rs6000-ibm-aix3.2.5
  12800. + fi
  12801. + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  12802. + echo rs6000-ibm-aix3.2.4
  12803. + else
  12804. + echo rs6000-ibm-aix3.2
  12805. + fi
  12806. + exit ;;
  12807. + *:AIX:*:[456])
  12808. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  12809. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  12810. + IBM_ARCH=rs6000
  12811. + else
  12812. + IBM_ARCH=powerpc
  12813. + fi
  12814. + if [ -x /usr/bin/oslevel ] ; then
  12815. + IBM_REV=`/usr/bin/oslevel`
  12816. + else
  12817. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  12818. + fi
  12819. + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  12820. + exit ;;
  12821. + *:AIX:*:*)
  12822. + echo rs6000-ibm-aix
  12823. + exit ;;
  12824. + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  12825. + echo romp-ibm-bsd4.4
  12826. + exit ;;
  12827. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  12828. + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  12829. + exit ;; # report: romp-ibm BSD 4.3
  12830. + *:BOSX:*:*)
  12831. + echo rs6000-bull-bosx
  12832. + exit ;;
  12833. + DPX/2?00:B.O.S.:*:*)
  12834. + echo m68k-bull-sysv3
  12835. + exit ;;
  12836. + 9000/[34]??:4.3bsd:1.*:*)
  12837. + echo m68k-hp-bsd
  12838. + exit ;;
  12839. + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  12840. + echo m68k-hp-bsd4.4
  12841. + exit ;;
  12842. + 9000/[34678]??:HP-UX:*:*)
  12843. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  12844. + case "${UNAME_MACHINE}" in
  12845. + 9000/31? ) HP_ARCH=m68000 ;;
  12846. + 9000/[34]?? ) HP_ARCH=m68k ;;
  12847. + 9000/[678][0-9][0-9])
  12848. + if [ -x /usr/bin/getconf ]; then
  12849. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  12850. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  12851. + case "${sc_cpu_version}" in
  12852. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  12853. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  12854. + 532) # CPU_PA_RISC2_0
  12855. + case "${sc_kernel_bits}" in
  12856. + 32) HP_ARCH="hppa2.0n" ;;
  12857. + 64) HP_ARCH="hppa2.0w" ;;
  12858. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  12859. + esac ;;
  12860. + esac
  12861. + fi
  12862. + if [ "${HP_ARCH}" = "" ]; then
  12863. + eval $set_cc_for_build
  12864. + sed 's/^ //' << EOF >$dummy.c
  12865. +
  12866. + #define _HPUX_SOURCE
  12867. + #include <stdlib.h>
  12868. + #include <unistd.h>
  12869. +
  12870. + int main ()
  12871. + {
  12872. + #if defined(_SC_KERNEL_BITS)
  12873. + long bits = sysconf(_SC_KERNEL_BITS);
  12874. + #endif
  12875. + long cpu = sysconf (_SC_CPU_VERSION);
  12876. +
  12877. + switch (cpu)
  12878. + {
  12879. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  12880. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  12881. + case CPU_PA_RISC2_0:
  12882. + #if defined(_SC_KERNEL_BITS)
  12883. + switch (bits)
  12884. + {
  12885. + case 64: puts ("hppa2.0w"); break;
  12886. + case 32: puts ("hppa2.0n"); break;
  12887. + default: puts ("hppa2.0"); break;
  12888. + } break;
  12889. + #else /* !defined(_SC_KERNEL_BITS) */
  12890. + puts ("hppa2.0"); break;
  12891. + #endif
  12892. + default: puts ("hppa1.0"); break;
  12893. + }
  12894. + exit (0);
  12895. + }
  12896. EOF
  12897. - if ($CC_FOR_BUILD $dummy.s -o $dummy && ./$dummy) >/dev/null 2>&1; then
  12898. -
  12899. - # $SHELL -c is used to execute ./$dummy below, since (./$dummy)
  12900. - # 2>/dev/null still prints the SIGILL message on some shells.
  12901. - #
  12902. - # Try: movel #0,%d0
  12903. - # rtd #0
  12904. - cat >$dummy.s <<EOF
  12905. - .text
  12906. - .globl main
  12907. - .globl _main
  12908. -main:
  12909. -_main:
  12910. - .byte 0x70, 0x00
  12911. - .byte 0x4e, 0x74, 0x00, 0x00
  12912. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  12913. + test -z "$HP_ARCH" && HP_ARCH=hppa
  12914. + fi ;;
  12915. + esac
  12916. + if [ ${HP_ARCH} = "hppa2.0w" ]
  12917. + then
  12918. + eval $set_cc_for_build
  12919. +
  12920. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  12921. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  12922. + # generating 64-bit code. GNU and HP use different nomenclature:
  12923. + #
  12924. + # $ CC_FOR_BUILD=cc ./config.guess
  12925. + # => hppa2.0w-hp-hpux11.23
  12926. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  12927. + # => hppa64-hp-hpux11.23
  12928. +
  12929. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  12930. + grep -q __LP64__
  12931. + then
  12932. + HP_ARCH="hppa2.0w"
  12933. + else
  12934. + HP_ARCH="hppa64"
  12935. + fi
  12936. + fi
  12937. + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  12938. + exit ;;
  12939. + ia64:HP-UX:*:*)
  12940. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  12941. + echo ia64-hp-hpux${HPUX_REV}
  12942. + exit ;;
  12943. + 3050*:HI-UX:*:*)
  12944. + eval $set_cc_for_build
  12945. + sed 's/^ //' << EOF >$dummy.c
  12946. + #include <unistd.h>
  12947. + int
  12948. + main ()
  12949. + {
  12950. + long cpu = sysconf (_SC_CPU_VERSION);
  12951. + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  12952. + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  12953. + results, however. */
  12954. + if (CPU_IS_PA_RISC (cpu))
  12955. + {
  12956. + switch (cpu)
  12957. + {
  12958. + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  12959. + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  12960. + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  12961. + default: puts ("hppa-hitachi-hiuxwe2"); break;
  12962. + }
  12963. + }
  12964. + else if (CPU_IS_HP_MC68K (cpu))
  12965. + puts ("m68k-hitachi-hiuxwe2");
  12966. + else puts ("unknown-hitachi-hiuxwe2");
  12967. + exit (0);
  12968. + }
  12969. EOF
  12970. - if $CC_FOR_BUILD $dummy.s -o $dummy >/dev/null 2>&1; then
  12971. - $SHELL -c ./$dummy >/dev/null 2>&1
  12972. - if test $? != 0; then
  12973. - exact_cpu=m68000 # because rtd didn't work
  12974. - fi
  12975. - fi
  12976. - #
  12977. -
  12978. - if test -z "$exact_cpu"; then
  12979. - # Try: trapf
  12980. - # movel #0,%d0
  12981. - # rts
  12982. - # Another possibility for identifying 68000 and 68010 is the
  12983. - # different value stored by "movem a0,(a0)+"
  12984. - cat >$dummy.s <<EOF
  12985. - .text
  12986. - .globl main
  12987. - .globl _main
  12988. -main:
  12989. -_main:
  12990. - .byte 0x51, 0xFC
  12991. - .byte 0x70, 0x00
  12992. - .byte 0x4e, 0x75
  12993. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  12994. + { echo "$SYSTEM_NAME"; exit; }
  12995. + echo unknown-hitachi-hiuxwe2
  12996. + exit ;;
  12997. + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  12998. + echo hppa1.1-hp-bsd
  12999. + exit ;;
  13000. + 9000/8??:4.3bsd:*:*)
  13001. + echo hppa1.0-hp-bsd
  13002. + exit ;;
  13003. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  13004. + echo hppa1.0-hp-mpeix
  13005. + exit ;;
  13006. + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  13007. + echo hppa1.1-hp-osf
  13008. + exit ;;
  13009. + hp8??:OSF1:*:*)
  13010. + echo hppa1.0-hp-osf
  13011. + exit ;;
  13012. + i*86:OSF1:*:*)
  13013. + if [ -x /usr/sbin/sysversion ] ; then
  13014. + echo ${UNAME_MACHINE}-unknown-osf1mk
  13015. + else
  13016. + echo ${UNAME_MACHINE}-unknown-osf1
  13017. + fi
  13018. + exit ;;
  13019. + parisc*:Lites*:*:*)
  13020. + echo hppa1.1-hp-lites
  13021. + exit ;;
  13022. + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  13023. + echo c1-convex-bsd
  13024. + exit ;;
  13025. + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  13026. + if getsysinfo -f scalar_acc
  13027. + then echo c32-convex-bsd
  13028. + else echo c2-convex-bsd
  13029. + fi
  13030. + exit ;;
  13031. + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  13032. + echo c34-convex-bsd
  13033. + exit ;;
  13034. + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  13035. + echo c38-convex-bsd
  13036. + exit ;;
  13037. + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  13038. + echo c4-convex-bsd
  13039. + exit ;;
  13040. + CRAY*Y-MP:*:*:*)
  13041. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  13042. + exit ;;
  13043. + CRAY*[A-Z]90:*:*:*)
  13044. + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  13045. + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  13046. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  13047. + -e 's/\.[^.]*$/.X/'
  13048. + exit ;;
  13049. + CRAY*TS:*:*:*)
  13050. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  13051. + exit ;;
  13052. + CRAY*T3E:*:*:*)
  13053. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  13054. + exit ;;
  13055. + CRAY*SV1:*:*:*)
  13056. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  13057. + exit ;;
  13058. + *:UNICOS/mp:*:*)
  13059. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  13060. + exit ;;
  13061. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  13062. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13063. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  13064. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  13065. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  13066. + exit ;;
  13067. + 5000:UNIX_System_V:4.*:*)
  13068. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  13069. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  13070. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  13071. + exit ;;
  13072. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  13073. + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  13074. + exit ;;
  13075. + sparc*:BSD/OS:*:*)
  13076. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  13077. + exit ;;
  13078. + *:BSD/OS:*:*)
  13079. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  13080. + exit ;;
  13081. + *:FreeBSD:*:*)
  13082. + case ${UNAME_MACHINE} in
  13083. + pc98)
  13084. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13085. + amd64)
  13086. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13087. + *)
  13088. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13089. + esac
  13090. + exit ;;
  13091. + i*:CYGWIN*:*)
  13092. + echo ${UNAME_MACHINE}-pc-cygwin
  13093. + exit ;;
  13094. + *:MINGW*:*)
  13095. + echo ${UNAME_MACHINE}-pc-mingw32
  13096. + exit ;;
  13097. + i*:windows32*:*)
  13098. + # uname -m includes "-pc" on this system.
  13099. + echo ${UNAME_MACHINE}-mingw32
  13100. + exit ;;
  13101. + i*:PW*:*)
  13102. + echo ${UNAME_MACHINE}-pc-pw32
  13103. + exit ;;
  13104. + *:Interix*:[3456]*)
  13105. + case ${UNAME_MACHINE} in
  13106. + x86)
  13107. + echo i586-pc-interix${UNAME_RELEASE}
  13108. + exit ;;
  13109. + EM64T | authenticamd | genuineintel)
  13110. + echo x86_64-unknown-interix${UNAME_RELEASE}
  13111. + exit ;;
  13112. + IA64)
  13113. + echo ia64-unknown-interix${UNAME_RELEASE}
  13114. + exit ;;
  13115. + esac ;;
  13116. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  13117. + echo i${UNAME_MACHINE}-pc-mks
  13118. + exit ;;
  13119. + 8664:Windows_NT:*)
  13120. + echo x86_64-pc-mks
  13121. + exit ;;
  13122. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  13123. + # How do we know it's Interix rather than the generic POSIX subsystem?
  13124. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  13125. + # UNAME_MACHINE based on the output of uname instead of i386?
  13126. + echo i586-pc-interix
  13127. + exit ;;
  13128. + i*:UWIN*:*)
  13129. + echo ${UNAME_MACHINE}-pc-uwin
  13130. + exit ;;
  13131. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  13132. + echo x86_64-unknown-cygwin
  13133. + exit ;;
  13134. + p*:CYGWIN*:*)
  13135. + echo powerpcle-unknown-cygwin
  13136. + exit ;;
  13137. + prep*:SunOS:5.*:*)
  13138. + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13139. + exit ;;
  13140. + *:GNU:*:*)
  13141. + # the GNU system
  13142. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  13143. + exit ;;
  13144. + *:GNU/*:*:*)
  13145. + # other systems with GNU libc and userland
  13146. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  13147. + exit ;;
  13148. + i*86:Minix:*:*)
  13149. + echo ${UNAME_MACHINE}-pc-minix
  13150. + exit ;;
  13151. + arm*:Linux:*:*)
  13152. + eval $set_cc_for_build
  13153. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13154. + | grep -q __ARM_EABI__
  13155. + then
  13156. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13157. + else
  13158. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  13159. + fi
  13160. + exit ;;
  13161. + avr32*:Linux:*:*)
  13162. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13163. + exit ;;
  13164. + cris:Linux:*:*)
  13165. + echo cris-axis-linux-gnu
  13166. + exit ;;
  13167. + crisv32:Linux:*:*)
  13168. + echo crisv32-axis-linux-gnu
  13169. + exit ;;
  13170. + frv:Linux:*:*)
  13171. + echo frv-unknown-linux-gnu
  13172. + exit ;;
  13173. + ia64:Linux:*:*)
  13174. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13175. + exit ;;
  13176. + m32r*:Linux:*:*)
  13177. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13178. + exit ;;
  13179. + m68*:Linux:*:*)
  13180. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13181. + exit ;;
  13182. + mips:Linux:*:* | mips64:Linux:*:*)
  13183. + eval $set_cc_for_build
  13184. + sed 's/^ //' << EOF >$dummy.c
  13185. + #undef CPU
  13186. + #undef ${UNAME_MACHINE}
  13187. + #undef ${UNAME_MACHINE}el
  13188. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  13189. + CPU=${UNAME_MACHINE}el
  13190. + #else
  13191. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  13192. + CPU=${UNAME_MACHINE}
  13193. + #else
  13194. + CPU=
  13195. + #endif
  13196. + #endif
  13197. EOF
  13198. - if $CC_FOR_BUILD $dummy.s -o $dummy >/dev/null 2>&1; then
  13199. - $SHELL -c ./$dummy >/dev/null 2>&1
  13200. - if test $? != 0; then
  13201. - exact_cpu=m68010 # because trapf didn't work
  13202. - fi
  13203. - fi
  13204. - fi
  13205. -
  13206. - if test -z "$exact_cpu"; then
  13207. - # Try: bfffo %d1{0:31},%d0
  13208. - # movel #0,%d0
  13209. - # rts
  13210. - cat >$dummy.s <<EOF
  13211. - .text
  13212. - .globl main
  13213. - .globl _main
  13214. -main:
  13215. -_main:
  13216. - .byte 0xED, 0xC1, 0x00, 0x1F
  13217. - .byte 0x70, 0x00
  13218. - .byte 0x4e, 0x75
  13219. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  13220. + /^CPU/{
  13221. + s: ::g
  13222. + p
  13223. + }'`"
  13224. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  13225. + ;;
  13226. + or32:Linux:*:*)
  13227. + echo or32-unknown-linux-gnu
  13228. + exit ;;
  13229. + ppc:Linux:*:*)
  13230. + echo powerpc-unknown-linux-gnu
  13231. + exit ;;
  13232. + ppc64:Linux:*:*)
  13233. + echo powerpc64-unknown-linux-gnu
  13234. + exit ;;
  13235. + alpha:Linux:*:*)
  13236. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  13237. + EV5) UNAME_MACHINE=alphaev5 ;;
  13238. + EV56) UNAME_MACHINE=alphaev56 ;;
  13239. + PCA56) UNAME_MACHINE=alphapca56 ;;
  13240. + PCA57) UNAME_MACHINE=alphapca56 ;;
  13241. + EV6) UNAME_MACHINE=alphaev6 ;;
  13242. + EV67) UNAME_MACHINE=alphaev67 ;;
  13243. + EV68*) UNAME_MACHINE=alphaev68 ;;
  13244. + esac
  13245. + objdump --private-headers /bin/sh | grep -q ld.so.1
  13246. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  13247. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  13248. + exit ;;
  13249. + padre:Linux:*:*)
  13250. + echo sparc-unknown-linux-gnu
  13251. + exit ;;
  13252. + parisc:Linux:*:* | hppa:Linux:*:*)
  13253. + # Look for CPU level
  13254. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  13255. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  13256. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  13257. + *) echo hppa-unknown-linux-gnu ;;
  13258. + esac
  13259. + exit ;;
  13260. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  13261. + echo hppa64-unknown-linux-gnu
  13262. + exit ;;
  13263. + s390:Linux:*:* | s390x:Linux:*:*)
  13264. + echo ${UNAME_MACHINE}-ibm-linux
  13265. + exit ;;
  13266. + sh64*:Linux:*:*)
  13267. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13268. + exit ;;
  13269. + sh*:Linux:*:*)
  13270. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13271. + exit ;;
  13272. + sparc:Linux:*:* | sparc64:Linux:*:*)
  13273. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13274. + exit ;;
  13275. + vax:Linux:*:*)
  13276. + echo ${UNAME_MACHINE}-dec-linux-gnu
  13277. + exit ;;
  13278. + x86_64:Linux:*:*)
  13279. + echo x86_64-unknown-linux-gnu
  13280. + exit ;;
  13281. + xtensa*:Linux:*:*)
  13282. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13283. + exit ;;
  13284. + i*86:Linux:*:*)
  13285. + # The BFD linker knows what the default object file format is, so
  13286. + # first see if it will tell us. cd to the root directory to prevent
  13287. + # problems with other programs or directories called `ld' in the path.
  13288. + # Set LC_ALL=C to ensure ld outputs messages in English.
  13289. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  13290. + | sed -ne '/supported targets:/!d
  13291. + s/[ ][ ]*/ /g
  13292. + s/.*supported targets: *//
  13293. + s/ .*//
  13294. + p'`
  13295. + case "$ld_supported_targets" in
  13296. + elf32-i386)
  13297. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  13298. + ;;
  13299. + esac
  13300. + # Determine whether the default compiler is a.out or elf
  13301. + eval $set_cc_for_build
  13302. + sed 's/^ //' << EOF >$dummy.c
  13303. + #include <features.h>
  13304. + #ifdef __ELF__
  13305. + # ifdef __GLIBC__
  13306. + # if __GLIBC__ >= 2
  13307. + LIBC=gnu
  13308. + # else
  13309. + LIBC=gnulibc1
  13310. + # endif
  13311. + # else
  13312. + LIBC=gnulibc1
  13313. + # endif
  13314. + #else
  13315. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  13316. + LIBC=gnu
  13317. + #else
  13318. + LIBC=gnuaout
  13319. + #endif
  13320. + #endif
  13321. + #ifdef __dietlibc__
  13322. + LIBC=dietlibc
  13323. + #endif
  13324. EOF
  13325. - if $CC_FOR_BUILD $dummy.s -o $dummy >/dev/null 2>&1; then
  13326. - $SHELL -c ./$dummy >/dev/null 2>&1
  13327. - if test $? != 0; then
  13328. - exact_cpu=m68360 # cpu32, because bfffo didn't work
  13329. - fi
  13330. - fi
  13331. - fi
  13332. -
  13333. - if test -z "$exact_cpu"; then
  13334. - # FIXME: Now we know 68020 or up, but how to detect 030, 040 and 060?
  13335. - exact_cpu=m68020
  13336. - fi
  13337. - fi
  13338. - rm -f $dummy.s $dummy.o $dummy $dummy.core core
  13339. - fi
  13340. - if test -z "$exact_cpu"; then
  13341. - case "$guess_full" in
  13342. - *-*-next* | *-*-openstep*) # NeXTs are 68020 or better
  13343. - exact_cpu=m68020 ;;
  13344. - esac
  13345. - fi
  13346. - ;;
  13347. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  13348. + /^LIBC/{
  13349. + s: ::g
  13350. + p
  13351. + }'`"
  13352. + test x"${LIBC}" != x && {
  13353. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  13354. + exit
  13355. + }
  13356. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  13357. + ;;
  13358. + i*86:DYNIX/ptx:4*:*)
  13359. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  13360. + # earlier versions are messed up and put the nodename in both
  13361. + # sysname and nodename.
  13362. + echo i386-sequent-sysv4
  13363. + exit ;;
  13364. + i*86:UNIX_SV:4.2MP:2.*)
  13365. + # Unixware is an offshoot of SVR4, but it has its own version
  13366. + # number series starting with 2...
  13367. + # I am not positive that other SVR4 systems won't match this,
  13368. + # I just have to hope. -- rms.
  13369. + # Use sysv4.2uw... so that sysv4* matches it.
  13370. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  13371. + exit ;;
  13372. + i*86:OS/2:*:*)
  13373. + # If we were able to find `uname', then EMX Unix compatibility
  13374. + # is probably installed.
  13375. + echo ${UNAME_MACHINE}-pc-os2-emx
  13376. + exit ;;
  13377. + i*86:XTS-300:*:STOP)
  13378. + echo ${UNAME_MACHINE}-unknown-stop
  13379. + exit ;;
  13380. + i*86:atheos:*:*)
  13381. + echo ${UNAME_MACHINE}-unknown-atheos
  13382. + exit ;;
  13383. + i*86:syllable:*:*)
  13384. + echo ${UNAME_MACHINE}-pc-syllable
  13385. + exit ;;
  13386. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  13387. + echo i386-unknown-lynxos${UNAME_RELEASE}
  13388. + exit ;;
  13389. + i*86:*DOS:*:*)
  13390. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  13391. + exit ;;
  13392. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  13393. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  13394. + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  13395. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  13396. + else
  13397. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  13398. + fi
  13399. + exit ;;
  13400. + i*86:*:5:[678]*)
  13401. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  13402. + case `/bin/uname -X | grep "^Machine"` in
  13403. + *486*) UNAME_MACHINE=i486 ;;
  13404. + *Pentium) UNAME_MACHINE=i586 ;;
  13405. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  13406. + esac
  13407. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  13408. + exit ;;
  13409. + i*86:*:3.2:*)
  13410. + if test -f /usr/options/cb.name; then
  13411. + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  13412. + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  13413. + elif /bin/uname -X 2>/dev/null >/dev/null ; then
  13414. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  13415. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  13416. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  13417. + && UNAME_MACHINE=i586
  13418. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  13419. + && UNAME_MACHINE=i686
  13420. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  13421. + && UNAME_MACHINE=i686
  13422. + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  13423. + else
  13424. + echo ${UNAME_MACHINE}-pc-sysv32
  13425. + fi
  13426. + exit ;;
  13427. + pc:*:*:*)
  13428. + # Left here for compatibility:
  13429. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  13430. + # the processor, so we play safe by assuming i586.
  13431. + # Note: whatever this is, it MUST be the same as what config.sub
  13432. + # prints for the "djgpp" host, or else GDB configury will decide that
  13433. + # this is a cross-build.
  13434. + echo i586-pc-msdosdjgpp
  13435. + exit ;;
  13436. + Intel:Mach:3*:*)
  13437. + echo i386-pc-mach3
  13438. + exit ;;
  13439. + paragon:*:*:*)
  13440. + echo i860-intel-osf1
  13441. + exit ;;
  13442. + i860:*:4.*:*) # i860-SVR4
  13443. + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  13444. + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  13445. + else # Add other i860-SVR4 vendors below as they are discovered.
  13446. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  13447. + fi
  13448. + exit ;;
  13449. + mini*:CTIX:SYS*5:*)
  13450. + # "miniframe"
  13451. + echo m68010-convergent-sysv
  13452. + exit ;;
  13453. + mc68k:UNIX:SYSTEM5:3.51m)
  13454. + echo m68k-convergent-sysv
  13455. + exit ;;
  13456. + M680?0:D-NIX:5.3:*)
  13457. + echo m68k-diab-dnix
  13458. + exit ;;
  13459. + M68*:*:R3V[5678]*:*)
  13460. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  13461. + 3[345]??:*: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 | S7501*:*:4.0:3.0)
  13462. + OS_REL=''
  13463. + test -r /etc/.relid \
  13464. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  13465. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  13466. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  13467. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  13468. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  13469. + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  13470. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  13471. + && { echo i486-ncr-sysv4; exit; } ;;
  13472. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  13473. + OS_REL='.3'
  13474. + test -r /etc/.relid \
  13475. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  13476. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  13477. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  13478. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  13479. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  13480. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  13481. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  13482. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  13483. + echo m68k-unknown-lynxos${UNAME_RELEASE}
  13484. + exit ;;
  13485. + mc68030:UNIX_System_V:4.*:*)
  13486. + echo m68k-atari-sysv4
  13487. + exit ;;
  13488. + TSUNAMI:LynxOS:2.*:*)
  13489. + echo sparc-unknown-lynxos${UNAME_RELEASE}
  13490. + exit ;;
  13491. + rs6000:LynxOS:2.*:*)
  13492. + echo rs6000-unknown-lynxos${UNAME_RELEASE}
  13493. + exit ;;
  13494. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  13495. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  13496. + exit ;;
  13497. + SM[BE]S:UNIX_SV:*:*)
  13498. + echo mips-dde-sysv${UNAME_RELEASE}
  13499. + exit ;;
  13500. + RM*:ReliantUNIX-*:*:*)
  13501. + echo mips-sni-sysv4
  13502. + exit ;;
  13503. + RM*:SINIX-*:*:*)
  13504. + echo mips-sni-sysv4
  13505. + exit ;;
  13506. + *:SINIX-*:*:*)
  13507. + if uname -p 2>/dev/null >/dev/null ; then
  13508. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  13509. + echo ${UNAME_MACHINE}-sni-sysv4
  13510. + else
  13511. + echo ns32k-sni-sysv
  13512. + fi
  13513. + exit ;;
  13514. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  13515. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  13516. + echo i586-unisys-sysv4
  13517. + exit ;;
  13518. + *:UNIX_System_V:4*:FTX*)
  13519. + # From Gerald Hewes <hewes@openmarket.com>.
  13520. + # How about differentiating between stratus architectures? -djm
  13521. + echo hppa1.1-stratus-sysv4
  13522. + exit ;;
  13523. + *:*:*:FTX*)
  13524. + # From seanf@swdc.stratus.com.
  13525. + echo i860-stratus-sysv4
  13526. + exit ;;
  13527. + i*86:VOS:*:*)
  13528. + # From Paul.Green@stratus.com.
  13529. + echo ${UNAME_MACHINE}-stratus-vos
  13530. + exit ;;
  13531. + *:VOS:*:*)
  13532. + # From Paul.Green@stratus.com.
  13533. + echo hppa1.1-stratus-vos
  13534. + exit ;;
  13535. + mc68*:A/UX:*:*)
  13536. + echo m68k-apple-aux${UNAME_RELEASE}
  13537. + exit ;;
  13538. + news*:NEWS-OS:6*:*)
  13539. + echo mips-sony-newsos6
  13540. + exit ;;
  13541. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  13542. + if [ -d /usr/nec ]; then
  13543. + echo mips-nec-sysv${UNAME_RELEASE}
  13544. + else
  13545. + echo mips-unknown-sysv${UNAME_RELEASE}
  13546. + fi
  13547. + exit ;;
  13548. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  13549. + echo powerpc-be-beos
  13550. + exit ;;
  13551. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  13552. + echo powerpc-apple-beos
  13553. + exit ;;
  13554. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  13555. + echo i586-pc-beos
  13556. + exit ;;
  13557. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  13558. + echo i586-pc-haiku
  13559. + exit ;;
  13560. + SX-4:SUPER-UX:*:*)
  13561. + echo sx4-nec-superux${UNAME_RELEASE}
  13562. + exit ;;
  13563. + SX-5:SUPER-UX:*:*)
  13564. + echo sx5-nec-superux${UNAME_RELEASE}
  13565. + exit ;;
  13566. + SX-6:SUPER-UX:*:*)
  13567. + echo sx6-nec-superux${UNAME_RELEASE}
  13568. + exit ;;
  13569. + SX-7:SUPER-UX:*:*)
  13570. + echo sx7-nec-superux${UNAME_RELEASE}
  13571. + exit ;;
  13572. + SX-8:SUPER-UX:*:*)
  13573. + echo sx8-nec-superux${UNAME_RELEASE}
  13574. + exit ;;
  13575. + SX-8R:SUPER-UX:*:*)
  13576. + echo sx8r-nec-superux${UNAME_RELEASE}
  13577. + exit ;;
  13578. + Power*:Rhapsody:*:*)
  13579. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  13580. + exit ;;
  13581. + *:Rhapsody:*:*)
  13582. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  13583. + exit ;;
  13584. + *:Darwin:*:*)
  13585. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  13586. + case $UNAME_PROCESSOR in
  13587. + unknown) UNAME_PROCESSOR=powerpc ;;
  13588. + esac
  13589. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  13590. + exit ;;
  13591. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  13592. + UNAME_PROCESSOR=`uname -p`
  13593. + if test "$UNAME_PROCESSOR" = "x86"; then
  13594. + UNAME_PROCESSOR=i386
  13595. + UNAME_MACHINE=pc
  13596. + fi
  13597. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  13598. + exit ;;
  13599. + *:QNX:*:4*)
  13600. + echo i386-pc-qnx
  13601. + exit ;;
  13602. + NSE-?:NONSTOP_KERNEL:*:*)
  13603. + echo nse-tandem-nsk${UNAME_RELEASE}
  13604. + exit ;;
  13605. + NSR-?:NONSTOP_KERNEL:*:*)
  13606. + echo nsr-tandem-nsk${UNAME_RELEASE}
  13607. + exit ;;
  13608. + *:NonStop-UX:*:*)
  13609. + echo mips-compaq-nonstopux
  13610. + exit ;;
  13611. + BS2000:POSIX*:*:*)
  13612. + echo bs2000-siemens-sysv
  13613. + exit ;;
  13614. + DS/*:UNIX_System_V:*:*)
  13615. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  13616. + exit ;;
  13617. + *:Plan9:*:*)
  13618. + # "uname -m" is not consistent, so use $cputype instead. 386
  13619. + # is converted to i386 for consistency with other x86
  13620. + # operating systems.
  13621. + if test "$cputype" = "386"; then
  13622. + UNAME_MACHINE=i386
  13623. + else
  13624. + UNAME_MACHINE="$cputype"
  13625. + fi
  13626. + echo ${UNAME_MACHINE}-unknown-plan9
  13627. + exit ;;
  13628. + *:TOPS-10:*:*)
  13629. + echo pdp10-unknown-tops10
  13630. + exit ;;
  13631. + *:TENEX:*:*)
  13632. + echo pdp10-unknown-tenex
  13633. + exit ;;
  13634. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  13635. + echo pdp10-dec-tops20
  13636. + exit ;;
  13637. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  13638. + echo pdp10-xkl-tops20
  13639. + exit ;;
  13640. + *:TOPS-20:*:*)
  13641. + echo pdp10-unknown-tops20
  13642. + exit ;;
  13643. + *:ITS:*:*)
  13644. + echo pdp10-unknown-its
  13645. + exit ;;
  13646. + SEI:*:*:SEIUX)
  13647. + echo mips-sei-seiux${UNAME_RELEASE}
  13648. + exit ;;
  13649. + *:DragonFly:*:*)
  13650. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  13651. + exit ;;
  13652. + *:*VMS:*:*)
  13653. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  13654. + case "${UNAME_MACHINE}" in
  13655. + A*) echo alpha-dec-vms ; exit ;;
  13656. + I*) echo ia64-dec-vms ; exit ;;
  13657. + V*) echo vax-dec-vms ; exit ;;
  13658. + esac ;;
  13659. + *:XENIX:*:SysV)
  13660. + echo i386-pc-xenix
  13661. + exit ;;
  13662. + i*86:skyos:*:*)
  13663. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  13664. + exit ;;
  13665. + i*86:rdos:*:*)
  13666. + echo ${UNAME_MACHINE}-pc-rdos
  13667. + exit ;;
  13668. + i*86:AROS:*:*)
  13669. + echo ${UNAME_MACHINE}-pc-aros
  13670. + exit ;;
  13671. +esac
  13672. +#echo '(No uname command or uname output not recognized.)' 1>&2
  13673. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  13674. -rs6000-*-* | powerpc*-*-*)
  13675. - # Enhancement: On MacOS the "machine" command prints for instance
  13676. - # "ppc750". Interestingly on powerpc970-apple-darwin6.8.5 it prints
  13677. - # "ppc970" where there's no actual #define for 970 from NXGetLocalArchInfo
  13678. - # (as noted below). But the man page says the command is still "under
  13679. - # development", so it doesn't seem wise to use it just yet, not while
  13680. - # there's an alternative.
  13681. - #
  13682. - # Try to read the PVR. mfpvr is a protected instruction, NetBSD, MacOS
  13683. - # and AIX don't allow it in user mode, but the Linux kernel does.
  13684. - #
  13685. - # Using explicit bytes for mfpvr avoids worrying about assembler syntax
  13686. - # and underscores. "char"s are used instead of "int"s to avoid worrying
  13687. - # whether sizeof(int)==4 or if it's the right endianness.
  13688. - #
  13689. - # Note this is no good on AIX, since a C function there is the address of
  13690. - # a function descriptor, not actual code. But this doesn't matter since
  13691. - # AIX doesn't allow mfpvr anyway.
  13692. - #
  13693. - cat >$dummy.c <<\EOF
  13694. -#include <stdio.h>
  13695. -struct {
  13696. - int n; /* force 4-byte alignment */
  13697. - char a[8];
  13698. -} getpvr = {
  13699. - 0,
  13700. - {
  13701. - 0x7c, 0x7f, 0x42, 0xa6, /* mfpvr r3 */
  13702. - 0x4e, 0x80, 0x00, 0x20, /* blr */
  13703. - }
  13704. -};
  13705. -int
  13706. +eval $set_cc_for_build
  13707. +cat >$dummy.c <<EOF
  13708. +#ifdef _SEQUENT_
  13709. +# include <sys/types.h>
  13710. +# include <sys/utsname.h>
  13711. +#endif
  13712. main ()
  13713. {
  13714. - unsigned (*fun)();
  13715. - unsigned pvr;
  13716. +#if defined (sony)
  13717. +#if defined (MIPSEB)
  13718. + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  13719. + I don't know.... */
  13720. + printf ("mips-sony-bsd\n"); exit (0);
  13721. +#else
  13722. +#include <sys/param.h>
  13723. + printf ("m68k-sony-newsos%s\n",
  13724. +#ifdef NEWSOS4
  13725. + "4"
  13726. +#else
  13727. + ""
  13728. +#endif
  13729. + ); exit (0);
  13730. +#endif
  13731. +#endif
  13732. - /* a separate "fun" variable is necessary for gcc 2.95.2 on MacOS,
  13733. - it gets a compiler error on a combined cast and call */
  13734. - fun = (unsigned (*)()) getpvr.a;
  13735. - pvr = (*fun) ();
  13736. -
  13737. - switch (pvr >> 16) {
  13738. - case 0x0001: puts ("powerpc601"); break;
  13739. - case 0x0003: puts ("powerpc603"); break;
  13740. - case 0x0004: puts ("powerpc604"); break;
  13741. - case 0x0006: puts ("powerpc603e"); break;
  13742. - case 0x0007: puts ("powerpc603e"); break; /* 603ev */
  13743. - case 0x0008: puts ("powerpc750"); break;
  13744. - case 0x0009: puts ("powerpc604e"); break;
  13745. - case 0x000a: puts ("powerpc604e"); break; /* 604ev5 */
  13746. - case 0x000c: puts ("powerpc7400"); break;
  13747. - case 0x0041: puts ("powerpc630"); break;
  13748. - case 0x0050: puts ("powerpc860"); break;
  13749. - case 0x8000: puts ("powerpc7450"); break;
  13750. - case 0x8001: puts ("powerpc7455"); break;
  13751. - case 0x8002: puts ("powerpc7457"); break;
  13752. - case 0x8003: puts ("powerpc7447"); break; /* really 7447A */
  13753. - case 0x800c: puts ("powerpc7410"); break;
  13754. - }
  13755. - return 0;
  13756. -}
  13757. -EOF
  13758. - if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then
  13759. - # This style construct is needed on AIX 4.3 to suppress the SIGILL error
  13760. - # from (*fun)(). Using $SHELL -c ./$dummy 2>/dev/null doesn't work.
  13761. - { x=`./$dummy`; } 2>/dev/null
  13762. - if test -n "$x"; then
  13763. - exact_cpu=$x
  13764. - fi
  13765. - fi
  13766. - rm -f $dummy.c $dummy.o $dummy $dummy.core
  13767. -
  13768. - # Grep the linux kernel /proc/cpuinfo pseudo-file.
  13769. - # Anything unrecognised is ignored, since of course we mustn't spit out
  13770. - # a cpu type config.sub doesn't know.
  13771. - if test -z "$exact_cpu" && test -f /proc/cpuinfo; then
  13772. - x=`grep "^cpu[ ]" /proc/cpuinfo | head -n 1`
  13773. - x=`echo $x | sed -n 's/^cpu[ ]*:[ ]*\([A-Za-z0-9]*\).*/\1/p'`
  13774. - x=`echo $x | sed 's/PPC//'`
  13775. - case $x in
  13776. - 601) exact_cpu="power" ;;
  13777. - 603ev) exact_cpu="powerpc603e" ;;
  13778. - 604ev5) exact_cpu="powerpc604e" ;;
  13779. - 603 | 603e | 604 | 604e | 750 | 821 | 860 | 970)
  13780. - exact_cpu="powerpc$x" ;;
  13781. - POWER[4-9])
  13782. - exact_cpu=`echo $x | sed "s;POWER;power;"` ;;
  13783. - esac
  13784. - fi
  13785. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  13786. + printf ("arm-acorn-riscix\n"); exit (0);
  13787. +#endif
  13788. - if test -z "$exact_cpu"; then
  13789. - # On AIX, try looking at _system_configuration. This is present in
  13790. - # version 4 at least.
  13791. - cat >$dummy.c <<EOF
  13792. -#include <stdio.h>
  13793. -#include <sys/systemcfg.h>
  13794. -int
  13795. -main ()
  13796. -{
  13797. - switch (_system_configuration.implementation) {
  13798. - /* Old versions of AIX don't have all these constants,
  13799. - use ifdef for safety. */
  13800. -#ifdef POWER_RS2
  13801. - case POWER_RS2: puts ("power2"); break;
  13802. -#endif
  13803. -#ifdef POWER_601
  13804. - case POWER_601: puts ("power"); break;
  13805. -#endif
  13806. -#ifdef POWER_603
  13807. - case POWER_603: puts ("powerpc603"); break;
  13808. -#endif
  13809. -#ifdef POWER_604
  13810. - case POWER_604: puts ("powerpc604"); break;
  13811. -#endif
  13812. -#ifdef POWER_620
  13813. - case POWER_620: puts ("powerpc620"); break;
  13814. -#endif
  13815. -#ifdef POWER_630
  13816. - case POWER_630: puts ("powerpc630"); break;
  13817. -#endif
  13818. - /* Dunno what this is, leave it out for now.
  13819. - case POWER_A35: puts ("powerpca35"); break;
  13820. - */
  13821. - /* This is waiting for a bit more info.
  13822. - case POWER_RS64II: puts ("powerpcrs64ii"); break;
  13823. - */
  13824. -#ifdef POWER_4
  13825. - case POWER_4: puts ("power4"); break;
  13826. -#endif
  13827. -#ifdef POWER_5
  13828. - case POWER_5: puts ("power5"); break;
  13829. -#endif
  13830. -#ifdef POWER_6
  13831. - case POWER_6: puts ("power6"); break;
  13832. -#endif
  13833. - default:
  13834. - if (_system_configuration.architecture == POWER_RS)
  13835. - puts ("power");
  13836. - else if (_system_configuration.width == 64)
  13837. - puts ("powerpc64");
  13838. - }
  13839. - return 0;
  13840. -}
  13841. -EOF
  13842. - if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then
  13843. - x=`./$dummy`
  13844. - if test -n "$x"; then
  13845. - exact_cpu=$x
  13846. - fi
  13847. - fi
  13848. - rm -f $dummy.c $dummy.o $dummy
  13849. - fi
  13850. -
  13851. - if test -z "$exact_cpu"; then
  13852. - # On MacOS X (or any Mach-O presumably), NXGetLocalArchInfo cpusubtype
  13853. - # can tell us the exact cpu.
  13854. - cat >$dummy.c <<EOF
  13855. -#include <stdio.h>
  13856. -#include <mach-o/arch.h>
  13857. -int
  13858. -main (void)
  13859. -{
  13860. - const NXArchInfo *a = NXGetLocalArchInfo();
  13861. - if (a->cputype == CPU_TYPE_POWERPC)
  13862. - {
  13863. - switch (a->cpusubtype) {
  13864. - /* The following known to Darwin 1.3. */
  13865. - case CPU_SUBTYPE_POWERPC_601: puts ("powerpc601"); break;
  13866. - case CPU_SUBTYPE_POWERPC_602: puts ("powerpc602"); break;
  13867. - case CPU_SUBTYPE_POWERPC_603: puts ("powerpc603"); break;
  13868. - case CPU_SUBTYPE_POWERPC_603e: puts ("powerpc603e"); break;
  13869. - case CPU_SUBTYPE_POWERPC_603ev: puts ("powerpc603e"); break;
  13870. - case CPU_SUBTYPE_POWERPC_604: puts ("powerpc604"); break;
  13871. - case CPU_SUBTYPE_POWERPC_604e: puts ("powerpc604e"); break;
  13872. - case CPU_SUBTYPE_POWERPC_620: puts ("powerpc620"); break;
  13873. - case CPU_SUBTYPE_POWERPC_750: puts ("powerpc750"); break;
  13874. - case CPU_SUBTYPE_POWERPC_7400: puts ("powerpc7400"); break;
  13875. - case CPU_SUBTYPE_POWERPC_7450: puts ("powerpc7450"); break;
  13876. - /* Darwin 6.8.5 doesn't define the following */
  13877. - case 0x8001: puts ("powerpc7455"); break;
  13878. - case 0x8002: puts ("powerpc7457"); break;
  13879. - case 0x8003: puts ("powerpc7447"); break;
  13880. - case 100: puts ("powerpc970"); break;
  13881. - }
  13882. - }
  13883. - return 0;
  13884. -}
  13885. -EOF
  13886. - if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then
  13887. - x=`./$dummy`
  13888. - if test -n "$x"; then
  13889. - exact_cpu=$x
  13890. - fi
  13891. - fi
  13892. - rm -f $dummy.c $dummy.o $dummy
  13893. - fi
  13894. - ;;
  13895. -
  13896. -sparc-*-* | sparc64-*-*)
  13897. - # If we can recognise an actual v7 then $exact_cpu is set to "sparc" so as
  13898. - # to short-circuit subsequent tests.
  13899. -
  13900. - # Grep the linux kernel /proc/cpuinfo pseudo-file.
  13901. - # A typical line is "cpu\t\t: TI UltraSparc II (BlackBird)"
  13902. - # See arch/sparc/kernel/cpu.c and arch/sparc64/kernel/cpu.c.
  13903. - #
  13904. - if test -f /proc/cpuinfo; then
  13905. - if grep 'cpu.*Cypress' /proc/cpuinfo >/dev/null; then
  13906. - exact_cpu="sparc" # ie. v7
  13907. - elif grep 'cpu.*Power-UP' /proc/cpuinfo >/dev/null; then
  13908. - exact_cpu="sparc" # ie. v7
  13909. - elif grep 'cpu.*HyperSparc' /proc/cpuinfo >/dev/null; then
  13910. - exact_cpu="sparcv8"
  13911. - elif grep 'cpu.*SuperSparc' /proc/cpuinfo >/dev/null; then
  13912. - exact_cpu="supersparc"
  13913. - elif grep 'cpu.*MicroSparc' /proc/cpuinfo >/dev/null; then
  13914. - exact_cpu="microsparc"
  13915. - elif grep 'cpu.*MB86904' /proc/cpuinfo >/dev/null; then
  13916. - # actually MicroSPARC-II
  13917. - exact_cpu=microsparc
  13918. - elif grep 'cpu.*UltraSparc T1' /proc/cpuinfo >/dev/null; then
  13919. - # this grep pattern has not been tested against any Linux
  13920. - exact_cpu="ultrasparct1"
  13921. - elif grep 'cpu.*UltraSparc III' /proc/cpuinfo >/dev/null; then
  13922. - exact_cpu="ultrasparc3"
  13923. - elif grep 'cpu.*UltraSparc IIi' /proc/cpuinfo >/dev/null; then
  13924. - exact_cpu="ultrasparc2i"
  13925. - elif grep 'cpu.*UltraSparc II' /proc/cpuinfo >/dev/null; then
  13926. - exact_cpu="ultrasparc2"
  13927. - elif grep 'cpu.*UltraSparc' /proc/cpuinfo >/dev/null; then
  13928. - exact_cpu="ultrasparc"
  13929. - fi
  13930. - fi
  13931. -
  13932. - # Grep the output from sysinfo on SunOS.
  13933. - # sysinfo has been seen living in /bin or in /usr/kvm
  13934. - # cpu0 is a "SuperSPARC Model 41 SPARCmodule" CPU
  13935. - # cpu0 is a "75 MHz TI,TMS390Z55" CPU
  13936. - #
  13937. - if test -z "$exact_cpu"; then
  13938. - for i in sysinfo /usr/kvm/sysinfo; do
  13939. - if $SHELL -c $i 2>/dev/null >conftest.dat; then
  13940. - if grep 'cpu0 is a "SuperSPARC' conftest.dat >/dev/null; then
  13941. - exact_cpu=supersparc
  13942. - break
  13943. - elif grep 'cpu0 is a .*TMS390Z5.' conftest.dat >/dev/null; then
  13944. - # TMS390Z50 and TMS390Z55
  13945. - exact_cpu=supersparc
  13946. - break
  13947. - fi
  13948. - fi
  13949. - done
  13950. - rm -f conftest.dat
  13951. - fi
  13952. -
  13953. - # Grep the output from prtconf on Solaris.
  13954. - # Use an explicit /usr/sbin, since that directory might not be in a normal
  13955. - # user's path.
  13956. - #
  13957. - # SUNW,UltraSPARC (driver not attached)
  13958. - # SUNW,UltraSPARC-II (driver not attached)
  13959. - # SUNW,UltraSPARC-IIi (driver not attached)
  13960. - # SUNW,UltraSPARC-III+ (driver not attached)
  13961. - # Ross,RT625 (driver not attached)
  13962. - # TI,TMS390Z50 (driver not attached)
  13963. - #
  13964. - # /usr/sbin/sysdef prints similar information, but includes all loadable
  13965. - # cpu modules, not just the real cpu.
  13966. - #
  13967. - # We first try a plain prtconf, since that is known to work on older systems.
  13968. - # But for newer T1 systems, that doesn't produce any useful output, we need
  13969. - # "prtconf -vp" there.
  13970. - #
  13971. - for prtconfopt in "" "-vp"; do
  13972. - if test -z "$exact_cpu"; then
  13973. - if $SHELL -c "/usr/sbin/prtconf $prtconfopt" 2>/dev/null >conftest.dat; then
  13974. - if grep 'SUNW,UltraSPARC-T1' conftest.dat >/dev/null; then
  13975. - exact_cpu=ultrasparct1
  13976. - elif grep 'SUNW,UltraSPARC-III' conftest.dat >/dev/null; then
  13977. - exact_cpu=ultrasparc3
  13978. - elif grep 'SUNW,UltraSPARC-IIi' conftest.dat >/dev/null; then
  13979. - exact_cpu=ultrasparc2i
  13980. - elif grep 'SUNW,UltraSPARC-II' conftest.dat >/dev/null; then
  13981. - exact_cpu=ultrasparc2
  13982. - elif grep 'SUNW,UltraSPARC' conftest.dat >/dev/null; then
  13983. - exact_cpu=ultrasparc
  13984. - elif grep 'Ross,RT62.' conftest.dat >/dev/null; then
  13985. - # RT620, RT625, RT626 hypersparcs (v8).
  13986. - exact_cpu=sparcv8
  13987. - elif grep 'TI,TMS390Z5.' conftest.dat >/dev/null; then
  13988. - # TMS390Z50 and TMS390Z55
  13989. - exact_cpu=supersparc
  13990. - elif grep 'TI,TMS390S10' conftest.dat >/dev/null; then
  13991. - exact_cpu=microsparc
  13992. - elif grep 'FMI,MB86904' conftest.dat >/dev/null; then
  13993. - # actually MicroSPARC-II
  13994. - exact_cpu=microsparc
  13995. - fi
  13996. - fi
  13997. - rm -f conftest.dat
  13998. - fi
  13999. - done
  14000. -
  14001. - # Grep the output from sysctl hw.model on sparc or sparc64 *BSD.
  14002. - # Use an explicit /sbin, since that directory might not be in a normal
  14003. - # user's path. Example outputs,
  14004. - #
  14005. - # hw.model: Sun Microsystems UltraSparc-IIi
  14006. - #
  14007. - if test -z "$exact_cpu"; then
  14008. - if $SHELL -c "/sbin/sysctl hw.model" 2>/dev/null >conftest.dat; then
  14009. - if grep 'UltraSparc-T1' conftest.dat >/dev/null; then
  14010. - # this grep pattern has not been tested against any BSD
  14011. - exact_cpu=ultrasparct1
  14012. - elif grep 'UltraSparc-III' conftest.dat >/dev/null; then
  14013. - exact_cpu=ultrasparc3
  14014. - elif grep 'UltraSparc-IIi' conftest.dat >/dev/null; then
  14015. - exact_cpu=ultrasparc2i
  14016. - elif grep 'UltraSparc-II' conftest.dat >/dev/null; then
  14017. - exact_cpu=ultrasparc2
  14018. - elif grep 'UltraSparc' conftest.dat >/dev/null; then
  14019. - exact_cpu=ultrasparc
  14020. - elif grep 'TMS390Z5.' conftest.dat >/dev/null; then
  14021. - # TMS390Z50 and TMS390Z55
  14022. - exact_cpu=supersparc
  14023. - elif grep 'TMS390S10' conftest.dat >/dev/null; then
  14024. - exact_cpu=microsparc
  14025. - elif grep 'MB86904' conftest.dat >/dev/null; then
  14026. - # actually MicroSPARC-II
  14027. - exact_cpu=microsparc
  14028. - elif grep 'MB86907' conftest.dat >/dev/null; then
  14029. - exact_cpu=turbosparc
  14030. - fi
  14031. - fi
  14032. - rm -f conftest.dat
  14033. - fi
  14034. -
  14035. - # sun4m and sun4d are v8s of some sort, sun4u is a v9 of some sort
  14036. - #
  14037. - if test -z "$exact_cpu"; then
  14038. - case `uname -m` in
  14039. - sun4[md]) exact_cpu=sparcv8 ;;
  14040. - sun4u) exact_cpu=sparcv9 ;;
  14041. - esac
  14042. - fi
  14043. - ;;
  14044. +#if defined (hp300) && !defined (hpux)
  14045. + printf ("m68k-hp-bsd\n"); exit (0);
  14046. +#endif
  14047. -i?86-*-* | amd64-*-* | x86_64-*-*)
  14048. - cat <<EOF >${dummy}0.s
  14049. - .globl cpuid
  14050. - .globl _cpuid
  14051. -cpuid:
  14052. -_cpuid:
  14053. - pushl %esi
  14054. - pushl %ebx
  14055. - movl 16(%esp),%eax
  14056. - .byte 0x0f
  14057. - .byte 0xa2
  14058. - movl 12(%esp),%esi
  14059. - movl %ebx,(%esi)
  14060. - movl %edx,4(%esi)
  14061. - movl %ecx,8(%esi)
  14062. - popl %ebx
  14063. - popl %esi
  14064. - ret
  14065. -EOF
  14066. - cat <<EOF >${dummy}1.s
  14067. - .globl cpuid
  14068. - .globl _cpuid
  14069. -cpuid:
  14070. -_cpuid:
  14071. - push %rbx
  14072. - mov %esi,%eax
  14073. - .byte 0x0f
  14074. - .byte 0xa2
  14075. - mov %ebx,(%rdi)
  14076. - mov %edx,4(%rdi)
  14077. - mov %ecx,8(%rdi)
  14078. - pop %rbx
  14079. - ret
  14080. -EOF
  14081. - cat <<EOF >${dummy}2.c
  14082. -main ()
  14083. -{
  14084. - char vendor_string[13];
  14085. - char dummy_string[12];
  14086. - long fms;
  14087. - int family, model, stepping;
  14088. - char *modelstr;
  14089. -
  14090. - cpuid (vendor_string, 0);
  14091. - vendor_string[12] = 0;
  14092. -
  14093. - fms = cpuid (dummy_string, 1);
  14094. -
  14095. - family = ((fms >> 8) & 0xf) + ((fms >> 20) & 0xff);
  14096. - model = ((fms >> 4) & 0xf) + ((fms >> 12) & 0xf0);
  14097. - stepping = fms & 0xf;
  14098. -
  14099. - modelstr = "$guess_cpu";
  14100. - if (strcmp (vendor_string, "GenuineIntel") == 0)
  14101. - {
  14102. - switch (family)
  14103. - {
  14104. - case 5:
  14105. - if (model <= 2) modelstr = "pentium";
  14106. - else if (model >= 4) modelstr = "pentiummmx";
  14107. - break;
  14108. - case 6:
  14109. - if (model <= 1) modelstr = "pentiumpro";
  14110. - else if (model <= 6) modelstr = "pentium2";
  14111. - else if (model <= 8) modelstr = "pentium3";
  14112. - else if (model <= 9) modelstr = "pentiumm";
  14113. - else if (model <= 12) modelstr = "pentium3";
  14114. - else if (model <= 14) modelstr = "pentiumm";
  14115. - else if (model <= 25) modelstr = "core2";
  14116. - else if (model <= 27) modelstr = "core2"; /* core i5, i7 */
  14117. - else if (model == 28) modelstr = "atom";
  14118. - else if (model == 29) modelstr = "core2";
  14119. - break;
  14120. - case 15:
  14121. - modelstr = "pentium4";
  14122. - break;
  14123. - }
  14124. - }
  14125. - else if (strcmp (vendor_string, "AuthenticAMD") == 0)
  14126. - {
  14127. - switch (family)
  14128. - {
  14129. - case 5:
  14130. - if (model <= 3) modelstr = "k5";
  14131. - else if (model <= 7) modelstr = "k6";
  14132. - else if (model == 8) modelstr = "k62";
  14133. - else if (model == 9) modelstr = "k63";
  14134. - else if (model == 10) modelstr = "geode";
  14135. - else if (model == 13) modelstr = "k63";
  14136. - break;
  14137. - case 6:
  14138. - modelstr = "athlon";
  14139. - break;
  14140. - case 15:
  14141. - case 16:
  14142. - modelstr = "athlon64";
  14143. - break;
  14144. - }
  14145. - }
  14146. - else if (strcmp (vendor_string, "CyrixInstead") == 0)
  14147. - {
  14148. - /* Should recognize Cyrix' processors too. */
  14149. +#if defined (NeXT)
  14150. +#if !defined (__ARCHITECTURE__)
  14151. +#define __ARCHITECTURE__ "m68k"
  14152. +#endif
  14153. + int version;
  14154. + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  14155. + if (version < 4)
  14156. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  14157. + else
  14158. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  14159. + exit (0);
  14160. +#endif
  14161. +
  14162. +#if defined (MULTIMAX) || defined (n16)
  14163. +#if defined (UMAXV)
  14164. + printf ("ns32k-encore-sysv\n"); exit (0);
  14165. +#else
  14166. +#if defined (CMU)
  14167. + printf ("ns32k-encore-mach\n"); exit (0);
  14168. +#else
  14169. + printf ("ns32k-encore-bsd\n"); exit (0);
  14170. +#endif
  14171. +#endif
  14172. +#endif
  14173. +
  14174. +#if defined (__386BSD__)
  14175. + printf ("i386-pc-bsd\n"); exit (0);
  14176. +#endif
  14177. +
  14178. +#if defined (sequent)
  14179. +#if defined (i386)
  14180. + printf ("i386-sequent-dynix\n"); exit (0);
  14181. +#endif
  14182. +#if defined (ns32000)
  14183. + printf ("ns32k-sequent-dynix\n"); exit (0);
  14184. +#endif
  14185. +#endif
  14186. +
  14187. +#if defined (_SEQUENT_)
  14188. + struct utsname un;
  14189. +
  14190. + uname(&un);
  14191. +
  14192. + if (strncmp(un.version, "V2", 2) == 0) {
  14193. + printf ("i386-sequent-ptx2\n"); exit (0);
  14194. }
  14195. - else if (strcmp (vendor_string, "CentaurHauls") == 0)
  14196. - {
  14197. - switch (family)
  14198. - {
  14199. - case 6:
  14200. - if (model < 9) modelstr = "viac3";
  14201. - else modelstr = "viac32";
  14202. - break;
  14203. - }
  14204. + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  14205. + printf ("i386-sequent-ptx1\n"); exit (0);
  14206. }
  14207. + printf ("i386-sequent-ptx\n"); exit (0);
  14208. +
  14209. +#endif
  14210. +
  14211. +#if defined (vax)
  14212. +# if !defined (ultrix)
  14213. +# include <sys/param.h>
  14214. +# if defined (BSD)
  14215. +# if BSD == 43
  14216. + printf ("vax-dec-bsd4.3\n"); exit (0);
  14217. +# else
  14218. +# if BSD == 199006
  14219. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  14220. +# else
  14221. + printf ("vax-dec-bsd\n"); exit (0);
  14222. +# endif
  14223. +# endif
  14224. +# else
  14225. + printf ("vax-dec-bsd\n"); exit (0);
  14226. +# endif
  14227. +# else
  14228. + printf ("vax-dec-ultrix\n"); exit (0);
  14229. +# endif
  14230. +#endif
  14231. +
  14232. +#if defined (alliant) && defined (i860)
  14233. + printf ("i860-alliant-bsd\n"); exit (0);
  14234. +#endif
  14235. - printf ("%s\n", modelstr);
  14236. - return 0;
  14237. + exit (1);
  14238. }
  14239. EOF
  14240. - if ($CC_FOR_BUILD ${dummy}1.s ${dummy}2.c -o $dummy) >/dev/null 2>&1; then
  14241. - # On 80386 and early 80486 cpuid is not available and will result in a
  14242. - # SIGILL message, hence 2>/dev/null.
  14243. - #
  14244. - # On i386-unknown-freebsd4.9, "/bin/sh -c ./dummy" seems to send an
  14245. - # "Illegal instruction (core dumped)" message to stdout, so we test $?
  14246. - # to check if the program run was successful.
  14247. - #
  14248. - x=`$SHELL -c ./$dummy 2>/dev/null`
  14249. - if test $? = 0 && test -n "$x"; then
  14250. - exact_cpu=$x
  14251. - fi
  14252. - fi
  14253. -
  14254. - if test -z "$exact_cpu"; then
  14255. - if ($CC_FOR_BUILD ${dummy}0.s ${dummy}2.c -o $dummy) >/dev/null 2>&1; then
  14256. - # On 80386 and early 80486 cpuid is not available and will result in a
  14257. - # SIGILL message, hence 2>/dev/null.
  14258. - #
  14259. - # On i386-unknown-freebsd4.9, "/bin/sh -c ./dummy" seems to send an
  14260. - # "Illegal instruction (core dumped)" message to stdout, so we test $?
  14261. - # to check if the program run was successful.
  14262. - #
  14263. - x=`$SHELL -c ./$dummy 2>/dev/null`
  14264. - if test $? = 0 && test -n "$x"; then
  14265. - exact_cpu=$x
  14266. - fi
  14267. - fi
  14268. - fi
  14269. -
  14270. - # We need to remove some .o files here since lame C compilers
  14271. - # generate these even when not asked.
  14272. - rm -f ${dummy}0.s ${dummy}0.o ${dummy}1.s ${dummy}1.o ${dummy}2.c ${dummy}2.o $dummy
  14273. - ;;
  14274. -
  14275. -esac
  14276. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  14277. + { echo "$SYSTEM_NAME"; exit; }
  14278. +# Apollos put the system type in the environment.
  14279. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  14280. -# -------------------------------------------------------------------------
  14281. -# Use an exact cpu, if possible
  14282. +# Convex versions that predate uname can use getsysinfo(1)
  14283. -if test -n "$exact_cpu"; then
  14284. - echo "$exact_cpu$guess_rest"
  14285. -else
  14286. - echo "$guess_full"
  14287. +if [ -x /usr/convex/getsysinfo ]
  14288. +then
  14289. + case `getsysinfo -f cpu_type` in
  14290. + c1*)
  14291. + echo c1-convex-bsd
  14292. + exit ;;
  14293. + c2*)
  14294. + if getsysinfo -f scalar_acc
  14295. + then echo c32-convex-bsd
  14296. + else echo c2-convex-bsd
  14297. + fi
  14298. + exit ;;
  14299. + c34*)
  14300. + echo c34-convex-bsd
  14301. + exit ;;
  14302. + c38*)
  14303. + echo c38-convex-bsd
  14304. + exit ;;
  14305. + c4*)
  14306. + echo c4-convex-bsd
  14307. + exit ;;
  14308. + esac
  14309. fi
  14310. -exit 0
  14311. +cat >&2 <<EOF
  14312. +$0: unable to guess system type
  14313. +
  14314. +This script, last modified $timestamp, has failed to recognize
  14315. +the operating system you are using. It is advised that you
  14316. +download the most up to date version of the config scripts from
  14317. +
  14318. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  14319. +and
  14320. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  14321. +
  14322. +If the version you run ($0) is already up to date, please
  14323. +send the following data and any information you think might be
  14324. +pertinent to <config-patches@gnu.org> in order to provide the needed
  14325. +information to handle your system.
  14326. +
  14327. +config.guess timestamp = $timestamp
  14328. +
  14329. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14330. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14331. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14332. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14333. +
  14334. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  14335. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  14336. +
  14337. +hostinfo = `(hostinfo) 2>/dev/null`
  14338. +/bin/universe = `(/bin/universe) 2>/dev/null`
  14339. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  14340. +/bin/arch = `(/bin/arch) 2>/dev/null`
  14341. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  14342. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  14343. +
  14344. +UNAME_MACHINE = ${UNAME_MACHINE}
  14345. +UNAME_RELEASE = ${UNAME_RELEASE}
  14346. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  14347. +UNAME_VERSION = ${UNAME_VERSION}
  14348. +EOF
  14349. +exit 1
  14350. # Local variables:
  14351. -# fill-column: 76
  14352. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  14353. +# time-stamp-start: "timestamp='"
  14354. +# time-stamp-format: "%:y-%02m-%02d"
  14355. +# time-stamp-end: "'"
  14356. # End:
  14357. diff -Nur gmp-4.3.2.orig/config.in gmp-4.3.2/config.in
  14358. --- gmp-4.3.2.orig/config.in 2010-01-07 21:09:40.000000000 +0100
  14359. +++ gmp-4.3.2/config.in 2011-02-16 19:23:18.000000000 +0100
  14360. @@ -21,6 +21,9 @@
  14361. along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  14362. */
  14363. +/* Define if building universal (internal helper macro) */
  14364. +#undef AC_APPLE_UNIVERSAL_BUILD
  14365. +
  14366. /* The gmp-mparam.h file (a string) the tune program should suggest updating.
  14367. */
  14368. #undef GMP_MPARAM_H_SUGGEST
  14369. @@ -423,6 +426,10 @@
  14370. /* Assembler local label prefix */
  14371. #undef LSYM_PREFIX
  14372. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  14373. + */
  14374. +#undef LT_OBJDIR
  14375. +
  14376. /* Name of package */
  14377. #undef PACKAGE
  14378. @@ -438,6 +445,9 @@
  14379. /* Define to the one symbol short name of this package. */
  14380. #undef PACKAGE_TARNAME
  14381. +/* Define to the home page for this package. */
  14382. +#undef PACKAGE_URL
  14383. +
  14384. /* Define to the version of this package. */
  14385. #undef PACKAGE_VERSION
  14386. @@ -499,6 +509,18 @@
  14387. #undef WANT_TMP_NOTREENTRANT
  14388. #undef WANT_TMP_DEBUG
  14389. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  14390. + significant byte first (like Motorola and SPARC, unlike Intel). */
  14391. +#if defined AC_APPLE_UNIVERSAL_BUILD
  14392. +# if defined __BIG_ENDIAN__
  14393. +# define WORDS_BIGENDIAN 1
  14394. +# endif
  14395. +#else
  14396. +# ifndef WORDS_BIGENDIAN
  14397. +# undef WORDS_BIGENDIAN
  14398. +# endif
  14399. +#endif
  14400. +
  14401. /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
  14402. `char[]'. */
  14403. #undef YYTEXT_POINTER
  14404. @@ -512,9 +534,19 @@
  14405. #undef inline
  14406. #endif
  14407. -/* Define to equivalent of C99 restrict keyword, or to nothing if this is not
  14408. - supported. Do not define if restrict is supported directly. */
  14409. +/* Define to the equivalent of the C99 'restrict' keyword, or to
  14410. + nothing if this is not supported. Do not define if restrict is
  14411. + supported directly. */
  14412. #undef restrict
  14413. +/* Work around a bug in Sun C++: it does not support _Restrict or
  14414. + __restrict__, even though the corresponding Sun C compiler ends up with
  14415. + "#define restrict _Restrict" or "#define restrict __restrict__" in the
  14416. + previous line. Perhaps some future version of Sun C++ will work with
  14417. + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
  14418. +#if defined __SUNPRO_CC && !defined __RESTRICT
  14419. +# define _Restrict
  14420. +# define __restrict__
  14421. +#endif
  14422. /* Define to empty if the keyword `volatile' does not work. Warning: valid
  14423. code using `volatile' can become incorrect without. Disable with care. */
  14424. diff -Nur gmp-4.3.2.orig/config.in~ gmp-4.3.2/config.in~
  14425. --- gmp-4.3.2.orig/config.in~ 1970-01-01 01:00:00.000000000 +0100
  14426. +++ gmp-4.3.2/config.in~ 2010-01-07 21:09:40.000000000 +0100
  14427. @@ -0,0 +1,521 @@
  14428. +/* config.in. Generated from configure.in by autoheader. */
  14429. +
  14430. +/*
  14431. +
  14432. +Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
  14433. +2007 Free Software Foundation, Inc.
  14434. +
  14435. +This file is part of the GNU MP Library.
  14436. +
  14437. +The GNU MP Library is free software; you can redistribute it and/or modify
  14438. +it under the terms of the GNU Lesser General Public License as published
  14439. +by the Free Software Foundation; either version 3 of the License, or (at
  14440. +your option) any later version.
  14441. +
  14442. +The GNU MP Library is distributed in the hope that it will be useful, but
  14443. +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14444. +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  14445. +License for more details.
  14446. +
  14447. +You should have received a copy of the GNU Lesser General Public License
  14448. +along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  14449. +*/
  14450. +
  14451. +/* The gmp-mparam.h file (a string) the tune program should suggest updating.
  14452. + */
  14453. +#undef GMP_MPARAM_H_SUGGEST
  14454. +
  14455. +/* Define to 1 if you have the `alarm' function. */
  14456. +#undef HAVE_ALARM
  14457. +
  14458. +/* Define to 1 if alloca() works (via gmp-impl.h). */
  14459. +#undef HAVE_ALLOCA
  14460. +
  14461. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  14462. + */
  14463. +#undef HAVE_ALLOCA_H
  14464. +
  14465. +/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
  14466. +#undef HAVE_ATTRIBUTE_CONST
  14467. +
  14468. +/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
  14469. +#undef HAVE_ATTRIBUTE_MALLOC
  14470. +
  14471. +/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
  14472. + */
  14473. +#undef HAVE_ATTRIBUTE_MODE
  14474. +
  14475. +/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
  14476. +#undef HAVE_ATTRIBUTE_NORETURN
  14477. +
  14478. +/* Define to 1 if you have the `attr_get' function. */
  14479. +#undef HAVE_ATTR_GET
  14480. +
  14481. +/* Define to 1 if tests/libtests has calling conventions checking for the CPU
  14482. + */
  14483. +#undef HAVE_CALLING_CONVENTIONS
  14484. +
  14485. +/* Define to 1 if you have the `clock' function. */
  14486. +#undef HAVE_CLOCK
  14487. +
  14488. +/* Define to 1 if you have the `clock_gettime' function. */
  14489. +#undef HAVE_CLOCK_GETTIME
  14490. +
  14491. +/* Define to 1 if you have the `cputime' function. */
  14492. +#undef HAVE_CPUTIME
  14493. +
  14494. +/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
  14495. + */
  14496. +#undef HAVE_DECL_FGETC
  14497. +
  14498. +/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
  14499. + */
  14500. +#undef HAVE_DECL_FSCANF
  14501. +
  14502. +/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
  14503. + */
  14504. +#undef HAVE_DECL_OPTARG
  14505. +
  14506. +/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
  14507. + don't. */
  14508. +#undef HAVE_DECL_SYS_ERRLIST
  14509. +
  14510. +/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
  14511. + don't. */
  14512. +#undef HAVE_DECL_SYS_NERR
  14513. +
  14514. +/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
  14515. + */
  14516. +#undef HAVE_DECL_UNGETC
  14517. +
  14518. +/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
  14519. + don't. */
  14520. +#undef HAVE_DECL_VFPRINTF
  14521. +
  14522. +/* Define to 1 if you have the <dlfcn.h> header file. */
  14523. +#undef HAVE_DLFCN_H
  14524. +
  14525. +/* Define one of the following to 1 for the format of a `double'.
  14526. + If your format is not among these choices, or you don't know what it is,
  14527. + then leave all undefined.
  14528. + IEEE_LITTLE_SWAPPED means little endian, but with the two 4-byte halves
  14529. + swapped, as used by ARM CPUs in little endian mode. */
  14530. +#undef HAVE_DOUBLE_IEEE_BIG_ENDIAN
  14531. +#undef HAVE_DOUBLE_IEEE_LITTLE_ENDIAN
  14532. +#undef HAVE_DOUBLE_IEEE_LITTLE_SWAPPED
  14533. +#undef HAVE_DOUBLE_VAX_D
  14534. +#undef HAVE_DOUBLE_VAX_G
  14535. +#undef HAVE_DOUBLE_CRAY_CFP
  14536. +
  14537. +/* Define to 1 if you have the <fcntl.h> header file. */
  14538. +#undef HAVE_FCNTL_H
  14539. +
  14540. +/* Define to 1 if you have the <float.h> header file. */
  14541. +#undef HAVE_FLOAT_H
  14542. +
  14543. +/* Define to 1 if you have the `getpagesize' function. */
  14544. +#undef HAVE_GETPAGESIZE
  14545. +
  14546. +/* Define to 1 if you have the `getrusage' function. */
  14547. +#undef HAVE_GETRUSAGE
  14548. +
  14549. +/* Define to 1 if you have the `getsysinfo' function. */
  14550. +#undef HAVE_GETSYSINFO
  14551. +
  14552. +/* Define to 1 if you have the `gettimeofday' function. */
  14553. +#undef HAVE_GETTIMEOFDAY
  14554. +
  14555. +/* Define one of these to 1 for the host CPU family.
  14556. + If your CPU is not in any of these families, leave all undefined.
  14557. + For an AMD64 chip, define "x86" in ABI=32, but not in ABI=64. */
  14558. +#undef HAVE_HOST_CPU_FAMILY_alpha
  14559. +#undef HAVE_HOST_CPU_FAMILY_m68k
  14560. +#undef HAVE_HOST_CPU_FAMILY_power
  14561. +#undef HAVE_HOST_CPU_FAMILY_powerpc
  14562. +#undef HAVE_HOST_CPU_FAMILY_x86
  14563. +
  14564. +/* Define one of the following to 1 for the host CPU, as per the output of
  14565. + ./config.guess. If your CPU is not listed here, leave all undefined. */
  14566. +#undef HAVE_HOST_CPU_alphaev67
  14567. +#undef HAVE_HOST_CPU_alphaev68
  14568. +#undef HAVE_HOST_CPU_alphaev7
  14569. +#undef HAVE_HOST_CPU_m68020
  14570. +#undef HAVE_HOST_CPU_m68030
  14571. +#undef HAVE_HOST_CPU_m68040
  14572. +#undef HAVE_HOST_CPU_m68060
  14573. +#undef HAVE_HOST_CPU_m68360
  14574. +#undef HAVE_HOST_CPU_powerpc604
  14575. +#undef HAVE_HOST_CPU_powerpc604e
  14576. +#undef HAVE_HOST_CPU_powerpc750
  14577. +#undef HAVE_HOST_CPU_powerpc7400
  14578. +#undef HAVE_HOST_CPU_supersparc
  14579. +#undef HAVE_HOST_CPU_i386
  14580. +#undef HAVE_HOST_CPU_i586
  14581. +#undef HAVE_HOST_CPU_i686
  14582. +#undef HAVE_HOST_CPU_pentium
  14583. +#undef HAVE_HOST_CPU_pentiummmx
  14584. +#undef HAVE_HOST_CPU_pentiumpro
  14585. +#undef HAVE_HOST_CPU_pentium2
  14586. +#undef HAVE_HOST_CPU_pentium3
  14587. +
  14588. +/* Define to 1 if the system has the type `intmax_t'. */
  14589. +#undef HAVE_INTMAX_T
  14590. +
  14591. +/* Define to 1 if you have the <inttypes.h> header file. */
  14592. +#undef HAVE_INTTYPES_H
  14593. +
  14594. +/* Define to 1 if you have the <invent.h> header file. */
  14595. +#undef HAVE_INVENT_H
  14596. +
  14597. +/* Define to 1 if you have the <langinfo.h> header file. */
  14598. +#undef HAVE_LANGINFO_H
  14599. +
  14600. +/* Define one of these to 1 for the endianness of `mp_limb_t'.
  14601. + If the endianness is not a simple big or little, or you don't know what
  14602. + it is, then leave both undefined. */
  14603. +#undef HAVE_LIMB_BIG_ENDIAN
  14604. +#undef HAVE_LIMB_LITTLE_ENDIAN
  14605. +
  14606. +/* Define to 1 if you have the `localeconv' function. */
  14607. +#undef HAVE_LOCALECONV
  14608. +
  14609. +/* Define to 1 if you have the <locale.h> header file. */
  14610. +#undef HAVE_LOCALE_H
  14611. +
  14612. +/* Define to 1 if the system has the type `long double'. */
  14613. +#undef HAVE_LONG_DOUBLE
  14614. +
  14615. +/* Define to 1 if the system has the type `long long'. */
  14616. +#undef HAVE_LONG_LONG
  14617. +
  14618. +/* Define to 1 if you have the <machine/hal_sysinfo.h> header file. */
  14619. +#undef HAVE_MACHINE_HAL_SYSINFO_H
  14620. +
  14621. +/* Define to 1 if you have the <memory.h> header file. */
  14622. +#undef HAVE_MEMORY_H
  14623. +
  14624. +/* Define to 1 if you have the `memset' function. */
  14625. +#undef HAVE_MEMSET
  14626. +
  14627. +/* Define to 1 if you have the `mmap' function. */
  14628. +#undef HAVE_MMAP
  14629. +
  14630. +/* Define to 1 if you have the `mprotect' function. */
  14631. +#undef HAVE_MPROTECT
  14632. +
  14633. +/* Define to 1 each of the following for which a native (ie. CPU specific)
  14634. + implementation of the corresponding routine exists. */
  14635. +#undef HAVE_NATIVE_mpn_add_n
  14636. +#undef HAVE_NATIVE_mpn_add_nc
  14637. +#undef HAVE_NATIVE_mpn_addlsh1_n
  14638. +#undef HAVE_NATIVE_mpn_addmul_1c
  14639. +#undef HAVE_NATIVE_mpn_addmul_2
  14640. +#undef HAVE_NATIVE_mpn_addmul_3
  14641. +#undef HAVE_NATIVE_mpn_addmul_4
  14642. +#undef HAVE_NATIVE_mpn_addmul_5
  14643. +#undef HAVE_NATIVE_mpn_addmul_6
  14644. +#undef HAVE_NATIVE_mpn_addmul_7
  14645. +#undef HAVE_NATIVE_mpn_addmul_8
  14646. +#undef HAVE_NATIVE_mpn_addsub_n
  14647. +#undef HAVE_NATIVE_mpn_addaddmul_1msb0
  14648. +#undef HAVE_NATIVE_mpn_and_n
  14649. +#undef HAVE_NATIVE_mpn_andn_n
  14650. +#undef HAVE_NATIVE_mpn_bdiv_dbm1c
  14651. +#undef HAVE_NATIVE_mpn_com_n
  14652. +#undef HAVE_NATIVE_mpn_copyd
  14653. +#undef HAVE_NATIVE_mpn_copyi
  14654. +#undef HAVE_NATIVE_mpn_divexact_1
  14655. +#undef HAVE_NATIVE_mpn_divexact_by3c
  14656. +#undef HAVE_NATIVE_mpn_divrem_1
  14657. +#undef HAVE_NATIVE_mpn_divrem_1c
  14658. +#undef HAVE_NATIVE_mpn_divrem_2
  14659. +#undef HAVE_NATIVE_mpn_gcd_1
  14660. +#undef HAVE_NATIVE_mpn_invert_limb
  14661. +#undef HAVE_NATIVE_mpn_ior_n
  14662. +#undef HAVE_NATIVE_mpn_iorn_n
  14663. +#undef HAVE_NATIVE_mpn_lshiftc
  14664. +#undef HAVE_NATIVE_mpn_mod_1
  14665. +#undef HAVE_NATIVE_mpn_mod_1c
  14666. +#undef HAVE_NATIVE_mpn_modexact_1_odd
  14667. +#undef HAVE_NATIVE_mpn_modexact_1c_odd
  14668. +#undef HAVE_NATIVE_mpn_mul_1c
  14669. +#undef HAVE_NATIVE_mpn_mul_2
  14670. +#undef HAVE_NATIVE_mpn_mul_3
  14671. +#undef HAVE_NATIVE_mpn_mul_4
  14672. +#undef HAVE_NATIVE_mpn_nand_n
  14673. +#undef HAVE_NATIVE_mpn_nior_n
  14674. +#undef HAVE_NATIVE_mpn_preinv_divrem_1
  14675. +#undef HAVE_NATIVE_mpn_preinv_mod_1
  14676. +#undef HAVE_NATIVE_mpn_redc_1
  14677. +#undef HAVE_NATIVE_mpn_redc_2
  14678. +#undef HAVE_NATIVE_mpn_rsh1add_n
  14679. +#undef HAVE_NATIVE_mpn_rsh1sub_n
  14680. +#undef HAVE_NATIVE_mpn_sqr_basecase
  14681. +#undef HAVE_NATIVE_mpn_sqr_diagonal
  14682. +#undef HAVE_NATIVE_mpn_sub_n
  14683. +#undef HAVE_NATIVE_mpn_sub_nc
  14684. +#undef HAVE_NATIVE_mpn_sublsh1_n
  14685. +#undef HAVE_NATIVE_mpn_submul_1c
  14686. +#undef HAVE_NATIVE_mpn_umul_ppmm
  14687. +#undef HAVE_NATIVE_mpn_umul_ppmm_r
  14688. +#undef HAVE_NATIVE_mpn_udiv_qrnnd
  14689. +#undef HAVE_NATIVE_mpn_udiv_qrnnd_r
  14690. +#undef HAVE_NATIVE_mpn_xor_n
  14691. +#undef HAVE_NATIVE_mpn_xnor_n
  14692. +
  14693. +/* Define to 1 if you have the `nl_langinfo' function. */
  14694. +#undef HAVE_NL_LANGINFO
  14695. +
  14696. +/* Define to 1 if you have the <nl_types.h> header file. */
  14697. +#undef HAVE_NL_TYPES_H
  14698. +
  14699. +/* Define to 1 if you have the `obstack_vprintf' function. */
  14700. +#undef HAVE_OBSTACK_VPRINTF
  14701. +
  14702. +/* Define to 1 if you have the `popen' function. */
  14703. +#undef HAVE_POPEN
  14704. +
  14705. +/* Define to 1 if you have the `processor_info' function. */
  14706. +#undef HAVE_PROCESSOR_INFO
  14707. +
  14708. +/* Define to 1 if <sys/pstat.h> `struct pst_processor' exists and contains
  14709. + `psp_iticksperclktick'. */
  14710. +#undef HAVE_PSP_ITICKSPERCLKTICK
  14711. +
  14712. +/* Define to 1 if you have the `pstat_getprocessor' function. */
  14713. +#undef HAVE_PSTAT_GETPROCESSOR
  14714. +
  14715. +/* Define to 1 if the system has the type `ptrdiff_t'. */
  14716. +#undef HAVE_PTRDIFF_T
  14717. +
  14718. +/* Define to 1 if the system has the type `quad_t'. */
  14719. +#undef HAVE_QUAD_T
  14720. +
  14721. +/* Define to 1 if you have the `raise' function. */
  14722. +#undef HAVE_RAISE
  14723. +
  14724. +/* Define to 1 if you have the `read_real_time' function. */
  14725. +#undef HAVE_READ_REAL_TIME
  14726. +
  14727. +/* Define to 1 if you have the `sigaction' function. */
  14728. +#undef HAVE_SIGACTION
  14729. +
  14730. +/* Define to 1 if you have the `sigaltstack' function. */
  14731. +#undef HAVE_SIGALTSTACK
  14732. +
  14733. +/* Define to 1 if you have the `sigstack' function. */
  14734. +#undef HAVE_SIGSTACK
  14735. +
  14736. +/* Tune directory speed_cyclecounter, undef=none, 1=32bits, 2=64bits) */
  14737. +#undef HAVE_SPEED_CYCLECOUNTER
  14738. +
  14739. +/* Define to 1 if you have the <sstream> header file. */
  14740. +#undef HAVE_SSTREAM
  14741. +
  14742. +/* Define to 1 if the system has the type `stack_t'. */
  14743. +#undef HAVE_STACK_T
  14744. +
  14745. +/* Define to 1 if <stdarg.h> exists and works */
  14746. +#undef HAVE_STDARG
  14747. +
  14748. +/* Define to 1 if you have the <stdint.h> header file. */
  14749. +#undef HAVE_STDINT_H
  14750. +
  14751. +/* Define to 1 if you have the <stdlib.h> header file. */
  14752. +#undef HAVE_STDLIB_H
  14753. +
  14754. +/* Define to 1 if the system has the type `std::locale'. */
  14755. +#undef HAVE_STD__LOCALE
  14756. +
  14757. +/* Define to 1 if you have the `strchr' function. */
  14758. +#undef HAVE_STRCHR
  14759. +
  14760. +/* Define to 1 if you have the `strerror' function. */
  14761. +#undef HAVE_STRERROR
  14762. +
  14763. +/* Define to 1 if cpp supports the ANSI # stringizing operator. */
  14764. +#undef HAVE_STRINGIZE
  14765. +
  14766. +/* Define to 1 if you have the <strings.h> header file. */
  14767. +#undef HAVE_STRINGS_H
  14768. +
  14769. +/* Define to 1 if you have the <string.h> header file. */
  14770. +#undef HAVE_STRING_H
  14771. +
  14772. +/* Define to 1 if you have the `strnlen' function. */
  14773. +#undef HAVE_STRNLEN
  14774. +
  14775. +/* Define to 1 if you have the `strtol' function. */
  14776. +#undef HAVE_STRTOL
  14777. +
  14778. +/* Define to 1 if you have the `strtoul' function. */
  14779. +#undef HAVE_STRTOUL
  14780. +
  14781. +/* Define to 1 if you have the `sysconf' function. */
  14782. +#undef HAVE_SYSCONF
  14783. +
  14784. +/* Define to 1 if you have the `sysctl' function. */
  14785. +#undef HAVE_SYSCTL
  14786. +
  14787. +/* Define to 1 if you have the `sysctlbyname' function. */
  14788. +#undef HAVE_SYSCTLBYNAME
  14789. +
  14790. +/* Define to 1 if you have the `syssgi' function. */
  14791. +#undef HAVE_SYSSGI
  14792. +
  14793. +/* Define to 1 if you have the <sys/attributes.h> header file. */
  14794. +#undef HAVE_SYS_ATTRIBUTES_H
  14795. +
  14796. +/* Define to 1 if you have the <sys/iograph.h> header file. */
  14797. +#undef HAVE_SYS_IOGRAPH_H
  14798. +
  14799. +/* Define to 1 if you have the <sys/mman.h> header file. */
  14800. +#undef HAVE_SYS_MMAN_H
  14801. +
  14802. +/* Define to 1 if you have the <sys/param.h> header file. */
  14803. +#undef HAVE_SYS_PARAM_H
  14804. +
  14805. +/* Define to 1 if you have the <sys/processor.h> header file. */
  14806. +#undef HAVE_SYS_PROCESSOR_H
  14807. +
  14808. +/* Define to 1 if you have the <sys/pstat.h> header file. */
  14809. +#undef HAVE_SYS_PSTAT_H
  14810. +
  14811. +/* Define to 1 if you have the <sys/resource.h> header file. */
  14812. +#undef HAVE_SYS_RESOURCE_H
  14813. +
  14814. +/* Define to 1 if you have the <sys/stat.h> header file. */
  14815. +#undef HAVE_SYS_STAT_H
  14816. +
  14817. +/* Define to 1 if you have the <sys/sysctl.h> header file. */
  14818. +#undef HAVE_SYS_SYSCTL_H
  14819. +
  14820. +/* Define to 1 if you have the <sys/sysinfo.h> header file. */
  14821. +#undef HAVE_SYS_SYSINFO_H
  14822. +
  14823. +/* Define to 1 if you have the <sys/syssgi.h> header file. */
  14824. +#undef HAVE_SYS_SYSSGI_H
  14825. +
  14826. +/* Define to 1 if you have the <sys/systemcfg.h> header file. */
  14827. +#undef HAVE_SYS_SYSTEMCFG_H
  14828. +
  14829. +/* Define to 1 if you have the <sys/times.h> header file. */
  14830. +#undef HAVE_SYS_TIMES_H
  14831. +
  14832. +/* Define to 1 if you have the <sys/time.h> header file. */
  14833. +#undef HAVE_SYS_TIME_H
  14834. +
  14835. +/* Define to 1 if you have the <sys/types.h> header file. */
  14836. +#undef HAVE_SYS_TYPES_H
  14837. +
  14838. +/* Define to 1 if you have the `times' function. */
  14839. +#undef HAVE_TIMES
  14840. +
  14841. +/* Define to 1 if the system has the type `uint_least32_t'. */
  14842. +#undef HAVE_UINT_LEAST32_T
  14843. +
  14844. +/* Define to 1 if you have the <unistd.h> header file. */
  14845. +#undef HAVE_UNISTD_H
  14846. +
  14847. +/* Define to 1 if you have the `vsnprintf' function and it works properly. */
  14848. +#undef HAVE_VSNPRINTF
  14849. +
  14850. +/* Assembler local label prefix */
  14851. +#undef LSYM_PREFIX
  14852. +
  14853. +/* Name of package */
  14854. +#undef PACKAGE
  14855. +
  14856. +/* Define to the address where bug reports for this package should be sent. */
  14857. +#undef PACKAGE_BUGREPORT
  14858. +
  14859. +/* Define to the full name of this package. */
  14860. +#undef PACKAGE_NAME
  14861. +
  14862. +/* Define to the full name and version of this package. */
  14863. +#undef PACKAGE_STRING
  14864. +
  14865. +/* Define to the one symbol short name of this package. */
  14866. +#undef PACKAGE_TARNAME
  14867. +
  14868. +/* Define to the version of this package. */
  14869. +#undef PACKAGE_VERSION
  14870. +
  14871. +/* Define to 1 if the C compiler supports function prototypes. */
  14872. +#undef PROTOTYPES
  14873. +
  14874. +/* Define as the return type of signal handlers (`int' or `void'). */
  14875. +#undef RETSIGTYPE
  14876. +
  14877. +/* The size of `mp_limb_t', as computed by sizeof. */
  14878. +#undef SIZEOF_MP_LIMB_T
  14879. +
  14880. +/* The size of `unsigned', as computed by sizeof. */
  14881. +#undef SIZEOF_UNSIGNED
  14882. +
  14883. +/* The size of `unsigned long', as computed by sizeof. */
  14884. +#undef SIZEOF_UNSIGNED_LONG
  14885. +
  14886. +/* The size of `unsigned short', as computed by sizeof. */
  14887. +#undef SIZEOF_UNSIGNED_SHORT
  14888. +
  14889. +/* Define to 1 if sscanf requires writable inputs */
  14890. +#undef SSCANF_WRITABLE_INPUT
  14891. +
  14892. +/* Define to 1 if you have the ANSI C header files. */
  14893. +#undef STDC_HEADERS
  14894. +
  14895. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  14896. +#undef TIME_WITH_SYS_TIME
  14897. +
  14898. +/* Maximum size the tune program can test for SQR_KARATSUBA_THRESHOLD */
  14899. +#undef TUNE_SQR_KARATSUBA_MAX
  14900. +
  14901. +/* Version number of package */
  14902. +#undef VERSION
  14903. +
  14904. +/* Define to 1 to enable ASSERT checking, per --enable-assert */
  14905. +#undef WANT_ASSERT
  14906. +
  14907. +/* Define to 1 when building a fat binary. */
  14908. +#undef WANT_FAT_BINARY
  14909. +
  14910. +/* Define to 1 to enable FFTs for multiplication, per --enable-fft */
  14911. +#undef WANT_FFT
  14912. +
  14913. +/* Define to 1 if --enable-profiling=gprof */
  14914. +#undef WANT_PROFILING_GPROF
  14915. +
  14916. +/* Define to 1 if --enable-profiling=instrument */
  14917. +#undef WANT_PROFILING_INSTRUMENT
  14918. +
  14919. +/* Define to 1 if --enable-profiling=prof */
  14920. +#undef WANT_PROFILING_PROF
  14921. +
  14922. +/* Define one of these to 1 for the desired temporary memory allocation
  14923. + method, per --enable-alloca. */
  14924. +#undef WANT_TMP_ALLOCA
  14925. +#undef WANT_TMP_REENTRANT
  14926. +#undef WANT_TMP_NOTREENTRANT
  14927. +#undef WANT_TMP_DEBUG
  14928. +
  14929. +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
  14930. + `char[]'. */
  14931. +#undef YYTEXT_POINTER
  14932. +
  14933. +/* Define like PROTOTYPES; this can be used by system headers. */
  14934. +#undef __PROTOTYPES
  14935. +
  14936. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  14937. + calls it, or to nothing if 'inline' is not supported under any name. */
  14938. +#ifndef __cplusplus
  14939. +#undef inline
  14940. +#endif
  14941. +
  14942. +/* Define to equivalent of C99 restrict keyword, or to nothing if this is not
  14943. + supported. Do not define if restrict is supported directly. */
  14944. +#undef restrict
  14945. +
  14946. +/* Define to empty if the keyword `volatile' does not work. Warning: valid
  14947. + code using `volatile' can become incorrect without. Disable with care. */
  14948. +#undef volatile
  14949. diff -Nur gmp-4.3.2.orig/config.sub gmp-4.3.2/config.sub
  14950. --- gmp-4.3.2.orig/config.sub 2010-01-07 21:09:02.000000000 +0100
  14951. +++ gmp-4.3.2/config.sub 2011-02-16 19:23:19.553562096 +0100
  14952. @@ -1,143 +1,1693 @@
  14953. #! /bin/sh
  14954. +# Configuration validation subroutine script.
  14955. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14956. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14957. +# Free Software Foundation, Inc.
  14958. +
  14959. +timestamp='2009-06-11'
  14960. +
  14961. +# This file is (in principle) common to ALL GNU software.
  14962. +# The presence of a machine in this file suggests that SOME GNU software
  14963. +# can handle that machine. It does not imply ALL GNU software can.
  14964. #
  14965. -# GMP config.sub wrapper.
  14966. -
  14967. -
  14968. -# Copyright 2000, 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
  14969. -#
  14970. -# This file is part of the GNU MP Library.
  14971. +# This file is free software; you can redistribute it and/or modify
  14972. +# it under the terms of the GNU General Public License as published by
  14973. +# the Free Software Foundation; either version 2 of the License, or
  14974. +# (at your option) any later version.
  14975. #
  14976. -# The GNU MP Library is free software; you can redistribute it and/or modify
  14977. -# it under the terms of the GNU Lesser General Public License as published
  14978. -# by the Free Software Foundation; either version 3 of the License, or (at
  14979. -# your option) any later version.
  14980. +# This program is distributed in the hope that it will be useful,
  14981. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  14982. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14983. +# GNU General Public License for more details.
  14984. #
  14985. -# The GNU MP Library is distributed in the hope that it will be useful, but
  14986. -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14987. -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  14988. -# License for more details.
  14989. +# You should have received a copy of the GNU General Public License
  14990. +# along with this program; if not, write to the Free Software
  14991. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  14992. +# 02110-1301, USA.
  14993. #
  14994. -# You should have received a copy of the GNU Lesser General Public License
  14995. -# along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  14996. +# As a special exception to the GNU General Public License, if you
  14997. +# distribute this file as part of a program that contains a
  14998. +# configuration script generated by Autoconf, you may include it under
  14999. +# the same distribution terms that you use for the rest of that program.
  15000. -# Usage: config.sub CPU-VENDOR-OS
  15001. -# config.sub ALIAS
  15002. -#
  15003. -# Validate and canonicalize the given configuration name, with special
  15004. -# handling for GMP extra CPU names.
  15005. -#
  15006. -# When the CPU isn't special the whole name is simply passed straight
  15007. -# through to configfsf.sub.
  15008. -#
  15009. -# When the CPU is a GMP extra, configfsf.sub is run on a similar CPU that it
  15010. -# will recognise. For example "athlon-pc-freebsd3.5" is validated using
  15011. -# "i386-pc-freebsd3.5".
  15012. +# Please send patches to <config-patches@gnu.org>. Submit a context
  15013. +# diff and a properly formatted ChangeLog entry.
  15014. #
  15015. -# Any canonicalizations made by configfsf.sub are preserved. For example
  15016. -# given "athlon-linux", configfsf.sub is called with "i386-linux" and will
  15017. -# give back "i386-pc-linux-gnu". "athlon" is then reinstated, so we print
  15018. -# "athlon-pc-linux-gnu".
  15019. +# Configuration subroutine to validate and canonicalize a configuration type.
  15020. +# Supply the specified configuration type as an argument.
  15021. +# If it is invalid, we print an error message on stderr and exit with code 1.
  15022. +# Otherwise, we print the canonical config type on stdout and succeed.
  15023. +
  15024. +# This file is supposed to be the same for all GNU packages
  15025. +# and recognize all the CPU types, system types and aliases
  15026. +# that are meaningful with *any* GNU software.
  15027. +# Each package is responsible for reporting which valid configurations
  15028. +# it does not support. The user should be able to distinguish
  15029. +# a failure to support a valid configuration from a meaningless
  15030. +# configuration.
  15031. +
  15032. +# The goal of this file is to map all the various variations of a given
  15033. +# machine specification into a single specification in the form:
  15034. +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  15035. +# or in some cases, the newer four-part form:
  15036. +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  15037. +# It is wrong to echo any other type of specification.
  15038. +
  15039. +me=`echo "$0" | sed -e 's,.*/,,'`
  15040. +
  15041. +usage="\
  15042. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  15043. + $0 [OPTION] ALIAS
  15044. +
  15045. +Canonicalize a configuration name.
  15046. +
  15047. +Operation modes:
  15048. + -h, --help print this help, then exit
  15049. + -t, --time-stamp print date of last modification, then exit
  15050. + -v, --version print version number, then exit
  15051. +
  15052. +Report bugs and patches to <config-patches@gnu.org>."
  15053. +
  15054. +version="\
  15055. +GNU config.sub ($timestamp)
  15056. +
  15057. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15058. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15059. +
  15060. +This is free software; see the source for copying conditions. There is NO
  15061. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15062. +
  15063. +help="
  15064. +Try \`$me --help' for more information."
  15065. +
  15066. +# Parse command line
  15067. +while test $# -gt 0 ; do
  15068. + case $1 in
  15069. + --time-stamp | --time* | -t )
  15070. + echo "$timestamp" ; exit ;;
  15071. + --version | -v )
  15072. + echo "$version" ; exit ;;
  15073. + --help | --h* | -h )
  15074. + echo "$usage"; exit ;;
  15075. + -- ) # Stop option processing
  15076. + shift; break ;;
  15077. + - ) # Use stdin as input.
  15078. + break ;;
  15079. + -* )
  15080. + echo "$me: invalid option $1$help"
  15081. + exit 1 ;;
  15082. +
  15083. + *local*)
  15084. + # First pass through any local machine types.
  15085. + echo $1
  15086. + exit ;;
  15087. +
  15088. + * )
  15089. + break ;;
  15090. + esac
  15091. +done
  15092. +
  15093. +case $# in
  15094. + 0) echo "$me: missing argument$help" >&2
  15095. + exit 1;;
  15096. + 1) ;;
  15097. + *) echo "$me: too many arguments$help" >&2
  15098. + exit 1;;
  15099. +esac
  15100. +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  15101. +# Here we must recognize all the valid KERNEL-OS combinations.
  15102. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  15103. +case $maybe_os in
  15104. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15105. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15106. + kopensolaris*-gnu* | \
  15107. + storm-chaos* | os2-emx* | rtmk-nova*)
  15108. + os=-$maybe_os
  15109. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15110. + ;;
  15111. + *)
  15112. + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  15113. + if [ $basic_machine != $1 ]
  15114. + then os=`echo $1 | sed 's/.*-/-/'`
  15115. + else os=; fi
  15116. + ;;
  15117. +esac
  15118. -# Expect to find configfsf.sub in the same directory as this config.sub
  15119. -configfsf_sub="`echo \"$0\" | sed 's/config.sub$/configfsf.sub/'`"
  15120. -if test "$configfsf_sub" = "$0"; then
  15121. - echo "Cannot derive configfsf.sub from $0" 1>&2
  15122. - exit 1
  15123. -fi
  15124. -if test -f "$configfsf_sub"; then
  15125. - :
  15126. -else
  15127. - echo "$configfsf_sub not found" 1>&2
  15128. - exit 1
  15129. -fi
  15130. +### Let's recognize common machines as not being operating systems so
  15131. +### that things like config.sub decstation-3100 work. We also
  15132. +### recognize some manufacturers as not being operating systems, so we
  15133. +### can provide default operating systems below.
  15134. +case $os in
  15135. + -sun*os*)
  15136. + # Prevent following clause from handling this invalid input.
  15137. + ;;
  15138. + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  15139. + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  15140. + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  15141. + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  15142. + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  15143. + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  15144. + -apple | -axis | -knuth | -cray)
  15145. + os=
  15146. + basic_machine=$1
  15147. + ;;
  15148. + -bluegene*)
  15149. + os=-cnk
  15150. + ;;
  15151. + -sim | -cisco | -oki | -wec | -winbond)
  15152. + os=
  15153. + basic_machine=$1
  15154. + ;;
  15155. + -scout)
  15156. + ;;
  15157. + -wrs)
  15158. + os=-vxworks
  15159. + basic_machine=$1
  15160. + ;;
  15161. + -chorusos*)
  15162. + os=-chorusos
  15163. + basic_machine=$1
  15164. + ;;
  15165. + -chorusrdb)
  15166. + os=-chorusrdb
  15167. + basic_machine=$1
  15168. + ;;
  15169. + -hiux*)
  15170. + os=-hiuxwe2
  15171. + ;;
  15172. + -sco6)
  15173. + os=-sco5v6
  15174. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15175. + ;;
  15176. + -sco5)
  15177. + os=-sco3.2v5
  15178. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15179. + ;;
  15180. + -sco4)
  15181. + os=-sco3.2v4
  15182. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15183. + ;;
  15184. + -sco3.2.[4-9]*)
  15185. + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  15186. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15187. + ;;
  15188. + -sco3.2v[4-9]*)
  15189. + # Don't forget version if it is 3.2v4 or newer.
  15190. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15191. + ;;
  15192. + -sco5v6*)
  15193. + # Don't forget version if it is 3.2v4 or newer.
  15194. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15195. + ;;
  15196. + -sco*)
  15197. + os=-sco3.2v2
  15198. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15199. + ;;
  15200. + -udk*)
  15201. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15202. + ;;
  15203. + -isc)
  15204. + os=-isc2.2
  15205. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15206. + ;;
  15207. + -clix*)
  15208. + basic_machine=clipper-intergraph
  15209. + ;;
  15210. + -isc*)
  15211. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15212. + ;;
  15213. + -lynx*)
  15214. + os=-lynxos
  15215. + ;;
  15216. + -ptx*)
  15217. + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  15218. + ;;
  15219. + -windowsnt*)
  15220. + os=`echo $os | sed -e 's/windowsnt/winnt/'`
  15221. + ;;
  15222. + -psos*)
  15223. + os=-psos
  15224. + ;;
  15225. + -mint | -mint[0-9]*)
  15226. + basic_machine=m68k-atari
  15227. + os=-mint
  15228. + ;;
  15229. +esac
  15230. +
  15231. +# Decode aliases for certain CPU-COMPANY combinations.
  15232. +case $basic_machine in
  15233. + # Recognize the basic CPU types without company name.
  15234. + # Some are omitted here because they have special meanings below.
  15235. + 1750a | 580 \
  15236. + | a29k \
  15237. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  15238. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  15239. + | am33_2.0 \
  15240. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  15241. + | bfin \
  15242. + | c4x | clipper \
  15243. + | d10v | d30v | dlx | dsp16xx \
  15244. + | fido | fr30 | frv \
  15245. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15246. + | i370 | i860 | i960 | ia64 \
  15247. + | ip2k | iq2000 \
  15248. + | lm32 \
  15249. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15250. + | maxq | mb | microblaze | mcore | mep | metag \
  15251. + | mips | mipsbe | mipseb | mipsel | mipsle \
  15252. + | mips16 \
  15253. + | mips64 | mips64el \
  15254. + | mips64octeon | mips64octeonel \
  15255. + | mips64orion | mips64orionel \
  15256. + | mips64r5900 | mips64r5900el \
  15257. + | mips64vr | mips64vrel \
  15258. + | mips64vr4100 | mips64vr4100el \
  15259. + | mips64vr4300 | mips64vr4300el \
  15260. + | mips64vr5000 | mips64vr5000el \
  15261. + | mips64vr5900 | mips64vr5900el \
  15262. + | mipsisa32 | mipsisa32el \
  15263. + | mipsisa32r2 | mipsisa32r2el \
  15264. + | mipsisa64 | mipsisa64el \
  15265. + | mipsisa64r2 | mipsisa64r2el \
  15266. + | mipsisa64sb1 | mipsisa64sb1el \
  15267. + | mipsisa64sr71k | mipsisa64sr71kel \
  15268. + | mipstx39 | mipstx39el \
  15269. + | mn10200 | mn10300 \
  15270. + | moxie \
  15271. + | mt \
  15272. + | msp430 \
  15273. + | nios | nios2 \
  15274. + | ns16k | ns32k \
  15275. + | or32 \
  15276. + | pdp10 | pdp11 | pj | pjl \
  15277. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15278. + | pyramid \
  15279. + | score \
  15280. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15281. + | sh64 | sh64le \
  15282. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15283. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15284. + | spu | strongarm \
  15285. + | tahoe | thumb | tic4x | tic80 | tron \
  15286. + | v850 | v850e \
  15287. + | we32k \
  15288. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15289. + | z8k | z80)
  15290. + basic_machine=$basic_machine-unknown
  15291. + ;;
  15292. + m6811 | m68hc11 | m6812 | m68hc12)
  15293. + # Motorola 68HC11/12.
  15294. + basic_machine=$basic_machine-unknown
  15295. + os=-none
  15296. + ;;
  15297. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  15298. + ;;
  15299. + ms1)
  15300. + basic_machine=mt-unknown
  15301. + ;;
  15302. +
  15303. + # We use `pc' rather than `unknown'
  15304. + # because (1) that's what they normally are, and
  15305. + # (2) the word "unknown" tends to confuse beginning users.
  15306. + i*86 | x86_64)
  15307. + basic_machine=$basic_machine-pc
  15308. + ;;
  15309. + # Object if more than one company name word.
  15310. + *-*-*)
  15311. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  15312. + exit 1
  15313. + ;;
  15314. + # Recognize the basic CPU types with company name.
  15315. + 580-* \
  15316. + | a29k-* \
  15317. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  15318. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  15319. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  15320. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  15321. + | avr-* | avr32-* \
  15322. + | bfin-* | bs2000-* \
  15323. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15324. + | clipper-* | craynv-* | cydra-* \
  15325. + | d10v-* | d30v-* | dlx-* \
  15326. + | elxsi-* \
  15327. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15328. + | h8300-* | h8500-* \
  15329. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15330. + | i*86-* | i860-* | i960-* | ia64-* \
  15331. + | ip2k-* | iq2000-* \
  15332. + | lm32-* \
  15333. + | m32c-* | m32r-* | m32rle-* \
  15334. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15335. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15336. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15337. + | mips16-* \
  15338. + | mips64-* | mips64el-* \
  15339. + | mips64octeon-* | mips64octeonel-* \
  15340. + | mips64orion-* | mips64orionel-* \
  15341. + | mips64r5900-* | mips64r5900el-* \
  15342. + | mips64vr-* | mips64vrel-* \
  15343. + | mips64vr4100-* | mips64vr4100el-* \
  15344. + | mips64vr4300-* | mips64vr4300el-* \
  15345. + | mips64vr5000-* | mips64vr5000el-* \
  15346. + | mips64vr5900-* | mips64vr5900el-* \
  15347. + | mipsisa32-* | mipsisa32el-* \
  15348. + | mipsisa32r2-* | mipsisa32r2el-* \
  15349. + | mipsisa64-* | mipsisa64el-* \
  15350. + | mipsisa64r2-* | mipsisa64r2el-* \
  15351. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  15352. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15353. + | mipstx39-* | mipstx39el-* \
  15354. + | mmix-* \
  15355. + | mt-* \
  15356. + | msp430-* \
  15357. + | nios-* | nios2-* \
  15358. + | none-* | np1-* | ns16k-* | ns32k-* \
  15359. + | orion-* \
  15360. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15361. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15362. + | pyramid-* \
  15363. + | romp-* | rs6000-* \
  15364. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15365. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15366. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15367. + | sparclite-* \
  15368. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15369. + | tahoe-* | thumb-* \
  15370. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15371. + | tron-* \
  15372. + | v850-* | v850e-* | vax-* \
  15373. + | we32k-* \
  15374. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15375. + | xstormy16-* | xtensa*-* \
  15376. + | ymp-* \
  15377. + | z8k-* | z80-*)
  15378. + ;;
  15379. + # Recognize the basic CPU types without company name, with glob match.
  15380. + xtensa*)
  15381. + basic_machine=$basic_machine-unknown
  15382. + ;;
  15383. + # Recognize the various machine names and aliases which stand
  15384. + # for a CPU type and a company and sometimes even an OS.
  15385. + 386bsd)
  15386. + basic_machine=i386-unknown
  15387. + os=-bsd
  15388. + ;;
  15389. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  15390. + basic_machine=m68000-att
  15391. + ;;
  15392. + 3b*)
  15393. + basic_machine=we32k-att
  15394. + ;;
  15395. + a29khif)
  15396. + basic_machine=a29k-amd
  15397. + os=-udi
  15398. + ;;
  15399. + abacus)
  15400. + basic_machine=abacus-unknown
  15401. + ;;
  15402. + adobe68k)
  15403. + basic_machine=m68010-adobe
  15404. + os=-scout
  15405. + ;;
  15406. + alliant | fx80)
  15407. + basic_machine=fx80-alliant
  15408. + ;;
  15409. + altos | altos3068)
  15410. + basic_machine=m68k-altos
  15411. + ;;
  15412. + am29k)
  15413. + basic_machine=a29k-none
  15414. + os=-bsd
  15415. + ;;
  15416. + amd64)
  15417. + basic_machine=x86_64-pc
  15418. + ;;
  15419. + amd64-*)
  15420. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  15421. + ;;
  15422. + amdahl)
  15423. + basic_machine=580-amdahl
  15424. + os=-sysv
  15425. + ;;
  15426. + amiga | amiga-*)
  15427. + basic_machine=m68k-unknown
  15428. + ;;
  15429. + amigaos | amigados)
  15430. + basic_machine=m68k-unknown
  15431. + os=-amigaos
  15432. + ;;
  15433. + amigaunix | amix)
  15434. + basic_machine=m68k-unknown
  15435. + os=-sysv4
  15436. + ;;
  15437. + apollo68)
  15438. + basic_machine=m68k-apollo
  15439. + os=-sysv
  15440. + ;;
  15441. + apollo68bsd)
  15442. + basic_machine=m68k-apollo
  15443. + os=-bsd
  15444. + ;;
  15445. + aros)
  15446. + basic_machine=i386-pc
  15447. + os=-aros
  15448. + ;;
  15449. + aux)
  15450. + basic_machine=m68k-apple
  15451. + os=-aux
  15452. + ;;
  15453. + balance)
  15454. + basic_machine=ns32k-sequent
  15455. + os=-dynix
  15456. + ;;
  15457. + blackfin)
  15458. + basic_machine=bfin-unknown
  15459. + os=-linux
  15460. + ;;
  15461. + blackfin-*)
  15462. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15463. + os=-linux
  15464. + ;;
  15465. + bluegene*)
  15466. + basic_machine=powerpc-ibm
  15467. + os=-cnk
  15468. + ;;
  15469. + c90)
  15470. + basic_machine=c90-cray
  15471. + os=-unicos
  15472. + ;;
  15473. + cegcc)
  15474. + basic_machine=arm-unknown
  15475. + os=-cegcc
  15476. + ;;
  15477. + convex-c1)
  15478. + basic_machine=c1-convex
  15479. + os=-bsd
  15480. + ;;
  15481. + convex-c2)
  15482. + basic_machine=c2-convex
  15483. + os=-bsd
  15484. + ;;
  15485. + convex-c32)
  15486. + basic_machine=c32-convex
  15487. + os=-bsd
  15488. + ;;
  15489. + convex-c34)
  15490. + basic_machine=c34-convex
  15491. + os=-bsd
  15492. + ;;
  15493. + convex-c38)
  15494. + basic_machine=c38-convex
  15495. + os=-bsd
  15496. + ;;
  15497. + cray | j90)
  15498. + basic_machine=j90-cray
  15499. + os=-unicos
  15500. + ;;
  15501. + craynv)
  15502. + basic_machine=craynv-cray
  15503. + os=-unicosmp
  15504. + ;;
  15505. + cr16)
  15506. + basic_machine=cr16-unknown
  15507. + os=-elf
  15508. + ;;
  15509. + crds | unos)
  15510. + basic_machine=m68k-crds
  15511. + ;;
  15512. + crisv32 | crisv32-* | etraxfs*)
  15513. + basic_machine=crisv32-axis
  15514. + ;;
  15515. + cris | cris-* | etrax*)
  15516. + basic_machine=cris-axis
  15517. + ;;
  15518. + crx)
  15519. + basic_machine=crx-unknown
  15520. + os=-elf
  15521. + ;;
  15522. + da30 | da30-*)
  15523. + basic_machine=m68k-da30
  15524. + ;;
  15525. + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  15526. + basic_machine=mips-dec
  15527. + ;;
  15528. + decsystem10* | dec10*)
  15529. + basic_machine=pdp10-dec
  15530. + os=-tops10
  15531. + ;;
  15532. + decsystem20* | dec20*)
  15533. + basic_machine=pdp10-dec
  15534. + os=-tops20
  15535. + ;;
  15536. + delta | 3300 | motorola-3300 | motorola-delta \
  15537. + | 3300-motorola | delta-motorola)
  15538. + basic_machine=m68k-motorola
  15539. + ;;
  15540. + delta88)
  15541. + basic_machine=m88k-motorola
  15542. + os=-sysv3
  15543. + ;;
  15544. + dicos)
  15545. + basic_machine=i686-pc
  15546. + os=-dicos
  15547. + ;;
  15548. + djgpp)
  15549. + basic_machine=i586-pc
  15550. + os=-msdosdjgpp
  15551. + ;;
  15552. + dpx20 | dpx20-*)
  15553. + basic_machine=rs6000-bull
  15554. + os=-bosx
  15555. + ;;
  15556. + dpx2* | dpx2*-bull)
  15557. + basic_machine=m68k-bull
  15558. + os=-sysv3
  15559. + ;;
  15560. + ebmon29k)
  15561. + basic_machine=a29k-amd
  15562. + os=-ebmon
  15563. + ;;
  15564. + elxsi)
  15565. + basic_machine=elxsi-elxsi
  15566. + os=-bsd
  15567. + ;;
  15568. + encore | umax | mmax)
  15569. + basic_machine=ns32k-encore
  15570. + ;;
  15571. + es1800 | OSE68k | ose68k | ose | OSE)
  15572. + basic_machine=m68k-ericsson
  15573. + os=-ose
  15574. + ;;
  15575. + fx2800)
  15576. + basic_machine=i860-alliant
  15577. + ;;
  15578. + genix)
  15579. + basic_machine=ns32k-ns
  15580. + ;;
  15581. + gmicro)
  15582. + basic_machine=tron-gmicro
  15583. + os=-sysv
  15584. + ;;
  15585. + go32)
  15586. + basic_machine=i386-pc
  15587. + os=-go32
  15588. + ;;
  15589. + h3050r* | hiux*)
  15590. + basic_machine=hppa1.1-hitachi
  15591. + os=-hiuxwe2
  15592. + ;;
  15593. + h8300hms)
  15594. + basic_machine=h8300-hitachi
  15595. + os=-hms
  15596. + ;;
  15597. + h8300xray)
  15598. + basic_machine=h8300-hitachi
  15599. + os=-xray
  15600. + ;;
  15601. + h8500hms)
  15602. + basic_machine=h8500-hitachi
  15603. + os=-hms
  15604. + ;;
  15605. + harris)
  15606. + basic_machine=m88k-harris
  15607. + os=-sysv3
  15608. + ;;
  15609. + hp300-*)
  15610. + basic_machine=m68k-hp
  15611. + ;;
  15612. + hp300bsd)
  15613. + basic_machine=m68k-hp
  15614. + os=-bsd
  15615. + ;;
  15616. + hp300hpux)
  15617. + basic_machine=m68k-hp
  15618. + os=-hpux
  15619. + ;;
  15620. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  15621. + basic_machine=hppa1.0-hp
  15622. + ;;
  15623. + hp9k2[0-9][0-9] | hp9k31[0-9])
  15624. + basic_machine=m68000-hp
  15625. + ;;
  15626. + hp9k3[2-9][0-9])
  15627. + basic_machine=m68k-hp
  15628. + ;;
  15629. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  15630. + basic_machine=hppa1.0-hp
  15631. + ;;
  15632. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  15633. + basic_machine=hppa1.1-hp
  15634. + ;;
  15635. + hp9k78[0-9] | hp78[0-9])
  15636. + # FIXME: really hppa2.0-hp
  15637. + basic_machine=hppa1.1-hp
  15638. + ;;
  15639. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  15640. + # FIXME: really hppa2.0-hp
  15641. + basic_machine=hppa1.1-hp
  15642. + ;;
  15643. + hp9k8[0-9][13679] | hp8[0-9][13679])
  15644. + basic_machine=hppa1.1-hp
  15645. + ;;
  15646. + hp9k8[0-9][0-9] | hp8[0-9][0-9])
  15647. + basic_machine=hppa1.0-hp
  15648. + ;;
  15649. + hppa-next)
  15650. + os=-nextstep3
  15651. + ;;
  15652. + hppaosf)
  15653. + basic_machine=hppa1.1-hp
  15654. + os=-osf
  15655. + ;;
  15656. + hppro)
  15657. + basic_machine=hppa1.1-hp
  15658. + os=-proelf
  15659. + ;;
  15660. + i370-ibm* | ibm*)
  15661. + basic_machine=i370-ibm
  15662. + ;;
  15663. +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  15664. + i*86v32)
  15665. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  15666. + os=-sysv32
  15667. + ;;
  15668. + i*86v4*)
  15669. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  15670. + os=-sysv4
  15671. + ;;
  15672. + i*86v)
  15673. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  15674. + os=-sysv
  15675. + ;;
  15676. + i*86sol2)
  15677. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  15678. + os=-solaris2
  15679. + ;;
  15680. + i386mach)
  15681. + basic_machine=i386-mach
  15682. + os=-mach
  15683. + ;;
  15684. + i386-vsta | vsta)
  15685. + basic_machine=i386-unknown
  15686. + os=-vsta
  15687. + ;;
  15688. + iris | iris4d)
  15689. + basic_machine=mips-sgi
  15690. + case $os in
  15691. + -irix*)
  15692. + ;;
  15693. + *)
  15694. + os=-irix4
  15695. + ;;
  15696. + esac
  15697. + ;;
  15698. + isi68 | isi)
  15699. + basic_machine=m68k-isi
  15700. + os=-sysv
  15701. + ;;
  15702. + m68knommu)
  15703. + basic_machine=m68k-unknown
  15704. + os=-linux
  15705. + ;;
  15706. + m68knommu-*)
  15707. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15708. + os=-linux
  15709. + ;;
  15710. + m88k-omron*)
  15711. + basic_machine=m88k-omron
  15712. + ;;
  15713. + magnum | m3230)
  15714. + basic_machine=mips-mips
  15715. + os=-sysv
  15716. + ;;
  15717. + merlin)
  15718. + basic_machine=ns32k-utek
  15719. + os=-sysv
  15720. + ;;
  15721. + mingw32)
  15722. + basic_machine=i386-pc
  15723. + os=-mingw32
  15724. + ;;
  15725. + mingw32ce)
  15726. + basic_machine=arm-unknown
  15727. + os=-mingw32ce
  15728. + ;;
  15729. + miniframe)
  15730. + basic_machine=m68000-convergent
  15731. + ;;
  15732. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  15733. + basic_machine=m68k-atari
  15734. + os=-mint
  15735. + ;;
  15736. + mips3*-*)
  15737. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  15738. + ;;
  15739. + mips3*)
  15740. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  15741. + ;;
  15742. + monitor)
  15743. + basic_machine=m68k-rom68k
  15744. + os=-coff
  15745. + ;;
  15746. + morphos)
  15747. + basic_machine=powerpc-unknown
  15748. + os=-morphos
  15749. + ;;
  15750. + msdos)
  15751. + basic_machine=i386-pc
  15752. + os=-msdos
  15753. + ;;
  15754. + ms1-*)
  15755. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15756. + ;;
  15757. + mvs)
  15758. + basic_machine=i370-ibm
  15759. + os=-mvs
  15760. + ;;
  15761. + ncr3000)
  15762. + basic_machine=i486-ncr
  15763. + os=-sysv4
  15764. + ;;
  15765. + netbsd386)
  15766. + basic_machine=i386-unknown
  15767. + os=-netbsd
  15768. + ;;
  15769. + netwinder)
  15770. + basic_machine=armv4l-rebel
  15771. + os=-linux
  15772. + ;;
  15773. + news | news700 | news800 | news900)
  15774. + basic_machine=m68k-sony
  15775. + os=-newsos
  15776. + ;;
  15777. + news1000)
  15778. + basic_machine=m68030-sony
  15779. + os=-newsos
  15780. + ;;
  15781. + news-3600 | risc-news)
  15782. + basic_machine=mips-sony
  15783. + os=-newsos
  15784. + ;;
  15785. + necv70)
  15786. + basic_machine=v70-nec
  15787. + os=-sysv
  15788. + ;;
  15789. + next | m*-next )
  15790. + basic_machine=m68k-next
  15791. + case $os in
  15792. + -nextstep* )
  15793. + ;;
  15794. + -ns2*)
  15795. + os=-nextstep2
  15796. + ;;
  15797. + *)
  15798. + os=-nextstep3
  15799. + ;;
  15800. + esac
  15801. + ;;
  15802. + nh3000)
  15803. + basic_machine=m68k-harris
  15804. + os=-cxux
  15805. + ;;
  15806. + nh[45]000)
  15807. + basic_machine=m88k-harris
  15808. + os=-cxux
  15809. + ;;
  15810. + nindy960)
  15811. + basic_machine=i960-intel
  15812. + os=-nindy
  15813. + ;;
  15814. + mon960)
  15815. + basic_machine=i960-intel
  15816. + os=-mon960
  15817. + ;;
  15818. + nonstopux)
  15819. + basic_machine=mips-compaq
  15820. + os=-nonstopux
  15821. + ;;
  15822. + np1)
  15823. + basic_machine=np1-gould
  15824. + ;;
  15825. + nsr-tandem)
  15826. + basic_machine=nsr-tandem
  15827. + ;;
  15828. + op50n-* | op60c-*)
  15829. + basic_machine=hppa1.1-oki
  15830. + os=-proelf
  15831. + ;;
  15832. + openrisc | openrisc-*)
  15833. + basic_machine=or32-unknown
  15834. + ;;
  15835. + os400)
  15836. + basic_machine=powerpc-ibm
  15837. + os=-os400
  15838. + ;;
  15839. + OSE68000 | ose68000)
  15840. + basic_machine=m68000-ericsson
  15841. + os=-ose
  15842. + ;;
  15843. + os68k)
  15844. + basic_machine=m68k-none
  15845. + os=-os68k
  15846. + ;;
  15847. + pa-hitachi)
  15848. + basic_machine=hppa1.1-hitachi
  15849. + os=-hiuxwe2
  15850. + ;;
  15851. + paragon)
  15852. + basic_machine=i860-intel
  15853. + os=-osf
  15854. + ;;
  15855. + parisc)
  15856. + basic_machine=hppa-unknown
  15857. + os=-linux
  15858. + ;;
  15859. + parisc-*)
  15860. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15861. + os=-linux
  15862. + ;;
  15863. + pbd)
  15864. + basic_machine=sparc-tti
  15865. + ;;
  15866. + pbb)
  15867. + basic_machine=m68k-tti
  15868. + ;;
  15869. + pc532 | pc532-*)
  15870. + basic_machine=ns32k-pc532
  15871. + ;;
  15872. + pc98)
  15873. + basic_machine=i386-pc
  15874. + ;;
  15875. + pc98-*)
  15876. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15877. + ;;
  15878. + pentium | p5 | k5 | k6 | nexgen | viac3)
  15879. + basic_machine=i586-pc
  15880. + ;;
  15881. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  15882. + basic_machine=i686-pc
  15883. + ;;
  15884. + pentiumii | pentium2 | pentiumiii | pentium3)
  15885. + basic_machine=i686-pc
  15886. + ;;
  15887. + pentium4)
  15888. + basic_machine=i786-pc
  15889. + ;;
  15890. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  15891. + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  15892. + ;;
  15893. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  15894. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  15895. + ;;
  15896. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  15897. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  15898. + ;;
  15899. + pentium4-*)
  15900. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  15901. + ;;
  15902. + pn)
  15903. + basic_machine=pn-gould
  15904. + ;;
  15905. + power) basic_machine=power-ibm
  15906. + ;;
  15907. + ppc) basic_machine=powerpc-unknown
  15908. + ;;
  15909. + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  15910. + ;;
  15911. + ppcle | powerpclittle | ppc-le | powerpc-little)
  15912. + basic_machine=powerpcle-unknown
  15913. + ;;
  15914. + ppcle-* | powerpclittle-*)
  15915. + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  15916. + ;;
  15917. + ppc64) basic_machine=powerpc64-unknown
  15918. + ;;
  15919. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  15920. + ;;
  15921. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  15922. + basic_machine=powerpc64le-unknown
  15923. + ;;
  15924. + ppc64le-* | powerpc64little-*)
  15925. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  15926. + ;;
  15927. + ps2)
  15928. + basic_machine=i386-ibm
  15929. + ;;
  15930. + pw32)
  15931. + basic_machine=i586-unknown
  15932. + os=-pw32
  15933. + ;;
  15934. + rdos)
  15935. + basic_machine=i386-pc
  15936. + os=-rdos
  15937. + ;;
  15938. + rom68k)
  15939. + basic_machine=m68k-rom68k
  15940. + os=-coff
  15941. + ;;
  15942. + rm[46]00)
  15943. + basic_machine=mips-siemens
  15944. + ;;
  15945. + rtpc | rtpc-*)
  15946. + basic_machine=romp-ibm
  15947. + ;;
  15948. + s390 | s390-*)
  15949. + basic_machine=s390-ibm
  15950. + ;;
  15951. + s390x | s390x-*)
  15952. + basic_machine=s390x-ibm
  15953. + ;;
  15954. + sa29200)
  15955. + basic_machine=a29k-amd
  15956. + os=-udi
  15957. + ;;
  15958. + sb1)
  15959. + basic_machine=mipsisa64sb1-unknown
  15960. + ;;
  15961. + sb1el)
  15962. + basic_machine=mipsisa64sb1el-unknown
  15963. + ;;
  15964. + sde)
  15965. + basic_machine=mipsisa32-sde
  15966. + os=-elf
  15967. + ;;
  15968. + sei)
  15969. + basic_machine=mips-sei
  15970. + os=-seiux
  15971. + ;;
  15972. + sequent)
  15973. + basic_machine=i386-sequent
  15974. + ;;
  15975. + sh)
  15976. + basic_machine=sh-hitachi
  15977. + os=-hms
  15978. + ;;
  15979. + sh5el)
  15980. + basic_machine=sh5le-unknown
  15981. + ;;
  15982. + sh64)
  15983. + basic_machine=sh64-unknown
  15984. + ;;
  15985. + sparclite-wrs | simso-wrs)
  15986. + basic_machine=sparclite-wrs
  15987. + os=-vxworks
  15988. + ;;
  15989. + sps7)
  15990. + basic_machine=m68k-bull
  15991. + os=-sysv2
  15992. + ;;
  15993. + spur)
  15994. + basic_machine=spur-unknown
  15995. + ;;
  15996. + st2000)
  15997. + basic_machine=m68k-tandem
  15998. + ;;
  15999. + stratus)
  16000. + basic_machine=i860-stratus
  16001. + os=-sysv4
  16002. + ;;
  16003. + sun2)
  16004. + basic_machine=m68000-sun
  16005. + ;;
  16006. + sun2os3)
  16007. + basic_machine=m68000-sun
  16008. + os=-sunos3
  16009. + ;;
  16010. + sun2os4)
  16011. + basic_machine=m68000-sun
  16012. + os=-sunos4
  16013. + ;;
  16014. + sun3os3)
  16015. + basic_machine=m68k-sun
  16016. + os=-sunos3
  16017. + ;;
  16018. + sun3os4)
  16019. + basic_machine=m68k-sun
  16020. + os=-sunos4
  16021. + ;;
  16022. + sun4os3)
  16023. + basic_machine=sparc-sun
  16024. + os=-sunos3
  16025. + ;;
  16026. + sun4os4)
  16027. + basic_machine=sparc-sun
  16028. + os=-sunos4
  16029. + ;;
  16030. + sun4sol2)
  16031. + basic_machine=sparc-sun
  16032. + os=-solaris2
  16033. + ;;
  16034. + sun3 | sun3-*)
  16035. + basic_machine=m68k-sun
  16036. + ;;
  16037. + sun4)
  16038. + basic_machine=sparc-sun
  16039. + ;;
  16040. + sun386 | sun386i | roadrunner)
  16041. + basic_machine=i386-sun
  16042. + ;;
  16043. + sv1)
  16044. + basic_machine=sv1-cray
  16045. + os=-unicos
  16046. + ;;
  16047. + symmetry)
  16048. + basic_machine=i386-sequent
  16049. + os=-dynix
  16050. + ;;
  16051. + t3e)
  16052. + basic_machine=alphaev5-cray
  16053. + os=-unicos
  16054. + ;;
  16055. + t90)
  16056. + basic_machine=t90-cray
  16057. + os=-unicos
  16058. + ;;
  16059. + tic54x | c54x*)
  16060. + basic_machine=tic54x-unknown
  16061. + os=-coff
  16062. + ;;
  16063. + tic55x | c55x*)
  16064. + basic_machine=tic55x-unknown
  16065. + os=-coff
  16066. + ;;
  16067. + tic6x | c6x*)
  16068. + basic_machine=tic6x-unknown
  16069. + os=-coff
  16070. + ;;
  16071. + tile*)
  16072. + basic_machine=tile-unknown
  16073. + os=-linux-gnu
  16074. + ;;
  16075. + tx39)
  16076. + basic_machine=mipstx39-unknown
  16077. + ;;
  16078. + tx39el)
  16079. + basic_machine=mipstx39el-unknown
  16080. + ;;
  16081. + toad1)
  16082. + basic_machine=pdp10-xkl
  16083. + os=-tops20
  16084. + ;;
  16085. + tower | tower-32)
  16086. + basic_machine=m68k-ncr
  16087. + ;;
  16088. + tpf)
  16089. + basic_machine=s390x-ibm
  16090. + os=-tpf
  16091. + ;;
  16092. + udi29k)
  16093. + basic_machine=a29k-amd
  16094. + os=-udi
  16095. + ;;
  16096. + ultra3)
  16097. + basic_machine=a29k-nyu
  16098. + os=-sym1
  16099. + ;;
  16100. + v810 | necv810)
  16101. + basic_machine=v810-nec
  16102. + os=-none
  16103. + ;;
  16104. + vaxv)
  16105. + basic_machine=vax-dec
  16106. + os=-sysv
  16107. + ;;
  16108. + vms)
  16109. + basic_machine=vax-dec
  16110. + os=-vms
  16111. + ;;
  16112. + vpp*|vx|vx-*)
  16113. + basic_machine=f301-fujitsu
  16114. + ;;
  16115. + vxworks960)
  16116. + basic_machine=i960-wrs
  16117. + os=-vxworks
  16118. + ;;
  16119. + vxworks68)
  16120. + basic_machine=m68k-wrs
  16121. + os=-vxworks
  16122. + ;;
  16123. + vxworks29k)
  16124. + basic_machine=a29k-wrs
  16125. + os=-vxworks
  16126. + ;;
  16127. + w65*)
  16128. + basic_machine=w65-wdc
  16129. + os=-none
  16130. + ;;
  16131. + w89k-*)
  16132. + basic_machine=hppa1.1-winbond
  16133. + os=-proelf
  16134. + ;;
  16135. + xbox)
  16136. + basic_machine=i686-pc
  16137. + os=-mingw32
  16138. + ;;
  16139. + xps | xps100)
  16140. + basic_machine=xps100-honeywell
  16141. + ;;
  16142. + ymp)
  16143. + basic_machine=ymp-cray
  16144. + os=-unicos
  16145. + ;;
  16146. + z8k-*-coff)
  16147. + basic_machine=z8k-unknown
  16148. + os=-sim
  16149. + ;;
  16150. + z80-*-coff)
  16151. + basic_machine=z80-unknown
  16152. + os=-sim
  16153. + ;;
  16154. + none)
  16155. + basic_machine=none-none
  16156. + os=-none
  16157. + ;;
  16158. +
  16159. +# Here we handle the default manufacturer of certain CPU types. It is in
  16160. +# some cases the only manufacturer, in others, it is the most popular.
  16161. + w89k)
  16162. + basic_machine=hppa1.1-winbond
  16163. + ;;
  16164. + op50n)
  16165. + basic_machine=hppa1.1-oki
  16166. + ;;
  16167. + op60c)
  16168. + basic_machine=hppa1.1-oki
  16169. + ;;
  16170. + romp)
  16171. + basic_machine=romp-ibm
  16172. + ;;
  16173. + mmix)
  16174. + basic_machine=mmix-knuth
  16175. + ;;
  16176. + rs6000)
  16177. + basic_machine=rs6000-ibm
  16178. + ;;
  16179. + vax)
  16180. + basic_machine=vax-dec
  16181. + ;;
  16182. + pdp10)
  16183. + # there are many clones, so DEC is not a safe bet
  16184. + basic_machine=pdp10-unknown
  16185. + ;;
  16186. + pdp11)
  16187. + basic_machine=pdp11-dec
  16188. + ;;
  16189. + we32k)
  16190. + basic_machine=we32k-att
  16191. + ;;
  16192. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  16193. + basic_machine=sh-unknown
  16194. + ;;
  16195. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  16196. + basic_machine=sparc-sun
  16197. + ;;
  16198. + cydra)
  16199. + basic_machine=cydra-cydrome
  16200. + ;;
  16201. + orion)
  16202. + basic_machine=orion-highlevel
  16203. + ;;
  16204. + orion105)
  16205. + basic_machine=clipper-highlevel
  16206. + ;;
  16207. + mac | mpw | mac-mpw)
  16208. + basic_machine=m68k-apple
  16209. + ;;
  16210. + pmac | pmac-mpw)
  16211. + basic_machine=powerpc-apple
  16212. + ;;
  16213. + *-unknown)
  16214. + # Make sure to match an already-canonicalized machine name.
  16215. + ;;
  16216. + *)
  16217. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  16218. + exit 1
  16219. + ;;
  16220. +esac
  16221. +
  16222. +# Here we canonicalize certain aliases for manufacturers.
  16223. +case $basic_machine in
  16224. + *-digital*)
  16225. + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  16226. + ;;
  16227. + *-commodore*)
  16228. + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  16229. + ;;
  16230. + *)
  16231. + ;;
  16232. +esac
  16233. -# Always run configfsf.sub with $SHELL, like autoconf does for config.sub
  16234. -SHELL=${CONFIG_SHELL-/bin/sh}
  16235. +# Decode manufacturer-specific aliases for certain operating systems.
  16236. -# Identify ourselves on --version, --help, etc
  16237. -case "$1" in
  16238. -"" | -*)
  16239. - echo "(GNU MP wrapped config.sub)" 1>&2
  16240. - $SHELL $configfsf_sub "$@"
  16241. - exit
  16242. - ;;
  16243. -esac
  16244. -
  16245. -given_full="$1"
  16246. -given_cpu=`echo "$given_full" | sed 's/-.*$//'`
  16247. -given_rest=`echo "$given_full" | sed 's/^[^-]*//'`
  16248. -
  16249. -
  16250. -# Aliases for GMP extras
  16251. -case "$given_cpu" in
  16252. - # configfsf.sub turns p5 into i586, instead use our exact cpu type
  16253. - p5 | p54) given_cpu=pentium ;;
  16254. - p55) given_cpu=pentiummmx ;;
  16255. -
  16256. - # configfsf.sub turns p6, pentiumii and pentiumiii into i686, instead use
  16257. - # our exact cpu types
  16258. - p6) given_cpu=pentiumpro ;;
  16259. - pentiumii) given_cpu=pentium2 ;;
  16260. - pentiumiii) given_cpu=pentium3 ;;
  16261. -esac
  16262. -given_full="$given_cpu$given_rest"
  16263. -
  16264. -
  16265. -# GMP extras and what to use for the config.sub test
  16266. -case "$given_cpu" in
  16267. -itanium | itanium2)
  16268. - test_cpu=ia64 ;;
  16269. -pentium | pentiummmx | pentiumpro | pentium[234m] | k[56] | k6[23] | geode | athlon | viac3*)
  16270. - test_cpu=i386 ;;
  16271. -athlon64 | atom | core2 | opteron)
  16272. - test_cpu=x86_64 ;;
  16273. -power[2-9] | power2sc)
  16274. - test_cpu=power ;;
  16275. -powerpc401 | powerpc403 | powerpc405 | \
  16276. -powerpc505 | \
  16277. -powerpc601 | powerpc602 | \
  16278. -powerpc603 | powerpc603e | \
  16279. -powerpc604 | powerpc604e | \
  16280. -powerpc620 | powerpc630 | powerpc970 | \
  16281. -powerpc740 | powerpc7400 | powerpc7450 | powerpc750 | \
  16282. -powerpc801 | powerpc821 | powerpc823 | powerpc860 | \
  16283. -powerpc64)
  16284. - test_cpu=powerpc ;;
  16285. -sparcv8 | supersparc | microsparc | \
  16286. -ultrasparc | ultrasparc2 | ultrasparc2i | ultrasparc3 | ultrasparct1)
  16287. - test_cpu=sparc ;;
  16288. -sh2)
  16289. - test_cpu=sh ;;
  16290. -
  16291. -*)
  16292. - # Don't need or want to change the given name, just run configfsf.sub
  16293. - $SHELL $configfsf_sub "$given_full"
  16294. - if test $? = 0; then
  16295. - exit 0
  16296. - else
  16297. - echo "(GNU MP wrapped config.sub, testing \"$given_full\")"
  16298. - exit 1
  16299. - fi
  16300. -esac
  16301. -
  16302. -
  16303. -test_full="$test_cpu$given_rest"
  16304. -canonical_full=`$SHELL $configfsf_sub "$test_full"`
  16305. -if test $? = 0; then
  16306. - :
  16307. +if [ x"$os" != x"" ]
  16308. +then
  16309. +case $os in
  16310. + # First match some system type aliases
  16311. + # that might get confused with valid system types.
  16312. + # -solaris* is a basic system type, with this one exception.
  16313. + -solaris1 | -solaris1.*)
  16314. + os=`echo $os | sed -e 's|solaris1|sunos4|'`
  16315. + ;;
  16316. + -solaris)
  16317. + os=-solaris2
  16318. + ;;
  16319. + -svr4*)
  16320. + os=-sysv4
  16321. + ;;
  16322. + -unixware*)
  16323. + os=-sysv4.2uw
  16324. + ;;
  16325. + -gnu/linux*)
  16326. + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  16327. + ;;
  16328. + # First accept the basic system types.
  16329. + # The portable systems comes first.
  16330. + # Each alternative MUST END IN A *, to match a version number.
  16331. + # -sysv* is not here because it comes later, after sysvr4.
  16332. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  16333. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  16334. + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  16335. + | -kopensolaris* \
  16336. + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  16337. + | -aos* | -aros* \
  16338. + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  16339. + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  16340. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  16341. + | -openbsd* | -solidbsd* \
  16342. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  16343. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  16344. + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  16345. + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  16346. + | -chorusos* | -chorusrdb* | -cegcc* \
  16347. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  16348. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  16349. + | -uxpv* | -beos* | -mpeix* | -udk* \
  16350. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  16351. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  16352. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  16353. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  16354. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  16355. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  16356. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  16357. + # Remember, each alternative MUST END IN *, to match a version number.
  16358. + ;;
  16359. + -qnx*)
  16360. + case $basic_machine in
  16361. + x86-* | i*86-*)
  16362. + ;;
  16363. + *)
  16364. + os=-nto$os
  16365. + ;;
  16366. + esac
  16367. + ;;
  16368. + -nto-qnx*)
  16369. + ;;
  16370. + -nto*)
  16371. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  16372. + ;;
  16373. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  16374. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  16375. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  16376. + ;;
  16377. + -mac*)
  16378. + os=`echo $os | sed -e 's|mac|macos|'`
  16379. + ;;
  16380. + -linux-dietlibc)
  16381. + os=-linux-dietlibc
  16382. + ;;
  16383. + -linux*)
  16384. + os=`echo $os | sed -e 's|linux|linux-gnu|'`
  16385. + ;;
  16386. + -sunos5*)
  16387. + os=`echo $os | sed -e 's|sunos5|solaris2|'`
  16388. + ;;
  16389. + -sunos6*)
  16390. + os=`echo $os | sed -e 's|sunos6|solaris3|'`
  16391. + ;;
  16392. + -opened*)
  16393. + os=-openedition
  16394. + ;;
  16395. + -os400*)
  16396. + os=-os400
  16397. + ;;
  16398. + -wince*)
  16399. + os=-wince
  16400. + ;;
  16401. + -osfrose*)
  16402. + os=-osfrose
  16403. + ;;
  16404. + -osf*)
  16405. + os=-osf
  16406. + ;;
  16407. + -utek*)
  16408. + os=-bsd
  16409. + ;;
  16410. + -dynix*)
  16411. + os=-bsd
  16412. + ;;
  16413. + -acis*)
  16414. + os=-aos
  16415. + ;;
  16416. + -atheos*)
  16417. + os=-atheos
  16418. + ;;
  16419. + -syllable*)
  16420. + os=-syllable
  16421. + ;;
  16422. + -386bsd)
  16423. + os=-bsd
  16424. + ;;
  16425. + -ctix* | -uts*)
  16426. + os=-sysv
  16427. + ;;
  16428. + -nova*)
  16429. + os=-rtmk-nova
  16430. + ;;
  16431. + -ns2 )
  16432. + os=-nextstep2
  16433. + ;;
  16434. + -nsk*)
  16435. + os=-nsk
  16436. + ;;
  16437. + # Preserve the version number of sinix5.
  16438. + -sinix5.*)
  16439. + os=`echo $os | sed -e 's|sinix|sysv|'`
  16440. + ;;
  16441. + -sinix*)
  16442. + os=-sysv4
  16443. + ;;
  16444. + -tpf*)
  16445. + os=-tpf
  16446. + ;;
  16447. + -triton*)
  16448. + os=-sysv3
  16449. + ;;
  16450. + -oss*)
  16451. + os=-sysv3
  16452. + ;;
  16453. + -svr4)
  16454. + os=-sysv4
  16455. + ;;
  16456. + -svr3)
  16457. + os=-sysv3
  16458. + ;;
  16459. + -sysvr4)
  16460. + os=-sysv4
  16461. + ;;
  16462. + # This must come after -sysvr4.
  16463. + -sysv*)
  16464. + ;;
  16465. + -ose*)
  16466. + os=-ose
  16467. + ;;
  16468. + -es1800*)
  16469. + os=-ose
  16470. + ;;
  16471. + -xenix)
  16472. + os=-xenix
  16473. + ;;
  16474. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  16475. + os=-mint
  16476. + ;;
  16477. + -aros*)
  16478. + os=-aros
  16479. + ;;
  16480. + -kaos*)
  16481. + os=-kaos
  16482. + ;;
  16483. + -zvmoe)
  16484. + os=-zvmoe
  16485. + ;;
  16486. + -dicos*)
  16487. + os=-dicos
  16488. + ;;
  16489. + -none)
  16490. + ;;
  16491. + *)
  16492. + # Get rid of the `-' at the beginning of $os.
  16493. + os=`echo $os | sed 's/[^-]*-//'`
  16494. + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  16495. + exit 1
  16496. + ;;
  16497. +esac
  16498. else
  16499. - echo "(GNU MP wrapped config.sub, testing \"$given_full\" as \"$test_full\")"
  16500. - exit 1
  16501. -fi
  16502. -canonical_rest=`echo "$canonical_full" | sed 's/^[^-]*//'`
  16503. -echo "$given_cpu$canonical_rest"
  16504. -exit 0
  16505. +# Here we handle the default operating systems that come with various machines.
  16506. +# The value should be what the vendor currently ships out the door with their
  16507. +# machine or put another way, the most popular os provided with the machine.
  16508. +
  16509. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  16510. +# "-sun"), then you have to tell the case statement up towards the top
  16511. +# that MANUFACTURER isn't an operating system. Otherwise, code above
  16512. +# will signal an error saying that MANUFACTURER isn't an operating
  16513. +# system, and we'll never get to this point.
  16514. +
  16515. +case $basic_machine in
  16516. + score-*)
  16517. + os=-elf
  16518. + ;;
  16519. + spu-*)
  16520. + os=-elf
  16521. + ;;
  16522. + *-acorn)
  16523. + os=-riscix1.2
  16524. + ;;
  16525. + arm*-rebel)
  16526. + os=-linux
  16527. + ;;
  16528. + arm*-semi)
  16529. + os=-aout
  16530. + ;;
  16531. + c4x-* | tic4x-*)
  16532. + os=-coff
  16533. + ;;
  16534. + # This must come before the *-dec entry.
  16535. + pdp10-*)
  16536. + os=-tops20
  16537. + ;;
  16538. + pdp11-*)
  16539. + os=-none
  16540. + ;;
  16541. + *-dec | vax-*)
  16542. + os=-ultrix4.2
  16543. + ;;
  16544. + m68*-apollo)
  16545. + os=-domain
  16546. + ;;
  16547. + i386-sun)
  16548. + os=-sunos4.0.2
  16549. + ;;
  16550. + m68000-sun)
  16551. + os=-sunos3
  16552. + # This also exists in the configure program, but was not the
  16553. + # default.
  16554. + # os=-sunos4
  16555. + ;;
  16556. + m68*-cisco)
  16557. + os=-aout
  16558. + ;;
  16559. + mep-*)
  16560. + os=-elf
  16561. + ;;
  16562. + mips*-cisco)
  16563. + os=-elf
  16564. + ;;
  16565. + mips*-*)
  16566. + os=-elf
  16567. + ;;
  16568. + or32-*)
  16569. + os=-coff
  16570. + ;;
  16571. + *-tti) # must be before sparc entry or we get the wrong os.
  16572. + os=-sysv3
  16573. + ;;
  16574. + sparc-* | *-sun)
  16575. + os=-sunos4.1.1
  16576. + ;;
  16577. + *-be)
  16578. + os=-beos
  16579. + ;;
  16580. + *-haiku)
  16581. + os=-haiku
  16582. + ;;
  16583. + *-ibm)
  16584. + os=-aix
  16585. + ;;
  16586. + *-knuth)
  16587. + os=-mmixware
  16588. + ;;
  16589. + *-wec)
  16590. + os=-proelf
  16591. + ;;
  16592. + *-winbond)
  16593. + os=-proelf
  16594. + ;;
  16595. + *-oki)
  16596. + os=-proelf
  16597. + ;;
  16598. + *-hp)
  16599. + os=-hpux
  16600. + ;;
  16601. + *-hitachi)
  16602. + os=-hiux
  16603. + ;;
  16604. + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  16605. + os=-sysv
  16606. + ;;
  16607. + *-cbm)
  16608. + os=-amigaos
  16609. + ;;
  16610. + *-dg)
  16611. + os=-dgux
  16612. + ;;
  16613. + *-dolphin)
  16614. + os=-sysv3
  16615. + ;;
  16616. + m68k-ccur)
  16617. + os=-rtu
  16618. + ;;
  16619. + m88k-omron*)
  16620. + os=-luna
  16621. + ;;
  16622. + *-next )
  16623. + os=-nextstep
  16624. + ;;
  16625. + *-sequent)
  16626. + os=-ptx
  16627. + ;;
  16628. + *-crds)
  16629. + os=-unos
  16630. + ;;
  16631. + *-ns)
  16632. + os=-genix
  16633. + ;;
  16634. + i370-*)
  16635. + os=-mvs
  16636. + ;;
  16637. + *-next)
  16638. + os=-nextstep3
  16639. + ;;
  16640. + *-gould)
  16641. + os=-sysv
  16642. + ;;
  16643. + *-highlevel)
  16644. + os=-bsd
  16645. + ;;
  16646. + *-encore)
  16647. + os=-bsd
  16648. + ;;
  16649. + *-sgi)
  16650. + os=-irix
  16651. + ;;
  16652. + *-siemens)
  16653. + os=-sysv4
  16654. + ;;
  16655. + *-masscomp)
  16656. + os=-rtu
  16657. + ;;
  16658. + f30[01]-fujitsu | f700-fujitsu)
  16659. + os=-uxpv
  16660. + ;;
  16661. + *-rom68k)
  16662. + os=-coff
  16663. + ;;
  16664. + *-*bug)
  16665. + os=-coff
  16666. + ;;
  16667. + *-apple)
  16668. + os=-macos
  16669. + ;;
  16670. + *-atari*)
  16671. + os=-mint
  16672. + ;;
  16673. + *)
  16674. + os=-none
  16675. + ;;
  16676. +esac
  16677. +fi
  16678. +# Here we handle the case where we know the os, and the CPU type, but not the
  16679. +# manufacturer. We pick the logical manufacturer.
  16680. +vendor=unknown
  16681. +case $basic_machine in
  16682. + *-unknown)
  16683. + case $os in
  16684. + -riscix*)
  16685. + vendor=acorn
  16686. + ;;
  16687. + -sunos*)
  16688. + vendor=sun
  16689. + ;;
  16690. + -cnk*|-aix*)
  16691. + vendor=ibm
  16692. + ;;
  16693. + -beos*)
  16694. + vendor=be
  16695. + ;;
  16696. + -hpux*)
  16697. + vendor=hp
  16698. + ;;
  16699. + -mpeix*)
  16700. + vendor=hp
  16701. + ;;
  16702. + -hiux*)
  16703. + vendor=hitachi
  16704. + ;;
  16705. + -unos*)
  16706. + vendor=crds
  16707. + ;;
  16708. + -dgux*)
  16709. + vendor=dg
  16710. + ;;
  16711. + -luna*)
  16712. + vendor=omron
  16713. + ;;
  16714. + -genix*)
  16715. + vendor=ns
  16716. + ;;
  16717. + -mvs* | -opened*)
  16718. + vendor=ibm
  16719. + ;;
  16720. + -os400*)
  16721. + vendor=ibm
  16722. + ;;
  16723. + -ptx*)
  16724. + vendor=sequent
  16725. + ;;
  16726. + -tpf*)
  16727. + vendor=ibm
  16728. + ;;
  16729. + -vxsim* | -vxworks* | -windiss*)
  16730. + vendor=wrs
  16731. + ;;
  16732. + -aux*)
  16733. + vendor=apple
  16734. + ;;
  16735. + -hms*)
  16736. + vendor=hitachi
  16737. + ;;
  16738. + -mpw* | -macos*)
  16739. + vendor=apple
  16740. + ;;
  16741. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  16742. + vendor=atari
  16743. + ;;
  16744. + -vos*)
  16745. + vendor=stratus
  16746. + ;;
  16747. + esac
  16748. + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  16749. + ;;
  16750. +esac
  16751. +echo $basic_machine$os
  16752. +exit
  16753. # Local variables:
  16754. -# fill-column: 76
  16755. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  16756. +# time-stamp-start: "timestamp='"
  16757. +# time-stamp-format: "%:y-%02m-%02d"
  16758. +# time-stamp-end: "'"
  16759. # End:
  16760. diff -Nur gmp-4.3.2.orig/configure gmp-4.3.2/configure
  16761. --- gmp-4.3.2.orig/configure 2010-01-07 21:09:40.000000000 +0100
  16762. +++ gmp-4.3.2/configure 2011-02-16 19:23:18.033561994 +0100
  16763. @@ -1,7 +1,7 @@
  16764. #! /bin/sh
  16765. # From configure.in Revision.
  16766. # Guess values for system-dependent variables and create Makefiles.
  16767. -# Generated by GNU Autoconf 2.61 for GNU MP 4.3.2.
  16768. +# Generated by GNU Autoconf 2.65 for GNU MP 4.3.2.
  16769. #
  16770. # Report bugs to <gmp-bugs@gmplib.org>.
  16771. #
  16772. @@ -26,59 +26,82 @@
  16773. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  16774. #
  16775. #
  16776. +#
  16777. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16778. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  16779. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  16780. +# Inc.
  16781. +#
  16782. +#
  16783. # This configure script is free software; the Free Software Foundation
  16784. # gives unlimited permission to copy, distribute and modify it.
  16785. -## --------------------- ##
  16786. -## M4sh Initialization. ##
  16787. -## --------------------- ##
  16788. +## -------------------- ##
  16789. +## M4sh Initialization. ##
  16790. +## -------------------- ##
  16791. # Be more Bourne compatible
  16792. DUALCASE=1; export DUALCASE # for MKS sh
  16793. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16794. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16795. emulate sh
  16796. NULLCMD=:
  16797. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16798. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16799. # is contrary to our usage. Disable this feature.
  16800. alias -g '${1+"$@"}'='"$@"'
  16801. setopt NO_GLOB_SUBST
  16802. else
  16803. - case `(set -o) 2>/dev/null` in
  16804. - *posix*) set -o posix ;;
  16805. + case `(set -o) 2>/dev/null` in #(
  16806. + *posix*) :
  16807. + set -o posix ;; #(
  16808. + *) :
  16809. + ;;
  16810. esac
  16811. -
  16812. fi
  16813. -
  16814. -
  16815. -# PATH needs CR
  16816. -# Avoid depending upon Character Ranges.
  16817. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16818. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16819. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16820. -as_cr_digits='0123456789'
  16821. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  16822. -
  16823. -# The user is always right.
  16824. -if test "${PATH_SEPARATOR+set}" != set; then
  16825. - echo "#! /bin/sh" >conf$$.sh
  16826. - echo "exit 0" >>conf$$.sh
  16827. - chmod +x conf$$.sh
  16828. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16829. - PATH_SEPARATOR=';'
  16830. - else
  16831. - PATH_SEPARATOR=:
  16832. +as_nl='
  16833. +'
  16834. +export as_nl
  16835. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  16836. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16837. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16838. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16839. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  16840. +# but without wasting forks for bash or zsh.
  16841. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  16842. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16843. + as_echo='print -r --'
  16844. + as_echo_n='print -rn --'
  16845. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16846. + as_echo='printf %s\n'
  16847. + as_echo_n='printf %s'
  16848. +else
  16849. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16850. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16851. + as_echo_n='/usr/ucb/echo -n'
  16852. + else
  16853. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16854. + as_echo_n_body='eval
  16855. + arg=$1;
  16856. + case $arg in #(
  16857. + *"$as_nl"*)
  16858. + expr "X$arg" : "X\\(.*\\)$as_nl";
  16859. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16860. + esac;
  16861. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16862. + '
  16863. + export as_echo_n_body
  16864. + as_echo_n='sh -c $as_echo_n_body as_echo'
  16865. fi
  16866. - rm -f conf$$.sh
  16867. + export as_echo_body
  16868. + as_echo='sh -c $as_echo_body as_echo'
  16869. fi
  16870. -# Support unset when possible.
  16871. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16872. - as_unset=unset
  16873. -else
  16874. - as_unset=false
  16875. +# The user is always right.
  16876. +if test "${PATH_SEPARATOR+set}" != set; then
  16877. + PATH_SEPARATOR=:
  16878. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16879. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16880. + PATH_SEPARATOR=';'
  16881. + }
  16882. fi
  16883. @@ -87,20 +110,18 @@
  16884. # there to prevent editors from complaining about space-tab.
  16885. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16886. # splitting by setting IFS to empty value.)
  16887. -as_nl='
  16888. -'
  16889. IFS=" "" $as_nl"
  16890. # Find who we are. Look in the path if we contain no directory separator.
  16891. -case $0 in
  16892. +case $0 in #((
  16893. *[\\/]* ) as_myself=$0 ;;
  16894. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16895. for as_dir in $PATH
  16896. do
  16897. IFS=$as_save_IFS
  16898. test -z "$as_dir" && as_dir=.
  16899. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16900. -done
  16901. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16902. + done
  16903. IFS=$as_save_IFS
  16904. ;;
  16905. @@ -111,32 +132,271 @@
  16906. as_myself=$0
  16907. fi
  16908. if test ! -f "$as_myself"; then
  16909. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16910. - { (exit 1); exit 1; }
  16911. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16912. + exit 1
  16913. fi
  16914. -# Work around bugs in pre-3.0 UWIN ksh.
  16915. -for as_var in ENV MAIL MAILPATH
  16916. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16917. +# Unset variables that we do not need and which cause bugs (e.g. in
  16918. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16919. +# suppresses any "Segmentation fault" message there. '((' could
  16920. +# trigger a bug in pdksh 5.2.14.
  16921. +for as_var in BASH_ENV ENV MAIL MAILPATH
  16922. +do eval test x\${$as_var+set} = xset \
  16923. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16924. done
  16925. PS1='$ '
  16926. PS2='> '
  16927. PS4='+ '
  16928. # NLS nuisances.
  16929. -for as_var in \
  16930. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  16931. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  16932. - LC_TELEPHONE LC_TIME
  16933. +LC_ALL=C
  16934. +export LC_ALL
  16935. +LANGUAGE=C
  16936. +export LANGUAGE
  16937. +
  16938. +# CDPATH.
  16939. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16940. +
  16941. +if test "x$CONFIG_SHELL" = x; then
  16942. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  16943. + emulate sh
  16944. + NULLCMD=:
  16945. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  16946. + # is contrary to our usage. Disable this feature.
  16947. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  16948. + setopt NO_GLOB_SUBST
  16949. +else
  16950. + case \`(set -o) 2>/dev/null\` in #(
  16951. + *posix*) :
  16952. + set -o posix ;; #(
  16953. + *) :
  16954. + ;;
  16955. +esac
  16956. +fi
  16957. +"
  16958. + as_required="as_fn_return () { (exit \$1); }
  16959. +as_fn_success () { as_fn_return 0; }
  16960. +as_fn_failure () { as_fn_return 1; }
  16961. +as_fn_ret_success () { return 0; }
  16962. +as_fn_ret_failure () { return 1; }
  16963. +
  16964. +exitcode=0
  16965. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  16966. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  16967. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  16968. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  16969. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  16970. +
  16971. +else
  16972. + exitcode=1; echo positional parameters were not saved.
  16973. +fi
  16974. +test x\$exitcode = x0 || exit 1"
  16975. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  16976. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  16977. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  16978. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  16979. +test \$(( 1 + 1 )) = 2 || exit 1"
  16980. + if (eval "$as_required") 2>/dev/null; then :
  16981. + as_have_required=yes
  16982. +else
  16983. + as_have_required=no
  16984. +fi
  16985. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  16986. +
  16987. +else
  16988. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16989. +as_found=false
  16990. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16991. do
  16992. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16993. - eval $as_var=C; export $as_var
  16994. - else
  16995. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16996. - fi
  16997. + IFS=$as_save_IFS
  16998. + test -z "$as_dir" && as_dir=.
  16999. + as_found=:
  17000. + case $as_dir in #(
  17001. + /*)
  17002. + for as_base in sh bash ksh sh5; do
  17003. + # Try only shells that exist, to save several forks.
  17004. + as_shell=$as_dir/$as_base
  17005. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  17006. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  17007. + CONFIG_SHELL=$as_shell as_have_required=yes
  17008. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  17009. + break 2
  17010. +fi
  17011. +fi
  17012. + done;;
  17013. + esac
  17014. + as_found=false
  17015. done
  17016. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  17017. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  17018. + CONFIG_SHELL=$SHELL as_have_required=yes
  17019. +fi; }
  17020. +IFS=$as_save_IFS
  17021. +
  17022. +
  17023. + if test "x$CONFIG_SHELL" != x; then :
  17024. + # We cannot yet assume a decent shell, so we have to provide a
  17025. + # neutralization value for shells without unset; and this also
  17026. + # works around shells that cannot unset nonexistent variables.
  17027. + BASH_ENV=/dev/null
  17028. + ENV=/dev/null
  17029. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  17030. + export CONFIG_SHELL
  17031. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  17032. +fi
  17033. +
  17034. + if test x$as_have_required = xno; then :
  17035. + $as_echo "$0: This script requires a shell more modern than all"
  17036. + $as_echo "$0: the shells that I found on your system."
  17037. + if test x${ZSH_VERSION+set} = xset ; then
  17038. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  17039. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  17040. + else
  17041. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  17042. +$0: gmp-bugs@gmplib.org about your system, including any
  17043. +$0: error possibly output before this message. Then install
  17044. +$0: a modern shell, or manually run the script under such a
  17045. +$0: shell if you do have one."
  17046. + fi
  17047. + exit 1
  17048. +fi
  17049. +fi
  17050. +fi
  17051. +SHELL=${CONFIG_SHELL-/bin/sh}
  17052. +export SHELL
  17053. +# Unset more variables known to interfere with behavior of common tools.
  17054. +CLICOLOR_FORCE= GREP_OPTIONS=
  17055. +unset CLICOLOR_FORCE GREP_OPTIONS
  17056. +
  17057. +## --------------------- ##
  17058. +## M4sh Shell Functions. ##
  17059. +## --------------------- ##
  17060. +# as_fn_unset VAR
  17061. +# ---------------
  17062. +# Portably unset VAR.
  17063. +as_fn_unset ()
  17064. +{
  17065. + { eval $1=; unset $1;}
  17066. +}
  17067. +as_unset=as_fn_unset
  17068. +
  17069. +# as_fn_set_status STATUS
  17070. +# -----------------------
  17071. +# Set $? to STATUS, without forking.
  17072. +as_fn_set_status ()
  17073. +{
  17074. + return $1
  17075. +} # as_fn_set_status
  17076. +
  17077. +# as_fn_exit STATUS
  17078. +# -----------------
  17079. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17080. +as_fn_exit ()
  17081. +{
  17082. + set +e
  17083. + as_fn_set_status $1
  17084. + exit $1
  17085. +} # as_fn_exit
  17086. +
  17087. +# as_fn_mkdir_p
  17088. +# -------------
  17089. +# Create "$as_dir" as a directory, including parents if necessary.
  17090. +as_fn_mkdir_p ()
  17091. +{
  17092. +
  17093. + case $as_dir in #(
  17094. + -*) as_dir=./$as_dir;;
  17095. + esac
  17096. + test -d "$as_dir" || eval $as_mkdir_p || {
  17097. + as_dirs=
  17098. + while :; do
  17099. + case $as_dir in #(
  17100. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17101. + *) as_qdir=$as_dir;;
  17102. + esac
  17103. + as_dirs="'$as_qdir' $as_dirs"
  17104. + as_dir=`$as_dirname -- "$as_dir" ||
  17105. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17106. + X"$as_dir" : 'X\(//\)[^/]' \| \
  17107. + X"$as_dir" : 'X\(//\)$' \| \
  17108. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17109. +$as_echo X"$as_dir" |
  17110. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17111. + s//\1/
  17112. + q
  17113. + }
  17114. + /^X\(\/\/\)[^/].*/{
  17115. + s//\1/
  17116. + q
  17117. + }
  17118. + /^X\(\/\/\)$/{
  17119. + s//\1/
  17120. + q
  17121. + }
  17122. + /^X\(\/\).*/{
  17123. + s//\1/
  17124. + q
  17125. + }
  17126. + s/.*/./; q'`
  17127. + test -d "$as_dir" && break
  17128. + done
  17129. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  17130. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  17131. +
  17132. +
  17133. +} # as_fn_mkdir_p
  17134. +# as_fn_append VAR VALUE
  17135. +# ----------------------
  17136. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  17137. +# advantage of any shell optimizations that allow amortized linear growth over
  17138. +# repeated appends, instead of the typical quadratic growth present in naive
  17139. +# implementations.
  17140. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17141. + eval 'as_fn_append ()
  17142. + {
  17143. + eval $1+=\$2
  17144. + }'
  17145. +else
  17146. + as_fn_append ()
  17147. + {
  17148. + eval $1=\$$1\$2
  17149. + }
  17150. +fi # as_fn_append
  17151. +
  17152. +# as_fn_arith ARG...
  17153. +# ------------------
  17154. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  17155. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  17156. +# must be portable across $(()) and expr.
  17157. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17158. + eval 'as_fn_arith ()
  17159. + {
  17160. + as_val=$(( $* ))
  17161. + }'
  17162. +else
  17163. + as_fn_arith ()
  17164. + {
  17165. + as_val=`expr "$@" || test $? -eq 1`
  17166. + }
  17167. +fi # as_fn_arith
  17168. +
  17169. +
  17170. +# as_fn_error ERROR [LINENO LOG_FD]
  17171. +# ---------------------------------
  17172. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17173. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17174. +# script with status $?, using 1 if that was 0.
  17175. +as_fn_error ()
  17176. +{
  17177. + as_status=$?; test $as_status -eq 0 && as_status=1
  17178. + if test "$3"; then
  17179. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17180. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  17181. + fi
  17182. + $as_echo "$as_me: error: $1" >&2
  17183. + as_fn_exit $as_status
  17184. +} # as_fn_error
  17185. -# Required to use basename.
  17186. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17187. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17188. as_expr=expr
  17189. @@ -150,13 +410,17 @@
  17190. as_basename=false
  17191. fi
  17192. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17193. + as_dirname=dirname
  17194. +else
  17195. + as_dirname=false
  17196. +fi
  17197. -# Name of the executable.
  17198. as_me=`$as_basename -- "$0" ||
  17199. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17200. X"$0" : 'X\(//\)$' \| \
  17201. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17202. -echo X/"$0" |
  17203. +$as_echo X/"$0" |
  17204. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17205. s//\1/
  17206. q
  17207. @@ -171,428 +435,142 @@
  17208. }
  17209. s/.*/./; q'`
  17210. -# CDPATH.
  17211. -$as_unset CDPATH
  17212. +# Avoid depending upon Character Ranges.
  17213. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17214. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17215. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17216. +as_cr_digits='0123456789'
  17217. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  17218. -if test "x$CONFIG_SHELL" = x; then
  17219. - if (eval ":") 2>/dev/null; then
  17220. - as_have_required=yes
  17221. -else
  17222. - as_have_required=no
  17223. -fi
  17224. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  17225. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  17226. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  17227. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  17228. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  17229. + sed -n '
  17230. + p
  17231. + /[$]LINENO/=
  17232. + ' <$as_myself |
  17233. + sed '
  17234. + s/[$]LINENO.*/&-/
  17235. + t lineno
  17236. + b
  17237. + :lineno
  17238. + N
  17239. + :loop
  17240. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  17241. + t loop
  17242. + s/-\n.*//
  17243. + ' >$as_me.lineno &&
  17244. + chmod +x "$as_me.lineno" ||
  17245. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  17246. - if test $as_have_required = yes && (eval ":
  17247. -(as_func_return () {
  17248. - (exit \$1)
  17249. -}
  17250. -as_func_success () {
  17251. - as_func_return 0
  17252. -}
  17253. -as_func_failure () {
  17254. - as_func_return 1
  17255. -}
  17256. -as_func_ret_success () {
  17257. - return 0
  17258. -}
  17259. -as_func_ret_failure () {
  17260. - return 1
  17261. + # Don't try to exec as it changes $[0], causing all sort of problems
  17262. + # (the dirname of $[0] is not the place where we might find the
  17263. + # original and so on. Autoconf is especially sensitive to this).
  17264. + . "./$as_me.lineno"
  17265. + # Exit status is that of the last command.
  17266. + exit
  17267. }
  17268. -exitcode=0
  17269. -if as_func_success; then
  17270. - :
  17271. -else
  17272. - exitcode=1
  17273. - echo as_func_success failed.
  17274. -fi
  17275. +ECHO_C= ECHO_N= ECHO_T=
  17276. +case `echo -n x` in #(((((
  17277. +-n*)
  17278. + case `echo 'xy\c'` in
  17279. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17280. + xy) ECHO_C='\c';;
  17281. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17282. + ECHO_T=' ';;
  17283. + esac;;
  17284. +*)
  17285. + ECHO_N='-n';;
  17286. +esac
  17287. -if as_func_failure; then
  17288. - exitcode=1
  17289. - echo as_func_failure succeeded.
  17290. +rm -f conf$$ conf$$.exe conf$$.file
  17291. +if test -d conf$$.dir; then
  17292. + rm -f conf$$.dir/conf$$.file
  17293. +else
  17294. + rm -f conf$$.dir
  17295. + mkdir conf$$.dir 2>/dev/null
  17296. fi
  17297. -
  17298. -if as_func_ret_success; then
  17299. - :
  17300. +if (echo >conf$$.file) 2>/dev/null; then
  17301. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  17302. + as_ln_s='ln -s'
  17303. + # ... but there are two gotchas:
  17304. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17305. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17306. + # In both cases, we have to default to `cp -p'.
  17307. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17308. + as_ln_s='cp -p'
  17309. + elif ln conf$$.file conf$$ 2>/dev/null; then
  17310. + as_ln_s=ln
  17311. + else
  17312. + as_ln_s='cp -p'
  17313. + fi
  17314. else
  17315. - exitcode=1
  17316. - echo as_func_ret_success failed.
  17317. + as_ln_s='cp -p'
  17318. fi
  17319. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17320. +rmdir conf$$.dir 2>/dev/null
  17321. -if as_func_ret_failure; then
  17322. - exitcode=1
  17323. - echo as_func_ret_failure succeeded.
  17324. +if mkdir -p . 2>/dev/null; then
  17325. + as_mkdir_p='mkdir -p "$as_dir"'
  17326. +else
  17327. + test -d ./-p && rmdir ./-p
  17328. + as_mkdir_p=false
  17329. fi
  17330. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  17331. - :
  17332. +if test -x / >/dev/null 2>&1; then
  17333. + as_test_x='test -x'
  17334. else
  17335. - exitcode=1
  17336. - echo positional parameters were not saved.
  17337. + if ls -dL / >/dev/null 2>&1; then
  17338. + as_ls_L_option=L
  17339. + else
  17340. + as_ls_L_option=
  17341. + fi
  17342. + as_test_x='
  17343. + eval sh -c '\''
  17344. + if test -d "$1"; then
  17345. + test -d "$1/.";
  17346. + else
  17347. + case $1 in #(
  17348. + -*)set "./$1";;
  17349. + esac;
  17350. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  17351. + ???[sx]*):;;*)false;;esac;fi
  17352. + '\'' sh
  17353. + '
  17354. fi
  17355. +as_executable_p=$as_test_x
  17356. -test \$exitcode = 0) || { (exit 1); exit 1; }
  17357. -
  17358. -(
  17359. - as_lineno_1=\$LINENO
  17360. - as_lineno_2=\$LINENO
  17361. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  17362. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  17363. -") 2> /dev/null; then
  17364. - :
  17365. -else
  17366. - as_candidate_shells=
  17367. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17368. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  17369. -do
  17370. - IFS=$as_save_IFS
  17371. - test -z "$as_dir" && as_dir=.
  17372. - case $as_dir in
  17373. - /*)
  17374. - for as_base in sh bash ksh sh5; do
  17375. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  17376. - done;;
  17377. - esac
  17378. -done
  17379. -IFS=$as_save_IFS
  17380. +# Sed expression to map a string onto a valid CPP name.
  17381. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17382. +# Sed expression to map a string onto a valid variable name.
  17383. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17384. - for as_shell in $as_candidate_shells $SHELL; do
  17385. - # Try only shells that exist, to save several forks.
  17386. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  17387. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  17388. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17389. - emulate sh
  17390. - NULLCMD=:
  17391. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17392. - # is contrary to our usage. Disable this feature.
  17393. - alias -g '${1+"$@"}'='"$@"'
  17394. - setopt NO_GLOB_SUBST
  17395. -else
  17396. - case `(set -o) 2>/dev/null` in
  17397. - *posix*) set -o posix ;;
  17398. -esac
  17399. -fi
  17400. +# Check that we are running under the correct shell.
  17401. +SHELL=${CONFIG_SHELL-/bin/sh}
  17402. -:
  17403. -_ASEOF
  17404. -}; then
  17405. - CONFIG_SHELL=$as_shell
  17406. - as_have_required=yes
  17407. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  17408. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17409. - emulate sh
  17410. - NULLCMD=:
  17411. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17412. - # is contrary to our usage. Disable this feature.
  17413. - alias -g '${1+"$@"}'='"$@"'
  17414. - setopt NO_GLOB_SUBST
  17415. -else
  17416. - case `(set -o) 2>/dev/null` in
  17417. - *posix*) set -o posix ;;
  17418. +case X$lt_ECHO in
  17419. +X*--fallback-echo)
  17420. + # Remove one level of quotation (which was required for Make).
  17421. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  17422. + ;;
  17423. esac
  17424. -fi
  17425. -
  17426. -
  17427. -:
  17428. -(as_func_return () {
  17429. - (exit $1)
  17430. -}
  17431. -as_func_success () {
  17432. - as_func_return 0
  17433. -}
  17434. -as_func_failure () {
  17435. - as_func_return 1
  17436. -}
  17437. -as_func_ret_success () {
  17438. - return 0
  17439. -}
  17440. -as_func_ret_failure () {
  17441. - return 1
  17442. -}
  17443. -
  17444. -exitcode=0
  17445. -if as_func_success; then
  17446. - :
  17447. -else
  17448. - exitcode=1
  17449. - echo as_func_success failed.
  17450. -fi
  17451. -
  17452. -if as_func_failure; then
  17453. - exitcode=1
  17454. - echo as_func_failure succeeded.
  17455. -fi
  17456. -
  17457. -if as_func_ret_success; then
  17458. - :
  17459. -else
  17460. - exitcode=1
  17461. - echo as_func_ret_success failed.
  17462. -fi
  17463. -
  17464. -if as_func_ret_failure; then
  17465. - exitcode=1
  17466. - echo as_func_ret_failure succeeded.
  17467. -fi
  17468. -
  17469. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  17470. - :
  17471. -else
  17472. - exitcode=1
  17473. - echo positional parameters were not saved.
  17474. -fi
  17475. -
  17476. -test $exitcode = 0) || { (exit 1); exit 1; }
  17477. -
  17478. -(
  17479. - as_lineno_1=$LINENO
  17480. - as_lineno_2=$LINENO
  17481. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  17482. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  17483. -
  17484. -_ASEOF
  17485. -}; then
  17486. - break
  17487. -fi
  17488. -
  17489. -fi
  17490. -
  17491. - done
  17492. -
  17493. - if test "x$CONFIG_SHELL" != x; then
  17494. - for as_var in BASH_ENV ENV
  17495. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17496. - done
  17497. - export CONFIG_SHELL
  17498. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  17499. -fi
  17500. -
  17501. -
  17502. - if test $as_have_required = no; then
  17503. - echo This script requires a shell more modern than all the
  17504. - echo shells that I found on your system. Please install a
  17505. - echo modern shell, or manually run the script under such a
  17506. - echo shell if you do have one.
  17507. - { (exit 1); exit 1; }
  17508. -fi
  17509. -
  17510. -
  17511. -fi
  17512. -
  17513. -fi
  17514. -
  17515. -
  17516. -
  17517. -(eval "as_func_return () {
  17518. - (exit \$1)
  17519. -}
  17520. -as_func_success () {
  17521. - as_func_return 0
  17522. -}
  17523. -as_func_failure () {
  17524. - as_func_return 1
  17525. -}
  17526. -as_func_ret_success () {
  17527. - return 0
  17528. -}
  17529. -as_func_ret_failure () {
  17530. - return 1
  17531. -}
  17532. -
  17533. -exitcode=0
  17534. -if as_func_success; then
  17535. - :
  17536. -else
  17537. - exitcode=1
  17538. - echo as_func_success failed.
  17539. -fi
  17540. -
  17541. -if as_func_failure; then
  17542. - exitcode=1
  17543. - echo as_func_failure succeeded.
  17544. -fi
  17545. -
  17546. -if as_func_ret_success; then
  17547. - :
  17548. -else
  17549. - exitcode=1
  17550. - echo as_func_ret_success failed.
  17551. -fi
  17552. -
  17553. -if as_func_ret_failure; then
  17554. - exitcode=1
  17555. - echo as_func_ret_failure succeeded.
  17556. -fi
  17557. -
  17558. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  17559. - :
  17560. -else
  17561. - exitcode=1
  17562. - echo positional parameters were not saved.
  17563. -fi
  17564. -
  17565. -test \$exitcode = 0") || {
  17566. - echo No shell found that supports shell functions.
  17567. - echo Please tell autoconf@gnu.org about your system,
  17568. - echo including any error possibly output before this
  17569. - echo message
  17570. -}
  17571. -
  17572. -
  17573. -
  17574. - as_lineno_1=$LINENO
  17575. - as_lineno_2=$LINENO
  17576. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  17577. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  17578. -
  17579. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  17580. - # uniformly replaced by the line number. The first 'sed' inserts a
  17581. - # line-number line after each line using $LINENO; the second 'sed'
  17582. - # does the real work. The second script uses 'N' to pair each
  17583. - # line-number line with the line containing $LINENO, and appends
  17584. - # trailing '-' during substitution so that $LINENO is not a special
  17585. - # case at line end.
  17586. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  17587. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  17588. - # E. McMahon (1931-1989) for sed's syntax. :-)
  17589. - sed -n '
  17590. - p
  17591. - /[$]LINENO/=
  17592. - ' <$as_myself |
  17593. - sed '
  17594. - s/[$]LINENO.*/&-/
  17595. - t lineno
  17596. - b
  17597. - :lineno
  17598. - N
  17599. - :loop
  17600. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  17601. - t loop
  17602. - s/-\n.*//
  17603. - ' >$as_me.lineno &&
  17604. - chmod +x "$as_me.lineno" ||
  17605. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  17606. - { (exit 1); exit 1; }; }
  17607. -
  17608. - # Don't try to exec as it changes $[0], causing all sort of problems
  17609. - # (the dirname of $[0] is not the place where we might find the
  17610. - # original and so on. Autoconf is especially sensitive to this).
  17611. - . "./$as_me.lineno"
  17612. - # Exit status is that of the last command.
  17613. - exit
  17614. -}
  17615. -
  17616. -
  17617. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17618. - as_dirname=dirname
  17619. -else
  17620. - as_dirname=false
  17621. -fi
  17622. -
  17623. -ECHO_C= ECHO_N= ECHO_T=
  17624. -case `echo -n x` in
  17625. --n*)
  17626. - case `echo 'x\c'` in
  17627. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17628. - *) ECHO_C='\c';;
  17629. - esac;;
  17630. -*)
  17631. - ECHO_N='-n';;
  17632. -esac
  17633. -
  17634. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  17635. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17636. - as_expr=expr
  17637. -else
  17638. - as_expr=false
  17639. -fi
  17640. -
  17641. -rm -f conf$$ conf$$.exe conf$$.file
  17642. -if test -d conf$$.dir; then
  17643. - rm -f conf$$.dir/conf$$.file
  17644. -else
  17645. - rm -f conf$$.dir
  17646. - mkdir conf$$.dir
  17647. -fi
  17648. -echo >conf$$.file
  17649. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  17650. - as_ln_s='ln -s'
  17651. - # ... but there are two gotchas:
  17652. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17653. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17654. - # In both cases, we have to default to `cp -p'.
  17655. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17656. - as_ln_s='cp -p'
  17657. -elif ln conf$$.file conf$$ 2>/dev/null; then
  17658. - as_ln_s=ln
  17659. -else
  17660. - as_ln_s='cp -p'
  17661. -fi
  17662. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17663. -rmdir conf$$.dir 2>/dev/null
  17664. -
  17665. -if mkdir -p . 2>/dev/null; then
  17666. - as_mkdir_p=:
  17667. -else
  17668. - test -d ./-p && rmdir ./-p
  17669. - as_mkdir_p=false
  17670. -fi
  17671. -
  17672. -if test -x / >/dev/null 2>&1; then
  17673. - as_test_x='test -x'
  17674. -else
  17675. - if ls -dL / >/dev/null 2>&1; then
  17676. - as_ls_L_option=L
  17677. - else
  17678. - as_ls_L_option=
  17679. - fi
  17680. - as_test_x='
  17681. - eval sh -c '\''
  17682. - if test -d "$1"; then
  17683. - test -d "$1/.";
  17684. - else
  17685. - case $1 in
  17686. - -*)set "./$1";;
  17687. - esac;
  17688. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  17689. - ???[sx]*):;;*)false;;esac;fi
  17690. - '\'' sh
  17691. - '
  17692. -fi
  17693. -as_executable_p=$as_test_x
  17694. -
  17695. -# Sed expression to map a string onto a valid CPP name.
  17696. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17697. -
  17698. -# Sed expression to map a string onto a valid variable name.
  17699. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17700. -
  17701. -
  17702. -
  17703. -
  17704. -# Check that we are running under the correct shell.
  17705. -SHELL=${CONFIG_SHELL-/bin/sh}
  17706. -
  17707. -case X$ECHO in
  17708. -X*--fallback-echo)
  17709. - # Remove one level of quotation (which was required for Make).
  17710. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  17711. - ;;
  17712. -esac
  17713. -
  17714. -echo=${ECHO-echo}
  17715. +ECHO=${lt_ECHO-echo}
  17716. if test "X$1" = X--no-reexec; then
  17717. # Discard the --no-reexec flag, and continue.
  17718. shift
  17719. elif test "X$1" = X--fallback-echo; then
  17720. # Avoid inline document here, it may be left over
  17721. :
  17722. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  17723. - # Yippee, $echo works!
  17724. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  17725. + # Yippee, $ECHO works!
  17726. :
  17727. else
  17728. # Restart under the correct shell.
  17729. @@ -602,9 +580,9 @@
  17730. if test "X$1" = X--fallback-echo; then
  17731. # used as fallback echo
  17732. shift
  17733. - cat <<EOF
  17734. + cat <<_LT_EOF
  17735. $*
  17736. -EOF
  17737. +_LT_EOF
  17738. exit 0
  17739. fi
  17740. @@ -612,122 +590,118 @@
  17741. # if CDPATH is set.
  17742. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17743. -if test -z "$ECHO"; then
  17744. -if test "X${echo_test_string+set}" != Xset; then
  17745. -# find a string as large as possible, as long as the shell can cope with it
  17746. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  17747. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  17748. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  17749. - echo_test_string=`eval $cmd` &&
  17750. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  17751. - then
  17752. - break
  17753. - fi
  17754. - done
  17755. -fi
  17756. +if test -z "$lt_ECHO"; then
  17757. + if test "X${echo_test_string+set}" != Xset; then
  17758. + # find a string as large as possible, as long as the shell can cope with it
  17759. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  17760. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  17761. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  17762. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  17763. + then
  17764. + break
  17765. + fi
  17766. + done
  17767. + fi
  17768. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  17769. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  17770. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17771. - :
  17772. -else
  17773. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  17774. - # backslashes. This makes it impossible to quote backslashes using
  17775. - # echo "$something" | sed 's/\\/\\\\/g'
  17776. - #
  17777. - # So, first we look for a working echo in the user's PATH.
  17778. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  17779. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  17780. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17781. + :
  17782. + else
  17783. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  17784. + # backslashes. This makes it impossible to quote backslashes using
  17785. + # echo "$something" | sed 's/\\/\\\\/g'
  17786. + #
  17787. + # So, first we look for a working echo in the user's PATH.
  17788. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17789. - for dir in $PATH /usr/ucb; do
  17790. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17791. + for dir in $PATH /usr/ucb; do
  17792. + IFS="$lt_save_ifs"
  17793. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  17794. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  17795. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  17796. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17797. + ECHO="$dir/echo"
  17798. + break
  17799. + fi
  17800. + done
  17801. IFS="$lt_save_ifs"
  17802. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  17803. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  17804. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  17805. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17806. - echo="$dir/echo"
  17807. - break
  17808. - fi
  17809. - done
  17810. - IFS="$lt_save_ifs"
  17811. - if test "X$echo" = Xecho; then
  17812. - # We didn't find a better echo, so look for alternatives.
  17813. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  17814. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  17815. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17816. - # This shell has a builtin print -r that does the trick.
  17817. - echo='print -r'
  17818. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  17819. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  17820. - # If we have ksh, try running configure again with it.
  17821. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  17822. - export ORIGINAL_CONFIG_SHELL
  17823. - CONFIG_SHELL=/bin/ksh
  17824. - export CONFIG_SHELL
  17825. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  17826. - else
  17827. - # Try using printf.
  17828. - echo='printf %s\n'
  17829. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  17830. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  17831. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17832. - # Cool, printf works
  17833. - :
  17834. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17835. - test "X$echo_testing_string" = 'X\t' &&
  17836. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17837. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17838. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  17839. - export CONFIG_SHELL
  17840. - SHELL="$CONFIG_SHELL"
  17841. - export SHELL
  17842. - echo="$CONFIG_SHELL $0 --fallback-echo"
  17843. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17844. - test "X$echo_testing_string" = 'X\t' &&
  17845. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17846. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17847. - echo="$CONFIG_SHELL $0 --fallback-echo"
  17848. + if test "X$ECHO" = Xecho; then
  17849. + # We didn't find a better echo, so look for alternatives.
  17850. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  17851. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  17852. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17853. + # This shell has a builtin print -r that does the trick.
  17854. + ECHO='print -r'
  17855. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  17856. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  17857. + # If we have ksh, try running configure again with it.
  17858. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  17859. + export ORIGINAL_CONFIG_SHELL
  17860. + CONFIG_SHELL=/bin/ksh
  17861. + export CONFIG_SHELL
  17862. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  17863. else
  17864. - # maybe with a smaller string...
  17865. - prev=:
  17866. + # Try using printf.
  17867. + ECHO='printf %s\n'
  17868. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  17869. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  17870. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17871. + # Cool, printf works
  17872. + :
  17873. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17874. + test "X$echo_testing_string" = 'X\t' &&
  17875. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17876. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17877. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  17878. + export CONFIG_SHELL
  17879. + SHELL="$CONFIG_SHELL"
  17880. + export SHELL
  17881. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  17882. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17883. + test "X$echo_testing_string" = 'X\t' &&
  17884. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17885. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17886. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  17887. + else
  17888. + # maybe with a smaller string...
  17889. + prev=:
  17890. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  17891. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  17892. - then
  17893. - break
  17894. - fi
  17895. - prev="$cmd"
  17896. - done
  17897. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  17898. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  17899. + then
  17900. + break
  17901. + fi
  17902. + prev="$cmd"
  17903. + done
  17904. - if test "$prev" != 'sed 50q "$0"'; then
  17905. - echo_test_string=`eval $prev`
  17906. - export echo_test_string
  17907. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  17908. - else
  17909. - # Oops. We lost completely, so just stick with echo.
  17910. - echo=echo
  17911. - fi
  17912. + if test "$prev" != 'sed 50q "$0"'; then
  17913. + echo_test_string=`eval $prev`
  17914. + export echo_test_string
  17915. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  17916. + else
  17917. + # Oops. We lost completely, so just stick with echo.
  17918. + ECHO=echo
  17919. + fi
  17920. + fi
  17921. fi
  17922. fi
  17923. fi
  17924. fi
  17925. -fi
  17926. # Copy echo and quote the copy suitably for passing to libtool from
  17927. # the Makefile, instead of quoting the original, which is used later.
  17928. -ECHO=$echo
  17929. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  17930. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  17931. +lt_ECHO=$ECHO
  17932. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  17933. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  17934. fi
  17935. -tagnames=${tagnames+${tagnames},}CXX
  17936. -
  17937. -tagnames=${tagnames+${tagnames},}F77
  17938. -
  17939. -exec 7<&0 </dev/null 6>&1
  17940. +test -n "$DJDIR" || exec 7<&0 </dev/null
  17941. +exec 6>&1
  17942. # Name of the host.
  17943. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  17944. @@ -745,7 +719,6 @@
  17945. subdirs=
  17946. MFLAGS=
  17947. MAKEFLAGS=
  17948. -SHELL=${CONFIG_SHELL-/bin/sh}
  17949. # Identity of this package.
  17950. PACKAGE_NAME='GNU MP'
  17951. @@ -753,6 +726,7 @@
  17952. PACKAGE_VERSION='4.3.2'
  17953. PACKAGE_STRING='GNU MP 4.3.2'
  17954. PACKAGE_BUGREPORT='gmp-bugs@gmplib.org'
  17955. +PACKAGE_URL='http://www.gnu.org/software/gmp/'
  17956. ac_unique_file="gmp-impl.h"
  17957. # Factoring default headers for most tests.
  17958. @@ -791,151 +765,191 @@
  17959. # include <unistd.h>
  17960. #endif"
  17961. -ac_subst_vars='SHELL
  17962. -PATH_SEPARATOR
  17963. -PACKAGE_NAME
  17964. -PACKAGE_TARNAME
  17965. -PACKAGE_VERSION
  17966. -PACKAGE_STRING
  17967. -PACKAGE_BUGREPORT
  17968. -exec_prefix
  17969. -prefix
  17970. -program_transform_name
  17971. -bindir
  17972. -sbindir
  17973. -libexecdir
  17974. -datarootdir
  17975. -datadir
  17976. -sysconfdir
  17977. -sharedstatedir
  17978. -localstatedir
  17979. -includedir
  17980. -oldincludedir
  17981. -docdir
  17982. -infodir
  17983. -htmldir
  17984. -dvidir
  17985. -pdfdir
  17986. -psdir
  17987. -libdir
  17988. -localedir
  17989. -mandir
  17990. -DEFS
  17991. -ECHO_C
  17992. -ECHO_N
  17993. -ECHO_T
  17994. -LIBS
  17995. -build_alias
  17996. -host_alias
  17997. -target_alias
  17998. -build
  17999. -build_cpu
  18000. -build_vendor
  18001. -build_os
  18002. -host
  18003. -host_cpu
  18004. -host_vendor
  18005. -host_os
  18006. -INSTALL_PROGRAM
  18007. -INSTALL_SCRIPT
  18008. -INSTALL_DATA
  18009. -CYGPATH_W
  18010. -PACKAGE
  18011. -VERSION
  18012. -ACLOCAL
  18013. -AUTOCONF
  18014. -AUTOMAKE
  18015. -AUTOHEADER
  18016. -MAKEINFO
  18017. -AMTAR
  18018. -install_sh
  18019. -STRIP
  18020. -INSTALL_STRIP_PROGRAM
  18021. -mkdir_p
  18022. -AWK
  18023. -SET_MAKE
  18024. -am__leading_dot
  18025. -MAINTAINER_MODE_TRUE
  18026. -MAINTAINER_MODE_FALSE
  18027. -MAINT
  18028. -WANT_MPBSD_TRUE
  18029. -WANT_MPBSD_FALSE
  18030. -GMP_NAIL_BITS
  18031. -ABI
  18032. -HAVE_HOST_CPU_FAMILY_power
  18033. -HAVE_HOST_CPU_FAMILY_powerpc
  18034. -GMP_LDFLAGS
  18035. -LIBGMP_LDFLAGS
  18036. -LIBGMPXX_LDFLAGS
  18037. -SPEED_CYCLECOUNTER_OBJ
  18038. -CALLING_CONVENTIONS_OBJS
  18039. -DEFN_LONG_LONG_LIMB
  18040. -CC
  18041. -CFLAGS
  18042. -LDFLAGS
  18043. -CPPFLAGS
  18044. -ac_ct_CC
  18045. -EXEEXT
  18046. -OBJEXT
  18047. -CPP
  18048. -CC_FOR_BUILD
  18049. -CPP_FOR_BUILD
  18050. -EXEEXT_FOR_BUILD
  18051. -U_FOR_BUILD
  18052. -LIBM_FOR_BUILD
  18053. -CCAS
  18054. -CXX
  18055. -CXXFLAGS
  18056. -ac_ct_CXX
  18057. -WANT_CXX_TRUE
  18058. -WANT_CXX_FALSE
  18059. -CXXCPP
  18060. -GREP
  18061. -EGREP
  18062. -U
  18063. -ANSI2KNR
  18064. -ASMFLAGS
  18065. -AR
  18066. -LIBGMP_DLL
  18067. -SED
  18068. -LN_S
  18069. -ECHO
  18070. +ac_subst_vars='am__EXEEXT_FALSE
  18071. +am__EXEEXT_TRUE
  18072. +LTLIBOBJS
  18073. +LIBOBJS
  18074. +LEXLIB
  18075. +LEX_OUTPUT_ROOT
  18076. +LEX
  18077. +YFLAGS
  18078. +YACC
  18079. +LIBREADLINE
  18080. +WITH_READLINE_01
  18081. +LIBCURSES
  18082. +HAVE_STACK_T_01
  18083. +HAVE_SYS_RESOURCE_H_01
  18084. +HAVE_SIGSTACK_01
  18085. +HAVE_SIGALTSTACK_01
  18086. +HAVE_SIGACTION_01
  18087. +HAVE_GETTIMEOFDAY_01
  18088. +HAVE_GETRUSAGE_01
  18089. +HAVE_CPUTIME_01
  18090. +HAVE_CLOCK_01
  18091. +TUNE_SQR_OBJ
  18092. +gmp_srclinks
  18093. +mpn_objs_in_libgmp
  18094. +mpn_objects
  18095. +mpn_objs_in_libmp
  18096. +BITS_PER_MP_LIMB
  18097. +M4
  18098. +TAL_OBJECT
  18099. +LIBM
  18100. +ENABLE_STATIC_FALSE
  18101. +ENABLE_STATIC_TRUE
  18102. +ac_ct_F77
  18103. +FFLAGS
  18104. +F77
  18105. +OTOOL64
  18106. +OTOOL
  18107. +LIPO
  18108. +NMEDIT
  18109. +DSYMUTIL
  18110. +lt_ECHO
  18111. RANLIB
  18112. +LN_S
  18113. +LD
  18114. +FGREP
  18115. +SED
  18116. +LIBTOOL
  18117. +LIBGMP_DLL
  18118. +OBJDUMP
  18119. DLLTOOL
  18120. AS
  18121. -OBJDUMP
  18122. -LIBTOOL
  18123. -ENABLE_STATIC_TRUE
  18124. -ENABLE_STATIC_FALSE
  18125. -LIBM
  18126. -TAL_OBJECT
  18127. -M4
  18128. -BITS_PER_MP_LIMB
  18129. -mpn_objs_in_libmp
  18130. -mpn_objects
  18131. -mpn_objs_in_libgmp
  18132. -gmp_srclinks
  18133. -TUNE_SQR_OBJ
  18134. -HAVE_CLOCK_01
  18135. -HAVE_CPUTIME_01
  18136. -HAVE_GETRUSAGE_01
  18137. -HAVE_GETTIMEOFDAY_01
  18138. -HAVE_SIGACTION_01
  18139. -HAVE_SIGALTSTACK_01
  18140. -HAVE_SIGSTACK_01
  18141. -HAVE_SYS_RESOURCE_H_01
  18142. -HAVE_STACK_T_01
  18143. -LIBCURSES
  18144. -WITH_READLINE_01
  18145. -LIBREADLINE
  18146. -YACC
  18147. -YFLAGS
  18148. -LEX
  18149. -LEX_OUTPUT_ROOT
  18150. -LEXLIB
  18151. -LIBOBJS
  18152. -LTLIBOBJS'
  18153. +NM
  18154. +ac_ct_DUMPBIN
  18155. +DUMPBIN
  18156. +AR
  18157. +ASMFLAGS
  18158. +ANSI2KNR
  18159. +U
  18160. +EGREP
  18161. +GREP
  18162. +CXXCPP
  18163. +WANT_CXX_FALSE
  18164. +WANT_CXX_TRUE
  18165. +ac_ct_CXX
  18166. +CXXFLAGS
  18167. +CXX
  18168. +CCAS
  18169. +LIBM_FOR_BUILD
  18170. +U_FOR_BUILD
  18171. +EXEEXT_FOR_BUILD
  18172. +CPP_FOR_BUILD
  18173. +CC_FOR_BUILD
  18174. +CPP
  18175. +OBJEXT
  18176. +EXEEXT
  18177. +ac_ct_CC
  18178. +CPPFLAGS
  18179. +LDFLAGS
  18180. +CFLAGS
  18181. +CC
  18182. +DEFN_LONG_LONG_LIMB
  18183. +CALLING_CONVENTIONS_OBJS
  18184. +SPEED_CYCLECOUNTER_OBJ
  18185. +LIBGMPXX_LDFLAGS
  18186. +LIBGMP_LDFLAGS
  18187. +GMP_LDFLAGS
  18188. +HAVE_HOST_CPU_FAMILY_powerpc
  18189. +HAVE_HOST_CPU_FAMILY_power
  18190. +ABI
  18191. +GMP_NAIL_BITS
  18192. +WANT_MPBSD_FALSE
  18193. +WANT_MPBSD_TRUE
  18194. +MAINT
  18195. +MAINTAINER_MODE_FALSE
  18196. +MAINTAINER_MODE_TRUE
  18197. +am__untar
  18198. +am__tar
  18199. +AMTAR
  18200. +am__leading_dot
  18201. +SET_MAKE
  18202. +AWK
  18203. +mkdir_p
  18204. +MKDIR_P
  18205. +INSTALL_STRIP_PROGRAM
  18206. +STRIP
  18207. +install_sh
  18208. +MAKEINFO
  18209. +AUTOHEADER
  18210. +AUTOMAKE
  18211. +AUTOCONF
  18212. +ACLOCAL
  18213. +VERSION
  18214. +PACKAGE
  18215. +CYGPATH_W
  18216. +am__isrc
  18217. +INSTALL_DATA
  18218. +INSTALL_SCRIPT
  18219. +INSTALL_PROGRAM
  18220. +host_os
  18221. +host_vendor
  18222. +host_cpu
  18223. +host
  18224. +build_os
  18225. +build_vendor
  18226. +build_cpu
  18227. +build
  18228. +target_alias
  18229. +host_alias
  18230. +build_alias
  18231. +LIBS
  18232. +ECHO_T
  18233. +ECHO_N
  18234. +ECHO_C
  18235. +DEFS
  18236. +mandir
  18237. +localedir
  18238. +libdir
  18239. +psdir
  18240. +pdfdir
  18241. +dvidir
  18242. +htmldir
  18243. +infodir
  18244. +docdir
  18245. +oldincludedir
  18246. +includedir
  18247. +localstatedir
  18248. +sharedstatedir
  18249. +sysconfdir
  18250. +datadir
  18251. +datarootdir
  18252. +libexecdir
  18253. +sbindir
  18254. +bindir
  18255. +program_transform_name
  18256. +prefix
  18257. +exec_prefix
  18258. +PACKAGE_URL
  18259. +PACKAGE_BUGREPORT
  18260. +PACKAGE_STRING
  18261. +PACKAGE_VERSION
  18262. +PACKAGE_TARNAME
  18263. +PACKAGE_NAME
  18264. +PATH_SEPARATOR
  18265. +SHELL'
  18266. ac_subst_files=''
  18267. +ac_user_opts='
  18268. +enable_option_checking
  18269. +enable_maintainer_mode
  18270. +enable_assert
  18271. +enable_alloca
  18272. +enable_cxx
  18273. +enable_fft
  18274. +enable_mpbsd
  18275. +enable_nails
  18276. +enable_profiling
  18277. +with_readline
  18278. +enable_fat
  18279. +enable_minithres
  18280. +enable_shared
  18281. +enable_static
  18282. +with_pic
  18283. +enable_fast_install
  18284. +with_gnu_ld
  18285. +enable_libtool_lock
  18286. +'
  18287. ac_precious_vars='build_alias
  18288. host_alias
  18289. target_alias
  18290. @@ -952,6 +966,8 @@
  18291. CXXFLAGS
  18292. CCC
  18293. CXXCPP
  18294. +F77
  18295. +FFLAGS
  18296. M4
  18297. YACC
  18298. YFLAGS'
  18299. @@ -960,6 +976,8 @@
  18300. # Initialize some variables set by options.
  18301. ac_init_help=
  18302. ac_init_version=false
  18303. +ac_unrecognized_opts=
  18304. +ac_unrecognized_sep=
  18305. # The variables have the same names as the options, with
  18306. # dashes changed to underlines.
  18307. cache_file=/dev/null
  18308. @@ -1058,13 +1076,20 @@
  18309. datarootdir=$ac_optarg ;;
  18310. -disable-* | --disable-*)
  18311. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  18312. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  18313. # Reject names that are not valid shell variable names.
  18314. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  18315. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  18316. - { (exit 1); exit 1; }; }
  18317. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  18318. - eval enable_$ac_feature=no ;;
  18319. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18320. + as_fn_error "invalid feature name: $ac_useropt"
  18321. + ac_useropt_orig=$ac_useropt
  18322. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18323. + case $ac_user_opts in
  18324. + *"
  18325. +"enable_$ac_useropt"
  18326. +"*) ;;
  18327. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  18328. + ac_unrecognized_sep=', ';;
  18329. + esac
  18330. + eval enable_$ac_useropt=no ;;
  18331. -docdir | --docdir | --docdi | --doc | --do)
  18332. ac_prev=docdir ;;
  18333. @@ -1077,13 +1102,20 @@
  18334. dvidir=$ac_optarg ;;
  18335. -enable-* | --enable-*)
  18336. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  18337. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  18338. # Reject names that are not valid shell variable names.
  18339. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  18340. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  18341. - { (exit 1); exit 1; }; }
  18342. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  18343. - eval enable_$ac_feature=\$ac_optarg ;;
  18344. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18345. + as_fn_error "invalid feature name: $ac_useropt"
  18346. + ac_useropt_orig=$ac_useropt
  18347. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18348. + case $ac_user_opts in
  18349. + *"
  18350. +"enable_$ac_useropt"
  18351. +"*) ;;
  18352. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  18353. + ac_unrecognized_sep=', ';;
  18354. + esac
  18355. + eval enable_$ac_useropt=\$ac_optarg ;;
  18356. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  18357. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  18358. @@ -1274,22 +1306,36 @@
  18359. ac_init_version=: ;;
  18360. -with-* | --with-*)
  18361. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  18362. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  18363. # Reject names that are not valid shell variable names.
  18364. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  18365. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  18366. - { (exit 1); exit 1; }; }
  18367. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  18368. - eval with_$ac_package=\$ac_optarg ;;
  18369. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18370. + as_fn_error "invalid package name: $ac_useropt"
  18371. + ac_useropt_orig=$ac_useropt
  18372. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18373. + case $ac_user_opts in
  18374. + *"
  18375. +"with_$ac_useropt"
  18376. +"*) ;;
  18377. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  18378. + ac_unrecognized_sep=', ';;
  18379. + esac
  18380. + eval with_$ac_useropt=\$ac_optarg ;;
  18381. -without-* | --without-*)
  18382. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  18383. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  18384. # Reject names that are not valid shell variable names.
  18385. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  18386. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  18387. - { (exit 1); exit 1; }; }
  18388. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  18389. - eval with_$ac_package=no ;;
  18390. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18391. + as_fn_error "invalid package name: $ac_useropt"
  18392. + ac_useropt_orig=$ac_useropt
  18393. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18394. + case $ac_user_opts in
  18395. + *"
  18396. +"with_$ac_useropt"
  18397. +"*) ;;
  18398. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  18399. + ac_unrecognized_sep=', ';;
  18400. + esac
  18401. + eval with_$ac_useropt=no ;;
  18402. --x)
  18403. # Obsolete; use --with-x.
  18404. @@ -1309,25 +1355,25 @@
  18405. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  18406. x_libraries=$ac_optarg ;;
  18407. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  18408. -Try \`$0 --help' for more information." >&2
  18409. - { (exit 1); exit 1; }; }
  18410. + -*) as_fn_error "unrecognized option: \`$ac_option'
  18411. +Try \`$0 --help' for more information."
  18412. ;;
  18413. *=*)
  18414. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  18415. # Reject names that are not valid shell variable names.
  18416. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  18417. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  18418. - { (exit 1); exit 1; }; }
  18419. + case $ac_envvar in #(
  18420. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  18421. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  18422. + esac
  18423. eval $ac_envvar=\$ac_optarg
  18424. export $ac_envvar ;;
  18425. *)
  18426. # FIXME: should be removed in autoconf 3.0.
  18427. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  18428. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  18429. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  18430. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  18431. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  18432. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  18433. ;;
  18434. @@ -1336,23 +1382,36 @@
  18435. if test -n "$ac_prev"; then
  18436. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  18437. - { echo "$as_me: error: missing argument to $ac_option" >&2
  18438. - { (exit 1); exit 1; }; }
  18439. + as_fn_error "missing argument to $ac_option"
  18440. fi
  18441. -# Be sure to have absolute directory names.
  18442. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  18443. - datadir sysconfdir sharedstatedir localstatedir includedir \
  18444. +if test -n "$ac_unrecognized_opts"; then
  18445. + case $enable_option_checking in
  18446. + no) ;;
  18447. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  18448. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  18449. + esac
  18450. +fi
  18451. +
  18452. +# Check all directory arguments for consistency.
  18453. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  18454. + datadir sysconfdir sharedstatedir localstatedir includedir \
  18455. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  18456. libdir localedir mandir
  18457. do
  18458. eval ac_val=\$$ac_var
  18459. + # Remove trailing slashes.
  18460. + case $ac_val in
  18461. + */ )
  18462. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  18463. + eval $ac_var=\$ac_val;;
  18464. + esac
  18465. + # Be sure to have absolute directory names.
  18466. case $ac_val in
  18467. [\\/$]* | ?:[\\/]* ) continue;;
  18468. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  18469. esac
  18470. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  18471. - { (exit 1); exit 1; }; }
  18472. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  18473. done
  18474. # There might be people who depend on the old broken behavior: `$host'
  18475. @@ -1366,7 +1425,7 @@
  18476. if test "x$host_alias" != x; then
  18477. if test "x$build_alias" = x; then
  18478. cross_compiling=maybe
  18479. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  18480. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  18481. If a cross compiler is detected then cross compile mode will be used." >&2
  18482. elif test "x$build_alias" != "x$host_alias"; then
  18483. cross_compiling=yes
  18484. @@ -1382,23 +1441,21 @@
  18485. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  18486. ac_ls_di=`ls -di .` &&
  18487. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  18488. - { echo "$as_me: error: Working directory cannot be determined" >&2
  18489. - { (exit 1); exit 1; }; }
  18490. + as_fn_error "working directory cannot be determined"
  18491. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  18492. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  18493. - { (exit 1); exit 1; }; }
  18494. + as_fn_error "pwd does not report name of working directory"
  18495. # Find the source files, if location was not specified.
  18496. if test -z "$srcdir"; then
  18497. ac_srcdir_defaulted=yes
  18498. # Try the directory containing this script, then the parent directory.
  18499. - ac_confdir=`$as_dirname -- "$0" ||
  18500. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18501. - X"$0" : 'X\(//\)[^/]' \| \
  18502. - X"$0" : 'X\(//\)$' \| \
  18503. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18504. -echo X"$0" |
  18505. + ac_confdir=`$as_dirname -- "$as_myself" ||
  18506. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18507. + X"$as_myself" : 'X\(//\)[^/]' \| \
  18508. + X"$as_myself" : 'X\(//\)$' \| \
  18509. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  18510. +$as_echo X"$as_myself" |
  18511. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18512. s//\1/
  18513. q
  18514. @@ -1425,13 +1482,11 @@
  18515. fi
  18516. if test ! -r "$srcdir/$ac_unique_file"; then
  18517. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  18518. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  18519. - { (exit 1); exit 1; }; }
  18520. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  18521. fi
  18522. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  18523. ac_abs_confdir=`(
  18524. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  18525. - { (exit 1); exit 1; }; }
  18526. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  18527. pwd)`
  18528. # When building in place, set srcdir=.
  18529. if test "$ac_abs_confdir" = "$ac_pwd"; then
  18530. @@ -1479,9 +1534,9 @@
  18531. Installation directories:
  18532. --prefix=PREFIX install architecture-independent files in PREFIX
  18533. - [$ac_default_prefix]
  18534. + [$ac_default_prefix]
  18535. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  18536. - [PREFIX]
  18537. + [PREFIX]
  18538. By default, \`make install' will install all the files in
  18539. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  18540. @@ -1491,25 +1546,25 @@
  18541. For better control, use the options below.
  18542. Fine tuning of the installation directories:
  18543. - --bindir=DIR user executables [EPREFIX/bin]
  18544. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  18545. - --libexecdir=DIR program executables [EPREFIX/libexec]
  18546. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  18547. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  18548. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  18549. - --libdir=DIR object code libraries [EPREFIX/lib]
  18550. - --includedir=DIR C header files [PREFIX/include]
  18551. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  18552. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  18553. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  18554. - --infodir=DIR info documentation [DATAROOTDIR/info]
  18555. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  18556. - --mandir=DIR man documentation [DATAROOTDIR/man]
  18557. - --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
  18558. - --htmldir=DIR html documentation [DOCDIR]
  18559. - --dvidir=DIR dvi documentation [DOCDIR]
  18560. - --pdfdir=DIR pdf documentation [DOCDIR]
  18561. - --psdir=DIR ps documentation [DOCDIR]
  18562. + --bindir=DIR user executables [EPREFIX/bin]
  18563. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  18564. + --libexecdir=DIR program executables [EPREFIX/libexec]
  18565. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  18566. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  18567. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  18568. + --libdir=DIR object code libraries [EPREFIX/lib]
  18569. + --includedir=DIR C header files [PREFIX/include]
  18570. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  18571. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  18572. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  18573. + --infodir=DIR info documentation [DATAROOTDIR/info]
  18574. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  18575. + --mandir=DIR man documentation [DATAROOTDIR/man]
  18576. + --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
  18577. + --htmldir=DIR html documentation [DOCDIR]
  18578. + --dvidir=DIR dvi documentation [DOCDIR]
  18579. + --pdfdir=DIR pdf documentation [DOCDIR]
  18580. + --psdir=DIR ps documentation [DOCDIR]
  18581. _ACEOF
  18582. cat <<\_ACEOF
  18583. @@ -1532,21 +1587,22 @@
  18584. cat <<\_ACEOF
  18585. Optional Features:
  18586. + --disable-option-checking ignore unrecognized --enable/--with options
  18587. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  18588. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  18589. --enable-maintainer-mode enable make rules and dependencies not useful
  18590. (and sometimes confusing) to the casual installer
  18591. - --enable-assert enable ASSERT checking [default=no]
  18592. - --enable-alloca how to get temp memory [default=reentrant]
  18593. - --enable-cxx enable C++ support [default=no]
  18594. - --enable-fft enable FFTs for multiplication [default=yes]
  18595. + --enable-assert enable ASSERT checking [[default=no]]
  18596. + --enable-alloca how to get temp memory [[default=reentrant]]
  18597. + --enable-cxx enable C++ support [[default=no]]
  18598. + --enable-fft enable FFTs for multiplication [[default=yes]]
  18599. --enable-mpbsd build Berkeley MP compatibility library
  18600. - [default=no]
  18601. - --enable-nails use nails on limbs [default=no]
  18602. - --enable-profiling build with profiler support [default=no]
  18603. + [[default=no]]
  18604. + --enable-nails use nails on limbs [[default=no]]
  18605. + --enable-profiling build with profiler support [[default=no]]
  18606. --enable-fat build a fat binary on systems that support it
  18607. - [default=no]
  18608. - --enable-minithres choose minimal thresholds for testing [default=no]
  18609. + [[default=no]]
  18610. + --enable-minithres choose minimal thresholds for testing [[default=no]]
  18611. --enable-shared[=PKGS] build shared libraries [default=yes]
  18612. --enable-static[=PKGS] build static libraries [default=yes]
  18613. --enable-fast-install[=PKGS]
  18614. @@ -1557,11 +1613,10 @@
  18615. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  18616. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  18617. --with-readline readline support in calc demo program
  18618. - [default=detect]
  18619. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  18620. + [[default=detect]]
  18621. --with-pic try to use only PIC/non-PIC objects [default=use
  18622. both]
  18623. - --with-tags[=TAGS] include additional configurations [automatic]
  18624. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  18625. Some influential environment variables:
  18626. ABI desired ABI (for processors supporting more than one ABI)
  18627. @@ -1570,7 +1625,7 @@
  18628. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  18629. nonstandard directory <lib dir>
  18630. LIBS libraries to pass to the linker, e.g. -l<library>
  18631. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  18632. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  18633. you have headers in a nonstandard directory <include dir>
  18634. CPP C preprocessor
  18635. CC_FOR_BUILD
  18636. @@ -1580,6 +1635,8 @@
  18637. CXX C++ compiler command
  18638. CXXFLAGS C++ compiler flags
  18639. CXXCPP C++ preprocessor
  18640. + F77 Fortran 77 compiler command
  18641. + FFLAGS Fortran 77 compiler flags
  18642. M4 m4 macro processor
  18643. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  18644. the first program found out of: `bison -y', `byacc', `yacc'.
  18645. @@ -1591,6 +1648,8 @@
  18646. it to find libraries and programs with nonstandard names/locations.
  18647. Report bugs to <gmp-bugs@gmplib.org>.
  18648. +GNU MP home page: <http://www.gnu.org/software/gmp/>.
  18649. +General help using GNU software: <http://www.gnu.org/gethelp/>.
  18650. _ACEOF
  18651. ac_status=$?
  18652. fi
  18653. @@ -1598,15 +1657,17 @@
  18654. if test "$ac_init_help" = "recursive"; then
  18655. # If there are subdirs, report their specific --help.
  18656. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  18657. - test -d "$ac_dir" || continue
  18658. + test -d "$ac_dir" ||
  18659. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  18660. + continue
  18661. ac_builddir=.
  18662. case "$ac_dir" in
  18663. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18664. *)
  18665. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  18666. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18667. # A ".." for each directory in $ac_dir_suffix.
  18668. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  18669. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18670. case $ac_top_builddir_sub in
  18671. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18672. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18673. @@ -1642,7 +1703,7 @@
  18674. echo &&
  18675. $SHELL "$ac_srcdir/configure" --help=recursive
  18676. else
  18677. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  18678. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  18679. fi || ac_status=$?
  18680. cd "$ac_pwd" || { ac_status=$?; break; }
  18681. done
  18682. @@ -1652,10 +1713,9 @@
  18683. if $ac_init_version; then
  18684. cat <<\_ACEOF
  18685. GNU MP configure 4.3.2
  18686. -generated by GNU Autoconf 2.61
  18687. +generated by GNU Autoconf 2.65
  18688. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  18689. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  18690. +Copyright (C) 2009 Free Software Foundation, Inc.
  18691. This configure script is free software; the Free Software Foundation
  18692. gives unlimited permission to copy, distribute and modify it.
  18693. @@ -1682,913 +1742,1795 @@
  18694. _ACEOF
  18695. exit
  18696. fi
  18697. -cat >config.log <<_ACEOF
  18698. -This file contains any messages produced by compilers while
  18699. -running configure, to aid debugging if configure makes a mistake.
  18700. -It was created by GNU MP $as_me 4.3.2, which was
  18701. -generated by GNU Autoconf 2.61. Invocation command line was
  18702. +## ------------------------ ##
  18703. +## Autoconf initialization. ##
  18704. +## ------------------------ ##
  18705. +
  18706. +# ac_fn_c_try_compile LINENO
  18707. +# --------------------------
  18708. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  18709. +ac_fn_c_try_compile ()
  18710. +{
  18711. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18712. + rm -f conftest.$ac_objext
  18713. + if { { ac_try="$ac_compile"
  18714. +case "(($ac_try" in
  18715. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18716. + *) ac_try_echo=$ac_try;;
  18717. +esac
  18718. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18719. +$as_echo "$ac_try_echo"; } >&5
  18720. + (eval "$ac_compile") 2>conftest.err
  18721. + ac_status=$?
  18722. + if test -s conftest.err; then
  18723. + grep -v '^ *+' conftest.err >conftest.er1
  18724. + cat conftest.er1 >&5
  18725. + mv -f conftest.er1 conftest.err
  18726. + fi
  18727. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18728. + test $ac_status = 0; } && {
  18729. + test -z "$ac_c_werror_flag" ||
  18730. + test ! -s conftest.err
  18731. + } && test -s conftest.$ac_objext; then :
  18732. + ac_retval=0
  18733. +else
  18734. + $as_echo "$as_me: failed program was:" >&5
  18735. +sed 's/^/| /' conftest.$ac_ext >&5
  18736. - $ $0 $@
  18737. + ac_retval=1
  18738. +fi
  18739. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18740. + as_fn_set_status $ac_retval
  18741. -_ACEOF
  18742. -exec 5>>config.log
  18743. +} # ac_fn_c_try_compile
  18744. +
  18745. +# ac_fn_c_try_cpp LINENO
  18746. +# ----------------------
  18747. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  18748. +ac_fn_c_try_cpp ()
  18749. {
  18750. -cat <<_ASUNAME
  18751. -## --------- ##
  18752. -## Platform. ##
  18753. -## --------- ##
  18754. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18755. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  18756. +case "(($ac_try" in
  18757. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18758. + *) ac_try_echo=$ac_try;;
  18759. +esac
  18760. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18761. +$as_echo "$ac_try_echo"; } >&5
  18762. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  18763. + ac_status=$?
  18764. + if test -s conftest.err; then
  18765. + grep -v '^ *+' conftest.err >conftest.er1
  18766. + cat conftest.er1 >&5
  18767. + mv -f conftest.er1 conftest.err
  18768. + fi
  18769. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18770. + test $ac_status = 0; } >/dev/null && {
  18771. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18772. + test ! -s conftest.err
  18773. + }; then :
  18774. + ac_retval=0
  18775. +else
  18776. + $as_echo "$as_me: failed program was:" >&5
  18777. +sed 's/^/| /' conftest.$ac_ext >&5
  18778. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  18779. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  18780. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  18781. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  18782. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  18783. + ac_retval=1
  18784. +fi
  18785. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18786. + as_fn_set_status $ac_retval
  18787. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  18788. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  18789. +} # ac_fn_c_try_cpp
  18790. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18791. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  18792. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  18793. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  18794. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  18795. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  18796. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  18797. +# ac_fn_cxx_try_compile LINENO
  18798. +# ----------------------------
  18799. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  18800. +ac_fn_cxx_try_compile ()
  18801. +{
  18802. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18803. + rm -f conftest.$ac_objext
  18804. + if { { ac_try="$ac_compile"
  18805. +case "(($ac_try" in
  18806. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18807. + *) ac_try_echo=$ac_try;;
  18808. +esac
  18809. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18810. +$as_echo "$ac_try_echo"; } >&5
  18811. + (eval "$ac_compile") 2>conftest.err
  18812. + ac_status=$?
  18813. + if test -s conftest.err; then
  18814. + grep -v '^ *+' conftest.err >conftest.er1
  18815. + cat conftest.er1 >&5
  18816. + mv -f conftest.er1 conftest.err
  18817. + fi
  18818. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18819. + test $ac_status = 0; } && {
  18820. + test -z "$ac_cxx_werror_flag" ||
  18821. + test ! -s conftest.err
  18822. + } && test -s conftest.$ac_objext; then :
  18823. + ac_retval=0
  18824. +else
  18825. + $as_echo "$as_me: failed program was:" >&5
  18826. +sed 's/^/| /' conftest.$ac_ext >&5
  18827. -_ASUNAME
  18828. + ac_retval=1
  18829. +fi
  18830. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18831. + as_fn_set_status $ac_retval
  18832. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18833. -for as_dir in $PATH
  18834. -do
  18835. - IFS=$as_save_IFS
  18836. - test -z "$as_dir" && as_dir=.
  18837. - echo "PATH: $as_dir"
  18838. -done
  18839. -IFS=$as_save_IFS
  18840. +} # ac_fn_cxx_try_compile
  18841. -} >&5
  18842. +# ac_fn_cxx_try_cpp LINENO
  18843. +# ------------------------
  18844. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  18845. +ac_fn_cxx_try_cpp ()
  18846. +{
  18847. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18848. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  18849. +case "(($ac_try" in
  18850. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18851. + *) ac_try_echo=$ac_try;;
  18852. +esac
  18853. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18854. +$as_echo "$ac_try_echo"; } >&5
  18855. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  18856. + ac_status=$?
  18857. + if test -s conftest.err; then
  18858. + grep -v '^ *+' conftest.err >conftest.er1
  18859. + cat conftest.er1 >&5
  18860. + mv -f conftest.er1 conftest.err
  18861. + fi
  18862. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18863. + test $ac_status = 0; } >/dev/null && {
  18864. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18865. + test ! -s conftest.err
  18866. + }; then :
  18867. + ac_retval=0
  18868. +else
  18869. + $as_echo "$as_me: failed program was:" >&5
  18870. +sed 's/^/| /' conftest.$ac_ext >&5
  18871. -cat >&5 <<_ACEOF
  18872. + ac_retval=1
  18873. +fi
  18874. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18875. + as_fn_set_status $ac_retval
  18876. +} # ac_fn_cxx_try_cpp
  18877. -## ----------- ##
  18878. -## Core tests. ##
  18879. -## ----------- ##
  18880. +# ac_fn_c_try_run LINENO
  18881. +# ----------------------
  18882. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  18883. +# that executables *can* be run.
  18884. +ac_fn_c_try_run ()
  18885. +{
  18886. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18887. + if { { ac_try="$ac_link"
  18888. +case "(($ac_try" in
  18889. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18890. + *) ac_try_echo=$ac_try;;
  18891. +esac
  18892. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18893. +$as_echo "$ac_try_echo"; } >&5
  18894. + (eval "$ac_link") 2>&5
  18895. + ac_status=$?
  18896. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18897. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  18898. + { { case "(($ac_try" in
  18899. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18900. + *) ac_try_echo=$ac_try;;
  18901. +esac
  18902. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18903. +$as_echo "$ac_try_echo"; } >&5
  18904. + (eval "$ac_try") 2>&5
  18905. + ac_status=$?
  18906. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18907. + test $ac_status = 0; }; }; then :
  18908. + ac_retval=0
  18909. +else
  18910. + $as_echo "$as_me: program exited with status $ac_status" >&5
  18911. + $as_echo "$as_me: failed program was:" >&5
  18912. +sed 's/^/| /' conftest.$ac_ext >&5
  18913. +
  18914. + ac_retval=$ac_status
  18915. +fi
  18916. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  18917. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18918. + as_fn_set_status $ac_retval
  18919. +
  18920. +} # ac_fn_c_try_run
  18921. +
  18922. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  18923. +# -------------------------------------------------------
  18924. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  18925. +# the include files in INCLUDES and setting the cache variable VAR
  18926. +# accordingly.
  18927. +ac_fn_c_check_header_mongrel ()
  18928. +{
  18929. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18930. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18931. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18932. +$as_echo_n "checking for $2... " >&6; }
  18933. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18934. + $as_echo_n "(cached) " >&6
  18935. +fi
  18936. +eval ac_res=\$$3
  18937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18938. +$as_echo "$ac_res" >&6; }
  18939. +else
  18940. + # Is the header compilable?
  18941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  18942. +$as_echo_n "checking $2 usability... " >&6; }
  18943. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18944. +/* end confdefs.h. */
  18945. +$4
  18946. +#include <$2>
  18947. +_ACEOF
  18948. +if ac_fn_c_try_compile "$LINENO"; then :
  18949. + ac_header_compiler=yes
  18950. +else
  18951. + ac_header_compiler=no
  18952. +fi
  18953. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18954. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  18955. +$as_echo "$ac_header_compiler" >&6; }
  18956. +# Is the header present?
  18957. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  18958. +$as_echo_n "checking $2 presence... " >&6; }
  18959. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18960. +/* end confdefs.h. */
  18961. +#include <$2>
  18962. _ACEOF
  18963. +if ac_fn_c_try_cpp "$LINENO"; then :
  18964. + ac_header_preproc=yes
  18965. +else
  18966. + ac_header_preproc=no
  18967. +fi
  18968. +rm -f conftest.err conftest.$ac_ext
  18969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18970. +$as_echo "$ac_header_preproc" >&6; }
  18971. +# So? What about this header?
  18972. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18973. + yes:no: )
  18974. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18975. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18976. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18977. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18978. + ;;
  18979. + no:yes:* )
  18980. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18981. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18982. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18983. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18984. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18985. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18986. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18987. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18988. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18989. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18990. +( cat <<\_ASBOX
  18991. +## ---------------------------------- ##
  18992. +## Report this to gmp-bugs@gmplib.org ##
  18993. +## ---------------------------------- ##
  18994. +_ASBOX
  18995. + ) | sed "s/^/$as_me: WARNING: /" >&2
  18996. + ;;
  18997. +esac
  18998. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18999. +$as_echo_n "checking for $2... " >&6; }
  19000. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19001. + $as_echo_n "(cached) " >&6
  19002. +else
  19003. + eval "$3=\$ac_header_compiler"
  19004. +fi
  19005. +eval ac_res=\$$3
  19006. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19007. +$as_echo "$ac_res" >&6; }
  19008. +fi
  19009. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19010. -# Keep a trace of the command line.
  19011. -# Strip out --no-create and --no-recursion so they do not pile up.
  19012. -# Strip out --silent because we don't want to record it for future runs.
  19013. -# Also quote any args containing shell meta-characters.
  19014. -# Make two passes to allow for proper duplicate-argument suppression.
  19015. -ac_configure_args=
  19016. -ac_configure_args0=
  19017. -ac_configure_args1=
  19018. -ac_must_keep_next=false
  19019. -for ac_pass in 1 2
  19020. -do
  19021. - for ac_arg
  19022. - do
  19023. - case $ac_arg in
  19024. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  19025. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19026. - | -silent | --silent | --silen | --sile | --sil)
  19027. - continue ;;
  19028. - *\'*)
  19029. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19030. - esac
  19031. - case $ac_pass in
  19032. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  19033. - 2)
  19034. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  19035. - if test $ac_must_keep_next = true; then
  19036. - ac_must_keep_next=false # Got value, back to normal.
  19037. - else
  19038. - case $ac_arg in
  19039. - *=* | --config-cache | -C | -disable-* | --disable-* \
  19040. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  19041. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  19042. - | -with-* | --with-* | -without-* | --without-* | --x)
  19043. - case "$ac_configure_args0 " in
  19044. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  19045. - esac
  19046. - ;;
  19047. - -* ) ac_must_keep_next=true ;;
  19048. - esac
  19049. - fi
  19050. - ac_configure_args="$ac_configure_args '$ac_arg'"
  19051. - ;;
  19052. - esac
  19053. - done
  19054. -done
  19055. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  19056. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  19057. +} # ac_fn_c_check_header_mongrel
  19058. -# When interrupted or exit'd, cleanup temporary files, and complete
  19059. -# config.log. We remove comments because anyway the quotes in there
  19060. -# would cause problems or look ugly.
  19061. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  19062. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  19063. -trap 'exit_status=$?
  19064. - # Save into config.log some information that might help in debugging.
  19065. - {
  19066. - echo
  19067. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  19068. +# -------------------------------------------------------
  19069. +# Tests whether HEADER exists and can be compiled using the include files in
  19070. +# INCLUDES, setting the cache variable VAR accordingly.
  19071. +ac_fn_c_check_header_compile ()
  19072. +{
  19073. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19074. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19075. +$as_echo_n "checking for $2... " >&6; }
  19076. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19077. + $as_echo_n "(cached) " >&6
  19078. +else
  19079. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19080. +/* end confdefs.h. */
  19081. +$4
  19082. +#include <$2>
  19083. +_ACEOF
  19084. +if ac_fn_c_try_compile "$LINENO"; then :
  19085. + eval "$3=yes"
  19086. +else
  19087. + eval "$3=no"
  19088. +fi
  19089. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19090. +fi
  19091. +eval ac_res=\$$3
  19092. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19093. +$as_echo "$ac_res" >&6; }
  19094. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19095. - cat <<\_ASBOX
  19096. -## ---------------- ##
  19097. -## Cache variables. ##
  19098. -## ---------------- ##
  19099. -_ASBOX
  19100. - echo
  19101. - # The following way of writing the cache mishandles newlines in values,
  19102. -(
  19103. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  19104. - eval ac_val=\$$ac_var
  19105. - case $ac_val in #(
  19106. - *${as_nl}*)
  19107. - case $ac_var in #(
  19108. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19109. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19110. - esac
  19111. - case $ac_var in #(
  19112. - _ | IFS | as_nl) ;; #(
  19113. - *) $as_unset $ac_var ;;
  19114. - esac ;;
  19115. - esac
  19116. - done
  19117. - (set) 2>&1 |
  19118. - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  19119. - *${as_nl}ac_space=\ *)
  19120. - sed -n \
  19121. - "s/'\''/'\''\\\\'\'''\''/g;
  19122. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  19123. - ;; #(
  19124. - *)
  19125. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19126. - ;;
  19127. - esac |
  19128. - sort
  19129. -)
  19130. - echo
  19131. +} # ac_fn_c_check_header_compile
  19132. - cat <<\_ASBOX
  19133. -## ----------------- ##
  19134. -## Output variables. ##
  19135. -## ----------------- ##
  19136. -_ASBOX
  19137. - echo
  19138. - for ac_var in $ac_subst_vars
  19139. - do
  19140. - eval ac_val=\$$ac_var
  19141. - case $ac_val in
  19142. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  19143. - esac
  19144. - echo "$ac_var='\''$ac_val'\''"
  19145. - done | sort
  19146. - echo
  19147. -
  19148. - if test -n "$ac_subst_files"; then
  19149. - cat <<\_ASBOX
  19150. -## ------------------- ##
  19151. -## File substitutions. ##
  19152. -## ------------------- ##
  19153. -_ASBOX
  19154. - echo
  19155. - for ac_var in $ac_subst_files
  19156. - do
  19157. - eval ac_val=\$$ac_var
  19158. - case $ac_val in
  19159. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  19160. - esac
  19161. - echo "$ac_var='\''$ac_val'\''"
  19162. - done | sort
  19163. - echo
  19164. - fi
  19165. -
  19166. - if test -s confdefs.h; then
  19167. - cat <<\_ASBOX
  19168. -## ----------- ##
  19169. -## confdefs.h. ##
  19170. -## ----------- ##
  19171. -_ASBOX
  19172. - echo
  19173. - cat confdefs.h
  19174. - echo
  19175. - fi
  19176. - test "$ac_signal" != 0 &&
  19177. - echo "$as_me: caught signal $ac_signal"
  19178. - echo "$as_me: exit $exit_status"
  19179. - } >&5
  19180. - rm -f core *.core core.conftest.* &&
  19181. - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  19182. - exit $exit_status
  19183. -' 0
  19184. -for ac_signal in 1 2 13 15; do
  19185. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  19186. -done
  19187. -ac_signal=0
  19188. -
  19189. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  19190. -rm -f -r conftest* confdefs.h
  19191. -
  19192. -# Predefined preprocessor variables.
  19193. -
  19194. -cat >>confdefs.h <<_ACEOF
  19195. -#define PACKAGE_NAME "$PACKAGE_NAME"
  19196. -_ACEOF
  19197. +# ac_fn_c_try_link LINENO
  19198. +# -----------------------
  19199. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  19200. +ac_fn_c_try_link ()
  19201. +{
  19202. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19203. + rm -f conftest.$ac_objext conftest$ac_exeext
  19204. + if { { ac_try="$ac_link"
  19205. +case "(($ac_try" in
  19206. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19207. + *) ac_try_echo=$ac_try;;
  19208. +esac
  19209. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19210. +$as_echo "$ac_try_echo"; } >&5
  19211. + (eval "$ac_link") 2>conftest.err
  19212. + ac_status=$?
  19213. + if test -s conftest.err; then
  19214. + grep -v '^ *+' conftest.err >conftest.er1
  19215. + cat conftest.er1 >&5
  19216. + mv -f conftest.er1 conftest.err
  19217. + fi
  19218. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19219. + test $ac_status = 0; } && {
  19220. + test -z "$ac_c_werror_flag" ||
  19221. + test ! -s conftest.err
  19222. + } && test -s conftest$ac_exeext && {
  19223. + test "$cross_compiling" = yes ||
  19224. + $as_test_x conftest$ac_exeext
  19225. + }; then :
  19226. + ac_retval=0
  19227. +else
  19228. + $as_echo "$as_me: failed program was:" >&5
  19229. +sed 's/^/| /' conftest.$ac_ext >&5
  19230. + ac_retval=1
  19231. +fi
  19232. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  19233. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  19234. + # interfere with the next link command; also delete a directory that is
  19235. + # left behind by Apple's compiler. We do this before executing the actions.
  19236. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  19237. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19238. + as_fn_set_status $ac_retval
  19239. -cat >>confdefs.h <<_ACEOF
  19240. -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  19241. -_ACEOF
  19242. +} # ac_fn_c_try_link
  19243. +# ac_fn_c_check_func LINENO FUNC VAR
  19244. +# ----------------------------------
  19245. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  19246. +ac_fn_c_check_func ()
  19247. +{
  19248. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19249. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19250. +$as_echo_n "checking for $2... " >&6; }
  19251. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19252. + $as_echo_n "(cached) " >&6
  19253. +else
  19254. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19255. +/* end confdefs.h. */
  19256. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  19257. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19258. +#define $2 innocuous_$2
  19259. -cat >>confdefs.h <<_ACEOF
  19260. -#define PACKAGE_VERSION "$PACKAGE_VERSION"
  19261. -_ACEOF
  19262. +/* System header to define __stub macros and hopefully few prototypes,
  19263. + which can conflict with char $2 (); below.
  19264. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19265. + <limits.h> exists even on freestanding compilers. */
  19266. +#ifdef __STDC__
  19267. +# include <limits.h>
  19268. +#else
  19269. +# include <assert.h>
  19270. +#endif
  19271. -cat >>confdefs.h <<_ACEOF
  19272. -#define PACKAGE_STRING "$PACKAGE_STRING"
  19273. -_ACEOF
  19274. +#undef $2
  19275. +/* Override any GCC internal prototype to avoid an error.
  19276. + Use char because int might match the return type of a GCC
  19277. + builtin and then its argument prototype would still apply. */
  19278. +#ifdef __cplusplus
  19279. +extern "C"
  19280. +#endif
  19281. +char $2 ();
  19282. +/* The GNU C library defines this for functions which it implements
  19283. + to always fail with ENOSYS. Some functions are actually named
  19284. + something starting with __ and the normal name is an alias. */
  19285. +#if defined __stub_$2 || defined __stub___$2
  19286. +choke me
  19287. +#endif
  19288. -cat >>confdefs.h <<_ACEOF
  19289. -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  19290. +int
  19291. +main ()
  19292. +{
  19293. +return $2 ();
  19294. + ;
  19295. + return 0;
  19296. +}
  19297. _ACEOF
  19298. -
  19299. -
  19300. -# Let the site file select an alternate cache file if it wants to.
  19301. -# Prefer explicitly selected file to automatically selected ones.
  19302. -if test -n "$CONFIG_SITE"; then
  19303. - set x "$CONFIG_SITE"
  19304. -elif test "x$prefix" != xNONE; then
  19305. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  19306. +if ac_fn_c_try_link "$LINENO"; then :
  19307. + eval "$3=yes"
  19308. else
  19309. - set x "$ac_default_prefix/share/config.site" \
  19310. - "$ac_default_prefix/etc/config.site"
  19311. + eval "$3=no"
  19312. fi
  19313. -shift
  19314. -for ac_site_file
  19315. -do
  19316. - if test -r "$ac_site_file"; then
  19317. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  19318. -echo "$as_me: loading site script $ac_site_file" >&6;}
  19319. - sed 's/^/| /' "$ac_site_file" >&5
  19320. - . "$ac_site_file"
  19321. - fi
  19322. -done
  19323. +rm -f core conftest.err conftest.$ac_objext \
  19324. + conftest$ac_exeext conftest.$ac_ext
  19325. +fi
  19326. +eval ac_res=\$$3
  19327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19328. +$as_echo "$ac_res" >&6; }
  19329. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19330. -if test -r "$cache_file"; then
  19331. - # Some versions of bash will fail to source /dev/null (special
  19332. - # files actually), so we avoid doing that.
  19333. - if test -f "$cache_file"; then
  19334. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  19335. -echo "$as_me: loading cache $cache_file" >&6;}
  19336. - case $cache_file in
  19337. - [\\/]* | ?:[\\/]* ) . "$cache_file";;
  19338. - *) . "./$cache_file";;
  19339. - esac
  19340. +} # ac_fn_c_check_func
  19341. +
  19342. +# ac_fn_cxx_try_link LINENO
  19343. +# -------------------------
  19344. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  19345. +ac_fn_cxx_try_link ()
  19346. +{
  19347. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19348. + rm -f conftest.$ac_objext conftest$ac_exeext
  19349. + if { { ac_try="$ac_link"
  19350. +case "(($ac_try" in
  19351. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19352. + *) ac_try_echo=$ac_try;;
  19353. +esac
  19354. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19355. +$as_echo "$ac_try_echo"; } >&5
  19356. + (eval "$ac_link") 2>conftest.err
  19357. + ac_status=$?
  19358. + if test -s conftest.err; then
  19359. + grep -v '^ *+' conftest.err >conftest.er1
  19360. + cat conftest.er1 >&5
  19361. + mv -f conftest.er1 conftest.err
  19362. fi
  19363. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19364. + test $ac_status = 0; } && {
  19365. + test -z "$ac_cxx_werror_flag" ||
  19366. + test ! -s conftest.err
  19367. + } && test -s conftest$ac_exeext && {
  19368. + test "$cross_compiling" = yes ||
  19369. + $as_test_x conftest$ac_exeext
  19370. + }; then :
  19371. + ac_retval=0
  19372. else
  19373. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  19374. -echo "$as_me: creating cache $cache_file" >&6;}
  19375. - >$cache_file
  19376. -fi
  19377. + $as_echo "$as_me: failed program was:" >&5
  19378. +sed 's/^/| /' conftest.$ac_ext >&5
  19379. -# Check that the precious variables saved in the cache have kept the same
  19380. -# value.
  19381. -ac_cache_corrupted=false
  19382. -for ac_var in $ac_precious_vars; do
  19383. - eval ac_old_set=\$ac_cv_env_${ac_var}_set
  19384. - eval ac_new_set=\$ac_env_${ac_var}_set
  19385. - eval ac_old_val=\$ac_cv_env_${ac_var}_value
  19386. - eval ac_new_val=\$ac_env_${ac_var}_value
  19387. - case $ac_old_set,$ac_new_set in
  19388. - set,)
  19389. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  19390. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  19391. - ac_cache_corrupted=: ;;
  19392. - ,set)
  19393. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  19394. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  19395. - ac_cache_corrupted=: ;;
  19396. - ,);;
  19397. - *)
  19398. - if test "x$ac_old_val" != "x$ac_new_val"; then
  19399. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  19400. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  19401. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  19402. -echo "$as_me: former value: $ac_old_val" >&2;}
  19403. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  19404. -echo "$as_me: current value: $ac_new_val" >&2;}
  19405. - ac_cache_corrupted=:
  19406. - fi;;
  19407. - esac
  19408. - # Pass precious variables to config.status.
  19409. - if test "$ac_new_set" = set; then
  19410. - case $ac_new_val in
  19411. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  19412. - *) ac_arg=$ac_var=$ac_new_val ;;
  19413. - esac
  19414. - case " $ac_configure_args " in
  19415. - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  19416. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  19417. - esac
  19418. - fi
  19419. -done
  19420. -if $ac_cache_corrupted; then
  19421. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  19422. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  19423. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  19424. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  19425. - { (exit 1); exit 1; }; }
  19426. + ac_retval=1
  19427. fi
  19428. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  19429. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  19430. + # interfere with the next link command; also delete a directory that is
  19431. + # left behind by Apple's compiler. We do this before executing the actions.
  19432. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  19433. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19434. + as_fn_set_status $ac_retval
  19435. +} # ac_fn_cxx_try_link
  19436. +# ac_fn_f77_try_compile LINENO
  19437. +# ----------------------------
  19438. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  19439. +ac_fn_f77_try_compile ()
  19440. +{
  19441. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19442. + rm -f conftest.$ac_objext
  19443. + if { { ac_try="$ac_compile"
  19444. +case "(($ac_try" in
  19445. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19446. + *) ac_try_echo=$ac_try;;
  19447. +esac
  19448. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19449. +$as_echo "$ac_try_echo"; } >&5
  19450. + (eval "$ac_compile") 2>conftest.err
  19451. + ac_status=$?
  19452. + if test -s conftest.err; then
  19453. + grep -v '^ *+' conftest.err >conftest.er1
  19454. + cat conftest.er1 >&5
  19455. + mv -f conftest.er1 conftest.err
  19456. + fi
  19457. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19458. + test $ac_status = 0; } && {
  19459. + test -z "$ac_f77_werror_flag" ||
  19460. + test ! -s conftest.err
  19461. + } && test -s conftest.$ac_objext; then :
  19462. + ac_retval=0
  19463. +else
  19464. + $as_echo "$as_me: failed program was:" >&5
  19465. +sed 's/^/| /' conftest.$ac_ext >&5
  19466. + ac_retval=1
  19467. +fi
  19468. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19469. + as_fn_set_status $ac_retval
  19470. +} # ac_fn_f77_try_compile
  19471. +# ac_fn_f77_try_link LINENO
  19472. +# -------------------------
  19473. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  19474. +ac_fn_f77_try_link ()
  19475. +{
  19476. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19477. + rm -f conftest.$ac_objext conftest$ac_exeext
  19478. + if { { ac_try="$ac_link"
  19479. +case "(($ac_try" in
  19480. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19481. + *) ac_try_echo=$ac_try;;
  19482. +esac
  19483. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19484. +$as_echo "$ac_try_echo"; } >&5
  19485. + (eval "$ac_link") 2>conftest.err
  19486. + ac_status=$?
  19487. + if test -s conftest.err; then
  19488. + grep -v '^ *+' conftest.err >conftest.er1
  19489. + cat conftest.er1 >&5
  19490. + mv -f conftest.er1 conftest.err
  19491. + fi
  19492. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19493. + test $ac_status = 0; } && {
  19494. + test -z "$ac_f77_werror_flag" ||
  19495. + test ! -s conftest.err
  19496. + } && test -s conftest$ac_exeext && {
  19497. + test "$cross_compiling" = yes ||
  19498. + $as_test_x conftest$ac_exeext
  19499. + }; then :
  19500. + ac_retval=0
  19501. +else
  19502. + $as_echo "$as_me: failed program was:" >&5
  19503. +sed 's/^/| /' conftest.$ac_ext >&5
  19504. + ac_retval=1
  19505. +fi
  19506. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  19507. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  19508. + # interfere with the next link command; also delete a directory that is
  19509. + # left behind by Apple's compiler. We do this before executing the actions.
  19510. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  19511. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19512. + as_fn_set_status $ac_retval
  19513. +} # ac_fn_f77_try_link
  19514. +# ac_fn_c_check_decl LINENO SYMBOL VAR
  19515. +# ------------------------------------
  19516. +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  19517. +ac_fn_c_check_decl ()
  19518. +{
  19519. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19520. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  19521. +$as_echo_n "checking whether $2 is declared... " >&6; }
  19522. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19523. + $as_echo_n "(cached) " >&6
  19524. +else
  19525. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19526. +/* end confdefs.h. */
  19527. +$4
  19528. +int
  19529. +main ()
  19530. +{
  19531. +#ifndef $2
  19532. + (void) $2;
  19533. +#endif
  19534. + ;
  19535. + return 0;
  19536. +}
  19537. +_ACEOF
  19538. +if ac_fn_c_try_compile "$LINENO"; then :
  19539. + eval "$3=yes"
  19540. +else
  19541. + eval "$3=no"
  19542. +fi
  19543. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19544. +fi
  19545. +eval ac_res=\$$3
  19546. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19547. +$as_echo "$ac_res" >&6; }
  19548. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19549. +} # ac_fn_c_check_decl
  19550. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  19551. +# -------------------------------------------
  19552. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  19553. +# variable VAR accordingly.
  19554. +ac_fn_c_check_type ()
  19555. +{
  19556. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19557. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19558. +$as_echo_n "checking for $2... " >&6; }
  19559. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19560. + $as_echo_n "(cached) " >&6
  19561. +else
  19562. + eval "$3=no"
  19563. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19564. +/* end confdefs.h. */
  19565. +$4
  19566. +int
  19567. +main ()
  19568. +{
  19569. +if (sizeof ($2))
  19570. + return 0;
  19571. + ;
  19572. + return 0;
  19573. +}
  19574. +_ACEOF
  19575. +if ac_fn_c_try_compile "$LINENO"; then :
  19576. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19577. +/* end confdefs.h. */
  19578. +$4
  19579. +int
  19580. +main ()
  19581. +{
  19582. +if (sizeof (($2)))
  19583. + return 0;
  19584. + ;
  19585. + return 0;
  19586. +}
  19587. +_ACEOF
  19588. +if ac_fn_c_try_compile "$LINENO"; then :
  19589. +else
  19590. + eval "$3=yes"
  19591. +fi
  19592. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19593. +fi
  19594. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19595. +fi
  19596. +eval ac_res=\$$3
  19597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19598. +$as_echo "$ac_res" >&6; }
  19599. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19600. +} # ac_fn_c_check_type
  19601. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  19602. +# ----------------------------------------------------
  19603. +# Tries to find if the field MEMBER exists in type AGGR, after including
  19604. +# INCLUDES, setting cache variable VAR accordingly.
  19605. +ac_fn_c_check_member ()
  19606. +{
  19607. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19608. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  19609. +$as_echo_n "checking for $2.$3... " >&6; }
  19610. +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  19611. + $as_echo_n "(cached) " >&6
  19612. +else
  19613. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19614. +/* end confdefs.h. */
  19615. +$5
  19616. +int
  19617. +main ()
  19618. +{
  19619. +static $2 ac_aggr;
  19620. +if (ac_aggr.$3)
  19621. +return 0;
  19622. + ;
  19623. + return 0;
  19624. +}
  19625. +_ACEOF
  19626. +if ac_fn_c_try_compile "$LINENO"; then :
  19627. + eval "$4=yes"
  19628. +else
  19629. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19630. +/* end confdefs.h. */
  19631. +$5
  19632. +int
  19633. +main ()
  19634. +{
  19635. +static $2 ac_aggr;
  19636. +if (sizeof ac_aggr.$3)
  19637. +return 0;
  19638. + ;
  19639. + return 0;
  19640. +}
  19641. +_ACEOF
  19642. +if ac_fn_c_try_compile "$LINENO"; then :
  19643. + eval "$4=yes"
  19644. +else
  19645. + eval "$4=no"
  19646. +fi
  19647. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19648. +fi
  19649. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19650. +fi
  19651. +eval ac_res=\$$4
  19652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19653. +$as_echo "$ac_res" >&6; }
  19654. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19655. +
  19656. +} # ac_fn_c_check_member
  19657. +
  19658. +# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  19659. +# ---------------------------------------------------------
  19660. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  19661. +# the include files in INCLUDES and setting the cache variable VAR
  19662. +# accordingly.
  19663. +ac_fn_cxx_check_header_mongrel ()
  19664. +{
  19665. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19666. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19667. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19668. +$as_echo_n "checking for $2... " >&6; }
  19669. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19670. + $as_echo_n "(cached) " >&6
  19671. +fi
  19672. +eval ac_res=\$$3
  19673. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19674. +$as_echo "$ac_res" >&6; }
  19675. +else
  19676. + # Is the header compilable?
  19677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  19678. +$as_echo_n "checking $2 usability... " >&6; }
  19679. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19680. +/* end confdefs.h. */
  19681. +$4
  19682. +#include <$2>
  19683. +_ACEOF
  19684. +if ac_fn_cxx_try_compile "$LINENO"; then :
  19685. + ac_header_compiler=yes
  19686. +else
  19687. + ac_header_compiler=no
  19688. +fi
  19689. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19690. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  19691. +$as_echo "$ac_header_compiler" >&6; }
  19692. +# Is the header present?
  19693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  19694. +$as_echo_n "checking $2 presence... " >&6; }
  19695. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19696. +/* end confdefs.h. */
  19697. +#include <$2>
  19698. +_ACEOF
  19699. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  19700. + ac_header_preproc=yes
  19701. +else
  19702. + ac_header_preproc=no
  19703. +fi
  19704. +rm -f conftest.err conftest.$ac_ext
  19705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  19706. +$as_echo "$ac_header_preproc" >&6; }
  19707. +# So? What about this header?
  19708. +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  19709. + yes:no: )
  19710. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  19711. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19712. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  19713. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  19714. + ;;
  19715. + no:yes:* )
  19716. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  19717. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  19718. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  19719. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  19720. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  19721. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  19722. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  19723. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  19724. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  19725. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  19726. +( cat <<\_ASBOX
  19727. +## ---------------------------------- ##
  19728. +## Report this to gmp-bugs@gmplib.org ##
  19729. +## ---------------------------------- ##
  19730. +_ASBOX
  19731. + ) | sed "s/^/$as_me: WARNING: /" >&2
  19732. + ;;
  19733. +esac
  19734. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19735. +$as_echo_n "checking for $2... " >&6; }
  19736. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19737. + $as_echo_n "(cached) " >&6
  19738. +else
  19739. + eval "$3=\$ac_header_compiler"
  19740. +fi
  19741. +eval ac_res=\$$3
  19742. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19743. +$as_echo "$ac_res" >&6; }
  19744. +fi
  19745. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19746. +} # ac_fn_cxx_check_header_mongrel
  19747. +# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  19748. +# ---------------------------------------------
  19749. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  19750. +# variable VAR accordingly.
  19751. +ac_fn_cxx_check_type ()
  19752. +{
  19753. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19754. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  19755. +$as_echo_n "checking for $2... " >&6; }
  19756. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  19757. + $as_echo_n "(cached) " >&6
  19758. +else
  19759. + eval "$3=no"
  19760. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19761. +/* end confdefs.h. */
  19762. +$4
  19763. +int
  19764. +main ()
  19765. +{
  19766. +if (sizeof ($2))
  19767. + return 0;
  19768. + ;
  19769. + return 0;
  19770. +}
  19771. +_ACEOF
  19772. +if ac_fn_cxx_try_compile "$LINENO"; then :
  19773. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19774. +/* end confdefs.h. */
  19775. +$4
  19776. +int
  19777. +main ()
  19778. +{
  19779. +if (sizeof (($2)))
  19780. + return 0;
  19781. + ;
  19782. + return 0;
  19783. +}
  19784. +_ACEOF
  19785. +if ac_fn_cxx_try_compile "$LINENO"; then :
  19786. +else
  19787. + eval "$3=yes"
  19788. +fi
  19789. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19790. +fi
  19791. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19792. +fi
  19793. +eval ac_res=\$$3
  19794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19795. +$as_echo "$ac_res" >&6; }
  19796. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19797. +
  19798. +} # ac_fn_cxx_check_type
  19799. +
  19800. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  19801. +# --------------------------------------------
  19802. +# Tries to find the compile-time value of EXPR in a program that includes
  19803. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  19804. +# computed
  19805. +ac_fn_c_compute_int ()
  19806. +{
  19807. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19808. + if test "$cross_compiling" = yes; then
  19809. + # Depending upon the size, compute the lo and hi bounds.
  19810. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19811. +/* end confdefs.h. */
  19812. +$4
  19813. +int
  19814. +main ()
  19815. +{
  19816. +static int test_array [1 - 2 * !(($2) >= 0)];
  19817. +test_array [0] = 0
  19818. + ;
  19819. + return 0;
  19820. +}
  19821. +_ACEOF
  19822. +if ac_fn_c_try_compile "$LINENO"; then :
  19823. + ac_lo=0 ac_mid=0
  19824. + while :; do
  19825. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19826. +/* end confdefs.h. */
  19827. +$4
  19828. +int
  19829. +main ()
  19830. +{
  19831. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  19832. +test_array [0] = 0
  19833. + ;
  19834. + return 0;
  19835. +}
  19836. +_ACEOF
  19837. +if ac_fn_c_try_compile "$LINENO"; then :
  19838. + ac_hi=$ac_mid; break
  19839. +else
  19840. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  19841. + if test $ac_lo -le $ac_mid; then
  19842. + ac_lo= ac_hi=
  19843. + break
  19844. + fi
  19845. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  19846. +fi
  19847. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19848. + done
  19849. +else
  19850. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19851. +/* end confdefs.h. */
  19852. +$4
  19853. +int
  19854. +main ()
  19855. +{
  19856. +static int test_array [1 - 2 * !(($2) < 0)];
  19857. +test_array [0] = 0
  19858. + ;
  19859. + return 0;
  19860. +}
  19861. +_ACEOF
  19862. +if ac_fn_c_try_compile "$LINENO"; then :
  19863. + ac_hi=-1 ac_mid=-1
  19864. + while :; do
  19865. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19866. +/* end confdefs.h. */
  19867. +$4
  19868. +int
  19869. +main ()
  19870. +{
  19871. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  19872. +test_array [0] = 0
  19873. + ;
  19874. + return 0;
  19875. +}
  19876. +_ACEOF
  19877. +if ac_fn_c_try_compile "$LINENO"; then :
  19878. + ac_lo=$ac_mid; break
  19879. +else
  19880. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  19881. + if test $ac_mid -le $ac_hi; then
  19882. + ac_lo= ac_hi=
  19883. + break
  19884. + fi
  19885. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  19886. +fi
  19887. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19888. + done
  19889. +else
  19890. + ac_lo= ac_hi=
  19891. +fi
  19892. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19893. +fi
  19894. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19895. +# Binary search between lo and hi bounds.
  19896. +while test "x$ac_lo" != "x$ac_hi"; do
  19897. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  19898. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19899. +/* end confdefs.h. */
  19900. +$4
  19901. +int
  19902. +main ()
  19903. +{
  19904. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  19905. +test_array [0] = 0
  19906. + ;
  19907. + return 0;
  19908. +}
  19909. +_ACEOF
  19910. +if ac_fn_c_try_compile "$LINENO"; then :
  19911. + ac_hi=$ac_mid
  19912. +else
  19913. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  19914. +fi
  19915. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19916. +done
  19917. +case $ac_lo in #((
  19918. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  19919. +'') ac_retval=1 ;;
  19920. +esac
  19921. + else
  19922. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19923. +/* end confdefs.h. */
  19924. +$4
  19925. +static long int longval () { return $2; }
  19926. +static unsigned long int ulongval () { return $2; }
  19927. +#include <stdio.h>
  19928. +#include <stdlib.h>
  19929. +int
  19930. +main ()
  19931. +{
  19932. -ac_ext=c
  19933. -ac_cpp='$CPP $CPPFLAGS'
  19934. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19935. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19936. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19937. -
  19938. -
  19939. -
  19940. -
  19941. -
  19942. + FILE *f = fopen ("conftest.val", "w");
  19943. + if (! f)
  19944. + return 1;
  19945. + if (($2) < 0)
  19946. + {
  19947. + long int i = longval ();
  19948. + if (i != ($2))
  19949. + return 1;
  19950. + fprintf (f, "%ld", i);
  19951. + }
  19952. + else
  19953. + {
  19954. + unsigned long int i = ulongval ();
  19955. + if (i != ($2))
  19956. + return 1;
  19957. + fprintf (f, "%lu", i);
  19958. + }
  19959. + /* Do not output a trailing newline, as this causes \r\n confusion
  19960. + on some platforms. */
  19961. + return ferror (f) || fclose (f) != 0;
  19962. + ;
  19963. + return 0;
  19964. +}
  19965. +_ACEOF
  19966. +if ac_fn_c_try_run "$LINENO"; then :
  19967. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  19968. +else
  19969. + ac_retval=1
  19970. +fi
  19971. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19972. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19973. +rm -f conftest.val
  19974. + fi
  19975. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  19976. + as_fn_set_status $ac_retval
  19977. +} # ac_fn_c_compute_int
  19978. +cat >config.log <<_ACEOF
  19979. +This file contains any messages produced by compilers while
  19980. +running configure, to aid debugging if configure makes a mistake.
  19981. +It was created by GNU MP $as_me 4.3.2, which was
  19982. +generated by GNU Autoconf 2.65. Invocation command line was
  19983. -# If --target is not used then $target_alias is empty, but if say
  19984. -# "./configure athlon-pc-freebsd3.5" is used, then all three of
  19985. -# $build_alias, $host_alias and $target_alias are set to
  19986. -# "athlon-pc-freebsd3.5".
  19987. -#
  19988. -if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
  19989. - { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
  19990. -Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
  19991. -explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
  19992. -manual for more on this)." >&5
  19993. -echo "$as_me: error: --target is not appropriate for GMP
  19994. -Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
  19995. -explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
  19996. -manual for more on this)." >&2;}
  19997. - { (exit 1); exit 1; }; }
  19998. -fi
  19999. + $ $0 $@
  20000. -gmp_configm4="config.m4"
  20001. -gmp_tmpconfigm4=cnfm4.tmp
  20002. -gmp_tmpconfigm4i=cnfm4i.tmp
  20003. -gmp_tmpconfigm4p=cnfm4p.tmp
  20004. -rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
  20005. +_ACEOF
  20006. +exec 5>>config.log
  20007. +{
  20008. +cat <<_ASUNAME
  20009. +## --------- ##
  20010. +## Platform. ##
  20011. +## --------- ##
  20012. -# CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
  20013. -# The pattern here tests for an absolute path the same way as
  20014. -# _AC_OUTPUT_FILES in autoconf acgeneral.m4.
  20015. -case $srcdir in
  20016. -[\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
  20017. -*) tmp="../$srcdir" ;;
  20018. -esac
  20019. -echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
  20020. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  20021. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  20022. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  20023. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  20024. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  20025. -# All CPUs use asm-defs.m4
  20026. -echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
  20027. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  20028. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  20029. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  20030. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  20031. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  20032. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  20033. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  20034. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  20035. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  20036. -ac_aux_dir=
  20037. -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  20038. - if test -f "$ac_dir/install-sh"; then
  20039. - ac_aux_dir=$ac_dir
  20040. - ac_install_sh="$ac_aux_dir/install-sh -c"
  20041. - break
  20042. - elif test -f "$ac_dir/install.sh"; then
  20043. - ac_aux_dir=$ac_dir
  20044. - ac_install_sh="$ac_aux_dir/install.sh -c"
  20045. - break
  20046. - elif test -f "$ac_dir/shtool"; then
  20047. - ac_aux_dir=$ac_dir
  20048. - ac_install_sh="$ac_aux_dir/shtool install -c"
  20049. - break
  20050. - fi
  20051. -done
  20052. -if test -z "$ac_aux_dir"; then
  20053. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  20054. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  20055. - { (exit 1); exit 1; }; }
  20056. -fi
  20057. +_ASUNAME
  20058. -# These three variables are undocumented and unsupported,
  20059. -# and are intended to be withdrawn in a future Autoconf release.
  20060. -# They can cause serious problems if a builder's source tree is in a directory
  20061. -# whose full name contains unusual characters.
  20062. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  20063. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  20064. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  20065. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20066. +for as_dir in $PATH
  20067. +do
  20068. + IFS=$as_save_IFS
  20069. + test -z "$as_dir" && as_dir=.
  20070. + $as_echo "PATH: $as_dir"
  20071. + done
  20072. +IFS=$as_save_IFS
  20073. +} >&5
  20074. -# Make sure we can run config.sub.
  20075. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  20076. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  20077. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  20078. - { (exit 1); exit 1; }; }
  20079. -
  20080. -{ echo "$as_me:$LINENO: checking build system type" >&5
  20081. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  20082. -if test "${ac_cv_build+set}" = set; then
  20083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20084. -else
  20085. - ac_build_alias=$build_alias
  20086. -test "x$ac_build_alias" = x &&
  20087. - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  20088. -test "x$ac_build_alias" = x &&
  20089. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  20090. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  20091. - { (exit 1); exit 1; }; }
  20092. -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  20093. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  20094. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  20095. - { (exit 1); exit 1; }; }
  20096. +cat >&5 <<_ACEOF
  20097. -fi
  20098. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  20099. -echo "${ECHO_T}$ac_cv_build" >&6; }
  20100. -case $ac_cv_build in
  20101. -*-*-*) ;;
  20102. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  20103. -echo "$as_me: error: invalid value of canonical build" >&2;}
  20104. - { (exit 1); exit 1; }; };;
  20105. -esac
  20106. -build=$ac_cv_build
  20107. -ac_save_IFS=$IFS; IFS='-'
  20108. -set x $ac_cv_build
  20109. -shift
  20110. -build_cpu=$1
  20111. -build_vendor=$2
  20112. -shift; shift
  20113. -# Remember, the first character of IFS is used to create $*,
  20114. -# except with old shells:
  20115. -build_os=$*
  20116. -IFS=$ac_save_IFS
  20117. -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  20118. +## ----------- ##
  20119. +## Core tests. ##
  20120. +## ----------- ##
  20121. -{ echo "$as_me:$LINENO: checking host system type" >&5
  20122. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  20123. -if test "${ac_cv_host+set}" = set; then
  20124. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20125. -else
  20126. - if test "x$host_alias" = x; then
  20127. - ac_cv_host=$ac_cv_build
  20128. -else
  20129. - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  20130. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  20131. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  20132. - { (exit 1); exit 1; }; }
  20133. -fi
  20134. -
  20135. -fi
  20136. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  20137. -echo "${ECHO_T}$ac_cv_host" >&6; }
  20138. -case $ac_cv_host in
  20139. -*-*-*) ;;
  20140. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  20141. -echo "$as_me: error: invalid value of canonical host" >&2;}
  20142. - { (exit 1); exit 1; }; };;
  20143. -esac
  20144. -host=$ac_cv_host
  20145. -ac_save_IFS=$IFS; IFS='-'
  20146. -set x $ac_cv_host
  20147. -shift
  20148. -host_cpu=$1
  20149. -host_vendor=$2
  20150. -shift; shift
  20151. -# Remember, the first character of IFS is used to create $*,
  20152. -# except with old shells:
  20153. -host_os=$*
  20154. -IFS=$ac_save_IFS
  20155. -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  20156. -
  20157. +_ACEOF
  20158. -am__api_version="1.8"
  20159. -# Find a good install program. We prefer a C program (faster),
  20160. -# so one script is as good as another. But avoid the broken or
  20161. -# incompatible versions:
  20162. -# SysV /etc/install, /usr/sbin/install
  20163. -# SunOS /usr/etc/install
  20164. -# IRIX /sbin/install
  20165. -# AIX /bin/install
  20166. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  20167. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  20168. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  20169. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  20170. -# OS/2's system install, which has a completely different semantic
  20171. -# ./install, which can be erroneously created by make from ./install.sh.
  20172. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  20173. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  20174. -if test -z "$INSTALL"; then
  20175. -if test "${ac_cv_path_install+set}" = set; then
  20176. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20177. -else
  20178. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20179. -for as_dir in $PATH
  20180. +# Keep a trace of the command line.
  20181. +# Strip out --no-create and --no-recursion so they do not pile up.
  20182. +# Strip out --silent because we don't want to record it for future runs.
  20183. +# Also quote any args containing shell meta-characters.
  20184. +# Make two passes to allow for proper duplicate-argument suppression.
  20185. +ac_configure_args=
  20186. +ac_configure_args0=
  20187. +ac_configure_args1=
  20188. +ac_must_keep_next=false
  20189. +for ac_pass in 1 2
  20190. do
  20191. - IFS=$as_save_IFS
  20192. - test -z "$as_dir" && as_dir=.
  20193. - # Account for people who put trailing slashes in PATH elements.
  20194. -case $as_dir/ in
  20195. - ./ | .// | /cC/* | \
  20196. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  20197. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  20198. - /usr/ucb/* ) ;;
  20199. - *)
  20200. - # OSF1 and SCO ODT 3.0 have their own names for install.
  20201. - # Don't use installbsd from OSF since it installs stuff as root
  20202. - # by default.
  20203. - for ac_prog in ginstall scoinst install; do
  20204. - for ac_exec_ext in '' $ac_executable_extensions; do
  20205. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  20206. - if test $ac_prog = install &&
  20207. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20208. - # AIX install. It has an incompatible calling convention.
  20209. - :
  20210. - elif test $ac_prog = install &&
  20211. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20212. - # program-specific install script used by HP pwplus--don't use.
  20213. - :
  20214. - else
  20215. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  20216. - break 3
  20217. - fi
  20218. - fi
  20219. - done
  20220. - done
  20221. - ;;
  20222. -esac
  20223. + for ac_arg
  20224. + do
  20225. + case $ac_arg in
  20226. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  20227. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20228. + | -silent | --silent | --silen | --sile | --sil)
  20229. + continue ;;
  20230. + *\'*)
  20231. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20232. + esac
  20233. + case $ac_pass in
  20234. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  20235. + 2)
  20236. + as_fn_append ac_configure_args1 " '$ac_arg'"
  20237. + if test $ac_must_keep_next = true; then
  20238. + ac_must_keep_next=false # Got value, back to normal.
  20239. + else
  20240. + case $ac_arg in
  20241. + *=* | --config-cache | -C | -disable-* | --disable-* \
  20242. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  20243. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  20244. + | -with-* | --with-* | -without-* | --without-* | --x)
  20245. + case "$ac_configure_args0 " in
  20246. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  20247. + esac
  20248. + ;;
  20249. + -* ) ac_must_keep_next=true ;;
  20250. + esac
  20251. + fi
  20252. + as_fn_append ac_configure_args " '$ac_arg'"
  20253. + ;;
  20254. + esac
  20255. + done
  20256. done
  20257. -IFS=$as_save_IFS
  20258. +{ ac_configure_args0=; unset ac_configure_args0;}
  20259. +{ ac_configure_args1=; unset ac_configure_args1;}
  20260. +# When interrupted or exit'd, cleanup temporary files, and complete
  20261. +# config.log. We remove comments because anyway the quotes in there
  20262. +# would cause problems or look ugly.
  20263. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  20264. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  20265. +trap 'exit_status=$?
  20266. + # Save into config.log some information that might help in debugging.
  20267. + {
  20268. + echo
  20269. -fi
  20270. - if test "${ac_cv_path_install+set}" = set; then
  20271. - INSTALL=$ac_cv_path_install
  20272. - else
  20273. - # As a last resort, use the slow shell script. Don't cache a
  20274. - # value for INSTALL within a source directory, because that will
  20275. - # break other packages using the cache if that directory is
  20276. - # removed, or if the value is a relative name.
  20277. - INSTALL=$ac_install_sh
  20278. - fi
  20279. -fi
  20280. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  20281. -echo "${ECHO_T}$INSTALL" >&6; }
  20282. + cat <<\_ASBOX
  20283. +## ---------------- ##
  20284. +## Cache variables. ##
  20285. +## ---------------- ##
  20286. +_ASBOX
  20287. + echo
  20288. + # The following way of writing the cache mishandles newlines in values,
  20289. +(
  20290. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  20291. + eval ac_val=\$$ac_var
  20292. + case $ac_val in #(
  20293. + *${as_nl}*)
  20294. + case $ac_var in #(
  20295. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20296. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20297. + esac
  20298. + case $ac_var in #(
  20299. + _ | IFS | as_nl) ;; #(
  20300. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20301. + *) { eval $ac_var=; unset $ac_var;} ;;
  20302. + esac ;;
  20303. + esac
  20304. + done
  20305. + (set) 2>&1 |
  20306. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  20307. + *${as_nl}ac_space=\ *)
  20308. + sed -n \
  20309. + "s/'\''/'\''\\\\'\'''\''/g;
  20310. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  20311. + ;; #(
  20312. + *)
  20313. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20314. + ;;
  20315. + esac |
  20316. + sort
  20317. +)
  20318. + echo
  20319. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  20320. -# It thinks the first close brace ends the variable substitution.
  20321. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  20322. + cat <<\_ASBOX
  20323. +## ----------------- ##
  20324. +## Output variables. ##
  20325. +## ----------------- ##
  20326. +_ASBOX
  20327. + echo
  20328. + for ac_var in $ac_subst_vars
  20329. + do
  20330. + eval ac_val=\$$ac_var
  20331. + case $ac_val in
  20332. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  20333. + esac
  20334. + $as_echo "$ac_var='\''$ac_val'\''"
  20335. + done | sort
  20336. + echo
  20337. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  20338. + if test -n "$ac_subst_files"; then
  20339. + cat <<\_ASBOX
  20340. +## ------------------- ##
  20341. +## File substitutions. ##
  20342. +## ------------------- ##
  20343. +_ASBOX
  20344. + echo
  20345. + for ac_var in $ac_subst_files
  20346. + do
  20347. + eval ac_val=\$$ac_var
  20348. + case $ac_val in
  20349. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  20350. + esac
  20351. + $as_echo "$ac_var='\''$ac_val'\''"
  20352. + done | sort
  20353. + echo
  20354. + fi
  20355. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  20356. + if test -s confdefs.h; then
  20357. + cat <<\_ASBOX
  20358. +## ----------- ##
  20359. +## confdefs.h. ##
  20360. +## ----------- ##
  20361. +_ASBOX
  20362. + echo
  20363. + cat confdefs.h
  20364. + echo
  20365. + fi
  20366. + test "$ac_signal" != 0 &&
  20367. + $as_echo "$as_me: caught signal $ac_signal"
  20368. + $as_echo "$as_me: exit $exit_status"
  20369. + } >&5
  20370. + rm -f core *.core core.conftest.* &&
  20371. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  20372. + exit $exit_status
  20373. +' 0
  20374. +for ac_signal in 1 2 13 15; do
  20375. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  20376. +done
  20377. +ac_signal=0
  20378. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  20379. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  20380. -# Just in case
  20381. -sleep 1
  20382. -echo timestamp > conftest.file
  20383. -# Do `set' in a subshell so we don't clobber the current shell's
  20384. -# arguments. Must try -L first in case configure is actually a
  20385. -# symlink; some systems play weird games with the mod time of symlinks
  20386. -# (eg FreeBSD returns the mod time of the symlink's containing
  20387. -# directory).
  20388. -if (
  20389. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  20390. - if test "$*" = "X"; then
  20391. - # -L didn't work.
  20392. - set X `ls -t $srcdir/configure conftest.file`
  20393. - fi
  20394. - rm -f conftest.file
  20395. - if test "$*" != "X $srcdir/configure conftest.file" \
  20396. - && test "$*" != "X conftest.file $srcdir/configure"; then
  20397. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  20398. +rm -f -r conftest* confdefs.h
  20399. - # If neither matched, then we have a broken ls. This can happen
  20400. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  20401. - # broken ls alias from the environment. This has actually
  20402. - # happened. Such a system could not be considered "sane".
  20403. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  20404. -alias in your environment" >&5
  20405. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  20406. -alias in your environment" >&2;}
  20407. - { (exit 1); exit 1; }; }
  20408. - fi
  20409. +$as_echo "/* confdefs.h */" > confdefs.h
  20410. - test "$2" = conftest.file
  20411. - )
  20412. -then
  20413. - # Ok.
  20414. - :
  20415. -else
  20416. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  20417. -Check your system clock" >&5
  20418. -echo "$as_me: error: newly created file is older than distributed files!
  20419. -Check your system clock" >&2;}
  20420. - { (exit 1); exit 1; }; }
  20421. -fi
  20422. -{ echo "$as_me:$LINENO: result: yes" >&5
  20423. -echo "${ECHO_T}yes" >&6; }
  20424. -test "$program_prefix" != NONE &&
  20425. - program_transform_name="s&^&$program_prefix&;$program_transform_name"
  20426. -# Use a double $ so make ignores it.
  20427. -test "$program_suffix" != NONE &&
  20428. - program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  20429. -# Double any \ or $. echo might interpret backslashes.
  20430. -# By default was `s,x,x', remove it if useless.
  20431. -cat <<\_ACEOF >conftest.sed
  20432. -s/[\\$]/&&/g;s/;s,x,x,$//
  20433. +# Predefined preprocessor variables.
  20434. +
  20435. +cat >>confdefs.h <<_ACEOF
  20436. +#define PACKAGE_NAME "$PACKAGE_NAME"
  20437. _ACEOF
  20438. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  20439. -rm -f conftest.sed
  20440. -# expand $ac_aux_dir to an absolute path
  20441. -am_aux_dir=`cd $ac_aux_dir && pwd`
  20442. -
  20443. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  20444. -# Use eval to expand $SHELL
  20445. -if eval "$MISSING --run true"; then
  20446. - am_missing_run="$MISSING --run "
  20447. -else
  20448. - am_missing_run=
  20449. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  20450. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  20451. -fi
  20452. +cat >>confdefs.h <<_ACEOF
  20453. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  20454. +_ACEOF
  20455. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  20456. - # Keeping the `.' argument allows $(mkdir_p) to be used without
  20457. - # argument. Indeed, we sometimes output rules like
  20458. - # $(mkdir_p) $(somedir)
  20459. - # where $(somedir) is conditionally defined.
  20460. - # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  20461. - # expensive solution, as it forces Make to start a sub-shell.)
  20462. - mkdir_p='mkdir -p -- .'
  20463. -else
  20464. - # On NextStep and OpenStep, the `mkdir' command does not
  20465. - # recognize any option. It will interpret all options as
  20466. - # directories to create, and then abort because `.' already
  20467. - # exists.
  20468. - for d in ./-p ./--version;
  20469. - do
  20470. - test -d $d && rmdir $d
  20471. - done
  20472. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  20473. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  20474. - mkdir_p='$(mkinstalldirs)'
  20475. - else
  20476. - mkdir_p='$(install_sh) -d'
  20477. - fi
  20478. -fi
  20479. +cat >>confdefs.h <<_ACEOF
  20480. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  20481. +_ACEOF
  20482. -for ac_prog in gawk mawk nawk awk
  20483. -do
  20484. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  20485. -set dummy $ac_prog; ac_word=$2
  20486. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20487. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20488. -if test "${ac_cv_prog_AWK+set}" = set; then
  20489. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20490. -else
  20491. - if test -n "$AWK"; then
  20492. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  20493. -else
  20494. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20495. -for as_dir in $PATH
  20496. -do
  20497. - IFS=$as_save_IFS
  20498. - test -z "$as_dir" && as_dir=.
  20499. - for ac_exec_ext in '' $ac_executable_extensions; do
  20500. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20501. - ac_cv_prog_AWK="$ac_prog"
  20502. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20503. - break 2
  20504. - fi
  20505. -done
  20506. -done
  20507. -IFS=$as_save_IFS
  20508. +cat >>confdefs.h <<_ACEOF
  20509. +#define PACKAGE_STRING "$PACKAGE_STRING"
  20510. +_ACEOF
  20511. -fi
  20512. -fi
  20513. -AWK=$ac_cv_prog_AWK
  20514. -if test -n "$AWK"; then
  20515. - { echo "$as_me:$LINENO: result: $AWK" >&5
  20516. -echo "${ECHO_T}$AWK" >&6; }
  20517. -else
  20518. - { echo "$as_me:$LINENO: result: no" >&5
  20519. -echo "${ECHO_T}no" >&6; }
  20520. -fi
  20521. +cat >>confdefs.h <<_ACEOF
  20522. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  20523. +_ACEOF
  20524. +cat >>confdefs.h <<_ACEOF
  20525. +#define PACKAGE_URL "$PACKAGE_URL"
  20526. +_ACEOF
  20527. - test -n "$AWK" && break
  20528. -done
  20529. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  20530. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  20531. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  20532. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  20533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20534. -else
  20535. - cat >conftest.make <<\_ACEOF
  20536. -SHELL = /bin/sh
  20537. -all:
  20538. - @echo '@@@%%%=$(MAKE)=@@@%%%'
  20539. -_ACEOF
  20540. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20541. -case `${MAKE-make} -f conftest.make 2>/dev/null` in
  20542. - *@@@%%%=?*=@@@%%%*)
  20543. - eval ac_cv_prog_make_${ac_make}_set=yes;;
  20544. - *)
  20545. - eval ac_cv_prog_make_${ac_make}_set=no;;
  20546. -esac
  20547. -rm -f conftest.make
  20548. -fi
  20549. -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  20550. - { echo "$as_me:$LINENO: result: yes" >&5
  20551. -echo "${ECHO_T}yes" >&6; }
  20552. - SET_MAKE=
  20553. +# Let the site file select an alternate cache file if it wants to.
  20554. +# Prefer an explicitly selected file to automatically selected ones.
  20555. +ac_site_file1=NONE
  20556. +ac_site_file2=NONE
  20557. +if test -n "$CONFIG_SITE"; then
  20558. + ac_site_file1=$CONFIG_SITE
  20559. +elif test "x$prefix" != xNONE; then
  20560. + ac_site_file1=$prefix/share/config.site
  20561. + ac_site_file2=$prefix/etc/config.site
  20562. else
  20563. - { echo "$as_me:$LINENO: result: no" >&5
  20564. -echo "${ECHO_T}no" >&6; }
  20565. - SET_MAKE="MAKE=${MAKE-make}"
  20566. + ac_site_file1=$ac_default_prefix/share/config.site
  20567. + ac_site_file2=$ac_default_prefix/etc/config.site
  20568. fi
  20569. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  20570. +do
  20571. + test "x$ac_site_file" = xNONE && continue
  20572. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  20573. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  20574. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  20575. + sed 's/^/| /' "$ac_site_file" >&5
  20576. + . "$ac_site_file"
  20577. + fi
  20578. +done
  20579. -rm -rf .tst 2>/dev/null
  20580. -mkdir .tst 2>/dev/null
  20581. -if test -d .tst; then
  20582. - am__leading_dot=.
  20583. +if test -r "$cache_file"; then
  20584. + # Some versions of bash will fail to source /dev/null (special files
  20585. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  20586. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  20587. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  20588. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  20589. + case $cache_file in
  20590. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  20591. + *) . "./$cache_file";;
  20592. + esac
  20593. + fi
  20594. else
  20595. - am__leading_dot=_
  20596. -fi
  20597. -rmdir .tst 2>/dev/null
  20598. -
  20599. -# test to see if srcdir already configured
  20600. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  20601. - test -f $srcdir/config.status; then
  20602. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  20603. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  20604. - { (exit 1); exit 1; }; }
  20605. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  20606. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  20607. + >$cache_file
  20608. fi
  20609. -# test whether we have cygpath
  20610. -if test -z "$CYGPATH_W"; then
  20611. - if (cygpath --version) >/dev/null 2>/dev/null; then
  20612. - CYGPATH_W='cygpath -w'
  20613. - else
  20614. - CYGPATH_W=echo
  20615. +# Check that the precious variables saved in the cache have kept the same
  20616. +# value.
  20617. +ac_cache_corrupted=false
  20618. +for ac_var in $ac_precious_vars; do
  20619. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  20620. + eval ac_new_set=\$ac_env_${ac_var}_set
  20621. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  20622. + eval ac_new_val=\$ac_env_${ac_var}_value
  20623. + case $ac_old_set,$ac_new_set in
  20624. + set,)
  20625. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  20626. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  20627. + ac_cache_corrupted=: ;;
  20628. + ,set)
  20629. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  20630. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  20631. + ac_cache_corrupted=: ;;
  20632. + ,);;
  20633. + *)
  20634. + if test "x$ac_old_val" != "x$ac_new_val"; then
  20635. + # differences in whitespace do not lead to failure.
  20636. + ac_old_val_w=`echo x $ac_old_val`
  20637. + ac_new_val_w=`echo x $ac_new_val`
  20638. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  20639. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  20640. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  20641. + ac_cache_corrupted=:
  20642. + else
  20643. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  20644. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  20645. + eval $ac_var=\$ac_old_val
  20646. + fi
  20647. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  20648. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  20649. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  20650. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  20651. + fi;;
  20652. + esac
  20653. + # Pass precious variables to config.status.
  20654. + if test "$ac_new_set" = set; then
  20655. + case $ac_new_val in
  20656. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  20657. + *) ac_arg=$ac_var=$ac_new_val ;;
  20658. + esac
  20659. + case " $ac_configure_args " in
  20660. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  20661. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  20662. + esac
  20663. fi
  20664. -fi
  20665. +done
  20666. +if $ac_cache_corrupted; then
  20667. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20668. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20669. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  20670. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  20671. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  20672. +fi
  20673. +## -------------------- ##
  20674. +## Main body of script. ##
  20675. +## -------------------- ##
  20676. +ac_ext=c
  20677. +ac_cpp='$CPP $CPPFLAGS'
  20678. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20679. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20680. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20681. -# Define the identity of the package.
  20682. - PACKAGE='gmp'
  20683. - VERSION='4.3.2'
  20684. -cat >>confdefs.h <<_ACEOF
  20685. -#define PACKAGE "$PACKAGE"
  20686. -_ACEOF
  20687. -cat >>confdefs.h <<_ACEOF
  20688. -#define VERSION "$VERSION"
  20689. -_ACEOF
  20690. -# Some tools Automake needs.
  20691. -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  20692. -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  20693. +# If --target is not used then $target_alias is empty, but if say
  20694. +# "./configure athlon-pc-freebsd3.5" is used, then all three of
  20695. +# $build_alias, $host_alias and $target_alias are set to
  20696. +# "athlon-pc-freebsd3.5".
  20697. +#
  20698. +if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
  20699. + as_fn_error "--target is not appropriate for GMP
  20700. +Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
  20701. +explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
  20702. +manual for more on this)." "$LINENO" 5
  20703. +fi
  20704. -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  20705. +gmp_configm4="config.m4"
  20706. +gmp_tmpconfigm4=cnfm4.tmp
  20707. +gmp_tmpconfigm4i=cnfm4i.tmp
  20708. +gmp_tmpconfigm4p=cnfm4p.tmp
  20709. +rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
  20710. +# CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
  20711. +# The pattern here tests for an absolute path the same way as
  20712. +# _AC_OUTPUT_FILES in autoconf acgeneral.m4.
  20713. +case $srcdir in
  20714. +[\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
  20715. +*) tmp="../$srcdir" ;;
  20716. +esac
  20717. +echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
  20718. -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  20719. +# All CPUs use asm-defs.m4
  20720. +echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
  20721. -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  20722. +ac_aux_dir=
  20723. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  20724. + for ac_t in install-sh install.sh shtool; do
  20725. + if test -f "$ac_dir/$ac_t"; then
  20726. + ac_aux_dir=$ac_dir
  20727. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  20728. + break 2
  20729. + fi
  20730. + done
  20731. +done
  20732. +if test -z "$ac_aux_dir"; then
  20733. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  20734. +fi
  20735. +# These three variables are undocumented and unsupported,
  20736. +# and are intended to be withdrawn in a future Autoconf release.
  20737. +# They can cause serious problems if a builder's source tree is in a directory
  20738. +# whose full name contains unusual characters.
  20739. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  20740. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  20741. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  20742. -AMTAR=${AMTAR-"${am_missing_run}tar"}
  20743. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  20744. +# Make sure we can run config.sub.
  20745. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  20746. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  20747. -# Installed binaries are usually stripped using `strip' when the user
  20748. -# run `make install-strip'. However `strip' might not be the right
  20749. -# tool to use in cross-compilation environments, therefore Automake
  20750. -# will honor the `STRIP' environment variable to overrule this program.
  20751. -if test "$cross_compiling" != no; then
  20752. - if test -n "$ac_tool_prefix"; then
  20753. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  20754. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  20755. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20756. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20757. -if test "${ac_cv_prog_STRIP+set}" = set; then
  20758. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20759. -else
  20760. - if test -n "$STRIP"; then
  20761. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  20762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  20763. +$as_echo_n "checking build system type... " >&6; }
  20764. +if test "${ac_cv_build+set}" = set; then :
  20765. + $as_echo_n "(cached) " >&6
  20766. else
  20767. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20768. -for as_dir in $PATH
  20769. -do
  20770. - IFS=$as_save_IFS
  20771. - test -z "$as_dir" && as_dir=.
  20772. - for ac_exec_ext in '' $ac_executable_extensions; do
  20773. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20774. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  20775. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20776. - break 2
  20777. - fi
  20778. -done
  20779. -done
  20780. -IFS=$as_save_IFS
  20781. + ac_build_alias=$build_alias
  20782. +test "x$ac_build_alias" = x &&
  20783. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  20784. +test "x$ac_build_alias" = x &&
  20785. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  20786. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  20787. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  20788. fi
  20789. -fi
  20790. -STRIP=$ac_cv_prog_STRIP
  20791. -if test -n "$STRIP"; then
  20792. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  20793. -echo "${ECHO_T}$STRIP" >&6; }
  20794. -else
  20795. - { echo "$as_me:$LINENO: result: no" >&5
  20796. -echo "${ECHO_T}no" >&6; }
  20797. -fi
  20798. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  20799. +$as_echo "$ac_cv_build" >&6; }
  20800. +case $ac_cv_build in
  20801. +*-*-*) ;;
  20802. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  20803. +esac
  20804. +build=$ac_cv_build
  20805. +ac_save_IFS=$IFS; IFS='-'
  20806. +set x $ac_cv_build
  20807. +shift
  20808. +build_cpu=$1
  20809. +build_vendor=$2
  20810. +shift; shift
  20811. +# Remember, the first character of IFS is used to create $*,
  20812. +# except with old shells:
  20813. +build_os=$*
  20814. +IFS=$ac_save_IFS
  20815. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  20816. -fi
  20817. -if test -z "$ac_cv_prog_STRIP"; then
  20818. - ac_ct_STRIP=$STRIP
  20819. - # Extract the first word of "strip", so it can be a program name with args.
  20820. -set dummy strip; ac_word=$2
  20821. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20822. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20823. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  20824. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20825. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  20826. +$as_echo_n "checking host system type... " >&6; }
  20827. +if test "${ac_cv_host+set}" = set; then :
  20828. + $as_echo_n "(cached) " >&6
  20829. else
  20830. - if test -n "$ac_ct_STRIP"; then
  20831. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  20832. + if test "x$host_alias" = x; then
  20833. + ac_cv_host=$ac_cv_build
  20834. else
  20835. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20836. -for as_dir in $PATH
  20837. -do
  20838. - IFS=$as_save_IFS
  20839. - test -z "$as_dir" && as_dir=.
  20840. - for ac_exec_ext in '' $ac_executable_extensions; do
  20841. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  20842. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  20843. +fi
  20844. +
  20845. +fi
  20846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  20847. +$as_echo "$ac_cv_host" >&6; }
  20848. +case $ac_cv_host in
  20849. +*-*-*) ;;
  20850. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  20851. +esac
  20852. +host=$ac_cv_host
  20853. +ac_save_IFS=$IFS; IFS='-'
  20854. +set x $ac_cv_host
  20855. +shift
  20856. +host_cpu=$1
  20857. +host_vendor=$2
  20858. +shift; shift
  20859. +# Remember, the first character of IFS is used to create $*,
  20860. +# except with old shells:
  20861. +host_os=$*
  20862. +IFS=$ac_save_IFS
  20863. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  20864. +
  20865. +
  20866. +
  20867. +am__api_version='1.11'
  20868. +
  20869. +# Find a good install program. We prefer a C program (faster),
  20870. +# so one script is as good as another. But avoid the broken or
  20871. +# incompatible versions:
  20872. +# SysV /etc/install, /usr/sbin/install
  20873. +# SunOS /usr/etc/install
  20874. +# IRIX /sbin/install
  20875. +# AIX /bin/install
  20876. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  20877. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  20878. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  20879. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  20880. +# OS/2's system install, which has a completely different semantic
  20881. +# ./install, which can be erroneously created by make from ./install.sh.
  20882. +# Reject install programs that cannot install multiple files.
  20883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  20884. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  20885. +if test -z "$INSTALL"; then
  20886. +if test "${ac_cv_path_install+set}" = set; then :
  20887. + $as_echo_n "(cached) " >&6
  20888. +else
  20889. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20890. +for as_dir in $PATH
  20891. +do
  20892. + IFS=$as_save_IFS
  20893. + test -z "$as_dir" && as_dir=.
  20894. + # Account for people who put trailing slashes in PATH elements.
  20895. +case $as_dir/ in #((
  20896. + ./ | .// | /[cC]/* | \
  20897. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  20898. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  20899. + /usr/ucb/* ) ;;
  20900. + *)
  20901. + # OSF1 and SCO ODT 3.0 have their own names for install.
  20902. + # Don't use installbsd from OSF since it installs stuff as root
  20903. + # by default.
  20904. + for ac_prog in ginstall scoinst install; do
  20905. + for ac_exec_ext in '' $ac_executable_extensions; do
  20906. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  20907. + if test $ac_prog = install &&
  20908. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20909. + # AIX install. It has an incompatible calling convention.
  20910. + :
  20911. + elif test $ac_prog = install &&
  20912. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20913. + # program-specific install script used by HP pwplus--don't use.
  20914. + :
  20915. + else
  20916. + rm -rf conftest.one conftest.two conftest.dir
  20917. + echo one > conftest.one
  20918. + echo two > conftest.two
  20919. + mkdir conftest.dir
  20920. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  20921. + test -s conftest.one && test -s conftest.two &&
  20922. + test -s conftest.dir/conftest.one &&
  20923. + test -s conftest.dir/conftest.two
  20924. + then
  20925. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  20926. + break 3
  20927. + fi
  20928. + fi
  20929. + fi
  20930. + done
  20931. + done
  20932. + ;;
  20933. +esac
  20934. +
  20935. + done
  20936. +IFS=$as_save_IFS
  20937. +
  20938. +rm -rf conftest.one conftest.two conftest.dir
  20939. +
  20940. +fi
  20941. + if test "${ac_cv_path_install+set}" = set; then
  20942. + INSTALL=$ac_cv_path_install
  20943. + else
  20944. + # As a last resort, use the slow shell script. Don't cache a
  20945. + # value for INSTALL within a source directory, because that will
  20946. + # break other packages using the cache if that directory is
  20947. + # removed, or if the value is a relative name.
  20948. + INSTALL=$ac_install_sh
  20949. + fi
  20950. +fi
  20951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  20952. +$as_echo "$INSTALL" >&6; }
  20953. +
  20954. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  20955. +# It thinks the first close brace ends the variable substitution.
  20956. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  20957. +
  20958. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  20959. +
  20960. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  20961. +
  20962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  20963. +$as_echo_n "checking whether build environment is sane... " >&6; }
  20964. +# Just in case
  20965. +sleep 1
  20966. +echo timestamp > conftest.file
  20967. +# Reject unsafe characters in $srcdir or the absolute working directory
  20968. +# name. Accept space and tab only in the latter.
  20969. +am_lf='
  20970. +'
  20971. +case `pwd` in
  20972. + *[\\\"\#\$\&\'\`$am_lf]*)
  20973. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  20974. +esac
  20975. +case $srcdir in
  20976. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  20977. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  20978. +esac
  20979. +
  20980. +# Do `set' in a subshell so we don't clobber the current shell's
  20981. +# arguments. Must try -L first in case configure is actually a
  20982. +# symlink; some systems play weird games with the mod time of symlinks
  20983. +# (eg FreeBSD returns the mod time of the symlink's containing
  20984. +# directory).
  20985. +if (
  20986. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  20987. + if test "$*" = "X"; then
  20988. + # -L didn't work.
  20989. + set X `ls -t "$srcdir/configure" conftest.file`
  20990. + fi
  20991. + rm -f conftest.file
  20992. + if test "$*" != "X $srcdir/configure conftest.file" \
  20993. + && test "$*" != "X conftest.file $srcdir/configure"; then
  20994. +
  20995. + # If neither matched, then we have a broken ls. This can happen
  20996. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  20997. + # broken ls alias from the environment. This has actually
  20998. + # happened. Such a system could not be considered "sane".
  20999. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  21000. +alias in your environment" "$LINENO" 5
  21001. + fi
  21002. +
  21003. + test "$2" = conftest.file
  21004. + )
  21005. +then
  21006. + # Ok.
  21007. + :
  21008. +else
  21009. + as_fn_error "newly created file is older than distributed files!
  21010. +Check your system clock" "$LINENO" 5
  21011. +fi
  21012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21013. +$as_echo "yes" >&6; }
  21014. +test "$program_prefix" != NONE &&
  21015. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  21016. +# Use a double $ so make ignores it.
  21017. +test "$program_suffix" != NONE &&
  21018. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  21019. +# Double any \ or $.
  21020. +# By default was `s,x,x', remove it if useless.
  21021. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  21022. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  21023. +
  21024. +# expand $ac_aux_dir to an absolute path
  21025. +am_aux_dir=`cd $ac_aux_dir && pwd`
  21026. +
  21027. +if test x"${MISSING+set}" != xset; then
  21028. + case $am_aux_dir in
  21029. + *\ * | *\ *)
  21030. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  21031. + *)
  21032. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  21033. + esac
  21034. +fi
  21035. +# Use eval to expand $SHELL
  21036. +if eval "$MISSING --run true"; then
  21037. + am_missing_run="$MISSING --run "
  21038. +else
  21039. + am_missing_run=
  21040. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  21041. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  21042. +fi
  21043. +
  21044. +if test x"${install_sh}" != xset; then
  21045. + case $am_aux_dir in
  21046. + *\ * | *\ *)
  21047. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  21048. + *)
  21049. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  21050. + esac
  21051. +fi
  21052. +
  21053. +# Installed binaries are usually stripped using `strip' when the user
  21054. +# run `make install-strip'. However `strip' might not be the right
  21055. +# tool to use in cross-compilation environments, therefore Automake
  21056. +# will honor the `STRIP' environment variable to overrule this program.
  21057. +if test "$cross_compiling" != no; then
  21058. + if test -n "$ac_tool_prefix"; then
  21059. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  21060. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  21061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21062. +$as_echo_n "checking for $ac_word... " >&6; }
  21063. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  21064. + $as_echo_n "(cached) " >&6
  21065. +else
  21066. + if test -n "$STRIP"; then
  21067. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  21068. +else
  21069. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21070. +for as_dir in $PATH
  21071. +do
  21072. + IFS=$as_save_IFS
  21073. + test -z "$as_dir" && as_dir=.
  21074. + for ac_exec_ext in '' $ac_executable_extensions; do
  21075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21076. - ac_cv_prog_ac_ct_STRIP="strip"
  21077. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21078. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  21079. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21080. break 2
  21081. fi
  21082. done
  21083. + done
  21084. +IFS=$as_save_IFS
  21085. +
  21086. +fi
  21087. +fi
  21088. +STRIP=$ac_cv_prog_STRIP
  21089. +if test -n "$STRIP"; then
  21090. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  21091. +$as_echo "$STRIP" >&6; }
  21092. +else
  21093. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21094. +$as_echo "no" >&6; }
  21095. +fi
  21096. +
  21097. +
  21098. +fi
  21099. +if test -z "$ac_cv_prog_STRIP"; then
  21100. + ac_ct_STRIP=$STRIP
  21101. + # Extract the first word of "strip", so it can be a program name with args.
  21102. +set dummy strip; ac_word=$2
  21103. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21104. +$as_echo_n "checking for $ac_word... " >&6; }
  21105. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  21106. + $as_echo_n "(cached) " >&6
  21107. +else
  21108. + if test -n "$ac_ct_STRIP"; then
  21109. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  21110. +else
  21111. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21112. +for as_dir in $PATH
  21113. +do
  21114. + IFS=$as_save_IFS
  21115. + test -z "$as_dir" && as_dir=.
  21116. + for ac_exec_ext in '' $ac_executable_extensions; do
  21117. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21118. + ac_cv_prog_ac_ct_STRIP="strip"
  21119. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21120. + break 2
  21121. + fi
  21122. done
  21123. + done
  21124. IFS=$as_save_IFS
  21125. fi
  21126. fi
  21127. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  21128. if test -n "$ac_ct_STRIP"; then
  21129. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  21130. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  21131. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  21132. +$as_echo "$ac_ct_STRIP" >&6; }
  21133. else
  21134. - { echo "$as_me:$LINENO: result: no" >&5
  21135. -echo "${ECHO_T}no" >&6; }
  21136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21137. +$as_echo "no" >&6; }
  21138. fi
  21139. if test "x$ac_ct_STRIP" = x; then
  21140. @@ -2596,12 +3538,8 @@
  21141. else
  21142. case $cross_compiling:$ac_tool_warned in
  21143. yes:)
  21144. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21145. -whose name does not start with the host triplet. If you think this
  21146. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21147. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21148. -whose name does not start with the host triplet. If you think this
  21149. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21151. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21152. ac_tool_warned=yes ;;
  21153. esac
  21154. STRIP=$ac_ct_STRIP
  21155. @@ -2611,48 +3549,232 @@
  21156. fi
  21157. fi
  21158. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  21159. -
  21160. -# We need awk for the "check" target. The system "awk" is bad on
  21161. -# some platforms.
  21162. -
  21163. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  21164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  21165. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  21166. +if test -z "$MKDIR_P"; then
  21167. + if test "${ac_cv_path_mkdir+set}" = set; then :
  21168. + $as_echo_n "(cached) " >&6
  21169. +else
  21170. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21171. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  21172. +do
  21173. + IFS=$as_save_IFS
  21174. + test -z "$as_dir" && as_dir=.
  21175. + for ac_prog in mkdir gmkdir; do
  21176. + for ac_exec_ext in '' $ac_executable_extensions; do
  21177. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  21178. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  21179. + 'mkdir (GNU coreutils) '* | \
  21180. + 'mkdir (coreutils) '* | \
  21181. + 'mkdir (fileutils) '4.1*)
  21182. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  21183. + break 3;;
  21184. + esac
  21185. + done
  21186. + done
  21187. + done
  21188. +IFS=$as_save_IFS
  21189. -ac_config_headers="$ac_config_headers config.h:config.in"
  21190. +fi
  21191. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  21192. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  21193. - # Check whether --enable-maintainer-mode was given.
  21194. -if test "${enable_maintainer_mode+set}" = set; then
  21195. - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  21196. -else
  21197. - USE_MAINTAINER_MODE=no
  21198. + test -d ./--version && rmdir ./--version
  21199. + if test "${ac_cv_path_mkdir+set}" = set; then
  21200. + MKDIR_P="$ac_cv_path_mkdir -p"
  21201. + else
  21202. + # As a last resort, use the slow shell script. Don't cache a
  21203. + # value for MKDIR_P within a source directory, because that will
  21204. + # break other packages using the cache if that directory is
  21205. + # removed, or if the value is a relative name.
  21206. + MKDIR_P="$ac_install_sh -d"
  21207. + fi
  21208. fi
  21209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  21210. +$as_echo "$MKDIR_P" >&6; }
  21211. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  21212. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  21213. +mkdir_p="$MKDIR_P"
  21214. +case $mkdir_p in
  21215. + [\\/$]* | ?:[\\/]*) ;;
  21216. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  21217. +esac
  21218. +for ac_prog in gawk mawk nawk awk
  21219. +do
  21220. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21221. +set dummy $ac_prog; ac_word=$2
  21222. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21223. +$as_echo_n "checking for $ac_word... " >&6; }
  21224. +if test "${ac_cv_prog_AWK+set}" = set; then :
  21225. + $as_echo_n "(cached) " >&6
  21226. +else
  21227. + if test -n "$AWK"; then
  21228. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  21229. +else
  21230. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21231. +for as_dir in $PATH
  21232. +do
  21233. + IFS=$as_save_IFS
  21234. + test -z "$as_dir" && as_dir=.
  21235. + for ac_exec_ext in '' $ac_executable_extensions; do
  21236. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21237. + ac_cv_prog_AWK="$ac_prog"
  21238. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21239. + break 2
  21240. + fi
  21241. +done
  21242. + done
  21243. +IFS=$as_save_IFS
  21244. -if test $USE_MAINTAINER_MODE = yes; then
  21245. - MAINTAINER_MODE_TRUE=
  21246. - MAINTAINER_MODE_FALSE='#'
  21247. +fi
  21248. +fi
  21249. +AWK=$ac_cv_prog_AWK
  21250. +if test -n "$AWK"; then
  21251. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  21252. +$as_echo "$AWK" >&6; }
  21253. else
  21254. - MAINTAINER_MODE_TRUE='#'
  21255. - MAINTAINER_MODE_FALSE=
  21256. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21257. +$as_echo "no" >&6; }
  21258. fi
  21259. - MAINT=$MAINTAINER_MODE_TRUE
  21260. -
  21261. +
  21262. + test -n "$AWK" && break
  21263. +done
  21264. +
  21265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  21266. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  21267. +set x ${MAKE-make}
  21268. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  21269. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  21270. + $as_echo_n "(cached) " >&6
  21271. +else
  21272. + cat >conftest.make <<\_ACEOF
  21273. +SHELL = /bin/sh
  21274. +all:
  21275. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  21276. +_ACEOF
  21277. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  21278. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  21279. + *@@@%%%=?*=@@@%%%*)
  21280. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  21281. + *)
  21282. + eval ac_cv_prog_make_${ac_make}_set=no;;
  21283. +esac
  21284. +rm -f conftest.make
  21285. +fi
  21286. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  21287. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21288. +$as_echo "yes" >&6; }
  21289. + SET_MAKE=
  21290. +else
  21291. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21292. +$as_echo "no" >&6; }
  21293. + SET_MAKE="MAKE=${MAKE-make}"
  21294. +fi
  21295. +
  21296. +rm -rf .tst 2>/dev/null
  21297. +mkdir .tst 2>/dev/null
  21298. +if test -d .tst; then
  21299. + am__leading_dot=.
  21300. +else
  21301. + am__leading_dot=_
  21302. +fi
  21303. +rmdir .tst 2>/dev/null
  21304. +
  21305. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  21306. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  21307. + # is not polluted with repeated "-I."
  21308. + am__isrc=' -I$(srcdir)'
  21309. + # test to see if srcdir already configured
  21310. + if test -f $srcdir/config.status; then
  21311. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  21312. + fi
  21313. +fi
  21314. +
  21315. +# test whether we have cygpath
  21316. +if test -z "$CYGPATH_W"; then
  21317. + if (cygpath --version) >/dev/null 2>/dev/null; then
  21318. + CYGPATH_W='cygpath -w'
  21319. + else
  21320. + CYGPATH_W=echo
  21321. + fi
  21322. +fi
  21323. +
  21324. +
  21325. +# Define the identity of the package.
  21326. + PACKAGE='gmp'
  21327. + VERSION='4.3.2'
  21328. +
  21329. +
  21330. +cat >>confdefs.h <<_ACEOF
  21331. +#define PACKAGE "$PACKAGE"
  21332. +_ACEOF
  21333. +
  21334. +
  21335. +cat >>confdefs.h <<_ACEOF
  21336. +#define VERSION "$VERSION"
  21337. +_ACEOF
  21338. +
  21339. +# Some tools Automake needs.
  21340. +
  21341. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  21342. +
  21343. +
  21344. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  21345. +
  21346. +
  21347. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  21348. +
  21349. +
  21350. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  21351. +
  21352. +
  21353. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  21354. +
  21355. +# We need awk for the "check" target. The system "awk" is bad on
  21356. +# some platforms.
  21357. +# Always define AMTAR for backward compatibility.
  21358. +
  21359. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  21360. +
  21361. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  21362. +
  21363. +
  21364. +
  21365. +
  21366. +
  21367. +ac_config_headers="$ac_config_headers config.h:config.in"
  21368. +
  21369. +
  21370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  21371. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  21372. + # Check whether --enable-maintainer-mode was given.
  21373. +if test "${enable_maintainer_mode+set}" = set; then :
  21374. + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  21375. +else
  21376. + USE_MAINTAINER_MODE=no
  21377. +fi
  21378. +
  21379. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  21380. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  21381. + if test $USE_MAINTAINER_MODE = yes; then
  21382. + MAINTAINER_MODE_TRUE=
  21383. + MAINTAINER_MODE_FALSE='#'
  21384. +else
  21385. + MAINTAINER_MODE_TRUE='#'
  21386. + MAINTAINER_MODE_FALSE=
  21387. +fi
  21388. +
  21389. + MAINT=$MAINTAINER_MODE_TRUE
  21390. +
  21391. # Check whether --enable-assert was given.
  21392. -if test "${enable_assert+set}" = set; then
  21393. +if test "${enable_assert+set}" = set; then :
  21394. enableval=$enable_assert; case $enableval in
  21395. yes|no) ;;
  21396. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-assert, need yes or no" >&5
  21397. -echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
  21398. - { (exit 1); exit 1; }; } ;;
  21399. +*) as_fn_error "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
  21400. esac
  21401. else
  21402. enable_assert=no
  21403. @@ -2661,9 +3783,7 @@
  21404. if test "$enable_assert" = "yes"; then
  21405. -cat >>confdefs.h <<\_ACEOF
  21406. -#define WANT_ASSERT 1
  21407. -_ACEOF
  21408. +$as_echo "#define WANT_ASSERT 1" >>confdefs.h
  21409. want_assert_01=1
  21410. else
  21411. @@ -2675,17 +3795,14 @@
  21412. # Check whether --enable-alloca was given.
  21413. -if test "${enable_alloca+set}" = set; then
  21414. +if test "${enable_alloca+set}" = set; then :
  21415. enableval=$enable_alloca; case $enableval in
  21416. alloca|malloc-reentrant|malloc-notreentrant) ;;
  21417. yes|no|reentrant|notreentrant) ;;
  21418. debug) ;;
  21419. *)
  21420. - { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-alloca, need one of:
  21421. -yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
  21422. -echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
  21423. -yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
  21424. - { (exit 1); exit 1; }; } ;;
  21425. + as_fn_error "bad value $enableval for --enable-alloca, need one of:
  21426. +yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
  21427. esac
  21428. else
  21429. enable_alloca=reentrant
  21430. @@ -2706,12 +3823,10 @@
  21431. # wanted.
  21432. #
  21433. # Check whether --enable-cxx was given.
  21434. -if test "${enable_cxx+set}" = set; then
  21435. +if test "${enable_cxx+set}" = set; then :
  21436. enableval=$enable_cxx; case $enableval in
  21437. yes|no|detect) ;;
  21438. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
  21439. -echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
  21440. - { (exit 1); exit 1; }; } ;;
  21441. +*) as_fn_error "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
  21442. esac
  21443. else
  21444. enable_cxx=no
  21445. @@ -2720,12 +3835,10 @@
  21446. # Check whether --enable-fft was given.
  21447. -if test "${enable_fft+set}" = set; then
  21448. +if test "${enable_fft+set}" = set; then :
  21449. enableval=$enable_fft; case $enableval in
  21450. yes|no) ;;
  21451. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fft, need yes or no" >&5
  21452. -echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
  21453. - { (exit 1); exit 1; }; } ;;
  21454. +*) as_fn_error "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
  21455. esac
  21456. else
  21457. enable_fft=yes
  21458. @@ -2734,28 +3847,22 @@
  21459. if test "$enable_fft" = "yes"; then
  21460. -cat >>confdefs.h <<\_ACEOF
  21461. -#define WANT_FFT 1
  21462. -_ACEOF
  21463. +$as_echo "#define WANT_FFT 1" >>confdefs.h
  21464. fi
  21465. # Check whether --enable-mpbsd was given.
  21466. -if test "${enable_mpbsd+set}" = set; then
  21467. +if test "${enable_mpbsd+set}" = set; then :
  21468. enableval=$enable_mpbsd; case $enableval in
  21469. yes|no) ;;
  21470. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
  21471. -echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
  21472. - { (exit 1); exit 1; }; } ;;
  21473. +*) as_fn_error "bad value $enableval for --enable-mpbsd, need yes or no" "$LINENO" 5 ;;
  21474. esac
  21475. else
  21476. enable_mpbsd=no
  21477. fi
  21478. -
  21479. -
  21480. -if test "$enable_mpbsd" = "yes"; then
  21481. + if test "$enable_mpbsd" = "yes"; then
  21482. WANT_MPBSD_TRUE=
  21483. WANT_MPBSD_FALSE='#'
  21484. else
  21485. @@ -2766,17 +3873,13 @@
  21486. # Check whether --enable-nails was given.
  21487. -if test "${enable_nails+set}" = set; then
  21488. +if test "${enable_nails+set}" = set; then :
  21489. enableval=$enable_nails; case $enableval in
  21490. yes|no|[02468]|[0-9][02468]) ;;
  21491. *[13579])
  21492. - { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&5
  21493. -echo "$as_me: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&2;}
  21494. - { (exit 1); exit 1; }; } ;;
  21495. + as_fn_error "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
  21496. *)
  21497. - { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
  21498. -echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
  21499. - { (exit 1); exit 1; }; } ;;
  21500. + as_fn_error "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
  21501. esac
  21502. else
  21503. enable_nails=no
  21504. @@ -2792,12 +3895,10 @@
  21505. # Check whether --enable-profiling was given.
  21506. -if test "${enable_profiling+set}" = set; then
  21507. +if test "${enable_profiling+set}" = set; then :
  21508. enableval=$enable_profiling; case $enableval in
  21509. no|prof|gprof|instrument) ;;
  21510. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&5
  21511. -echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&2;}
  21512. - { (exit 1); exit 1; }; } ;;
  21513. +*) as_fn_error "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
  21514. esac
  21515. else
  21516. enable_profiling=no
  21517. @@ -2807,23 +3908,17 @@
  21518. case $enable_profiling in
  21519. prof)
  21520. -cat >>confdefs.h <<\_ACEOF
  21521. -#define WANT_PROFILING_PROF 1
  21522. -_ACEOF
  21523. +$as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
  21524. ;;
  21525. gprof)
  21526. -cat >>confdefs.h <<\_ACEOF
  21527. -#define WANT_PROFILING_GPROF 1
  21528. -_ACEOF
  21529. +$as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
  21530. ;;
  21531. instrument)
  21532. -cat >>confdefs.h <<\_ACEOF
  21533. -#define WANT_PROFILING_INSTRUMENT 1
  21534. -_ACEOF
  21535. +$as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
  21536. ;;
  21537. esac
  21538. @@ -2842,12 +3937,10 @@
  21539. # Check whether --with-readline was given.
  21540. -if test "${with_readline+set}" = set; then
  21541. +if test "${with_readline+set}" = set; then :
  21542. withval=$with_readline; case $withval in
  21543. yes|no|detect) ;;
  21544. -*) { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline, need yes/no/detect" >&5
  21545. -echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
  21546. - { (exit 1); exit 1; }; } ;;
  21547. +*) as_fn_error "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
  21548. esac
  21549. else
  21550. with_readline=detect
  21551. @@ -2856,12 +3949,10 @@
  21552. # Check whether --enable-fat was given.
  21553. -if test "${enable_fat+set}" = set; then
  21554. +if test "${enable_fat+set}" = set; then :
  21555. enableval=$enable_fat; case $enableval in
  21556. yes|no) ;;
  21557. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fat, need yes or no" >&5
  21558. -echo "$as_me: error: bad value $enableval for --enable-fat, need yes or no" >&2;}
  21559. - { (exit 1); exit 1; }; } ;;
  21560. +*) as_fn_error "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
  21561. esac
  21562. else
  21563. enable_fat=no
  21564. @@ -2870,12 +3961,10 @@
  21565. # Check whether --enable-minithres was given.
  21566. -if test "${enable_minithres+set}" = set; then
  21567. +if test "${enable_minithres+set}" = set; then :
  21568. enableval=$enable_minithres; case $enableval in
  21569. yes|no) ;;
  21570. -*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-minithres, need yes or no" >&5
  21571. -echo "$as_me: error: bad value $enableval for --enable-minithres, need yes or no" >&2;}
  21572. - { (exit 1); exit 1; }; } ;;
  21573. +*) as_fn_error "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
  21574. esac
  21575. else
  21576. enable_minithres=no
  21577. @@ -2897,7 +3986,6 @@
  21578. -
  21579. # Table of compilers, options, and mpn paths. This code has various related
  21580. # purposes
  21581. #
  21582. @@ -3028,9 +4116,7 @@
  21583. alpha*-*-*)
  21584. - cat >>confdefs.h <<\_ACEOF
  21585. -#define HAVE_HOST_CPU_FAMILY_alpha 1
  21586. -_ACEOF
  21587. + $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
  21588. case $host_cpu in
  21589. alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;;
  21590. @@ -3368,9 +4454,7 @@
  21591. # Motorola 68k
  21592. #
  21593. m68k-*-* | m68[0-9][0-9][0-9]-*-*)
  21594. - cat >>confdefs.h <<\_ACEOF
  21595. -#define HAVE_HOST_CPU_FAMILY_m68k 1
  21596. -_ACEOF
  21597. + $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
  21598. echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
  21599. @@ -3486,9 +4570,7 @@
  21600. # "-arch ppc" or some such, but that's already the default.)
  21601. #
  21602. powerpc*-*-* | power[3-9]-*-*)
  21603. - cat >>confdefs.h <<\_ACEOF
  21604. -#define HAVE_HOST_CPU_FAMILY_powerpc 1
  21605. -_ACEOF
  21606. + $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
  21607. HAVE_HOST_CPU_FAMILY_powerpc=1
  21608. abilist="32"
  21609. @@ -3683,9 +4765,7 @@
  21610. # POWER
  21611. power-*-* | power[12]-*-* | power2sc-*-*)
  21612. - cat >>confdefs.h <<\_ACEOF
  21613. -#define HAVE_HOST_CPU_FAMILY_power 1
  21614. -_ACEOF
  21615. + $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
  21616. HAVE_HOST_CPU_FAMILY_power=1
  21617. cclist="gcc"
  21618. @@ -4229,9 +5309,7 @@
  21619. if test $abi = "$ABI"; then found=yes; break; fi
  21620. done
  21621. if test $found = no; then
  21622. - { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
  21623. -echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
  21624. - { (exit 1); exit 1; }; }
  21625. + as_fn_error "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
  21626. fi
  21627. abilist="$ABI"
  21628. fi
  21629. @@ -4321,16 +5399,16 @@
  21630. #endif
  21631. EOF
  21632. gmp_compile="$cc -c conftest.c >&5"
  21633. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21634. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21635. (eval $gmp_compile) 2>&5
  21636. ac_status=$?
  21637. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21638. - (exit $ac_status); }; then
  21639. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21640. + test $ac_status = 0; }; then
  21641. rm -f conftest*
  21642. - { echo "$as_me:$LINENO: checking whether $cc is gcc" >&5
  21643. -echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6; }
  21644. - { echo "$as_me:$LINENO: result: yes" >&5
  21645. -echo "${ECHO_T}yes" >&6; }
  21646. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
  21647. +$as_echo_n "checking whether $cc is gcc... " >&6; }
  21648. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21649. +$as_echo "yes" >&6; }
  21650. ccbase=gcc
  21651. else
  21652. rm -f conftest*
  21653. @@ -4343,15 +5421,15 @@
  21654. # then change $ccbase and make the default xlc flags available.
  21655. if test $ccbase != xlc; then
  21656. gmp_command="$cc 2>&1 | grep xlc >/dev/null"
  21657. -if { (eval echo "$as_me:$LINENO: \"$gmp_command\"") >&5
  21658. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
  21659. (eval $gmp_command) 2>&5
  21660. ac_status=$?
  21661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21662. - (exit $ac_status); }; then
  21663. - { echo "$as_me:$LINENO: checking whether $cc is xlc" >&5
  21664. -echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6; }
  21665. - { echo "$as_me:$LINENO: result: yes" >&5
  21666. -echo "${ECHO_T}yes" >&6; }
  21667. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21668. + test $ac_status = 0; }; then
  21669. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
  21670. +$as_echo_n "checking whether $cc is xlc... " >&6; }
  21671. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21672. +$as_echo "yes" >&6; }
  21673. ccbase=xlc
  21674. else
  21675. :
  21676. @@ -4400,8 +5478,8 @@
  21677. instrument) cflags="$cflags -finstrument-functions" ;;
  21678. esac
  21679. - { echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags" >&5
  21680. -echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6; }
  21681. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
  21682. +$as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
  21683. gmp_prog_cc_works=yes
  21684. # first see a simple "main()" works, then go on to other checks
  21685. @@ -4414,19 +5492,19 @@
  21686. EOF
  21687. echo "Test compile: " >&5
  21688. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21689. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21690. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21691. (eval $gmp_compile) 2>&5
  21692. ac_status=$?
  21693. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21694. - (exit $ac_status); }; then
  21695. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21696. + test $ac_status = 0; }; then
  21697. cc_works_part=yes
  21698. if test "$cross_compiling" = no; then
  21699. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21700. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21701. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21702. (eval $ac_try) 2>&5
  21703. ac_status=$?
  21704. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21705. - (exit $ac_status); }; }; then :;
  21706. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21707. + test $ac_status = 0; }; }; then :;
  21708. else
  21709. cc_works_part=norun
  21710. fi
  21711. @@ -4468,19 +5546,19 @@
  21712. EOF
  21713. echo "Test compile: function pointer return" >&5
  21714. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21715. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21716. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21717. (eval $gmp_compile) 2>&5
  21718. ac_status=$?
  21719. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21720. - (exit $ac_status); }; then
  21721. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21722. + test $ac_status = 0; }; then
  21723. cc_works_part=yes
  21724. if test "$cross_compiling" = no; then
  21725. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21726. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21727. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21728. (eval $ac_try) 2>&5
  21729. ac_status=$?
  21730. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21731. - (exit $ac_status); }; }; then :;
  21732. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21733. + test $ac_status = 0; }; }; then :;
  21734. else
  21735. cc_works_part=norun
  21736. fi
  21737. @@ -4524,19 +5602,19 @@
  21738. EOF
  21739. echo "Test compile: cmov instruction" >&5
  21740. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21741. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21742. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21743. (eval $gmp_compile) 2>&5
  21744. ac_status=$?
  21745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21746. - (exit $ac_status); }; then
  21747. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21748. + test $ac_status = 0; }; then
  21749. cc_works_part=yes
  21750. if test "$cross_compiling" = no; then
  21751. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21752. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21753. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21754. (eval $ac_try) 2>&5
  21755. ac_status=$?
  21756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21757. - (exit $ac_status); }; }; then :;
  21758. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21759. + test $ac_status = 0; }; }; then :;
  21760. else
  21761. cc_works_part=norun
  21762. fi
  21763. @@ -4581,19 +5659,19 @@
  21764. EOF
  21765. echo "Test compile: double -> ulong conversion" >&5
  21766. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21767. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21768. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21769. (eval $gmp_compile) 2>&5
  21770. ac_status=$?
  21771. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21772. - (exit $ac_status); }; then
  21773. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21774. + test $ac_status = 0; }; then
  21775. cc_works_part=yes
  21776. if test "$cross_compiling" = no; then
  21777. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21778. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21779. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21780. (eval $ac_try) 2>&5
  21781. ac_status=$?
  21782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21783. - (exit $ac_status); }; }; then :;
  21784. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21785. + test $ac_status = 0; }; }; then :;
  21786. else
  21787. cc_works_part=norun
  21788. fi
  21789. @@ -4636,19 +5714,19 @@
  21790. EOF
  21791. echo "Test compile: double negation" >&5
  21792. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21793. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21794. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21795. (eval $gmp_compile) 2>&5
  21796. ac_status=$?
  21797. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21798. - (exit $ac_status); }; then
  21799. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21800. + test $ac_status = 0; }; then
  21801. cc_works_part=yes
  21802. if test "$cross_compiling" = no; then
  21803. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21804. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21805. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21806. (eval $ac_try) 2>&5
  21807. ac_status=$?
  21808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21809. - (exit $ac_status); }; }; then :;
  21810. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21811. + test $ac_status = 0; }; }; then :;
  21812. else
  21813. cc_works_part=norun
  21814. fi
  21815. @@ -4692,19 +5770,19 @@
  21816. EOF
  21817. echo "Test compile: double -> float conversion" >&5
  21818. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21819. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21820. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21821. (eval $gmp_compile) 2>&5
  21822. ac_status=$?
  21823. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21824. - (exit $ac_status); }; then
  21825. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21826. + test $ac_status = 0; }; then
  21827. cc_works_part=yes
  21828. if test "$cross_compiling" = no; then
  21829. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21830. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21831. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21832. (eval $ac_try) 2>&5
  21833. ac_status=$?
  21834. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21835. - (exit $ac_status); }; }; then :;
  21836. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21837. + test $ac_status = 0; }; }; then :;
  21838. else
  21839. cc_works_part=norun
  21840. fi
  21841. @@ -4777,19 +5855,19 @@
  21842. EOF
  21843. echo "Test compile: gnupro alpha ev6 char spilling" >&5
  21844. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21845. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21846. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21847. (eval $gmp_compile) 2>&5
  21848. ac_status=$?
  21849. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21850. - (exit $ac_status); }; then
  21851. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21852. + test $ac_status = 0; }; then
  21853. cc_works_part=yes
  21854. if test "$cross_compiling" = no; then
  21855. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21856. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21857. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21858. (eval $ac_try) 2>&5
  21859. ac_status=$?
  21860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21861. - (exit $ac_status); }; }; then :;
  21862. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21863. + test $ac_status = 0; }; }; then :;
  21864. else
  21865. cc_works_part=norun
  21866. fi
  21867. @@ -4828,19 +5906,19 @@
  21868. EOF
  21869. echo "Test compile: __builtin_alloca availability" >&5
  21870. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21871. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21872. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21873. (eval $gmp_compile) 2>&5
  21874. ac_status=$?
  21875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21876. - (exit $ac_status); }; then
  21877. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21878. + test $ac_status = 0; }; then
  21879. cc_works_part=yes
  21880. if test "$cross_compiling" = no; then
  21881. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21882. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21883. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21884. (eval $ac_try) 2>&5
  21885. ac_status=$?
  21886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21887. - (exit $ac_status); }; }; then :;
  21888. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21889. + test $ac_status = 0; }; }; then :;
  21890. else
  21891. cc_works_part=norun
  21892. fi
  21893. @@ -4874,19 +5952,19 @@
  21894. EOF
  21895. echo "Test compile: alloca array" >&5
  21896. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21897. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21898. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21899. (eval $gmp_compile) 2>&5
  21900. ac_status=$?
  21901. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21902. - (exit $ac_status); }; then
  21903. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21904. + test $ac_status = 0; }; then
  21905. cc_works_part=yes
  21906. if test "$cross_compiling" = no; then
  21907. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21908. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21909. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21910. (eval $ac_try) 2>&5
  21911. ac_status=$?
  21912. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21913. - (exit $ac_status); }; }; then :;
  21914. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21915. + test $ac_status = 0; }; }; then :;
  21916. else
  21917. cc_works_part=norun
  21918. fi
  21919. @@ -4952,19 +6030,19 @@
  21920. EOF
  21921. echo "Test compile: abs int -> double conversion" >&5
  21922. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21923. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21924. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21925. (eval $gmp_compile) 2>&5
  21926. ac_status=$?
  21927. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21928. - (exit $ac_status); }; then
  21929. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21930. + test $ac_status = 0; }; then
  21931. cc_works_part=yes
  21932. if test "$cross_compiling" = no; then
  21933. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21934. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21935. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21936. (eval $ac_try) 2>&5
  21937. ac_status=$?
  21938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21939. - (exit $ac_status); }; }; then :;
  21940. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21941. + test $ac_status = 0; }; }; then :;
  21942. else
  21943. cc_works_part=norun
  21944. fi
  21945. @@ -5016,19 +6094,19 @@
  21946. EOF
  21947. echo "Test compile: long long reliability test 1" >&5
  21948. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21949. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21950. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21951. (eval $gmp_compile) 2>&5
  21952. ac_status=$?
  21953. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21954. - (exit $ac_status); }; then
  21955. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21956. + test $ac_status = 0; }; then
  21957. cc_works_part=yes
  21958. if test "$cross_compiling" = no; then
  21959. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21960. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21961. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21962. (eval $ac_try) 2>&5
  21963. ac_status=$?
  21964. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21965. - (exit $ac_status); }; }; then :;
  21966. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21967. + test $ac_status = 0; }; }; then :;
  21968. else
  21969. cc_works_part=norun
  21970. fi
  21971. @@ -5076,19 +6154,19 @@
  21972. EOF
  21973. echo "Test compile: long long reliability test 2" >&5
  21974. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  21975. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  21976. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  21977. (eval $gmp_compile) 2>&5
  21978. ac_status=$?
  21979. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21980. - (exit $ac_status); }; then
  21981. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21982. + test $ac_status = 0; }; then
  21983. cc_works_part=yes
  21984. if test "$cross_compiling" = no; then
  21985. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  21986. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21987. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  21988. (eval $ac_try) 2>&5
  21989. ac_status=$?
  21990. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21991. - (exit $ac_status); }; }; then :;
  21992. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21993. + test $ac_status = 0; }; }; then :;
  21994. else
  21995. cc_works_part=norun
  21996. fi
  21997. @@ -5175,19 +6253,19 @@
  21998. EOF
  21999. echo "Test compile: mpn_lshift_com optimization" >&5
  22000. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  22001. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22002. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22003. (eval $gmp_compile) 2>&5
  22004. ac_status=$?
  22005. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22006. - (exit $ac_status); }; then
  22007. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22008. + test $ac_status = 0; }; then
  22009. cc_works_part=yes
  22010. if test "$cross_compiling" = no; then
  22011. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22012. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22013. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22014. (eval $ac_try) 2>&5
  22015. ac_status=$?
  22016. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22017. - (exit $ac_status); }; }; then :;
  22018. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22019. + test $ac_status = 0; }; }; then :;
  22020. else
  22021. cc_works_part=norun
  22022. fi
  22023. @@ -5283,19 +6361,19 @@
  22024. EOF
  22025. echo "Test compile: mpn_lshift_com optimization 2" >&5
  22026. gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  22027. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22028. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22029. (eval $gmp_compile) 2>&5
  22030. ac_status=$?
  22031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22032. - (exit $ac_status); }; then
  22033. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22034. + test $ac_status = 0; }; then
  22035. cc_works_part=yes
  22036. if test "$cross_compiling" = no; then
  22037. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22038. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22039. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22040. (eval $ac_try) 2>&5
  22041. ac_status=$?
  22042. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22043. - (exit $ac_status); }; }; then :;
  22044. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22045. + test $ac_status = 0; }; }; then :;
  22046. else
  22047. cc_works_part=norun
  22048. fi
  22049. @@ -5342,11 +6420,11 @@
  22050. EOF
  22051. tmp_got_emitted=no
  22052. gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
  22053. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22054. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22055. (eval $gmp_compile) 2>&5
  22056. ac_status=$?
  22057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22058. - (exit $ac_status); }; then
  22059. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22060. + test $ac_status = 0; }; then
  22061. if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
  22062. tmp_got_emitted=yes
  22063. fi
  22064. @@ -5416,11 +6494,11 @@
  22065. EOF
  22066. tmp_got_good=yes
  22067. gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
  22068. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22069. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22070. (eval $gmp_compile) 2>&5
  22071. ac_status=$?
  22072. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22073. - (exit $ac_status); }; then
  22074. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22075. + test $ac_status = 0; }; then
  22076. tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
  22077. fi
  22078. rm -f conftest.*
  22079. @@ -5440,8 +6518,8 @@
  22080. esac
  22081. fi
  22082. -{ echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
  22083. -echo "${ECHO_T}$gmp_prog_cc_works" >&6; }
  22084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  22085. +$as_echo "$gmp_prog_cc_works" >&6; }
  22086. case $gmp_prog_cc_works in
  22087. yes)
  22088. @@ -5457,8 +6535,8 @@
  22089. eval limb_chosen=\"\$limb$abi1\"
  22090. test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
  22091. if test "$limb_chosen" = longlong; then
  22092. - { echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags has long long" >&5
  22093. -echo $ECHO_N "checking compiler $cc $cflags $cppflags has long long... $ECHO_C" >&6; }
  22094. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
  22095. +$as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
  22096. cat >conftest.c <<EOF
  22097. long long foo;
  22098. long long bar () { return foo; }
  22099. @@ -5466,19 +6544,19 @@
  22100. EOF
  22101. gmp_prog_cc_works=no
  22102. gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
  22103. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22104. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22105. (eval $gmp_compile) 2>&5
  22106. ac_status=$?
  22107. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22108. - (exit $ac_status); }; then
  22109. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22110. + test $ac_status = 0; }; then
  22111. gmp_prog_cc_works=yes
  22112. else
  22113. echo "failed program was:" >&5
  22114. cat conftest.c >&5
  22115. fi
  22116. rm -f conftest* a.out b.out a.exe a_out.exe
  22117. -{ echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
  22118. -echo "${ECHO_T}$gmp_prog_cc_works" >&6; }
  22119. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  22120. +$as_echo "$gmp_prog_cc_works" >&6; }
  22121. if test $gmp_prog_cc_works = yes; then
  22122. :
  22123. else
  22124. @@ -5496,8 +6574,8 @@
  22125. testlist_pass=yes
  22126. for tst in $testlist; do
  22127. case $tst in
  22128. - hpc-hppa-2-0) { echo "$as_me:$LINENO: checking whether HP compiler $cc is good for 64-bits" >&5
  22129. -echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6; }
  22130. + hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
  22131. +$as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
  22132. # Bad compiler output:
  22133. # ccom: HP92453-01 G.10.32.05 HP C Compiler
  22134. # Good compiler output:
  22135. @@ -5540,16 +6618,16 @@
  22136. gmp_hpc_64bit=$gmp_compare_ge
  22137. fi
  22138. -{ echo "$as_me:$LINENO: result: $gmp_hpc_64bit" >&5
  22139. -echo "${ECHO_T}$gmp_hpc_64bit" >&6; }
  22140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
  22141. +$as_echo "$gmp_hpc_64bit" >&6; }
  22142. if test $gmp_hpc_64bit = yes; then
  22143. :
  22144. else
  22145. testlist_pass=no
  22146. fi
  22147. ;;
  22148. - gcc-arm-umodsi) { echo "$as_me:$LINENO: checking whether ARM gcc unsigned division works" >&5
  22149. -echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6; }
  22150. + gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
  22151. +$as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
  22152. tmp_version=`$cc --version`
  22153. echo "$tmp_version" >&5
  22154. case $tmp_version in
  22155. @@ -5560,11 +6638,11 @@
  22156. :
  22157. gmp_gcc_arm_umodsi_result=yes ;;
  22158. esac
  22159. -{ echo "$as_me:$LINENO: result: $gmp_gcc_arm_umodsi_result" >&5
  22160. -echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6; }
  22161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
  22162. +$as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
  22163. ;;
  22164. - gcc-mips-o32) { echo "$as_me:$LINENO: checking whether gcc supports o32" >&5
  22165. -echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6; }
  22166. + gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
  22167. +$as_echo_n "checking whether gcc supports o32... " >&6; }
  22168. echo 'int x;' >conftest.c
  22169. echo "$cc -mabi=32 -c conftest.c" >&5
  22170. if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
  22171. @@ -5578,34 +6656,34 @@
  22172. fi
  22173. fi
  22174. rm -f conftest.*
  22175. -{ echo "$as_me:$LINENO: result: $result" >&5
  22176. -echo "${ECHO_T}$result" >&6; }
  22177. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22178. +$as_echo "$result" >&6; }
  22179. if test $result = yes; then
  22180. :
  22181. else
  22182. testlist_pass=no
  22183. fi
  22184. ;;
  22185. - hppa-level-2.0) { echo "$as_me:$LINENO: checking $cc $cflags assembler knows hppa 2.0" >&5
  22186. -echo $ECHO_N "checking $cc $cflags assembler knows hppa 2.0... $ECHO_C" >&6; }
  22187. + hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
  22188. +$as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
  22189. result=no
  22190. cat >conftest.s <<EOF
  22191. .level 2.0
  22192. EOF
  22193. gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
  22194. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22195. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22196. (eval $gmp_compile) 2>&5
  22197. ac_status=$?
  22198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22199. - (exit $ac_status); }; then
  22200. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22201. + test $ac_status = 0; }; then
  22202. result=yes
  22203. else
  22204. echo "failed program was" >&5
  22205. cat conftest.s >&5
  22206. fi
  22207. rm -f conftest*
  22208. -{ echo "$as_me:$LINENO: result: $result" >&5
  22209. -echo "${ECHO_T}$result" >&6; }
  22210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22211. +$as_echo "$result" >&6; }
  22212. if test "$result" = yes; then
  22213. :
  22214. else
  22215. @@ -5615,8 +6693,8 @@
  22216. sizeof*) echo "configure: testlist $tst" >&5
  22217. gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
  22218. gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
  22219. -{ echo "$as_me:$LINENO: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
  22220. -echo $ECHO_N "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... $ECHO_C" >&6; }
  22221. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
  22222. +$as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
  22223. cat >conftest.c <<EOF
  22224. int
  22225. main ()
  22226. @@ -5628,16 +6706,16 @@
  22227. EOF
  22228. gmp_c_testlist_sizeof=no
  22229. gmp_compile="$cc $cflags -c conftest.c >&5"
  22230. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22231. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22232. (eval $gmp_compile) 2>&5
  22233. ac_status=$?
  22234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22235. - (exit $ac_status); }; then
  22236. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22237. + test $ac_status = 0; }; then
  22238. gmp_c_testlist_sizeof=yes
  22239. fi
  22240. rm -f conftest*
  22241. -{ echo "$as_me:$LINENO: result: $gmp_c_testlist_sizeof" >&5
  22242. -echo "${ECHO_T}$gmp_c_testlist_sizeof" >&6; }
  22243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
  22244. +$as_echo "$gmp_c_testlist_sizeof" >&6; }
  22245. if test $gmp_c_testlist_sizeof = yes; then
  22246. :
  22247. else
  22248. @@ -5678,9 +6756,7 @@
  22249. # C on MS-DOS systems).
  22250. #
  22251. if test $found_compiler = no && test -n "$path"; then
  22252. - { { echo "$as_me:$LINENO: error: could not find a working compiler, see config.log for details" >&5
  22253. -echo "$as_me: error: could not find a working compiler, see config.log for details" >&2;}
  22254. - { (exit 1); exit 1; }; }
  22255. + as_fn_error "could not find a working compiler, see config.log for details" "$LINENO" 5
  22256. fi
  22257. @@ -5717,24 +6793,24 @@
  22258. # pentium4 case.
  22259. #
  22260. if test "$abi" = 32; then
  22261. - { echo "$as_me:$LINENO: checking whether gcc is good for sse2" >&5
  22262. -echo $ECHO_N "checking whether gcc is good for sse2... $ECHO_C" >&6; }
  22263. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
  22264. +$as_echo_n "checking whether gcc is good for sse2... " >&6; }
  22265. case `$cc $cflags $cppflags -dumpversion` in
  22266. 3.[012] | 3.[012].*) result=no ;;
  22267. *) result=yes ;;
  22268. esac
  22269. -{ echo "$as_me:$LINENO: result: $result" >&5
  22270. -echo "${ECHO_T}$result" >&6; }
  22271. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22272. +$as_echo "$result" >&6; }
  22273. if test "$result" = yes; then
  22274. :
  22275. else
  22276. continue
  22277. fi
  22278. - { echo "$as_me:$LINENO: checking whether the operating system supports XMM registers" >&5
  22279. -echo $ECHO_N "checking whether the operating system supports XMM registers... $ECHO_C" >&6; }
  22280. -if test "${gmp_cv_os_x86_xmm+set}" = set; then
  22281. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22282. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
  22283. +$as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
  22284. +if test "${gmp_cv_os_x86_xmm+set}" = set; then :
  22285. + $as_echo_n "(cached) " >&6
  22286. else
  22287. if test "$build" = "$host"; then
  22288. # remove anything that might look like compiler output to our "||" expression
  22289. @@ -5750,24 +6826,24 @@
  22290. ret
  22291. EOF
  22292. gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
  22293. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22294. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22295. (eval $gmp_compile) 2>&5
  22296. ac_status=$?
  22297. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22298. - (exit $ac_status); }; then
  22299. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22300. + test $ac_status = 0; }; then
  22301. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22302. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22303. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22304. (eval $ac_try) 2>&5
  22305. ac_status=$?
  22306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22307. - (exit $ac_status); }; }; then
  22308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22309. + test $ac_status = 0; }; }; then
  22310. gmp_cv_os_x86_xmm=yes
  22311. else
  22312. gmp_cv_os_x86_xmm=no
  22313. fi
  22314. else
  22315. - { echo "$as_me:$LINENO: WARNING: Oops, cannot compile test program" >&5
  22316. -echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
  22317. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
  22318. +$as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
  22319. fi
  22320. rm -f conftest*
  22321. fi
  22322. @@ -5784,14 +6860,14 @@
  22323. fi
  22324. fi
  22325. -{ echo "$as_me:$LINENO: result: $gmp_cv_os_x86_xmm" >&5
  22326. -echo "${ECHO_T}$gmp_cv_os_x86_xmm" >&6; }
  22327. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
  22328. +$as_echo "$gmp_cv_os_x86_xmm" >&6; }
  22329. if test "$gmp_cv_os_x86_xmm" = probably; then
  22330. - { echo "$as_me:$LINENO: WARNING: Not certain of OS support for xmm when cross compiling." >&5
  22331. -echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
  22332. - { echo "$as_me:$LINENO: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
  22333. -echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
  22334. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
  22335. +$as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
  22336. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
  22337. +$as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
  22338. fi
  22339. case $gmp_cv_os_x86_xmm in
  22340. @@ -5808,18 +6884,18 @@
  22341. -no-cpp-precomp)
  22342. # special check, avoiding a warning
  22343. if test "$ccbase" = gcc; then
  22344. - { echo "$as_me:$LINENO: checking compiler $cc $cflags -no-cpp-precomp" >&5
  22345. -echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6; }
  22346. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
  22347. +$as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
  22348. result=no
  22349. cat >conftest.c <<EOF
  22350. int main () { return 0; }
  22351. EOF
  22352. gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
  22353. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22354. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22355. (eval $gmp_compile) 2>&5
  22356. ac_status=$?
  22357. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22358. - (exit $ac_status); }; then
  22359. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22360. + test $ac_status = 0; }; then
  22361. if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
  22362. else
  22363. result=yes
  22364. @@ -5827,8 +6903,8 @@
  22365. fi
  22366. cat conftest.out >&5
  22367. rm -f conftest* a.out b.out a.exe a_out.exe
  22368. - { echo "$as_me:$LINENO: result: $result" >&5
  22369. -echo "${ECHO_T}$result" >&6; }
  22370. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22371. +$as_echo "$result" >&6; }
  22372. if test "$result" = yes; then
  22373. cflags="$cflags $flag"
  22374. break
  22375. @@ -5841,18 +6917,18 @@
  22376. -Wa,-m*)
  22377. case $host in
  22378. alpha*-*-*)
  22379. - { echo "$as_me:$LINENO: checking assembler $cc $cflags $flag" >&5
  22380. -echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6; }
  22381. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
  22382. +$as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
  22383. result=no
  22384. cat >conftest.c <<EOF
  22385. int main () {}
  22386. EOF
  22387. gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
  22388. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22389. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22390. (eval $gmp_compile) 2>&5
  22391. ac_status=$?
  22392. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22393. - (exit $ac_status); }; then
  22394. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22395. + test $ac_status = 0; }; then
  22396. if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
  22397. else
  22398. result=yes
  22399. @@ -5860,8 +6936,8 @@
  22400. fi
  22401. cat conftest.out >&5
  22402. rm -f conftest*
  22403. -{ echo "$as_me:$LINENO: result: $result" >&5
  22404. -echo "${ECHO_T}$result" >&6; }
  22405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22406. +$as_echo "$result" >&6; }
  22407. if test "$result" = yes; then
  22408. :
  22409. else
  22410. @@ -5872,33 +6948,33 @@
  22411. esac
  22412. ;;
  22413. -Wa,-oldas)
  22414. - { echo "$as_me:$LINENO: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
  22415. -echo $ECHO_N "checking for $cc $cflags $cppflags -Wa,-oldas... $ECHO_C" >&6; }
  22416. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
  22417. +$as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
  22418. result=no
  22419. cat >conftest.c <<EOF
  22420. EOF
  22421. echo "with empty conftest.c" >&5
  22422. gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
  22423. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22424. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22425. (eval $gmp_compile) 2>&5
  22426. ac_status=$?
  22427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22428. - (exit $ac_status); }; then : ;
  22429. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22430. + test $ac_status = 0; }; then : ;
  22431. else
  22432. # empty fails
  22433. gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
  22434. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22435. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22436. (eval $gmp_compile) 2>&5
  22437. ac_status=$?
  22438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22439. - (exit $ac_status); }; then
  22440. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22441. + test $ac_status = 0; }; then
  22442. # but with -Wa,-oldas it works
  22443. result=yes
  22444. fi
  22445. fi
  22446. rm -f conftest*
  22447. -{ echo "$as_me:$LINENO: result: $result" >&5
  22448. -echo "${ECHO_T}$result" >&6; }
  22449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  22450. +$as_echo "$result" >&6; }
  22451. if test "$result" = yes; then
  22452. cflags="$cflags $flag"
  22453. break
  22454. @@ -5909,8 +6985,8 @@
  22455. ;;
  22456. esac
  22457. - { echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags $flag" >&5
  22458. -echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6; }
  22459. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
  22460. +$as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
  22461. gmp_prog_cc_works=yes
  22462. # first see a simple "main()" works, then go on to other checks
  22463. @@ -5923,19 +6999,19 @@
  22464. EOF
  22465. echo "Test compile: " >&5
  22466. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22467. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22468. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22469. (eval $gmp_compile) 2>&5
  22470. ac_status=$?
  22471. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22472. - (exit $ac_status); }; then
  22473. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22474. + test $ac_status = 0; }; then
  22475. cc_works_part=yes
  22476. if test "$cross_compiling" = no; then
  22477. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22478. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22479. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22480. (eval $ac_try) 2>&5
  22481. ac_status=$?
  22482. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22483. - (exit $ac_status); }; }; then :;
  22484. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22485. + test $ac_status = 0; }; }; then :;
  22486. else
  22487. cc_works_part=norun
  22488. fi
  22489. @@ -5977,19 +7053,19 @@
  22490. EOF
  22491. echo "Test compile: function pointer return" >&5
  22492. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22493. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22494. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22495. (eval $gmp_compile) 2>&5
  22496. ac_status=$?
  22497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22498. - (exit $ac_status); }; then
  22499. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22500. + test $ac_status = 0; }; then
  22501. cc_works_part=yes
  22502. if test "$cross_compiling" = no; then
  22503. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22504. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22505. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22506. (eval $ac_try) 2>&5
  22507. ac_status=$?
  22508. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22509. - (exit $ac_status); }; }; then :;
  22510. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22511. + test $ac_status = 0; }; }; then :;
  22512. else
  22513. cc_works_part=norun
  22514. fi
  22515. @@ -6033,19 +7109,19 @@
  22516. EOF
  22517. echo "Test compile: cmov instruction" >&5
  22518. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22519. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22520. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22521. (eval $gmp_compile) 2>&5
  22522. ac_status=$?
  22523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22524. - (exit $ac_status); }; then
  22525. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22526. + test $ac_status = 0; }; then
  22527. cc_works_part=yes
  22528. if test "$cross_compiling" = no; then
  22529. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22530. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22531. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22532. (eval $ac_try) 2>&5
  22533. ac_status=$?
  22534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22535. - (exit $ac_status); }; }; then :;
  22536. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22537. + test $ac_status = 0; }; }; then :;
  22538. else
  22539. cc_works_part=norun
  22540. fi
  22541. @@ -6090,19 +7166,19 @@
  22542. EOF
  22543. echo "Test compile: double -> ulong conversion" >&5
  22544. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22545. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22546. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22547. (eval $gmp_compile) 2>&5
  22548. ac_status=$?
  22549. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22550. - (exit $ac_status); }; then
  22551. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22552. + test $ac_status = 0; }; then
  22553. cc_works_part=yes
  22554. if test "$cross_compiling" = no; then
  22555. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22556. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22557. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22558. (eval $ac_try) 2>&5
  22559. ac_status=$?
  22560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22561. - (exit $ac_status); }; }; then :;
  22562. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22563. + test $ac_status = 0; }; }; then :;
  22564. else
  22565. cc_works_part=norun
  22566. fi
  22567. @@ -6145,19 +7221,19 @@
  22568. EOF
  22569. echo "Test compile: double negation" >&5
  22570. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22571. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22572. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22573. (eval $gmp_compile) 2>&5
  22574. ac_status=$?
  22575. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22576. - (exit $ac_status); }; then
  22577. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22578. + test $ac_status = 0; }; then
  22579. cc_works_part=yes
  22580. if test "$cross_compiling" = no; then
  22581. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22582. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22583. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22584. (eval $ac_try) 2>&5
  22585. ac_status=$?
  22586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22587. - (exit $ac_status); }; }; then :;
  22588. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22589. + test $ac_status = 0; }; }; then :;
  22590. else
  22591. cc_works_part=norun
  22592. fi
  22593. @@ -6201,19 +7277,19 @@
  22594. EOF
  22595. echo "Test compile: double -> float conversion" >&5
  22596. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22597. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22598. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22599. (eval $gmp_compile) 2>&5
  22600. ac_status=$?
  22601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22602. - (exit $ac_status); }; then
  22603. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22604. + test $ac_status = 0; }; then
  22605. cc_works_part=yes
  22606. if test "$cross_compiling" = no; then
  22607. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22608. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22609. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22610. (eval $ac_try) 2>&5
  22611. ac_status=$?
  22612. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22613. - (exit $ac_status); }; }; then :;
  22614. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22615. + test $ac_status = 0; }; }; then :;
  22616. else
  22617. cc_works_part=norun
  22618. fi
  22619. @@ -6286,19 +7362,19 @@
  22620. EOF
  22621. echo "Test compile: gnupro alpha ev6 char spilling" >&5
  22622. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22623. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22624. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22625. (eval $gmp_compile) 2>&5
  22626. ac_status=$?
  22627. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22628. - (exit $ac_status); }; then
  22629. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22630. + test $ac_status = 0; }; then
  22631. cc_works_part=yes
  22632. if test "$cross_compiling" = no; then
  22633. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22634. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22635. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22636. (eval $ac_try) 2>&5
  22637. ac_status=$?
  22638. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22639. - (exit $ac_status); }; }; then :;
  22640. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22641. + test $ac_status = 0; }; }; then :;
  22642. else
  22643. cc_works_part=norun
  22644. fi
  22645. @@ -6337,19 +7413,19 @@
  22646. EOF
  22647. echo "Test compile: __builtin_alloca availability" >&5
  22648. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22649. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22650. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22651. (eval $gmp_compile) 2>&5
  22652. ac_status=$?
  22653. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22654. - (exit $ac_status); }; then
  22655. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22656. + test $ac_status = 0; }; then
  22657. cc_works_part=yes
  22658. if test "$cross_compiling" = no; then
  22659. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22660. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22661. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22662. (eval $ac_try) 2>&5
  22663. ac_status=$?
  22664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22665. - (exit $ac_status); }; }; then :;
  22666. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22667. + test $ac_status = 0; }; }; then :;
  22668. else
  22669. cc_works_part=norun
  22670. fi
  22671. @@ -6383,19 +7459,19 @@
  22672. EOF
  22673. echo "Test compile: alloca array" >&5
  22674. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22675. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22676. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22677. (eval $gmp_compile) 2>&5
  22678. ac_status=$?
  22679. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22680. - (exit $ac_status); }; then
  22681. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22682. + test $ac_status = 0; }; then
  22683. cc_works_part=yes
  22684. if test "$cross_compiling" = no; then
  22685. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22686. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22687. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22688. (eval $ac_try) 2>&5
  22689. ac_status=$?
  22690. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22691. - (exit $ac_status); }; }; then :;
  22692. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22693. + test $ac_status = 0; }; }; then :;
  22694. else
  22695. cc_works_part=norun
  22696. fi
  22697. @@ -6461,19 +7537,19 @@
  22698. EOF
  22699. echo "Test compile: abs int -> double conversion" >&5
  22700. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22701. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22702. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22703. (eval $gmp_compile) 2>&5
  22704. ac_status=$?
  22705. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22706. - (exit $ac_status); }; then
  22707. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22708. + test $ac_status = 0; }; then
  22709. cc_works_part=yes
  22710. if test "$cross_compiling" = no; then
  22711. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22712. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22713. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22714. (eval $ac_try) 2>&5
  22715. ac_status=$?
  22716. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22717. - (exit $ac_status); }; }; then :;
  22718. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22719. + test $ac_status = 0; }; }; then :;
  22720. else
  22721. cc_works_part=norun
  22722. fi
  22723. @@ -6525,19 +7601,19 @@
  22724. EOF
  22725. echo "Test compile: long long reliability test 1" >&5
  22726. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22727. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22728. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22729. (eval $gmp_compile) 2>&5
  22730. ac_status=$?
  22731. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22732. - (exit $ac_status); }; then
  22733. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22734. + test $ac_status = 0; }; then
  22735. cc_works_part=yes
  22736. if test "$cross_compiling" = no; then
  22737. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22738. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22739. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22740. (eval $ac_try) 2>&5
  22741. ac_status=$?
  22742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22743. - (exit $ac_status); }; }; then :;
  22744. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22745. + test $ac_status = 0; }; }; then :;
  22746. else
  22747. cc_works_part=norun
  22748. fi
  22749. @@ -6585,19 +7661,19 @@
  22750. EOF
  22751. echo "Test compile: long long reliability test 2" >&5
  22752. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22753. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22754. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22755. (eval $gmp_compile) 2>&5
  22756. ac_status=$?
  22757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22758. - (exit $ac_status); }; then
  22759. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22760. + test $ac_status = 0; }; then
  22761. cc_works_part=yes
  22762. if test "$cross_compiling" = no; then
  22763. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22764. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22765. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22766. (eval $ac_try) 2>&5
  22767. ac_status=$?
  22768. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22769. - (exit $ac_status); }; }; then :;
  22770. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22771. + test $ac_status = 0; }; }; then :;
  22772. else
  22773. cc_works_part=norun
  22774. fi
  22775. @@ -6684,19 +7760,19 @@
  22776. EOF
  22777. echo "Test compile: mpn_lshift_com optimization" >&5
  22778. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22779. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22780. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22781. (eval $gmp_compile) 2>&5
  22782. ac_status=$?
  22783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22784. - (exit $ac_status); }; then
  22785. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22786. + test $ac_status = 0; }; then
  22787. cc_works_part=yes
  22788. if test "$cross_compiling" = no; then
  22789. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22790. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22791. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22792. (eval $ac_try) 2>&5
  22793. ac_status=$?
  22794. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22795. - (exit $ac_status); }; }; then :;
  22796. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22797. + test $ac_status = 0; }; }; then :;
  22798. else
  22799. cc_works_part=norun
  22800. fi
  22801. @@ -6792,19 +7868,19 @@
  22802. EOF
  22803. echo "Test compile: mpn_lshift_com optimization 2" >&5
  22804. gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  22805. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22806. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22807. (eval $gmp_compile) 2>&5
  22808. ac_status=$?
  22809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22810. - (exit $ac_status); }; then
  22811. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22812. + test $ac_status = 0; }; then
  22813. cc_works_part=yes
  22814. if test "$cross_compiling" = no; then
  22815. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  22816. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22817. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22818. (eval $ac_try) 2>&5
  22819. ac_status=$?
  22820. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22821. - (exit $ac_status); }; }; then :;
  22822. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22823. + test $ac_status = 0; }; }; then :;
  22824. else
  22825. cc_works_part=norun
  22826. fi
  22827. @@ -6851,11 +7927,11 @@
  22828. EOF
  22829. tmp_got_emitted=no
  22830. gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
  22831. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22832. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22833. (eval $gmp_compile) 2>&5
  22834. ac_status=$?
  22835. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22836. - (exit $ac_status); }; then
  22837. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22838. + test $ac_status = 0; }; then
  22839. if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
  22840. tmp_got_emitted=yes
  22841. fi
  22842. @@ -6925,11 +8001,11 @@
  22843. EOF
  22844. tmp_got_good=yes
  22845. gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
  22846. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  22847. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  22848. (eval $gmp_compile) 2>&5
  22849. ac_status=$?
  22850. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22851. - (exit $ac_status); }; then
  22852. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22853. + test $ac_status = 0; }; then
  22854. tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
  22855. fi
  22856. rm -f conftest.*
  22857. @@ -6949,8 +8025,8 @@
  22858. esac
  22859. fi
  22860. -{ echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
  22861. -echo "${ECHO_T}$gmp_prog_cc_works" >&6; }
  22862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  22863. +$as_echo "$gmp_prog_cc_works" >&6; }
  22864. case $gmp_prog_cc_works in
  22865. yes)
  22866. cflags="$cflags $flag"
  22867. @@ -7021,9 +8097,7 @@
  22868. if test -n "$CALLING_CONVENTIONS_OBJS"; then
  22869. -cat >>confdefs.h <<\_ACEOF
  22870. -#define HAVE_CALLING_CONVENTIONS 1
  22871. -_ACEOF
  22872. +$as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
  22873. fi
  22874. @@ -7060,10 +8134,10 @@
  22875. if test -n "$ac_tool_prefix"; then
  22876. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  22877. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  22878. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22879. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22880. -if test "${ac_cv_prog_CC+set}" = set; then
  22881. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22882. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22883. +$as_echo_n "checking for $ac_word... " >&6; }
  22884. +if test "${ac_cv_prog_CC+set}" = set; then :
  22885. + $as_echo_n "(cached) " >&6
  22886. else
  22887. if test -n "$CC"; then
  22888. ac_cv_prog_CC="$CC" # Let the user override the test.
  22889. @@ -7073,25 +8147,25 @@
  22890. do
  22891. IFS=$as_save_IFS
  22892. test -z "$as_dir" && as_dir=.
  22893. - for ac_exec_ext in '' $ac_executable_extensions; do
  22894. + for ac_exec_ext in '' $ac_executable_extensions; do
  22895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22896. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  22897. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22898. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22899. break 2
  22900. fi
  22901. done
  22902. -done
  22903. + done
  22904. IFS=$as_save_IFS
  22905. fi
  22906. fi
  22907. CC=$ac_cv_prog_CC
  22908. if test -n "$CC"; then
  22909. - { echo "$as_me:$LINENO: result: $CC" >&5
  22910. -echo "${ECHO_T}$CC" >&6; }
  22911. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  22912. +$as_echo "$CC" >&6; }
  22913. else
  22914. - { echo "$as_me:$LINENO: result: no" >&5
  22915. -echo "${ECHO_T}no" >&6; }
  22916. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22917. +$as_echo "no" >&6; }
  22918. fi
  22919. @@ -7100,10 +8174,10 @@
  22920. ac_ct_CC=$CC
  22921. # Extract the first word of "gcc", so it can be a program name with args.
  22922. set dummy gcc; ac_word=$2
  22923. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22924. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22925. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  22926. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22927. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22928. +$as_echo_n "checking for $ac_word... " >&6; }
  22929. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  22930. + $as_echo_n "(cached) " >&6
  22931. else
  22932. if test -n "$ac_ct_CC"; then
  22933. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  22934. @@ -7113,25 +8187,25 @@
  22935. do
  22936. IFS=$as_save_IFS
  22937. test -z "$as_dir" && as_dir=.
  22938. - for ac_exec_ext in '' $ac_executable_extensions; do
  22939. + for ac_exec_ext in '' $ac_executable_extensions; do
  22940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22941. ac_cv_prog_ac_ct_CC="gcc"
  22942. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22943. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22944. break 2
  22945. fi
  22946. done
  22947. -done
  22948. + done
  22949. IFS=$as_save_IFS
  22950. fi
  22951. fi
  22952. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  22953. if test -n "$ac_ct_CC"; then
  22954. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  22955. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  22956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  22957. +$as_echo "$ac_ct_CC" >&6; }
  22958. else
  22959. - { echo "$as_me:$LINENO: result: no" >&5
  22960. -echo "${ECHO_T}no" >&6; }
  22961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22962. +$as_echo "no" >&6; }
  22963. fi
  22964. if test "x$ac_ct_CC" = x; then
  22965. @@ -7139,12 +8213,8 @@
  22966. else
  22967. case $cross_compiling:$ac_tool_warned in
  22968. yes:)
  22969. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22970. -whose name does not start with the host triplet. If you think this
  22971. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22972. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22973. -whose name does not start with the host triplet. If you think this
  22974. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22976. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22977. ac_tool_warned=yes ;;
  22978. esac
  22979. CC=$ac_ct_CC
  22980. @@ -7157,10 +8227,10 @@
  22981. if test -n "$ac_tool_prefix"; then
  22982. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  22983. set dummy ${ac_tool_prefix}cc; ac_word=$2
  22984. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22985. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22986. -if test "${ac_cv_prog_CC+set}" = set; then
  22987. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22989. +$as_echo_n "checking for $ac_word... " >&6; }
  22990. +if test "${ac_cv_prog_CC+set}" = set; then :
  22991. + $as_echo_n "(cached) " >&6
  22992. else
  22993. if test -n "$CC"; then
  22994. ac_cv_prog_CC="$CC" # Let the user override the test.
  22995. @@ -7170,25 +8240,25 @@
  22996. do
  22997. IFS=$as_save_IFS
  22998. test -z "$as_dir" && as_dir=.
  22999. - for ac_exec_ext in '' $ac_executable_extensions; do
  23000. + for ac_exec_ext in '' $ac_executable_extensions; do
  23001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23002. ac_cv_prog_CC="${ac_tool_prefix}cc"
  23003. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23004. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23005. break 2
  23006. fi
  23007. done
  23008. -done
  23009. + done
  23010. IFS=$as_save_IFS
  23011. fi
  23012. fi
  23013. CC=$ac_cv_prog_CC
  23014. if test -n "$CC"; then
  23015. - { echo "$as_me:$LINENO: result: $CC" >&5
  23016. -echo "${ECHO_T}$CC" >&6; }
  23017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  23018. +$as_echo "$CC" >&6; }
  23019. else
  23020. - { echo "$as_me:$LINENO: result: no" >&5
  23021. -echo "${ECHO_T}no" >&6; }
  23022. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23023. +$as_echo "no" >&6; }
  23024. fi
  23025. @@ -7197,10 +8267,10 @@
  23026. if test -z "$CC"; then
  23027. # Extract the first word of "cc", so it can be a program name with args.
  23028. set dummy cc; ac_word=$2
  23029. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23030. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23031. -if test "${ac_cv_prog_CC+set}" = set; then
  23032. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23033. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23034. +$as_echo_n "checking for $ac_word... " >&6; }
  23035. +if test "${ac_cv_prog_CC+set}" = set; then :
  23036. + $as_echo_n "(cached) " >&6
  23037. else
  23038. if test -n "$CC"; then
  23039. ac_cv_prog_CC="$CC" # Let the user override the test.
  23040. @@ -7211,18 +8281,18 @@
  23041. do
  23042. IFS=$as_save_IFS
  23043. test -z "$as_dir" && as_dir=.
  23044. - for ac_exec_ext in '' $ac_executable_extensions; do
  23045. + for ac_exec_ext in '' $ac_executable_extensions; do
  23046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23047. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  23048. ac_prog_rejected=yes
  23049. continue
  23050. fi
  23051. ac_cv_prog_CC="cc"
  23052. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23053. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23054. break 2
  23055. fi
  23056. done
  23057. -done
  23058. + done
  23059. IFS=$as_save_IFS
  23060. if test $ac_prog_rejected = yes; then
  23061. @@ -7241,11 +8311,11 @@
  23062. fi
  23063. CC=$ac_cv_prog_CC
  23064. if test -n "$CC"; then
  23065. - { echo "$as_me:$LINENO: result: $CC" >&5
  23066. -echo "${ECHO_T}$CC" >&6; }
  23067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  23068. +$as_echo "$CC" >&6; }
  23069. else
  23070. - { echo "$as_me:$LINENO: result: no" >&5
  23071. -echo "${ECHO_T}no" >&6; }
  23072. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23073. +$as_echo "no" >&6; }
  23074. fi
  23075. @@ -7256,10 +8326,10 @@
  23076. do
  23077. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23078. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23079. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23080. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23081. -if test "${ac_cv_prog_CC+set}" = set; then
  23082. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23083. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23084. +$as_echo_n "checking for $ac_word... " >&6; }
  23085. +if test "${ac_cv_prog_CC+set}" = set; then :
  23086. + $as_echo_n "(cached) " >&6
  23087. else
  23088. if test -n "$CC"; then
  23089. ac_cv_prog_CC="$CC" # Let the user override the test.
  23090. @@ -7269,25 +8339,25 @@
  23091. do
  23092. IFS=$as_save_IFS
  23093. test -z "$as_dir" && as_dir=.
  23094. - for ac_exec_ext in '' $ac_executable_extensions; do
  23095. + for ac_exec_ext in '' $ac_executable_extensions; do
  23096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23097. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  23098. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23099. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23100. break 2
  23101. fi
  23102. done
  23103. -done
  23104. + done
  23105. IFS=$as_save_IFS
  23106. fi
  23107. fi
  23108. CC=$ac_cv_prog_CC
  23109. if test -n "$CC"; then
  23110. - { echo "$as_me:$LINENO: result: $CC" >&5
  23111. -echo "${ECHO_T}$CC" >&6; }
  23112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  23113. +$as_echo "$CC" >&6; }
  23114. else
  23115. - { echo "$as_me:$LINENO: result: no" >&5
  23116. -echo "${ECHO_T}no" >&6; }
  23117. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23118. +$as_echo "no" >&6; }
  23119. fi
  23120. @@ -7300,10 +8370,10 @@
  23121. do
  23122. # Extract the first word of "$ac_prog", so it can be a program name with args.
  23123. set dummy $ac_prog; ac_word=$2
  23124. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23125. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23126. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  23127. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23129. +$as_echo_n "checking for $ac_word... " >&6; }
  23130. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  23131. + $as_echo_n "(cached) " >&6
  23132. else
  23133. if test -n "$ac_ct_CC"; then
  23134. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  23135. @@ -7313,25 +8383,25 @@
  23136. do
  23137. IFS=$as_save_IFS
  23138. test -z "$as_dir" && as_dir=.
  23139. - for ac_exec_ext in '' $ac_executable_extensions; do
  23140. + for ac_exec_ext in '' $ac_executable_extensions; do
  23141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23142. ac_cv_prog_ac_ct_CC="$ac_prog"
  23143. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23144. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23145. break 2
  23146. fi
  23147. done
  23148. -done
  23149. + done
  23150. IFS=$as_save_IFS
  23151. fi
  23152. fi
  23153. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  23154. if test -n "$ac_ct_CC"; then
  23155. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  23156. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  23157. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  23158. +$as_echo "$ac_ct_CC" >&6; }
  23159. else
  23160. - { echo "$as_me:$LINENO: result: no" >&5
  23161. -echo "${ECHO_T}no" >&6; }
  23162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23163. +$as_echo "no" >&6; }
  23164. fi
  23165. @@ -7343,12 +8413,8 @@
  23166. else
  23167. case $cross_compiling:$ac_tool_warned in
  23168. yes:)
  23169. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23170. -whose name does not start with the host triplet. If you think this
  23171. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23172. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23173. -whose name does not start with the host triplet. If you think this
  23174. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23176. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23177. ac_tool_warned=yes ;;
  23178. esac
  23179. CC=$ac_ct_CC
  23180. @@ -7358,51 +8424,37 @@
  23181. fi
  23182. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  23183. -See \`config.log' for more details." >&5
  23184. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  23185. -See \`config.log' for more details." >&2;}
  23186. - { (exit 1); exit 1; }; }
  23187. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23188. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23189. +as_fn_error "no acceptable C compiler found in \$PATH
  23190. +See \`config.log' for more details." "$LINENO" 5; }
  23191. # Provide some information about the compiler.
  23192. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  23193. -ac_compiler=`set X $ac_compile; echo $2`
  23194. -{ (ac_try="$ac_compiler --version >&5"
  23195. -case "(($ac_try" in
  23196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23197. - *) ac_try_echo=$ac_try;;
  23198. -esac
  23199. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23200. - (eval "$ac_compiler --version >&5") 2>&5
  23201. - ac_status=$?
  23202. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23203. - (exit $ac_status); }
  23204. -{ (ac_try="$ac_compiler -v >&5"
  23205. -case "(($ac_try" in
  23206. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23207. - *) ac_try_echo=$ac_try;;
  23208. -esac
  23209. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23210. - (eval "$ac_compiler -v >&5") 2>&5
  23211. - ac_status=$?
  23212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23213. - (exit $ac_status); }
  23214. -{ (ac_try="$ac_compiler -V >&5"
  23215. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  23216. +set X $ac_compile
  23217. +ac_compiler=$2
  23218. +for ac_option in --version -v -V -qversion; do
  23219. + { { ac_try="$ac_compiler $ac_option >&5"
  23220. case "(($ac_try" in
  23221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23222. *) ac_try_echo=$ac_try;;
  23223. esac
  23224. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23225. - (eval "$ac_compiler -V >&5") 2>&5
  23226. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23227. +$as_echo "$ac_try_echo"; } >&5
  23228. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  23229. ac_status=$?
  23230. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23231. - (exit $ac_status); }
  23232. + if test -s conftest.err; then
  23233. + sed '10a\
  23234. +... rest of stderr output deleted ...
  23235. + 10q' conftest.err >conftest.er1
  23236. + cat conftest.er1 >&5
  23237. + fi
  23238. + rm -f conftest.er1 conftest.err
  23239. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23240. + test $ac_status = 0; }
  23241. +done
  23242. -cat >conftest.$ac_ext <<_ACEOF
  23243. -/* confdefs.h. */
  23244. -_ACEOF
  23245. -cat confdefs.h >>conftest.$ac_ext
  23246. -cat >>conftest.$ac_ext <<_ACEOF
  23247. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23248. /* end confdefs.h. */
  23249. int
  23250. @@ -7414,42 +8466,38 @@
  23251. }
  23252. _ACEOF
  23253. ac_clean_files_save=$ac_clean_files
  23254. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  23255. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  23256. # Try to create an executable without -o first, disregard a.out.
  23257. # It will help us diagnose broken compilers, and finding out an intuition
  23258. # of exeext.
  23259. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  23260. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  23261. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  23262. -#
  23263. -# List of possible output files, starting from the most likely.
  23264. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  23265. -# only as a last resort. b.out is created by i960 compilers.
  23266. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  23267. -#
  23268. -# The IRIX 6 linker writes into existing files which may not be
  23269. -# executable, retaining their permissions. Remove them first so a
  23270. -# subsequent execution test works.
  23271. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  23272. +$as_echo_n "checking whether the C compiler works... " >&6; }
  23273. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  23274. +
  23275. +# The possible output files:
  23276. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  23277. +
  23278. ac_rmfiles=
  23279. for ac_file in $ac_files
  23280. do
  23281. case $ac_file in
  23282. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  23283. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  23284. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  23285. esac
  23286. done
  23287. rm -f $ac_rmfiles
  23288. -if { (ac_try="$ac_link_default"
  23289. +if { { ac_try="$ac_link_default"
  23290. case "(($ac_try" in
  23291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23292. *) ac_try_echo=$ac_try;;
  23293. esac
  23294. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23295. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23296. +$as_echo "$ac_try_echo"; } >&5
  23297. (eval "$ac_link_default") 2>&5
  23298. ac_status=$?
  23299. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23300. - (exit $ac_status); }; then
  23301. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23302. + test $ac_status = 0; }; then :
  23303. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  23304. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  23305. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  23306. @@ -7459,14 +8507,14 @@
  23307. do
  23308. test -f "$ac_file" || continue
  23309. case $ac_file in
  23310. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  23311. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  23312. ;;
  23313. [ab].out )
  23314. # We found the default executable, but exeext='' is most
  23315. # certainly right.
  23316. break;;
  23317. *.* )
  23318. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  23319. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  23320. then :; else
  23321. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  23322. fi
  23323. @@ -7485,78 +8533,42 @@
  23324. else
  23325. ac_file=''
  23326. fi
  23327. -
  23328. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  23329. -echo "${ECHO_T}$ac_file" >&6; }
  23330. -if test -z "$ac_file"; then
  23331. - echo "$as_me: failed program was:" >&5
  23332. -sed 's/^/| /' conftest.$ac_ext >&5
  23333. -
  23334. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  23335. -See \`config.log' for more details." >&5
  23336. -echo "$as_me: error: C compiler cannot create executables
  23337. -See \`config.log' for more details." >&2;}
  23338. - { (exit 77); exit 77; }; }
  23339. -fi
  23340. -
  23341. +if test -z "$ac_file"; then :
  23342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23343. +$as_echo "no" >&6; }
  23344. +$as_echo "$as_me: failed program was:" >&5
  23345. +sed 's/^/| /' conftest.$ac_ext >&5
  23346. +
  23347. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23348. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23349. +{ as_fn_set_status 77
  23350. +as_fn_error "C compiler cannot create executables
  23351. +See \`config.log' for more details." "$LINENO" 5; }; }
  23352. +else
  23353. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23354. +$as_echo "yes" >&6; }
  23355. +fi
  23356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  23357. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  23358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  23359. +$as_echo "$ac_file" >&6; }
  23360. ac_exeext=$ac_cv_exeext
  23361. -# Check that the compiler produces executables we can run. If not, either
  23362. -# the compiler is broken, or we cross compile.
  23363. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  23364. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  23365. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  23366. -# If not cross compiling, check that we can run a simple program.
  23367. -if test "$cross_compiling" != yes; then
  23368. - if { ac_try='./$ac_file'
  23369. - { (case "(($ac_try" in
  23370. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23371. - *) ac_try_echo=$ac_try;;
  23372. -esac
  23373. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23374. - (eval "$ac_try") 2>&5
  23375. - ac_status=$?
  23376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23377. - (exit $ac_status); }; }; then
  23378. - cross_compiling=no
  23379. - else
  23380. - if test "$cross_compiling" = maybe; then
  23381. - cross_compiling=yes
  23382. - else
  23383. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  23384. -If you meant to cross compile, use \`--host'.
  23385. -See \`config.log' for more details." >&5
  23386. -echo "$as_me: error: cannot run C compiled programs.
  23387. -If you meant to cross compile, use \`--host'.
  23388. -See \`config.log' for more details." >&2;}
  23389. - { (exit 1); exit 1; }; }
  23390. - fi
  23391. - fi
  23392. -fi
  23393. -{ echo "$as_me:$LINENO: result: yes" >&5
  23394. -echo "${ECHO_T}yes" >&6; }
  23395. -
  23396. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  23397. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  23398. ac_clean_files=$ac_clean_files_save
  23399. -# Check that the compiler produces executables we can run. If not, either
  23400. -# the compiler is broken, or we cross compile.
  23401. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  23402. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  23403. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  23404. -echo "${ECHO_T}$cross_compiling" >&6; }
  23405. -
  23406. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  23407. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  23408. -if { (ac_try="$ac_link"
  23409. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  23410. +$as_echo_n "checking for suffix of executables... " >&6; }
  23411. +if { { ac_try="$ac_link"
  23412. case "(($ac_try" in
  23413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23414. *) ac_try_echo=$ac_try;;
  23415. esac
  23416. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23417. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23418. +$as_echo "$ac_try_echo"; } >&5
  23419. (eval "$ac_link") 2>&5
  23420. ac_status=$?
  23421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23422. - (exit $ac_status); }; then
  23423. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23424. + test $ac_status = 0; }; then :
  23425. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  23426. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  23427. # work properly (i.e., refer to `conftest.exe'), while it won't with
  23428. @@ -7564,37 +8576,90 @@
  23429. for ac_file in conftest.exe conftest conftest.*; do
  23430. test -f "$ac_file" || continue
  23431. case $ac_file in
  23432. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  23433. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  23434. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  23435. break;;
  23436. * ) break;;
  23437. esac
  23438. done
  23439. else
  23440. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  23441. -See \`config.log' for more details." >&5
  23442. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  23443. -See \`config.log' for more details." >&2;}
  23444. - { (exit 1); exit 1; }; }
  23445. -fi
  23446. -
  23447. -rm -f conftest$ac_cv_exeext
  23448. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  23449. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  23450. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23451. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23452. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  23453. +See \`config.log' for more details." "$LINENO" 5; }
  23454. +fi
  23455. +rm -f conftest conftest$ac_cv_exeext
  23456. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  23457. +$as_echo "$ac_cv_exeext" >&6; }
  23458. rm -f conftest.$ac_ext
  23459. EXEEXT=$ac_cv_exeext
  23460. ac_exeext=$EXEEXT
  23461. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  23462. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  23463. -if test "${ac_cv_objext+set}" = set; then
  23464. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23465. -else
  23466. - cat >conftest.$ac_ext <<_ACEOF
  23467. -/* confdefs.h. */
  23468. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23469. +/* end confdefs.h. */
  23470. +#include <stdio.h>
  23471. +int
  23472. +main ()
  23473. +{
  23474. +FILE *f = fopen ("conftest.out", "w");
  23475. + return ferror (f) || fclose (f) != 0;
  23476. +
  23477. + ;
  23478. + return 0;
  23479. +}
  23480. _ACEOF
  23481. -cat confdefs.h >>conftest.$ac_ext
  23482. -cat >>conftest.$ac_ext <<_ACEOF
  23483. +ac_clean_files="$ac_clean_files conftest.out"
  23484. +# Check that the compiler produces executables we can run. If not, either
  23485. +# the compiler is broken, or we cross compile.
  23486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  23487. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  23488. +if test "$cross_compiling" != yes; then
  23489. + { { ac_try="$ac_link"
  23490. +case "(($ac_try" in
  23491. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23492. + *) ac_try_echo=$ac_try;;
  23493. +esac
  23494. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23495. +$as_echo "$ac_try_echo"; } >&5
  23496. + (eval "$ac_link") 2>&5
  23497. + ac_status=$?
  23498. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23499. + test $ac_status = 0; }
  23500. + if { ac_try='./conftest$ac_cv_exeext'
  23501. + { { case "(($ac_try" in
  23502. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23503. + *) ac_try_echo=$ac_try;;
  23504. +esac
  23505. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23506. +$as_echo "$ac_try_echo"; } >&5
  23507. + (eval "$ac_try") 2>&5
  23508. + ac_status=$?
  23509. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23510. + test $ac_status = 0; }; }; then
  23511. + cross_compiling=no
  23512. + else
  23513. + if test "$cross_compiling" = maybe; then
  23514. + cross_compiling=yes
  23515. + else
  23516. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23517. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23518. +as_fn_error "cannot run C compiled programs.
  23519. +If you meant to cross compile, use \`--host'.
  23520. +See \`config.log' for more details." "$LINENO" 5; }
  23521. + fi
  23522. + fi
  23523. +fi
  23524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  23525. +$as_echo "$cross_compiling" >&6; }
  23526. +
  23527. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  23528. +ac_clean_files=$ac_clean_files_save
  23529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  23530. +$as_echo_n "checking for suffix of object files... " >&6; }
  23531. +if test "${ac_cv_objext+set}" = set; then :
  23532. + $as_echo_n "(cached) " >&6
  23533. +else
  23534. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23535. /* end confdefs.h. */
  23536. int
  23537. @@ -7606,51 +8671,46 @@
  23538. }
  23539. _ACEOF
  23540. rm -f conftest.o conftest.obj
  23541. -if { (ac_try="$ac_compile"
  23542. +if { { ac_try="$ac_compile"
  23543. case "(($ac_try" in
  23544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23545. *) ac_try_echo=$ac_try;;
  23546. esac
  23547. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23548. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  23549. +$as_echo "$ac_try_echo"; } >&5
  23550. (eval "$ac_compile") 2>&5
  23551. ac_status=$?
  23552. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23553. - (exit $ac_status); }; then
  23554. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23555. + test $ac_status = 0; }; then :
  23556. for ac_file in conftest.o conftest.obj conftest.*; do
  23557. test -f "$ac_file" || continue;
  23558. case $ac_file in
  23559. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  23560. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  23561. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  23562. break;;
  23563. esac
  23564. done
  23565. else
  23566. - echo "$as_me: failed program was:" >&5
  23567. + $as_echo "$as_me: failed program was:" >&5
  23568. sed 's/^/| /' conftest.$ac_ext >&5
  23569. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  23570. -See \`config.log' for more details." >&5
  23571. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  23572. -See \`config.log' for more details." >&2;}
  23573. - { (exit 1); exit 1; }; }
  23574. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23575. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23576. +as_fn_error "cannot compute suffix of object files: cannot compile
  23577. +See \`config.log' for more details." "$LINENO" 5; }
  23578. fi
  23579. -
  23580. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  23581. fi
  23582. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  23583. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  23584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  23585. +$as_echo "$ac_cv_objext" >&6; }
  23586. OBJEXT=$ac_cv_objext
  23587. ac_objext=$OBJEXT
  23588. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  23589. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  23590. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  23591. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  23593. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  23594. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  23595. + $as_echo_n "(cached) " >&6
  23596. else
  23597. - cat >conftest.$ac_ext <<_ACEOF
  23598. -/* confdefs.h. */
  23599. -_ACEOF
  23600. -cat confdefs.h >>conftest.$ac_ext
  23601. -cat >>conftest.$ac_ext <<_ACEOF
  23602. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23603. /* end confdefs.h. */
  23604. int
  23605. @@ -7664,54 +8724,34 @@
  23606. return 0;
  23607. }
  23608. _ACEOF
  23609. -rm -f conftest.$ac_objext
  23610. -if { (ac_try="$ac_compile"
  23611. -case "(($ac_try" in
  23612. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23613. - *) ac_try_echo=$ac_try;;
  23614. -esac
  23615. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23616. - (eval "$ac_compile") 2>conftest.er1
  23617. - ac_status=$?
  23618. - grep -v '^ *+' conftest.er1 >conftest.err
  23619. - rm -f conftest.er1
  23620. - cat conftest.err >&5
  23621. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23622. - (exit $ac_status); } && {
  23623. - test -z "$ac_c_werror_flag" ||
  23624. - test ! -s conftest.err
  23625. - } && test -s conftest.$ac_objext; then
  23626. +if ac_fn_c_try_compile "$LINENO"; then :
  23627. ac_compiler_gnu=yes
  23628. else
  23629. - echo "$as_me: failed program was:" >&5
  23630. -sed 's/^/| /' conftest.$ac_ext >&5
  23631. -
  23632. - ac_compiler_gnu=no
  23633. + ac_compiler_gnu=no
  23634. fi
  23635. -
  23636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23637. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  23638. fi
  23639. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  23640. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  23641. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  23642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  23643. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  23644. +if test $ac_compiler_gnu = yes; then
  23645. + GCC=yes
  23646. +else
  23647. + GCC=
  23648. +fi
  23649. ac_test_CFLAGS=${CFLAGS+set}
  23650. ac_save_CFLAGS=$CFLAGS
  23651. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  23652. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  23653. -if test "${ac_cv_prog_cc_g+set}" = set; then
  23654. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  23656. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  23657. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  23658. + $as_echo_n "(cached) " >&6
  23659. else
  23660. ac_save_c_werror_flag=$ac_c_werror_flag
  23661. ac_c_werror_flag=yes
  23662. ac_cv_prog_cc_g=no
  23663. CFLAGS="-g"
  23664. - cat >conftest.$ac_ext <<_ACEOF
  23665. -/* confdefs.h. */
  23666. -_ACEOF
  23667. -cat confdefs.h >>conftest.$ac_ext
  23668. -cat >>conftest.$ac_ext <<_ACEOF
  23669. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23670. /* end confdefs.h. */
  23671. int
  23672. @@ -7722,34 +8762,11 @@
  23673. return 0;
  23674. }
  23675. _ACEOF
  23676. -rm -f conftest.$ac_objext
  23677. -if { (ac_try="$ac_compile"
  23678. -case "(($ac_try" in
  23679. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23680. - *) ac_try_echo=$ac_try;;
  23681. -esac
  23682. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23683. - (eval "$ac_compile") 2>conftest.er1
  23684. - ac_status=$?
  23685. - grep -v '^ *+' conftest.er1 >conftest.err
  23686. - rm -f conftest.er1
  23687. - cat conftest.err >&5
  23688. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23689. - (exit $ac_status); } && {
  23690. - test -z "$ac_c_werror_flag" ||
  23691. - test ! -s conftest.err
  23692. - } && test -s conftest.$ac_objext; then
  23693. +if ac_fn_c_try_compile "$LINENO"; then :
  23694. ac_cv_prog_cc_g=yes
  23695. else
  23696. - echo "$as_me: failed program was:" >&5
  23697. -sed 's/^/| /' conftest.$ac_ext >&5
  23698. -
  23699. - CFLAGS=""
  23700. - cat >conftest.$ac_ext <<_ACEOF
  23701. -/* confdefs.h. */
  23702. -_ACEOF
  23703. -cat confdefs.h >>conftest.$ac_ext
  23704. -cat >>conftest.$ac_ext <<_ACEOF
  23705. + CFLAGS=""
  23706. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23707. /* end confdefs.h. */
  23708. int
  23709. @@ -7760,35 +8777,12 @@
  23710. return 0;
  23711. }
  23712. _ACEOF
  23713. -rm -f conftest.$ac_objext
  23714. -if { (ac_try="$ac_compile"
  23715. -case "(($ac_try" in
  23716. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23717. - *) ac_try_echo=$ac_try;;
  23718. -esac
  23719. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23720. - (eval "$ac_compile") 2>conftest.er1
  23721. - ac_status=$?
  23722. - grep -v '^ *+' conftest.er1 >conftest.err
  23723. - rm -f conftest.er1
  23724. - cat conftest.err >&5
  23725. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23726. - (exit $ac_status); } && {
  23727. - test -z "$ac_c_werror_flag" ||
  23728. - test ! -s conftest.err
  23729. - } && test -s conftest.$ac_objext; then
  23730. - :
  23731. -else
  23732. - echo "$as_me: failed program was:" >&5
  23733. -sed 's/^/| /' conftest.$ac_ext >&5
  23734. +if ac_fn_c_try_compile "$LINENO"; then :
  23735. - ac_c_werror_flag=$ac_save_c_werror_flag
  23736. +else
  23737. + ac_c_werror_flag=$ac_save_c_werror_flag
  23738. CFLAGS="-g"
  23739. - cat >conftest.$ac_ext <<_ACEOF
  23740. -/* confdefs.h. */
  23741. -_ACEOF
  23742. -cat confdefs.h >>conftest.$ac_ext
  23743. -cat >>conftest.$ac_ext <<_ACEOF
  23744. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23745. /* end confdefs.h. */
  23746. int
  23747. @@ -7799,42 +8793,18 @@
  23748. return 0;
  23749. }
  23750. _ACEOF
  23751. -rm -f conftest.$ac_objext
  23752. -if { (ac_try="$ac_compile"
  23753. -case "(($ac_try" in
  23754. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23755. - *) ac_try_echo=$ac_try;;
  23756. -esac
  23757. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23758. - (eval "$ac_compile") 2>conftest.er1
  23759. - ac_status=$?
  23760. - grep -v '^ *+' conftest.er1 >conftest.err
  23761. - rm -f conftest.er1
  23762. - cat conftest.err >&5
  23763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23764. - (exit $ac_status); } && {
  23765. - test -z "$ac_c_werror_flag" ||
  23766. - test ! -s conftest.err
  23767. - } && test -s conftest.$ac_objext; then
  23768. +if ac_fn_c_try_compile "$LINENO"; then :
  23769. ac_cv_prog_cc_g=yes
  23770. -else
  23771. - echo "$as_me: failed program was:" >&5
  23772. -sed 's/^/| /' conftest.$ac_ext >&5
  23773. -
  23774. -
  23775. fi
  23776. -
  23777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23778. fi
  23779. -
  23780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23781. fi
  23782. -
  23783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23784. ac_c_werror_flag=$ac_save_c_werror_flag
  23785. fi
  23786. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  23787. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  23788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  23789. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  23790. if test "$ac_test_CFLAGS" = set; then
  23791. CFLAGS=$ac_save_CFLAGS
  23792. elif test $ac_cv_prog_cc_g = yes; then
  23793. @@ -7850,18 +8820,14 @@
  23794. CFLAGS=
  23795. fi
  23796. fi
  23797. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  23798. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  23799. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  23800. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  23802. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  23803. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  23804. + $as_echo_n "(cached) " >&6
  23805. else
  23806. ac_cv_prog_cc_c89=no
  23807. ac_save_CC=$CC
  23808. -cat >conftest.$ac_ext <<_ACEOF
  23809. -/* confdefs.h. */
  23810. -_ACEOF
  23811. -cat confdefs.h >>conftest.$ac_ext
  23812. -cat >>conftest.$ac_ext <<_ACEOF
  23813. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23814. /* end confdefs.h. */
  23815. #include <stdarg.h>
  23816. #include <stdio.h>
  23817. @@ -7918,31 +8884,9 @@
  23818. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  23819. do
  23820. CC="$ac_save_CC $ac_arg"
  23821. - rm -f conftest.$ac_objext
  23822. -if { (ac_try="$ac_compile"
  23823. -case "(($ac_try" in
  23824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23825. - *) ac_try_echo=$ac_try;;
  23826. -esac
  23827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23828. - (eval "$ac_compile") 2>conftest.er1
  23829. - ac_status=$?
  23830. - grep -v '^ *+' conftest.er1 >conftest.err
  23831. - rm -f conftest.er1
  23832. - cat conftest.err >&5
  23833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23834. - (exit $ac_status); } && {
  23835. - test -z "$ac_c_werror_flag" ||
  23836. - test ! -s conftest.err
  23837. - } && test -s conftest.$ac_objext; then
  23838. + if ac_fn_c_try_compile "$LINENO"; then :
  23839. ac_cv_prog_cc_c89=$ac_arg
  23840. -else
  23841. - echo "$as_me: failed program was:" >&5
  23842. -sed 's/^/| /' conftest.$ac_ext >&5
  23843. -
  23844. -
  23845. fi
  23846. -
  23847. rm -f core conftest.err conftest.$ac_objext
  23848. test "x$ac_cv_prog_cc_c89" != "xno" && break
  23849. done
  23850. @@ -7953,17 +8897,19 @@
  23851. # AC_CACHE_VAL
  23852. case "x$ac_cv_prog_cc_c89" in
  23853. x)
  23854. - { echo "$as_me:$LINENO: result: none needed" >&5
  23855. -echo "${ECHO_T}none needed" >&6; } ;;
  23856. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  23857. +$as_echo "none needed" >&6; } ;;
  23858. xno)
  23859. - { echo "$as_me:$LINENO: result: unsupported" >&5
  23860. -echo "${ECHO_T}unsupported" >&6; } ;;
  23861. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  23862. +$as_echo "unsupported" >&6; } ;;
  23863. *)
  23864. CC="$CC $ac_cv_prog_cc_c89"
  23865. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  23866. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  23867. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  23868. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  23869. esac
  23870. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  23871. +fi
  23872. ac_ext=c
  23873. ac_cpp='$CPP $CPPFLAGS'
  23874. @@ -7971,20 +8917,18 @@
  23875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23877. - case $ac_cv_prog_cc_stdc in
  23878. - no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  23879. - *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  23880. -echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  23881. -if test "${ac_cv_prog_cc_c99+set}" = set; then
  23882. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23883. + case $ac_cv_prog_cc_stdc in #(
  23884. + no) :
  23885. + ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  23886. + *) :
  23887. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  23888. +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  23889. +if test "${ac_cv_prog_cc_c99+set}" = set; then :
  23890. + $as_echo_n "(cached) " >&6
  23891. else
  23892. ac_cv_prog_cc_c99=no
  23893. ac_save_CC=$CC
  23894. -cat >conftest.$ac_ext <<_ACEOF
  23895. -/* confdefs.h. */
  23896. -_ACEOF
  23897. -cat confdefs.h >>conftest.$ac_ext
  23898. -cat >>conftest.$ac_ext <<_ACEOF
  23899. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23900. /* end confdefs.h. */
  23901. #include <stdarg.h>
  23902. #include <stdbool.h>
  23903. @@ -8123,34 +9067,12 @@
  23904. return 0;
  23905. }
  23906. _ACEOF
  23907. -for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  23908. +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  23909. do
  23910. CC="$ac_save_CC $ac_arg"
  23911. - rm -f conftest.$ac_objext
  23912. -if { (ac_try="$ac_compile"
  23913. -case "(($ac_try" in
  23914. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23915. - *) ac_try_echo=$ac_try;;
  23916. -esac
  23917. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23918. - (eval "$ac_compile") 2>conftest.er1
  23919. - ac_status=$?
  23920. - grep -v '^ *+' conftest.er1 >conftest.err
  23921. - rm -f conftest.er1
  23922. - cat conftest.err >&5
  23923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23924. - (exit $ac_status); } && {
  23925. - test -z "$ac_c_werror_flag" ||
  23926. - test ! -s conftest.err
  23927. - } && test -s conftest.$ac_objext; then
  23928. + if ac_fn_c_try_compile "$LINENO"; then :
  23929. ac_cv_prog_cc_c99=$ac_arg
  23930. -else
  23931. - echo "$as_me: failed program was:" >&5
  23932. -sed 's/^/| /' conftest.$ac_ext >&5
  23933. -
  23934. -
  23935. fi
  23936. -
  23937. rm -f core conftest.err conftest.$ac_objext
  23938. test "x$ac_cv_prog_cc_c99" != "xno" && break
  23939. done
  23940. @@ -8161,31 +9083,27 @@
  23941. # AC_CACHE_VAL
  23942. case "x$ac_cv_prog_cc_c99" in
  23943. x)
  23944. - { echo "$as_me:$LINENO: result: none needed" >&5
  23945. -echo "${ECHO_T}none needed" >&6; } ;;
  23946. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  23947. +$as_echo "none needed" >&6; } ;;
  23948. xno)
  23949. - { echo "$as_me:$LINENO: result: unsupported" >&5
  23950. -echo "${ECHO_T}unsupported" >&6; } ;;
  23951. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  23952. +$as_echo "unsupported" >&6; } ;;
  23953. *)
  23954. CC="$CC $ac_cv_prog_cc_c99"
  23955. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  23956. -echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  23957. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  23958. +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  23959. esac
  23960. -if test "x$ac_cv_prog_cc_c99" != xno; then
  23961. +if test "x$ac_cv_prog_cc_c99" != xno; then :
  23962. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  23963. else
  23964. - { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  23965. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  23966. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  23967. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23968. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  23969. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  23970. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  23971. + $as_echo_n "(cached) " >&6
  23972. else
  23973. ac_cv_prog_cc_c89=no
  23974. ac_save_CC=$CC
  23975. -cat >conftest.$ac_ext <<_ACEOF
  23976. -/* confdefs.h. */
  23977. -_ACEOF
  23978. -cat confdefs.h >>conftest.$ac_ext
  23979. -cat >>conftest.$ac_ext <<_ACEOF
  23980. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23981. /* end confdefs.h. */
  23982. #include <stdarg.h>
  23983. #include <stdio.h>
  23984. @@ -8242,31 +9160,9 @@
  23985. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  23986. do
  23987. CC="$ac_save_CC $ac_arg"
  23988. - rm -f conftest.$ac_objext
  23989. -if { (ac_try="$ac_compile"
  23990. -case "(($ac_try" in
  23991. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23992. - *) ac_try_echo=$ac_try;;
  23993. -esac
  23994. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23995. - (eval "$ac_compile") 2>conftest.er1
  23996. - ac_status=$?
  23997. - grep -v '^ *+' conftest.er1 >conftest.err
  23998. - rm -f conftest.er1
  23999. - cat conftest.err >&5
  24000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24001. - (exit $ac_status); } && {
  24002. - test -z "$ac_c_werror_flag" ||
  24003. - test ! -s conftest.err
  24004. - } && test -s conftest.$ac_objext; then
  24005. + if ac_fn_c_try_compile "$LINENO"; then :
  24006. ac_cv_prog_cc_c89=$ac_arg
  24007. -else
  24008. - echo "$as_me: failed program was:" >&5
  24009. -sed 's/^/| /' conftest.$ac_ext >&5
  24010. -
  24011. -
  24012. fi
  24013. -
  24014. rm -f core conftest.err conftest.$ac_objext
  24015. test "x$ac_cv_prog_cc_c89" != "xno" && break
  24016. done
  24017. @@ -8277,57 +9173,57 @@
  24018. # AC_CACHE_VAL
  24019. case "x$ac_cv_prog_cc_c89" in
  24020. x)
  24021. - { echo "$as_me:$LINENO: result: none needed" >&5
  24022. -echo "${ECHO_T}none needed" >&6; } ;;
  24023. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  24024. +$as_echo "none needed" >&6; } ;;
  24025. xno)
  24026. - { echo "$as_me:$LINENO: result: unsupported" >&5
  24027. -echo "${ECHO_T}unsupported" >&6; } ;;
  24028. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  24029. +$as_echo "unsupported" >&6; } ;;
  24030. *)
  24031. CC="$CC $ac_cv_prog_cc_c89"
  24032. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  24033. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  24034. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  24035. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  24036. esac
  24037. -if test "x$ac_cv_prog_cc_c89" != xno; then
  24038. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  24039. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  24040. else
  24041. ac_cv_prog_cc_stdc=no
  24042. fi
  24043. -
  24044. fi
  24045. -
  24046. ;;
  24047. esac
  24048. - { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  24049. -echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  24050. - if test "${ac_cv_prog_cc_stdc+set}" = set; then
  24051. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24052. -fi
  24053. -
  24054. - case $ac_cv_prog_cc_stdc in
  24055. - no) { echo "$as_me:$LINENO: result: unsupported" >&5
  24056. -echo "${ECHO_T}unsupported" >&6; } ;;
  24057. - '') { echo "$as_me:$LINENO: result: none needed" >&5
  24058. -echo "${ECHO_T}none needed" >&6; } ;;
  24059. - *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  24060. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  24061. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  24062. +$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  24063. + if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  24064. + $as_echo_n "(cached) " >&6
  24065. +fi
  24066. +
  24067. + case $ac_cv_prog_cc_stdc in #(
  24068. + no) :
  24069. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  24070. +$as_echo "unsupported" >&6; } ;; #(
  24071. + '') :
  24072. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  24073. +$as_echo "none needed" >&6; } ;; #(
  24074. + *) :
  24075. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  24076. +$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  24077. esac
  24078. -
  24079. ac_ext=c
  24080. ac_cpp='$CPP $CPPFLAGS'
  24081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24084. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  24085. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  24086. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  24087. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  24088. # On Suns, sometimes $CPP names a directory.
  24089. if test -n "$CPP" && test -d "$CPP"; then
  24090. CPP=
  24091. fi
  24092. if test -z "$CPP"; then
  24093. - if test "${ac_cv_prog_CPP+set}" = set; then
  24094. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24095. + if test "${ac_cv_prog_CPP+set}" = set; then :
  24096. + $as_echo_n "(cached) " >&6
  24097. else
  24098. # Double quotes because CPP needs to be expanded
  24099. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  24100. @@ -8341,11 +9237,7 @@
  24101. # <limits.h> exists even on freestanding compilers.
  24102. # On the NeXT, cc -E runs the code through the compiler's parser,
  24103. # not just through cpp. "Syntax error" is here to catch this case.
  24104. - cat >conftest.$ac_ext <<_ACEOF
  24105. -/* confdefs.h. */
  24106. -_ACEOF
  24107. -cat confdefs.h >>conftest.$ac_ext
  24108. -cat >>conftest.$ac_ext <<_ACEOF
  24109. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24110. /* end confdefs.h. */
  24111. #ifdef __STDC__
  24112. # include <limits.h>
  24113. @@ -8354,76 +9246,34 @@
  24114. #endif
  24115. Syntax error
  24116. _ACEOF
  24117. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24118. -case "(($ac_try" in
  24119. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24120. - *) ac_try_echo=$ac_try;;
  24121. -esac
  24122. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24123. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24124. - ac_status=$?
  24125. - grep -v '^ *+' conftest.er1 >conftest.err
  24126. - rm -f conftest.er1
  24127. - cat conftest.err >&5
  24128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24129. - (exit $ac_status); } >/dev/null && {
  24130. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24131. - test ! -s conftest.err
  24132. - }; then
  24133. - :
  24134. -else
  24135. - echo "$as_me: failed program was:" >&5
  24136. -sed 's/^/| /' conftest.$ac_ext >&5
  24137. +if ac_fn_c_try_cpp "$LINENO"; then :
  24138. +else
  24139. # Broken: fails on valid input.
  24140. continue
  24141. fi
  24142. -
  24143. rm -f conftest.err conftest.$ac_ext
  24144. # OK, works on sane cases. Now check whether nonexistent headers
  24145. # can be detected and how.
  24146. - cat >conftest.$ac_ext <<_ACEOF
  24147. -/* confdefs.h. */
  24148. -_ACEOF
  24149. -cat confdefs.h >>conftest.$ac_ext
  24150. -cat >>conftest.$ac_ext <<_ACEOF
  24151. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24152. /* end confdefs.h. */
  24153. #include <ac_nonexistent.h>
  24154. _ACEOF
  24155. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24156. -case "(($ac_try" in
  24157. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24158. - *) ac_try_echo=$ac_try;;
  24159. -esac
  24160. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24161. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24162. - ac_status=$?
  24163. - grep -v '^ *+' conftest.er1 >conftest.err
  24164. - rm -f conftest.er1
  24165. - cat conftest.err >&5
  24166. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24167. - (exit $ac_status); } >/dev/null && {
  24168. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24169. - test ! -s conftest.err
  24170. - }; then
  24171. +if ac_fn_c_try_cpp "$LINENO"; then :
  24172. # Broken: success on invalid input.
  24173. continue
  24174. else
  24175. - echo "$as_me: failed program was:" >&5
  24176. -sed 's/^/| /' conftest.$ac_ext >&5
  24177. -
  24178. # Passes both tests.
  24179. ac_preproc_ok=:
  24180. break
  24181. fi
  24182. -
  24183. rm -f conftest.err conftest.$ac_ext
  24184. done
  24185. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24186. rm -f conftest.err conftest.$ac_ext
  24187. -if $ac_preproc_ok; then
  24188. +if $ac_preproc_ok; then :
  24189. break
  24190. fi
  24191. @@ -8435,8 +9285,8 @@
  24192. else
  24193. ac_cv_prog_CPP=$CPP
  24194. fi
  24195. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  24196. -echo "${ECHO_T}$CPP" >&6; }
  24197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  24198. +$as_echo "$CPP" >&6; }
  24199. ac_preproc_ok=false
  24200. for ac_c_preproc_warn_flag in '' yes
  24201. do
  24202. @@ -8446,11 +9296,7 @@
  24203. # <limits.h> exists even on freestanding compilers.
  24204. # On the NeXT, cc -E runs the code through the compiler's parser,
  24205. # not just through cpp. "Syntax error" is here to catch this case.
  24206. - cat >conftest.$ac_ext <<_ACEOF
  24207. -/* confdefs.h. */
  24208. -_ACEOF
  24209. -cat confdefs.h >>conftest.$ac_ext
  24210. -cat >>conftest.$ac_ext <<_ACEOF
  24211. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24212. /* end confdefs.h. */
  24213. #ifdef __STDC__
  24214. # include <limits.h>
  24215. @@ -8459,83 +9305,40 @@
  24216. #endif
  24217. Syntax error
  24218. _ACEOF
  24219. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24220. -case "(($ac_try" in
  24221. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24222. - *) ac_try_echo=$ac_try;;
  24223. -esac
  24224. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24225. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24226. - ac_status=$?
  24227. - grep -v '^ *+' conftest.er1 >conftest.err
  24228. - rm -f conftest.er1
  24229. - cat conftest.err >&5
  24230. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24231. - (exit $ac_status); } >/dev/null && {
  24232. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24233. - test ! -s conftest.err
  24234. - }; then
  24235. - :
  24236. -else
  24237. - echo "$as_me: failed program was:" >&5
  24238. -sed 's/^/| /' conftest.$ac_ext >&5
  24239. +if ac_fn_c_try_cpp "$LINENO"; then :
  24240. +else
  24241. # Broken: fails on valid input.
  24242. continue
  24243. fi
  24244. -
  24245. rm -f conftest.err conftest.$ac_ext
  24246. # OK, works on sane cases. Now check whether nonexistent headers
  24247. # can be detected and how.
  24248. - cat >conftest.$ac_ext <<_ACEOF
  24249. -/* confdefs.h. */
  24250. -_ACEOF
  24251. -cat confdefs.h >>conftest.$ac_ext
  24252. -cat >>conftest.$ac_ext <<_ACEOF
  24253. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24254. /* end confdefs.h. */
  24255. #include <ac_nonexistent.h>
  24256. _ACEOF
  24257. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24258. -case "(($ac_try" in
  24259. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24260. - *) ac_try_echo=$ac_try;;
  24261. -esac
  24262. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24263. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24264. - ac_status=$?
  24265. - grep -v '^ *+' conftest.er1 >conftest.err
  24266. - rm -f conftest.er1
  24267. - cat conftest.err >&5
  24268. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24269. - (exit $ac_status); } >/dev/null && {
  24270. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24271. - test ! -s conftest.err
  24272. - }; then
  24273. +if ac_fn_c_try_cpp "$LINENO"; then :
  24274. # Broken: success on invalid input.
  24275. continue
  24276. else
  24277. - echo "$as_me: failed program was:" >&5
  24278. -sed 's/^/| /' conftest.$ac_ext >&5
  24279. -
  24280. # Passes both tests.
  24281. ac_preproc_ok=:
  24282. break
  24283. fi
  24284. -
  24285. rm -f conftest.err conftest.$ac_ext
  24286. done
  24287. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24288. rm -f conftest.err conftest.$ac_ext
  24289. -if $ac_preproc_ok; then
  24290. - :
  24291. +if $ac_preproc_ok; then :
  24292. +
  24293. else
  24294. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  24295. -See \`config.log' for more details." >&5
  24296. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  24297. -See \`config.log' for more details." >&2;}
  24298. - { (exit 1); exit 1; }; }
  24299. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24300. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24301. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  24302. +See \`config.log' for more details." "$LINENO" 5; }
  24303. fi
  24304. ac_ext=c
  24305. @@ -8550,11 +9353,7 @@
  24306. no)
  24307. ;;
  24308. *)
  24309. - cat >conftest.$ac_ext <<_ACEOF
  24310. -/* confdefs.h. */
  24311. -_ACEOF
  24312. -cat confdefs.h >>conftest.$ac_ext
  24313. -cat >>conftest.$ac_ext <<_ACEOF
  24314. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24315. /* end confdefs.h. */
  24316. #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  24317. #define GMP_NAIL_BITS $GMP_NAIL_BITS
  24318. @@ -8575,32 +9374,12 @@
  24319. return 0;
  24320. }
  24321. _ACEOF
  24322. -rm -f conftest.$ac_objext
  24323. -if { (ac_try="$ac_compile"
  24324. -case "(($ac_try" in
  24325. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24326. - *) ac_try_echo=$ac_try;;
  24327. -esac
  24328. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24329. - (eval "$ac_compile") 2>conftest.er1
  24330. - ac_status=$?
  24331. - grep -v '^ *+' conftest.er1 >conftest.err
  24332. - rm -f conftest.er1
  24333. - cat conftest.err >&5
  24334. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24335. - (exit $ac_status); } && {
  24336. - test -z "$ac_c_werror_flag" ||
  24337. - test ! -s conftest.err
  24338. - } && test -s conftest.$ac_objext; then
  24339. - :
  24340. -else
  24341. - echo "$as_me: failed program was:" >&5
  24342. -sed 's/^/| /' conftest.$ac_ext >&5
  24343. +if ac_fn_c_try_compile "$LINENO"; then :
  24344. - { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
  24345. -echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
  24346. +else
  24347. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
  24348. +$as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
  24349. fi
  24350. -
  24351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24352. ;;
  24353. esac
  24354. @@ -8610,8 +9389,8 @@
  24355. # The C compiler on the build system, and associated tests.
  24356. if test -n "$CC_FOR_BUILD"; then
  24357. - { echo "$as_me:$LINENO: checking build system compiler $CC_FOR_BUILD" >&5
  24358. -echo $ECHO_N "checking build system compiler $CC_FOR_BUILD... $ECHO_C" >&6; }
  24359. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
  24360. +$as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
  24361. # remove anything that might look like compiler output to our "||" expression
  24362. rm -f conftest* a.out b.out a.exe a_out.exe
  24363. cat >conftest.c <<EOF
  24364. @@ -8623,29 +9402,27 @@
  24365. EOF
  24366. gmp_compile="$CC_FOR_BUILD conftest.c"
  24367. cc_for_build_works=no
  24368. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24369. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24370. (eval $gmp_compile) 2>&5
  24371. ac_status=$?
  24372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24373. - (exit $ac_status); }; then
  24374. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24375. + test $ac_status = 0; }; then
  24376. if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
  24377. cc_for_build_works=yes
  24378. fi
  24379. fi
  24380. rm -f conftest* a.out b.out a.exe a_out.exe
  24381. -{ echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
  24382. -echo "${ECHO_T}$cc_for_build_works" >&6; }
  24383. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
  24384. +$as_echo "$cc_for_build_works" >&6; }
  24385. if test "$cc_for_build_works" = yes; then
  24386. :
  24387. else
  24388. - { { echo "$as_me:$LINENO: error: Specified CC_FOR_BUILD doesn't seem to work" >&5
  24389. -echo "$as_me: error: Specified CC_FOR_BUILD doesn't seem to work" >&2;}
  24390. - { (exit 1); exit 1; }; }
  24391. + as_fn_error "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
  24392. fi
  24393. elif test -n "$HOST_CC"; then
  24394. - { echo "$as_me:$LINENO: checking build system compiler $HOST_CC" >&5
  24395. -echo $ECHO_N "checking build system compiler $HOST_CC... $ECHO_C" >&6; }
  24396. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
  24397. +$as_echo_n "checking build system compiler $HOST_CC... " >&6; }
  24398. # remove anything that might look like compiler output to our "||" expression
  24399. rm -f conftest* a.out b.out a.exe a_out.exe
  24400. cat >conftest.c <<EOF
  24401. @@ -8657,30 +9434,28 @@
  24402. EOF
  24403. gmp_compile="$HOST_CC conftest.c"
  24404. cc_for_build_works=no
  24405. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24406. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24407. (eval $gmp_compile) 2>&5
  24408. ac_status=$?
  24409. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24410. - (exit $ac_status); }; then
  24411. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24412. + test $ac_status = 0; }; then
  24413. if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
  24414. cc_for_build_works=yes
  24415. fi
  24416. fi
  24417. rm -f conftest* a.out b.out a.exe a_out.exe
  24418. -{ echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
  24419. -echo "${ECHO_T}$cc_for_build_works" >&6; }
  24420. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
  24421. +$as_echo "$cc_for_build_works" >&6; }
  24422. if test "$cc_for_build_works" = yes; then
  24423. CC_FOR_BUILD=$HOST_CC
  24424. else
  24425. - { { echo "$as_me:$LINENO: error: Specified HOST_CC doesn't seem to work" >&5
  24426. -echo "$as_me: error: Specified HOST_CC doesn't seem to work" >&2;}
  24427. - { (exit 1); exit 1; }; }
  24428. + as_fn_error "Specified HOST_CC doesn't seem to work" "$LINENO" 5
  24429. fi
  24430. else
  24431. for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
  24432. - { echo "$as_me:$LINENO: checking build system compiler $i" >&5
  24433. -echo $ECHO_N "checking build system compiler $i... $ECHO_C" >&6; }
  24434. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
  24435. +$as_echo_n "checking build system compiler $i... " >&6; }
  24436. # remove anything that might look like compiler output to our "||" expression
  24437. rm -f conftest* a.out b.out a.exe a_out.exe
  24438. cat >conftest.c <<EOF
  24439. @@ -8692,18 +9467,18 @@
  24440. EOF
  24441. gmp_compile="$i conftest.c"
  24442. cc_for_build_works=no
  24443. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24444. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24445. (eval $gmp_compile) 2>&5
  24446. ac_status=$?
  24447. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24448. - (exit $ac_status); }; then
  24449. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24450. + test $ac_status = 0; }; then
  24451. if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
  24452. cc_for_build_works=yes
  24453. fi
  24454. fi
  24455. rm -f conftest* a.out b.out a.exe a_out.exe
  24456. -{ echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
  24457. -echo "${ECHO_T}$cc_for_build_works" >&6; }
  24458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
  24459. +$as_echo "$cc_for_build_works" >&6; }
  24460. if test "$cc_for_build_works" = yes; then
  24461. CC_FOR_BUILD=$i
  24462. break
  24463. @@ -8713,9 +9488,7 @@
  24464. done
  24465. if test -z "$CC_FOR_BUILD"; then
  24466. - { { echo "$as_me:$LINENO: error: Cannot find a build system compiler" >&5
  24467. -echo "$as_me: error: Cannot find a build system compiler" >&2;}
  24468. - { (exit 1); exit 1; }; }
  24469. + as_fn_error "Cannot find a build system compiler" "$LINENO" 5
  24470. fi
  24471. fi
  24472. @@ -8723,48 +9496,46 @@
  24473. -{ echo "$as_me:$LINENO: checking for build system preprocessor" >&5
  24474. -echo $ECHO_N "checking for build system preprocessor... $ECHO_C" >&6; }
  24475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
  24476. +$as_echo_n "checking for build system preprocessor... " >&6; }
  24477. if test -z "$CPP_FOR_BUILD"; then
  24478. - if test "${gmp_cv_prog_cpp_for_build+set}" = set; then
  24479. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24480. + if test "${gmp_cv_prog_cpp_for_build+set}" = set; then :
  24481. + $as_echo_n "(cached) " >&6
  24482. else
  24483. cat >conftest.c <<EOF
  24484. #define FOO BAR
  24485. EOF
  24486. for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
  24487. gmp_compile="$i conftest.c"
  24488. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24489. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24490. (eval $gmp_compile) 2>&5
  24491. ac_status=$?
  24492. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24493. - (exit $ac_status); } >&5 2>&1; then
  24494. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24495. + test $ac_status = 0; } >&5 2>&1; then
  24496. gmp_cv_prog_cpp_for_build=$i
  24497. break
  24498. fi
  24499. done
  24500. rm -f conftest* a.out b.out a.exe a_out.exe
  24501. if test -z "$gmp_cv_prog_cpp_for_build"; then
  24502. - { { echo "$as_me:$LINENO: error: Cannot find build system C preprocessor." >&5
  24503. -echo "$as_me: error: Cannot find build system C preprocessor." >&2;}
  24504. - { (exit 1); exit 1; }; }
  24505. + as_fn_error "Cannot find build system C preprocessor." "$LINENO" 5
  24506. fi
  24507. fi
  24508. CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
  24509. fi
  24510. -{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  24511. -echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  24512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
  24513. +$as_echo "$CPP_FOR_BUILD" >&6; }
  24514. -{ echo "$as_me:$LINENO: checking for build system executable suffix" >&5
  24515. -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
  24516. -if test "${gmp_cv_prog_exeext_for_build+set}" = set; then
  24517. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  24519. +$as_echo_n "checking for build system executable suffix... " >&6; }
  24520. +if test "${gmp_cv_prog_exeext_for_build+set}" = set; then :
  24521. + $as_echo_n "(cached) " >&6
  24522. else
  24523. cat >conftest.c <<EOF
  24524. int
  24525. @@ -8775,11 +9546,11 @@
  24526. EOF
  24527. for i in .exe ,ff8 ""; do
  24528. gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
  24529. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24530. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24531. (eval $gmp_compile) 2>&5
  24532. ac_status=$?
  24533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24534. - (exit $ac_status); }; then
  24535. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24536. + test $ac_status = 0; }; then
  24537. if (./conftest) 2>&5; then
  24538. gmp_cv_prog_exeext_for_build=$i
  24539. break
  24540. @@ -8788,22 +9559,20 @@
  24541. done
  24542. rm -f conftest*
  24543. if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
  24544. - { { echo "$as_me:$LINENO: error: Cannot determine executable suffix" >&5
  24545. -echo "$as_me: error: Cannot determine executable suffix" >&2;}
  24546. - { (exit 1); exit 1; }; }
  24547. + as_fn_error "Cannot determine executable suffix" "$LINENO" 5
  24548. fi
  24549. fi
  24550. -{ echo "$as_me:$LINENO: result: $gmp_cv_prog_exeext_for_build" >&5
  24551. -echo "${ECHO_T}$gmp_cv_prog_exeext_for_build" >&6; }
  24552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
  24553. +$as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
  24554. EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
  24555. -{ echo "$as_me:$LINENO: checking whether build system compiler is ANSI" >&5
  24556. -echo $ECHO_N "checking whether build system compiler is ANSI... $ECHO_C" >&6; }
  24557. -if test "${gmp_cv_c_for_build_ansi+set}" = set; then
  24558. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
  24560. +$as_echo_n "checking whether build system compiler is ANSI... " >&6; }
  24561. +if test "${gmp_cv_c_for_build_ansi+set}" = set; then :
  24562. + $as_echo_n "(cached) " >&6
  24563. else
  24564. cat >conftest.c <<EOF
  24565. int
  24566. @@ -8813,11 +9582,11 @@
  24567. }
  24568. EOF
  24569. gmp_compile="$CC_FOR_BUILD conftest.c"
  24570. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24571. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24572. (eval $gmp_compile) 2>&5
  24573. ac_status=$?
  24574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24575. - (exit $ac_status); }; then
  24576. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24577. + test $ac_status = 0; }; then
  24578. gmp_cv_c_for_build_ansi=yes
  24579. else
  24580. gmp_cv_c_for_build_ansi=no
  24581. @@ -8825,8 +9594,8 @@
  24582. rm -f conftest* a.out b.out a.exe a_out.exe
  24583. fi
  24584. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_for_build_ansi" >&5
  24585. -echo "${ECHO_T}$gmp_cv_c_for_build_ansi" >&6; }
  24586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
  24587. +$as_echo "$gmp_cv_c_for_build_ansi" >&6; }
  24588. if test "$gmp_cv_c_for_build_ansi" = yes; then
  24589. U_FOR_BUILD=
  24590. else
  24591. @@ -8835,10 +9604,10 @@
  24592. fi
  24593. -{ echo "$as_me:$LINENO: checking for build system compiler math library" >&5
  24594. -echo $ECHO_N "checking for build system compiler math library... $ECHO_C" >&6; }
  24595. -if test "${gmp_cv_check_libm_for_build+set}" = set; then
  24596. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
  24598. +$as_echo_n "checking for build system compiler math library... " >&6; }
  24599. +if test "${gmp_cv_check_libm_for_build+set}" = set; then :
  24600. + $as_echo_n "(cached) " >&6
  24601. else
  24602. cat >conftest.c <<EOF
  24603. int
  24604. @@ -8854,11 +9623,11 @@
  24605. }
  24606. EOF
  24607. gmp_compile="$CC_FOR_BUILD conftest.c -lm"
  24608. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  24609. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  24610. (eval $gmp_compile) 2>&5
  24611. ac_status=$?
  24612. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24613. - (exit $ac_status); }; then
  24614. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24615. + test $ac_status = 0; }; then
  24616. gmp_cv_check_libm_for_build=-lm
  24617. else
  24618. gmp_cv_check_libm_for_build=no
  24619. @@ -8866,8 +9635,8 @@
  24620. rm -f conftest* a.out b.out a.exe a_out.exe
  24621. fi
  24622. -{ echo "$as_me:$LINENO: result: $gmp_cv_check_libm_for_build" >&5
  24623. -echo "${ECHO_T}$gmp_cv_check_libm_for_build" >&6; }
  24624. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
  24625. +$as_echo "$gmp_cv_check_libm_for_build" >&6; }
  24626. case $gmp_cv_check_libm_for_build in
  24627. yes) LIBM_FOR_BUILD=-lm
  24628. ;;
  24629. @@ -8903,10 +9672,10 @@
  24630. do
  24631. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  24632. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  24633. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24634. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24635. -if test "${ac_cv_prog_CXX+set}" = set; then
  24636. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24638. +$as_echo_n "checking for $ac_word... " >&6; }
  24639. +if test "${ac_cv_prog_CXX+set}" = set; then :
  24640. + $as_echo_n "(cached) " >&6
  24641. else
  24642. if test -n "$CXX"; then
  24643. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  24644. @@ -8916,25 +9685,25 @@
  24645. do
  24646. IFS=$as_save_IFS
  24647. test -z "$as_dir" && as_dir=.
  24648. - for ac_exec_ext in '' $ac_executable_extensions; do
  24649. + for ac_exec_ext in '' $ac_executable_extensions; do
  24650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24651. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  24652. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24653. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24654. break 2
  24655. fi
  24656. done
  24657. -done
  24658. + done
  24659. IFS=$as_save_IFS
  24660. fi
  24661. fi
  24662. CXX=$ac_cv_prog_CXX
  24663. if test -n "$CXX"; then
  24664. - { echo "$as_me:$LINENO: result: $CXX" >&5
  24665. -echo "${ECHO_T}$CXX" >&6; }
  24666. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  24667. +$as_echo "$CXX" >&6; }
  24668. else
  24669. - { echo "$as_me:$LINENO: result: no" >&5
  24670. -echo "${ECHO_T}no" >&6; }
  24671. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24672. +$as_echo "no" >&6; }
  24673. fi
  24674. @@ -8947,10 +9716,10 @@
  24675. do
  24676. # Extract the first word of "$ac_prog", so it can be a program name with args.
  24677. set dummy $ac_prog; ac_word=$2
  24678. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24679. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24680. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  24681. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24683. +$as_echo_n "checking for $ac_word... " >&6; }
  24684. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  24685. + $as_echo_n "(cached) " >&6
  24686. else
  24687. if test -n "$ac_ct_CXX"; then
  24688. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  24689. @@ -8960,25 +9729,25 @@
  24690. do
  24691. IFS=$as_save_IFS
  24692. test -z "$as_dir" && as_dir=.
  24693. - for ac_exec_ext in '' $ac_executable_extensions; do
  24694. + for ac_exec_ext in '' $ac_executable_extensions; do
  24695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24696. ac_cv_prog_ac_ct_CXX="$ac_prog"
  24697. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24698. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24699. break 2
  24700. fi
  24701. done
  24702. -done
  24703. + done
  24704. IFS=$as_save_IFS
  24705. fi
  24706. fi
  24707. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  24708. if test -n "$ac_ct_CXX"; then
  24709. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  24710. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  24711. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  24712. +$as_echo "$ac_ct_CXX" >&6; }
  24713. else
  24714. - { echo "$as_me:$LINENO: result: no" >&5
  24715. -echo "${ECHO_T}no" >&6; }
  24716. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24717. +$as_echo "no" >&6; }
  24718. fi
  24719. @@ -8990,12 +9759,8 @@
  24720. else
  24721. case $cross_compiling:$ac_tool_warned in
  24722. yes:)
  24723. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24724. -whose name does not start with the host triplet. If you think this
  24725. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24726. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24727. -whose name does not start with the host triplet. If you think this
  24728. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24730. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24731. ac_tool_warned=yes ;;
  24732. esac
  24733. CXX=$ac_ct_CXX
  24734. @@ -9005,49 +9770,36 @@
  24735. fi
  24736. fi
  24737. # Provide some information about the compiler.
  24738. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  24739. -ac_compiler=`set X $ac_compile; echo $2`
  24740. -{ (ac_try="$ac_compiler --version >&5"
  24741. -case "(($ac_try" in
  24742. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24743. - *) ac_try_echo=$ac_try;;
  24744. -esac
  24745. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24746. - (eval "$ac_compiler --version >&5") 2>&5
  24747. - ac_status=$?
  24748. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24749. - (exit $ac_status); }
  24750. -{ (ac_try="$ac_compiler -v >&5"
  24751. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  24752. +set X $ac_compile
  24753. +ac_compiler=$2
  24754. +for ac_option in --version -v -V -qversion; do
  24755. + { { ac_try="$ac_compiler $ac_option >&5"
  24756. case "(($ac_try" in
  24757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24758. *) ac_try_echo=$ac_try;;
  24759. esac
  24760. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24761. - (eval "$ac_compiler -v >&5") 2>&5
  24762. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24763. +$as_echo "$ac_try_echo"; } >&5
  24764. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  24765. ac_status=$?
  24766. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24767. - (exit $ac_status); }
  24768. -{ (ac_try="$ac_compiler -V >&5"
  24769. -case "(($ac_try" in
  24770. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24771. - *) ac_try_echo=$ac_try;;
  24772. -esac
  24773. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24774. - (eval "$ac_compiler -V >&5") 2>&5
  24775. - ac_status=$?
  24776. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24777. - (exit $ac_status); }
  24778. + if test -s conftest.err; then
  24779. + sed '10a\
  24780. +... rest of stderr output deleted ...
  24781. + 10q' conftest.err >conftest.er1
  24782. + cat conftest.er1 >&5
  24783. + fi
  24784. + rm -f conftest.er1 conftest.err
  24785. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24786. + test $ac_status = 0; }
  24787. +done
  24788. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  24789. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  24790. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  24791. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24792. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  24793. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  24794. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  24795. + $as_echo_n "(cached) " >&6
  24796. else
  24797. - cat >conftest.$ac_ext <<_ACEOF
  24798. -/* confdefs.h. */
  24799. -_ACEOF
  24800. -cat confdefs.h >>conftest.$ac_ext
  24801. -cat >>conftest.$ac_ext <<_ACEOF
  24802. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24803. /* end confdefs.h. */
  24804. int
  24805. @@ -9061,54 +9813,34 @@
  24806. return 0;
  24807. }
  24808. _ACEOF
  24809. -rm -f conftest.$ac_objext
  24810. -if { (ac_try="$ac_compile"
  24811. -case "(($ac_try" in
  24812. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24813. - *) ac_try_echo=$ac_try;;
  24814. -esac
  24815. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24816. - (eval "$ac_compile") 2>conftest.er1
  24817. - ac_status=$?
  24818. - grep -v '^ *+' conftest.er1 >conftest.err
  24819. - rm -f conftest.er1
  24820. - cat conftest.err >&5
  24821. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24822. - (exit $ac_status); } && {
  24823. - test -z "$ac_cxx_werror_flag" ||
  24824. - test ! -s conftest.err
  24825. - } && test -s conftest.$ac_objext; then
  24826. +if ac_fn_cxx_try_compile "$LINENO"; then :
  24827. ac_compiler_gnu=yes
  24828. else
  24829. - echo "$as_me: failed program was:" >&5
  24830. -sed 's/^/| /' conftest.$ac_ext >&5
  24831. -
  24832. - ac_compiler_gnu=no
  24833. + ac_compiler_gnu=no
  24834. fi
  24835. -
  24836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24837. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  24838. fi
  24839. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  24840. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  24841. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  24842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  24843. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  24844. +if test $ac_compiler_gnu = yes; then
  24845. + GXX=yes
  24846. +else
  24847. + GXX=
  24848. +fi
  24849. ac_test_CXXFLAGS=${CXXFLAGS+set}
  24850. ac_save_CXXFLAGS=$CXXFLAGS
  24851. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  24852. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  24853. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  24854. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24855. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  24856. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  24857. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  24858. + $as_echo_n "(cached) " >&6
  24859. else
  24860. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  24861. ac_cxx_werror_flag=yes
  24862. ac_cv_prog_cxx_g=no
  24863. CXXFLAGS="-g"
  24864. - cat >conftest.$ac_ext <<_ACEOF
  24865. -/* confdefs.h. */
  24866. -_ACEOF
  24867. -cat confdefs.h >>conftest.$ac_ext
  24868. -cat >>conftest.$ac_ext <<_ACEOF
  24869. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24870. /* end confdefs.h. */
  24871. int
  24872. @@ -9119,34 +9851,11 @@
  24873. return 0;
  24874. }
  24875. _ACEOF
  24876. -rm -f conftest.$ac_objext
  24877. -if { (ac_try="$ac_compile"
  24878. -case "(($ac_try" in
  24879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24880. - *) ac_try_echo=$ac_try;;
  24881. -esac
  24882. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24883. - (eval "$ac_compile") 2>conftest.er1
  24884. - ac_status=$?
  24885. - grep -v '^ *+' conftest.er1 >conftest.err
  24886. - rm -f conftest.er1
  24887. - cat conftest.err >&5
  24888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24889. - (exit $ac_status); } && {
  24890. - test -z "$ac_cxx_werror_flag" ||
  24891. - test ! -s conftest.err
  24892. - } && test -s conftest.$ac_objext; then
  24893. +if ac_fn_cxx_try_compile "$LINENO"; then :
  24894. ac_cv_prog_cxx_g=yes
  24895. else
  24896. - echo "$as_me: failed program was:" >&5
  24897. -sed 's/^/| /' conftest.$ac_ext >&5
  24898. -
  24899. - CXXFLAGS=""
  24900. - cat >conftest.$ac_ext <<_ACEOF
  24901. -/* confdefs.h. */
  24902. -_ACEOF
  24903. -cat confdefs.h >>conftest.$ac_ext
  24904. -cat >>conftest.$ac_ext <<_ACEOF
  24905. + CXXFLAGS=""
  24906. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24907. /* end confdefs.h. */
  24908. int
  24909. @@ -9157,35 +9866,12 @@
  24910. return 0;
  24911. }
  24912. _ACEOF
  24913. -rm -f conftest.$ac_objext
  24914. -if { (ac_try="$ac_compile"
  24915. -case "(($ac_try" in
  24916. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24917. - *) ac_try_echo=$ac_try;;
  24918. -esac
  24919. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24920. - (eval "$ac_compile") 2>conftest.er1
  24921. - ac_status=$?
  24922. - grep -v '^ *+' conftest.er1 >conftest.err
  24923. - rm -f conftest.er1
  24924. - cat conftest.err >&5
  24925. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24926. - (exit $ac_status); } && {
  24927. - test -z "$ac_cxx_werror_flag" ||
  24928. - test ! -s conftest.err
  24929. - } && test -s conftest.$ac_objext; then
  24930. - :
  24931. -else
  24932. - echo "$as_me: failed program was:" >&5
  24933. -sed 's/^/| /' conftest.$ac_ext >&5
  24934. +if ac_fn_cxx_try_compile "$LINENO"; then :
  24935. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  24936. +else
  24937. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  24938. CXXFLAGS="-g"
  24939. - cat >conftest.$ac_ext <<_ACEOF
  24940. -/* confdefs.h. */
  24941. -_ACEOF
  24942. -cat confdefs.h >>conftest.$ac_ext
  24943. -cat >>conftest.$ac_ext <<_ACEOF
  24944. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24945. /* end confdefs.h. */
  24946. int
  24947. @@ -9196,42 +9882,18 @@
  24948. return 0;
  24949. }
  24950. _ACEOF
  24951. -rm -f conftest.$ac_objext
  24952. -if { (ac_try="$ac_compile"
  24953. -case "(($ac_try" in
  24954. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24955. - *) ac_try_echo=$ac_try;;
  24956. -esac
  24957. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24958. - (eval "$ac_compile") 2>conftest.er1
  24959. - ac_status=$?
  24960. - grep -v '^ *+' conftest.er1 >conftest.err
  24961. - rm -f conftest.er1
  24962. - cat conftest.err >&5
  24963. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24964. - (exit $ac_status); } && {
  24965. - test -z "$ac_cxx_werror_flag" ||
  24966. - test ! -s conftest.err
  24967. - } && test -s conftest.$ac_objext; then
  24968. +if ac_fn_cxx_try_compile "$LINENO"; then :
  24969. ac_cv_prog_cxx_g=yes
  24970. -else
  24971. - echo "$as_me: failed program was:" >&5
  24972. -sed 's/^/| /' conftest.$ac_ext >&5
  24973. -
  24974. -
  24975. fi
  24976. -
  24977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24978. fi
  24979. -
  24980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24981. fi
  24982. -
  24983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24984. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  24985. fi
  24986. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  24987. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  24988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  24989. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  24990. if test "$ac_test_CXXFLAGS" = set; then
  24991. CXXFLAGS=$ac_save_CXXFLAGS
  24992. elif test $ac_cv_prog_cxx_g = yes; then
  24993. @@ -9280,8 +9942,8 @@
  24994. #
  24995. for cxxflags_choice in $cxxflags_list; do
  24996. eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
  24997. - { echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
  24998. -echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... $ECHO_C" >&6; }
  24999. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
  25000. +$as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
  25001. gmp_prog_cxx_works=yes
  25002. # start with a plain "main()", then go on to further checks
  25003. @@ -9294,18 +9956,18 @@
  25004. EOF
  25005. echo "Test compile: " >&5
  25006. gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
  25007. - if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
  25008. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
  25009. (eval $gmp_cxxcompile) 2>&5
  25010. ac_status=$?
  25011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25012. - (exit $ac_status); }; then
  25013. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25014. + test $ac_status = 0; }; then
  25015. if test "$cross_compiling" = no; then
  25016. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  25017. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25018. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  25019. (eval $ac_try) 2>&5
  25020. ac_status=$?
  25021. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25022. - (exit $ac_status); }; }; then :;
  25023. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25024. + test $ac_status = 0; }; }; then :;
  25025. else
  25026. gmp_prog_cxx_works="no, program does not run"
  25027. fi
  25028. @@ -9334,18 +9996,18 @@
  25029. EOF
  25030. echo "Test compile: namespace" >&5
  25031. gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
  25032. - if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
  25033. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
  25034. (eval $gmp_cxxcompile) 2>&5
  25035. ac_status=$?
  25036. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25037. - (exit $ac_status); }; then
  25038. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25039. + test $ac_status = 0; }; then
  25040. if test "$cross_compiling" = no; then
  25041. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  25042. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25043. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  25044. (eval $ac_try) 2>&5
  25045. ac_status=$?
  25046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25047. - (exit $ac_status); }; }; then :;
  25048. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25049. + test $ac_status = 0; }; }; then :;
  25050. else
  25051. gmp_prog_cxx_works="no, namespace, program does not run"
  25052. fi
  25053. @@ -9380,18 +10042,18 @@
  25054. EOF
  25055. echo "Test compile: std iostream" >&5
  25056. gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
  25057. - if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
  25058. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
  25059. (eval $gmp_cxxcompile) 2>&5
  25060. ac_status=$?
  25061. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25062. - (exit $ac_status); }; then
  25063. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25064. + test $ac_status = 0; }; then
  25065. if test "$cross_compiling" = no; then
  25066. if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  25067. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25068. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  25069. (eval $ac_try) 2>&5
  25070. ac_status=$?
  25071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25072. - (exit $ac_status); }; }; then :;
  25073. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25074. + test $ac_status = 0; }; }; then :;
  25075. else
  25076. gmp_prog_cxx_works="no, std iostream, program does not run"
  25077. fi
  25078. @@ -9409,8 +10071,8 @@
  25079. fi
  25080. -{ echo "$as_me:$LINENO: result: $gmp_prog_cxx_works" >&5
  25081. -echo "${ECHO_T}$gmp_prog_cxx_works" >&6; }
  25082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
  25083. +$as_echo "$gmp_prog_cxx_works" >&6; }
  25084. case $gmp_prog_cxx_works in
  25085. yes)
  25086. want_cxx=yes
  25087. @@ -9425,15 +10087,11 @@
  25088. # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
  25089. if test $want_cxx = no && test $enable_cxx = yes; then
  25090. - { { echo "$as_me:$LINENO: error: C++ compiler not available, see config.log for details" >&5
  25091. -echo "$as_me: error: C++ compiler not available, see config.log for details" >&2;}
  25092. - { (exit 1); exit 1; }; }
  25093. + as_fn_error "C++ compiler not available, see config.log for details" "$LINENO" 5
  25094. fi
  25095. fi
  25096. -
  25097. -
  25098. -if test $want_cxx = yes; then
  25099. + if test $want_cxx = yes; then
  25100. WANT_CXX_TRUE=
  25101. WANT_CXX_FALSE='#'
  25102. else
  25103. @@ -9453,11 +10111,11 @@
  25104. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25105. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25106. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25107. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  25108. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  25109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  25110. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  25111. if test -z "$CXXCPP"; then
  25112. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  25113. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25114. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  25115. + $as_echo_n "(cached) " >&6
  25116. else
  25117. # Double quotes because CXXCPP needs to be expanded
  25118. for CXXCPP in "$CXX -E" "/lib/cpp"
  25119. @@ -9471,11 +10129,7 @@
  25120. # <limits.h> exists even on freestanding compilers.
  25121. # On the NeXT, cc -E runs the code through the compiler's parser,
  25122. # not just through cpp. "Syntax error" is here to catch this case.
  25123. - cat >conftest.$ac_ext <<_ACEOF
  25124. -/* confdefs.h. */
  25125. -_ACEOF
  25126. -cat confdefs.h >>conftest.$ac_ext
  25127. -cat >>conftest.$ac_ext <<_ACEOF
  25128. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25129. /* end confdefs.h. */
  25130. #ifdef __STDC__
  25131. # include <limits.h>
  25132. @@ -9484,76 +10138,34 @@
  25133. #endif
  25134. Syntax error
  25135. _ACEOF
  25136. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  25137. -case "(($ac_try" in
  25138. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25139. - *) ac_try_echo=$ac_try;;
  25140. -esac
  25141. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25142. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25143. - ac_status=$?
  25144. - grep -v '^ *+' conftest.er1 >conftest.err
  25145. - rm -f conftest.er1
  25146. - cat conftest.err >&5
  25147. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25148. - (exit $ac_status); } >/dev/null && {
  25149. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  25150. - test ! -s conftest.err
  25151. - }; then
  25152. - :
  25153. -else
  25154. - echo "$as_me: failed program was:" >&5
  25155. -sed 's/^/| /' conftest.$ac_ext >&5
  25156. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  25157. +else
  25158. # Broken: fails on valid input.
  25159. continue
  25160. fi
  25161. -
  25162. rm -f conftest.err conftest.$ac_ext
  25163. # OK, works on sane cases. Now check whether nonexistent headers
  25164. # can be detected and how.
  25165. - cat >conftest.$ac_ext <<_ACEOF
  25166. -/* confdefs.h. */
  25167. -_ACEOF
  25168. -cat confdefs.h >>conftest.$ac_ext
  25169. -cat >>conftest.$ac_ext <<_ACEOF
  25170. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25171. /* end confdefs.h. */
  25172. #include <ac_nonexistent.h>
  25173. _ACEOF
  25174. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  25175. -case "(($ac_try" in
  25176. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25177. - *) ac_try_echo=$ac_try;;
  25178. -esac
  25179. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25180. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25181. - ac_status=$?
  25182. - grep -v '^ *+' conftest.er1 >conftest.err
  25183. - rm -f conftest.er1
  25184. - cat conftest.err >&5
  25185. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25186. - (exit $ac_status); } >/dev/null && {
  25187. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  25188. - test ! -s conftest.err
  25189. - }; then
  25190. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  25191. # Broken: success on invalid input.
  25192. continue
  25193. else
  25194. - echo "$as_me: failed program was:" >&5
  25195. -sed 's/^/| /' conftest.$ac_ext >&5
  25196. -
  25197. # Passes both tests.
  25198. ac_preproc_ok=:
  25199. break
  25200. fi
  25201. -
  25202. rm -f conftest.err conftest.$ac_ext
  25203. done
  25204. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25205. rm -f conftest.err conftest.$ac_ext
  25206. -if $ac_preproc_ok; then
  25207. +if $ac_preproc_ok; then :
  25208. break
  25209. fi
  25210. @@ -9565,8 +10177,8 @@
  25211. else
  25212. ac_cv_prog_CXXCPP=$CXXCPP
  25213. fi
  25214. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  25215. -echo "${ECHO_T}$CXXCPP" >&6; }
  25216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  25217. +$as_echo "$CXXCPP" >&6; }
  25218. ac_preproc_ok=false
  25219. for ac_cxx_preproc_warn_flag in '' yes
  25220. do
  25221. @@ -9576,11 +10188,7 @@
  25222. # <limits.h> exists even on freestanding compilers.
  25223. # On the NeXT, cc -E runs the code through the compiler's parser,
  25224. # not just through cpp. "Syntax error" is here to catch this case.
  25225. - cat >conftest.$ac_ext <<_ACEOF
  25226. -/* confdefs.h. */
  25227. -_ACEOF
  25228. -cat confdefs.h >>conftest.$ac_ext
  25229. -cat >>conftest.$ac_ext <<_ACEOF
  25230. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25231. /* end confdefs.h. */
  25232. #ifdef __STDC__
  25233. # include <limits.h>
  25234. @@ -9589,83 +10197,40 @@
  25235. #endif
  25236. Syntax error
  25237. _ACEOF
  25238. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  25239. -case "(($ac_try" in
  25240. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25241. - *) ac_try_echo=$ac_try;;
  25242. -esac
  25243. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25244. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25245. - ac_status=$?
  25246. - grep -v '^ *+' conftest.er1 >conftest.err
  25247. - rm -f conftest.er1
  25248. - cat conftest.err >&5
  25249. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25250. - (exit $ac_status); } >/dev/null && {
  25251. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  25252. - test ! -s conftest.err
  25253. - }; then
  25254. - :
  25255. -else
  25256. - echo "$as_me: failed program was:" >&5
  25257. -sed 's/^/| /' conftest.$ac_ext >&5
  25258. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  25259. +else
  25260. # Broken: fails on valid input.
  25261. continue
  25262. fi
  25263. -
  25264. rm -f conftest.err conftest.$ac_ext
  25265. # OK, works on sane cases. Now check whether nonexistent headers
  25266. # can be detected and how.
  25267. - cat >conftest.$ac_ext <<_ACEOF
  25268. -/* confdefs.h. */
  25269. -_ACEOF
  25270. -cat confdefs.h >>conftest.$ac_ext
  25271. -cat >>conftest.$ac_ext <<_ACEOF
  25272. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25273. /* end confdefs.h. */
  25274. #include <ac_nonexistent.h>
  25275. _ACEOF
  25276. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  25277. -case "(($ac_try" in
  25278. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25279. - *) ac_try_echo=$ac_try;;
  25280. -esac
  25281. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25282. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25283. - ac_status=$?
  25284. - grep -v '^ *+' conftest.er1 >conftest.err
  25285. - rm -f conftest.er1
  25286. - cat conftest.err >&5
  25287. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25288. - (exit $ac_status); } >/dev/null && {
  25289. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  25290. - test ! -s conftest.err
  25291. - }; then
  25292. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  25293. # Broken: success on invalid input.
  25294. continue
  25295. else
  25296. - echo "$as_me: failed program was:" >&5
  25297. -sed 's/^/| /' conftest.$ac_ext >&5
  25298. -
  25299. # Passes both tests.
  25300. ac_preproc_ok=:
  25301. break
  25302. fi
  25303. -
  25304. rm -f conftest.err conftest.$ac_ext
  25305. done
  25306. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25307. rm -f conftest.err conftest.$ac_ext
  25308. -if $ac_preproc_ok; then
  25309. - :
  25310. +if $ac_preproc_ok; then :
  25311. +
  25312. else
  25313. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  25314. -See \`config.log' for more details." >&5
  25315. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  25316. -See \`config.log' for more details." >&2;}
  25317. - { (exit 1); exit 1; }; }
  25318. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25319. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25320. +as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  25321. +See \`config.log' for more details." "$LINENO" 5; }
  25322. fi
  25323. ac_ext=c
  25324. @@ -9681,45 +10246,40 @@
  25325. # deciding the compiler.
  25326. #
  25327. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  25328. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  25329. -if test "${ac_cv_path_GREP+set}" = set; then
  25330. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25331. -else
  25332. - # Extract the first word of "grep ggrep" to use in msg output
  25333. -if test -z "$GREP"; then
  25334. -set dummy grep ggrep; ac_prog_name=$2
  25335. -if test "${ac_cv_path_GREP+set}" = set; then
  25336. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25337. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  25338. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  25339. +if test "${ac_cv_path_GREP+set}" = set; then :
  25340. + $as_echo_n "(cached) " >&6
  25341. else
  25342. + if test -z "$GREP"; then
  25343. ac_path_GREP_found=false
  25344. -# Loop through the user's path and test for each of PROGNAME-LIST
  25345. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25346. + # Loop through the user's path and test for each of PROGNAME-LIST
  25347. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25348. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  25349. do
  25350. IFS=$as_save_IFS
  25351. test -z "$as_dir" && as_dir=.
  25352. - for ac_prog in grep ggrep; do
  25353. - for ac_exec_ext in '' $ac_executable_extensions; do
  25354. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  25355. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  25356. - # Check for GNU ac_path_GREP and select it if it is found.
  25357. + for ac_prog in grep ggrep; do
  25358. + for ac_exec_ext in '' $ac_executable_extensions; do
  25359. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  25360. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  25361. +# Check for GNU ac_path_GREP and select it if it is found.
  25362. # Check for GNU $ac_path_GREP
  25363. case `"$ac_path_GREP" --version 2>&1` in
  25364. *GNU*)
  25365. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  25366. *)
  25367. ac_count=0
  25368. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  25369. + $as_echo_n 0123456789 >"conftest.in"
  25370. while :
  25371. do
  25372. cat "conftest.in" "conftest.in" >"conftest.tmp"
  25373. mv "conftest.tmp" "conftest.in"
  25374. cp "conftest.in" "conftest.nl"
  25375. - echo 'GREP' >> "conftest.nl"
  25376. + $as_echo 'GREP' >> "conftest.nl"
  25377. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  25378. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  25379. - ac_count=`expr $ac_count + 1`
  25380. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  25381. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  25382. # Best one so far, save it but keep looking for a better one
  25383. ac_cv_path_GREP="$ac_path_GREP"
  25384. @@ -9731,77 +10291,61 @@
  25385. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  25386. esac
  25387. -
  25388. - $ac_path_GREP_found && break 3
  25389. + $ac_path_GREP_found && break 3
  25390. + done
  25391. + done
  25392. done
  25393. -done
  25394. -
  25395. -done
  25396. IFS=$as_save_IFS
  25397. -
  25398. -
  25399. -fi
  25400. -
  25401. -GREP="$ac_cv_path_GREP"
  25402. -if test -z "$GREP"; then
  25403. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  25404. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  25405. - { (exit 1); exit 1; }; }
  25406. -fi
  25407. -
  25408. + if test -z "$ac_cv_path_GREP"; then
  25409. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  25410. + fi
  25411. else
  25412. ac_cv_path_GREP=$GREP
  25413. fi
  25414. -
  25415. fi
  25416. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  25417. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  25418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  25419. +$as_echo "$ac_cv_path_GREP" >&6; }
  25420. GREP="$ac_cv_path_GREP"
  25421. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  25422. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  25423. -if test "${ac_cv_path_EGREP+set}" = set; then
  25424. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  25426. +$as_echo_n "checking for egrep... " >&6; }
  25427. +if test "${ac_cv_path_EGREP+set}" = set; then :
  25428. + $as_echo_n "(cached) " >&6
  25429. else
  25430. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  25431. then ac_cv_path_EGREP="$GREP -E"
  25432. else
  25433. - # Extract the first word of "egrep" to use in msg output
  25434. -if test -z "$EGREP"; then
  25435. -set dummy egrep; ac_prog_name=$2
  25436. -if test "${ac_cv_path_EGREP+set}" = set; then
  25437. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25438. -else
  25439. + if test -z "$EGREP"; then
  25440. ac_path_EGREP_found=false
  25441. -# Loop through the user's path and test for each of PROGNAME-LIST
  25442. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25443. + # Loop through the user's path and test for each of PROGNAME-LIST
  25444. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25445. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  25446. do
  25447. IFS=$as_save_IFS
  25448. test -z "$as_dir" && as_dir=.
  25449. - for ac_prog in egrep; do
  25450. - for ac_exec_ext in '' $ac_executable_extensions; do
  25451. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  25452. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  25453. - # Check for GNU ac_path_EGREP and select it if it is found.
  25454. + for ac_prog in egrep; do
  25455. + for ac_exec_ext in '' $ac_executable_extensions; do
  25456. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  25457. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  25458. +# Check for GNU ac_path_EGREP and select it if it is found.
  25459. # Check for GNU $ac_path_EGREP
  25460. case `"$ac_path_EGREP" --version 2>&1` in
  25461. *GNU*)
  25462. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  25463. *)
  25464. ac_count=0
  25465. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  25466. + $as_echo_n 0123456789 >"conftest.in"
  25467. while :
  25468. do
  25469. cat "conftest.in" "conftest.in" >"conftest.tmp"
  25470. mv "conftest.tmp" "conftest.in"
  25471. cp "conftest.in" "conftest.nl"
  25472. - echo 'EGREP' >> "conftest.nl"
  25473. + $as_echo 'EGREP' >> "conftest.nl"
  25474. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  25475. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  25476. - ac_count=`expr $ac_count + 1`
  25477. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  25478. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  25479. # Best one so far, save it but keep looking for a better one
  25480. ac_cv_path_EGREP="$ac_path_EGREP"
  25481. @@ -9813,50 +10357,35 @@
  25482. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  25483. esac
  25484. -
  25485. - $ac_path_EGREP_found && break 3
  25486. + $ac_path_EGREP_found && break 3
  25487. + done
  25488. + done
  25489. done
  25490. -done
  25491. -
  25492. -done
  25493. IFS=$as_save_IFS
  25494. -
  25495. -
  25496. -fi
  25497. -
  25498. -EGREP="$ac_cv_path_EGREP"
  25499. -if test -z "$EGREP"; then
  25500. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  25501. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  25502. - { (exit 1); exit 1; }; }
  25503. -fi
  25504. -
  25505. + if test -z "$ac_cv_path_EGREP"; then
  25506. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  25507. + fi
  25508. else
  25509. ac_cv_path_EGREP=$EGREP
  25510. fi
  25511. -
  25512. fi
  25513. fi
  25514. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  25515. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  25516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  25517. +$as_echo "$ac_cv_path_EGREP" >&6; }
  25518. EGREP="$ac_cv_path_EGREP"
  25519. case $host_cpu in
  25520. c90 | t90)
  25521. - cat >conftest.$ac_ext <<_ACEOF
  25522. -/* confdefs.h. */
  25523. -_ACEOF
  25524. -cat confdefs.h >>conftest.$ac_ext
  25525. -cat >>conftest.$ac_ext <<_ACEOF
  25526. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25527. /* end confdefs.h. */
  25528. #ifdef _CRAYIEEE
  25529. yes
  25530. #endif
  25531. _ACEOF
  25532. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25533. - $EGREP "yes" >/dev/null 2>&1; then
  25534. + $EGREP "yes" >/dev/null 2>&1; then :
  25535. add_path="cray/ieee"
  25536. else
  25537. add_path="cray/cfp"; extra_functions="mulwwc90"
  25538. @@ -9909,21 +10438,21 @@
  25539. i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
  25540. if test "$ABI" = 32; then
  25541. case "$path $fat_path" in
  25542. - *mmx*) { echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
  25543. -echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6; }
  25544. -if test "${gmp_cv_asm_x86_mmx+set}" = set; then
  25545. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25546. + *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
  25547. +$as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
  25548. +if test "${gmp_cv_asm_x86_mmx+set}" = set; then :
  25549. + $as_echo_n "(cached) " >&6
  25550. else
  25551. cat >conftest.s <<EOF
  25552. .text
  25553. movq %mm0, %mm1
  25554. EOF
  25555. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  25556. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  25557. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  25558. (eval $gmp_assemble) 2>&5
  25559. ac_status=$?
  25560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25561. - (exit $ac_status); }; then
  25562. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25563. + test $ac_status = 0; }; then
  25564. cat conftest.out >&5
  25565. gmp_cv_asm_x86_mmx=yes
  25566. case $host in
  25567. @@ -9933,8 +10462,8 @@
  25568. gmp_cv_asm_x86_mmx=movq-bug
  25569. fi
  25570. else
  25571. - { echo "$as_me:$LINENO: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
  25572. -echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
  25573. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
  25574. +$as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
  25575. fi
  25576. esac
  25577. else
  25578. @@ -9946,45 +10475,45 @@
  25579. rm -f conftest*
  25580. fi
  25581. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_mmx" >&5
  25582. -echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6; }
  25583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
  25584. +$as_echo "$gmp_cv_asm_x86_mmx" >&6; }
  25585. case $gmp_cv_asm_x86_mmx in
  25586. movq-bug)
  25587. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25588. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25589. - { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
  25590. -echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25591. - { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but the assembler" >&5
  25592. -echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
  25593. - { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25594. -echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25595. - { echo "$as_me:$LINENO: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
  25596. -echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
  25597. - { echo "$as_me:$LINENO: WARNING: | movq operands are reversed." >&5
  25598. -echo "$as_me: WARNING: | movq operands are reversed." >&2;}
  25599. - { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
  25600. -echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
  25601. - { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
  25602. -echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25603. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25604. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25605. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25606. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25607. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
  25608. +$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25609. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
  25610. +$as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
  25611. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25612. +$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25613. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
  25614. +$as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
  25615. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
  25616. +$as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
  25617. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
  25618. +$as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
  25619. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
  25620. +$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25621. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25622. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25623. ;;
  25624. no)
  25625. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25626. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25627. - { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
  25628. -echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25629. - { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
  25630. -echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
  25631. - { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25632. -echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25633. - { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
  25634. -echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
  25635. - { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
  25636. -echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25637. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25638. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25639. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25640. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25641. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
  25642. +$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25643. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
  25644. +$as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
  25645. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25646. +$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25647. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
  25648. +$as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
  25649. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
  25650. +$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25651. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25652. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25653. ;;
  25654. esac
  25655. if test "$gmp_cv_asm_x86_mmx" = yes; then
  25656. @@ -10013,21 +10542,21 @@
  25657. ;;
  25658. esac
  25659. case "$path $fat_path" in
  25660. - *sse2*) { echo "$as_me:$LINENO: checking if the assembler knows about SSE2 instructions" >&5
  25661. -echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6; }
  25662. -if test "${gmp_cv_asm_x86_sse2+set}" = set; then
  25663. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25664. + *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
  25665. +$as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
  25666. +if test "${gmp_cv_asm_x86_sse2+set}" = set; then :
  25667. + $as_echo_n "(cached) " >&6
  25668. else
  25669. cat >conftest.s <<EOF
  25670. .text
  25671. paddq %mm0, %mm1
  25672. EOF
  25673. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  25674. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  25675. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  25676. (eval $gmp_assemble) 2>&5
  25677. ac_status=$?
  25678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25679. - (exit $ac_status); }; then
  25680. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25681. + test $ac_status = 0; }; then
  25682. cat conftest.out >&5
  25683. gmp_cv_asm_x86_sse2=yes
  25684. else
  25685. @@ -10040,27 +10569,27 @@
  25686. fi
  25687. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_sse2" >&5
  25688. -echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6; }
  25689. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
  25690. +$as_echo "$gmp_cv_asm_x86_sse2" >&6; }
  25691. case $gmp_cv_asm_x86_sse2 in
  25692. yes)
  25693. :
  25694. ;;
  25695. *)
  25696. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25697. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25698. - { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
  25699. -echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25700. - { echo "$as_me:$LINENO: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
  25701. -echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
  25702. - { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25703. -echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25704. - { echo "$as_me:$LINENO: WARNING: | Non-SSE2 replacements will be used." >&5
  25705. -echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
  25706. - { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
  25707. -echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25708. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  25709. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25710. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25711. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25712. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
  25713. +$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
  25714. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
  25715. +$as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
  25716. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
  25717. +$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
  25718. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
  25719. +$as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
  25720. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
  25721. +$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
  25722. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  25723. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  25724. tmp_path=
  25725. for i in $path; do
  25726. case $i in
  25727. @@ -10112,36 +10641,28 @@
  25728. # Automake ansi2knr support.
  25729. -{ echo "$as_me:$LINENO: checking for function prototypes" >&5
  25730. -echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
  25731. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  25732. +$as_echo_n "checking for function prototypes... " >&6; }
  25733. if test "$ac_cv_prog_cc_c89" != no; then
  25734. - { echo "$as_me:$LINENO: result: yes" >&5
  25735. -echo "${ECHO_T}yes" >&6; }
  25736. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25737. +$as_echo "yes" >&6; }
  25738. -cat >>confdefs.h <<\_ACEOF
  25739. -#define PROTOTYPES 1
  25740. -_ACEOF
  25741. +$as_echo "#define PROTOTYPES 1" >>confdefs.h
  25742. -cat >>confdefs.h <<\_ACEOF
  25743. -#define __PROTOTYPES 1
  25744. -_ACEOF
  25745. +$as_echo "#define __PROTOTYPES 1" >>confdefs.h
  25746. else
  25747. - { echo "$as_me:$LINENO: result: no" >&5
  25748. -echo "${ECHO_T}no" >&6; }
  25749. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25750. +$as_echo "no" >&6; }
  25751. fi
  25752. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  25753. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  25754. -if test "${ac_cv_header_stdc+set}" = set; then
  25755. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25757. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25758. +if test "${ac_cv_header_stdc+set}" = set; then :
  25759. + $as_echo_n "(cached) " >&6
  25760. else
  25761. - cat >conftest.$ac_ext <<_ACEOF
  25762. -/* confdefs.h. */
  25763. -_ACEOF
  25764. -cat confdefs.h >>conftest.$ac_ext
  25765. -cat >>conftest.$ac_ext <<_ACEOF
  25766. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25767. /* end confdefs.h. */
  25768. #include <stdlib.h>
  25769. #include <stdarg.h>
  25770. @@ -10156,47 +10677,23 @@
  25771. return 0;
  25772. }
  25773. _ACEOF
  25774. -rm -f conftest.$ac_objext
  25775. -if { (ac_try="$ac_compile"
  25776. -case "(($ac_try" in
  25777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25778. - *) ac_try_echo=$ac_try;;
  25779. -esac
  25780. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25781. - (eval "$ac_compile") 2>conftest.er1
  25782. - ac_status=$?
  25783. - grep -v '^ *+' conftest.er1 >conftest.err
  25784. - rm -f conftest.er1
  25785. - cat conftest.err >&5
  25786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25787. - (exit $ac_status); } && {
  25788. - test -z "$ac_c_werror_flag" ||
  25789. - test ! -s conftest.err
  25790. - } && test -s conftest.$ac_objext; then
  25791. +if ac_fn_c_try_compile "$LINENO"; then :
  25792. ac_cv_header_stdc=yes
  25793. else
  25794. - echo "$as_me: failed program was:" >&5
  25795. -sed 's/^/| /' conftest.$ac_ext >&5
  25796. -
  25797. - ac_cv_header_stdc=no
  25798. + ac_cv_header_stdc=no
  25799. fi
  25800. -
  25801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25802. if test $ac_cv_header_stdc = yes; then
  25803. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25804. - cat >conftest.$ac_ext <<_ACEOF
  25805. -/* confdefs.h. */
  25806. -_ACEOF
  25807. -cat confdefs.h >>conftest.$ac_ext
  25808. -cat >>conftest.$ac_ext <<_ACEOF
  25809. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25810. /* end confdefs.h. */
  25811. #include <string.h>
  25812. _ACEOF
  25813. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25814. - $EGREP "memchr" >/dev/null 2>&1; then
  25815. - :
  25816. + $EGREP "memchr" >/dev/null 2>&1; then :
  25817. +
  25818. else
  25819. ac_cv_header_stdc=no
  25820. fi
  25821. @@ -10206,18 +10703,14 @@
  25822. if test $ac_cv_header_stdc = yes; then
  25823. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25824. - cat >conftest.$ac_ext <<_ACEOF
  25825. -/* confdefs.h. */
  25826. -_ACEOF
  25827. -cat confdefs.h >>conftest.$ac_ext
  25828. -cat >>conftest.$ac_ext <<_ACEOF
  25829. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25830. /* end confdefs.h. */
  25831. #include <stdlib.h>
  25832. _ACEOF
  25833. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25834. - $EGREP "free" >/dev/null 2>&1; then
  25835. - :
  25836. + $EGREP "free" >/dev/null 2>&1; then :
  25837. +
  25838. else
  25839. ac_cv_header_stdc=no
  25840. fi
  25841. @@ -10227,14 +10720,10 @@
  25842. if test $ac_cv_header_stdc = yes; then
  25843. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25844. - if test "$cross_compiling" = yes; then
  25845. + if test "$cross_compiling" = yes; then :
  25846. :
  25847. else
  25848. - cat >conftest.$ac_ext <<_ACEOF
  25849. -/* confdefs.h. */
  25850. -_ACEOF
  25851. -cat confdefs.h >>conftest.$ac_ext
  25852. -cat >>conftest.$ac_ext <<_ACEOF
  25853. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25854. /* end confdefs.h. */
  25855. #include <ctype.h>
  25856. #include <stdlib.h>
  25857. @@ -10261,113 +10750,36 @@
  25858. return 0;
  25859. }
  25860. _ACEOF
  25861. -rm -f conftest$ac_exeext
  25862. -if { (ac_try="$ac_link"
  25863. -case "(($ac_try" in
  25864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25865. - *) ac_try_echo=$ac_try;;
  25866. -esac
  25867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25868. - (eval "$ac_link") 2>&5
  25869. - ac_status=$?
  25870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25871. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25872. - { (case "(($ac_try" in
  25873. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25874. - *) ac_try_echo=$ac_try;;
  25875. -esac
  25876. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25877. - (eval "$ac_try") 2>&5
  25878. - ac_status=$?
  25879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25880. - (exit $ac_status); }; }; then
  25881. - :
  25882. -else
  25883. - echo "$as_me: program exited with status $ac_status" >&5
  25884. -echo "$as_me: failed program was:" >&5
  25885. -sed 's/^/| /' conftest.$ac_ext >&5
  25886. +if ac_fn_c_try_run "$LINENO"; then :
  25887. -( exit $ac_status )
  25888. -ac_cv_header_stdc=no
  25889. +else
  25890. + ac_cv_header_stdc=no
  25891. fi
  25892. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25893. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25894. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25895. fi
  25896. -
  25897. fi
  25898. fi
  25899. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  25900. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  25901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25902. +$as_echo "$ac_cv_header_stdc" >&6; }
  25903. if test $ac_cv_header_stdc = yes; then
  25904. -cat >>confdefs.h <<\_ACEOF
  25905. -#define STDC_HEADERS 1
  25906. -_ACEOF
  25907. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25908. fi
  25909. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25910. -
  25911. -
  25912. -
  25913. -
  25914. -
  25915. -
  25916. -
  25917. -
  25918. -
  25919. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25920. inttypes.h stdint.h unistd.h
  25921. -do
  25922. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25923. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  25924. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25925. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25926. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25927. -else
  25928. - cat >conftest.$ac_ext <<_ACEOF
  25929. -/* confdefs.h. */
  25930. -_ACEOF
  25931. -cat confdefs.h >>conftest.$ac_ext
  25932. -cat >>conftest.$ac_ext <<_ACEOF
  25933. -/* end confdefs.h. */
  25934. -$ac_includes_default
  25935. -
  25936. -#include <$ac_header>
  25937. -_ACEOF
  25938. -rm -f conftest.$ac_objext
  25939. -if { (ac_try="$ac_compile"
  25940. -case "(($ac_try" in
  25941. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25942. - *) ac_try_echo=$ac_try;;
  25943. -esac
  25944. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25945. - (eval "$ac_compile") 2>conftest.er1
  25946. - ac_status=$?
  25947. - grep -v '^ *+' conftest.er1 >conftest.err
  25948. - rm -f conftest.er1
  25949. - cat conftest.err >&5
  25950. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25951. - (exit $ac_status); } && {
  25952. - test -z "$ac_c_werror_flag" ||
  25953. - test ! -s conftest.err
  25954. - } && test -s conftest.$ac_objext; then
  25955. - eval "$as_ac_Header=yes"
  25956. -else
  25957. - echo "$as_me: failed program was:" >&5
  25958. -sed 's/^/| /' conftest.$ac_ext >&5
  25959. -
  25960. - eval "$as_ac_Header=no"
  25961. -fi
  25962. -
  25963. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25964. -fi
  25965. -ac_res=`eval echo '${'$as_ac_Header'}'`
  25966. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  25967. -echo "${ECHO_T}$ac_res" >&6; }
  25968. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25969. +do :
  25970. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25971. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25972. +"
  25973. +eval as_val=\$$as_ac_Header
  25974. + if test "x$as_val" = x""yes; then :
  25975. cat >>confdefs.h <<_ACEOF
  25976. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25977. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25978. _ACEOF
  25979. fi
  25980. @@ -10383,145 +10795,12 @@
  25981. fi
  25982. # Ensure some checks needed by ansi2knr itself.
  25983. -
  25984. for ac_header in string.h
  25985. -do
  25986. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25987. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25988. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25989. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25990. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25991. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25992. -fi
  25993. -ac_res=`eval echo '${'$as_ac_Header'}'`
  25994. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  25995. -echo "${ECHO_T}$ac_res" >&6; }
  25996. -else
  25997. - # Is the header compilable?
  25998. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25999. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26000. -cat >conftest.$ac_ext <<_ACEOF
  26001. -/* confdefs.h. */
  26002. -_ACEOF
  26003. -cat confdefs.h >>conftest.$ac_ext
  26004. -cat >>conftest.$ac_ext <<_ACEOF
  26005. -/* end confdefs.h. */
  26006. -$ac_includes_default
  26007. -#include <$ac_header>
  26008. -_ACEOF
  26009. -rm -f conftest.$ac_objext
  26010. -if { (ac_try="$ac_compile"
  26011. -case "(($ac_try" in
  26012. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26013. - *) ac_try_echo=$ac_try;;
  26014. -esac
  26015. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26016. - (eval "$ac_compile") 2>conftest.er1
  26017. - ac_status=$?
  26018. - grep -v '^ *+' conftest.er1 >conftest.err
  26019. - rm -f conftest.er1
  26020. - cat conftest.err >&5
  26021. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26022. - (exit $ac_status); } && {
  26023. - test -z "$ac_c_werror_flag" ||
  26024. - test ! -s conftest.err
  26025. - } && test -s conftest.$ac_objext; then
  26026. - ac_header_compiler=yes
  26027. -else
  26028. - echo "$as_me: failed program was:" >&5
  26029. -sed 's/^/| /' conftest.$ac_ext >&5
  26030. -
  26031. - ac_header_compiler=no
  26032. -fi
  26033. -
  26034. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26035. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26036. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  26037. -
  26038. -# Is the header present?
  26039. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26040. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26041. -cat >conftest.$ac_ext <<_ACEOF
  26042. -/* confdefs.h. */
  26043. -_ACEOF
  26044. -cat confdefs.h >>conftest.$ac_ext
  26045. -cat >>conftest.$ac_ext <<_ACEOF
  26046. -/* end confdefs.h. */
  26047. -#include <$ac_header>
  26048. -_ACEOF
  26049. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  26050. -case "(($ac_try" in
  26051. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26052. - *) ac_try_echo=$ac_try;;
  26053. -esac
  26054. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26055. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26056. - ac_status=$?
  26057. - grep -v '^ *+' conftest.er1 >conftest.err
  26058. - rm -f conftest.er1
  26059. - cat conftest.err >&5
  26060. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26061. - (exit $ac_status); } >/dev/null && {
  26062. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26063. - test ! -s conftest.err
  26064. - }; then
  26065. - ac_header_preproc=yes
  26066. -else
  26067. - echo "$as_me: failed program was:" >&5
  26068. -sed 's/^/| /' conftest.$ac_ext >&5
  26069. -
  26070. - ac_header_preproc=no
  26071. -fi
  26072. -
  26073. -rm -f conftest.err conftest.$ac_ext
  26074. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26075. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  26076. -
  26077. -# So? What about this header?
  26078. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26079. - yes:no: )
  26080. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26081. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26082. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26083. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26084. - ac_header_preproc=yes
  26085. - ;;
  26086. - no:yes:* )
  26087. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26088. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26089. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26090. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26091. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26092. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26093. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26094. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26095. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26096. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26097. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26098. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26099. - ( cat <<\_ASBOX
  26100. -## ---------------------------------- ##
  26101. -## Report this to gmp-bugs@gmplib.org ##
  26102. -## ---------------------------------- ##
  26103. -_ASBOX
  26104. - ) | sed "s/^/$as_me: WARNING: /" >&2
  26105. - ;;
  26106. -esac
  26107. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  26108. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26109. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26110. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26111. -else
  26112. - eval "$as_ac_Header=\$ac_header_preproc"
  26113. -fi
  26114. -ac_res=`eval echo '${'$as_ac_Header'}'`
  26115. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  26116. -echo "${ECHO_T}$ac_res" >&6; }
  26117. -
  26118. -fi
  26119. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26120. +do :
  26121. + ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  26122. +if test "x$ac_cv_header_string_h" = x""yes; then :
  26123. cat >>confdefs.h <<_ACEOF
  26124. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26125. +#define HAVE_STRING_H 1
  26126. _ACEOF
  26127. fi
  26128. @@ -10531,29 +10810,29 @@
  26129. -{ echo "$as_me:$LINENO: checking whether assembler supports --noexecstack option" >&5
  26130. -echo $ECHO_N "checking whether assembler supports --noexecstack option... $ECHO_C" >&6; }
  26131. -if test "${cl_cv_as_noexecstack+set}" = set; then
  26132. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
  26134. +$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
  26135. +if test "${cl_cv_as_noexecstack+set}" = set; then :
  26136. + $as_echo_n "(cached) " >&6
  26137. else
  26138. cat > conftest.c <<EOF
  26139. void foo() {}
  26140. EOF
  26141. if { ac_try='${CC} $CFLAGS $CPPFLAGS
  26142. -S -o conftest.s conftest.c >/dev/null'
  26143. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26144. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  26145. (eval $ac_try) 2>&5
  26146. ac_status=$?
  26147. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26148. - (exit $ac_status); }; } \
  26149. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26150. + test $ac_status = 0; }; } \
  26151. && grep .note.GNU-stack conftest.s >/dev/null \
  26152. && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
  26153. -c -o conftest.o conftest.s >/dev/null'
  26154. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26155. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  26156. (eval $ac_try) 2>&5
  26157. ac_status=$?
  26158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26159. - (exit $ac_status); }; }
  26160. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26161. + test $ac_status = 0; }; }
  26162. then
  26163. cl_cv_as_noexecstack=yes
  26164. else
  26165. @@ -10561,8 +10840,8 @@
  26166. fi
  26167. rm -f conftest*
  26168. fi
  26169. -{ echo "$as_me:$LINENO: result: $cl_cv_as_noexecstack" >&5
  26170. -echo "${ECHO_T}$cl_cv_as_noexecstack" >&6; }
  26171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
  26172. +$as_echo "$cl_cv_as_noexecstack" >&6; }
  26173. if test "$cl_cv_as_noexecstack" = yes; then
  26174. ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
  26175. fi
  26176. @@ -10574,10 +10853,10 @@
  26177. if test -n "$ac_tool_prefix"; then
  26178. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  26179. set dummy ${ac_tool_prefix}ar; ac_word=$2
  26180. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26181. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26182. -if test "${ac_cv_prog_AR+set}" = set; then
  26183. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26185. +$as_echo_n "checking for $ac_word... " >&6; }
  26186. +if test "${ac_cv_prog_AR+set}" = set; then :
  26187. + $as_echo_n "(cached) " >&6
  26188. else
  26189. if test -n "$AR"; then
  26190. ac_cv_prog_AR="$AR" # Let the user override the test.
  26191. @@ -10587,25 +10866,25 @@
  26192. do
  26193. IFS=$as_save_IFS
  26194. test -z "$as_dir" && as_dir=.
  26195. - for ac_exec_ext in '' $ac_executable_extensions; do
  26196. + for ac_exec_ext in '' $ac_executable_extensions; do
  26197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26198. ac_cv_prog_AR="${ac_tool_prefix}ar"
  26199. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26200. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26201. break 2
  26202. fi
  26203. done
  26204. -done
  26205. + done
  26206. IFS=$as_save_IFS
  26207. fi
  26208. fi
  26209. AR=$ac_cv_prog_AR
  26210. if test -n "$AR"; then
  26211. - { echo "$as_me:$LINENO: result: $AR" >&5
  26212. -echo "${ECHO_T}$AR" >&6; }
  26213. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  26214. +$as_echo "$AR" >&6; }
  26215. else
  26216. - { echo "$as_me:$LINENO: result: no" >&5
  26217. -echo "${ECHO_T}no" >&6; }
  26218. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26219. +$as_echo "no" >&6; }
  26220. fi
  26221. @@ -10614,10 +10893,10 @@
  26222. ac_ct_AR=$AR
  26223. # Extract the first word of "ar", so it can be a program name with args.
  26224. set dummy ar; ac_word=$2
  26225. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26226. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26227. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  26228. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26230. +$as_echo_n "checking for $ac_word... " >&6; }
  26231. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  26232. + $as_echo_n "(cached) " >&6
  26233. else
  26234. if test -n "$ac_ct_AR"; then
  26235. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  26236. @@ -10627,25 +10906,25 @@
  26237. do
  26238. IFS=$as_save_IFS
  26239. test -z "$as_dir" && as_dir=.
  26240. - for ac_exec_ext in '' $ac_executable_extensions; do
  26241. + for ac_exec_ext in '' $ac_executable_extensions; do
  26242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26243. ac_cv_prog_ac_ct_AR="ar"
  26244. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26245. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26246. break 2
  26247. fi
  26248. done
  26249. -done
  26250. + done
  26251. IFS=$as_save_IFS
  26252. fi
  26253. fi
  26254. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  26255. if test -n "$ac_ct_AR"; then
  26256. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  26257. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  26258. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  26259. +$as_echo "$ac_ct_AR" >&6; }
  26260. else
  26261. - { echo "$as_me:$LINENO: result: no" >&5
  26262. -echo "${ECHO_T}no" >&6; }
  26263. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26264. +$as_echo "no" >&6; }
  26265. fi
  26266. if test "x$ac_ct_AR" = x; then
  26267. @@ -10653,12 +10932,8 @@
  26268. else
  26269. case $cross_compiling:$ac_tool_warned in
  26270. yes:)
  26271. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  26272. -whose name does not start with the host triplet. If you think this
  26273. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  26274. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  26275. -whose name does not start with the host triplet. If you think this
  26276. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  26277. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26278. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26279. ac_tool_warned=yes ;;
  26280. esac
  26281. AR=$ac_ct_AR
  26282. @@ -10671,13 +10946,13 @@
  26283. eval arflags=\"\$ar${abi1}_flags\"
  26284. test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
  26285. if test -n "$arflags"; then
  26286. - { echo "$as_me:$LINENO: checking for extra ar flags" >&5
  26287. -echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6; }
  26288. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
  26289. +$as_echo_n "checking for extra ar flags... " >&6; }
  26290. AR="$AR $arflags"
  26291. ac_cv_prog_AR="$AR $arflags"
  26292. ac_cv_prog_ac_ct_AR="$AR $arflags"
  26293. - { echo "$as_me:$LINENO: result: $arflags" >&5
  26294. -echo "${ECHO_T}$arflags" >&6; }
  26295. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
  26296. +$as_echo "$arflags" >&6; }
  26297. fi
  26298. fi
  26299. if test -z "$AR_FLAGS"; then
  26300. @@ -10686,10 +10961,10 @@
  26301. gmp_user_NM=$NM
  26302. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  26303. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  26304. -if test "${lt_cv_path_NM+set}" = set; then
  26305. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26306. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  26307. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  26308. +if test "${lt_cv_path_NM+set}" = set; then :
  26309. + $as_echo_n "(cached) " >&6
  26310. else
  26311. if test -n "$NM"; then
  26312. # Let the user override the test.
  26313. @@ -10732,91 +11007,362 @@
  26314. done
  26315. IFS="$lt_save_ifs"
  26316. done
  26317. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  26318. + : ${lt_cv_path_NM=no}
  26319. fi
  26320. fi
  26321. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  26322. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  26323. -NM="$lt_cv_path_NM"
  26324. -
  26325. -
  26326. -# FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
  26327. -# defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
  26328. -# case run it again to try the native "nm", firstly so that likely locations
  26329. -# are searched, secondly so that -B or -p are added if necessary for BSD
  26330. -# format. This is necessary for instance on OSF with "./configure
  26331. -# --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
  26332. -#
  26333. -if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
  26334. - $as_unset lt_cv_path_NM
  26335. - gmp_save_ac_tool_prefix=$ac_tool_prefix
  26336. - ac_tool_prefix=
  26337. - NM=
  26338. - { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  26339. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  26340. -if test "${lt_cv_path_NM+set}" = set; then
  26341. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26342. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  26343. +$as_echo "$lt_cv_path_NM" >&6; }
  26344. +if test "$lt_cv_path_NM" != "no"; then
  26345. + NM="$lt_cv_path_NM"
  26346. else
  26347. - if test -n "$NM"; then
  26348. - # Let the user override the test.
  26349. - lt_cv_path_NM="$NM"
  26350. + # Didn't find any BSD compatible name lister, look for dumpbin.
  26351. + if test -n "$ac_tool_prefix"; then
  26352. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26353. + do
  26354. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  26355. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  26356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26357. +$as_echo_n "checking for $ac_word... " >&6; }
  26358. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  26359. + $as_echo_n "(cached) " >&6
  26360. else
  26361. - lt_nm_to_check="${ac_tool_prefix}nm"
  26362. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  26363. - lt_nm_to_check="$lt_nm_to_check nm"
  26364. + if test -n "$DUMPBIN"; then
  26365. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  26366. +else
  26367. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26368. +for as_dir in $PATH
  26369. +do
  26370. + IFS=$as_save_IFS
  26371. + test -z "$as_dir" && as_dir=.
  26372. + for ac_exec_ext in '' $ac_executable_extensions; do
  26373. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26374. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  26375. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26376. + break 2
  26377. fi
  26378. - for lt_tmp_nm in $lt_nm_to_check; do
  26379. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26380. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  26381. - IFS="$lt_save_ifs"
  26382. - test -z "$ac_dir" && ac_dir=.
  26383. - tmp_nm="$ac_dir/$lt_tmp_nm"
  26384. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  26385. - # Check to see if the nm accepts a BSD-compat flag.
  26386. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  26387. - # nm: unknown option "B" ignored
  26388. - # Tru64's nm complains that /dev/null is an invalid object file
  26389. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  26390. - */dev/null* | *'Invalid file or object type'*)
  26391. - lt_cv_path_NM="$tmp_nm -B"
  26392. - break
  26393. - ;;
  26394. - *)
  26395. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  26396. - */dev/null*)
  26397. - lt_cv_path_NM="$tmp_nm -p"
  26398. - break
  26399. - ;;
  26400. - *)
  26401. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  26402. - continue # so that we can try to find one that supports BSD flags
  26403. - ;;
  26404. - esac
  26405. - ;;
  26406. - esac
  26407. - fi
  26408. - done
  26409. - IFS="$lt_save_ifs"
  26410. +done
  26411. done
  26412. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  26413. +IFS=$as_save_IFS
  26414. +
  26415. fi
  26416. fi
  26417. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  26418. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  26419. -NM="$lt_cv_path_NM"
  26420. -
  26421. - ac_tool_prefix=$gmp_save_ac_tool_prefix
  26422. +DUMPBIN=$ac_cv_prog_DUMPBIN
  26423. +if test -n "$DUMPBIN"; then
  26424. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  26425. +$as_echo "$DUMPBIN" >&6; }
  26426. +else
  26427. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26428. +$as_echo "no" >&6; }
  26429. fi
  26430. -if test -z "$gmp_user_NM"; then
  26431. - eval nmflags=\"\$nm${abi1}_flags\"
  26432. - test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
  26433. - if test -n "$nmflags"; then
  26434. - { echo "$as_me:$LINENO: checking for extra nm flags" >&5
  26435. -echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6; }
  26436. +
  26437. + test -n "$DUMPBIN" && break
  26438. + done
  26439. +fi
  26440. +if test -z "$DUMPBIN"; then
  26441. + ac_ct_DUMPBIN=$DUMPBIN
  26442. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26443. +do
  26444. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  26445. +set dummy $ac_prog; ac_word=$2
  26446. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26447. +$as_echo_n "checking for $ac_word... " >&6; }
  26448. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  26449. + $as_echo_n "(cached) " >&6
  26450. +else
  26451. + if test -n "$ac_ct_DUMPBIN"; then
  26452. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  26453. +else
  26454. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26455. +for as_dir in $PATH
  26456. +do
  26457. + IFS=$as_save_IFS
  26458. + test -z "$as_dir" && as_dir=.
  26459. + for ac_exec_ext in '' $ac_executable_extensions; do
  26460. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26461. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  26462. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26463. + break 2
  26464. + fi
  26465. +done
  26466. + done
  26467. +IFS=$as_save_IFS
  26468. +
  26469. +fi
  26470. +fi
  26471. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  26472. +if test -n "$ac_ct_DUMPBIN"; then
  26473. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  26474. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  26475. +else
  26476. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26477. +$as_echo "no" >&6; }
  26478. +fi
  26479. +
  26480. +
  26481. + test -n "$ac_ct_DUMPBIN" && break
  26482. +done
  26483. +
  26484. + if test "x$ac_ct_DUMPBIN" = x; then
  26485. + DUMPBIN=":"
  26486. + else
  26487. + case $cross_compiling:$ac_tool_warned in
  26488. +yes:)
  26489. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26490. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26491. +ac_tool_warned=yes ;;
  26492. +esac
  26493. + DUMPBIN=$ac_ct_DUMPBIN
  26494. + fi
  26495. +fi
  26496. +
  26497. +
  26498. + if test "$DUMPBIN" != ":"; then
  26499. + NM="$DUMPBIN"
  26500. + fi
  26501. +fi
  26502. +test -z "$NM" && NM=nm
  26503. +
  26504. +
  26505. +
  26506. +
  26507. +
  26508. +
  26509. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  26510. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  26511. +if test "${lt_cv_nm_interface+set}" = set; then :
  26512. + $as_echo_n "(cached) " >&6
  26513. +else
  26514. + lt_cv_nm_interface="BSD nm"
  26515. + echo "int some_variable = 0;" > conftest.$ac_ext
  26516. + (eval echo "\"\$as_me:11138: $ac_compile\"" >&5)
  26517. + (eval "$ac_compile" 2>conftest.err)
  26518. + cat conftest.err >&5
  26519. + (eval echo "\"\$as_me:11141: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  26520. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  26521. + cat conftest.err >&5
  26522. + (eval echo "\"\$as_me:11144: output\"" >&5)
  26523. + cat conftest.out >&5
  26524. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  26525. + lt_cv_nm_interface="MS dumpbin"
  26526. + fi
  26527. + rm -f conftest*
  26528. +fi
  26529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  26530. +$as_echo "$lt_cv_nm_interface" >&6; }
  26531. +
  26532. +
  26533. +# FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
  26534. +# defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
  26535. +# case run it again to try the native "nm", firstly so that likely locations
  26536. +# are searched, secondly so that -B or -p are added if necessary for BSD
  26537. +# format. This is necessary for instance on OSF with "./configure
  26538. +# --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
  26539. +#
  26540. +if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
  26541. + $as_unset lt_cv_path_NM
  26542. + gmp_save_ac_tool_prefix=$ac_tool_prefix
  26543. + ac_tool_prefix=
  26544. + NM=
  26545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  26546. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  26547. +if test "${lt_cv_path_NM+set}" = set; then :
  26548. + $as_echo_n "(cached) " >&6
  26549. +else
  26550. + if test -n "$NM"; then
  26551. + # Let the user override the test.
  26552. + lt_cv_path_NM="$NM"
  26553. +else
  26554. + lt_nm_to_check="${ac_tool_prefix}nm"
  26555. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  26556. + lt_nm_to_check="$lt_nm_to_check nm"
  26557. + fi
  26558. + for lt_tmp_nm in $lt_nm_to_check; do
  26559. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26560. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  26561. + IFS="$lt_save_ifs"
  26562. + test -z "$ac_dir" && ac_dir=.
  26563. + tmp_nm="$ac_dir/$lt_tmp_nm"
  26564. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  26565. + # Check to see if the nm accepts a BSD-compat flag.
  26566. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  26567. + # nm: unknown option "B" ignored
  26568. + # Tru64's nm complains that /dev/null is an invalid object file
  26569. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  26570. + */dev/null* | *'Invalid file or object type'*)
  26571. + lt_cv_path_NM="$tmp_nm -B"
  26572. + break
  26573. + ;;
  26574. + *)
  26575. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  26576. + */dev/null*)
  26577. + lt_cv_path_NM="$tmp_nm -p"
  26578. + break
  26579. + ;;
  26580. + *)
  26581. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  26582. + continue # so that we can try to find one that supports BSD flags
  26583. + ;;
  26584. + esac
  26585. + ;;
  26586. + esac
  26587. + fi
  26588. + done
  26589. + IFS="$lt_save_ifs"
  26590. + done
  26591. + : ${lt_cv_path_NM=no}
  26592. +fi
  26593. +fi
  26594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  26595. +$as_echo "$lt_cv_path_NM" >&6; }
  26596. +if test "$lt_cv_path_NM" != "no"; then
  26597. + NM="$lt_cv_path_NM"
  26598. +else
  26599. + # Didn't find any BSD compatible name lister, look for dumpbin.
  26600. + if test -n "$ac_tool_prefix"; then
  26601. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26602. + do
  26603. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  26604. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  26605. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26606. +$as_echo_n "checking for $ac_word... " >&6; }
  26607. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  26608. + $as_echo_n "(cached) " >&6
  26609. +else
  26610. + if test -n "$DUMPBIN"; then
  26611. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  26612. +else
  26613. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26614. +for as_dir in $PATH
  26615. +do
  26616. + IFS=$as_save_IFS
  26617. + test -z "$as_dir" && as_dir=.
  26618. + for ac_exec_ext in '' $ac_executable_extensions; do
  26619. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26620. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  26621. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26622. + break 2
  26623. + fi
  26624. +done
  26625. + done
  26626. +IFS=$as_save_IFS
  26627. +
  26628. +fi
  26629. +fi
  26630. +DUMPBIN=$ac_cv_prog_DUMPBIN
  26631. +if test -n "$DUMPBIN"; then
  26632. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  26633. +$as_echo "$DUMPBIN" >&6; }
  26634. +else
  26635. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26636. +$as_echo "no" >&6; }
  26637. +fi
  26638. +
  26639. +
  26640. + test -n "$DUMPBIN" && break
  26641. + done
  26642. +fi
  26643. +if test -z "$DUMPBIN"; then
  26644. + ac_ct_DUMPBIN=$DUMPBIN
  26645. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26646. +do
  26647. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  26648. +set dummy $ac_prog; ac_word=$2
  26649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26650. +$as_echo_n "checking for $ac_word... " >&6; }
  26651. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  26652. + $as_echo_n "(cached) " >&6
  26653. +else
  26654. + if test -n "$ac_ct_DUMPBIN"; then
  26655. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  26656. +else
  26657. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26658. +for as_dir in $PATH
  26659. +do
  26660. + IFS=$as_save_IFS
  26661. + test -z "$as_dir" && as_dir=.
  26662. + for ac_exec_ext in '' $ac_executable_extensions; do
  26663. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26664. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  26665. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26666. + break 2
  26667. + fi
  26668. +done
  26669. + done
  26670. +IFS=$as_save_IFS
  26671. +
  26672. +fi
  26673. +fi
  26674. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  26675. +if test -n "$ac_ct_DUMPBIN"; then
  26676. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  26677. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  26678. +else
  26679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26680. +$as_echo "no" >&6; }
  26681. +fi
  26682. +
  26683. +
  26684. + test -n "$ac_ct_DUMPBIN" && break
  26685. +done
  26686. +
  26687. + if test "x$ac_ct_DUMPBIN" = x; then
  26688. + DUMPBIN=":"
  26689. + else
  26690. + case $cross_compiling:$ac_tool_warned in
  26691. +yes:)
  26692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26693. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26694. +ac_tool_warned=yes ;;
  26695. +esac
  26696. + DUMPBIN=$ac_ct_DUMPBIN
  26697. + fi
  26698. +fi
  26699. +
  26700. +
  26701. + if test "$DUMPBIN" != ":"; then
  26702. + NM="$DUMPBIN"
  26703. + fi
  26704. +fi
  26705. +test -z "$NM" && NM=nm
  26706. +
  26707. +
  26708. +
  26709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  26710. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  26711. +if test "${lt_cv_nm_interface+set}" = set; then :
  26712. + $as_echo_n "(cached) " >&6
  26713. +else
  26714. + lt_cv_nm_interface="BSD nm"
  26715. + echo "int some_variable = 0;" > conftest.$ac_ext
  26716. + (eval echo "\"\$as_me:11338: $ac_compile\"" >&5)
  26717. + (eval "$ac_compile" 2>conftest.err)
  26718. + cat conftest.err >&5
  26719. + (eval echo "\"\$as_me:11341: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  26720. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  26721. + cat conftest.err >&5
  26722. + (eval echo "\"\$as_me:11344: output\"" >&5)
  26723. + cat conftest.out >&5
  26724. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  26725. + lt_cv_nm_interface="MS dumpbin"
  26726. + fi
  26727. + rm -f conftest*
  26728. +fi
  26729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  26730. +$as_echo "$lt_cv_nm_interface" >&6; }
  26731. +
  26732. + ac_tool_prefix=$gmp_save_ac_tool_prefix
  26733. +fi
  26734. +
  26735. +if test -z "$gmp_user_NM"; then
  26736. + eval nmflags=\"\$nm${abi1}_flags\"
  26737. + test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
  26738. + if test -n "$nmflags"; then
  26739. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
  26740. +$as_echo_n "checking for extra nm flags... " >&6; }
  26741. NM="$NM $nmflags"
  26742. - { echo "$as_me:$LINENO: result: $nmflags" >&5
  26743. -echo "${ECHO_T}$nmflags" >&6; }
  26744. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
  26745. +$as_echo "$nmflags" >&6; }
  26746. fi
  26747. fi
  26748. @@ -10840,28 +11386,326 @@
  26749. # Configs for Windows DLLs.
  26750. +enable_win32_dll=yes
  26751. +case $host in
  26752. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  26753. + if test -n "$ac_tool_prefix"; then
  26754. + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  26755. +set dummy ${ac_tool_prefix}as; ac_word=$2
  26756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26757. +$as_echo_n "checking for $ac_word... " >&6; }
  26758. +if test "${ac_cv_prog_AS+set}" = set; then :
  26759. + $as_echo_n "(cached) " >&6
  26760. +else
  26761. + if test -n "$AS"; then
  26762. + ac_cv_prog_AS="$AS" # Let the user override the test.
  26763. +else
  26764. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26765. +for as_dir in $PATH
  26766. +do
  26767. + IFS=$as_save_IFS
  26768. + test -z "$as_dir" && as_dir=.
  26769. + for ac_exec_ext in '' $ac_executable_extensions; do
  26770. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26771. + ac_cv_prog_AS="${ac_tool_prefix}as"
  26772. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26773. + break 2
  26774. + fi
  26775. +done
  26776. + done
  26777. +IFS=$as_save_IFS
  26778. +fi
  26779. +fi
  26780. +AS=$ac_cv_prog_AS
  26781. +if test -n "$AS"; then
  26782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  26783. +$as_echo "$AS" >&6; }
  26784. +else
  26785. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26786. +$as_echo "no" >&6; }
  26787. +fi
  26788. -LIBGMP_DLL=0
  26789. -case $host in
  26790. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  26791. - # By default, build only static.
  26792. - if test -z "$enable_shared"; then
  26793. - enable_shared=no
  26794. - fi
  26795. - # Don't allow both static and DLL.
  26796. - if test "$enable_shared" != no && test "$enable_static" != no; then
  26797. - { { echo "$as_me:$LINENO: error: cannot build both static and DLL, since gmp.h is different for each.
  26798. -Use \"--disable-static --enable-shared\" to build just a DLL." >&5
  26799. -echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
  26800. -Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
  26801. - { (exit 1); exit 1; }; }
  26802. - fi
  26803. +fi
  26804. +if test -z "$ac_cv_prog_AS"; then
  26805. + ac_ct_AS=$AS
  26806. + # Extract the first word of "as", so it can be a program name with args.
  26807. +set dummy as; ac_word=$2
  26808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26809. +$as_echo_n "checking for $ac_word... " >&6; }
  26810. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  26811. + $as_echo_n "(cached) " >&6
  26812. +else
  26813. + if test -n "$ac_ct_AS"; then
  26814. + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  26815. +else
  26816. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26817. +for as_dir in $PATH
  26818. +do
  26819. + IFS=$as_save_IFS
  26820. + test -z "$as_dir" && as_dir=.
  26821. + for ac_exec_ext in '' $ac_executable_extensions; do
  26822. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26823. + ac_cv_prog_ac_ct_AS="as"
  26824. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26825. + break 2
  26826. + fi
  26827. +done
  26828. + done
  26829. +IFS=$as_save_IFS
  26830. - # "-no-undefined" is required when building a DLL, see documentation on
  26831. - # AC_LIBTOOL_WIN32_DLL.
  26832. +fi
  26833. +fi
  26834. +ac_ct_AS=$ac_cv_prog_ac_ct_AS
  26835. +if test -n "$ac_ct_AS"; then
  26836. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  26837. +$as_echo "$ac_ct_AS" >&6; }
  26838. +else
  26839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26840. +$as_echo "no" >&6; }
  26841. +fi
  26842. +
  26843. + if test "x$ac_ct_AS" = x; then
  26844. + AS="false"
  26845. + else
  26846. + case $cross_compiling:$ac_tool_warned in
  26847. +yes:)
  26848. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26849. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26850. +ac_tool_warned=yes ;;
  26851. +esac
  26852. + AS=$ac_ct_AS
  26853. + fi
  26854. +else
  26855. + AS="$ac_cv_prog_AS"
  26856. +fi
  26857. +
  26858. + if test -n "$ac_tool_prefix"; then
  26859. + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  26860. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  26861. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26862. +$as_echo_n "checking for $ac_word... " >&6; }
  26863. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  26864. + $as_echo_n "(cached) " >&6
  26865. +else
  26866. + if test -n "$DLLTOOL"; then
  26867. + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  26868. +else
  26869. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26870. +for as_dir in $PATH
  26871. +do
  26872. + IFS=$as_save_IFS
  26873. + test -z "$as_dir" && as_dir=.
  26874. + for ac_exec_ext in '' $ac_executable_extensions; do
  26875. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26876. + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  26877. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26878. + break 2
  26879. + fi
  26880. +done
  26881. + done
  26882. +IFS=$as_save_IFS
  26883. +
  26884. +fi
  26885. +fi
  26886. +DLLTOOL=$ac_cv_prog_DLLTOOL
  26887. +if test -n "$DLLTOOL"; then
  26888. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  26889. +$as_echo "$DLLTOOL" >&6; }
  26890. +else
  26891. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26892. +$as_echo "no" >&6; }
  26893. +fi
  26894. +
  26895. +
  26896. +fi
  26897. +if test -z "$ac_cv_prog_DLLTOOL"; then
  26898. + ac_ct_DLLTOOL=$DLLTOOL
  26899. + # Extract the first word of "dlltool", so it can be a program name with args.
  26900. +set dummy dlltool; ac_word=$2
  26901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26902. +$as_echo_n "checking for $ac_word... " >&6; }
  26903. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  26904. + $as_echo_n "(cached) " >&6
  26905. +else
  26906. + if test -n "$ac_ct_DLLTOOL"; then
  26907. + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  26908. +else
  26909. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26910. +for as_dir in $PATH
  26911. +do
  26912. + IFS=$as_save_IFS
  26913. + test -z "$as_dir" && as_dir=.
  26914. + for ac_exec_ext in '' $ac_executable_extensions; do
  26915. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26916. + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  26917. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26918. + break 2
  26919. + fi
  26920. +done
  26921. + done
  26922. +IFS=$as_save_IFS
  26923. +
  26924. +fi
  26925. +fi
  26926. +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  26927. +if test -n "$ac_ct_DLLTOOL"; then
  26928. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  26929. +$as_echo "$ac_ct_DLLTOOL" >&6; }
  26930. +else
  26931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26932. +$as_echo "no" >&6; }
  26933. +fi
  26934. +
  26935. + if test "x$ac_ct_DLLTOOL" = x; then
  26936. + DLLTOOL="false"
  26937. + else
  26938. + case $cross_compiling:$ac_tool_warned in
  26939. +yes:)
  26940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26941. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26942. +ac_tool_warned=yes ;;
  26943. +esac
  26944. + DLLTOOL=$ac_ct_DLLTOOL
  26945. + fi
  26946. +else
  26947. + DLLTOOL="$ac_cv_prog_DLLTOOL"
  26948. +fi
  26949. +
  26950. + if test -n "$ac_tool_prefix"; then
  26951. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  26952. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  26953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26954. +$as_echo_n "checking for $ac_word... " >&6; }
  26955. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  26956. + $as_echo_n "(cached) " >&6
  26957. +else
  26958. + if test -n "$OBJDUMP"; then
  26959. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  26960. +else
  26961. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26962. +for as_dir in $PATH
  26963. +do
  26964. + IFS=$as_save_IFS
  26965. + test -z "$as_dir" && as_dir=.
  26966. + for ac_exec_ext in '' $ac_executable_extensions; do
  26967. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26968. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  26969. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26970. + break 2
  26971. + fi
  26972. +done
  26973. + done
  26974. +IFS=$as_save_IFS
  26975. +
  26976. +fi
  26977. +fi
  26978. +OBJDUMP=$ac_cv_prog_OBJDUMP
  26979. +if test -n "$OBJDUMP"; then
  26980. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  26981. +$as_echo "$OBJDUMP" >&6; }
  26982. +else
  26983. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26984. +$as_echo "no" >&6; }
  26985. +fi
  26986. +
  26987. +
  26988. +fi
  26989. +if test -z "$ac_cv_prog_OBJDUMP"; then
  26990. + ac_ct_OBJDUMP=$OBJDUMP
  26991. + # Extract the first word of "objdump", so it can be a program name with args.
  26992. +set dummy objdump; ac_word=$2
  26993. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26994. +$as_echo_n "checking for $ac_word... " >&6; }
  26995. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  26996. + $as_echo_n "(cached) " >&6
  26997. +else
  26998. + if test -n "$ac_ct_OBJDUMP"; then
  26999. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  27000. +else
  27001. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27002. +for as_dir in $PATH
  27003. +do
  27004. + IFS=$as_save_IFS
  27005. + test -z "$as_dir" && as_dir=.
  27006. + for ac_exec_ext in '' $ac_executable_extensions; do
  27007. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27008. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  27009. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27010. + break 2
  27011. + fi
  27012. +done
  27013. + done
  27014. +IFS=$as_save_IFS
  27015. +
  27016. +fi
  27017. +fi
  27018. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  27019. +if test -n "$ac_ct_OBJDUMP"; then
  27020. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  27021. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  27022. +else
  27023. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27024. +$as_echo "no" >&6; }
  27025. +fi
  27026. +
  27027. + if test "x$ac_ct_OBJDUMP" = x; then
  27028. + OBJDUMP="false"
  27029. + else
  27030. + case $cross_compiling:$ac_tool_warned in
  27031. +yes:)
  27032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27033. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27034. +ac_tool_warned=yes ;;
  27035. +esac
  27036. + OBJDUMP=$ac_ct_OBJDUMP
  27037. + fi
  27038. +else
  27039. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  27040. +fi
  27041. +
  27042. + ;;
  27043. +esac
  27044. +
  27045. +test -z "$AS" && AS=as
  27046. +
  27047. +
  27048. +
  27049. +
  27050. +
  27051. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  27052. +
  27053. +
  27054. +
  27055. +
  27056. +
  27057. +test -z "$OBJDUMP" && OBJDUMP=objdump
  27058. +
  27059. +
  27060. +
  27061. +
  27062. +
  27063. +
  27064. +
  27065. +
  27066. +LIBGMP_DLL=0
  27067. +
  27068. +case $host in
  27069. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  27070. + # By default, build only static.
  27071. + if test -z "$enable_shared"; then
  27072. + enable_shared=no
  27073. + fi
  27074. + # Don't allow both static and DLL.
  27075. + if test "$enable_shared" != no && test "$enable_static" != no; then
  27076. + as_fn_error "cannot build both static and DLL, since gmp.h is different for each.
  27077. +Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
  27078. + fi
  27079. +
  27080. + # "-no-undefined" is required when building a DLL, see documentation on
  27081. + # AC_LIBTOOL_WIN32_DLL.
  27082. #
  27083. # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
  27084. # libgmpxx functions and variables exported. This is what libtool did
  27085. @@ -10935,140 +11779,202 @@
  27086. #
  27087. -# Check whether --enable-shared was given.
  27088. -if test "${enable_shared+set}" = set; then
  27089. - enableval=$enable_shared; p=${PACKAGE-default}
  27090. - case $enableval in
  27091. - yes) enable_shared=yes ;;
  27092. - no) enable_shared=no ;;
  27093. - *)
  27094. - enable_shared=no
  27095. - # Look at the argument we got. We use all the common list separators.
  27096. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27097. - for pkg in $enableval; do
  27098. - IFS="$lt_save_ifs"
  27099. - if test "X$pkg" = "X$p"; then
  27100. - enable_shared=yes
  27101. - fi
  27102. - done
  27103. - IFS="$lt_save_ifs"
  27104. - ;;
  27105. - esac
  27106. -else
  27107. - enable_shared=yes
  27108. -fi
  27109. +case `pwd` in
  27110. + *\ * | *\ *)
  27111. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  27112. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  27113. +esac
  27114. -# Check whether --enable-static was given.
  27115. -if test "${enable_static+set}" = set; then
  27116. - enableval=$enable_static; p=${PACKAGE-default}
  27117. - case $enableval in
  27118. - yes) enable_static=yes ;;
  27119. - no) enable_static=no ;;
  27120. - *)
  27121. - enable_static=no
  27122. - # Look at the argument we got. We use all the common list separators.
  27123. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27124. - for pkg in $enableval; do
  27125. - IFS="$lt_save_ifs"
  27126. - if test "X$pkg" = "X$p"; then
  27127. - enable_static=yes
  27128. - fi
  27129. - done
  27130. - IFS="$lt_save_ifs"
  27131. - ;;
  27132. - esac
  27133. -else
  27134. - enable_static=yes
  27135. -fi
  27136. +macro_version='2.2.6b'
  27137. +macro_revision='1.3017'
  27138. -# Check whether --enable-fast-install was given.
  27139. -if test "${enable_fast_install+set}" = set; then
  27140. - enableval=$enable_fast_install; p=${PACKAGE-default}
  27141. - case $enableval in
  27142. - yes) enable_fast_install=yes ;;
  27143. - no) enable_fast_install=no ;;
  27144. - *)
  27145. - enable_fast_install=no
  27146. - # Look at the argument we got. We use all the common list separators.
  27147. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27148. - for pkg in $enableval; do
  27149. - IFS="$lt_save_ifs"
  27150. - if test "X$pkg" = "X$p"; then
  27151. - enable_fast_install=yes
  27152. - fi
  27153. - done
  27154. - IFS="$lt_save_ifs"
  27155. - ;;
  27156. - esac
  27157. -else
  27158. - enable_fast_install=yes
  27159. -fi
  27160. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  27161. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  27162. -if test "${lt_cv_path_SED+set}" = set; then
  27163. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27164. -else
  27165. - # Loop through the user's path and test for sed and gsed.
  27166. -# Then use that list of sed's as ones to test for truncation.
  27167. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27168. +
  27169. +
  27170. +
  27171. +
  27172. +
  27173. +
  27174. +
  27175. +
  27176. +
  27177. +
  27178. +ltmain="$ac_aux_dir/ltmain.sh"
  27179. +
  27180. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  27181. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  27182. +if test "${ac_cv_path_SED+set}" = set; then :
  27183. + $as_echo_n "(cached) " >&6
  27184. +else
  27185. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  27186. + for ac_i in 1 2 3 4 5 6 7; do
  27187. + ac_script="$ac_script$as_nl$ac_script"
  27188. + done
  27189. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  27190. + { ac_script=; unset ac_script;}
  27191. + if test -z "$SED"; then
  27192. + ac_path_SED_found=false
  27193. + # Loop through the user's path and test for each of PROGNAME-LIST
  27194. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27195. for as_dir in $PATH
  27196. do
  27197. IFS=$as_save_IFS
  27198. test -z "$as_dir" && as_dir=.
  27199. - for lt_ac_prog in sed gsed; do
  27200. + for ac_prog in sed gsed; do
  27201. for ac_exec_ext in '' $ac_executable_extensions; do
  27202. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  27203. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  27204. - fi
  27205. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  27206. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  27207. +# Check for GNU ac_path_SED and select it if it is found.
  27208. + # Check for GNU $ac_path_SED
  27209. +case `"$ac_path_SED" --version 2>&1` in
  27210. +*GNU*)
  27211. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  27212. +*)
  27213. + ac_count=0
  27214. + $as_echo_n 0123456789 >"conftest.in"
  27215. + while :
  27216. + do
  27217. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  27218. + mv "conftest.tmp" "conftest.in"
  27219. + cp "conftest.in" "conftest.nl"
  27220. + $as_echo '' >> "conftest.nl"
  27221. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  27222. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  27223. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  27224. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  27225. + # Best one so far, save it but keep looking for a better one
  27226. + ac_cv_path_SED="$ac_path_SED"
  27227. + ac_path_SED_max=$ac_count
  27228. + fi
  27229. + # 10*(2^10) chars as input seems more than enough
  27230. + test $ac_count -gt 10 && break
  27231. + done
  27232. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  27233. +esac
  27234. +
  27235. + $ac_path_SED_found && break 3
  27236. done
  27237. done
  27238. -done
  27239. + done
  27240. IFS=$as_save_IFS
  27241. -lt_ac_max=0
  27242. -lt_ac_count=0
  27243. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  27244. -# along with /bin/sed that truncates output.
  27245. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  27246. - test ! -f $lt_ac_sed && continue
  27247. - cat /dev/null > conftest.in
  27248. - lt_ac_count=0
  27249. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  27250. - # Check for GNU sed and select it if it is found.
  27251. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  27252. - lt_cv_path_SED=$lt_ac_sed
  27253. - break
  27254. + if test -z "$ac_cv_path_SED"; then
  27255. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  27256. fi
  27257. - while true; do
  27258. - cat conftest.in conftest.in >conftest.tmp
  27259. - mv conftest.tmp conftest.in
  27260. - cp conftest.in conftest.nl
  27261. - echo >>conftest.nl
  27262. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  27263. - cmp -s conftest.out conftest.nl || break
  27264. - # 10000 chars as input seems more than enough
  27265. - test $lt_ac_count -gt 10 && break
  27266. - lt_ac_count=`expr $lt_ac_count + 1`
  27267. - if test $lt_ac_count -gt $lt_ac_max; then
  27268. - lt_ac_max=$lt_ac_count
  27269. - lt_cv_path_SED=$lt_ac_sed
  27270. +else
  27271. + ac_cv_path_SED=$SED
  27272. +fi
  27273. +
  27274. +fi
  27275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  27276. +$as_echo "$ac_cv_path_SED" >&6; }
  27277. + SED="$ac_cv_path_SED"
  27278. + rm -f conftest.sed
  27279. +
  27280. +test -z "$SED" && SED=sed
  27281. +Xsed="$SED -e 1s/^X//"
  27282. +
  27283. +
  27284. +
  27285. +
  27286. +
  27287. +
  27288. +
  27289. +
  27290. +
  27291. +
  27292. +
  27293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  27294. +$as_echo_n "checking for fgrep... " >&6; }
  27295. +if test "${ac_cv_path_FGREP+set}" = set; then :
  27296. + $as_echo_n "(cached) " >&6
  27297. +else
  27298. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  27299. + then ac_cv_path_FGREP="$GREP -F"
  27300. + else
  27301. + if test -z "$FGREP"; then
  27302. + ac_path_FGREP_found=false
  27303. + # Loop through the user's path and test for each of PROGNAME-LIST
  27304. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27305. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  27306. +do
  27307. + IFS=$as_save_IFS
  27308. + test -z "$as_dir" && as_dir=.
  27309. + for ac_prog in fgrep; do
  27310. + for ac_exec_ext in '' $ac_executable_extensions; do
  27311. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  27312. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  27313. +# Check for GNU ac_path_FGREP and select it if it is found.
  27314. + # Check for GNU $ac_path_FGREP
  27315. +case `"$ac_path_FGREP" --version 2>&1` in
  27316. +*GNU*)
  27317. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  27318. +*)
  27319. + ac_count=0
  27320. + $as_echo_n 0123456789 >"conftest.in"
  27321. + while :
  27322. + do
  27323. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  27324. + mv "conftest.tmp" "conftest.in"
  27325. + cp "conftest.in" "conftest.nl"
  27326. + $as_echo 'FGREP' >> "conftest.nl"
  27327. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  27328. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  27329. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  27330. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  27331. + # Best one so far, save it but keep looking for a better one
  27332. + ac_cv_path_FGREP="$ac_path_FGREP"
  27333. + ac_path_FGREP_max=$ac_count
  27334. fi
  27335. + # 10*(2^10) chars as input seems more than enough
  27336. + test $ac_count -gt 10 && break
  27337. done
  27338. -done
  27339. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  27340. +esac
  27341. +
  27342. + $ac_path_FGREP_found && break 3
  27343. + done
  27344. + done
  27345. + done
  27346. +IFS=$as_save_IFS
  27347. + if test -z "$ac_cv_path_FGREP"; then
  27348. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  27349. + fi
  27350. +else
  27351. + ac_cv_path_FGREP=$FGREP
  27352. +fi
  27353. + fi
  27354. fi
  27355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  27356. +$as_echo "$ac_cv_path_FGREP" >&6; }
  27357. + FGREP="$ac_cv_path_FGREP"
  27358. +
  27359. +
  27360. +test -z "$GREP" && GREP=grep
  27361. +
  27362. +
  27363. +
  27364. +
  27365. +
  27366. +
  27367. +
  27368. +
  27369. +
  27370. +
  27371. +
  27372. +
  27373. +
  27374. +
  27375. +
  27376. -SED=$lt_cv_path_SED
  27377. -{ echo "$as_me:$LINENO: result: $SED" >&5
  27378. -echo "${ECHO_T}$SED" >&6; }
  27379. # Check whether --with-gnu-ld was given.
  27380. -if test "${with_gnu_ld+set}" = set; then
  27381. +if test "${with_gnu_ld+set}" = set; then :
  27382. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  27383. else
  27384. with_gnu_ld=no
  27385. @@ -11077,8 +11983,8 @@
  27386. ac_prog=ld
  27387. if test "$GCC" = yes; then
  27388. # Check if gcc -print-prog-name=ld gives a path.
  27389. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  27390. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  27391. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  27392. +$as_echo_n "checking for ld used by $CC... " >&6; }
  27393. case $host in
  27394. *-*-mingw*)
  27395. # gcc leaves a trailing carriage return which upsets mingw
  27396. @@ -11091,9 +11997,9 @@
  27397. [\\/]* | ?:[\\/]*)
  27398. re_direlt='/[^/][^/]*/\.\./'
  27399. # Canonicalize the pathname of ld
  27400. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  27401. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  27402. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  27403. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  27404. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  27405. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  27406. done
  27407. test -z "$LD" && LD="$ac_prog"
  27408. ;;
  27409. @@ -11107,14 +12013,14 @@
  27410. ;;
  27411. esac
  27412. elif test "$with_gnu_ld" = yes; then
  27413. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  27414. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  27415. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  27416. +$as_echo_n "checking for GNU ld... " >&6; }
  27417. else
  27418. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  27419. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  27420. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  27421. +$as_echo_n "checking for non-GNU ld... " >&6; }
  27422. fi
  27423. -if test "${lt_cv_path_LD+set}" = set; then
  27424. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27425. +if test "${lt_cv_path_LD+set}" = set; then :
  27426. + $as_echo_n "(cached) " >&6
  27427. else
  27428. if test -z "$LD"; then
  27429. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27430. @@ -11144,19 +12050,17 @@
  27431. LD="$lt_cv_path_LD"
  27432. if test -n "$LD"; then
  27433. - { echo "$as_me:$LINENO: result: $LD" >&5
  27434. -echo "${ECHO_T}$LD" >&6; }
  27435. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  27436. +$as_echo "$LD" >&6; }
  27437. else
  27438. - { echo "$as_me:$LINENO: result: no" >&5
  27439. -echo "${ECHO_T}no" >&6; }
  27440. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27441. +$as_echo "no" >&6; }
  27442. fi
  27443. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  27444. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  27445. - { (exit 1); exit 1; }; }
  27446. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  27447. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  27448. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  27449. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27450. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  27451. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  27452. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  27453. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  27454. + $as_echo_n "(cached) " >&6
  27455. else
  27456. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  27457. case `$LD -v 2>&1 </dev/null` in
  27458. @@ -11168,20 +12072,231 @@
  27459. ;;
  27460. esac
  27461. fi
  27462. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27463. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  27464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  27465. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  27466. with_gnu_ld=$lt_cv_prog_gnu_ld
  27467. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  27468. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  27469. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  27470. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27471. +
  27472. +
  27473. +
  27474. +
  27475. +
  27476. +
  27477. +
  27478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  27479. +$as_echo_n "checking whether ln -s works... " >&6; }
  27480. +LN_S=$as_ln_s
  27481. +if test "$LN_S" = "ln -s"; then
  27482. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27483. +$as_echo "yes" >&6; }
  27484. +else
  27485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  27486. +$as_echo "no, using $LN_S" >&6; }
  27487. +fi
  27488. +
  27489. +# find the maximum length of command line arguments
  27490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  27491. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  27492. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  27493. + $as_echo_n "(cached) " >&6
  27494. +else
  27495. + i=0
  27496. + teststring="ABCD"
  27497. +
  27498. + case $build_os in
  27499. + msdosdjgpp*)
  27500. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  27501. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  27502. + # during glob expansion). Even if it were fixed, the result of this
  27503. + # check would be larger than it should be.
  27504. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  27505. + ;;
  27506. +
  27507. + gnu*)
  27508. + # Under GNU Hurd, this test is not required because there is
  27509. + # no limit to the length of command line arguments.
  27510. + # Libtool will interpret -1 as no limit whatsoever
  27511. + lt_cv_sys_max_cmd_len=-1;
  27512. + ;;
  27513. +
  27514. + cygwin* | mingw* | cegcc*)
  27515. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  27516. + # about 5 minutes as the teststring grows exponentially.
  27517. + # Worse, since 9x/ME are not pre-emptively multitasking,
  27518. + # you end up with a "frozen" computer, even though with patience
  27519. + # the test eventually succeeds (with a max line length of 256k).
  27520. + # Instead, let's just punt: use the minimum linelength reported by
  27521. + # all of the supported platforms: 8192 (on NT/2K/XP).
  27522. + lt_cv_sys_max_cmd_len=8192;
  27523. + ;;
  27524. +
  27525. + amigaos*)
  27526. + # On AmigaOS with pdksh, this test takes hours, literally.
  27527. + # So we just punt and use a minimum line length of 8192.
  27528. + lt_cv_sys_max_cmd_len=8192;
  27529. + ;;
  27530. +
  27531. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  27532. + # This has been around since 386BSD, at least. Likely further.
  27533. + if test -x /sbin/sysctl; then
  27534. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  27535. + elif test -x /usr/sbin/sysctl; then
  27536. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  27537. + else
  27538. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  27539. + fi
  27540. + # And add a safety zone
  27541. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  27542. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  27543. + ;;
  27544. +
  27545. + interix*)
  27546. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  27547. + lt_cv_sys_max_cmd_len=196608
  27548. + ;;
  27549. +
  27550. + osf*)
  27551. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  27552. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  27553. + # nice to cause kernel panics so lets avoid the loop below.
  27554. + # First set a reasonable default.
  27555. + lt_cv_sys_max_cmd_len=16384
  27556. + #
  27557. + if test -x /sbin/sysconfig; then
  27558. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  27559. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  27560. + esac
  27561. + fi
  27562. + ;;
  27563. + sco3.2v5*)
  27564. + lt_cv_sys_max_cmd_len=102400
  27565. + ;;
  27566. + sysv5* | sco5v6* | sysv4.2uw2*)
  27567. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  27568. + if test -n "$kargmax"; then
  27569. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  27570. + else
  27571. + lt_cv_sys_max_cmd_len=32768
  27572. + fi
  27573. + ;;
  27574. + *)
  27575. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  27576. + if test -n "$lt_cv_sys_max_cmd_len"; then
  27577. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  27578. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  27579. + else
  27580. + # Make teststring a little bigger before we do anything with it.
  27581. + # a 1K string should be a reasonable start.
  27582. + for i in 1 2 3 4 5 6 7 8 ; do
  27583. + teststring=$teststring$teststring
  27584. + done
  27585. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  27586. + # If test is not a shell built-in, we'll probably end up computing a
  27587. + # maximum length that is only half of the actual maximum length, but
  27588. + # we can't tell.
  27589. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  27590. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  27591. + test $i != 17 # 1/2 MB should be enough
  27592. + do
  27593. + i=`expr $i + 1`
  27594. + teststring=$teststring$teststring
  27595. + done
  27596. + # Only check the string length outside the loop.
  27597. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  27598. + teststring=
  27599. + # Add a significant safety factor because C++ compilers can tack on
  27600. + # massive amounts of additional arguments before passing them to the
  27601. + # linker. It appears as though 1/2 is a usable value.
  27602. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  27603. + fi
  27604. + ;;
  27605. + esac
  27606. +
  27607. +fi
  27608. +
  27609. +if test -n $lt_cv_sys_max_cmd_len ; then
  27610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  27611. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  27612. +else
  27613. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27614. +$as_echo "none" >&6; }
  27615. +fi
  27616. +max_cmd_len=$lt_cv_sys_max_cmd_len
  27617. +
  27618. +
  27619. +
  27620. +
  27621. +
  27622. +
  27623. +: ${CP="cp -f"}
  27624. +: ${MV="mv -f"}
  27625. +: ${RM="rm -f"}
  27626. +
  27627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  27628. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  27629. +# Try some XSI features
  27630. +xsi_shell=no
  27631. +( _lt_dummy="a/b/c"
  27632. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  27633. + = c,a/b,, \
  27634. + && eval 'test $(( 1 + 1 )) -eq 2 \
  27635. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  27636. + && xsi_shell=yes
  27637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  27638. +$as_echo "$xsi_shell" >&6; }
  27639. +
  27640. +
  27641. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  27642. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  27643. +lt_shell_append=no
  27644. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  27645. + >/dev/null 2>&1 \
  27646. + && lt_shell_append=yes
  27647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  27648. +$as_echo "$lt_shell_append" >&6; }
  27649. +
  27650. +
  27651. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27652. + lt_unset=unset
  27653. +else
  27654. + lt_unset=false
  27655. +fi
  27656. +
  27657. +
  27658. +
  27659. +
  27660. +
  27661. +# test EBCDIC or ASCII
  27662. +case `echo X|tr X '\101'` in
  27663. + A) # ASCII based system
  27664. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  27665. + lt_SP2NL='tr \040 \012'
  27666. + lt_NL2SP='tr \015\012 \040\040'
  27667. + ;;
  27668. + *) # EBCDIC based system
  27669. + lt_SP2NL='tr \100 \n'
  27670. + lt_NL2SP='tr \r\n \100\100'
  27671. + ;;
  27672. +esac
  27673. +
  27674. +
  27675. +
  27676. +
  27677. +
  27678. +
  27679. +
  27680. +
  27681. +
  27682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  27683. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  27684. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  27685. + $as_echo_n "(cached) " >&6
  27686. else
  27687. lt_cv_ld_reload_flag='-r'
  27688. fi
  27689. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  27690. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  27691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  27692. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  27693. reload_flag=$lt_cv_ld_reload_flag
  27694. case $reload_flag in
  27695. "" | " "*) ;;
  27696. @@ -11198,21 +12313,117 @@
  27697. ;;
  27698. esac
  27699. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  27700. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  27701. -LN_S=$as_ln_s
  27702. -if test "$LN_S" = "ln -s"; then
  27703. - { echo "$as_me:$LINENO: result: yes" >&5
  27704. -echo "${ECHO_T}yes" >&6; }
  27705. +
  27706. +
  27707. +
  27708. +
  27709. +
  27710. +
  27711. +
  27712. +
  27713. +if test -n "$ac_tool_prefix"; then
  27714. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  27715. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  27716. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27717. +$as_echo_n "checking for $ac_word... " >&6; }
  27718. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  27719. + $as_echo_n "(cached) " >&6
  27720. +else
  27721. + if test -n "$OBJDUMP"; then
  27722. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  27723. +else
  27724. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27725. +for as_dir in $PATH
  27726. +do
  27727. + IFS=$as_save_IFS
  27728. + test -z "$as_dir" && as_dir=.
  27729. + for ac_exec_ext in '' $ac_executable_extensions; do
  27730. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27731. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  27732. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27733. + break 2
  27734. + fi
  27735. +done
  27736. + done
  27737. +IFS=$as_save_IFS
  27738. +
  27739. +fi
  27740. +fi
  27741. +OBJDUMP=$ac_cv_prog_OBJDUMP
  27742. +if test -n "$OBJDUMP"; then
  27743. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  27744. +$as_echo "$OBJDUMP" >&6; }
  27745. +else
  27746. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27747. +$as_echo "no" >&6; }
  27748. +fi
  27749. +
  27750. +
  27751. +fi
  27752. +if test -z "$ac_cv_prog_OBJDUMP"; then
  27753. + ac_ct_OBJDUMP=$OBJDUMP
  27754. + # Extract the first word of "objdump", so it can be a program name with args.
  27755. +set dummy objdump; ac_word=$2
  27756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27757. +$as_echo_n "checking for $ac_word... " >&6; }
  27758. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  27759. + $as_echo_n "(cached) " >&6
  27760. +else
  27761. + if test -n "$ac_ct_OBJDUMP"; then
  27762. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  27763. +else
  27764. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27765. +for as_dir in $PATH
  27766. +do
  27767. + IFS=$as_save_IFS
  27768. + test -z "$as_dir" && as_dir=.
  27769. + for ac_exec_ext in '' $ac_executable_extensions; do
  27770. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27771. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  27772. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27773. + break 2
  27774. + fi
  27775. +done
  27776. + done
  27777. +IFS=$as_save_IFS
  27778. +
  27779. +fi
  27780. +fi
  27781. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  27782. +if test -n "$ac_ct_OBJDUMP"; then
  27783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  27784. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  27785. +else
  27786. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27787. +$as_echo "no" >&6; }
  27788. +fi
  27789. +
  27790. + if test "x$ac_ct_OBJDUMP" = x; then
  27791. + OBJDUMP="false"
  27792. + else
  27793. + case $cross_compiling:$ac_tool_warned in
  27794. +yes:)
  27795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27796. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27797. +ac_tool_warned=yes ;;
  27798. +esac
  27799. + OBJDUMP=$ac_ct_OBJDUMP
  27800. + fi
  27801. else
  27802. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  27803. -echo "${ECHO_T}no, using $LN_S" >&6; }
  27804. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  27805. fi
  27806. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  27807. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  27808. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  27809. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27810. +test -z "$OBJDUMP" && OBJDUMP=objdump
  27811. +
  27812. +
  27813. +
  27814. +
  27815. +
  27816. +
  27817. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  27818. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  27819. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  27820. + $as_echo_n "(cached) " >&6
  27821. else
  27822. lt_cv_file_magic_cmd='$MAGIC_CMD'
  27823. lt_cv_file_magic_test_file=
  27824. @@ -11229,7 +12440,7 @@
  27825. # whether `pass_all' will *always* work, you probably want this one.
  27826. case $host_os in
  27827. -aix4* | aix5*)
  27828. +aix[4-9]*)
  27829. lt_cv_deplibs_check_method=pass_all
  27830. ;;
  27831. @@ -11262,12 +12473,18 @@
  27832. fi
  27833. ;;
  27834. +cegcc)
  27835. + # use the weaker test based on 'objdump'. See mingw*.
  27836. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  27837. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  27838. + ;;
  27839. +
  27840. darwin* | rhapsody*)
  27841. lt_cv_deplibs_check_method=pass_all
  27842. ;;
  27843. freebsd* | dragonfly*)
  27844. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  27845. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  27846. case $host_cpu in
  27847. i*86 )
  27848. # Not sure whether the presence of OpenBSD here was a mistake.
  27849. @@ -11320,12 +12537,12 @@
  27850. ;;
  27851. # This must be Linux ELF.
  27852. -linux* | k*bsd*-gnu)
  27853. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  27854. lt_cv_deplibs_check_method=pass_all
  27855. ;;
  27856. -netbsd*)
  27857. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  27858. +netbsd* | netbsdelf*-gnu)
  27859. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  27860. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  27861. else
  27862. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  27863. @@ -11338,12 +12555,12 @@
  27864. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  27865. ;;
  27866. -nto-qnx*)
  27867. - lt_cv_deplibs_check_method=unknown
  27868. +*nto* | *qnx*)
  27869. + lt_cv_deplibs_check_method=pass_all
  27870. ;;
  27871. openbsd*)
  27872. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27873. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27874. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  27875. else
  27876. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  27877. @@ -11362,6 +12579,10 @@
  27878. lt_cv_deplibs_check_method=pass_all
  27879. ;;
  27880. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27881. + lt_cv_deplibs_check_method=pass_all
  27882. + ;;
  27883. +
  27884. sysv4 | sysv4.3*)
  27885. case $host_vendor in
  27886. motorola)
  27887. @@ -11389,14 +12610,14 @@
  27888. esac
  27889. ;;
  27890. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27891. +tpf*)
  27892. lt_cv_deplibs_check_method=pass_all
  27893. ;;
  27894. esac
  27895. fi
  27896. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  27897. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  27898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  27899. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  27900. file_magic_cmd=$lt_cv_file_magic_cmd
  27901. deplibs_check_method=$lt_cv_deplibs_check_method
  27902. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  27903. @@ -11404,1034 +12625,382 @@
  27904. -# If no C compiler was specified, use CC.
  27905. -LTCC=${LTCC-"$CC"}
  27906. -
  27907. -# If no C compiler flags were specified, use CFLAGS.
  27908. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27909. -
  27910. -# Allow CC to be a program name with arguments.
  27911. -compiler=$CC
  27912. -
  27913. -# Check whether --enable-libtool-lock was given.
  27914. -if test "${enable_libtool_lock+set}" = set; then
  27915. - enableval=$enable_libtool_lock;
  27916. -fi
  27917. -
  27918. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  27919. -
  27920. -# Some flags need to be propagated to the compiler or linker for good
  27921. -# libtool support.
  27922. -case $host in
  27923. -ia64-*-hpux*)
  27924. - # Find out which ABI we are using.
  27925. - echo 'int i;' > conftest.$ac_ext
  27926. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27927. - (eval $ac_compile) 2>&5
  27928. - ac_status=$?
  27929. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27930. - (exit $ac_status); }; then
  27931. - case `/usr/bin/file conftest.$ac_objext` in
  27932. - *ELF-32*)
  27933. - HPUX_IA64_MODE="32"
  27934. - ;;
  27935. - *ELF-64*)
  27936. - HPUX_IA64_MODE="64"
  27937. - ;;
  27938. - esac
  27939. - fi
  27940. - rm -rf conftest*
  27941. - ;;
  27942. -*-*-irix6*)
  27943. - # Find out which ABI we are using.
  27944. - echo '#line 11447 "configure"' > conftest.$ac_ext
  27945. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27946. - (eval $ac_compile) 2>&5
  27947. - ac_status=$?
  27948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27949. - (exit $ac_status); }; then
  27950. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27951. - case `/usr/bin/file conftest.$ac_objext` in
  27952. - *32-bit*)
  27953. - LD="${LD-ld} -melf32bsmip"
  27954. - ;;
  27955. - *N32*)
  27956. - LD="${LD-ld} -melf32bmipn32"
  27957. - ;;
  27958. - *64-bit*)
  27959. - LD="${LD-ld} -melf64bmip"
  27960. - ;;
  27961. - esac
  27962. - else
  27963. - case `/usr/bin/file conftest.$ac_objext` in
  27964. - *32-bit*)
  27965. - LD="${LD-ld} -32"
  27966. - ;;
  27967. - *N32*)
  27968. - LD="${LD-ld} -n32"
  27969. - ;;
  27970. - *64-bit*)
  27971. - LD="${LD-ld} -64"
  27972. - ;;
  27973. - esac
  27974. - fi
  27975. - fi
  27976. - rm -rf conftest*
  27977. - ;;
  27978. -
  27979. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  27980. -s390*-*linux*|sparc*-*linux*)
  27981. - # Find out which ABI we are using.
  27982. - echo 'int i;' > conftest.$ac_ext
  27983. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27984. - (eval $ac_compile) 2>&5
  27985. - ac_status=$?
  27986. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27987. - (exit $ac_status); }; then
  27988. - case `/usr/bin/file conftest.o` in
  27989. - *32-bit*)
  27990. - case $host in
  27991. - x86_64-*kfreebsd*-gnu)
  27992. - LD="${LD-ld} -m elf_i386_fbsd"
  27993. - ;;
  27994. - x86_64-*linux*)
  27995. - LD="${LD-ld} -m elf_i386"
  27996. - ;;
  27997. - ppc64-*linux*|powerpc64-*linux*)
  27998. - LD="${LD-ld} -m elf32ppclinux"
  27999. - ;;
  28000. - s390x-*linux*)
  28001. - LD="${LD-ld} -m elf_s390"
  28002. - ;;
  28003. - sparc64-*linux*)
  28004. - LD="${LD-ld} -m elf32_sparc"
  28005. - ;;
  28006. - esac
  28007. - ;;
  28008. - *64-bit*)
  28009. - case $host in
  28010. - x86_64-*kfreebsd*-gnu)
  28011. - LD="${LD-ld} -m elf_x86_64_fbsd"
  28012. - ;;
  28013. - x86_64-*linux*)
  28014. - LD="${LD-ld} -m elf_x86_64"
  28015. - ;;
  28016. - ppc*-*linux*|powerpc*-*linux*)
  28017. - LD="${LD-ld} -m elf64ppc"
  28018. - ;;
  28019. - s390*-*linux*)
  28020. - LD="${LD-ld} -m elf64_s390"
  28021. - ;;
  28022. - sparc*-*linux*)
  28023. - LD="${LD-ld} -m elf64_sparc"
  28024. - ;;
  28025. - esac
  28026. - ;;
  28027. - esac
  28028. - fi
  28029. - rm -rf conftest*
  28030. - ;;
  28031. -*-*-sco3.2v5*)
  28032. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  28033. - SAVE_CFLAGS="$CFLAGS"
  28034. - CFLAGS="$CFLAGS -belf"
  28035. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  28036. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  28037. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  28038. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28039. -else
  28040. - ac_ext=c
  28041. -ac_cpp='$CPP $CPPFLAGS'
  28042. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28043. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28044. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28045. - cat >conftest.$ac_ext <<_ACEOF
  28046. -/* confdefs.h. */
  28047. -_ACEOF
  28048. -cat confdefs.h >>conftest.$ac_ext
  28049. -cat >>conftest.$ac_ext <<_ACEOF
  28050. -/* end confdefs.h. */
  28051. -int
  28052. -main ()
  28053. -{
  28054. - ;
  28055. - return 0;
  28056. -}
  28057. -_ACEOF
  28058. -rm -f conftest.$ac_objext conftest$ac_exeext
  28059. -if { (ac_try="$ac_link"
  28060. -case "(($ac_try" in
  28061. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28062. - *) ac_try_echo=$ac_try;;
  28063. -esac
  28064. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28065. - (eval "$ac_link") 2>conftest.er1
  28066. - ac_status=$?
  28067. - grep -v '^ *+' conftest.er1 >conftest.err
  28068. - rm -f conftest.er1
  28069. - cat conftest.err >&5
  28070. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28071. - (exit $ac_status); } && {
  28072. - test -z "$ac_c_werror_flag" ||
  28073. - test ! -s conftest.err
  28074. - } && test -s conftest$ac_exeext &&
  28075. - $as_test_x conftest$ac_exeext; then
  28076. - lt_cv_cc_needs_belf=yes
  28077. -else
  28078. - echo "$as_me: failed program was:" >&5
  28079. -sed 's/^/| /' conftest.$ac_ext >&5
  28080. - lt_cv_cc_needs_belf=no
  28081. -fi
  28082. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28083. - conftest$ac_exeext conftest.$ac_ext
  28084. - ac_ext=c
  28085. -ac_cpp='$CPP $CPPFLAGS'
  28086. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28087. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28088. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28089. -fi
  28090. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  28091. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  28092. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  28093. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  28094. - CFLAGS="$SAVE_CFLAGS"
  28095. - fi
  28096. - ;;
  28097. -sparc*-*solaris*)
  28098. - # Find out which ABI we are using.
  28099. - echo 'int i;' > conftest.$ac_ext
  28100. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28101. - (eval $ac_compile) 2>&5
  28102. - ac_status=$?
  28103. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28104. - (exit $ac_status); }; then
  28105. - case `/usr/bin/file conftest.o` in
  28106. - *64-bit*)
  28107. - case $lt_cv_prog_gnu_ld in
  28108. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  28109. - *) LD="${LD-ld} -64" ;;
  28110. - esac
  28111. - ;;
  28112. - esac
  28113. - fi
  28114. - rm -rf conftest*
  28115. - ;;
  28116. -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  28117. - if test -n "$ac_tool_prefix"; then
  28118. - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  28119. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  28120. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28121. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28122. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  28123. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28124. +if test -n "$ac_tool_prefix"; then
  28125. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  28126. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  28127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28128. +$as_echo_n "checking for $ac_word... " >&6; }
  28129. +if test "${ac_cv_prog_AR+set}" = set; then :
  28130. + $as_echo_n "(cached) " >&6
  28131. else
  28132. - if test -n "$DLLTOOL"; then
  28133. - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  28134. + if test -n "$AR"; then
  28135. + ac_cv_prog_AR="$AR" # Let the user override the test.
  28136. else
  28137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28138. for as_dir in $PATH
  28139. do
  28140. IFS=$as_save_IFS
  28141. test -z "$as_dir" && as_dir=.
  28142. - for ac_exec_ext in '' $ac_executable_extensions; do
  28143. + for ac_exec_ext in '' $ac_executable_extensions; do
  28144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28145. - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  28146. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28147. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  28148. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28149. break 2
  28150. fi
  28151. done
  28152. -done
  28153. + done
  28154. IFS=$as_save_IFS
  28155. fi
  28156. fi
  28157. -DLLTOOL=$ac_cv_prog_DLLTOOL
  28158. -if test -n "$DLLTOOL"; then
  28159. - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  28160. -echo "${ECHO_T}$DLLTOOL" >&6; }
  28161. +AR=$ac_cv_prog_AR
  28162. +if test -n "$AR"; then
  28163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  28164. +$as_echo "$AR" >&6; }
  28165. else
  28166. - { echo "$as_me:$LINENO: result: no" >&5
  28167. -echo "${ECHO_T}no" >&6; }
  28168. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28169. +$as_echo "no" >&6; }
  28170. fi
  28171. fi
  28172. -if test -z "$ac_cv_prog_DLLTOOL"; then
  28173. - ac_ct_DLLTOOL=$DLLTOOL
  28174. - # Extract the first word of "dlltool", so it can be a program name with args.
  28175. -set dummy dlltool; ac_word=$2
  28176. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28177. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28178. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  28179. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28180. -else
  28181. - if test -n "$ac_ct_DLLTOOL"; then
  28182. - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  28183. +if test -z "$ac_cv_prog_AR"; then
  28184. + ac_ct_AR=$AR
  28185. + # Extract the first word of "ar", so it can be a program name with args.
  28186. +set dummy ar; ac_word=$2
  28187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28188. +$as_echo_n "checking for $ac_word... " >&6; }
  28189. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  28190. + $as_echo_n "(cached) " >&6
  28191. +else
  28192. + if test -n "$ac_ct_AR"; then
  28193. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  28194. else
  28195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28196. for as_dir in $PATH
  28197. do
  28198. IFS=$as_save_IFS
  28199. test -z "$as_dir" && as_dir=.
  28200. - for ac_exec_ext in '' $ac_executable_extensions; do
  28201. + for ac_exec_ext in '' $ac_executable_extensions; do
  28202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28203. - ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  28204. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28205. + ac_cv_prog_ac_ct_AR="ar"
  28206. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28207. break 2
  28208. fi
  28209. done
  28210. -done
  28211. + done
  28212. IFS=$as_save_IFS
  28213. fi
  28214. fi
  28215. -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  28216. -if test -n "$ac_ct_DLLTOOL"; then
  28217. - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  28218. -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  28219. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  28220. +if test -n "$ac_ct_AR"; then
  28221. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  28222. +$as_echo "$ac_ct_AR" >&6; }
  28223. else
  28224. - { echo "$as_me:$LINENO: result: no" >&5
  28225. -echo "${ECHO_T}no" >&6; }
  28226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28227. +$as_echo "no" >&6; }
  28228. fi
  28229. - if test "x$ac_ct_DLLTOOL" = x; then
  28230. - DLLTOOL="false"
  28231. + if test "x$ac_ct_AR" = x; then
  28232. + AR="false"
  28233. else
  28234. case $cross_compiling:$ac_tool_warned in
  28235. yes:)
  28236. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  28237. -whose name does not start with the host triplet. If you think this
  28238. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  28239. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  28240. -whose name does not start with the host triplet. If you think this
  28241. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  28242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28243. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28244. ac_tool_warned=yes ;;
  28245. esac
  28246. - DLLTOOL=$ac_ct_DLLTOOL
  28247. + AR=$ac_ct_AR
  28248. fi
  28249. else
  28250. - DLLTOOL="$ac_cv_prog_DLLTOOL"
  28251. + AR="$ac_cv_prog_AR"
  28252. fi
  28253. - if test -n "$ac_tool_prefix"; then
  28254. - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  28255. -set dummy ${ac_tool_prefix}as; ac_word=$2
  28256. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28257. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28258. -if test "${ac_cv_prog_AS+set}" = set; then
  28259. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28260. +test -z "$AR" && AR=ar
  28261. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  28262. +
  28263. +
  28264. +
  28265. +
  28266. +
  28267. +
  28268. +
  28269. +
  28270. +
  28271. +
  28272. +
  28273. +if test -n "$ac_tool_prefix"; then
  28274. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  28275. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  28276. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28277. +$as_echo_n "checking for $ac_word... " >&6; }
  28278. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  28279. + $as_echo_n "(cached) " >&6
  28280. else
  28281. - if test -n "$AS"; then
  28282. - ac_cv_prog_AS="$AS" # Let the user override the test.
  28283. + if test -n "$STRIP"; then
  28284. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  28285. else
  28286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28287. for as_dir in $PATH
  28288. do
  28289. IFS=$as_save_IFS
  28290. test -z "$as_dir" && as_dir=.
  28291. - for ac_exec_ext in '' $ac_executable_extensions; do
  28292. + for ac_exec_ext in '' $ac_executable_extensions; do
  28293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28294. - ac_cv_prog_AS="${ac_tool_prefix}as"
  28295. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28296. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  28297. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28298. break 2
  28299. fi
  28300. done
  28301. -done
  28302. + done
  28303. IFS=$as_save_IFS
  28304. fi
  28305. fi
  28306. -AS=$ac_cv_prog_AS
  28307. -if test -n "$AS"; then
  28308. - { echo "$as_me:$LINENO: result: $AS" >&5
  28309. -echo "${ECHO_T}$AS" >&6; }
  28310. +STRIP=$ac_cv_prog_STRIP
  28311. +if test -n "$STRIP"; then
  28312. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  28313. +$as_echo "$STRIP" >&6; }
  28314. else
  28315. - { echo "$as_me:$LINENO: result: no" >&5
  28316. -echo "${ECHO_T}no" >&6; }
  28317. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28318. +$as_echo "no" >&6; }
  28319. fi
  28320. fi
  28321. -if test -z "$ac_cv_prog_AS"; then
  28322. - ac_ct_AS=$AS
  28323. - # Extract the first word of "as", so it can be a program name with args.
  28324. -set dummy as; ac_word=$2
  28325. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28326. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28327. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  28328. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28329. +if test -z "$ac_cv_prog_STRIP"; then
  28330. + ac_ct_STRIP=$STRIP
  28331. + # Extract the first word of "strip", so it can be a program name with args.
  28332. +set dummy strip; ac_word=$2
  28333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28334. +$as_echo_n "checking for $ac_word... " >&6; }
  28335. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  28336. + $as_echo_n "(cached) " >&6
  28337. else
  28338. - if test -n "$ac_ct_AS"; then
  28339. - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  28340. + if test -n "$ac_ct_STRIP"; then
  28341. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  28342. else
  28343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28344. for as_dir in $PATH
  28345. do
  28346. IFS=$as_save_IFS
  28347. test -z "$as_dir" && as_dir=.
  28348. - for ac_exec_ext in '' $ac_executable_extensions; do
  28349. + for ac_exec_ext in '' $ac_executable_extensions; do
  28350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28351. - ac_cv_prog_ac_ct_AS="as"
  28352. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28353. + ac_cv_prog_ac_ct_STRIP="strip"
  28354. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28355. break 2
  28356. fi
  28357. done
  28358. -done
  28359. + done
  28360. IFS=$as_save_IFS
  28361. fi
  28362. fi
  28363. -ac_ct_AS=$ac_cv_prog_ac_ct_AS
  28364. -if test -n "$ac_ct_AS"; then
  28365. - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  28366. -echo "${ECHO_T}$ac_ct_AS" >&6; }
  28367. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  28368. +if test -n "$ac_ct_STRIP"; then
  28369. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  28370. +$as_echo "$ac_ct_STRIP" >&6; }
  28371. else
  28372. - { echo "$as_me:$LINENO: result: no" >&5
  28373. -echo "${ECHO_T}no" >&6; }
  28374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28375. +$as_echo "no" >&6; }
  28376. fi
  28377. - if test "x$ac_ct_AS" = x; then
  28378. - AS="false"
  28379. + if test "x$ac_ct_STRIP" = x; then
  28380. + STRIP=":"
  28381. else
  28382. case $cross_compiling:$ac_tool_warned in
  28383. yes:)
  28384. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  28385. -whose name does not start with the host triplet. If you think this
  28386. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  28387. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  28388. -whose name does not start with the host triplet. If you think this
  28389. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  28390. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28391. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28392. ac_tool_warned=yes ;;
  28393. esac
  28394. - AS=$ac_ct_AS
  28395. + STRIP=$ac_ct_STRIP
  28396. fi
  28397. else
  28398. - AS="$ac_cv_prog_AS"
  28399. + STRIP="$ac_cv_prog_STRIP"
  28400. fi
  28401. - if test -n "$ac_tool_prefix"; then
  28402. - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  28403. -set dummy ${ac_tool_prefix}objdump; ac_word=$2
  28404. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28405. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28406. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  28407. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28408. +test -z "$STRIP" && STRIP=:
  28409. +
  28410. +
  28411. +
  28412. +
  28413. +
  28414. +
  28415. +if test -n "$ac_tool_prefix"; then
  28416. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  28417. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  28418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28419. +$as_echo_n "checking for $ac_word... " >&6; }
  28420. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  28421. + $as_echo_n "(cached) " >&6
  28422. else
  28423. - if test -n "$OBJDUMP"; then
  28424. - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  28425. + if test -n "$RANLIB"; then
  28426. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  28427. else
  28428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28429. for as_dir in $PATH
  28430. do
  28431. IFS=$as_save_IFS
  28432. test -z "$as_dir" && as_dir=.
  28433. - for ac_exec_ext in '' $ac_executable_extensions; do
  28434. + for ac_exec_ext in '' $ac_executable_extensions; do
  28435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28436. - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  28437. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28438. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  28439. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28440. break 2
  28441. fi
  28442. done
  28443. -done
  28444. + done
  28445. IFS=$as_save_IFS
  28446. fi
  28447. fi
  28448. -OBJDUMP=$ac_cv_prog_OBJDUMP
  28449. -if test -n "$OBJDUMP"; then
  28450. - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  28451. -echo "${ECHO_T}$OBJDUMP" >&6; }
  28452. +RANLIB=$ac_cv_prog_RANLIB
  28453. +if test -n "$RANLIB"; then
  28454. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  28455. +$as_echo "$RANLIB" >&6; }
  28456. else
  28457. - { echo "$as_me:$LINENO: result: no" >&5
  28458. -echo "${ECHO_T}no" >&6; }
  28459. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28460. +$as_echo "no" >&6; }
  28461. fi
  28462. fi
  28463. -if test -z "$ac_cv_prog_OBJDUMP"; then
  28464. - ac_ct_OBJDUMP=$OBJDUMP
  28465. - # Extract the first word of "objdump", so it can be a program name with args.
  28466. -set dummy objdump; ac_word=$2
  28467. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28468. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28469. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  28470. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28471. +if test -z "$ac_cv_prog_RANLIB"; then
  28472. + ac_ct_RANLIB=$RANLIB
  28473. + # Extract the first word of "ranlib", so it can be a program name with args.
  28474. +set dummy ranlib; ac_word=$2
  28475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28476. +$as_echo_n "checking for $ac_word... " >&6; }
  28477. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  28478. + $as_echo_n "(cached) " >&6
  28479. else
  28480. - if test -n "$ac_ct_OBJDUMP"; then
  28481. - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  28482. + if test -n "$ac_ct_RANLIB"; then
  28483. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  28484. else
  28485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28486. for as_dir in $PATH
  28487. do
  28488. IFS=$as_save_IFS
  28489. test -z "$as_dir" && as_dir=.
  28490. - for ac_exec_ext in '' $ac_executable_extensions; do
  28491. + for ac_exec_ext in '' $ac_executable_extensions; do
  28492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28493. - ac_cv_prog_ac_ct_OBJDUMP="objdump"
  28494. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28495. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  28496. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28497. break 2
  28498. fi
  28499. done
  28500. -done
  28501. + done
  28502. IFS=$as_save_IFS
  28503. fi
  28504. fi
  28505. -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  28506. -if test -n "$ac_ct_OBJDUMP"; then
  28507. - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  28508. -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  28509. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  28510. +if test -n "$ac_ct_RANLIB"; then
  28511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  28512. +$as_echo "$ac_ct_RANLIB" >&6; }
  28513. else
  28514. - { echo "$as_me:$LINENO: result: no" >&5
  28515. -echo "${ECHO_T}no" >&6; }
  28516. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28517. +$as_echo "no" >&6; }
  28518. fi
  28519. - if test "x$ac_ct_OBJDUMP" = x; then
  28520. - OBJDUMP="false"
  28521. + if test "x$ac_ct_RANLIB" = x; then
  28522. + RANLIB=":"
  28523. else
  28524. case $cross_compiling:$ac_tool_warned in
  28525. yes:)
  28526. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  28527. -whose name does not start with the host triplet. If you think this
  28528. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  28529. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  28530. -whose name does not start with the host triplet. If you think this
  28531. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  28532. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28533. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28534. ac_tool_warned=yes ;;
  28535. esac
  28536. - OBJDUMP=$ac_ct_OBJDUMP
  28537. + RANLIB=$ac_ct_RANLIB
  28538. fi
  28539. else
  28540. - OBJDUMP="$ac_cv_prog_OBJDUMP"
  28541. + RANLIB="$ac_cv_prog_RANLIB"
  28542. fi
  28543. - ;;
  28544. +test -z "$RANLIB" && RANLIB=:
  28545. -esac
  28546. -need_locks="$enable_libtool_lock"
  28547. -for ac_header in dlfcn.h
  28548. -do
  28549. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28550. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28551. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28552. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28553. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28554. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28555. -fi
  28556. -ac_res=`eval echo '${'$as_ac_Header'}'`
  28557. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  28558. -echo "${ECHO_T}$ac_res" >&6; }
  28559. -else
  28560. - # Is the header compilable?
  28561. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28562. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28563. -cat >conftest.$ac_ext <<_ACEOF
  28564. -/* confdefs.h. */
  28565. -_ACEOF
  28566. -cat confdefs.h >>conftest.$ac_ext
  28567. -cat >>conftest.$ac_ext <<_ACEOF
  28568. -/* end confdefs.h. */
  28569. -$ac_includes_default
  28570. -#include <$ac_header>
  28571. -_ACEOF
  28572. -rm -f conftest.$ac_objext
  28573. -if { (ac_try="$ac_compile"
  28574. -case "(($ac_try" in
  28575. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28576. - *) ac_try_echo=$ac_try;;
  28577. -esac
  28578. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28579. - (eval "$ac_compile") 2>conftest.er1
  28580. - ac_status=$?
  28581. - grep -v '^ *+' conftest.er1 >conftest.err
  28582. - rm -f conftest.er1
  28583. - cat conftest.err >&5
  28584. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28585. - (exit $ac_status); } && {
  28586. - test -z "$ac_c_werror_flag" ||
  28587. - test ! -s conftest.err
  28588. - } && test -s conftest.$ac_objext; then
  28589. - ac_header_compiler=yes
  28590. -else
  28591. - echo "$as_me: failed program was:" >&5
  28592. -sed 's/^/| /' conftest.$ac_ext >&5
  28593. - ac_header_compiler=no
  28594. +# Determine commands to create old-style static archives.
  28595. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  28596. +old_postinstall_cmds='chmod 644 $oldlib'
  28597. +old_postuninstall_cmds=
  28598. +
  28599. +if test -n "$RANLIB"; then
  28600. + case $host_os in
  28601. + openbsd*)
  28602. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  28603. + ;;
  28604. + *)
  28605. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  28606. + ;;
  28607. + esac
  28608. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  28609. fi
  28610. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28611. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28612. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  28613. -# Is the header present?
  28614. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28615. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28616. -cat >conftest.$ac_ext <<_ACEOF
  28617. -/* confdefs.h. */
  28618. -_ACEOF
  28619. -cat confdefs.h >>conftest.$ac_ext
  28620. -cat >>conftest.$ac_ext <<_ACEOF
  28621. -/* end confdefs.h. */
  28622. -#include <$ac_header>
  28623. -_ACEOF
  28624. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28625. -case "(($ac_try" in
  28626. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28627. - *) ac_try_echo=$ac_try;;
  28628. -esac
  28629. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28630. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28631. - ac_status=$?
  28632. - grep -v '^ *+' conftest.er1 >conftest.err
  28633. - rm -f conftest.er1
  28634. - cat conftest.err >&5
  28635. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28636. - (exit $ac_status); } >/dev/null && {
  28637. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28638. - test ! -s conftest.err
  28639. - }; then
  28640. - ac_header_preproc=yes
  28641. -else
  28642. - echo "$as_me: failed program was:" >&5
  28643. -sed 's/^/| /' conftest.$ac_ext >&5
  28644. - ac_header_preproc=no
  28645. -fi
  28646. -rm -f conftest.err conftest.$ac_ext
  28647. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28648. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  28649. -# So? What about this header?
  28650. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28651. - yes:no: )
  28652. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28653. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28654. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28655. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28656. - ac_header_preproc=yes
  28657. - ;;
  28658. - no:yes:* )
  28659. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28660. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28661. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28662. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28663. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28664. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28665. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28666. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28667. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28668. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28669. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28670. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28671. - ( cat <<\_ASBOX
  28672. -## ---------------------------------- ##
  28673. -## Report this to gmp-bugs@gmplib.org ##
  28674. -## ---------------------------------- ##
  28675. -_ASBOX
  28676. - ) | sed "s/^/$as_me: WARNING: /" >&2
  28677. - ;;
  28678. -esac
  28679. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  28680. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28681. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28682. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28683. -else
  28684. - eval "$as_ac_Header=\$ac_header_preproc"
  28685. -fi
  28686. -ac_res=`eval echo '${'$as_ac_Header'}'`
  28687. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  28688. -echo "${ECHO_T}$ac_res" >&6; }
  28689. -fi
  28690. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28691. - cat >>confdefs.h <<_ACEOF
  28692. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28693. -_ACEOF
  28694. -fi
  28695. -done
  28696. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28697. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28698. - (test "X$CXX" != "Xg++"))) ; then
  28699. - ac_ext=cpp
  28700. -ac_cpp='$CXXCPP $CPPFLAGS'
  28701. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28702. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28703. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28704. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  28705. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  28706. -if test -z "$CXXCPP"; then
  28707. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  28708. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28709. -else
  28710. - # Double quotes because CXXCPP needs to be expanded
  28711. - for CXXCPP in "$CXX -E" "/lib/cpp"
  28712. - do
  28713. - ac_preproc_ok=false
  28714. -for ac_cxx_preproc_warn_flag in '' yes
  28715. -do
  28716. - # Use a header file that comes with gcc, so configuring glibc
  28717. - # with a fresh cross-compiler works.
  28718. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28719. - # <limits.h> exists even on freestanding compilers.
  28720. - # On the NeXT, cc -E runs the code through the compiler's parser,
  28721. - # not just through cpp. "Syntax error" is here to catch this case.
  28722. - cat >conftest.$ac_ext <<_ACEOF
  28723. -/* confdefs.h. */
  28724. -_ACEOF
  28725. -cat confdefs.h >>conftest.$ac_ext
  28726. -cat >>conftest.$ac_ext <<_ACEOF
  28727. -/* end confdefs.h. */
  28728. -#ifdef __STDC__
  28729. -# include <limits.h>
  28730. -#else
  28731. -# include <assert.h>
  28732. -#endif
  28733. - Syntax error
  28734. -_ACEOF
  28735. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28736. -case "(($ac_try" in
  28737. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28738. - *) ac_try_echo=$ac_try;;
  28739. -esac
  28740. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28741. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28742. - ac_status=$?
  28743. - grep -v '^ *+' conftest.er1 >conftest.err
  28744. - rm -f conftest.er1
  28745. - cat conftest.err >&5
  28746. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28747. - (exit $ac_status); } >/dev/null && {
  28748. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  28749. - test ! -s conftest.err
  28750. - }; then
  28751. - :
  28752. -else
  28753. - echo "$as_me: failed program was:" >&5
  28754. -sed 's/^/| /' conftest.$ac_ext >&5
  28755. -
  28756. - # Broken: fails on valid input.
  28757. -continue
  28758. -fi
  28759. -
  28760. -rm -f conftest.err conftest.$ac_ext
  28761. -
  28762. - # OK, works on sane cases. Now check whether nonexistent headers
  28763. - # can be detected and how.
  28764. - cat >conftest.$ac_ext <<_ACEOF
  28765. -/* confdefs.h. */
  28766. -_ACEOF
  28767. -cat confdefs.h >>conftest.$ac_ext
  28768. -cat >>conftest.$ac_ext <<_ACEOF
  28769. -/* end confdefs.h. */
  28770. -#include <ac_nonexistent.h>
  28771. -_ACEOF
  28772. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28773. -case "(($ac_try" in
  28774. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28775. - *) ac_try_echo=$ac_try;;
  28776. -esac
  28777. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28778. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28779. - ac_status=$?
  28780. - grep -v '^ *+' conftest.er1 >conftest.err
  28781. - rm -f conftest.er1
  28782. - cat conftest.err >&5
  28783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28784. - (exit $ac_status); } >/dev/null && {
  28785. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  28786. - test ! -s conftest.err
  28787. - }; then
  28788. - # Broken: success on invalid input.
  28789. -continue
  28790. -else
  28791. - echo "$as_me: failed program was:" >&5
  28792. -sed 's/^/| /' conftest.$ac_ext >&5
  28793. -
  28794. - # Passes both tests.
  28795. -ac_preproc_ok=:
  28796. -break
  28797. -fi
  28798. -
  28799. -rm -f conftest.err conftest.$ac_ext
  28800. -
  28801. -done
  28802. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28803. -rm -f conftest.err conftest.$ac_ext
  28804. -if $ac_preproc_ok; then
  28805. - break
  28806. -fi
  28807. -
  28808. - done
  28809. - ac_cv_prog_CXXCPP=$CXXCPP
  28810. -
  28811. -fi
  28812. - CXXCPP=$ac_cv_prog_CXXCPP
  28813. -else
  28814. - ac_cv_prog_CXXCPP=$CXXCPP
  28815. -fi
  28816. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  28817. -echo "${ECHO_T}$CXXCPP" >&6; }
  28818. -ac_preproc_ok=false
  28819. -for ac_cxx_preproc_warn_flag in '' yes
  28820. -do
  28821. - # Use a header file that comes with gcc, so configuring glibc
  28822. - # with a fresh cross-compiler works.
  28823. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28824. - # <limits.h> exists even on freestanding compilers.
  28825. - # On the NeXT, cc -E runs the code through the compiler's parser,
  28826. - # not just through cpp. "Syntax error" is here to catch this case.
  28827. - cat >conftest.$ac_ext <<_ACEOF
  28828. -/* confdefs.h. */
  28829. -_ACEOF
  28830. -cat confdefs.h >>conftest.$ac_ext
  28831. -cat >>conftest.$ac_ext <<_ACEOF
  28832. -/* end confdefs.h. */
  28833. -#ifdef __STDC__
  28834. -# include <limits.h>
  28835. -#else
  28836. -# include <assert.h>
  28837. -#endif
  28838. - Syntax error
  28839. -_ACEOF
  28840. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28841. -case "(($ac_try" in
  28842. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28843. - *) ac_try_echo=$ac_try;;
  28844. -esac
  28845. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28846. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28847. - ac_status=$?
  28848. - grep -v '^ *+' conftest.er1 >conftest.err
  28849. - rm -f conftest.er1
  28850. - cat conftest.err >&5
  28851. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28852. - (exit $ac_status); } >/dev/null && {
  28853. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  28854. - test ! -s conftest.err
  28855. - }; then
  28856. - :
  28857. -else
  28858. - echo "$as_me: failed program was:" >&5
  28859. -sed 's/^/| /' conftest.$ac_ext >&5
  28860. - # Broken: fails on valid input.
  28861. -continue
  28862. -fi
  28863. -rm -f conftest.err conftest.$ac_ext
  28864. - # OK, works on sane cases. Now check whether nonexistent headers
  28865. - # can be detected and how.
  28866. - cat >conftest.$ac_ext <<_ACEOF
  28867. -/* confdefs.h. */
  28868. -_ACEOF
  28869. -cat confdefs.h >>conftest.$ac_ext
  28870. -cat >>conftest.$ac_ext <<_ACEOF
  28871. -/* end confdefs.h. */
  28872. -#include <ac_nonexistent.h>
  28873. -_ACEOF
  28874. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28875. -case "(($ac_try" in
  28876. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28877. - *) ac_try_echo=$ac_try;;
  28878. -esac
  28879. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28880. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28881. - ac_status=$?
  28882. - grep -v '^ *+' conftest.er1 >conftest.err
  28883. - rm -f conftest.er1
  28884. - cat conftest.err >&5
  28885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28886. - (exit $ac_status); } >/dev/null && {
  28887. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  28888. - test ! -s conftest.err
  28889. - }; then
  28890. - # Broken: success on invalid input.
  28891. -continue
  28892. -else
  28893. - echo "$as_me: failed program was:" >&5
  28894. -sed 's/^/| /' conftest.$ac_ext >&5
  28895. - # Passes both tests.
  28896. -ac_preproc_ok=:
  28897. -break
  28898. -fi
  28899. -rm -f conftest.err conftest.$ac_ext
  28900. -done
  28901. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28902. -rm -f conftest.err conftest.$ac_ext
  28903. -if $ac_preproc_ok; then
  28904. - :
  28905. -else
  28906. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  28907. -See \`config.log' for more details." >&5
  28908. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  28909. -See \`config.log' for more details." >&2;}
  28910. - { (exit 1); exit 1; }; }
  28911. -fi
  28912. -ac_ext=cpp
  28913. -ac_cpp='$CXXCPP $CPPFLAGS'
  28914. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28915. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28916. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28917. -fi
  28918. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  28919. -# find the maximum length of command line arguments
  28920. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  28921. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  28922. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  28923. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28924. -else
  28925. - i=0
  28926. - teststring="ABCD"
  28927. - case $build_os in
  28928. - msdosdjgpp*)
  28929. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  28930. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  28931. - # during glob expansion). Even if it were fixed, the result of this
  28932. - # check would be larger than it should be.
  28933. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  28934. - ;;
  28935. - gnu*)
  28936. - # Under GNU Hurd, this test is not required because there is
  28937. - # no limit to the length of command line arguments.
  28938. - # Libtool will interpret -1 as no limit whatsoever
  28939. - lt_cv_sys_max_cmd_len=-1;
  28940. - ;;
  28941. - cygwin* | mingw*)
  28942. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  28943. - # about 5 minutes as the teststring grows exponentially.
  28944. - # Worse, since 9x/ME are not pre-emptively multitasking,
  28945. - # you end up with a "frozen" computer, even though with patience
  28946. - # the test eventually succeeds (with a max line length of 256k).
  28947. - # Instead, let's just punt: use the minimum linelength reported by
  28948. - # all of the supported platforms: 8192 (on NT/2K/XP).
  28949. - lt_cv_sys_max_cmd_len=8192;
  28950. - ;;
  28951. - amigaos*)
  28952. - # On AmigaOS with pdksh, this test takes hours, literally.
  28953. - # So we just punt and use a minimum line length of 8192.
  28954. - lt_cv_sys_max_cmd_len=8192;
  28955. - ;;
  28956. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  28957. - # This has been around since 386BSD, at least. Likely further.
  28958. - if test -x /sbin/sysctl; then
  28959. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  28960. - elif test -x /usr/sbin/sysctl; then
  28961. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  28962. - else
  28963. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  28964. - fi
  28965. - # And add a safety zone
  28966. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  28967. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  28968. - ;;
  28969. - interix*)
  28970. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  28971. - lt_cv_sys_max_cmd_len=196608
  28972. - ;;
  28973. - osf*)
  28974. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  28975. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  28976. - # nice to cause kernel panics so lets avoid the loop below.
  28977. - # First set a reasonable default.
  28978. - lt_cv_sys_max_cmd_len=16384
  28979. - #
  28980. - if test -x /sbin/sysconfig; then
  28981. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  28982. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  28983. - esac
  28984. - fi
  28985. - ;;
  28986. - sco3.2v5*)
  28987. - lt_cv_sys_max_cmd_len=102400
  28988. - ;;
  28989. - sysv5* | sco5v6* | sysv4.2uw2*)
  28990. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  28991. - if test -n "$kargmax"; then
  28992. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  28993. - else
  28994. - lt_cv_sys_max_cmd_len=32768
  28995. - fi
  28996. - ;;
  28997. - *)
  28998. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  28999. - if test -n "$lt_cv_sys_max_cmd_len"; then
  29000. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  29001. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  29002. - else
  29003. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  29004. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  29005. - = "XX$teststring") >/dev/null 2>&1 &&
  29006. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  29007. - lt_cv_sys_max_cmd_len=$new_result &&
  29008. - test $i != 17 # 1/2 MB should be enough
  29009. - do
  29010. - i=`expr $i + 1`
  29011. - teststring=$teststring$teststring
  29012. - done
  29013. - teststring=
  29014. - # Add a significant safety factor because C++ compilers can tack on massive
  29015. - # amounts of additional arguments before passing them to the linker.
  29016. - # It appears as though 1/2 is a usable value.
  29017. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  29018. - fi
  29019. - ;;
  29020. - esac
  29021. -fi
  29022. -if test -n $lt_cv_sys_max_cmd_len ; then
  29023. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  29024. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  29025. -else
  29026. - { echo "$as_me:$LINENO: result: none" >&5
  29027. -echo "${ECHO_T}none" >&6; }
  29028. -fi
  29029. +# If no C compiler was specified, use CC.
  29030. +LTCC=${LTCC-"$CC"}
  29031. +# If no C compiler flags were specified, use CFLAGS.
  29032. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29033. +# Allow CC to be a program name with arguments.
  29034. +compiler=$CC
  29035. # Check for command to grab the raw symbol name followed by C symbol from nm.
  29036. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  29037. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  29038. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  29039. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  29041. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  29042. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  29043. + $as_echo_n "(cached) " >&6
  29044. else
  29045. # These are sane defaults that work on at least a few old systems.
  29046. @@ -12443,33 +13012,18 @@
  29047. # Regexp to match symbols that can be accessed directly from C.
  29048. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  29049. -# Transform an extracted symbol line into a proper C declaration
  29050. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  29051. -
  29052. -# Transform an extracted symbol line into symbol name and symbol address
  29053. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  29054. -
  29055. # Define system-specific variables.
  29056. case $host_os in
  29057. aix*)
  29058. symcode='[BCDT]'
  29059. ;;
  29060. -cygwin* | mingw* | pw32*)
  29061. +cygwin* | mingw* | pw32* | cegcc*)
  29062. symcode='[ABCDGISTW]'
  29063. ;;
  29064. -hpux*) # Its linker distinguishes data from code symbols
  29065. +hpux*)
  29066. if test "$host_cpu" = ia64; then
  29067. symcode='[ABCDEGRST]'
  29068. fi
  29069. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29070. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  29071. - ;;
  29072. -linux* | k*bsd*-gnu)
  29073. - if test "$host_cpu" = ia64; then
  29074. - symcode='[ABCDGIRSTW]'
  29075. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29076. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  29077. - fi
  29078. ;;
  29079. irix* | nonstopux*)
  29080. symcode='[BCDEGRST]'
  29081. @@ -12494,57 +13048,85 @@
  29082. ;;
  29083. esac
  29084. +# If we're using GNU nm, then use its standard symbol codes.
  29085. +case `$NM -V 2>&1` in
  29086. +*GNU* | *'with BFD'*)
  29087. + symcode='[ABCDGIRSTW]' ;;
  29088. +esac
  29089. +
  29090. +# Transform an extracted symbol line into a proper C declaration.
  29091. +# Some systems (esp. on ia64) link data and code symbols differently,
  29092. +# so use this general approach.
  29093. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29094. +
  29095. +# Transform an extracted symbol line into symbol name and symbol address
  29096. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  29097. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  29098. +
  29099. # Handle CRLF in mingw tool chain
  29100. opt_cr=
  29101. case $build_os in
  29102. mingw*)
  29103. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  29104. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  29105. ;;
  29106. esac
  29107. -# If we're using GNU nm, then use its standard symbol codes.
  29108. -case `$NM -V 2>&1` in
  29109. -*GNU* | *'with BFD'*)
  29110. - symcode='[ABCDGIRSTW]' ;;
  29111. -esac
  29112. -
  29113. -# Try without a prefix undercore, then with it.
  29114. +# Try without a prefix underscore, then with it.
  29115. for ac_symprfx in "" "_"; do
  29116. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  29117. symxfrm="\\1 $ac_symprfx\\2 \\2"
  29118. # Write the raw and C identifiers.
  29119. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  29120. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  29121. + # Fake it for dumpbin and say T for any non-static function
  29122. + # and D for any global variable.
  29123. + # Also find C++ and __fastcall symbols from MSVC++,
  29124. + # which start with @ or ?.
  29125. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  29126. +" {last_section=section; section=\$ 3};"\
  29127. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  29128. +" \$ 0!~/External *\|/{next};"\
  29129. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  29130. +" {if(hide[section]) next};"\
  29131. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  29132. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  29133. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  29134. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  29135. +" ' prfx=^$ac_symprfx"
  29136. + else
  29137. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  29138. + fi
  29139. # Check to see that the pipe works correctly.
  29140. pipe_works=no
  29141. rm -f conftest*
  29142. - cat > conftest.$ac_ext <<EOF
  29143. + cat > conftest.$ac_ext <<_LT_EOF
  29144. #ifdef __cplusplus
  29145. extern "C" {
  29146. #endif
  29147. char nm_test_var;
  29148. -void nm_test_func(){}
  29149. +void nm_test_func(void);
  29150. +void nm_test_func(void){}
  29151. #ifdef __cplusplus
  29152. }
  29153. #endif
  29154. int main(){nm_test_var='a';nm_test_func();return(0);}
  29155. -EOF
  29156. +_LT_EOF
  29157. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29158. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29159. (eval $ac_compile) 2>&5
  29160. ac_status=$?
  29161. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29162. - (exit $ac_status); }; then
  29163. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29164. + test $ac_status = 0; }; then
  29165. # Now try to grab the symbols.
  29166. nlist=conftest.nm
  29167. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  29168. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  29169. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  29170. ac_status=$?
  29171. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29172. - (exit $ac_status); } && test -s "$nlist"; then
  29173. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29174. + test $ac_status = 0; } && test -s "$nlist"; then
  29175. # Try sorting and uniquifying the output.
  29176. if sort "$nlist" | uniq > "$nlist"T; then
  29177. mv -f "$nlist"T "$nlist"
  29178. @@ -12553,53 +13135,55 @@
  29179. fi
  29180. # Make sure that we snagged all the symbols we need.
  29181. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  29182. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  29183. - cat <<EOF > conftest.$ac_ext
  29184. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  29185. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  29186. + cat <<_LT_EOF > conftest.$ac_ext
  29187. #ifdef __cplusplus
  29188. extern "C" {
  29189. #endif
  29190. -EOF
  29191. +_LT_EOF
  29192. # Now generate the symbol file.
  29193. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  29194. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  29195. - cat <<EOF >> conftest.$ac_ext
  29196. -#if defined (__STDC__) && __STDC__
  29197. -# define lt_ptr_t void *
  29198. -#else
  29199. -# define lt_ptr_t char *
  29200. -# define const
  29201. -#endif
  29202. + cat <<_LT_EOF >> conftest.$ac_ext
  29203. -/* The mapping between symbol names and symbols. */
  29204. +/* The mapping between symbol names and symbols. */
  29205. const struct {
  29206. const char *name;
  29207. - lt_ptr_t address;
  29208. + void *address;
  29209. }
  29210. -lt_preloaded_symbols[] =
  29211. +lt__PROGRAM__LTX_preloaded_symbols[] =
  29212. {
  29213. -EOF
  29214. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  29215. - cat <<\EOF >> conftest.$ac_ext
  29216. - {0, (lt_ptr_t) 0}
  29217. + { "@PROGRAM@", (void *) 0 },
  29218. +_LT_EOF
  29219. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  29220. + cat <<\_LT_EOF >> conftest.$ac_ext
  29221. + {0, (void *) 0}
  29222. };
  29223. +/* This works around a problem in FreeBSD linker */
  29224. +#ifdef FREEBSD_WORKAROUND
  29225. +static const void *lt_preloaded_setup() {
  29226. + return lt__PROGRAM__LTX_preloaded_symbols;
  29227. +}
  29228. +#endif
  29229. +
  29230. #ifdef __cplusplus
  29231. }
  29232. #endif
  29233. -EOF
  29234. +_LT_EOF
  29235. # Now try linking the two files.
  29236. mv conftest.$ac_objext conftstm.$ac_objext
  29237. lt_save_LIBS="$LIBS"
  29238. lt_save_CFLAGS="$CFLAGS"
  29239. LIBS="conftstm.$ac_objext"
  29240. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  29241. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29242. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  29243. (eval $ac_link) 2>&5
  29244. ac_status=$?
  29245. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29246. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  29247. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29248. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  29249. pipe_works=yes
  29250. fi
  29251. LIBS="$lt_save_LIBS"
  29252. @@ -12617,7 +13201,7 @@
  29253. echo "$progname: failed program was:" >&5
  29254. cat conftest.$ac_ext >&5
  29255. fi
  29256. - rm -f conftest* conftst*
  29257. + rm -rf conftest* conftst*
  29258. # Do not use the global_symbol_pipe unless it works.
  29259. if test "$pipe_works" = yes; then
  29260. @@ -12633,6156 +13217,3782 @@
  29261. lt_cv_sys_global_symbol_to_cdecl=
  29262. fi
  29263. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  29264. - { echo "$as_me:$LINENO: result: failed" >&5
  29265. -echo "${ECHO_T}failed" >&6; }
  29266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  29267. +$as_echo "failed" >&6; }
  29268. else
  29269. - { echo "$as_me:$LINENO: result: ok" >&5
  29270. -echo "${ECHO_T}ok" >&6; }
  29271. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  29272. +$as_echo "ok" >&6; }
  29273. fi
  29274. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  29275. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  29276. -if test "${lt_cv_objdir+set}" = set; then
  29277. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29278. -else
  29279. - rm -f .libs 2>/dev/null
  29280. -mkdir .libs 2>/dev/null
  29281. -if test -d .libs; then
  29282. - lt_cv_objdir=.libs
  29283. -else
  29284. - # MS-DOS does not allow filenames that begin with a dot.
  29285. - lt_cv_objdir=_libs
  29286. -fi
  29287. -rmdir .libs 2>/dev/null
  29288. -fi
  29289. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  29290. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  29291. -objdir=$lt_cv_objdir
  29292. -case $host_os in
  29293. -aix3*)
  29294. - # AIX sometimes has problems with the GCC collect2 program. For some
  29295. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  29296. - # vanish in a puff of smoke.
  29297. - if test "X${COLLECT_NAMES+set}" != Xset; then
  29298. - COLLECT_NAMES=
  29299. - export COLLECT_NAMES
  29300. +
  29301. +
  29302. +
  29303. +
  29304. +
  29305. +
  29306. +
  29307. +
  29308. +
  29309. +
  29310. +
  29311. +
  29312. +
  29313. +
  29314. +
  29315. +
  29316. +# Check whether --enable-libtool-lock was given.
  29317. +if test "${enable_libtool_lock+set}" = set; then :
  29318. + enableval=$enable_libtool_lock;
  29319. +fi
  29320. +
  29321. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  29322. +
  29323. +# Some flags need to be propagated to the compiler or linker for good
  29324. +# libtool support.
  29325. +case $host in
  29326. +ia64-*-hpux*)
  29327. + # Find out which ABI we are using.
  29328. + echo 'int i;' > conftest.$ac_ext
  29329. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29330. + (eval $ac_compile) 2>&5
  29331. + ac_status=$?
  29332. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29333. + test $ac_status = 0; }; then
  29334. + case `/usr/bin/file conftest.$ac_objext` in
  29335. + *ELF-32*)
  29336. + HPUX_IA64_MODE="32"
  29337. + ;;
  29338. + *ELF-64*)
  29339. + HPUX_IA64_MODE="64"
  29340. + ;;
  29341. + esac
  29342. fi
  29343. + rm -rf conftest*
  29344. + ;;
  29345. +*-*-irix6*)
  29346. + # Find out which ABI we are using.
  29347. + echo '#line 13279 "configure"' > conftest.$ac_ext
  29348. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29349. + (eval $ac_compile) 2>&5
  29350. + ac_status=$?
  29351. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29352. + test $ac_status = 0; }; then
  29353. + if test "$lt_cv_prog_gnu_ld" = yes; then
  29354. + case `/usr/bin/file conftest.$ac_objext` in
  29355. + *32-bit*)
  29356. + LD="${LD-ld} -melf32bsmip"
  29357. + ;;
  29358. + *N32*)
  29359. + LD="${LD-ld} -melf32bmipn32"
  29360. + ;;
  29361. + *64-bit*)
  29362. + LD="${LD-ld} -melf64bmip"
  29363. + ;;
  29364. + esac
  29365. + else
  29366. + case `/usr/bin/file conftest.$ac_objext` in
  29367. + *32-bit*)
  29368. + LD="${LD-ld} -32"
  29369. + ;;
  29370. + *N32*)
  29371. + LD="${LD-ld} -n32"
  29372. + ;;
  29373. + *64-bit*)
  29374. + LD="${LD-ld} -64"
  29375. + ;;
  29376. + esac
  29377. + fi
  29378. + fi
  29379. + rm -rf conftest*
  29380. ;;
  29381. -esac
  29382. -# Sed substitution that helps us do robust quoting. It backslashifies
  29383. -# metacharacters that are still active within double-quoted strings.
  29384. -Xsed='sed -e 1s/^X//'
  29385. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  29386. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  29387. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  29388. + # Find out which ABI we are using.
  29389. + echo 'int i;' > conftest.$ac_ext
  29390. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29391. + (eval $ac_compile) 2>&5
  29392. + ac_status=$?
  29393. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29394. + test $ac_status = 0; }; then
  29395. + case `/usr/bin/file conftest.o` in
  29396. + *32-bit*)
  29397. + case $host in
  29398. + x86_64-*kfreebsd*-gnu)
  29399. + LD="${LD-ld} -m elf_i386_fbsd"
  29400. + ;;
  29401. + x86_64-*linux*)
  29402. + LD="${LD-ld} -m elf_i386"
  29403. + ;;
  29404. + ppc64-*linux*|powerpc64-*linux*)
  29405. + LD="${LD-ld} -m elf32ppclinux"
  29406. + ;;
  29407. + s390x-*linux*)
  29408. + LD="${LD-ld} -m elf_s390"
  29409. + ;;
  29410. + sparc64-*linux*)
  29411. + LD="${LD-ld} -m elf32_sparc"
  29412. + ;;
  29413. + esac
  29414. + ;;
  29415. + *64-bit*)
  29416. + case $host in
  29417. + x86_64-*kfreebsd*-gnu)
  29418. + LD="${LD-ld} -m elf_x86_64_fbsd"
  29419. + ;;
  29420. + x86_64-*linux*)
  29421. + LD="${LD-ld} -m elf_x86_64"
  29422. + ;;
  29423. + ppc*-*linux*|powerpc*-*linux*)
  29424. + LD="${LD-ld} -m elf64ppc"
  29425. + ;;
  29426. + s390*-*linux*|s390*-*tpf*)
  29427. + LD="${LD-ld} -m elf64_s390"
  29428. + ;;
  29429. + sparc*-*linux*)
  29430. + LD="${LD-ld} -m elf64_sparc"
  29431. + ;;
  29432. + esac
  29433. + ;;
  29434. + esac
  29435. + fi
  29436. + rm -rf conftest*
  29437. + ;;
  29438. -# Same as above, but do not quote variable references.
  29439. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  29440. +*-*-sco3.2v5*)
  29441. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  29442. + SAVE_CFLAGS="$CFLAGS"
  29443. + CFLAGS="$CFLAGS -belf"
  29444. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  29445. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  29446. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  29447. + $as_echo_n "(cached) " >&6
  29448. +else
  29449. + ac_ext=c
  29450. +ac_cpp='$CPP $CPPFLAGS'
  29451. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29452. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29453. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29454. -# Sed substitution to delay expansion of an escaped shell variable in a
  29455. -# double_quote_subst'ed string.
  29456. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  29457. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29458. +/* end confdefs.h. */
  29459. -# Sed substitution to avoid accidental globbing in evaled expressions
  29460. -no_glob_subst='s/\*/\\\*/g'
  29461. +int
  29462. +main ()
  29463. +{
  29464. +
  29465. + ;
  29466. + return 0;
  29467. +}
  29468. +_ACEOF
  29469. +if ac_fn_c_try_link "$LINENO"; then :
  29470. + lt_cv_cc_needs_belf=yes
  29471. +else
  29472. + lt_cv_cc_needs_belf=no
  29473. +fi
  29474. +rm -f core conftest.err conftest.$ac_objext \
  29475. + conftest$ac_exeext conftest.$ac_ext
  29476. + ac_ext=c
  29477. +ac_cpp='$CPP $CPPFLAGS'
  29478. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29479. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29480. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29481. -# Constants:
  29482. -rm="rm -f"
  29483. +fi
  29484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  29485. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  29486. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  29487. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  29488. + CFLAGS="$SAVE_CFLAGS"
  29489. + fi
  29490. + ;;
  29491. +sparc*-*solaris*)
  29492. + # Find out which ABI we are using.
  29493. + echo 'int i;' > conftest.$ac_ext
  29494. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29495. + (eval $ac_compile) 2>&5
  29496. + ac_status=$?
  29497. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29498. + test $ac_status = 0; }; then
  29499. + case `/usr/bin/file conftest.o` in
  29500. + *64-bit*)
  29501. + case $lt_cv_prog_gnu_ld in
  29502. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  29503. + *)
  29504. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  29505. + LD="${LD-ld} -64"
  29506. + fi
  29507. + ;;
  29508. + esac
  29509. + ;;
  29510. + esac
  29511. + fi
  29512. + rm -rf conftest*
  29513. + ;;
  29514. +esac
  29515. -# Global variables:
  29516. -default_ofile=libtool
  29517. -can_build_shared=yes
  29518. +need_locks="$enable_libtool_lock"
  29519. -# All known linkers require a `.a' archive for static linking (except MSVC,
  29520. -# which needs '.lib').
  29521. -libext=a
  29522. -ltmain="$ac_aux_dir/ltmain.sh"
  29523. -ofile="$default_ofile"
  29524. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  29525. -if test -n "$ac_tool_prefix"; then
  29526. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  29527. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  29528. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29529. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29530. -if test "${ac_cv_prog_AR+set}" = set; then
  29531. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29532. + case $host_os in
  29533. + rhapsody* | darwin*)
  29534. + if test -n "$ac_tool_prefix"; then
  29535. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  29536. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  29537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29538. +$as_echo_n "checking for $ac_word... " >&6; }
  29539. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  29540. + $as_echo_n "(cached) " >&6
  29541. else
  29542. - if test -n "$AR"; then
  29543. - ac_cv_prog_AR="$AR" # Let the user override the test.
  29544. + if test -n "$DSYMUTIL"; then
  29545. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  29546. else
  29547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29548. for as_dir in $PATH
  29549. do
  29550. IFS=$as_save_IFS
  29551. test -z "$as_dir" && as_dir=.
  29552. - for ac_exec_ext in '' $ac_executable_extensions; do
  29553. + for ac_exec_ext in '' $ac_executable_extensions; do
  29554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29555. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  29556. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29557. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  29558. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29559. break 2
  29560. fi
  29561. done
  29562. -done
  29563. + done
  29564. IFS=$as_save_IFS
  29565. fi
  29566. fi
  29567. -AR=$ac_cv_prog_AR
  29568. -if test -n "$AR"; then
  29569. - { echo "$as_me:$LINENO: result: $AR" >&5
  29570. -echo "${ECHO_T}$AR" >&6; }
  29571. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  29572. +if test -n "$DSYMUTIL"; then
  29573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  29574. +$as_echo "$DSYMUTIL" >&6; }
  29575. else
  29576. - { echo "$as_me:$LINENO: result: no" >&5
  29577. -echo "${ECHO_T}no" >&6; }
  29578. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29579. +$as_echo "no" >&6; }
  29580. fi
  29581. fi
  29582. -if test -z "$ac_cv_prog_AR"; then
  29583. - ac_ct_AR=$AR
  29584. - # Extract the first word of "ar", so it can be a program name with args.
  29585. -set dummy ar; ac_word=$2
  29586. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29587. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29588. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  29589. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29590. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  29591. + ac_ct_DSYMUTIL=$DSYMUTIL
  29592. + # Extract the first word of "dsymutil", so it can be a program name with args.
  29593. +set dummy dsymutil; ac_word=$2
  29594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29595. +$as_echo_n "checking for $ac_word... " >&6; }
  29596. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  29597. + $as_echo_n "(cached) " >&6
  29598. else
  29599. - if test -n "$ac_ct_AR"; then
  29600. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  29601. + if test -n "$ac_ct_DSYMUTIL"; then
  29602. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  29603. else
  29604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29605. for as_dir in $PATH
  29606. do
  29607. IFS=$as_save_IFS
  29608. test -z "$as_dir" && as_dir=.
  29609. - for ac_exec_ext in '' $ac_executable_extensions; do
  29610. + for ac_exec_ext in '' $ac_executable_extensions; do
  29611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29612. - ac_cv_prog_ac_ct_AR="ar"
  29613. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29614. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  29615. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29616. break 2
  29617. fi
  29618. done
  29619. -done
  29620. + done
  29621. IFS=$as_save_IFS
  29622. fi
  29623. fi
  29624. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  29625. -if test -n "$ac_ct_AR"; then
  29626. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  29627. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  29628. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  29629. +if test -n "$ac_ct_DSYMUTIL"; then
  29630. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  29631. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  29632. else
  29633. - { echo "$as_me:$LINENO: result: no" >&5
  29634. -echo "${ECHO_T}no" >&6; }
  29635. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29636. +$as_echo "no" >&6; }
  29637. fi
  29638. - if test "x$ac_ct_AR" = x; then
  29639. - AR="false"
  29640. + if test "x$ac_ct_DSYMUTIL" = x; then
  29641. + DSYMUTIL=":"
  29642. else
  29643. case $cross_compiling:$ac_tool_warned in
  29644. yes:)
  29645. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  29646. -whose name does not start with the host triplet. If you think this
  29647. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  29648. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  29649. -whose name does not start with the host triplet. If you think this
  29650. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  29651. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  29652. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  29653. ac_tool_warned=yes ;;
  29654. esac
  29655. - AR=$ac_ct_AR
  29656. + DSYMUTIL=$ac_ct_DSYMUTIL
  29657. fi
  29658. else
  29659. - AR="$ac_cv_prog_AR"
  29660. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  29661. fi
  29662. -if test -n "$ac_tool_prefix"; then
  29663. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  29664. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  29665. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29666. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29667. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  29668. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29669. + if test -n "$ac_tool_prefix"; then
  29670. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  29671. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  29672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29673. +$as_echo_n "checking for $ac_word... " >&6; }
  29674. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  29675. + $as_echo_n "(cached) " >&6
  29676. else
  29677. - if test -n "$RANLIB"; then
  29678. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  29679. + if test -n "$NMEDIT"; then
  29680. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  29681. else
  29682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29683. for as_dir in $PATH
  29684. do
  29685. IFS=$as_save_IFS
  29686. test -z "$as_dir" && as_dir=.
  29687. - for ac_exec_ext in '' $ac_executable_extensions; do
  29688. + for ac_exec_ext in '' $ac_executable_extensions; do
  29689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29690. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  29691. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29692. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  29693. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29694. break 2
  29695. fi
  29696. done
  29697. -done
  29698. + done
  29699. IFS=$as_save_IFS
  29700. fi
  29701. fi
  29702. -RANLIB=$ac_cv_prog_RANLIB
  29703. -if test -n "$RANLIB"; then
  29704. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  29705. -echo "${ECHO_T}$RANLIB" >&6; }
  29706. +NMEDIT=$ac_cv_prog_NMEDIT
  29707. +if test -n "$NMEDIT"; then
  29708. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  29709. +$as_echo "$NMEDIT" >&6; }
  29710. else
  29711. - { echo "$as_me:$LINENO: result: no" >&5
  29712. -echo "${ECHO_T}no" >&6; }
  29713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29714. +$as_echo "no" >&6; }
  29715. fi
  29716. fi
  29717. -if test -z "$ac_cv_prog_RANLIB"; then
  29718. - ac_ct_RANLIB=$RANLIB
  29719. - # Extract the first word of "ranlib", so it can be a program name with args.
  29720. -set dummy ranlib; ac_word=$2
  29721. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29722. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29723. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  29724. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29725. +if test -z "$ac_cv_prog_NMEDIT"; then
  29726. + ac_ct_NMEDIT=$NMEDIT
  29727. + # Extract the first word of "nmedit", so it can be a program name with args.
  29728. +set dummy nmedit; ac_word=$2
  29729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29730. +$as_echo_n "checking for $ac_word... " >&6; }
  29731. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  29732. + $as_echo_n "(cached) " >&6
  29733. else
  29734. - if test -n "$ac_ct_RANLIB"; then
  29735. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  29736. + if test -n "$ac_ct_NMEDIT"; then
  29737. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  29738. else
  29739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29740. for as_dir in $PATH
  29741. do
  29742. IFS=$as_save_IFS
  29743. test -z "$as_dir" && as_dir=.
  29744. - for ac_exec_ext in '' $ac_executable_extensions; do
  29745. + for ac_exec_ext in '' $ac_executable_extensions; do
  29746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29747. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  29748. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29749. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  29750. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29751. break 2
  29752. fi
  29753. done
  29754. -done
  29755. + done
  29756. IFS=$as_save_IFS
  29757. fi
  29758. fi
  29759. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  29760. -if test -n "$ac_ct_RANLIB"; then
  29761. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  29762. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  29763. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  29764. +if test -n "$ac_ct_NMEDIT"; then
  29765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  29766. +$as_echo "$ac_ct_NMEDIT" >&6; }
  29767. else
  29768. - { echo "$as_me:$LINENO: result: no" >&5
  29769. -echo "${ECHO_T}no" >&6; }
  29770. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29771. +$as_echo "no" >&6; }
  29772. fi
  29773. - if test "x$ac_ct_RANLIB" = x; then
  29774. - RANLIB=":"
  29775. + if test "x$ac_ct_NMEDIT" = x; then
  29776. + NMEDIT=":"
  29777. else
  29778. case $cross_compiling:$ac_tool_warned in
  29779. yes:)
  29780. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  29781. -whose name does not start with the host triplet. If you think this
  29782. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  29783. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  29784. -whose name does not start with the host triplet. If you think this
  29785. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  29786. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  29787. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  29788. ac_tool_warned=yes ;;
  29789. esac
  29790. - RANLIB=$ac_ct_RANLIB
  29791. + NMEDIT=$ac_ct_NMEDIT
  29792. fi
  29793. else
  29794. - RANLIB="$ac_cv_prog_RANLIB"
  29795. + NMEDIT="$ac_cv_prog_NMEDIT"
  29796. fi
  29797. -if test -n "$ac_tool_prefix"; then
  29798. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  29799. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  29800. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29801. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29802. -if test "${ac_cv_prog_STRIP+set}" = set; then
  29803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29804. + if test -n "$ac_tool_prefix"; then
  29805. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  29806. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  29807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29808. +$as_echo_n "checking for $ac_word... " >&6; }
  29809. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  29810. + $as_echo_n "(cached) " >&6
  29811. else
  29812. - if test -n "$STRIP"; then
  29813. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  29814. + if test -n "$LIPO"; then
  29815. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  29816. else
  29817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29818. for as_dir in $PATH
  29819. do
  29820. IFS=$as_save_IFS
  29821. test -z "$as_dir" && as_dir=.
  29822. - for ac_exec_ext in '' $ac_executable_extensions; do
  29823. + for ac_exec_ext in '' $ac_executable_extensions; do
  29824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29825. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  29826. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29827. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  29828. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29829. break 2
  29830. fi
  29831. done
  29832. -done
  29833. + done
  29834. IFS=$as_save_IFS
  29835. fi
  29836. fi
  29837. -STRIP=$ac_cv_prog_STRIP
  29838. -if test -n "$STRIP"; then
  29839. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  29840. -echo "${ECHO_T}$STRIP" >&6; }
  29841. +LIPO=$ac_cv_prog_LIPO
  29842. +if test -n "$LIPO"; then
  29843. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  29844. +$as_echo "$LIPO" >&6; }
  29845. else
  29846. - { echo "$as_me:$LINENO: result: no" >&5
  29847. -echo "${ECHO_T}no" >&6; }
  29848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29849. +$as_echo "no" >&6; }
  29850. fi
  29851. fi
  29852. -if test -z "$ac_cv_prog_STRIP"; then
  29853. - ac_ct_STRIP=$STRIP
  29854. - # Extract the first word of "strip", so it can be a program name with args.
  29855. -set dummy strip; ac_word=$2
  29856. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29857. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29858. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  29859. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29860. +if test -z "$ac_cv_prog_LIPO"; then
  29861. + ac_ct_LIPO=$LIPO
  29862. + # Extract the first word of "lipo", so it can be a program name with args.
  29863. +set dummy lipo; ac_word=$2
  29864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29865. +$as_echo_n "checking for $ac_word... " >&6; }
  29866. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  29867. + $as_echo_n "(cached) " >&6
  29868. else
  29869. - if test -n "$ac_ct_STRIP"; then
  29870. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  29871. + if test -n "$ac_ct_LIPO"; then
  29872. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  29873. else
  29874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29875. for as_dir in $PATH
  29876. do
  29877. IFS=$as_save_IFS
  29878. test -z "$as_dir" && as_dir=.
  29879. - for ac_exec_ext in '' $ac_executable_extensions; do
  29880. + for ac_exec_ext in '' $ac_executable_extensions; do
  29881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29882. - ac_cv_prog_ac_ct_STRIP="strip"
  29883. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29884. + ac_cv_prog_ac_ct_LIPO="lipo"
  29885. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29886. break 2
  29887. fi
  29888. done
  29889. -done
  29890. + done
  29891. IFS=$as_save_IFS
  29892. fi
  29893. fi
  29894. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  29895. -if test -n "$ac_ct_STRIP"; then
  29896. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  29897. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  29898. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  29899. +if test -n "$ac_ct_LIPO"; then
  29900. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  29901. +$as_echo "$ac_ct_LIPO" >&6; }
  29902. else
  29903. - { echo "$as_me:$LINENO: result: no" >&5
  29904. -echo "${ECHO_T}no" >&6; }
  29905. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29906. +$as_echo "no" >&6; }
  29907. fi
  29908. - if test "x$ac_ct_STRIP" = x; then
  29909. - STRIP=":"
  29910. + if test "x$ac_ct_LIPO" = x; then
  29911. + LIPO=":"
  29912. else
  29913. case $cross_compiling:$ac_tool_warned in
  29914. yes:)
  29915. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  29916. -whose name does not start with the host triplet. If you think this
  29917. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  29918. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  29919. -whose name does not start with the host triplet. If you think this
  29920. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  29921. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  29922. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  29923. ac_tool_warned=yes ;;
  29924. esac
  29925. - STRIP=$ac_ct_STRIP
  29926. + LIPO=$ac_ct_LIPO
  29927. fi
  29928. else
  29929. - STRIP="$ac_cv_prog_STRIP"
  29930. + LIPO="$ac_cv_prog_LIPO"
  29931. fi
  29932. + if test -n "$ac_tool_prefix"; then
  29933. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  29934. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  29935. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29936. +$as_echo_n "checking for $ac_word... " >&6; }
  29937. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  29938. + $as_echo_n "(cached) " >&6
  29939. +else
  29940. + if test -n "$OTOOL"; then
  29941. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  29942. +else
  29943. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29944. +for as_dir in $PATH
  29945. +do
  29946. + IFS=$as_save_IFS
  29947. + test -z "$as_dir" && as_dir=.
  29948. + for ac_exec_ext in '' $ac_executable_extensions; do
  29949. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  29950. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  29951. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29952. + break 2
  29953. + fi
  29954. +done
  29955. + done
  29956. +IFS=$as_save_IFS
  29957. -old_CC="$CC"
  29958. -old_CFLAGS="$CFLAGS"
  29959. -
  29960. -# Set sane defaults for various variables
  29961. -test -z "$AR" && AR=ar
  29962. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  29963. -test -z "$AS" && AS=as
  29964. -test -z "$CC" && CC=cc
  29965. -test -z "$LTCC" && LTCC=$CC
  29966. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  29967. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  29968. -test -z "$LD" && LD=ld
  29969. -test -z "$LN_S" && LN_S="ln -s"
  29970. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  29971. -test -z "$NM" && NM=nm
  29972. -test -z "$SED" && SED=sed
  29973. -test -z "$OBJDUMP" && OBJDUMP=objdump
  29974. -test -z "$RANLIB" && RANLIB=:
  29975. -test -z "$STRIP" && STRIP=:
  29976. -test -z "$ac_objext" && ac_objext=o
  29977. -
  29978. -# Determine commands to create old-style static archives.
  29979. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  29980. -old_postinstall_cmds='chmod 644 $oldlib'
  29981. -old_postuninstall_cmds=
  29982. -
  29983. -if test -n "$RANLIB"; then
  29984. - case $host_os in
  29985. - openbsd*)
  29986. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  29987. - ;;
  29988. - *)
  29989. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  29990. - ;;
  29991. - esac
  29992. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  29993. fi
  29994. -
  29995. -for cc_temp in $compiler""; do
  29996. - case $cc_temp in
  29997. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29998. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29999. - \-*) ;;
  30000. - *) break;;
  30001. - esac
  30002. -done
  30003. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30004. +fi
  30005. +OTOOL=$ac_cv_prog_OTOOL
  30006. +if test -n "$OTOOL"; then
  30007. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  30008. +$as_echo "$OTOOL" >&6; }
  30009. +else
  30010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30011. +$as_echo "no" >&6; }
  30012. +fi
  30013. -# Only perform the check for file, if the check method requires it
  30014. -case $deplibs_check_method in
  30015. -file_magic*)
  30016. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  30017. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  30018. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  30019. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  30020. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30021. +fi
  30022. +if test -z "$ac_cv_prog_OTOOL"; then
  30023. + ac_ct_OTOOL=$OTOOL
  30024. + # Extract the first word of "otool", so it can be a program name with args.
  30025. +set dummy otool; ac_word=$2
  30026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30027. +$as_echo_n "checking for $ac_word... " >&6; }
  30028. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  30029. + $as_echo_n "(cached) " >&6
  30030. else
  30031. - case $MAGIC_CMD in
  30032. -[\\/*] | ?:[\\/]*)
  30033. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30034. - ;;
  30035. -*)
  30036. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  30037. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30038. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30039. - for ac_dir in $ac_dummy; do
  30040. - IFS="$lt_save_ifs"
  30041. - test -z "$ac_dir" && ac_dir=.
  30042. - if test -f $ac_dir/${ac_tool_prefix}file; then
  30043. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  30044. - if test -n "$file_magic_test_file"; then
  30045. - case $deplibs_check_method in
  30046. - "file_magic "*)
  30047. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30048. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30049. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30050. - $EGREP "$file_magic_regex" > /dev/null; then
  30051. - :
  30052. - else
  30053. - cat <<EOF 1>&2
  30054. + if test -n "$ac_ct_OTOOL"; then
  30055. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  30056. +else
  30057. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30058. +for as_dir in $PATH
  30059. +do
  30060. + IFS=$as_save_IFS
  30061. + test -z "$as_dir" && as_dir=.
  30062. + for ac_exec_ext in '' $ac_executable_extensions; do
  30063. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30064. + ac_cv_prog_ac_ct_OTOOL="otool"
  30065. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30066. + break 2
  30067. + fi
  30068. +done
  30069. + done
  30070. +IFS=$as_save_IFS
  30071. -*** Warning: the command libtool uses to detect shared libraries,
  30072. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  30073. -*** The result is that libtool may fail to recognize shared libraries
  30074. -*** as such. This will affect the creation of libtool libraries that
  30075. -*** depend on shared libraries, but programs linked with such libtool
  30076. -*** libraries will work regardless of this problem. Nevertheless, you
  30077. -*** may want to report the problem to your system manager and/or to
  30078. -*** bug-libtool@gnu.org
  30079. +fi
  30080. +fi
  30081. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  30082. +if test -n "$ac_ct_OTOOL"; then
  30083. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  30084. +$as_echo "$ac_ct_OTOOL" >&6; }
  30085. +else
  30086. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30087. +$as_echo "no" >&6; }
  30088. +fi
  30089. -EOF
  30090. - fi ;;
  30091. - esac
  30092. - fi
  30093. - break
  30094. - fi
  30095. - done
  30096. - IFS="$lt_save_ifs"
  30097. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  30098. - ;;
  30099. + if test "x$ac_ct_OTOOL" = x; then
  30100. + OTOOL=":"
  30101. + else
  30102. + case $cross_compiling:$ac_tool_warned in
  30103. +yes:)
  30104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30105. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30106. +ac_tool_warned=yes ;;
  30107. esac
  30108. + OTOOL=$ac_ct_OTOOL
  30109. + fi
  30110. +else
  30111. + OTOOL="$ac_cv_prog_OTOOL"
  30112. fi
  30113. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30114. -if test -n "$MAGIC_CMD"; then
  30115. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  30116. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  30117. + if test -n "$ac_tool_prefix"; then
  30118. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  30119. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  30120. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30121. +$as_echo_n "checking for $ac_word... " >&6; }
  30122. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  30123. + $as_echo_n "(cached) " >&6
  30124. else
  30125. - { echo "$as_me:$LINENO: result: no" >&5
  30126. -echo "${ECHO_T}no" >&6; }
  30127. -fi
  30128. + if test -n "$OTOOL64"; then
  30129. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  30130. +else
  30131. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30132. +for as_dir in $PATH
  30133. +do
  30134. + IFS=$as_save_IFS
  30135. + test -z "$as_dir" && as_dir=.
  30136. + for ac_exec_ext in '' $ac_executable_extensions; do
  30137. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30138. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  30139. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30140. + break 2
  30141. + fi
  30142. +done
  30143. + done
  30144. +IFS=$as_save_IFS
  30145. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  30146. - if test -n "$ac_tool_prefix"; then
  30147. - { echo "$as_me:$LINENO: checking for file" >&5
  30148. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  30149. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  30150. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30151. +fi
  30152. +fi
  30153. +OTOOL64=$ac_cv_prog_OTOOL64
  30154. +if test -n "$OTOOL64"; then
  30155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  30156. +$as_echo "$OTOOL64" >&6; }
  30157. else
  30158. - case $MAGIC_CMD in
  30159. -[\\/*] | ?:[\\/]*)
  30160. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30161. - ;;
  30162. -*)
  30163. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  30164. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30165. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30166. - for ac_dir in $ac_dummy; do
  30167. - IFS="$lt_save_ifs"
  30168. - test -z "$ac_dir" && ac_dir=.
  30169. - if test -f $ac_dir/file; then
  30170. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  30171. - if test -n "$file_magic_test_file"; then
  30172. - case $deplibs_check_method in
  30173. - "file_magic "*)
  30174. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30175. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30176. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30177. - $EGREP "$file_magic_regex" > /dev/null; then
  30178. - :
  30179. - else
  30180. - cat <<EOF 1>&2
  30181. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30182. +$as_echo "no" >&6; }
  30183. +fi
  30184. -*** Warning: the command libtool uses to detect shared libraries,
  30185. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  30186. -*** The result is that libtool may fail to recognize shared libraries
  30187. -*** as such. This will affect the creation of libtool libraries that
  30188. -*** depend on shared libraries, but programs linked with such libtool
  30189. -*** libraries will work regardless of this problem. Nevertheless, you
  30190. -*** may want to report the problem to your system manager and/or to
  30191. -*** bug-libtool@gnu.org
  30192. -EOF
  30193. - fi ;;
  30194. - esac
  30195. - fi
  30196. - break
  30197. - fi
  30198. - done
  30199. - IFS="$lt_save_ifs"
  30200. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  30201. - ;;
  30202. -esac
  30203. fi
  30204. +if test -z "$ac_cv_prog_OTOOL64"; then
  30205. + ac_ct_OTOOL64=$OTOOL64
  30206. + # Extract the first word of "otool64", so it can be a program name with args.
  30207. +set dummy otool64; ac_word=$2
  30208. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30209. +$as_echo_n "checking for $ac_word... " >&6; }
  30210. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  30211. + $as_echo_n "(cached) " >&6
  30212. +else
  30213. + if test -n "$ac_ct_OTOOL64"; then
  30214. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  30215. +else
  30216. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30217. +for as_dir in $PATH
  30218. +do
  30219. + IFS=$as_save_IFS
  30220. + test -z "$as_dir" && as_dir=.
  30221. + for ac_exec_ext in '' $ac_executable_extensions; do
  30222. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30223. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  30224. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30225. + break 2
  30226. + fi
  30227. +done
  30228. + done
  30229. +IFS=$as_save_IFS
  30230. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30231. -if test -n "$MAGIC_CMD"; then
  30232. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  30233. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  30234. +fi
  30235. +fi
  30236. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  30237. +if test -n "$ac_ct_OTOOL64"; then
  30238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  30239. +$as_echo "$ac_ct_OTOOL64" >&6; }
  30240. else
  30241. - { echo "$as_me:$LINENO: result: no" >&5
  30242. -echo "${ECHO_T}no" >&6; }
  30243. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30244. +$as_echo "no" >&6; }
  30245. fi
  30246. + if test "x$ac_ct_OTOOL64" = x; then
  30247. + OTOOL64=":"
  30248. else
  30249. - MAGIC_CMD=:
  30250. + case $cross_compiling:$ac_tool_warned in
  30251. +yes:)
  30252. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30253. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30254. +ac_tool_warned=yes ;;
  30255. +esac
  30256. + OTOOL64=$ac_ct_OTOOL64
  30257. fi
  30258. +else
  30259. + OTOOL64="$ac_cv_prog_OTOOL64"
  30260. fi
  30261. - fi
  30262. - ;;
  30263. -esac
  30264. -enable_dlopen=no
  30265. -enable_win32_dll=yes
  30266. -# Check whether --enable-libtool-lock was given.
  30267. -if test "${enable_libtool_lock+set}" = set; then
  30268. - enableval=$enable_libtool_lock;
  30269. -fi
  30270. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  30271. -# Check whether --with-pic was given.
  30272. -if test "${with_pic+set}" = set; then
  30273. - withval=$with_pic; pic_mode="$withval"
  30274. -else
  30275. - pic_mode=default
  30276. -fi
  30277. -test -z "$pic_mode" && pic_mode=default
  30278. -# Use C for the default configuration in the libtool script
  30279. -tagname=
  30280. -lt_save_CC="$CC"
  30281. -ac_ext=c
  30282. -ac_cpp='$CPP $CPPFLAGS'
  30283. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30284. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30285. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30286. -# Source file extension for C test sources.
  30287. -ac_ext=c
  30288. -# Object file extension for compiled C test sources.
  30289. -objext=o
  30290. -objext=$objext
  30291. -# Code to be used in simple compile tests
  30292. -lt_simple_compile_test_code="int some_variable = 0;"
  30293. -# Code to be used in simple link tests
  30294. -lt_simple_link_test_code='int main(){return(0);}'
  30295. -# If no C compiler was specified, use CC.
  30296. -LTCC=${LTCC-"$CC"}
  30297. -# If no C compiler flags were specified, use CFLAGS.
  30298. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30299. -# Allow CC to be a program name with arguments.
  30300. -compiler=$CC
  30301. -# save warnings/boilerplate of simple test code
  30302. -ac_outfile=conftest.$ac_objext
  30303. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30304. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30305. -_lt_compiler_boilerplate=`cat conftest.err`
  30306. -$rm conftest*
  30307. -ac_outfile=conftest.$ac_objext
  30308. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30309. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30310. -_lt_linker_boilerplate=`cat conftest.err`
  30311. -$rm conftest*
  30312. -lt_prog_compiler_no_builtin_flag=
  30313. -if test "$GCC" = yes; then
  30314. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  30315. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  30316. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  30317. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  30318. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30319. -else
  30320. - lt_cv_prog_compiler_rtti_exceptions=no
  30321. - ac_outfile=conftest.$ac_objext
  30322. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30323. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  30324. - # Insert the option either (1) after the last *FLAGS variable, or
  30325. - # (2) before a word containing "conftest.", or (3) at the end.
  30326. - # Note that $ac_compile itself does not contain backslashes and begins
  30327. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30328. - # The option is referenced via a variable to avoid confusing sed.
  30329. - lt_compile=`echo "$ac_compile" | $SED \
  30330. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30331. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30332. - -e 's:$: $lt_compiler_flag:'`
  30333. - (eval echo "\"\$as_me:13273: $lt_compile\"" >&5)
  30334. - (eval "$lt_compile" 2>conftest.err)
  30335. - ac_status=$?
  30336. - cat conftest.err >&5
  30337. - echo "$as_me:13277: \$? = $ac_status" >&5
  30338. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30339. - # The compiler can only warn and ignore the option if not recognized
  30340. - # So say no if there are warnings other than the usual output.
  30341. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30342. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30343. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30344. - lt_cv_prog_compiler_rtti_exceptions=yes
  30345. - fi
  30346. - fi
  30347. - $rm conftest*
  30348. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  30349. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  30350. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  30351. + $as_echo_n "(cached) " >&6
  30352. +else
  30353. + lt_cv_apple_cc_single_mod=no
  30354. + if test -z "${LT_MULTI_MODULE}"; then
  30355. + # By default we will add the -single_module flag. You can override
  30356. + # by either setting the environment variable LT_MULTI_MODULE
  30357. + # non-empty at configure time, or by adding -multi_module to the
  30358. + # link flags.
  30359. + rm -rf libconftest.dylib*
  30360. + echo "int foo(void){return 1;}" > conftest.c
  30361. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30362. +-dynamiclib -Wl,-single_module conftest.c" >&5
  30363. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30364. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  30365. + _lt_result=$?
  30366. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  30367. + lt_cv_apple_cc_single_mod=yes
  30368. + else
  30369. + cat conftest.err >&5
  30370. + fi
  30371. + rm -rf libconftest.dylib*
  30372. + rm -f conftest.*
  30373. + fi
  30374. fi
  30375. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  30376. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  30377. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  30378. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  30379. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  30380. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  30381. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  30382. + $as_echo_n "(cached) " >&6
  30383. +else
  30384. + lt_cv_ld_exported_symbols_list=no
  30385. + save_LDFLAGS=$LDFLAGS
  30386. + echo "_main" > conftest.sym
  30387. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  30388. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30389. +/* end confdefs.h. */
  30390. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  30391. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  30392. +int
  30393. +main ()
  30394. +{
  30395. +
  30396. + ;
  30397. + return 0;
  30398. +}
  30399. +_ACEOF
  30400. +if ac_fn_c_try_link "$LINENO"; then :
  30401. + lt_cv_ld_exported_symbols_list=yes
  30402. else
  30403. - :
  30404. + lt_cv_ld_exported_symbols_list=no
  30405. fi
  30406. +rm -f core conftest.err conftest.$ac_objext \
  30407. + conftest$ac_exeext conftest.$ac_ext
  30408. + LDFLAGS="$save_LDFLAGS"
  30409. fi
  30410. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  30411. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  30412. + case $host_os in
  30413. + rhapsody* | darwin1.[012])
  30414. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  30415. + darwin1.*)
  30416. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30417. + darwin*) # darwin 5.x on
  30418. + # if running on 10.5 or later, the deployment target defaults
  30419. + # to the OS version, if on x86, and 10.4, the deployment
  30420. + # target defaults to 10.4. Don't you love it?
  30421. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  30422. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  30423. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30424. + 10.[012]*)
  30425. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30426. + 10.*)
  30427. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30428. + esac
  30429. + ;;
  30430. + esac
  30431. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  30432. + _lt_dar_single_mod='$single_module'
  30433. + fi
  30434. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  30435. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  30436. + else
  30437. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30438. + fi
  30439. + if test "$DSYMUTIL" != ":"; then
  30440. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  30441. + else
  30442. + _lt_dsymutil=
  30443. + fi
  30444. + ;;
  30445. + esac
  30446. -lt_prog_compiler_wl=
  30447. -lt_prog_compiler_pic=
  30448. -lt_prog_compiler_static=
  30449. +for ac_header in dlfcn.h
  30450. +do :
  30451. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  30452. +"
  30453. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  30454. + cat >>confdefs.h <<_ACEOF
  30455. +#define HAVE_DLFCN_H 1
  30456. +_ACEOF
  30457. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30458. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  30459. +fi
  30460. - if test "$GCC" = yes; then
  30461. - lt_prog_compiler_wl='-Wl,'
  30462. - lt_prog_compiler_static='-static'
  30463. +done
  30464. - case $host_os in
  30465. - aix*)
  30466. - # All AIX code is PIC.
  30467. - if test "$host_cpu" = ia64; then
  30468. - # AIX 5 now supports IA64 processor
  30469. - lt_prog_compiler_static='-Bstatic'
  30470. - fi
  30471. - ;;
  30472. - amigaos*)
  30473. - # FIXME: we need at least 68020 code to build shared libraries, but
  30474. - # adding the `-m68020' flag to GCC prevents building anything better,
  30475. - # like `-m68040'.
  30476. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  30477. - ;;
  30478. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30479. - # PIC is the default for these OSes.
  30480. - ;;
  30481. +ac_ext=cpp
  30482. +ac_cpp='$CXXCPP $CPPFLAGS'
  30483. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30484. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30485. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30486. +if test -z "$CXX"; then
  30487. + if test -n "$CCC"; then
  30488. + CXX=$CCC
  30489. + else
  30490. + if test -n "$ac_tool_prefix"; then
  30491. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  30492. + do
  30493. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  30494. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  30495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30496. +$as_echo_n "checking for $ac_word... " >&6; }
  30497. +if test "${ac_cv_prog_CXX+set}" = set; then :
  30498. + $as_echo_n "(cached) " >&6
  30499. +else
  30500. + if test -n "$CXX"; then
  30501. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  30502. +else
  30503. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30504. +for as_dir in $PATH
  30505. +do
  30506. + IFS=$as_save_IFS
  30507. + test -z "$as_dir" && as_dir=.
  30508. + for ac_exec_ext in '' $ac_executable_extensions; do
  30509. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30510. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  30511. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30512. + break 2
  30513. + fi
  30514. +done
  30515. + done
  30516. +IFS=$as_save_IFS
  30517. - mingw* | cygwin* | pw32* | os2*)
  30518. - # This hack is so that the source file can tell whether it is being
  30519. - # built for inclusion in a dll (and should export symbols for example).
  30520. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  30521. - # (--disable-auto-import) libraries
  30522. - lt_prog_compiler_pic='-DDLL_EXPORT'
  30523. - ;;
  30524. +fi
  30525. +fi
  30526. +CXX=$ac_cv_prog_CXX
  30527. +if test -n "$CXX"; then
  30528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  30529. +$as_echo "$CXX" >&6; }
  30530. +else
  30531. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30532. +$as_echo "no" >&6; }
  30533. +fi
  30534. - darwin* | rhapsody*)
  30535. - # PIC is the default on this platform
  30536. - # Common symbols not allowed in MH_DYLIB files
  30537. - lt_prog_compiler_pic='-fno-common'
  30538. - ;;
  30539. - interix[3-9]*)
  30540. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30541. - # Instead, we relocate shared libraries at runtime.
  30542. - ;;
  30543. + test -n "$CXX" && break
  30544. + done
  30545. +fi
  30546. +if test -z "$CXX"; then
  30547. + ac_ct_CXX=$CXX
  30548. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  30549. +do
  30550. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  30551. +set dummy $ac_prog; ac_word=$2
  30552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30553. +$as_echo_n "checking for $ac_word... " >&6; }
  30554. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  30555. + $as_echo_n "(cached) " >&6
  30556. +else
  30557. + if test -n "$ac_ct_CXX"; then
  30558. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  30559. +else
  30560. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30561. +for as_dir in $PATH
  30562. +do
  30563. + IFS=$as_save_IFS
  30564. + test -z "$as_dir" && as_dir=.
  30565. + for ac_exec_ext in '' $ac_executable_extensions; do
  30566. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30567. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  30568. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30569. + break 2
  30570. + fi
  30571. +done
  30572. + done
  30573. +IFS=$as_save_IFS
  30574. - msdosdjgpp*)
  30575. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30576. - # on systems that don't support them.
  30577. - lt_prog_compiler_can_build_shared=no
  30578. - enable_shared=no
  30579. - ;;
  30580. +fi
  30581. +fi
  30582. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  30583. +if test -n "$ac_ct_CXX"; then
  30584. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  30585. +$as_echo "$ac_ct_CXX" >&6; }
  30586. +else
  30587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30588. +$as_echo "no" >&6; }
  30589. +fi
  30590. - sysv4*MP*)
  30591. - if test -d /usr/nec; then
  30592. - lt_prog_compiler_pic=-Kconform_pic
  30593. - fi
  30594. - ;;
  30595. - hpux*)
  30596. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30597. - # not for PA HP-UX.
  30598. - case $host_cpu in
  30599. - hppa*64*|ia64*)
  30600. - # +Z the default
  30601. - ;;
  30602. - *)
  30603. - lt_prog_compiler_pic='-fPIC'
  30604. - ;;
  30605. - esac
  30606. - ;;
  30607. + test -n "$ac_ct_CXX" && break
  30608. +done
  30609. - *)
  30610. - lt_prog_compiler_pic='-fPIC'
  30611. - ;;
  30612. - esac
  30613. + if test "x$ac_ct_CXX" = x; then
  30614. + CXX="g++"
  30615. else
  30616. - # PORTME Check for flag to pass linker flags through the system compiler.
  30617. - case $host_os in
  30618. - aix*)
  30619. - lt_prog_compiler_wl='-Wl,'
  30620. - if test "$host_cpu" = ia64; then
  30621. - # AIX 5 now supports IA64 processor
  30622. - lt_prog_compiler_static='-Bstatic'
  30623. - else
  30624. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  30625. - fi
  30626. - ;;
  30627. - darwin*)
  30628. - # PIC is the default on this platform
  30629. - # Common symbols not allowed in MH_DYLIB files
  30630. - case $cc_basename in
  30631. - xlc*)
  30632. - lt_prog_compiler_pic='-qnocommon'
  30633. - lt_prog_compiler_wl='-Wl,'
  30634. - ;;
  30635. - esac
  30636. - ;;
  30637. + case $cross_compiling:$ac_tool_warned in
  30638. +yes:)
  30639. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30640. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30641. +ac_tool_warned=yes ;;
  30642. +esac
  30643. + CXX=$ac_ct_CXX
  30644. + fi
  30645. +fi
  30646. - mingw* | cygwin* | pw32* | os2*)
  30647. - # This hack is so that the source file can tell whether it is being
  30648. - # built for inclusion in a dll (and should export symbols for example).
  30649. - lt_prog_compiler_pic='-DDLL_EXPORT'
  30650. - ;;
  30651. + fi
  30652. +fi
  30653. +# Provide some information about the compiler.
  30654. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  30655. +set X $ac_compile
  30656. +ac_compiler=$2
  30657. +for ac_option in --version -v -V -qversion; do
  30658. + { { ac_try="$ac_compiler $ac_option >&5"
  30659. +case "(($ac_try" in
  30660. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30661. + *) ac_try_echo=$ac_try;;
  30662. +esac
  30663. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  30664. +$as_echo "$ac_try_echo"; } >&5
  30665. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  30666. + ac_status=$?
  30667. + if test -s conftest.err; then
  30668. + sed '10a\
  30669. +... rest of stderr output deleted ...
  30670. + 10q' conftest.err >conftest.er1
  30671. + cat conftest.er1 >&5
  30672. + fi
  30673. + rm -f conftest.er1 conftest.err
  30674. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30675. + test $ac_status = 0; }
  30676. +done
  30677. - hpux9* | hpux10* | hpux11*)
  30678. - lt_prog_compiler_wl='-Wl,'
  30679. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30680. - # not for PA HP-UX.
  30681. - case $host_cpu in
  30682. - hppa*64*|ia64*)
  30683. - # +Z the default
  30684. - ;;
  30685. - *)
  30686. - lt_prog_compiler_pic='+Z'
  30687. - ;;
  30688. - esac
  30689. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30690. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  30691. - ;;
  30692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  30693. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  30694. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  30695. + $as_echo_n "(cached) " >&6
  30696. +else
  30697. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30698. +/* end confdefs.h. */
  30699. - irix5* | irix6* | nonstopux*)
  30700. - lt_prog_compiler_wl='-Wl,'
  30701. - # PIC (with -KPIC) is the default.
  30702. - lt_prog_compiler_static='-non_shared'
  30703. - ;;
  30704. +int
  30705. +main ()
  30706. +{
  30707. +#ifndef __GNUC__
  30708. + choke me
  30709. +#endif
  30710. - newsos6)
  30711. - lt_prog_compiler_pic='-KPIC'
  30712. - lt_prog_compiler_static='-Bstatic'
  30713. - ;;
  30714. -
  30715. - linux* | k*bsd*-gnu)
  30716. - case $cc_basename in
  30717. - icc* | ecc*)
  30718. - lt_prog_compiler_wl='-Wl,'
  30719. - lt_prog_compiler_pic='-KPIC'
  30720. - lt_prog_compiler_static='-static'
  30721. - ;;
  30722. - pgcc* | pgf77* | pgf90* | pgf95*)
  30723. - # Portland Group compilers (*not* the Pentium gcc compiler,
  30724. - # which looks to be a dead project)
  30725. - lt_prog_compiler_wl='-Wl,'
  30726. - lt_prog_compiler_pic='-fpic'
  30727. - lt_prog_compiler_static='-Bstatic'
  30728. - ;;
  30729. - ccc*)
  30730. - lt_prog_compiler_wl='-Wl,'
  30731. - # All Alpha code is PIC.
  30732. - lt_prog_compiler_static='-non_shared'
  30733. - ;;
  30734. - *)
  30735. - case `$CC -V 2>&1 | sed 5q` in
  30736. - *Sun\ C*)
  30737. - # Sun C 5.9
  30738. - lt_prog_compiler_pic='-KPIC'
  30739. - lt_prog_compiler_static='-Bstatic'
  30740. - lt_prog_compiler_wl='-Wl,'
  30741. - ;;
  30742. - *Sun\ F*)
  30743. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  30744. - lt_prog_compiler_pic='-KPIC'
  30745. - lt_prog_compiler_static='-Bstatic'
  30746. - lt_prog_compiler_wl=''
  30747. - ;;
  30748. - esac
  30749. - ;;
  30750. - esac
  30751. - ;;
  30752. -
  30753. - osf3* | osf4* | osf5*)
  30754. - lt_prog_compiler_wl='-Wl,'
  30755. - # All OSF/1 code is PIC.
  30756. - lt_prog_compiler_static='-non_shared'
  30757. - ;;
  30758. -
  30759. - rdos*)
  30760. - lt_prog_compiler_static='-non_shared'
  30761. - ;;
  30762. + ;
  30763. + return 0;
  30764. +}
  30765. +_ACEOF
  30766. +if ac_fn_cxx_try_compile "$LINENO"; then :
  30767. + ac_compiler_gnu=yes
  30768. +else
  30769. + ac_compiler_gnu=no
  30770. +fi
  30771. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30772. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  30773. - solaris*)
  30774. - lt_prog_compiler_pic='-KPIC'
  30775. - lt_prog_compiler_static='-Bstatic'
  30776. - case $cc_basename in
  30777. - f77* | f90* | f95*)
  30778. - lt_prog_compiler_wl='-Qoption ld ';;
  30779. - *)
  30780. - lt_prog_compiler_wl='-Wl,';;
  30781. - esac
  30782. - ;;
  30783. +fi
  30784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  30785. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  30786. +if test $ac_compiler_gnu = yes; then
  30787. + GXX=yes
  30788. +else
  30789. + GXX=
  30790. +fi
  30791. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  30792. +ac_save_CXXFLAGS=$CXXFLAGS
  30793. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  30794. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  30795. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  30796. + $as_echo_n "(cached) " >&6
  30797. +else
  30798. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  30799. + ac_cxx_werror_flag=yes
  30800. + ac_cv_prog_cxx_g=no
  30801. + CXXFLAGS="-g"
  30802. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30803. +/* end confdefs.h. */
  30804. - sunos4*)
  30805. - lt_prog_compiler_wl='-Qoption ld '
  30806. - lt_prog_compiler_pic='-PIC'
  30807. - lt_prog_compiler_static='-Bstatic'
  30808. - ;;
  30809. +int
  30810. +main ()
  30811. +{
  30812. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30813. - lt_prog_compiler_wl='-Wl,'
  30814. - lt_prog_compiler_pic='-KPIC'
  30815. - lt_prog_compiler_static='-Bstatic'
  30816. - ;;
  30817. + ;
  30818. + return 0;
  30819. +}
  30820. +_ACEOF
  30821. +if ac_fn_cxx_try_compile "$LINENO"; then :
  30822. + ac_cv_prog_cxx_g=yes
  30823. +else
  30824. + CXXFLAGS=""
  30825. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30826. +/* end confdefs.h. */
  30827. - sysv4*MP*)
  30828. - if test -d /usr/nec ;then
  30829. - lt_prog_compiler_pic='-Kconform_pic'
  30830. - lt_prog_compiler_static='-Bstatic'
  30831. - fi
  30832. - ;;
  30833. +int
  30834. +main ()
  30835. +{
  30836. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30837. - lt_prog_compiler_wl='-Wl,'
  30838. - lt_prog_compiler_pic='-KPIC'
  30839. - lt_prog_compiler_static='-Bstatic'
  30840. - ;;
  30841. + ;
  30842. + return 0;
  30843. +}
  30844. +_ACEOF
  30845. +if ac_fn_cxx_try_compile "$LINENO"; then :
  30846. - unicos*)
  30847. - lt_prog_compiler_wl='-Wl,'
  30848. - lt_prog_compiler_can_build_shared=no
  30849. - ;;
  30850. +else
  30851. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  30852. + CXXFLAGS="-g"
  30853. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30854. +/* end confdefs.h. */
  30855. - uts4*)
  30856. - lt_prog_compiler_pic='-pic'
  30857. - lt_prog_compiler_static='-Bstatic'
  30858. - ;;
  30859. +int
  30860. +main ()
  30861. +{
  30862. - *)
  30863. - lt_prog_compiler_can_build_shared=no
  30864. - ;;
  30865. - esac
  30866. + ;
  30867. + return 0;
  30868. +}
  30869. +_ACEOF
  30870. +if ac_fn_cxx_try_compile "$LINENO"; then :
  30871. + ac_cv_prog_cxx_g=yes
  30872. +fi
  30873. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30874. +fi
  30875. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30876. +fi
  30877. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30878. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  30879. +fi
  30880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  30881. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  30882. +if test "$ac_test_CXXFLAGS" = set; then
  30883. + CXXFLAGS=$ac_save_CXXFLAGS
  30884. +elif test $ac_cv_prog_cxx_g = yes; then
  30885. + if test "$GXX" = yes; then
  30886. + CXXFLAGS="-g -O2"
  30887. + else
  30888. + CXXFLAGS="-g"
  30889. fi
  30890. +else
  30891. + if test "$GXX" = yes; then
  30892. + CXXFLAGS="-O2"
  30893. + else
  30894. + CXXFLAGS=
  30895. + fi
  30896. +fi
  30897. +ac_ext=c
  30898. +ac_cpp='$CPP $CPPFLAGS'
  30899. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30900. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30901. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30902. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  30903. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  30904. -
  30905. -#
  30906. -# Check to make sure the PIC flag actually works.
  30907. -#
  30908. -if test -n "$lt_prog_compiler_pic"; then
  30909. -
  30910. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  30911. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  30912. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  30913. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30914. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  30915. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  30916. + (test "X$CXX" != "Xg++"))) ; then
  30917. + ac_ext=cpp
  30918. +ac_cpp='$CXXCPP $CPPFLAGS'
  30919. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30920. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30921. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  30923. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  30924. +if test -z "$CXXCPP"; then
  30925. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  30926. + $as_echo_n "(cached) " >&6
  30927. else
  30928. - lt_prog_compiler_pic_works=no
  30929. - ac_outfile=conftest.$ac_objext
  30930. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30931. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  30932. - # Insert the option either (1) after the last *FLAGS variable, or
  30933. - # (2) before a word containing "conftest.", or (3) at the end.
  30934. - # Note that $ac_compile itself does not contain backslashes and begins
  30935. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30936. - # The option is referenced via a variable to avoid confusing sed.
  30937. - lt_compile=`echo "$ac_compile" | $SED \
  30938. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30939. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30940. - -e 's:$: $lt_compiler_flag:'`
  30941. - (eval echo "\"\$as_me:13563: $lt_compile\"" >&5)
  30942. - (eval "$lt_compile" 2>conftest.err)
  30943. - ac_status=$?
  30944. - cat conftest.err >&5
  30945. - echo "$as_me:13567: \$? = $ac_status" >&5
  30946. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30947. - # The compiler can only warn and ignore the option if not recognized
  30948. - # So say no if there are warnings other than the usual output.
  30949. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30950. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30951. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30952. - lt_prog_compiler_pic_works=yes
  30953. - fi
  30954. - fi
  30955. - $rm conftest*
  30956. + # Double quotes because CXXCPP needs to be expanded
  30957. + for CXXCPP in "$CXX -E" "/lib/cpp"
  30958. + do
  30959. + ac_preproc_ok=false
  30960. +for ac_cxx_preproc_warn_flag in '' yes
  30961. +do
  30962. + # Use a header file that comes with gcc, so configuring glibc
  30963. + # with a fresh cross-compiler works.
  30964. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30965. + # <limits.h> exists even on freestanding compilers.
  30966. + # On the NeXT, cc -E runs the code through the compiler's parser,
  30967. + # not just through cpp. "Syntax error" is here to catch this case.
  30968. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30969. +/* end confdefs.h. */
  30970. +#ifdef __STDC__
  30971. +# include <limits.h>
  30972. +#else
  30973. +# include <assert.h>
  30974. +#endif
  30975. + Syntax error
  30976. +_ACEOF
  30977. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  30978. +else
  30979. + # Broken: fails on valid input.
  30980. +continue
  30981. fi
  30982. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  30983. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  30984. +rm -f conftest.err conftest.$ac_ext
  30985. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  30986. - case $lt_prog_compiler_pic in
  30987. - "" | " "*) ;;
  30988. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  30989. - esac
  30990. + # OK, works on sane cases. Now check whether nonexistent headers
  30991. + # can be detected and how.
  30992. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30993. +/* end confdefs.h. */
  30994. +#include <ac_nonexistent.h>
  30995. +_ACEOF
  30996. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  30997. + # Broken: success on invalid input.
  30998. +continue
  30999. else
  31000. - lt_prog_compiler_pic=
  31001. - lt_prog_compiler_can_build_shared=no
  31002. + # Passes both tests.
  31003. +ac_preproc_ok=:
  31004. +break
  31005. fi
  31006. +rm -f conftest.err conftest.$ac_ext
  31007. +done
  31008. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31009. +rm -f conftest.err conftest.$ac_ext
  31010. +if $ac_preproc_ok; then :
  31011. + break
  31012. fi
  31013. -case $host_os in
  31014. - # For platforms which do not support PIC, -DPIC is meaningless:
  31015. - *djgpp*)
  31016. - lt_prog_compiler_pic=
  31017. - ;;
  31018. - *)
  31019. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  31020. - ;;
  31021. -esac
  31022. -#
  31023. -# Check to make sure the static flag actually works.
  31024. -#
  31025. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  31026. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31027. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31028. -if test "${lt_prog_compiler_static_works+set}" = set; then
  31029. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31030. + done
  31031. + ac_cv_prog_CXXCPP=$CXXCPP
  31032. +
  31033. +fi
  31034. + CXXCPP=$ac_cv_prog_CXXCPP
  31035. else
  31036. - lt_prog_compiler_static_works=no
  31037. - save_LDFLAGS="$LDFLAGS"
  31038. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31039. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  31040. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31041. - # The linker can only warn and ignore the option if not recognized
  31042. - # So say no if there are warnings
  31043. - if test -s conftest.err; then
  31044. - # Append any errors to the config.log.
  31045. - cat conftest.err 1>&5
  31046. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31047. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31048. - if diff conftest.exp conftest.er2 >/dev/null; then
  31049. - lt_prog_compiler_static_works=yes
  31050. - fi
  31051. - else
  31052. - lt_prog_compiler_static_works=yes
  31053. - fi
  31054. - fi
  31055. - $rm conftest*
  31056. - LDFLAGS="$save_LDFLAGS"
  31057. + ac_cv_prog_CXXCPP=$CXXCPP
  31058. +fi
  31059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  31060. +$as_echo "$CXXCPP" >&6; }
  31061. +ac_preproc_ok=false
  31062. +for ac_cxx_preproc_warn_flag in '' yes
  31063. +do
  31064. + # Use a header file that comes with gcc, so configuring glibc
  31065. + # with a fresh cross-compiler works.
  31066. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31067. + # <limits.h> exists even on freestanding compilers.
  31068. + # On the NeXT, cc -E runs the code through the compiler's parser,
  31069. + # not just through cpp. "Syntax error" is here to catch this case.
  31070. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31071. +/* end confdefs.h. */
  31072. +#ifdef __STDC__
  31073. +# include <limits.h>
  31074. +#else
  31075. +# include <assert.h>
  31076. +#endif
  31077. + Syntax error
  31078. +_ACEOF
  31079. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  31080. +else
  31081. + # Broken: fails on valid input.
  31082. +continue
  31083. fi
  31084. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  31085. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  31086. +rm -f conftest.err conftest.$ac_ext
  31087. -if test x"$lt_prog_compiler_static_works" = xyes; then
  31088. - :
  31089. + # OK, works on sane cases. Now check whether nonexistent headers
  31090. + # can be detected and how.
  31091. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31092. +/* end confdefs.h. */
  31093. +#include <ac_nonexistent.h>
  31094. +_ACEOF
  31095. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  31096. + # Broken: success on invalid input.
  31097. +continue
  31098. else
  31099. - lt_prog_compiler_static=
  31100. + # Passes both tests.
  31101. +ac_preproc_ok=:
  31102. +break
  31103. fi
  31104. +rm -f conftest.err conftest.$ac_ext
  31105. +done
  31106. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31107. +rm -f conftest.err conftest.$ac_ext
  31108. +if $ac_preproc_ok; then :
  31109. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31110. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31111. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  31112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31113. else
  31114. - lt_cv_prog_compiler_c_o=no
  31115. - $rm -r conftest 2>/dev/null
  31116. - mkdir conftest
  31117. - cd conftest
  31118. - mkdir out
  31119. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31120. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31121. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31122. +_lt_caught_CXX_error=yes; }
  31123. +fi
  31124. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31125. - # Insert the option either (1) after the last *FLAGS variable, or
  31126. - # (2) before a word containing "conftest.", or (3) at the end.
  31127. - # Note that $ac_compile itself does not contain backslashes and begins
  31128. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31129. - lt_compile=`echo "$ac_compile" | $SED \
  31130. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31131. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31132. - -e 's:$: $lt_compiler_flag:'`
  31133. - (eval echo "\"\$as_me:13667: $lt_compile\"" >&5)
  31134. - (eval "$lt_compile" 2>out/conftest.err)
  31135. - ac_status=$?
  31136. - cat out/conftest.err >&5
  31137. - echo "$as_me:13671: \$? = $ac_status" >&5
  31138. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31139. - then
  31140. - # The compiler can only warn and ignore the option if not recognized
  31141. - # So say no if there are warnings
  31142. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31143. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31144. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31145. - lt_cv_prog_compiler_c_o=yes
  31146. - fi
  31147. - fi
  31148. - chmod u+w . 2>&5
  31149. - $rm conftest*
  31150. - # SGI C++ compiler will create directory out/ii_files/ for
  31151. - # template instantiation
  31152. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31153. - $rm out/* && rmdir out
  31154. - cd ..
  31155. - rmdir conftest
  31156. - $rm conftest*
  31157. +ac_ext=c
  31158. +ac_cpp='$CPP $CPPFLAGS'
  31159. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31160. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31161. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31162. +else
  31163. + _lt_caught_CXX_error=yes
  31164. fi
  31165. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  31166. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  31167. -hard_links="nottested"
  31168. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  31169. - # do not overwrite the value of need_locks provided by the user
  31170. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31171. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31172. - hard_links=yes
  31173. - $rm conftest*
  31174. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31175. - touch conftest.a
  31176. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31177. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31178. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31179. -echo "${ECHO_T}$hard_links" >&6; }
  31180. - if test "$hard_links" = no; then
  31181. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31182. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31183. - need_locks=warn
  31184. +
  31185. +
  31186. +
  31187. +ac_ext=f
  31188. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  31189. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31190. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  31191. +if test -n "$ac_tool_prefix"; then
  31192. + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  31193. + do
  31194. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  31195. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  31196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31197. +$as_echo_n "checking for $ac_word... " >&6; }
  31198. +if test "${ac_cv_prog_F77+set}" = set; then :
  31199. + $as_echo_n "(cached) " >&6
  31200. +else
  31201. + if test -n "$F77"; then
  31202. + ac_cv_prog_F77="$F77" # Let the user override the test.
  31203. +else
  31204. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31205. +for as_dir in $PATH
  31206. +do
  31207. + IFS=$as_save_IFS
  31208. + test -z "$as_dir" && as_dir=.
  31209. + for ac_exec_ext in '' $ac_executable_extensions; do
  31210. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31211. + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  31212. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31213. + break 2
  31214. fi
  31215. +done
  31216. + done
  31217. +IFS=$as_save_IFS
  31218. +
  31219. +fi
  31220. +fi
  31221. +F77=$ac_cv_prog_F77
  31222. +if test -n "$F77"; then
  31223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  31224. +$as_echo "$F77" >&6; }
  31225. else
  31226. - need_locks=no
  31227. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31228. +$as_echo "no" >&6; }
  31229. fi
  31230. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31231. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31232. - runpath_var=
  31233. - allow_undefined_flag=
  31234. - enable_shared_with_static_runtimes=no
  31235. - archive_cmds=
  31236. - archive_expsym_cmds=
  31237. - old_archive_From_new_cmds=
  31238. - old_archive_from_expsyms_cmds=
  31239. - export_dynamic_flag_spec=
  31240. - whole_archive_flag_spec=
  31241. - thread_safe_flag_spec=
  31242. - hardcode_libdir_flag_spec=
  31243. - hardcode_libdir_flag_spec_ld=
  31244. - hardcode_libdir_separator=
  31245. - hardcode_direct=no
  31246. - hardcode_minus_L=no
  31247. - hardcode_shlibpath_var=unsupported
  31248. - link_all_deplibs=unknown
  31249. - hardcode_automatic=no
  31250. - module_cmds=
  31251. - module_expsym_cmds=
  31252. - always_export_symbols=no
  31253. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31254. - # include_expsyms should be a list of space-separated symbols to be *always*
  31255. - # included in the symbol list
  31256. - include_expsyms=
  31257. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31258. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31259. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31260. - # as well as any symbol that contains `d'.
  31261. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  31262. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31263. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31264. - # the symbol is explicitly referenced. Since portable code cannot
  31265. - # rely on this symbol name, it's probably fine to never include it in
  31266. - # preloaded symbol tables.
  31267. - extract_expsyms_cmds=
  31268. - # Just being paranoid about ensuring that cc_basename is set.
  31269. - for cc_temp in $compiler""; do
  31270. - case $cc_temp in
  31271. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31272. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31273. - \-*) ;;
  31274. - *) break;;
  31275. - esac
  31276. + test -n "$F77" && break
  31277. + done
  31278. +fi
  31279. +if test -z "$F77"; then
  31280. + ac_ct_F77=$F77
  31281. + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  31282. +do
  31283. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  31284. +set dummy $ac_prog; ac_word=$2
  31285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31286. +$as_echo_n "checking for $ac_word... " >&6; }
  31287. +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
  31288. + $as_echo_n "(cached) " >&6
  31289. +else
  31290. + if test -n "$ac_ct_F77"; then
  31291. + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  31292. +else
  31293. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31294. +for as_dir in $PATH
  31295. +do
  31296. + IFS=$as_save_IFS
  31297. + test -z "$as_dir" && as_dir=.
  31298. + for ac_exec_ext in '' $ac_executable_extensions; do
  31299. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31300. + ac_cv_prog_ac_ct_F77="$ac_prog"
  31301. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31302. + break 2
  31303. + fi
  31304. done
  31305. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31306. + done
  31307. +IFS=$as_save_IFS
  31308. - case $host_os in
  31309. - cygwin* | mingw* | pw32*)
  31310. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31311. - # When not using gcc, we currently assume that we are using
  31312. - # Microsoft Visual C++.
  31313. - if test "$GCC" != yes; then
  31314. - with_gnu_ld=no
  31315. - fi
  31316. - ;;
  31317. - interix*)
  31318. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31319. - with_gnu_ld=yes
  31320. - ;;
  31321. - openbsd*)
  31322. - with_gnu_ld=no
  31323. - ;;
  31324. - esac
  31325. +fi
  31326. +fi
  31327. +ac_ct_F77=$ac_cv_prog_ac_ct_F77
  31328. +if test -n "$ac_ct_F77"; then
  31329. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  31330. +$as_echo "$ac_ct_F77" >&6; }
  31331. +else
  31332. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31333. +$as_echo "no" >&6; }
  31334. +fi
  31335. - ld_shlibs=yes
  31336. - if test "$with_gnu_ld" = yes; then
  31337. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31338. - wlarc='${wl}'
  31339. - # Set some defaults for GNU ld with shared library support. These
  31340. - # are reset later if shared libraries are not supported. Putting them
  31341. - # here allows them to be overridden if necessary.
  31342. - runpath_var=LD_RUN_PATH
  31343. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  31344. - export_dynamic_flag_spec='${wl}--export-dynamic'
  31345. - # ancient GNU ld didn't support --whole-archive et. al.
  31346. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31347. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31348. - else
  31349. - whole_archive_flag_spec=
  31350. - fi
  31351. - supports_anon_versioning=no
  31352. - case `$LD -v 2>/dev/null` in
  31353. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31354. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31355. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31356. - *\ 2.11.*) ;; # other 2.11 versions
  31357. - *) supports_anon_versioning=yes ;;
  31358. - esac
  31359. + test -n "$ac_ct_F77" && break
  31360. +done
  31361. - # See if GNU ld supports shared libraries.
  31362. - case $host_os in
  31363. - aix3* | aix4* | aix5*)
  31364. - # On AIX/PPC, the GNU linker is very broken
  31365. - if test "$host_cpu" != ia64; then
  31366. - ld_shlibs=no
  31367. - cat <<EOF 1>&2
  31368. + if test "x$ac_ct_F77" = x; then
  31369. + F77=""
  31370. + else
  31371. + case $cross_compiling:$ac_tool_warned in
  31372. +yes:)
  31373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  31374. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31375. +ac_tool_warned=yes ;;
  31376. +esac
  31377. + F77=$ac_ct_F77
  31378. + fi
  31379. +fi
  31380. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31381. -*** to be unable to reliably create shared libraries on AIX.
  31382. -*** Therefore, libtool is disabling shared libraries support. If you
  31383. -*** really care for shared libraries, you may want to modify your PATH
  31384. -*** so that a non-GNU linker is found, and then restart.
  31385. -EOF
  31386. - fi
  31387. - ;;
  31388. +# Provide some information about the compiler.
  31389. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  31390. +set X $ac_compile
  31391. +ac_compiler=$2
  31392. +for ac_option in --version -v -V -qversion; do
  31393. + { { ac_try="$ac_compiler $ac_option >&5"
  31394. +case "(($ac_try" in
  31395. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31396. + *) ac_try_echo=$ac_try;;
  31397. +esac
  31398. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  31399. +$as_echo "$ac_try_echo"; } >&5
  31400. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  31401. + ac_status=$?
  31402. + if test -s conftest.err; then
  31403. + sed '10a\
  31404. +... rest of stderr output deleted ...
  31405. + 10q' conftest.err >conftest.er1
  31406. + cat conftest.er1 >&5
  31407. + fi
  31408. + rm -f conftest.er1 conftest.err
  31409. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  31410. + test $ac_status = 0; }
  31411. +done
  31412. +rm -f a.out
  31413. - amigaos*)
  31414. - 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)'
  31415. - hardcode_libdir_flag_spec='-L$libdir'
  31416. - hardcode_minus_L=yes
  31417. +# If we don't use `.F' as extension, the preprocessor is not run on the
  31418. +# input file. (Note that this only needs to work for GNU compilers.)
  31419. +ac_save_ext=$ac_ext
  31420. +ac_ext=F
  31421. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  31422. +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  31423. +if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
  31424. + $as_echo_n "(cached) " >&6
  31425. +else
  31426. + cat > conftest.$ac_ext <<_ACEOF
  31427. + program main
  31428. +#ifndef __GNUC__
  31429. + choke me
  31430. +#endif
  31431. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31432. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31433. - # to version 4, is to share data among multiple programs linked
  31434. - # with the same dynamic library. Since this doesn't match the
  31435. - # behavior of shared libraries on other platforms, we can't use
  31436. - # them.
  31437. - ld_shlibs=no
  31438. - ;;
  31439. + end
  31440. +_ACEOF
  31441. +if ac_fn_f77_try_compile "$LINENO"; then :
  31442. + ac_compiler_gnu=yes
  31443. +else
  31444. + ac_compiler_gnu=no
  31445. +fi
  31446. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31447. +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  31448. - beos*)
  31449. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31450. - allow_undefined_flag=unsupported
  31451. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31452. - # support --undefined. This deserves some investigation. FIXME
  31453. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31454. - else
  31455. - ld_shlibs=no
  31456. - fi
  31457. - ;;
  31458. +fi
  31459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  31460. +$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  31461. +ac_ext=$ac_save_ext
  31462. +ac_test_FFLAGS=${FFLAGS+set}
  31463. +ac_save_FFLAGS=$FFLAGS
  31464. +FFLAGS=
  31465. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  31466. +$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  31467. +if test "${ac_cv_prog_f77_g+set}" = set; then :
  31468. + $as_echo_n "(cached) " >&6
  31469. +else
  31470. + FFLAGS=-g
  31471. +cat > conftest.$ac_ext <<_ACEOF
  31472. + program main
  31473. - cygwin* | mingw* | pw32*)
  31474. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  31475. - # as there is no search path for DLLs.
  31476. - hardcode_libdir_flag_spec='-L$libdir'
  31477. - allow_undefined_flag=unsupported
  31478. - always_export_symbols=no
  31479. - enable_shared_with_static_runtimes=yes
  31480. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  31481. + end
  31482. +_ACEOF
  31483. +if ac_fn_f77_try_compile "$LINENO"; then :
  31484. + ac_cv_prog_f77_g=yes
  31485. +else
  31486. + ac_cv_prog_f77_g=no
  31487. +fi
  31488. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31489. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31490. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31491. - # If the export-symbols file already is a .def file (1st line
  31492. - # is EXPORTS), use it as is; otherwise, prepend...
  31493. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31494. - cp $export_symbols $output_objdir/$soname.def;
  31495. - else
  31496. - echo EXPORTS > $output_objdir/$soname.def;
  31497. - cat $export_symbols >> $output_objdir/$soname.def;
  31498. - fi~
  31499. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31500. - else
  31501. - ld_shlibs=no
  31502. - fi
  31503. - ;;
  31504. +fi
  31505. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  31506. +$as_echo "$ac_cv_prog_f77_g" >&6; }
  31507. +if test "$ac_test_FFLAGS" = set; then
  31508. + FFLAGS=$ac_save_FFLAGS
  31509. +elif test $ac_cv_prog_f77_g = yes; then
  31510. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  31511. + FFLAGS="-g -O2"
  31512. + else
  31513. + FFLAGS="-g"
  31514. + fi
  31515. +else
  31516. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  31517. + FFLAGS="-O2"
  31518. + else
  31519. + FFLAGS=
  31520. + fi
  31521. +fi
  31522. - interix[3-9]*)
  31523. - hardcode_direct=no
  31524. - hardcode_shlibpath_var=no
  31525. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  31526. - export_dynamic_flag_spec='${wl}-E'
  31527. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31528. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31529. - # default) and relocated if they conflict, which is a slow very memory
  31530. - # consuming and fragmenting process. To avoid this, we pick a random,
  31531. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31532. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31533. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31534. - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31535. - ;;
  31536. +if test $ac_compiler_gnu = yes; then
  31537. + G77=yes
  31538. +else
  31539. + G77=
  31540. +fi
  31541. +ac_ext=c
  31542. +ac_cpp='$CPP $CPPFLAGS'
  31543. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31544. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31545. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31546. - gnu* | linux* | k*bsd*-gnu)
  31547. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31548. - tmp_addflag=
  31549. - case $cc_basename,$host_cpu in
  31550. - pgcc*) # Portland Group C compiler
  31551. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31552. - tmp_addflag=' $pic_flag'
  31553. - ;;
  31554. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31555. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31556. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31557. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31558. - tmp_addflag=' -i_dynamic' ;;
  31559. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31560. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31561. - ifc* | ifort*) # Intel Fortran compiler
  31562. - tmp_addflag=' -nofor_main' ;;
  31563. - esac
  31564. - case `$CC -V 2>&1 | sed 5q` in
  31565. - *Sun\ C*) # Sun C 5.9
  31566. - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31567. - tmp_sharedflag='-G' ;;
  31568. - *Sun\ F*) # Sun Fortran 8.3
  31569. - tmp_sharedflag='-G' ;;
  31570. - *)
  31571. - tmp_sharedflag='-shared' ;;
  31572. - esac
  31573. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31574. +if test -z "$F77" || test "X$F77" = "Xno"; then
  31575. + _lt_disable_F77=yes
  31576. +fi
  31577. - if test $supports_anon_versioning = yes; then
  31578. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  31579. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  31580. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  31581. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  31582. - fi
  31583. - else
  31584. - ld_shlibs=no
  31585. - fi
  31586. - ;;
  31587. - netbsd*)
  31588. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31589. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  31590. - wlarc=
  31591. - else
  31592. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31593. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31594. - fi
  31595. - ;;
  31596. - solaris*)
  31597. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  31598. - ld_shlibs=no
  31599. - cat <<EOF 1>&2
  31600. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  31601. -*** create shared libraries on Solaris systems. Therefore, libtool
  31602. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31603. -*** binutils to release 2.9.1 or newer. Another option is to modify
  31604. -*** your PATH or compiler configuration so that the native linker is
  31605. -*** used, and then restart.
  31606. -EOF
  31607. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31608. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31609. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31610. - else
  31611. - ld_shlibs=no
  31612. - fi
  31613. - ;;
  31614. +# Set options
  31615. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  31616. - case `$LD -v 2>&1` in
  31617. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  31618. - ld_shlibs=no
  31619. - cat <<_LT_EOF 1>&2
  31620. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  31621. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  31622. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31623. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  31624. -*** your PATH or compiler configuration so that the native linker is
  31625. -*** used, and then restart.
  31626. -_LT_EOF
  31627. - ;;
  31628. - *)
  31629. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31630. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  31631. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  31632. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  31633. - else
  31634. - ld_shlibs=no
  31635. - fi
  31636. - ;;
  31637. - esac
  31638. - ;;
  31639. + enable_dlopen=no
  31640. +
  31641. - sunos4*)
  31642. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31643. - wlarc=
  31644. - hardcode_direct=yes
  31645. - hardcode_shlibpath_var=no
  31646. - ;;
  31647. + # Check whether --enable-shared was given.
  31648. +if test "${enable_shared+set}" = set; then :
  31649. + enableval=$enable_shared; p=${PACKAGE-default}
  31650. + case $enableval in
  31651. + yes) enable_shared=yes ;;
  31652. + no) enable_shared=no ;;
  31653. *)
  31654. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31655. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31656. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31657. - else
  31658. - ld_shlibs=no
  31659. - fi
  31660. + enable_shared=no
  31661. + # Look at the argument we got. We use all the common list separators.
  31662. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31663. + for pkg in $enableval; do
  31664. + IFS="$lt_save_ifs"
  31665. + if test "X$pkg" = "X$p"; then
  31666. + enable_shared=yes
  31667. + fi
  31668. + done
  31669. + IFS="$lt_save_ifs"
  31670. ;;
  31671. esac
  31672. +else
  31673. + enable_shared=yes
  31674. +fi
  31675. - if test "$ld_shlibs" = no; then
  31676. - runpath_var=
  31677. - hardcode_libdir_flag_spec=
  31678. - export_dynamic_flag_spec=
  31679. - whole_archive_flag_spec=
  31680. - fi
  31681. - else
  31682. - # PORTME fill in a description of your system's linker (not GNU ld)
  31683. - case $host_os in
  31684. - aix3*)
  31685. - allow_undefined_flag=unsupported
  31686. - always_export_symbols=yes
  31687. - 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'
  31688. - # Note: this linker hardcodes the directories in LIBPATH if there
  31689. - # are no directories specified by -L.
  31690. - hardcode_minus_L=yes
  31691. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31692. - # Neither direct hardcoding nor static linking is supported with a
  31693. - # broken collect2.
  31694. - hardcode_direct=unsupported
  31695. - fi
  31696. - ;;
  31697. - aix4* | aix5*)
  31698. - if test "$host_cpu" = ia64; then
  31699. - # On IA64, the linker does run time linking by default, so we don't
  31700. - # have to do anything special.
  31701. - aix_use_runtimelinking=no
  31702. - exp_sym_flag='-Bexport'
  31703. - no_entry_flag=""
  31704. - else
  31705. - # If we're using GNU nm, then we don't want the "-C" option.
  31706. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31707. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31708. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31709. - else
  31710. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31711. - fi
  31712. - aix_use_runtimelinking=no
  31713. - # Test if we are trying to use run time linking or normal
  31714. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31715. - # need to do runtime linking.
  31716. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31717. - for ld_flag in $LDFLAGS; do
  31718. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31719. - aix_use_runtimelinking=yes
  31720. - break
  31721. - fi
  31722. - done
  31723. - ;;
  31724. - esac
  31725. - exp_sym_flag='-bexport'
  31726. - no_entry_flag='-bnoentry'
  31727. - fi
  31728. - # When large executables or shared objects are built, AIX ld can
  31729. - # have problems creating the table of contents. If linking a library
  31730. - # or program results in "error TOC overflow" add -mminimal-toc to
  31731. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31732. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31733. - archive_cmds=''
  31734. - hardcode_direct=yes
  31735. - hardcode_libdir_separator=':'
  31736. - link_all_deplibs=yes
  31737. - if test "$GCC" = yes; then
  31738. - case $host_os in aix4.[012]|aix4.[012].*)
  31739. - # We only want to do this on AIX 4.2 and lower, the check
  31740. - # below for broken collect2 doesn't work under 4.3+
  31741. - collect2name=`${CC} -print-prog-name=collect2`
  31742. - if test -f "$collect2name" && \
  31743. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31744. - then
  31745. - # We have reworked collect2
  31746. - :
  31747. - else
  31748. - # We have old collect2
  31749. - hardcode_direct=unsupported
  31750. - # It fails to find uninstalled libraries when the uninstalled
  31751. - # path is not listed in the libpath. Setting hardcode_minus_L
  31752. - # to unsupported forces relinking
  31753. - hardcode_minus_L=yes
  31754. - hardcode_libdir_flag_spec='-L$libdir'
  31755. - hardcode_libdir_separator=
  31756. - fi
  31757. - ;;
  31758. - esac
  31759. - shared_flag='-shared'
  31760. - if test "$aix_use_runtimelinking" = yes; then
  31761. - shared_flag="$shared_flag "'${wl}-G'
  31762. - fi
  31763. - else
  31764. - # not using gcc
  31765. - if test "$host_cpu" = ia64; then
  31766. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31767. - # chokes on -Wl,-G. The following line is correct:
  31768. - shared_flag='-G'
  31769. - else
  31770. - if test "$aix_use_runtimelinking" = yes; then
  31771. - shared_flag='${wl}-G'
  31772. - else
  31773. - shared_flag='${wl}-bM:SRE'
  31774. - fi
  31775. +
  31776. +
  31777. + # Check whether --enable-static was given.
  31778. +if test "${enable_static+set}" = set; then :
  31779. + enableval=$enable_static; p=${PACKAGE-default}
  31780. + case $enableval in
  31781. + yes) enable_static=yes ;;
  31782. + no) enable_static=no ;;
  31783. + *)
  31784. + enable_static=no
  31785. + # Look at the argument we got. We use all the common list separators.
  31786. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31787. + for pkg in $enableval; do
  31788. + IFS="$lt_save_ifs"
  31789. + if test "X$pkg" = "X$p"; then
  31790. + enable_static=yes
  31791. fi
  31792. - fi
  31793. + done
  31794. + IFS="$lt_save_ifs"
  31795. + ;;
  31796. + esac
  31797. +else
  31798. + enable_static=yes
  31799. +fi
  31800. +
  31801. +
  31802. +
  31803. - # It seems that -bexpall does not export symbols beginning with
  31804. - # underscore (_), so it is better to generate a list of symbols to export.
  31805. - always_export_symbols=yes
  31806. - if test "$aix_use_runtimelinking" = yes; then
  31807. - # Warning - without using the other runtime loading flags (-brtl),
  31808. - # -berok will link without error, but may produce a broken library.
  31809. - allow_undefined_flag='-berok'
  31810. - # Determine the default libpath from the value encoded in an empty executable.
  31811. - cat >conftest.$ac_ext <<_ACEOF
  31812. -/* confdefs.h. */
  31813. -_ACEOF
  31814. -cat confdefs.h >>conftest.$ac_ext
  31815. -cat >>conftest.$ac_ext <<_ACEOF
  31816. -/* end confdefs.h. */
  31817. -int
  31818. -main ()
  31819. -{
  31820. - ;
  31821. - return 0;
  31822. -}
  31823. -_ACEOF
  31824. -rm -f conftest.$ac_objext conftest$ac_exeext
  31825. -if { (ac_try="$ac_link"
  31826. -case "(($ac_try" in
  31827. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31828. - *) ac_try_echo=$ac_try;;
  31829. -esac
  31830. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31831. - (eval "$ac_link") 2>conftest.er1
  31832. - ac_status=$?
  31833. - grep -v '^ *+' conftest.er1 >conftest.err
  31834. - rm -f conftest.er1
  31835. - cat conftest.err >&5
  31836. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31837. - (exit $ac_status); } && {
  31838. - test -z "$ac_c_werror_flag" ||
  31839. - test ! -s conftest.err
  31840. - } && test -s conftest$ac_exeext &&
  31841. - $as_test_x conftest$ac_exeext; then
  31842. -lt_aix_libpath_sed='
  31843. - /Import File Strings/,/^$/ {
  31844. - /^0/ {
  31845. - s/^0 *\(.*\)$/\1/
  31846. - p
  31847. - }
  31848. - }'
  31849. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31850. -# Check for a 64-bit object if we didn't find anything.
  31851. -if test -z "$aix_libpath"; then
  31852. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31853. -fi
  31854. -else
  31855. - echo "$as_me: failed program was:" >&5
  31856. -sed 's/^/| /' conftest.$ac_ext >&5
  31857. +
  31858. +# Check whether --with-pic was given.
  31859. +if test "${with_pic+set}" = set; then :
  31860. + withval=$with_pic; pic_mode="$withval"
  31861. +else
  31862. + pic_mode=default
  31863. fi
  31864. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31865. - conftest$ac_exeext conftest.$ac_ext
  31866. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31867. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  31868. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  31869. - else
  31870. - if test "$host_cpu" = ia64; then
  31871. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  31872. - allow_undefined_flag="-z nodefs"
  31873. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  31874. - else
  31875. - # Determine the default libpath from the value encoded in an empty executable.
  31876. - cat >conftest.$ac_ext <<_ACEOF
  31877. -/* confdefs.h. */
  31878. -_ACEOF
  31879. -cat confdefs.h >>conftest.$ac_ext
  31880. -cat >>conftest.$ac_ext <<_ACEOF
  31881. -/* end confdefs.h. */
  31882. +test -z "$pic_mode" && pic_mode=default
  31883. -int
  31884. -main ()
  31885. -{
  31886. - ;
  31887. - return 0;
  31888. -}
  31889. -_ACEOF
  31890. -rm -f conftest.$ac_objext conftest$ac_exeext
  31891. -if { (ac_try="$ac_link"
  31892. -case "(($ac_try" in
  31893. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31894. - *) ac_try_echo=$ac_try;;
  31895. -esac
  31896. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31897. - (eval "$ac_link") 2>conftest.er1
  31898. - ac_status=$?
  31899. - grep -v '^ *+' conftest.er1 >conftest.err
  31900. - rm -f conftest.er1
  31901. - cat conftest.err >&5
  31902. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31903. - (exit $ac_status); } && {
  31904. - test -z "$ac_c_werror_flag" ||
  31905. - test ! -s conftest.err
  31906. - } && test -s conftest$ac_exeext &&
  31907. - $as_test_x conftest$ac_exeext; then
  31908. -lt_aix_libpath_sed='
  31909. - /Import File Strings/,/^$/ {
  31910. - /^0/ {
  31911. - s/^0 *\(.*\)$/\1/
  31912. - p
  31913. - }
  31914. - }'
  31915. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31916. -# Check for a 64-bit object if we didn't find anything.
  31917. -if test -z "$aix_libpath"; then
  31918. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31919. -fi
  31920. -else
  31921. - echo "$as_me: failed program was:" >&5
  31922. -sed 's/^/| /' conftest.$ac_ext >&5
  31923. -fi
  31924. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31925. - conftest$ac_exeext conftest.$ac_ext
  31926. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31927. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  31928. - # Warning - without using the other run time loading flags,
  31929. - # -berok will link without error, but may produce a broken library.
  31930. - no_undefined_flag=' ${wl}-bernotok'
  31931. - allow_undefined_flag=' ${wl}-berok'
  31932. - # Exported symbols can be pulled into shared objects from archives
  31933. - whole_archive_flag_spec='$convenience'
  31934. - archive_cmds_need_lc=yes
  31935. - # This is similar to how AIX traditionally builds its shared libraries.
  31936. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  31937. + # Check whether --enable-fast-install was given.
  31938. +if test "${enable_fast_install+set}" = set; then :
  31939. + enableval=$enable_fast_install; p=${PACKAGE-default}
  31940. + case $enableval in
  31941. + yes) enable_fast_install=yes ;;
  31942. + no) enable_fast_install=no ;;
  31943. + *)
  31944. + enable_fast_install=no
  31945. + # Look at the argument we got. We use all the common list separators.
  31946. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31947. + for pkg in $enableval; do
  31948. + IFS="$lt_save_ifs"
  31949. + if test "X$pkg" = "X$p"; then
  31950. + enable_fast_install=yes
  31951. fi
  31952. - fi
  31953. + done
  31954. + IFS="$lt_save_ifs"
  31955. ;;
  31956. + esac
  31957. +else
  31958. + enable_fast_install=yes
  31959. +fi
  31960. - amigaos*)
  31961. - 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)'
  31962. - hardcode_libdir_flag_spec='-L$libdir'
  31963. - hardcode_minus_L=yes
  31964. - # see comment about different semantics on the GNU ld section
  31965. - ld_shlibs=no
  31966. - ;;
  31967. - bsdi[45]*)
  31968. - export_dynamic_flag_spec=-rdynamic
  31969. - ;;
  31970. - cygwin* | mingw* | pw32*)
  31971. - # When not using gcc, we currently assume that we are using
  31972. - # Microsoft Visual C++.
  31973. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31974. - # no search path for DLLs.
  31975. - hardcode_libdir_flag_spec=' '
  31976. - allow_undefined_flag=unsupported
  31977. - # Tell ltmain to make .lib files, not .a files.
  31978. - libext=lib
  31979. - # Tell ltmain to make .dll files, not .so files.
  31980. - shrext_cmds=".dll"
  31981. - # FIXME: Setting linknames here is a bad hack.
  31982. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31983. - # The linker will automatically build a .lib file if we build a DLL.
  31984. - old_archive_From_new_cmds='true'
  31985. - # FIXME: Should let the user specify the lib program.
  31986. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  31987. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  31988. - enable_shared_with_static_runtimes=yes
  31989. - ;;
  31990. - darwin* | rhapsody*)
  31991. - case $host_os in
  31992. - rhapsody* | darwin1.[012])
  31993. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  31994. - ;;
  31995. - *) # Darwin 1.3 on
  31996. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31997. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31998. - else
  31999. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32000. - 10.[012])
  32001. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32002. - ;;
  32003. - 10.*)
  32004. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  32005. - ;;
  32006. - esac
  32007. - fi
  32008. - ;;
  32009. - esac
  32010. - archive_cmds_need_lc=no
  32011. - hardcode_direct=no
  32012. - hardcode_automatic=yes
  32013. - hardcode_shlibpath_var=unsupported
  32014. - whole_archive_flag_spec=''
  32015. - link_all_deplibs=yes
  32016. - if test "$GCC" = yes ; then
  32017. - output_verbose_link_cmd='echo'
  32018. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32019. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32020. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32021. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32022. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32023. - else
  32024. - case $cc_basename in
  32025. - xlc*)
  32026. - output_verbose_link_cmd='echo'
  32027. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  32028. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32029. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32030. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32031. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32032. - ;;
  32033. - *)
  32034. - ld_shlibs=no
  32035. - ;;
  32036. - esac
  32037. - fi
  32038. - ;;
  32039. - dgux*)
  32040. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32041. - hardcode_libdir_flag_spec='-L$libdir'
  32042. - hardcode_shlibpath_var=no
  32043. - ;;
  32044. - freebsd1*)
  32045. - ld_shlibs=no
  32046. - ;;
  32047. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32048. - # support. Future versions do this automatically, but an explicit c++rt0.o
  32049. - # does not break anything, and helps significantly (at the cost of a little
  32050. - # extra space).
  32051. - freebsd2.2*)
  32052. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32053. - hardcode_libdir_flag_spec='-R$libdir'
  32054. - hardcode_direct=yes
  32055. - hardcode_shlibpath_var=no
  32056. - ;;
  32057. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32058. - freebsd2*)
  32059. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32060. - hardcode_direct=yes
  32061. - hardcode_minus_L=yes
  32062. - hardcode_shlibpath_var=no
  32063. - ;;
  32064. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32065. - freebsd* | dragonfly*)
  32066. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32067. - hardcode_libdir_flag_spec='-R$libdir'
  32068. - hardcode_direct=yes
  32069. - hardcode_shlibpath_var=no
  32070. - ;;
  32071. - hpux9*)
  32072. - if test "$GCC" = yes; then
  32073. - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  32074. - else
  32075. - 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'
  32076. - fi
  32077. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32078. - hardcode_libdir_separator=:
  32079. - hardcode_direct=yes
  32080. - # hardcode_minus_L: Not really in the search PATH,
  32081. - # but as the default location of the library.
  32082. - hardcode_minus_L=yes
  32083. - export_dynamic_flag_spec='${wl}-E'
  32084. - ;;
  32085. +# This can be used to rebuild libtool when needed
  32086. +LIBTOOL_DEPS="$ltmain"
  32087. - hpux10*)
  32088. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32089. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32090. - else
  32091. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32092. - fi
  32093. - if test "$with_gnu_ld" = no; then
  32094. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32095. - hardcode_libdir_separator=:
  32096. +# Always use our own libtool.
  32097. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  32098. - hardcode_direct=yes
  32099. - export_dynamic_flag_spec='${wl}-E'
  32100. - # hardcode_minus_L: Not really in the search PATH,
  32101. - # but as the default location of the library.
  32102. - hardcode_minus_L=yes
  32103. - fi
  32104. - ;;
  32105. - hpux11*)
  32106. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32107. - case $host_cpu in
  32108. - hppa*64*)
  32109. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32110. - ;;
  32111. - ia64*)
  32112. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32113. - ;;
  32114. - *)
  32115. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32116. - ;;
  32117. - esac
  32118. - else
  32119. - case $host_cpu in
  32120. - hppa*64*)
  32121. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32122. - ;;
  32123. - ia64*)
  32124. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32125. - ;;
  32126. - *)
  32127. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32128. - ;;
  32129. - esac
  32130. - fi
  32131. - if test "$with_gnu_ld" = no; then
  32132. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32133. - hardcode_libdir_separator=:
  32134. - case $host_cpu in
  32135. - hppa*64*|ia64*)
  32136. - hardcode_libdir_flag_spec_ld='+b $libdir'
  32137. - hardcode_direct=no
  32138. - hardcode_shlibpath_var=no
  32139. - ;;
  32140. - *)
  32141. - hardcode_direct=yes
  32142. - export_dynamic_flag_spec='${wl}-E'
  32143. - # hardcode_minus_L: Not really in the search PATH,
  32144. - # but as the default location of the library.
  32145. - hardcode_minus_L=yes
  32146. - ;;
  32147. - esac
  32148. - fi
  32149. - ;;
  32150. - irix5* | irix6* | nonstopux*)
  32151. - if test "$GCC" = yes; then
  32152. - 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'
  32153. - else
  32154. - 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'
  32155. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  32156. - fi
  32157. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32158. - hardcode_libdir_separator=:
  32159. - link_all_deplibs=yes
  32160. - ;;
  32161. - netbsd*)
  32162. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32163. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32164. - else
  32165. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32166. - fi
  32167. - hardcode_libdir_flag_spec='-R$libdir'
  32168. - hardcode_direct=yes
  32169. - hardcode_shlibpath_var=no
  32170. - ;;
  32171. - newsos6)
  32172. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32173. - hardcode_direct=yes
  32174. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32175. - hardcode_libdir_separator=:
  32176. - hardcode_shlibpath_var=no
  32177. - ;;
  32178. - openbsd*)
  32179. - if test -f /usr/libexec/ld.so; then
  32180. - hardcode_direct=yes
  32181. - hardcode_shlibpath_var=no
  32182. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32183. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32184. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32185. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32186. - export_dynamic_flag_spec='${wl}-E'
  32187. - else
  32188. - case $host_os in
  32189. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32190. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32191. - hardcode_libdir_flag_spec='-R$libdir'
  32192. - ;;
  32193. - *)
  32194. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32195. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32196. - ;;
  32197. - esac
  32198. - fi
  32199. - else
  32200. - ld_shlibs=no
  32201. - fi
  32202. - ;;
  32203. - os2*)
  32204. - hardcode_libdir_flag_spec='-L$libdir'
  32205. - hardcode_minus_L=yes
  32206. - allow_undefined_flag=unsupported
  32207. - 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'
  32208. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32209. - ;;
  32210. - osf3*)
  32211. - if test "$GCC" = yes; then
  32212. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32213. - 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'
  32214. - else
  32215. - allow_undefined_flag=' -expect_unresolved \*'
  32216. - 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'
  32217. - fi
  32218. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32219. - hardcode_libdir_separator=:
  32220. - ;;
  32221. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32222. - if test "$GCC" = yes; then
  32223. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32224. - 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'
  32225. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32226. - else
  32227. - allow_undefined_flag=' -expect_unresolved \*'
  32228. - 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'
  32229. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  32230. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  32231. - # Both c and cxx compiler support -rpath directly
  32232. - hardcode_libdir_flag_spec='-rpath $libdir'
  32233. - fi
  32234. - hardcode_libdir_separator=:
  32235. - ;;
  32236. - solaris*)
  32237. - no_undefined_flag=' -z text'
  32238. - if test "$GCC" = yes; then
  32239. - wlarc='${wl}'
  32240. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32241. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32242. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32243. - else
  32244. - wlarc=''
  32245. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32246. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32247. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32248. - fi
  32249. - hardcode_libdir_flag_spec='-R$libdir'
  32250. - hardcode_shlibpath_var=no
  32251. - case $host_os in
  32252. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32253. - *)
  32254. - # The compiler driver will combine and reorder linker options,
  32255. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  32256. - # but is careful enough not to reorder.
  32257. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32258. - if test "$GCC" = yes; then
  32259. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32260. - else
  32261. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  32262. - fi
  32263. - ;;
  32264. - esac
  32265. - link_all_deplibs=yes
  32266. - ;;
  32267. - sunos4*)
  32268. - if test "x$host_vendor" = xsequent; then
  32269. - # Use $CC to link under sequent, because it throws in some extra .o
  32270. - # files that make .init and .fini sections work.
  32271. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32272. - else
  32273. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32274. - fi
  32275. - hardcode_libdir_flag_spec='-L$libdir'
  32276. - hardcode_direct=yes
  32277. - hardcode_minus_L=yes
  32278. - hardcode_shlibpath_var=no
  32279. - ;;
  32280. - sysv4)
  32281. - case $host_vendor in
  32282. - sni)
  32283. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32284. - hardcode_direct=yes # is this really true???
  32285. - ;;
  32286. - siemens)
  32287. - ## LD is ld it makes a PLAMLIB
  32288. - ## CC just makes a GrossModule.
  32289. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32290. - reload_cmds='$CC -r -o $output$reload_objs'
  32291. - hardcode_direct=no
  32292. - ;;
  32293. - motorola)
  32294. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32295. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  32296. - ;;
  32297. - esac
  32298. - runpath_var='LD_RUN_PATH'
  32299. - hardcode_shlibpath_var=no
  32300. - ;;
  32301. - sysv4.3*)
  32302. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32303. - hardcode_shlibpath_var=no
  32304. - export_dynamic_flag_spec='-Bexport'
  32305. - ;;
  32306. - sysv4*MP*)
  32307. - if test -d /usr/nec; then
  32308. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32309. - hardcode_shlibpath_var=no
  32310. - runpath_var=LD_RUN_PATH
  32311. - hardcode_runpath_var=yes
  32312. - ld_shlibs=yes
  32313. - fi
  32314. - ;;
  32315. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32316. - no_undefined_flag='${wl}-z,text'
  32317. - archive_cmds_need_lc=no
  32318. - hardcode_shlibpath_var=no
  32319. - runpath_var='LD_RUN_PATH'
  32320. - if test "$GCC" = yes; then
  32321. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32322. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32323. - else
  32324. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32325. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32326. - fi
  32327. - ;;
  32328. - sysv5* | sco3.2v5* | sco5v6*)
  32329. - # Note: We can NOT use -z defs as we might desire, because we do not
  32330. - # link with -lc, and that would cause any symbols used from libc to
  32331. - # always be unresolved, which means just about no library would
  32332. - # ever link correctly. If we're not using GNU ld we use -z text
  32333. - # though, which does catch some bad symbols but isn't as heavy-handed
  32334. - # as -z defs.
  32335. - no_undefined_flag='${wl}-z,text'
  32336. - allow_undefined_flag='${wl}-z,nodefs'
  32337. - archive_cmds_need_lc=no
  32338. - hardcode_shlibpath_var=no
  32339. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32340. - hardcode_libdir_separator=':'
  32341. - link_all_deplibs=yes
  32342. - export_dynamic_flag_spec='${wl}-Bexport'
  32343. - runpath_var='LD_RUN_PATH'
  32344. - if test "$GCC" = yes; then
  32345. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32346. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32347. - else
  32348. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32349. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32350. - fi
  32351. - ;;
  32352. - uts4*)
  32353. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32354. - hardcode_libdir_flag_spec='-L$libdir'
  32355. - hardcode_shlibpath_var=no
  32356. - ;;
  32357. - *)
  32358. - ld_shlibs=no
  32359. - ;;
  32360. - esac
  32361. - fi
  32362. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  32363. -echo "${ECHO_T}$ld_shlibs" >&6; }
  32364. -test "$ld_shlibs" = no && can_build_shared=no
  32365. +test -z "$LN_S" && LN_S="ln -s"
  32366. -#
  32367. -# Do we need to explicitly link libc?
  32368. -#
  32369. -case "x$archive_cmds_need_lc" in
  32370. -x|xyes)
  32371. - # Assume -lc should be added
  32372. - archive_cmds_need_lc=yes
  32373. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32374. - case $archive_cmds in
  32375. - *'~'*)
  32376. - # FIXME: we may have to deal with multi-command sequences.
  32377. - ;;
  32378. - '$CC '*)
  32379. - # Test whether the compiler implicitly links with -lc since on some
  32380. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32381. - # to ld, don't add -lc before -lgcc.
  32382. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32383. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32384. - $rm conftest*
  32385. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32386. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32387. - (eval $ac_compile) 2>&5
  32388. - ac_status=$?
  32389. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32390. - (exit $ac_status); } 2>conftest.err; then
  32391. - soname=conftest
  32392. - lib=conftest
  32393. - libobjs=conftest.$ac_objext
  32394. - deplibs=
  32395. - wl=$lt_prog_compiler_wl
  32396. - pic_flag=$lt_prog_compiler_pic
  32397. - compiler_flags=-v
  32398. - linker_flags=-v
  32399. - verstring=
  32400. - output_objdir=.
  32401. - libname=conftest
  32402. - lt_save_allow_undefined_flag=$allow_undefined_flag
  32403. - allow_undefined_flag=
  32404. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32405. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32406. - ac_status=$?
  32407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32408. - (exit $ac_status); }
  32409. - then
  32410. - archive_cmds_need_lc=no
  32411. - else
  32412. - archive_cmds_need_lc=yes
  32413. - fi
  32414. - allow_undefined_flag=$lt_save_allow_undefined_flag
  32415. - else
  32416. - cat conftest.err 1>&5
  32417. - fi
  32418. - $rm conftest*
  32419. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  32420. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  32421. - ;;
  32422. - esac
  32423. - fi
  32424. - ;;
  32425. -esac
  32426. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32427. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32428. -library_names_spec=
  32429. -libname_spec='lib$name'
  32430. -soname_spec=
  32431. -shrext_cmds=".so"
  32432. -postinstall_cmds=
  32433. -postuninstall_cmds=
  32434. -finish_cmds=
  32435. -finish_eval=
  32436. -shlibpath_var=
  32437. -shlibpath_overrides_runpath=unknown
  32438. -version_type=none
  32439. -dynamic_linker="$host_os ld.so"
  32440. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32441. -if test "$GCC" = yes; then
  32442. - case $host_os in
  32443. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  32444. - *) lt_awk_arg="/^libraries:/" ;;
  32445. - esac
  32446. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32447. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  32448. - # if the path contains ";" then we assume it to be the separator
  32449. - # otherwise default to the standard path separator (i.e. ":") - it is
  32450. - # assumed that no part of a normal pathname contains ";" but that should
  32451. - # okay in the real world where ";" in dirpaths is itself problematic.
  32452. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  32453. - else
  32454. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32455. - fi
  32456. - # Ok, now we have the path, separated by spaces, we can step through it
  32457. - # and add multilib dir if necessary.
  32458. - lt_tmp_lt_search_path_spec=
  32459. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  32460. - for lt_sys_path in $lt_search_path_spec; do
  32461. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  32462. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  32463. - else
  32464. - test -d "$lt_sys_path" && \
  32465. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  32466. - fi
  32467. - done
  32468. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  32469. -BEGIN {RS=" "; FS="/|\n";} {
  32470. - lt_foo="";
  32471. - lt_count=0;
  32472. - for (lt_i = NF; lt_i > 0; lt_i--) {
  32473. - if ($lt_i != "" && $lt_i != ".") {
  32474. - if ($lt_i == "..") {
  32475. - lt_count++;
  32476. - } else {
  32477. - if (lt_count == 0) {
  32478. - lt_foo="/" $lt_i lt_foo;
  32479. - } else {
  32480. - lt_count--;
  32481. - }
  32482. - }
  32483. - }
  32484. - }
  32485. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  32486. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  32487. -}'`
  32488. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  32489. +
  32490. +
  32491. +
  32492. +
  32493. +
  32494. +
  32495. +
  32496. +
  32497. +
  32498. +if test -n "${ZSH_VERSION+set}" ; then
  32499. + setopt NO_GLOB_SUBST
  32500. +fi
  32501. +
  32502. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  32503. +$as_echo_n "checking for objdir... " >&6; }
  32504. +if test "${lt_cv_objdir+set}" = set; then :
  32505. + $as_echo_n "(cached) " >&6
  32506. else
  32507. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32508. + rm -f .libs 2>/dev/null
  32509. +mkdir .libs 2>/dev/null
  32510. +if test -d .libs; then
  32511. + lt_cv_objdir=.libs
  32512. +else
  32513. + # MS-DOS does not allow filenames that begin with a dot.
  32514. + lt_cv_objdir=_libs
  32515. fi
  32516. -need_lib_prefix=unknown
  32517. -hardcode_into_libs=no
  32518. +rmdir .libs 2>/dev/null
  32519. +fi
  32520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  32521. +$as_echo "$lt_cv_objdir" >&6; }
  32522. +objdir=$lt_cv_objdir
  32523. -# when you set need_version to no, make sure it does not cause -set_version
  32524. -# flags to be left without arguments
  32525. -need_version=unknown
  32526. -case $host_os in
  32527. -aix3*)
  32528. - version_type=linux
  32529. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32530. - shlibpath_var=LIBPATH
  32531. - # AIX 3 has no versioning support, so we append a major version to the name.
  32532. - soname_spec='${libname}${release}${shared_ext}$major'
  32533. - ;;
  32534. -aix4* | aix5*)
  32535. - version_type=linux
  32536. - need_lib_prefix=no
  32537. - need_version=no
  32538. - hardcode_into_libs=yes
  32539. - if test "$host_cpu" = ia64; then
  32540. - # AIX 5 supports IA64
  32541. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32542. - shlibpath_var=LD_LIBRARY_PATH
  32543. - else
  32544. - # With GCC up to 2.95.x, collect2 would create an import file
  32545. - # for dependence libraries. The import file would start with
  32546. - # the line `#! .'. This would cause the generated library to
  32547. - # depend on `.', always an invalid library. This was fixed in
  32548. - # development snapshots of GCC prior to 3.0.
  32549. - case $host_os in
  32550. - aix4 | aix4.[01] | aix4.[01].*)
  32551. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32552. - echo ' yes '
  32553. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32554. - :
  32555. - else
  32556. - can_build_shared=no
  32557. - fi
  32558. - ;;
  32559. - esac
  32560. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32561. - # soname into executable. Probably we can add versioning support to
  32562. - # collect2, so additional links can be useful in future.
  32563. - if test "$aix_use_runtimelinking" = yes; then
  32564. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32565. - # instead of lib<name>.a to let people know that these are not
  32566. - # typical AIX shared libraries.
  32567. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32568. - else
  32569. - # We preserve .a as extension for shared libraries through AIX4.2
  32570. - # and later when we are not doing run time linking.
  32571. - library_names_spec='${libname}${release}.a $libname.a'
  32572. - soname_spec='${libname}${release}${shared_ext}$major'
  32573. - fi
  32574. - shlibpath_var=LIBPATH
  32575. - fi
  32576. - ;;
  32577. -amigaos*)
  32578. - library_names_spec='$libname.ixlibrary $libname.a'
  32579. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32580. - 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'
  32581. - ;;
  32582. +cat >>confdefs.h <<_ACEOF
  32583. +#define LT_OBJDIR "$lt_cv_objdir/"
  32584. +_ACEOF
  32585. -beos*)
  32586. - library_names_spec='${libname}${shared_ext}'
  32587. - dynamic_linker="$host_os ld.so"
  32588. - shlibpath_var=LIBRARY_PATH
  32589. - ;;
  32590. -bsdi[45]*)
  32591. - version_type=linux
  32592. - need_version=no
  32593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32594. - soname_spec='${libname}${release}${shared_ext}$major'
  32595. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32596. - shlibpath_var=LD_LIBRARY_PATH
  32597. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32598. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32599. - # the default ld.so.conf also contains /usr/contrib/lib and
  32600. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32601. - # libtool to hard-code these into programs
  32602. - ;;
  32603. -cygwin* | mingw* | pw32*)
  32604. - version_type=windows
  32605. - shrext_cmds=".dll"
  32606. - need_version=no
  32607. - need_lib_prefix=no
  32608. - case $GCC,$host_os in
  32609. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32610. - library_names_spec='$libname.dll.a'
  32611. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32612. - postinstall_cmds='base_file=`basename \${file}`~
  32613. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32614. - dldir=$destdir/`dirname \$dlpath`~
  32615. - test -d \$dldir || mkdir -p \$dldir~
  32616. - $install_prog $dir/$dlname \$dldir/$dlname~
  32617. - chmod a+x \$dldir/$dlname'
  32618. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32619. - dlpath=$dir/\$dldll~
  32620. - $rm \$dlpath'
  32621. - shlibpath_overrides_runpath=yes
  32622. - case $host_os in
  32623. - cygwin*)
  32624. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32625. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32626. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32627. - ;;
  32628. - mingw*)
  32629. - # MinGW DLLs use traditional 'lib' prefix
  32630. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32631. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32632. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32633. - # It is most probably a Windows format PATH printed by
  32634. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32635. - # path with ; separators, and with drive letters. We can handle the
  32636. - # drive letters (cygwin fileutils understands them), so leave them,
  32637. - # especially as we might pass files found there to a mingw objdump,
  32638. - # which wouldn't understand a cygwinified path. Ahh.
  32639. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32640. - else
  32641. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32642. - fi
  32643. - ;;
  32644. - pw32*)
  32645. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32646. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32647. - ;;
  32648. - esac
  32649. - ;;
  32650. - *)
  32651. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32652. - ;;
  32653. - esac
  32654. - dynamic_linker='Win32 ld.exe'
  32655. - # FIXME: first we should search . and the directory the executable is in
  32656. - shlibpath_var=PATH
  32657. - ;;
  32658. -darwin* | rhapsody*)
  32659. - dynamic_linker="$host_os dyld"
  32660. - version_type=darwin
  32661. - need_lib_prefix=no
  32662. - need_version=no
  32663. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32664. - soname_spec='${libname}${release}${major}$shared_ext'
  32665. - shlibpath_overrides_runpath=yes
  32666. - shlibpath_var=DYLD_LIBRARY_PATH
  32667. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32668. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  32669. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32670. - ;;
  32671. -dgux*)
  32672. - version_type=linux
  32673. - need_lib_prefix=no
  32674. - need_version=no
  32675. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32676. - soname_spec='${libname}${release}${shared_ext}$major'
  32677. - shlibpath_var=LD_LIBRARY_PATH
  32678. - ;;
  32679. -freebsd1*)
  32680. - dynamic_linker=no
  32681. +
  32682. +
  32683. +
  32684. +
  32685. +
  32686. +
  32687. +
  32688. +case $host_os in
  32689. +aix3*)
  32690. + # AIX sometimes has problems with the GCC collect2 program. For some
  32691. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  32692. + # vanish in a puff of smoke.
  32693. + if test "X${COLLECT_NAMES+set}" != Xset; then
  32694. + COLLECT_NAMES=
  32695. + export COLLECT_NAMES
  32696. + fi
  32697. ;;
  32698. +esac
  32699. -freebsd* | dragonfly*)
  32700. - # DragonFly does not have aout. When/if they implement a new
  32701. - # versioning mechanism, adjust this.
  32702. - if test -x /usr/bin/objformat; then
  32703. - objformat=`/usr/bin/objformat`
  32704. - else
  32705. - case $host_os in
  32706. - freebsd[123]*) objformat=aout ;;
  32707. - *) objformat=elf ;;
  32708. - esac
  32709. - fi
  32710. - version_type=freebsd-$objformat
  32711. - case $version_type in
  32712. - freebsd-elf*)
  32713. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32714. - need_version=no
  32715. - need_lib_prefix=no
  32716. - ;;
  32717. - freebsd-*)
  32718. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32719. - need_version=yes
  32720. - ;;
  32721. - esac
  32722. - shlibpath_var=LD_LIBRARY_PATH
  32723. - case $host_os in
  32724. - freebsd2*)
  32725. - shlibpath_overrides_runpath=yes
  32726. - ;;
  32727. - freebsd3.[01]* | freebsdelf3.[01]*)
  32728. - shlibpath_overrides_runpath=yes
  32729. - hardcode_into_libs=yes
  32730. - ;;
  32731. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32732. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32733. - shlibpath_overrides_runpath=no
  32734. - hardcode_into_libs=yes
  32735. - ;;
  32736. - *) # from 4.6 on, and DragonFly
  32737. - shlibpath_overrides_runpath=yes
  32738. - hardcode_into_libs=yes
  32739. - ;;
  32740. - esac
  32741. - ;;
  32742. -
  32743. -gnu*)
  32744. - version_type=linux
  32745. - need_lib_prefix=no
  32746. - need_version=no
  32747. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32748. - soname_spec='${libname}${release}${shared_ext}$major'
  32749. - shlibpath_var=LD_LIBRARY_PATH
  32750. - hardcode_into_libs=yes
  32751. - ;;
  32752. -
  32753. -hpux9* | hpux10* | hpux11*)
  32754. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32755. - # link against other versions.
  32756. - version_type=sunos
  32757. - need_lib_prefix=no
  32758. - need_version=no
  32759. - case $host_cpu in
  32760. - ia64*)
  32761. - shrext_cmds='.so'
  32762. - hardcode_into_libs=yes
  32763. - dynamic_linker="$host_os dld.so"
  32764. - shlibpath_var=LD_LIBRARY_PATH
  32765. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32766. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32767. - soname_spec='${libname}${release}${shared_ext}$major'
  32768. - if test "X$HPUX_IA64_MODE" = X32; then
  32769. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32770. - else
  32771. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32772. - fi
  32773. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32774. - ;;
  32775. - hppa*64*)
  32776. - shrext_cmds='.sl'
  32777. - hardcode_into_libs=yes
  32778. - dynamic_linker="$host_os dld.sl"
  32779. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32780. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32781. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32782. - soname_spec='${libname}${release}${shared_ext}$major'
  32783. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32784. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32785. - ;;
  32786. - *)
  32787. - shrext_cmds='.sl'
  32788. - dynamic_linker="$host_os dld.sl"
  32789. - shlibpath_var=SHLIB_PATH
  32790. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32791. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32792. - soname_spec='${libname}${release}${shared_ext}$major'
  32793. - ;;
  32794. - esac
  32795. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32796. - postinstall_cmds='chmod 555 $lib'
  32797. - ;;
  32798. +# Sed substitution that helps us do robust quoting. It backslashifies
  32799. +# metacharacters that are still active within double-quoted strings.
  32800. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  32801. -interix[3-9]*)
  32802. - version_type=linux
  32803. - need_lib_prefix=no
  32804. - need_version=no
  32805. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32806. - soname_spec='${libname}${release}${shared_ext}$major'
  32807. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32808. - shlibpath_var=LD_LIBRARY_PATH
  32809. - shlibpath_overrides_runpath=no
  32810. - hardcode_into_libs=yes
  32811. - ;;
  32812. +# Same as above, but do not quote variable references.
  32813. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  32814. -irix5* | irix6* | nonstopux*)
  32815. - case $host_os in
  32816. - nonstopux*) version_type=nonstopux ;;
  32817. - *)
  32818. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32819. - version_type=linux
  32820. - else
  32821. - version_type=irix
  32822. - fi ;;
  32823. - esac
  32824. - need_lib_prefix=no
  32825. - need_version=no
  32826. - soname_spec='${libname}${release}${shared_ext}$major'
  32827. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32828. - case $host_os in
  32829. - irix5* | nonstopux*)
  32830. - libsuff= shlibsuff=
  32831. - ;;
  32832. - *)
  32833. - case $LD in # libtool.m4 will add one of these switches to LD
  32834. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32835. - libsuff= shlibsuff= libmagic=32-bit;;
  32836. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32837. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32838. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32839. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32840. - *) libsuff= shlibsuff= libmagic=never-match;;
  32841. - esac
  32842. - ;;
  32843. - esac
  32844. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32845. - shlibpath_overrides_runpath=no
  32846. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32847. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32848. - hardcode_into_libs=yes
  32849. - ;;
  32850. +# Sed substitution to delay expansion of an escaped shell variable in a
  32851. +# double_quote_subst'ed string.
  32852. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  32853. -# No shared lib support for Linux oldld, aout, or coff.
  32854. -linux*oldld* | linux*aout* | linux*coff*)
  32855. - dynamic_linker=no
  32856. - ;;
  32857. +# Sed substitution to delay expansion of an escaped single quote.
  32858. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  32859. -# This must be Linux ELF.
  32860. -linux* | k*bsd*-gnu)
  32861. - version_type=linux
  32862. - need_lib_prefix=no
  32863. - need_version=no
  32864. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32865. - soname_spec='${libname}${release}${shared_ext}$major'
  32866. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32867. - shlibpath_var=LD_LIBRARY_PATH
  32868. - shlibpath_overrides_runpath=no
  32869. - # This implies no fast_install, which is unacceptable.
  32870. - # Some rework will be needed to allow for fast_install
  32871. - # before this can be enabled.
  32872. - hardcode_into_libs=yes
  32873. +# Sed substitution to avoid accidental globbing in evaled expressions
  32874. +no_glob_subst='s/\*/\\\*/g'
  32875. - # Append ld.so.conf contents to the search path
  32876. - if test -f /etc/ld.so.conf; then
  32877. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  32878. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32879. - fi
  32880. +# Global variables:
  32881. +ofile=libtool
  32882. +can_build_shared=yes
  32883. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  32884. - # powerpc, because MkLinux only supported shared libraries with the
  32885. - # GNU dynamic linker. Since this was broken with cross compilers,
  32886. - # most powerpc-linux boxes support dynamic linking these days and
  32887. - # people can always --disable-shared, the test was removed, and we
  32888. - # assume the GNU/Linux dynamic linker is in use.
  32889. - dynamic_linker='GNU/Linux ld.so'
  32890. - ;;
  32891. +# All known linkers require a `.a' archive for static linking (except MSVC,
  32892. +# which needs '.lib').
  32893. +libext=a
  32894. -netbsd*)
  32895. - version_type=sunos
  32896. - need_lib_prefix=no
  32897. - need_version=no
  32898. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32899. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32900. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32901. - dynamic_linker='NetBSD (a.out) ld.so'
  32902. - else
  32903. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32904. - soname_spec='${libname}${release}${shared_ext}$major'
  32905. - dynamic_linker='NetBSD ld.elf_so'
  32906. - fi
  32907. - shlibpath_var=LD_LIBRARY_PATH
  32908. - shlibpath_overrides_runpath=yes
  32909. - hardcode_into_libs=yes
  32910. - ;;
  32911. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  32912. -newsos6)
  32913. - version_type=linux
  32914. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32915. - shlibpath_var=LD_LIBRARY_PATH
  32916. - shlibpath_overrides_runpath=yes
  32917. - ;;
  32918. +old_CC="$CC"
  32919. +old_CFLAGS="$CFLAGS"
  32920. -nto-qnx*)
  32921. - version_type=linux
  32922. - need_lib_prefix=no
  32923. - need_version=no
  32924. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32925. - soname_spec='${libname}${release}${shared_ext}$major'
  32926. - shlibpath_var=LD_LIBRARY_PATH
  32927. - shlibpath_overrides_runpath=yes
  32928. - ;;
  32929. +# Set sane defaults for various variables
  32930. +test -z "$CC" && CC=cc
  32931. +test -z "$LTCC" && LTCC=$CC
  32932. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  32933. +test -z "$LD" && LD=ld
  32934. +test -z "$ac_objext" && ac_objext=o
  32935. -openbsd*)
  32936. - version_type=sunos
  32937. - sys_lib_dlsearch_path_spec="/usr/lib"
  32938. - need_lib_prefix=no
  32939. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  32940. - case $host_os in
  32941. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32942. - *) need_version=no ;;
  32943. +for cc_temp in $compiler""; do
  32944. + case $cc_temp in
  32945. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32946. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32947. + \-*) ;;
  32948. + *) break;;
  32949. esac
  32950. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32951. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32952. - shlibpath_var=LD_LIBRARY_PATH
  32953. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32954. - case $host_os in
  32955. - openbsd2.[89] | openbsd2.[89].*)
  32956. - shlibpath_overrides_runpath=no
  32957. - ;;
  32958. - *)
  32959. - shlibpath_overrides_runpath=yes
  32960. - ;;
  32961. - esac
  32962. - else
  32963. - shlibpath_overrides_runpath=yes
  32964. - fi
  32965. - ;;
  32966. +done
  32967. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32968. -os2*)
  32969. - libname_spec='$name'
  32970. - shrext_cmds=".dll"
  32971. - need_lib_prefix=no
  32972. - library_names_spec='$libname${shared_ext} $libname.a'
  32973. - dynamic_linker='OS/2 ld.exe'
  32974. - shlibpath_var=LIBPATH
  32975. - ;;
  32976. -osf3* | osf4* | osf5*)
  32977. - version_type=osf
  32978. - need_lib_prefix=no
  32979. - need_version=no
  32980. - soname_spec='${libname}${release}${shared_ext}$major'
  32981. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32982. - shlibpath_var=LD_LIBRARY_PATH
  32983. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  32984. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32985. - ;;
  32986. -
  32987. -rdos*)
  32988. - dynamic_linker=no
  32989. +# Only perform the check for file, if the check method requires it
  32990. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  32991. +case $deplibs_check_method in
  32992. +file_magic*)
  32993. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  32994. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  32995. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  32996. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  32997. + $as_echo_n "(cached) " >&6
  32998. +else
  32999. + case $MAGIC_CMD in
  33000. +[\\/*] | ?:[\\/]*)
  33001. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  33002. ;;
  33003. +*)
  33004. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  33005. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33006. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  33007. + for ac_dir in $ac_dummy; do
  33008. + IFS="$lt_save_ifs"
  33009. + test -z "$ac_dir" && ac_dir=.
  33010. + if test -f $ac_dir/${ac_tool_prefix}file; then
  33011. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  33012. + if test -n "$file_magic_test_file"; then
  33013. + case $deplibs_check_method in
  33014. + "file_magic "*)
  33015. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  33016. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33017. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  33018. + $EGREP "$file_magic_regex" > /dev/null; then
  33019. + :
  33020. + else
  33021. + cat <<_LT_EOF 1>&2
  33022. -solaris*)
  33023. - version_type=linux
  33024. - need_lib_prefix=no
  33025. - need_version=no
  33026. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33027. - soname_spec='${libname}${release}${shared_ext}$major'
  33028. - shlibpath_var=LD_LIBRARY_PATH
  33029. - shlibpath_overrides_runpath=yes
  33030. - hardcode_into_libs=yes
  33031. - # ldd complains unless libraries are executable
  33032. - postinstall_cmds='chmod +x $lib'
  33033. - ;;
  33034. +*** Warning: the command libtool uses to detect shared libraries,
  33035. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  33036. +*** The result is that libtool may fail to recognize shared libraries
  33037. +*** as such. This will affect the creation of libtool libraries that
  33038. +*** depend on shared libraries, but programs linked with such libtool
  33039. +*** libraries will work regardless of this problem. Nevertheless, you
  33040. +*** may want to report the problem to your system manager and/or to
  33041. +*** bug-libtool@gnu.org
  33042. -sunos4*)
  33043. - version_type=sunos
  33044. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33045. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33046. - shlibpath_var=LD_LIBRARY_PATH
  33047. - shlibpath_overrides_runpath=yes
  33048. - if test "$with_gnu_ld" = yes; then
  33049. - need_lib_prefix=no
  33050. - fi
  33051. - need_version=yes
  33052. +_LT_EOF
  33053. + fi ;;
  33054. + esac
  33055. + fi
  33056. + break
  33057. + fi
  33058. + done
  33059. + IFS="$lt_save_ifs"
  33060. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  33061. ;;
  33062. +esac
  33063. +fi
  33064. +
  33065. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33066. +if test -n "$MAGIC_CMD"; then
  33067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  33068. +$as_echo "$MAGIC_CMD" >&6; }
  33069. +else
  33070. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33071. +$as_echo "no" >&6; }
  33072. +fi
  33073. -sysv4 | sysv4.3*)
  33074. - version_type=linux
  33075. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33076. - soname_spec='${libname}${release}${shared_ext}$major'
  33077. - shlibpath_var=LD_LIBRARY_PATH
  33078. - case $host_vendor in
  33079. - sni)
  33080. - shlibpath_overrides_runpath=no
  33081. - need_lib_prefix=no
  33082. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33083. - runpath_var=LD_RUN_PATH
  33084. - ;;
  33085. - siemens)
  33086. - need_lib_prefix=no
  33087. - ;;
  33088. - motorola)
  33089. - need_lib_prefix=no
  33090. - need_version=no
  33091. - shlibpath_overrides_runpath=no
  33092. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33093. - ;;
  33094. - esac
  33095. - ;;
  33096. -sysv4*MP*)
  33097. - if test -d /usr/nec ;then
  33098. - version_type=linux
  33099. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33100. - soname_spec='$libname${shared_ext}.$major'
  33101. - shlibpath_var=LD_LIBRARY_PATH
  33102. - fi
  33103. - ;;
  33104. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33105. - version_type=freebsd-elf
  33106. - need_lib_prefix=no
  33107. - need_version=no
  33108. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33109. - soname_spec='${libname}${release}${shared_ext}$major'
  33110. - shlibpath_var=LD_LIBRARY_PATH
  33111. - hardcode_into_libs=yes
  33112. - if test "$with_gnu_ld" = yes; then
  33113. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33114. - shlibpath_overrides_runpath=no
  33115. - else
  33116. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33117. - shlibpath_overrides_runpath=yes
  33118. - case $host_os in
  33119. - sco3.2v5*)
  33120. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33121. - ;;
  33122. - esac
  33123. - fi
  33124. - sys_lib_dlsearch_path_spec='/usr/lib'
  33125. - ;;
  33126. -uts4*)
  33127. - version_type=linux
  33128. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33129. - soname_spec='${libname}${release}${shared_ext}$major'
  33130. - shlibpath_var=LD_LIBRARY_PATH
  33131. - ;;
  33132. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  33133. + if test -n "$ac_tool_prefix"; then
  33134. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  33135. +$as_echo_n "checking for file... " >&6; }
  33136. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  33137. + $as_echo_n "(cached) " >&6
  33138. +else
  33139. + case $MAGIC_CMD in
  33140. +[\\/*] | ?:[\\/]*)
  33141. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  33142. + ;;
  33143. *)
  33144. - dynamic_linker=no
  33145. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  33146. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33147. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  33148. + for ac_dir in $ac_dummy; do
  33149. + IFS="$lt_save_ifs"
  33150. + test -z "$ac_dir" && ac_dir=.
  33151. + if test -f $ac_dir/file; then
  33152. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  33153. + if test -n "$file_magic_test_file"; then
  33154. + case $deplibs_check_method in
  33155. + "file_magic "*)
  33156. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  33157. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33158. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  33159. + $EGREP "$file_magic_regex" > /dev/null; then
  33160. + :
  33161. + else
  33162. + cat <<_LT_EOF 1>&2
  33163. +
  33164. +*** Warning: the command libtool uses to detect shared libraries,
  33165. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  33166. +*** The result is that libtool may fail to recognize shared libraries
  33167. +*** as such. This will affect the creation of libtool libraries that
  33168. +*** depend on shared libraries, but programs linked with such libtool
  33169. +*** libraries will work regardless of this problem. Nevertheless, you
  33170. +*** may want to report the problem to your system manager and/or to
  33171. +*** bug-libtool@gnu.org
  33172. +
  33173. +_LT_EOF
  33174. + fi ;;
  33175. + esac
  33176. + fi
  33177. + break
  33178. + fi
  33179. + done
  33180. + IFS="$lt_save_ifs"
  33181. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  33182. ;;
  33183. esac
  33184. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33185. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33186. -test "$dynamic_linker" = no && can_build_shared=no
  33187. +fi
  33188. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33189. -if test "$GCC" = yes; then
  33190. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33191. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33192. +if test -n "$MAGIC_CMD"; then
  33193. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  33194. +$as_echo "$MAGIC_CMD" >&6; }
  33195. +else
  33196. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33197. +$as_echo "no" >&6; }
  33198. fi
  33199. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33200. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33201. -hardcode_action=
  33202. -if test -n "$hardcode_libdir_flag_spec" || \
  33203. - test -n "$runpath_var" || \
  33204. - test "X$hardcode_automatic" = "Xyes" ; then
  33205. - # We can hardcode non-existant directories.
  33206. - if test "$hardcode_direct" != no &&
  33207. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33208. - # have to relink, otherwise we might link with an installed library
  33209. - # when we should be linking with a yet-to-be-installed one
  33210. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  33211. - test "$hardcode_minus_L" != no; then
  33212. - # Linking always hardcodes the temporary library directory.
  33213. - hardcode_action=relink
  33214. else
  33215. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33216. - hardcode_action=immediate
  33217. + MAGIC_CMD=:
  33218. fi
  33219. -else
  33220. - # We cannot hardcode anything, or else we can only hardcode existing
  33221. - # directories.
  33222. - hardcode_action=unsupported
  33223. fi
  33224. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  33225. -echo "${ECHO_T}$hardcode_action" >&6; }
  33226. -if test "$hardcode_action" = relink; then
  33227. - # Fast installation is not supported
  33228. - enable_fast_install=no
  33229. -elif test "$shlibpath_overrides_runpath" = yes ||
  33230. - test "$enable_shared" = no; then
  33231. - # Fast installation is not necessary
  33232. - enable_fast_install=needless
  33233. -fi
  33234. + fi
  33235. + ;;
  33236. +esac
  33237. -striplib=
  33238. -old_striplib=
  33239. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  33240. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  33241. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  33242. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  33243. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  33244. - { echo "$as_me:$LINENO: result: yes" >&5
  33245. -echo "${ECHO_T}yes" >&6; }
  33246. -else
  33247. -# FIXME - insert some real tests, host_os isn't really good enough
  33248. - case $host_os in
  33249. - darwin*)
  33250. - if test -n "$STRIP" ; then
  33251. - striplib="$STRIP -x"
  33252. - old_striplib="$STRIP -S"
  33253. - { echo "$as_me:$LINENO: result: yes" >&5
  33254. -echo "${ECHO_T}yes" >&6; }
  33255. - else
  33256. - { echo "$as_me:$LINENO: result: no" >&5
  33257. -echo "${ECHO_T}no" >&6; }
  33258. -fi
  33259. - ;;
  33260. - *)
  33261. - { echo "$as_me:$LINENO: result: no" >&5
  33262. -echo "${ECHO_T}no" >&6; }
  33263. - ;;
  33264. - esac
  33265. -fi
  33266. +# Use C for the default configuration in the libtool script
  33267. -if test "x$enable_dlopen" != xyes; then
  33268. - enable_dlopen=unknown
  33269. - enable_dlopen_self=unknown
  33270. - enable_dlopen_self_static=unknown
  33271. -else
  33272. - lt_cv_dlopen=no
  33273. - lt_cv_dlopen_libs=
  33274. +lt_save_CC="$CC"
  33275. +ac_ext=c
  33276. +ac_cpp='$CPP $CPPFLAGS'
  33277. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33278. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33279. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33280. - case $host_os in
  33281. - beos*)
  33282. - lt_cv_dlopen="load_add_on"
  33283. - lt_cv_dlopen_libs=
  33284. - lt_cv_dlopen_self=yes
  33285. - ;;
  33286. - mingw* | pw32*)
  33287. - lt_cv_dlopen="LoadLibrary"
  33288. - lt_cv_dlopen_libs=
  33289. - ;;
  33290. +# Source file extension for C test sources.
  33291. +ac_ext=c
  33292. - cygwin*)
  33293. - lt_cv_dlopen="dlopen"
  33294. - lt_cv_dlopen_libs=
  33295. - ;;
  33296. +# Object file extension for compiled C test sources.
  33297. +objext=o
  33298. +objext=$objext
  33299. - darwin*)
  33300. - # if libdl is installed we need to link against it
  33301. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  33302. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  33303. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  33304. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33305. -else
  33306. - ac_check_lib_save_LIBS=$LIBS
  33307. -LIBS="-ldl $LIBS"
  33308. -cat >conftest.$ac_ext <<_ACEOF
  33309. -/* confdefs.h. */
  33310. -_ACEOF
  33311. -cat confdefs.h >>conftest.$ac_ext
  33312. -cat >>conftest.$ac_ext <<_ACEOF
  33313. -/* end confdefs.h. */
  33314. +# Code to be used in simple compile tests
  33315. +lt_simple_compile_test_code="int some_variable = 0;"
  33316. -/* Override any GCC internal prototype to avoid an error.
  33317. - Use char because int might match the return type of a GCC
  33318. - builtin and then its argument prototype would still apply. */
  33319. -#ifdef __cplusplus
  33320. -extern "C"
  33321. -#endif
  33322. -char dlopen ();
  33323. -int
  33324. -main ()
  33325. -{
  33326. -return dlopen ();
  33327. - ;
  33328. - return 0;
  33329. -}
  33330. -_ACEOF
  33331. -rm -f conftest.$ac_objext conftest$ac_exeext
  33332. -if { (ac_try="$ac_link"
  33333. -case "(($ac_try" in
  33334. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33335. - *) ac_try_echo=$ac_try;;
  33336. -esac
  33337. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33338. - (eval "$ac_link") 2>conftest.er1
  33339. - ac_status=$?
  33340. - grep -v '^ *+' conftest.er1 >conftest.err
  33341. - rm -f conftest.er1
  33342. - cat conftest.err >&5
  33343. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33344. - (exit $ac_status); } && {
  33345. - test -z "$ac_c_werror_flag" ||
  33346. - test ! -s conftest.err
  33347. - } && test -s conftest$ac_exeext &&
  33348. - $as_test_x conftest$ac_exeext; then
  33349. - ac_cv_lib_dl_dlopen=yes
  33350. -else
  33351. - echo "$as_me: failed program was:" >&5
  33352. -sed 's/^/| /' conftest.$ac_ext >&5
  33353. +# Code to be used in simple link tests
  33354. +lt_simple_link_test_code='int main(){return(0);}'
  33355. - ac_cv_lib_dl_dlopen=no
  33356. -fi
  33357. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33358. - conftest$ac_exeext conftest.$ac_ext
  33359. -LIBS=$ac_check_lib_save_LIBS
  33360. -fi
  33361. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  33362. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  33363. -if test $ac_cv_lib_dl_dlopen = yes; then
  33364. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33365. -else
  33366. - lt_cv_dlopen="dyld"
  33367. - lt_cv_dlopen_libs=
  33368. - lt_cv_dlopen_self=yes
  33369. -fi
  33370. - ;;
  33371. - *)
  33372. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  33373. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  33374. -if test "${ac_cv_func_shl_load+set}" = set; then
  33375. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33376. -else
  33377. - cat >conftest.$ac_ext <<_ACEOF
  33378. -/* confdefs.h. */
  33379. -_ACEOF
  33380. -cat confdefs.h >>conftest.$ac_ext
  33381. -cat >>conftest.$ac_ext <<_ACEOF
  33382. -/* end confdefs.h. */
  33383. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  33384. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33385. -#define shl_load innocuous_shl_load
  33386. -/* System header to define __stub macros and hopefully few prototypes,
  33387. - which can conflict with char shl_load (); below.
  33388. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33389. - <limits.h> exists even on freestanding compilers. */
  33390. +# If no C compiler was specified, use CC.
  33391. +LTCC=${LTCC-"$CC"}
  33392. -#ifdef __STDC__
  33393. -# include <limits.h>
  33394. -#else
  33395. -# include <assert.h>
  33396. -#endif
  33397. +# If no C compiler flags were specified, use CFLAGS.
  33398. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  33399. -#undef shl_load
  33400. +# Allow CC to be a program name with arguments.
  33401. +compiler=$CC
  33402. -/* Override any GCC internal prototype to avoid an error.
  33403. - Use char because int might match the return type of a GCC
  33404. - builtin and then its argument prototype would still apply. */
  33405. -#ifdef __cplusplus
  33406. -extern "C"
  33407. -#endif
  33408. -char shl_load ();
  33409. -/* The GNU C library defines this for functions which it implements
  33410. - to always fail with ENOSYS. Some functions are actually named
  33411. - something starting with __ and the normal name is an alias. */
  33412. -#if defined __stub_shl_load || defined __stub___shl_load
  33413. -choke me
  33414. -#endif
  33415. +# Save the default compiler, since it gets overwritten when the other
  33416. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  33417. +compiler_DEFAULT=$CC
  33418. -int
  33419. -main ()
  33420. -{
  33421. -return shl_load ();
  33422. - ;
  33423. - return 0;
  33424. -}
  33425. -_ACEOF
  33426. -rm -f conftest.$ac_objext conftest$ac_exeext
  33427. -if { (ac_try="$ac_link"
  33428. -case "(($ac_try" in
  33429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33430. - *) ac_try_echo=$ac_try;;
  33431. -esac
  33432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33433. - (eval "$ac_link") 2>conftest.er1
  33434. - ac_status=$?
  33435. - grep -v '^ *+' conftest.er1 >conftest.err
  33436. - rm -f conftest.er1
  33437. - cat conftest.err >&5
  33438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33439. - (exit $ac_status); } && {
  33440. - test -z "$ac_c_werror_flag" ||
  33441. - test ! -s conftest.err
  33442. - } && test -s conftest$ac_exeext &&
  33443. - $as_test_x conftest$ac_exeext; then
  33444. - ac_cv_func_shl_load=yes
  33445. -else
  33446. - echo "$as_me: failed program was:" >&5
  33447. -sed 's/^/| /' conftest.$ac_ext >&5
  33448. +# save warnings/boilerplate of simple test code
  33449. +ac_outfile=conftest.$ac_objext
  33450. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33451. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33452. +_lt_compiler_boilerplate=`cat conftest.err`
  33453. +$RM conftest*
  33454. - ac_cv_func_shl_load=no
  33455. -fi
  33456. +ac_outfile=conftest.$ac_objext
  33457. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33458. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33459. +_lt_linker_boilerplate=`cat conftest.err`
  33460. +$RM -r conftest*
  33461. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33462. - conftest$ac_exeext conftest.$ac_ext
  33463. -fi
  33464. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  33465. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  33466. -if test $ac_cv_func_shl_load = yes; then
  33467. - lt_cv_dlopen="shl_load"
  33468. -else
  33469. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  33470. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  33471. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  33472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33473. -else
  33474. - ac_check_lib_save_LIBS=$LIBS
  33475. -LIBS="-ldld $LIBS"
  33476. -cat >conftest.$ac_ext <<_ACEOF
  33477. -/* confdefs.h. */
  33478. -_ACEOF
  33479. -cat confdefs.h >>conftest.$ac_ext
  33480. -cat >>conftest.$ac_ext <<_ACEOF
  33481. -/* end confdefs.h. */
  33482. -/* Override any GCC internal prototype to avoid an error.
  33483. - Use char because int might match the return type of a GCC
  33484. - builtin and then its argument prototype would still apply. */
  33485. -#ifdef __cplusplus
  33486. -extern "C"
  33487. -#endif
  33488. -char shl_load ();
  33489. -int
  33490. -main ()
  33491. -{
  33492. -return shl_load ();
  33493. - ;
  33494. - return 0;
  33495. -}
  33496. -_ACEOF
  33497. -rm -f conftest.$ac_objext conftest$ac_exeext
  33498. -if { (ac_try="$ac_link"
  33499. -case "(($ac_try" in
  33500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33501. - *) ac_try_echo=$ac_try;;
  33502. -esac
  33503. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33504. - (eval "$ac_link") 2>conftest.er1
  33505. - ac_status=$?
  33506. - grep -v '^ *+' conftest.er1 >conftest.err
  33507. - rm -f conftest.er1
  33508. - cat conftest.err >&5
  33509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33510. - (exit $ac_status); } && {
  33511. - test -z "$ac_c_werror_flag" ||
  33512. - test ! -s conftest.err
  33513. - } && test -s conftest$ac_exeext &&
  33514. - $as_test_x conftest$ac_exeext; then
  33515. - ac_cv_lib_dld_shl_load=yes
  33516. +if test -n "$compiler"; then
  33517. +
  33518. +lt_prog_compiler_no_builtin_flag=
  33519. +
  33520. +if test "$GCC" = yes; then
  33521. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  33522. +
  33523. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33524. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  33525. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  33526. + $as_echo_n "(cached) " >&6
  33527. else
  33528. - echo "$as_me: failed program was:" >&5
  33529. -sed 's/^/| /' conftest.$ac_ext >&5
  33530. + lt_cv_prog_compiler_rtti_exceptions=no
  33531. + ac_outfile=conftest.$ac_objext
  33532. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33533. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  33534. + # Insert the option either (1) after the last *FLAGS variable, or
  33535. + # (2) before a word containing "conftest.", or (3) at the end.
  33536. + # Note that $ac_compile itself does not contain backslashes and begins
  33537. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33538. + # The option is referenced via a variable to avoid confusing sed.
  33539. + lt_compile=`echo "$ac_compile" | $SED \
  33540. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33541. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33542. + -e 's:$: $lt_compiler_flag:'`
  33543. + (eval echo "\"\$as_me:15154: $lt_compile\"" >&5)
  33544. + (eval "$lt_compile" 2>conftest.err)
  33545. + ac_status=$?
  33546. + cat conftest.err >&5
  33547. + echo "$as_me:15158: \$? = $ac_status" >&5
  33548. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33549. + # The compiler can only warn and ignore the option if not recognized
  33550. + # So say no if there are warnings other than the usual output.
  33551. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33552. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33553. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33554. + lt_cv_prog_compiler_rtti_exceptions=yes
  33555. + fi
  33556. + fi
  33557. + $RM conftest*
  33558. - ac_cv_lib_dld_shl_load=no
  33559. fi
  33560. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33561. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  33562. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33563. - conftest$ac_exeext conftest.$ac_ext
  33564. -LIBS=$ac_check_lib_save_LIBS
  33565. -fi
  33566. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  33567. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  33568. -if test $ac_cv_lib_dld_shl_load = yes; then
  33569. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  33570. -else
  33571. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  33572. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  33573. -if test "${ac_cv_func_dlopen+set}" = set; then
  33574. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33575. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  33576. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  33577. else
  33578. - cat >conftest.$ac_ext <<_ACEOF
  33579. -/* confdefs.h. */
  33580. -_ACEOF
  33581. -cat confdefs.h >>conftest.$ac_ext
  33582. -cat >>conftest.$ac_ext <<_ACEOF
  33583. -/* end confdefs.h. */
  33584. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  33585. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33586. -#define dlopen innocuous_dlopen
  33587. + :
  33588. +fi
  33589. -/* System header to define __stub macros and hopefully few prototypes,
  33590. - which can conflict with char dlopen (); below.
  33591. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33592. - <limits.h> exists even on freestanding compilers. */
  33593. +fi
  33594. -#ifdef __STDC__
  33595. -# include <limits.h>
  33596. -#else
  33597. -# include <assert.h>
  33598. -#endif
  33599. -#undef dlopen
  33600. -/* Override any GCC internal prototype to avoid an error.
  33601. - Use char because int might match the return type of a GCC
  33602. - builtin and then its argument prototype would still apply. */
  33603. -#ifdef __cplusplus
  33604. -extern "C"
  33605. -#endif
  33606. -char dlopen ();
  33607. -/* The GNU C library defines this for functions which it implements
  33608. - to always fail with ENOSYS. Some functions are actually named
  33609. - something starting with __ and the normal name is an alias. */
  33610. -#if defined __stub_dlopen || defined __stub___dlopen
  33611. -choke me
  33612. -#endif
  33613. -int
  33614. -main ()
  33615. -{
  33616. -return dlopen ();
  33617. - ;
  33618. - return 0;
  33619. -}
  33620. -_ACEOF
  33621. -rm -f conftest.$ac_objext conftest$ac_exeext
  33622. -if { (ac_try="$ac_link"
  33623. -case "(($ac_try" in
  33624. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33625. - *) ac_try_echo=$ac_try;;
  33626. -esac
  33627. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33628. - (eval "$ac_link") 2>conftest.er1
  33629. - ac_status=$?
  33630. - grep -v '^ *+' conftest.er1 >conftest.err
  33631. - rm -f conftest.er1
  33632. - cat conftest.err >&5
  33633. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33634. - (exit $ac_status); } && {
  33635. - test -z "$ac_c_werror_flag" ||
  33636. - test ! -s conftest.err
  33637. - } && test -s conftest$ac_exeext &&
  33638. - $as_test_x conftest$ac_exeext; then
  33639. - ac_cv_func_dlopen=yes
  33640. -else
  33641. - echo "$as_me: failed program was:" >&5
  33642. -sed 's/^/| /' conftest.$ac_ext >&5
  33643. - ac_cv_func_dlopen=no
  33644. -fi
  33645. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33646. - conftest$ac_exeext conftest.$ac_ext
  33647. -fi
  33648. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  33649. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  33650. -if test $ac_cv_func_dlopen = yes; then
  33651. - lt_cv_dlopen="dlopen"
  33652. -else
  33653. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  33654. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  33655. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  33656. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33657. -else
  33658. - ac_check_lib_save_LIBS=$LIBS
  33659. -LIBS="-ldl $LIBS"
  33660. -cat >conftest.$ac_ext <<_ACEOF
  33661. -/* confdefs.h. */
  33662. -_ACEOF
  33663. -cat confdefs.h >>conftest.$ac_ext
  33664. -cat >>conftest.$ac_ext <<_ACEOF
  33665. -/* end confdefs.h. */
  33666. + lt_prog_compiler_wl=
  33667. +lt_prog_compiler_pic=
  33668. +lt_prog_compiler_static=
  33669. -/* Override any GCC internal prototype to avoid an error.
  33670. - Use char because int might match the return type of a GCC
  33671. - builtin and then its argument prototype would still apply. */
  33672. -#ifdef __cplusplus
  33673. -extern "C"
  33674. -#endif
  33675. -char dlopen ();
  33676. -int
  33677. -main ()
  33678. -{
  33679. -return dlopen ();
  33680. - ;
  33681. - return 0;
  33682. -}
  33683. -_ACEOF
  33684. -rm -f conftest.$ac_objext conftest$ac_exeext
  33685. -if { (ac_try="$ac_link"
  33686. -case "(($ac_try" in
  33687. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33688. - *) ac_try_echo=$ac_try;;
  33689. -esac
  33690. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33691. - (eval "$ac_link") 2>conftest.er1
  33692. - ac_status=$?
  33693. - grep -v '^ *+' conftest.er1 >conftest.err
  33694. - rm -f conftest.er1
  33695. - cat conftest.err >&5
  33696. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33697. - (exit $ac_status); } && {
  33698. - test -z "$ac_c_werror_flag" ||
  33699. - test ! -s conftest.err
  33700. - } && test -s conftest$ac_exeext &&
  33701. - $as_test_x conftest$ac_exeext; then
  33702. - ac_cv_lib_dl_dlopen=yes
  33703. -else
  33704. - echo "$as_me: failed program was:" >&5
  33705. -sed 's/^/| /' conftest.$ac_ext >&5
  33706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  33707. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  33708. - ac_cv_lib_dl_dlopen=no
  33709. -fi
  33710. + if test "$GCC" = yes; then
  33711. + lt_prog_compiler_wl='-Wl,'
  33712. + lt_prog_compiler_static='-static'
  33713. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33714. - conftest$ac_exeext conftest.$ac_ext
  33715. -LIBS=$ac_check_lib_save_LIBS
  33716. -fi
  33717. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  33718. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  33719. -if test $ac_cv_lib_dl_dlopen = yes; then
  33720. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33721. -else
  33722. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  33723. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  33724. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  33725. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33726. -else
  33727. - ac_check_lib_save_LIBS=$LIBS
  33728. -LIBS="-lsvld $LIBS"
  33729. -cat >conftest.$ac_ext <<_ACEOF
  33730. -/* confdefs.h. */
  33731. -_ACEOF
  33732. -cat confdefs.h >>conftest.$ac_ext
  33733. -cat >>conftest.$ac_ext <<_ACEOF
  33734. -/* end confdefs.h. */
  33735. + case $host_os in
  33736. + aix*)
  33737. + # All AIX code is PIC.
  33738. + if test "$host_cpu" = ia64; then
  33739. + # AIX 5 now supports IA64 processor
  33740. + lt_prog_compiler_static='-Bstatic'
  33741. + fi
  33742. + ;;
  33743. -/* Override any GCC internal prototype to avoid an error.
  33744. - Use char because int might match the return type of a GCC
  33745. - builtin and then its argument prototype would still apply. */
  33746. -#ifdef __cplusplus
  33747. -extern "C"
  33748. -#endif
  33749. -char dlopen ();
  33750. -int
  33751. -main ()
  33752. -{
  33753. -return dlopen ();
  33754. - ;
  33755. - return 0;
  33756. -}
  33757. -_ACEOF
  33758. -rm -f conftest.$ac_objext conftest$ac_exeext
  33759. -if { (ac_try="$ac_link"
  33760. -case "(($ac_try" in
  33761. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33762. - *) ac_try_echo=$ac_try;;
  33763. -esac
  33764. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33765. - (eval "$ac_link") 2>conftest.er1
  33766. - ac_status=$?
  33767. - grep -v '^ *+' conftest.er1 >conftest.err
  33768. - rm -f conftest.er1
  33769. - cat conftest.err >&5
  33770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33771. - (exit $ac_status); } && {
  33772. - test -z "$ac_c_werror_flag" ||
  33773. - test ! -s conftest.err
  33774. - } && test -s conftest$ac_exeext &&
  33775. - $as_test_x conftest$ac_exeext; then
  33776. - ac_cv_lib_svld_dlopen=yes
  33777. -else
  33778. - echo "$as_me: failed program was:" >&5
  33779. -sed 's/^/| /' conftest.$ac_ext >&5
  33780. + amigaos*)
  33781. + case $host_cpu in
  33782. + powerpc)
  33783. + # see comment about AmigaOS4 .so support
  33784. + lt_prog_compiler_pic='-fPIC'
  33785. + ;;
  33786. + m68k)
  33787. + # FIXME: we need at least 68020 code to build shared libraries, but
  33788. + # adding the `-m68020' flag to GCC prevents building anything better,
  33789. + # like `-m68040'.
  33790. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  33791. + ;;
  33792. + esac
  33793. + ;;
  33794. - ac_cv_lib_svld_dlopen=no
  33795. -fi
  33796. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33797. + # PIC is the default for these OSes.
  33798. + ;;
  33799. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33800. - conftest$ac_exeext conftest.$ac_ext
  33801. -LIBS=$ac_check_lib_save_LIBS
  33802. -fi
  33803. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  33804. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  33805. -if test $ac_cv_lib_svld_dlopen = yes; then
  33806. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  33807. -else
  33808. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  33809. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  33810. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  33811. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33812. -else
  33813. - ac_check_lib_save_LIBS=$LIBS
  33814. -LIBS="-ldld $LIBS"
  33815. -cat >conftest.$ac_ext <<_ACEOF
  33816. -/* confdefs.h. */
  33817. -_ACEOF
  33818. -cat confdefs.h >>conftest.$ac_ext
  33819. -cat >>conftest.$ac_ext <<_ACEOF
  33820. -/* end confdefs.h. */
  33821. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33822. + # This hack is so that the source file can tell whether it is being
  33823. + # built for inclusion in a dll (and should export symbols for example).
  33824. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33825. + # (--disable-auto-import) libraries
  33826. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33827. + ;;
  33828. -/* Override any GCC internal prototype to avoid an error.
  33829. - Use char because int might match the return type of a GCC
  33830. - builtin and then its argument prototype would still apply. */
  33831. -#ifdef __cplusplus
  33832. -extern "C"
  33833. -#endif
  33834. -char dld_link ();
  33835. -int
  33836. -main ()
  33837. -{
  33838. -return dld_link ();
  33839. - ;
  33840. - return 0;
  33841. -}
  33842. -_ACEOF
  33843. -rm -f conftest.$ac_objext conftest$ac_exeext
  33844. -if { (ac_try="$ac_link"
  33845. -case "(($ac_try" in
  33846. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33847. - *) ac_try_echo=$ac_try;;
  33848. -esac
  33849. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33850. - (eval "$ac_link") 2>conftest.er1
  33851. - ac_status=$?
  33852. - grep -v '^ *+' conftest.er1 >conftest.err
  33853. - rm -f conftest.er1
  33854. - cat conftest.err >&5
  33855. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33856. - (exit $ac_status); } && {
  33857. - test -z "$ac_c_werror_flag" ||
  33858. - test ! -s conftest.err
  33859. - } && test -s conftest$ac_exeext &&
  33860. - $as_test_x conftest$ac_exeext; then
  33861. - ac_cv_lib_dld_dld_link=yes
  33862. -else
  33863. - echo "$as_me: failed program was:" >&5
  33864. -sed 's/^/| /' conftest.$ac_ext >&5
  33865. + darwin* | rhapsody*)
  33866. + # PIC is the default on this platform
  33867. + # Common symbols not allowed in MH_DYLIB files
  33868. + lt_prog_compiler_pic='-fno-common'
  33869. + ;;
  33870. - ac_cv_lib_dld_dld_link=no
  33871. -fi
  33872. + hpux*)
  33873. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33874. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33875. + # sets the default TLS model and affects inlining.
  33876. + case $host_cpu in
  33877. + hppa*64*)
  33878. + # +Z the default
  33879. + ;;
  33880. + *)
  33881. + lt_prog_compiler_pic='-fPIC'
  33882. + ;;
  33883. + esac
  33884. + ;;
  33885. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33886. - conftest$ac_exeext conftest.$ac_ext
  33887. -LIBS=$ac_check_lib_save_LIBS
  33888. -fi
  33889. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  33890. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  33891. -if test $ac_cv_lib_dld_dld_link = yes; then
  33892. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  33893. -fi
  33894. + interix[3-9]*)
  33895. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33896. + # Instead, we relocate shared libraries at runtime.
  33897. + ;;
  33898. + msdosdjgpp*)
  33899. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  33900. + # on systems that don't support them.
  33901. + lt_prog_compiler_can_build_shared=no
  33902. + enable_shared=no
  33903. + ;;
  33904. -fi
  33905. + *nto* | *qnx*)
  33906. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33907. + # it will coredump.
  33908. + lt_prog_compiler_pic='-fPIC -shared'
  33909. + ;;
  33910. + sysv4*MP*)
  33911. + if test -d /usr/nec; then
  33912. + lt_prog_compiler_pic=-Kconform_pic
  33913. + fi
  33914. + ;;
  33915. -fi
  33916. + *)
  33917. + lt_prog_compiler_pic='-fPIC'
  33918. + ;;
  33919. + esac
  33920. + else
  33921. + # PORTME Check for flag to pass linker flags through the system compiler.
  33922. + case $host_os in
  33923. + aix*)
  33924. + lt_prog_compiler_wl='-Wl,'
  33925. + if test "$host_cpu" = ia64; then
  33926. + # AIX 5 now supports IA64 processor
  33927. + lt_prog_compiler_static='-Bstatic'
  33928. + else
  33929. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  33930. + fi
  33931. + ;;
  33932. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33933. + # This hack is so that the source file can tell whether it is being
  33934. + # built for inclusion in a dll (and should export symbols for example).
  33935. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33936. + ;;
  33937. -fi
  33938. + hpux9* | hpux10* | hpux11*)
  33939. + lt_prog_compiler_wl='-Wl,'
  33940. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33941. + # not for PA HP-UX.
  33942. + case $host_cpu in
  33943. + hppa*64*|ia64*)
  33944. + # +Z the default
  33945. + ;;
  33946. + *)
  33947. + lt_prog_compiler_pic='+Z'
  33948. + ;;
  33949. + esac
  33950. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33951. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  33952. + ;;
  33953. + irix5* | irix6* | nonstopux*)
  33954. + lt_prog_compiler_wl='-Wl,'
  33955. + # PIC (with -KPIC) is the default.
  33956. + lt_prog_compiler_static='-non_shared'
  33957. + ;;
  33958. -fi
  33959. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33960. + case $cc_basename in
  33961. + # old Intel for x86_64 which still supported -KPIC.
  33962. + ecc*)
  33963. + lt_prog_compiler_wl='-Wl,'
  33964. + lt_prog_compiler_pic='-KPIC'
  33965. + lt_prog_compiler_static='-static'
  33966. + ;;
  33967. + # icc used to be incompatible with GCC.
  33968. + # ICC 10 doesn't accept -KPIC any more.
  33969. + icc* | ifort*)
  33970. + lt_prog_compiler_wl='-Wl,'
  33971. + lt_prog_compiler_pic='-fPIC'
  33972. + lt_prog_compiler_static='-static'
  33973. + ;;
  33974. + # Lahey Fortran 8.1.
  33975. + lf95*)
  33976. + lt_prog_compiler_wl='-Wl,'
  33977. + lt_prog_compiler_pic='--shared'
  33978. + lt_prog_compiler_static='--static'
  33979. + ;;
  33980. + pgcc* | pgf77* | pgf90* | pgf95*)
  33981. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33982. + # which looks to be a dead project)
  33983. + lt_prog_compiler_wl='-Wl,'
  33984. + lt_prog_compiler_pic='-fpic'
  33985. + lt_prog_compiler_static='-Bstatic'
  33986. + ;;
  33987. + ccc*)
  33988. + lt_prog_compiler_wl='-Wl,'
  33989. + # All Alpha code is PIC.
  33990. + lt_prog_compiler_static='-non_shared'
  33991. + ;;
  33992. + xl*)
  33993. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33994. + lt_prog_compiler_wl='-Wl,'
  33995. + lt_prog_compiler_pic='-qpic'
  33996. + lt_prog_compiler_static='-qstaticlink'
  33997. + ;;
  33998. + *)
  33999. + case `$CC -V 2>&1 | sed 5q` in
  34000. + *Sun\ C*)
  34001. + # Sun C 5.9
  34002. + lt_prog_compiler_pic='-KPIC'
  34003. + lt_prog_compiler_static='-Bstatic'
  34004. + lt_prog_compiler_wl='-Wl,'
  34005. + ;;
  34006. + *Sun\ F*)
  34007. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  34008. + lt_prog_compiler_pic='-KPIC'
  34009. + lt_prog_compiler_static='-Bstatic'
  34010. + lt_prog_compiler_wl=''
  34011. + ;;
  34012. + esac
  34013. + ;;
  34014. + esac
  34015. + ;;
  34016. + newsos6)
  34017. + lt_prog_compiler_pic='-KPIC'
  34018. + lt_prog_compiler_static='-Bstatic'
  34019. + ;;
  34020. -fi
  34021. + *nto* | *qnx*)
  34022. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  34023. + # it will coredump.
  34024. + lt_prog_compiler_pic='-fPIC -shared'
  34025. + ;;
  34026. - ;;
  34027. - esac
  34028. + osf3* | osf4* | osf5*)
  34029. + lt_prog_compiler_wl='-Wl,'
  34030. + # All OSF/1 code is PIC.
  34031. + lt_prog_compiler_static='-non_shared'
  34032. + ;;
  34033. - if test "x$lt_cv_dlopen" != xno; then
  34034. - enable_dlopen=yes
  34035. - else
  34036. - enable_dlopen=no
  34037. - fi
  34038. + rdos*)
  34039. + lt_prog_compiler_static='-non_shared'
  34040. + ;;
  34041. - case $lt_cv_dlopen in
  34042. - dlopen)
  34043. - save_CPPFLAGS="$CPPFLAGS"
  34044. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  34045. + solaris*)
  34046. + lt_prog_compiler_pic='-KPIC'
  34047. + lt_prog_compiler_static='-Bstatic'
  34048. + case $cc_basename in
  34049. + f77* | f90* | f95*)
  34050. + lt_prog_compiler_wl='-Qoption ld ';;
  34051. + *)
  34052. + lt_prog_compiler_wl='-Wl,';;
  34053. + esac
  34054. + ;;
  34055. - save_LDFLAGS="$LDFLAGS"
  34056. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  34057. + sunos4*)
  34058. + lt_prog_compiler_wl='-Qoption ld '
  34059. + lt_prog_compiler_pic='-PIC'
  34060. + lt_prog_compiler_static='-Bstatic'
  34061. + ;;
  34062. - save_LIBS="$LIBS"
  34063. - LIBS="$lt_cv_dlopen_libs $LIBS"
  34064. + sysv4 | sysv4.2uw2* | sysv4.3*)
  34065. + lt_prog_compiler_wl='-Wl,'
  34066. + lt_prog_compiler_pic='-KPIC'
  34067. + lt_prog_compiler_static='-Bstatic'
  34068. + ;;
  34069. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  34070. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  34071. -if test "${lt_cv_dlopen_self+set}" = set; then
  34072. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34073. -else
  34074. - if test "$cross_compiling" = yes; then :
  34075. - lt_cv_dlopen_self=cross
  34076. -else
  34077. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34078. - lt_status=$lt_dlunknown
  34079. - cat > conftest.$ac_ext <<EOF
  34080. -#line 16016 "configure"
  34081. -#include "confdefs.h"
  34082. + sysv4*MP*)
  34083. + if test -d /usr/nec ;then
  34084. + lt_prog_compiler_pic='-Kconform_pic'
  34085. + lt_prog_compiler_static='-Bstatic'
  34086. + fi
  34087. + ;;
  34088. -#if HAVE_DLFCN_H
  34089. -#include <dlfcn.h>
  34090. -#endif
  34091. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34092. + lt_prog_compiler_wl='-Wl,'
  34093. + lt_prog_compiler_pic='-KPIC'
  34094. + lt_prog_compiler_static='-Bstatic'
  34095. + ;;
  34096. -#include <stdio.h>
  34097. + unicos*)
  34098. + lt_prog_compiler_wl='-Wl,'
  34099. + lt_prog_compiler_can_build_shared=no
  34100. + ;;
  34101. -#ifdef RTLD_GLOBAL
  34102. -# define LT_DLGLOBAL RTLD_GLOBAL
  34103. -#else
  34104. -# ifdef DL_GLOBAL
  34105. -# define LT_DLGLOBAL DL_GLOBAL
  34106. -# else
  34107. -# define LT_DLGLOBAL 0
  34108. -# endif
  34109. -#endif
  34110. + uts4*)
  34111. + lt_prog_compiler_pic='-pic'
  34112. + lt_prog_compiler_static='-Bstatic'
  34113. + ;;
  34114. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34115. - find out it does not work in some platform. */
  34116. -#ifndef LT_DLLAZY_OR_NOW
  34117. -# ifdef RTLD_LAZY
  34118. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34119. -# else
  34120. -# ifdef DL_LAZY
  34121. -# define LT_DLLAZY_OR_NOW DL_LAZY
  34122. -# else
  34123. -# ifdef RTLD_NOW
  34124. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  34125. -# else
  34126. -# ifdef DL_NOW
  34127. -# define LT_DLLAZY_OR_NOW DL_NOW
  34128. -# else
  34129. -# define LT_DLLAZY_OR_NOW 0
  34130. -# endif
  34131. -# endif
  34132. -# endif
  34133. -# endif
  34134. -#endif
  34135. + *)
  34136. + lt_prog_compiler_can_build_shared=no
  34137. + ;;
  34138. + esac
  34139. + fi
  34140. -#ifdef __cplusplus
  34141. -extern "C" void exit (int);
  34142. -#endif
  34143. +case $host_os in
  34144. + # For platforms which do not support PIC, -DPIC is meaningless:
  34145. + *djgpp*)
  34146. + lt_prog_compiler_pic=
  34147. + ;;
  34148. + *)
  34149. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  34150. + ;;
  34151. +esac
  34152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  34153. +$as_echo "$lt_prog_compiler_pic" >&6; }
  34154. -void fnord() { int i=42;}
  34155. -int main ()
  34156. -{
  34157. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34158. - int status = $lt_dlunknown;
  34159. - if (self)
  34160. - {
  34161. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34162. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34163. - /* dlclose (self); */
  34164. - }
  34165. - else
  34166. - puts (dlerror ());
  34167. - exit (status);
  34168. -}
  34169. -EOF
  34170. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34171. - (eval $ac_link) 2>&5
  34172. - ac_status=$?
  34173. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34174. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34175. - (./conftest; exit; ) >&5 2>/dev/null
  34176. - lt_status=$?
  34177. - case x$lt_status in
  34178. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34179. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34180. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  34181. - esac
  34182. - else :
  34183. - # compilation failed
  34184. - lt_cv_dlopen_self=no
  34185. - fi
  34186. -fi
  34187. -rm -fr conftest*
  34188. -fi
  34189. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  34190. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  34191. - if test "x$lt_cv_dlopen_self" = xyes; then
  34192. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  34193. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  34194. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  34195. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  34196. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34197. +#
  34198. +# Check to make sure the PIC flag actually works.
  34199. +#
  34200. +if test -n "$lt_prog_compiler_pic"; then
  34201. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  34202. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  34203. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  34204. + $as_echo_n "(cached) " >&6
  34205. else
  34206. - if test "$cross_compiling" = yes; then :
  34207. - lt_cv_dlopen_self_static=cross
  34208. + lt_cv_prog_compiler_pic_works=no
  34209. + ac_outfile=conftest.$ac_objext
  34210. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34211. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  34212. + # Insert the option either (1) after the last *FLAGS variable, or
  34213. + # (2) before a word containing "conftest.", or (3) at the end.
  34214. + # Note that $ac_compile itself does not contain backslashes and begins
  34215. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34216. + # The option is referenced via a variable to avoid confusing sed.
  34217. + lt_compile=`echo "$ac_compile" | $SED \
  34218. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34219. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34220. + -e 's:$: $lt_compiler_flag:'`
  34221. + (eval echo "\"\$as_me:15493: $lt_compile\"" >&5)
  34222. + (eval "$lt_compile" 2>conftest.err)
  34223. + ac_status=$?
  34224. + cat conftest.err >&5
  34225. + echo "$as_me:15497: \$? = $ac_status" >&5
  34226. + if (exit $ac_status) && test -s "$ac_outfile"; then
  34227. + # The compiler can only warn and ignore the option if not recognized
  34228. + # So say no if there are warnings other than the usual output.
  34229. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34230. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34231. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34232. + lt_cv_prog_compiler_pic_works=yes
  34233. + fi
  34234. + fi
  34235. + $RM conftest*
  34236. +
  34237. +fi
  34238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  34239. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  34240. +
  34241. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  34242. + case $lt_prog_compiler_pic in
  34243. + "" | " "*) ;;
  34244. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  34245. + esac
  34246. else
  34247. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34248. - lt_status=$lt_dlunknown
  34249. - cat > conftest.$ac_ext <<EOF
  34250. -#line 16116 "configure"
  34251. -#include "confdefs.h"
  34252. + lt_prog_compiler_pic=
  34253. + lt_prog_compiler_can_build_shared=no
  34254. +fi
  34255. -#if HAVE_DLFCN_H
  34256. -#include <dlfcn.h>
  34257. -#endif
  34258. +fi
  34259. -#include <stdio.h>
  34260. -#ifdef RTLD_GLOBAL
  34261. -# define LT_DLGLOBAL RTLD_GLOBAL
  34262. -#else
  34263. -# ifdef DL_GLOBAL
  34264. -# define LT_DLGLOBAL DL_GLOBAL
  34265. -# else
  34266. -# define LT_DLGLOBAL 0
  34267. -# endif
  34268. -#endif
  34269. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34270. - find out it does not work in some platform. */
  34271. -#ifndef LT_DLLAZY_OR_NOW
  34272. -# ifdef RTLD_LAZY
  34273. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34274. -# else
  34275. -# ifdef DL_LAZY
  34276. -# define LT_DLLAZY_OR_NOW DL_LAZY
  34277. -# else
  34278. -# ifdef RTLD_NOW
  34279. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  34280. -# else
  34281. -# ifdef DL_NOW
  34282. -# define LT_DLLAZY_OR_NOW DL_NOW
  34283. -# else
  34284. -# define LT_DLLAZY_OR_NOW 0
  34285. -# endif
  34286. -# endif
  34287. -# endif
  34288. -# endif
  34289. -#endif
  34290. -#ifdef __cplusplus
  34291. -extern "C" void exit (int);
  34292. -#endif
  34293. -void fnord() { int i=42;}
  34294. -int main ()
  34295. -{
  34296. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34297. - int status = $lt_dlunknown;
  34298. - if (self)
  34299. - {
  34300. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34301. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34302. - /* dlclose (self); */
  34303. - }
  34304. - else
  34305. - puts (dlerror ());
  34306. +#
  34307. +# Check to make sure the static flag actually works.
  34308. +#
  34309. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  34310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34311. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  34312. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  34313. + $as_echo_n "(cached) " >&6
  34314. +else
  34315. + lt_cv_prog_compiler_static_works=no
  34316. + save_LDFLAGS="$LDFLAGS"
  34317. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34318. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34319. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34320. + # The linker can only warn and ignore the option if not recognized
  34321. + # So say no if there are warnings
  34322. + if test -s conftest.err; then
  34323. + # Append any errors to the config.log.
  34324. + cat conftest.err 1>&5
  34325. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34326. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34327. + if diff conftest.exp conftest.er2 >/dev/null; then
  34328. + lt_cv_prog_compiler_static_works=yes
  34329. + fi
  34330. + else
  34331. + lt_cv_prog_compiler_static_works=yes
  34332. + fi
  34333. + fi
  34334. + $RM -r conftest*
  34335. + LDFLAGS="$save_LDFLAGS"
  34336. - exit (status);
  34337. -}
  34338. -EOF
  34339. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34340. - (eval $ac_link) 2>&5
  34341. - ac_status=$?
  34342. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34343. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34344. - (./conftest; exit; ) >&5 2>/dev/null
  34345. - lt_status=$?
  34346. - case x$lt_status in
  34347. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34348. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34349. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  34350. - esac
  34351. - else :
  34352. - # compilation failed
  34353. - lt_cv_dlopen_self_static=no
  34354. - fi
  34355. fi
  34356. -rm -fr conftest*
  34357. -
  34358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  34359. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  34360. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  34361. + :
  34362. +else
  34363. + lt_prog_compiler_static=
  34364. fi
  34365. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  34366. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  34367. - fi
  34368. - CPPFLAGS="$save_CPPFLAGS"
  34369. - LDFLAGS="$save_LDFLAGS"
  34370. - LIBS="$save_LIBS"
  34371. - ;;
  34372. - esac
  34373. -
  34374. - case $lt_cv_dlopen_self in
  34375. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34376. - *) enable_dlopen_self=unknown ;;
  34377. - esac
  34378. -
  34379. - case $lt_cv_dlopen_self_static in
  34380. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34381. - *) enable_dlopen_self_static=unknown ;;
  34382. - esac
  34383. -fi
  34384. -# Report which library types will actually be built
  34385. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  34386. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  34387. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  34388. -echo "${ECHO_T}$can_build_shared" >&6; }
  34389. -
  34390. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  34391. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  34392. -test "$can_build_shared" = "no" && enable_shared=no
  34393. -# On AIX, shared libraries and static libraries use the same namespace, and
  34394. -# are all built from PIC.
  34395. -case $host_os in
  34396. -aix3*)
  34397. - test "$enable_shared" = yes && enable_static=no
  34398. - if test -n "$RANLIB"; then
  34399. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34400. - postinstall_cmds='$RANLIB $lib'
  34401. - fi
  34402. - ;;
  34403. -aix4* | aix5*)
  34404. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34405. - test "$enable_shared" = yes && enable_static=no
  34406. - fi
  34407. - ;;
  34408. -esac
  34409. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  34410. -echo "${ECHO_T}$enable_shared" >&6; }
  34411. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  34412. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  34413. -# Make sure either enable_shared or enable_static is yes.
  34414. -test "$enable_shared" = yes || enable_static=yes
  34415. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  34416. -echo "${ECHO_T}$enable_static" >&6; }
  34417. -
  34418. -# The else clause should only fire when bootstrapping the
  34419. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34420. -# with your package, and you will get complaints that there are
  34421. -# no rules to generate ltmain.sh.
  34422. -if test -f "$ltmain"; then
  34423. - # See if we are running on zsh, and set the options which allow our commands through
  34424. - # without removal of \ escapes.
  34425. - if test -n "${ZSH_VERSION+set}" ; then
  34426. - setopt NO_GLOB_SUBST
  34427. - fi
  34428. - # Now quote all the things that may contain metacharacters while being
  34429. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34430. - # variables and quote the copies for generation of the libtool script.
  34431. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34432. - SED SHELL STRIP \
  34433. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34434. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34435. - deplibs_check_method reload_flag reload_cmds need_locks \
  34436. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34437. - lt_cv_sys_global_symbol_to_c_name_address \
  34438. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34439. - old_postinstall_cmds old_postuninstall_cmds \
  34440. - compiler \
  34441. - CC \
  34442. - LD \
  34443. - lt_prog_compiler_wl \
  34444. - lt_prog_compiler_pic \
  34445. - lt_prog_compiler_static \
  34446. - lt_prog_compiler_no_builtin_flag \
  34447. - export_dynamic_flag_spec \
  34448. - thread_safe_flag_spec \
  34449. - whole_archive_flag_spec \
  34450. - enable_shared_with_static_runtimes \
  34451. - old_archive_cmds \
  34452. - old_archive_from_new_cmds \
  34453. - predep_objects \
  34454. - postdep_objects \
  34455. - predeps \
  34456. - postdeps \
  34457. - compiler_lib_search_path \
  34458. - archive_cmds \
  34459. - archive_expsym_cmds \
  34460. - postinstall_cmds \
  34461. - postuninstall_cmds \
  34462. - old_archive_from_expsyms_cmds \
  34463. - allow_undefined_flag \
  34464. - no_undefined_flag \
  34465. - export_symbols_cmds \
  34466. - hardcode_libdir_flag_spec \
  34467. - hardcode_libdir_flag_spec_ld \
  34468. - hardcode_libdir_separator \
  34469. - hardcode_automatic \
  34470. - module_cmds \
  34471. - module_expsym_cmds \
  34472. - lt_cv_prog_compiler_c_o \
  34473. - fix_srcfile_path \
  34474. - exclude_expsyms \
  34475. - include_expsyms; do
  34476. -
  34477. - case $var in
  34478. - old_archive_cmds | \
  34479. - old_archive_from_new_cmds | \
  34480. - archive_cmds | \
  34481. - archive_expsym_cmds | \
  34482. - module_cmds | \
  34483. - module_expsym_cmds | \
  34484. - old_archive_from_expsyms_cmds | \
  34485. - export_symbols_cmds | \
  34486. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34487. - postinstall_cmds | postuninstall_cmds | \
  34488. - old_postinstall_cmds | old_postuninstall_cmds | \
  34489. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34490. - # Double-quote double-evaled strings.
  34491. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34492. - ;;
  34493. - *)
  34494. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34495. - ;;
  34496. - esac
  34497. - done
  34498. - case $lt_echo in
  34499. - *'\$0 --fallback-echo"')
  34500. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34501. - ;;
  34502. - esac
  34503. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  34504. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34505. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  34506. + $as_echo_n "(cached) " >&6
  34507. +else
  34508. + lt_cv_prog_compiler_c_o=no
  34509. + $RM -r conftest 2>/dev/null
  34510. + mkdir conftest
  34511. + cd conftest
  34512. + mkdir out
  34513. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34514. -cfgfile="${ofile}T"
  34515. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  34516. - $rm -f "$cfgfile"
  34517. - { echo "$as_me:$LINENO: creating $ofile" >&5
  34518. -echo "$as_me: creating $ofile" >&6;}
  34519. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  34520. + # Insert the option either (1) after the last *FLAGS variable, or
  34521. + # (2) before a word containing "conftest.", or (3) at the end.
  34522. + # Note that $ac_compile itself does not contain backslashes and begins
  34523. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34524. + lt_compile=`echo "$ac_compile" | $SED \
  34525. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34526. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34527. + -e 's:$: $lt_compiler_flag:'`
  34528. + (eval echo "\"\$as_me:15598: $lt_compile\"" >&5)
  34529. + (eval "$lt_compile" 2>out/conftest.err)
  34530. + ac_status=$?
  34531. + cat out/conftest.err >&5
  34532. + echo "$as_me:15602: \$? = $ac_status" >&5
  34533. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34534. + then
  34535. + # The compiler can only warn and ignore the option if not recognized
  34536. + # So say no if there are warnings
  34537. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34538. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34539. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34540. + lt_cv_prog_compiler_c_o=yes
  34541. + fi
  34542. + fi
  34543. + chmod u+w . 2>&5
  34544. + $RM conftest*
  34545. + # SGI C++ compiler will create directory out/ii_files/ for
  34546. + # template instantiation
  34547. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  34548. + $RM out/* && rmdir out
  34549. + cd ..
  34550. + $RM -r conftest
  34551. + $RM conftest*
  34552. - cat <<__EOF__ >> "$cfgfile"
  34553. -#! $SHELL
  34554. +fi
  34555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  34556. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  34557. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34558. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  34559. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34560. -#
  34561. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  34562. -# Free Software Foundation, Inc.
  34563. -#
  34564. -# This file is part of GNU Libtool:
  34565. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  34566. -#
  34567. -# This program is free software; you can redistribute it and/or modify
  34568. -# it under the terms of the GNU General Public License as published by
  34569. -# the Free Software Foundation; either version 2 of the License, or
  34570. -# (at your option) any later version.
  34571. -#
  34572. -# This program is distributed in the hope that it will be useful, but
  34573. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  34574. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  34575. -# General Public License for more details.
  34576. -#
  34577. -# You should have received a copy of the GNU General Public License
  34578. -# along with this program; if not, write to the Free Software
  34579. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34580. -#
  34581. -# As a special exception to the GNU General Public License, if you
  34582. -# distribute this file as part of a program that contains a
  34583. -# configuration script generated by Autoconf, you may include it under
  34584. -# the same distribution terms that you use for the rest of that program.
  34585. -# A sed program that does not truncate output.
  34586. -SED=$lt_SED
  34587. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34588. -Xsed="$SED -e 1s/^X//"
  34589. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  34590. -# if CDPATH is set.
  34591. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34592. -# The names of the tagged configurations supported by this script.
  34593. -available_tags=
  34594. -# ### BEGIN LIBTOOL CONFIG
  34595. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  34596. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34597. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  34598. + $as_echo_n "(cached) " >&6
  34599. +else
  34600. + lt_cv_prog_compiler_c_o=no
  34601. + $RM -r conftest 2>/dev/null
  34602. + mkdir conftest
  34603. + cd conftest
  34604. + mkdir out
  34605. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34606. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34607. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  34608. + # Insert the option either (1) after the last *FLAGS variable, or
  34609. + # (2) before a word containing "conftest.", or (3) at the end.
  34610. + # Note that $ac_compile itself does not contain backslashes and begins
  34611. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34612. + lt_compile=`echo "$ac_compile" | $SED \
  34613. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34614. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34615. + -e 's:$: $lt_compiler_flag:'`
  34616. + (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
  34617. + (eval "$lt_compile" 2>out/conftest.err)
  34618. + ac_status=$?
  34619. + cat out/conftest.err >&5
  34620. + echo "$as_me:15657: \$? = $ac_status" >&5
  34621. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34622. + then
  34623. + # The compiler can only warn and ignore the option if not recognized
  34624. + # So say no if there are warnings
  34625. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34626. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34627. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34628. + lt_cv_prog_compiler_c_o=yes
  34629. + fi
  34630. + fi
  34631. + chmod u+w . 2>&5
  34632. + $RM conftest*
  34633. + # SGI C++ compiler will create directory out/ii_files/ for
  34634. + # template instantiation
  34635. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  34636. + $RM out/* && rmdir out
  34637. + cd ..
  34638. + $RM -r conftest
  34639. + $RM conftest*
  34640. -# Shell to use when invoking shell scripts.
  34641. -SHELL=$lt_SHELL
  34642. +fi
  34643. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  34644. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  34645. -# Whether or not to build shared libraries.
  34646. -build_libtool_libs=$enable_shared
  34647. -# Whether or not to build static libraries.
  34648. -build_old_libs=$enable_static
  34649. -# Whether or not to add -lc for building shared libraries.
  34650. -build_libtool_need_lc=$archive_cmds_need_lc
  34651. -# Whether or not to disallow shared libs when runtime libs are static
  34652. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  34653. +hard_links="nottested"
  34654. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  34655. + # do not overwrite the value of need_locks provided by the user
  34656. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  34657. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  34658. + hard_links=yes
  34659. + $RM conftest*
  34660. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34661. + touch conftest.a
  34662. + ln conftest.a conftest.b 2>&5 || hard_links=no
  34663. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  34665. +$as_echo "$hard_links" >&6; }
  34666. + if test "$hard_links" = no; then
  34667. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34668. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34669. + need_locks=warn
  34670. + fi
  34671. +else
  34672. + need_locks=no
  34673. +fi
  34674. -# Whether or not to optimize for fast installation.
  34675. -fast_install=$enable_fast_install
  34676. -# The host system.
  34677. -host_alias=$host_alias
  34678. -host=$host
  34679. -host_os=$host_os
  34680. -# The build system.
  34681. -build_alias=$build_alias
  34682. -build=$build
  34683. -build_os=$build_os
  34684. -# An echo program that does not interpret backslashes.
  34685. -echo=$lt_echo
  34686. -# The archiver.
  34687. -AR=$lt_AR
  34688. -AR_FLAGS=$lt_AR_FLAGS
  34689. -# A C compiler.
  34690. -LTCC=$lt_LTCC
  34691. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34692. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34693. -# LTCC compiler flags.
  34694. -LTCFLAGS=$lt_LTCFLAGS
  34695. + runpath_var=
  34696. + allow_undefined_flag=
  34697. + always_export_symbols=no
  34698. + archive_cmds=
  34699. + archive_expsym_cmds=
  34700. + compiler_needs_object=no
  34701. + enable_shared_with_static_runtimes=no
  34702. + export_dynamic_flag_spec=
  34703. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34704. + hardcode_automatic=no
  34705. + hardcode_direct=no
  34706. + hardcode_direct_absolute=no
  34707. + hardcode_libdir_flag_spec=
  34708. + hardcode_libdir_flag_spec_ld=
  34709. + hardcode_libdir_separator=
  34710. + hardcode_minus_L=no
  34711. + hardcode_shlibpath_var=unsupported
  34712. + inherit_rpath=no
  34713. + link_all_deplibs=unknown
  34714. + module_cmds=
  34715. + module_expsym_cmds=
  34716. + old_archive_from_new_cmds=
  34717. + old_archive_from_expsyms_cmds=
  34718. + thread_safe_flag_spec=
  34719. + whole_archive_flag_spec=
  34720. + # include_expsyms should be a list of space-separated symbols to be *always*
  34721. + # included in the symbol list
  34722. + include_expsyms=
  34723. + # exclude_expsyms can be an extended regexp of symbols to exclude
  34724. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34725. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34726. + # as well as any symbol that contains `d'.
  34727. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34728. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34729. + # platforms (ab)use it in PIC code, but their linkers get confused if
  34730. + # the symbol is explicitly referenced. Since portable code cannot
  34731. + # rely on this symbol name, it's probably fine to never include it in
  34732. + # preloaded symbol tables.
  34733. + # Exclude shared library initialization/finalization symbols.
  34734. + extract_expsyms_cmds=
  34735. -# A language-specific compiler.
  34736. -CC=$lt_compiler
  34737. + case $host_os in
  34738. + cygwin* | mingw* | pw32* | cegcc*)
  34739. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34740. + # When not using gcc, we currently assume that we are using
  34741. + # Microsoft Visual C++.
  34742. + if test "$GCC" != yes; then
  34743. + with_gnu_ld=no
  34744. + fi
  34745. + ;;
  34746. + interix*)
  34747. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  34748. + with_gnu_ld=yes
  34749. + ;;
  34750. + openbsd*)
  34751. + with_gnu_ld=no
  34752. + ;;
  34753. + linux* | k*bsd*-gnu)
  34754. + link_all_deplibs=no
  34755. + ;;
  34756. + esac
  34757. -# Is the compiler the GNU C compiler?
  34758. -with_gcc=$GCC
  34759. + ld_shlibs=yes
  34760. + if test "$with_gnu_ld" = yes; then
  34761. + # If archive_cmds runs LD, not CC, wlarc should be empty
  34762. + wlarc='${wl}'
  34763. -# An ERE matcher.
  34764. -EGREP=$lt_EGREP
  34765. + # Set some defaults for GNU ld with shared library support. These
  34766. + # are reset later if shared libraries are not supported. Putting them
  34767. + # here allows them to be overridden if necessary.
  34768. + runpath_var=LD_RUN_PATH
  34769. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34770. + export_dynamic_flag_spec='${wl}--export-dynamic'
  34771. + # ancient GNU ld didn't support --whole-archive et. al.
  34772. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  34773. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34774. + else
  34775. + whole_archive_flag_spec=
  34776. + fi
  34777. + supports_anon_versioning=no
  34778. + case `$LD -v 2>&1` in
  34779. + *GNU\ gold*) supports_anon_versioning=yes ;;
  34780. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34781. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34782. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34783. + *\ 2.11.*) ;; # other 2.11 versions
  34784. + *) supports_anon_versioning=yes ;;
  34785. + esac
  34786. -# The linker used to build libraries.
  34787. -LD=$lt_LD
  34788. + # See if GNU ld supports shared libraries.
  34789. + case $host_os in
  34790. + aix[3-9]*)
  34791. + # On AIX/PPC, the GNU linker is very broken
  34792. + if test "$host_cpu" != ia64; then
  34793. + ld_shlibs=no
  34794. + cat <<_LT_EOF 1>&2
  34795. -# Whether we need hard or soft links.
  34796. -LN_S=$lt_LN_S
  34797. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34798. +*** to be unable to reliably create shared libraries on AIX.
  34799. +*** Therefore, libtool is disabling shared libraries support. If you
  34800. +*** really care for shared libraries, you may want to modify your PATH
  34801. +*** so that a non-GNU linker is found, and then restart.
  34802. -# A BSD-compatible nm program.
  34803. -NM=$lt_NM
  34804. +_LT_EOF
  34805. + fi
  34806. + ;;
  34807. -# A symbol stripping program
  34808. -STRIP=$lt_STRIP
  34809. + amigaos*)
  34810. + case $host_cpu in
  34811. + powerpc)
  34812. + # see comment about AmigaOS4 .so support
  34813. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34814. + archive_expsym_cmds=''
  34815. + ;;
  34816. + m68k)
  34817. + 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)'
  34818. + hardcode_libdir_flag_spec='-L$libdir'
  34819. + hardcode_minus_L=yes
  34820. + ;;
  34821. + esac
  34822. + ;;
  34823. -# Used to examine libraries when file_magic_cmd begins "file"
  34824. -MAGIC_CMD=$MAGIC_CMD
  34825. + beos*)
  34826. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34827. + allow_undefined_flag=unsupported
  34828. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34829. + # support --undefined. This deserves some investigation. FIXME
  34830. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34831. + else
  34832. + ld_shlibs=no
  34833. + fi
  34834. + ;;
  34835. -# Used on cygwin: DLL creation program.
  34836. -DLLTOOL="$DLLTOOL"
  34837. + cygwin* | mingw* | pw32* | cegcc*)
  34838. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  34839. + # as there is no search path for DLLs.
  34840. + hardcode_libdir_flag_spec='-L$libdir'
  34841. + allow_undefined_flag=unsupported
  34842. + always_export_symbols=no
  34843. + enable_shared_with_static_runtimes=yes
  34844. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34845. -# Used on cygwin: object dumper.
  34846. -OBJDUMP="$OBJDUMP"
  34847. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34848. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34849. + # If the export-symbols file already is a .def file (1st line
  34850. + # is EXPORTS), use it as is; otherwise, prepend...
  34851. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34852. + cp $export_symbols $output_objdir/$soname.def;
  34853. + else
  34854. + echo EXPORTS > $output_objdir/$soname.def;
  34855. + cat $export_symbols >> $output_objdir/$soname.def;
  34856. + fi~
  34857. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34858. + else
  34859. + ld_shlibs=no
  34860. + fi
  34861. + ;;
  34862. -# Used on cygwin: assembler.
  34863. -AS="$AS"
  34864. + interix[3-9]*)
  34865. + hardcode_direct=no
  34866. + hardcode_shlibpath_var=no
  34867. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34868. + export_dynamic_flag_spec='${wl}-E'
  34869. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34870. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  34871. + # default) and relocated if they conflict, which is a slow very memory
  34872. + # consuming and fragmenting process. To avoid this, we pick a random,
  34873. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34874. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34875. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34876. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34877. + ;;
  34878. -# The name of the directory that contains temporary libtool files.
  34879. -objdir=$objdir
  34880. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  34881. + tmp_diet=no
  34882. + if test "$host_os" = linux-dietlibc; then
  34883. + case $cc_basename in
  34884. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  34885. + esac
  34886. + fi
  34887. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  34888. + && test "$tmp_diet" = no
  34889. + then
  34890. + tmp_addflag=
  34891. + tmp_sharedflag='-shared'
  34892. + case $cc_basename,$host_cpu in
  34893. + pgcc*) # Portland Group C compiler
  34894. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34895. + tmp_addflag=' $pic_flag'
  34896. + ;;
  34897. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34898. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34899. + tmp_addflag=' $pic_flag -Mnomain' ;;
  34900. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34901. + tmp_addflag=' -i_dynamic' ;;
  34902. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34903. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  34904. + ifc* | ifort*) # Intel Fortran compiler
  34905. + tmp_addflag=' -nofor_main' ;;
  34906. + lf95*) # Lahey Fortran 8.1
  34907. + whole_archive_flag_spec=
  34908. + tmp_sharedflag='--shared' ;;
  34909. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  34910. + tmp_sharedflag='-qmkshrobj'
  34911. + tmp_addflag= ;;
  34912. + esac
  34913. + case `$CC -V 2>&1 | sed 5q` in
  34914. + *Sun\ C*) # Sun C 5.9
  34915. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34916. + compiler_needs_object=yes
  34917. + tmp_sharedflag='-G' ;;
  34918. + *Sun\ F*) # Sun Fortran 8.3
  34919. + tmp_sharedflag='-G' ;;
  34920. + esac
  34921. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34922. -# How to create reloadable object files.
  34923. -reload_flag=$lt_reload_flag
  34924. -reload_cmds=$lt_reload_cmds
  34925. + if test "x$supports_anon_versioning" = xyes; then
  34926. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34927. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34928. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34929. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34930. + fi
  34931. -# How to pass a linker flag through the compiler.
  34932. -wl=$lt_lt_prog_compiler_wl
  34933. + case $cc_basename in
  34934. + xlf*)
  34935. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  34936. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  34937. + hardcode_libdir_flag_spec=
  34938. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  34939. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  34940. + if test "x$supports_anon_versioning" = xyes; then
  34941. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34942. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34943. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34944. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34945. + fi
  34946. + ;;
  34947. + esac
  34948. + else
  34949. + ld_shlibs=no
  34950. + fi
  34951. + ;;
  34952. -# Object file suffix (normally "o").
  34953. -objext="$ac_objext"
  34954. + netbsd* | netbsdelf*-gnu)
  34955. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34956. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34957. + wlarc=
  34958. + else
  34959. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34960. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34961. + fi
  34962. + ;;
  34963. -# Old archive suffix (normally "a").
  34964. -libext="$libext"
  34965. + solaris*)
  34966. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34967. + ld_shlibs=no
  34968. + cat <<_LT_EOF 1>&2
  34969. -# Shared library suffix (normally ".so").
  34970. -shrext_cmds='$shrext_cmds'
  34971. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34972. +*** create shared libraries on Solaris systems. Therefore, libtool
  34973. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34974. +*** binutils to release 2.9.1 or newer. Another option is to modify
  34975. +*** your PATH or compiler configuration so that the native linker is
  34976. +*** used, and then restart.
  34977. -# Executable file suffix (normally "").
  34978. -exeext="$exeext"
  34979. +_LT_EOF
  34980. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34981. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34982. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34983. + else
  34984. + ld_shlibs=no
  34985. + fi
  34986. + ;;
  34987. -# Additional compiler flags for building library objects.
  34988. -pic_flag=$lt_lt_prog_compiler_pic
  34989. -pic_mode=$pic_mode
  34990. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34991. + case `$LD -v 2>&1` in
  34992. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34993. + ld_shlibs=no
  34994. + cat <<_LT_EOF 1>&2
  34995. -# What is the maximum length of a command?
  34996. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34997. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34998. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  34999. +*** is disabling shared libraries support. We urge you to upgrade GNU
  35000. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  35001. +*** your PATH or compiler configuration so that the native linker is
  35002. +*** used, and then restart.
  35003. -# Does compiler simultaneously support -c and -o options?
  35004. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  35005. +_LT_EOF
  35006. + ;;
  35007. + *)
  35008. + # For security reasons, it is highly recommended that you always
  35009. + # use absolute paths for naming shared libraries, and exclude the
  35010. + # DT_RUNPATH tag from executables and libraries. But doing so
  35011. + # requires that you compile everything twice, which is a pain.
  35012. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35013. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35014. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35015. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35016. + else
  35017. + ld_shlibs=no
  35018. + fi
  35019. + ;;
  35020. + esac
  35021. + ;;
  35022. -# Must we lock files when doing compilation?
  35023. -need_locks=$lt_need_locks
  35024. + sunos4*)
  35025. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35026. + wlarc=
  35027. + hardcode_direct=yes
  35028. + hardcode_shlibpath_var=no
  35029. + ;;
  35030. -# Do we need the lib prefix for modules?
  35031. -need_lib_prefix=$need_lib_prefix
  35032. + *)
  35033. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35034. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35035. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35036. + else
  35037. + ld_shlibs=no
  35038. + fi
  35039. + ;;
  35040. + esac
  35041. -# Do we need a version for libraries?
  35042. -need_version=$need_version
  35043. + if test "$ld_shlibs" = no; then
  35044. + runpath_var=
  35045. + hardcode_libdir_flag_spec=
  35046. + export_dynamic_flag_spec=
  35047. + whole_archive_flag_spec=
  35048. + fi
  35049. + else
  35050. + # PORTME fill in a description of your system's linker (not GNU ld)
  35051. + case $host_os in
  35052. + aix3*)
  35053. + allow_undefined_flag=unsupported
  35054. + always_export_symbols=yes
  35055. + 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'
  35056. + # Note: this linker hardcodes the directories in LIBPATH if there
  35057. + # are no directories specified by -L.
  35058. + hardcode_minus_L=yes
  35059. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  35060. + # Neither direct hardcoding nor static linking is supported with a
  35061. + # broken collect2.
  35062. + hardcode_direct=unsupported
  35063. + fi
  35064. + ;;
  35065. -# Whether dlopen is supported.
  35066. -dlopen_support=$enable_dlopen
  35067. + aix[4-9]*)
  35068. + if test "$host_cpu" = ia64; then
  35069. + # On IA64, the linker does run time linking by default, so we don't
  35070. + # have to do anything special.
  35071. + aix_use_runtimelinking=no
  35072. + exp_sym_flag='-Bexport'
  35073. + no_entry_flag=""
  35074. + else
  35075. + # If we're using GNU nm, then we don't want the "-C" option.
  35076. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  35077. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  35078. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  35079. + else
  35080. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  35081. + fi
  35082. + aix_use_runtimelinking=no
  35083. -# Whether dlopen of programs is supported.
  35084. -dlopen_self=$enable_dlopen_self
  35085. + # Test if we are trying to use run time linking or normal
  35086. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35087. + # need to do runtime linking.
  35088. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  35089. + for ld_flag in $LDFLAGS; do
  35090. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  35091. + aix_use_runtimelinking=yes
  35092. + break
  35093. + fi
  35094. + done
  35095. + ;;
  35096. + esac
  35097. -# Whether dlopen of statically linked programs is supported.
  35098. -dlopen_self_static=$enable_dlopen_self_static
  35099. + exp_sym_flag='-bexport'
  35100. + no_entry_flag='-bnoentry'
  35101. + fi
  35102. -# Compiler flag to prevent dynamic linking.
  35103. -link_static_flag=$lt_lt_prog_compiler_static
  35104. + # When large executables or shared objects are built, AIX ld can
  35105. + # have problems creating the table of contents. If linking a library
  35106. + # or program results in "error TOC overflow" add -mminimal-toc to
  35107. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35108. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35109. -# Compiler flag to turn off builtin functions.
  35110. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  35111. + archive_cmds=''
  35112. + hardcode_direct=yes
  35113. + hardcode_direct_absolute=yes
  35114. + hardcode_libdir_separator=':'
  35115. + link_all_deplibs=yes
  35116. + file_list_spec='${wl}-f,'
  35117. -# Compiler flag to allow reflexive dlopens.
  35118. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  35119. + if test "$GCC" = yes; then
  35120. + case $host_os in aix4.[012]|aix4.[012].*)
  35121. + # We only want to do this on AIX 4.2 and lower, the check
  35122. + # below for broken collect2 doesn't work under 4.3+
  35123. + collect2name=`${CC} -print-prog-name=collect2`
  35124. + if test -f "$collect2name" &&
  35125. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  35126. + then
  35127. + # We have reworked collect2
  35128. + :
  35129. + else
  35130. + # We have old collect2
  35131. + hardcode_direct=unsupported
  35132. + # It fails to find uninstalled libraries when the uninstalled
  35133. + # path is not listed in the libpath. Setting hardcode_minus_L
  35134. + # to unsupported forces relinking
  35135. + hardcode_minus_L=yes
  35136. + hardcode_libdir_flag_spec='-L$libdir'
  35137. + hardcode_libdir_separator=
  35138. + fi
  35139. + ;;
  35140. + esac
  35141. + shared_flag='-shared'
  35142. + if test "$aix_use_runtimelinking" = yes; then
  35143. + shared_flag="$shared_flag "'${wl}-G'
  35144. + fi
  35145. + link_all_deplibs=no
  35146. + else
  35147. + # not using gcc
  35148. + if test "$host_cpu" = ia64; then
  35149. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35150. + # chokes on -Wl,-G. The following line is correct:
  35151. + shared_flag='-G'
  35152. + else
  35153. + if test "$aix_use_runtimelinking" = yes; then
  35154. + shared_flag='${wl}-G'
  35155. + else
  35156. + shared_flag='${wl}-bM:SRE'
  35157. + fi
  35158. + fi
  35159. + fi
  35160. -# Compiler flag to generate shared objects directly from archives.
  35161. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  35162. + export_dynamic_flag_spec='${wl}-bexpall'
  35163. + # It seems that -bexpall does not export symbols beginning with
  35164. + # underscore (_), so it is better to generate a list of symbols to export.
  35165. + always_export_symbols=yes
  35166. + if test "$aix_use_runtimelinking" = yes; then
  35167. + # Warning - without using the other runtime loading flags (-brtl),
  35168. + # -berok will link without error, but may produce a broken library.
  35169. + allow_undefined_flag='-berok'
  35170. + # Determine the default libpath from the value encoded in an
  35171. + # empty executable.
  35172. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35173. +/* end confdefs.h. */
  35174. -# Compiler flag to generate thread-safe objects.
  35175. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  35176. -
  35177. -# Library versioning type.
  35178. -version_type=$version_type
  35179. +int
  35180. +main ()
  35181. +{
  35182. -# Format of library name prefix.
  35183. -libname_spec=$lt_libname_spec
  35184. + ;
  35185. + return 0;
  35186. +}
  35187. +_ACEOF
  35188. +if ac_fn_c_try_link "$LINENO"; then :
  35189. -# List of archive names. First name is the real one, the rest are links.
  35190. -# The last name is the one that the linker finds with -lNAME.
  35191. -library_names_spec=$lt_library_names_spec
  35192. +lt_aix_libpath_sed='
  35193. + /Import File Strings/,/^$/ {
  35194. + /^0/ {
  35195. + s/^0 *\(.*\)$/\1/
  35196. + p
  35197. + }
  35198. + }'
  35199. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35200. +# Check for a 64-bit object if we didn't find anything.
  35201. +if test -z "$aix_libpath"; then
  35202. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35203. +fi
  35204. +fi
  35205. +rm -f core conftest.err conftest.$ac_objext \
  35206. + conftest$ac_exeext conftest.$ac_ext
  35207. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35208. -# The coded name of the library, if different from the real name.
  35209. -soname_spec=$lt_soname_spec
  35210. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  35211. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  35212. + else
  35213. + if test "$host_cpu" = ia64; then
  35214. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  35215. + allow_undefined_flag="-z nodefs"
  35216. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  35217. + else
  35218. + # Determine the default libpath from the value encoded in an
  35219. + # empty executable.
  35220. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35221. +/* end confdefs.h. */
  35222. -# Commands used to build and install an old-style archive.
  35223. -RANLIB=$lt_RANLIB
  35224. -old_archive_cmds=$lt_old_archive_cmds
  35225. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35226. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35227. +int
  35228. +main ()
  35229. +{
  35230. -# Create an old-style archive from a shared archive.
  35231. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  35232. + ;
  35233. + return 0;
  35234. +}
  35235. +_ACEOF
  35236. +if ac_fn_c_try_link "$LINENO"; then :
  35237. -# Create a temporary old-style archive to link instead of a shared archive.
  35238. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  35239. +lt_aix_libpath_sed='
  35240. + /Import File Strings/,/^$/ {
  35241. + /^0/ {
  35242. + s/^0 *\(.*\)$/\1/
  35243. + p
  35244. + }
  35245. + }'
  35246. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35247. +# Check for a 64-bit object if we didn't find anything.
  35248. +if test -z "$aix_libpath"; then
  35249. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35250. +fi
  35251. +fi
  35252. +rm -f core conftest.err conftest.$ac_objext \
  35253. + conftest$ac_exeext conftest.$ac_ext
  35254. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35255. -# Commands used to build and install a shared archive.
  35256. -archive_cmds=$lt_archive_cmds
  35257. -archive_expsym_cmds=$lt_archive_expsym_cmds
  35258. -postinstall_cmds=$lt_postinstall_cmds
  35259. -postuninstall_cmds=$lt_postuninstall_cmds
  35260. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  35261. + # Warning - without using the other run time loading flags,
  35262. + # -berok will link without error, but may produce a broken library.
  35263. + no_undefined_flag=' ${wl}-bernotok'
  35264. + allow_undefined_flag=' ${wl}-berok'
  35265. + # Exported symbols can be pulled into shared objects from archives
  35266. + whole_archive_flag_spec='$convenience'
  35267. + archive_cmds_need_lc=yes
  35268. + # This is similar to how AIX traditionally builds its shared libraries.
  35269. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  35270. + fi
  35271. + fi
  35272. + ;;
  35273. -# Commands used to build a loadable module (assumed same as above if empty)
  35274. -module_cmds=$lt_module_cmds
  35275. -module_expsym_cmds=$lt_module_expsym_cmds
  35276. + amigaos*)
  35277. + case $host_cpu in
  35278. + powerpc)
  35279. + # see comment about AmigaOS4 .so support
  35280. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35281. + archive_expsym_cmds=''
  35282. + ;;
  35283. + m68k)
  35284. + 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)'
  35285. + hardcode_libdir_flag_spec='-L$libdir'
  35286. + hardcode_minus_L=yes
  35287. + ;;
  35288. + esac
  35289. + ;;
  35290. -# Commands to strip libraries.
  35291. -old_striplib=$lt_old_striplib
  35292. -striplib=$lt_striplib
  35293. + bsdi[45]*)
  35294. + export_dynamic_flag_spec=-rdynamic
  35295. + ;;
  35296. -# Dependencies to place before the objects being linked to create a
  35297. -# shared library.
  35298. -predep_objects=$lt_predep_objects
  35299. + cygwin* | mingw* | pw32* | cegcc*)
  35300. + # When not using gcc, we currently assume that we are using
  35301. + # Microsoft Visual C++.
  35302. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  35303. + # no search path for DLLs.
  35304. + hardcode_libdir_flag_spec=' '
  35305. + allow_undefined_flag=unsupported
  35306. + # Tell ltmain to make .lib files, not .a files.
  35307. + libext=lib
  35308. + # Tell ltmain to make .dll files, not .so files.
  35309. + shrext_cmds=".dll"
  35310. + # FIXME: Setting linknames here is a bad hack.
  35311. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35312. + # The linker will automatically build a .lib file if we build a DLL.
  35313. + old_archive_from_new_cmds='true'
  35314. + # FIXME: Should let the user specify the lib program.
  35315. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35316. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  35317. + enable_shared_with_static_runtimes=yes
  35318. + ;;
  35319. -# Dependencies to place after the objects being linked to create a
  35320. -# shared library.
  35321. -postdep_objects=$lt_postdep_objects
  35322. + darwin* | rhapsody*)
  35323. -# Dependencies to place before the objects being linked to create a
  35324. -# shared library.
  35325. -predeps=$lt_predeps
  35326. -# Dependencies to place after the objects being linked to create a
  35327. -# shared library.
  35328. -postdeps=$lt_postdeps
  35329. + archive_cmds_need_lc=no
  35330. + hardcode_direct=no
  35331. + hardcode_automatic=yes
  35332. + hardcode_shlibpath_var=unsupported
  35333. + whole_archive_flag_spec=''
  35334. + link_all_deplibs=yes
  35335. + allow_undefined_flag="$_lt_dar_allow_undefined"
  35336. + case $cc_basename in
  35337. + ifort*) _lt_dar_can_shared=yes ;;
  35338. + *) _lt_dar_can_shared=$GCC ;;
  35339. + esac
  35340. + if test "$_lt_dar_can_shared" = "yes"; then
  35341. + output_verbose_link_cmd=echo
  35342. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  35343. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35344. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  35345. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  35346. -# The library search path used internally by the compiler when linking
  35347. -# a shared library.
  35348. -compiler_lib_search_path=$lt_compiler_lib_search_path
  35349. + else
  35350. + ld_shlibs=no
  35351. + fi
  35352. -# Method to check whether dependent libraries are shared objects.
  35353. -deplibs_check_method=$lt_deplibs_check_method
  35354. + ;;
  35355. -# Command to use when deplibs_check_method == file_magic.
  35356. -file_magic_cmd=$lt_file_magic_cmd
  35357. + dgux*)
  35358. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35359. + hardcode_libdir_flag_spec='-L$libdir'
  35360. + hardcode_shlibpath_var=no
  35361. + ;;
  35362. -# Flag that allows shared libraries with undefined symbols to be built.
  35363. -allow_undefined_flag=$lt_allow_undefined_flag
  35364. + freebsd1*)
  35365. + ld_shlibs=no
  35366. + ;;
  35367. -# Flag that forces no undefined symbols.
  35368. -no_undefined_flag=$lt_no_undefined_flag
  35369. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35370. + # support. Future versions do this automatically, but an explicit c++rt0.o
  35371. + # does not break anything, and helps significantly (at the cost of a little
  35372. + # extra space).
  35373. + freebsd2.2*)
  35374. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35375. + hardcode_libdir_flag_spec='-R$libdir'
  35376. + hardcode_direct=yes
  35377. + hardcode_shlibpath_var=no
  35378. + ;;
  35379. -# Commands used to finish a libtool library installation in a directory.
  35380. -finish_cmds=$lt_finish_cmds
  35381. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35382. + freebsd2*)
  35383. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35384. + hardcode_direct=yes
  35385. + hardcode_minus_L=yes
  35386. + hardcode_shlibpath_var=no
  35387. + ;;
  35388. -# Same as above, but a single script fragment to be evaled but not shown.
  35389. -finish_eval=$lt_finish_eval
  35390. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35391. + freebsd* | dragonfly*)
  35392. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35393. + hardcode_libdir_flag_spec='-R$libdir'
  35394. + hardcode_direct=yes
  35395. + hardcode_shlibpath_var=no
  35396. + ;;
  35397. -# Take the output of nm and produce a listing of raw symbols and C names.
  35398. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35399. + hpux9*)
  35400. + if test "$GCC" = yes; then
  35401. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  35402. + else
  35403. + 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'
  35404. + fi
  35405. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35406. + hardcode_libdir_separator=:
  35407. + hardcode_direct=yes
  35408. -# Transform the output of nm in a proper C declaration
  35409. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35410. + # hardcode_minus_L: Not really in the search PATH,
  35411. + # but as the default location of the library.
  35412. + hardcode_minus_L=yes
  35413. + export_dynamic_flag_spec='${wl}-E'
  35414. + ;;
  35415. -# Transform the output of nm in a C name address pair
  35416. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35417. + hpux10*)
  35418. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35419. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35420. + else
  35421. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35422. + fi
  35423. + if test "$with_gnu_ld" = no; then
  35424. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35425. + hardcode_libdir_flag_spec_ld='+b $libdir'
  35426. + hardcode_libdir_separator=:
  35427. + hardcode_direct=yes
  35428. + hardcode_direct_absolute=yes
  35429. + export_dynamic_flag_spec='${wl}-E'
  35430. + # hardcode_minus_L: Not really in the search PATH,
  35431. + # but as the default location of the library.
  35432. + hardcode_minus_L=yes
  35433. + fi
  35434. + ;;
  35435. -# This is the shared library runtime path variable.
  35436. -runpath_var=$runpath_var
  35437. + hpux11*)
  35438. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35439. + case $host_cpu in
  35440. + hppa*64*)
  35441. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35442. + ;;
  35443. + ia64*)
  35444. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35445. + ;;
  35446. + *)
  35447. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35448. + ;;
  35449. + esac
  35450. + else
  35451. + case $host_cpu in
  35452. + hppa*64*)
  35453. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35454. + ;;
  35455. + ia64*)
  35456. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35457. + ;;
  35458. + *)
  35459. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35460. + ;;
  35461. + esac
  35462. + fi
  35463. + if test "$with_gnu_ld" = no; then
  35464. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35465. + hardcode_libdir_separator=:
  35466. -# This is the shared library path variable.
  35467. -shlibpath_var=$shlibpath_var
  35468. + case $host_cpu in
  35469. + hppa*64*|ia64*)
  35470. + hardcode_direct=no
  35471. + hardcode_shlibpath_var=no
  35472. + ;;
  35473. + *)
  35474. + hardcode_direct=yes
  35475. + hardcode_direct_absolute=yes
  35476. + export_dynamic_flag_spec='${wl}-E'
  35477. -# Is shlibpath searched before the hard-coded library search path?
  35478. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35479. + # hardcode_minus_L: Not really in the search PATH,
  35480. + # but as the default location of the library.
  35481. + hardcode_minus_L=yes
  35482. + ;;
  35483. + esac
  35484. + fi
  35485. + ;;
  35486. -# How to hardcode a shared library path into an executable.
  35487. -hardcode_action=$hardcode_action
  35488. + irix5* | irix6* | nonstopux*)
  35489. + if test "$GCC" = yes; then
  35490. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35491. + # Try to use the -exported_symbol ld option, if it does not
  35492. + # work, assume that -exports_file does not work either and
  35493. + # implicitly export all symbols.
  35494. + save_LDFLAGS="$LDFLAGS"
  35495. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  35496. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35497. +/* end confdefs.h. */
  35498. +int foo(void) {}
  35499. +_ACEOF
  35500. +if ac_fn_c_try_link "$LINENO"; then :
  35501. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  35502. -# Whether we should hardcode library paths into libraries.
  35503. -hardcode_into_libs=$hardcode_into_libs
  35504. +fi
  35505. +rm -f core conftest.err conftest.$ac_objext \
  35506. + conftest$ac_exeext conftest.$ac_ext
  35507. + LDFLAGS="$save_LDFLAGS"
  35508. + else
  35509. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35510. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  35511. + fi
  35512. + archive_cmds_need_lc='no'
  35513. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35514. + hardcode_libdir_separator=:
  35515. + inherit_rpath=yes
  35516. + link_all_deplibs=yes
  35517. + ;;
  35518. -# Flag to hardcode \$libdir into a binary during linking.
  35519. -# This must work even if \$libdir does not exist.
  35520. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  35521. + netbsd* | netbsdelf*-gnu)
  35522. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35523. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35524. + else
  35525. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35526. + fi
  35527. + hardcode_libdir_flag_spec='-R$libdir'
  35528. + hardcode_direct=yes
  35529. + hardcode_shlibpath_var=no
  35530. + ;;
  35531. -# If ld is used when linking, flag to hardcode \$libdir into
  35532. -# a binary during linking. This must work even if \$libdir does
  35533. -# not exist.
  35534. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  35535. + newsos6)
  35536. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35537. + hardcode_direct=yes
  35538. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35539. + hardcode_libdir_separator=:
  35540. + hardcode_shlibpath_var=no
  35541. + ;;
  35542. -# Whether we need a single -rpath flag with a separated argument.
  35543. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  35544. + *nto* | *qnx*)
  35545. + ;;
  35546. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35547. -# resulting binary.
  35548. -hardcode_direct=$hardcode_direct
  35549. + openbsd*)
  35550. + if test -f /usr/libexec/ld.so; then
  35551. + hardcode_direct=yes
  35552. + hardcode_shlibpath_var=no
  35553. + hardcode_direct_absolute=yes
  35554. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35555. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35556. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35557. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  35558. + export_dynamic_flag_spec='${wl}-E'
  35559. + else
  35560. + case $host_os in
  35561. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35562. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35563. + hardcode_libdir_flag_spec='-R$libdir'
  35564. + ;;
  35565. + *)
  35566. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35567. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  35568. + ;;
  35569. + esac
  35570. + fi
  35571. + else
  35572. + ld_shlibs=no
  35573. + fi
  35574. + ;;
  35575. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35576. -# resulting binary.
  35577. -hardcode_minus_L=$hardcode_minus_L
  35578. + os2*)
  35579. + hardcode_libdir_flag_spec='-L$libdir'
  35580. + hardcode_minus_L=yes
  35581. + allow_undefined_flag=unsupported
  35582. + 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'
  35583. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35584. + ;;
  35585. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35586. -# the resulting binary.
  35587. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  35588. + osf3*)
  35589. + if test "$GCC" = yes; then
  35590. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35591. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35592. + else
  35593. + allow_undefined_flag=' -expect_unresolved \*'
  35594. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35595. + fi
  35596. + archive_cmds_need_lc='no'
  35597. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35598. + hardcode_libdir_separator=:
  35599. + ;;
  35600. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35601. -# and all subsequent libraries and executables linked against it.
  35602. -hardcode_automatic=$hardcode_automatic
  35603. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  35604. + if test "$GCC" = yes; then
  35605. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35606. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35607. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35608. + else
  35609. + allow_undefined_flag=' -expect_unresolved \*'
  35610. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35611. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  35612. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  35613. -# Variables whose values should be saved in libtool wrapper scripts and
  35614. -# restored at relink time.
  35615. -variables_saved_for_relink="$variables_saved_for_relink"
  35616. + # Both c and cxx compiler support -rpath directly
  35617. + hardcode_libdir_flag_spec='-rpath $libdir'
  35618. + fi
  35619. + archive_cmds_need_lc='no'
  35620. + hardcode_libdir_separator=:
  35621. + ;;
  35622. -# Whether libtool must link a program against all its dependency libraries.
  35623. -link_all_deplibs=$link_all_deplibs
  35624. + solaris*)
  35625. + no_undefined_flag=' -z defs'
  35626. + if test "$GCC" = yes; then
  35627. + wlarc='${wl}'
  35628. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35629. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35630. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35631. + else
  35632. + case `$CC -V 2>&1` in
  35633. + *"Compilers 5.0"*)
  35634. + wlarc=''
  35635. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35636. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35637. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  35638. + ;;
  35639. + *)
  35640. + wlarc='${wl}'
  35641. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35642. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35643. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35644. + ;;
  35645. + esac
  35646. + fi
  35647. + hardcode_libdir_flag_spec='-R$libdir'
  35648. + hardcode_shlibpath_var=no
  35649. + case $host_os in
  35650. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  35651. + *)
  35652. + # The compiler driver will combine and reorder linker options,
  35653. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  35654. + # but is careful enough not to reorder.
  35655. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  35656. + if test "$GCC" = yes; then
  35657. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35658. + else
  35659. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  35660. + fi
  35661. + ;;
  35662. + esac
  35663. + link_all_deplibs=yes
  35664. + ;;
  35665. -# Compile-time system search path for libraries
  35666. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35667. + sunos4*)
  35668. + if test "x$host_vendor" = xsequent; then
  35669. + # Use $CC to link under sequent, because it throws in some extra .o
  35670. + # files that make .init and .fini sections work.
  35671. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35672. + else
  35673. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35674. + fi
  35675. + hardcode_libdir_flag_spec='-L$libdir'
  35676. + hardcode_direct=yes
  35677. + hardcode_minus_L=yes
  35678. + hardcode_shlibpath_var=no
  35679. + ;;
  35680. -# Run-time system search path for libraries
  35681. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35682. + sysv4)
  35683. + case $host_vendor in
  35684. + sni)
  35685. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35686. + hardcode_direct=yes # is this really true???
  35687. + ;;
  35688. + siemens)
  35689. + ## LD is ld it makes a PLAMLIB
  35690. + ## CC just makes a GrossModule.
  35691. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35692. + reload_cmds='$CC -r -o $output$reload_objs'
  35693. + hardcode_direct=no
  35694. + ;;
  35695. + motorola)
  35696. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35697. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  35698. + ;;
  35699. + esac
  35700. + runpath_var='LD_RUN_PATH'
  35701. + hardcode_shlibpath_var=no
  35702. + ;;
  35703. -# Fix the shell variable \$srcfile for the compiler.
  35704. -fix_srcfile_path=$lt_fix_srcfile_path
  35705. + sysv4.3*)
  35706. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35707. + hardcode_shlibpath_var=no
  35708. + export_dynamic_flag_spec='-Bexport'
  35709. + ;;
  35710. -# Set to yes if exported symbols are required.
  35711. -always_export_symbols=$always_export_symbols
  35712. + sysv4*MP*)
  35713. + if test -d /usr/nec; then
  35714. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35715. + hardcode_shlibpath_var=no
  35716. + runpath_var=LD_RUN_PATH
  35717. + hardcode_runpath_var=yes
  35718. + ld_shlibs=yes
  35719. + fi
  35720. + ;;
  35721. -# The commands to list exported symbols.
  35722. -export_symbols_cmds=$lt_export_symbols_cmds
  35723. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35724. + no_undefined_flag='${wl}-z,text'
  35725. + archive_cmds_need_lc=no
  35726. + hardcode_shlibpath_var=no
  35727. + runpath_var='LD_RUN_PATH'
  35728. -# The commands to extract the exported symbol list from a shared archive.
  35729. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35730. + if test "$GCC" = yes; then
  35731. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35732. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35733. + else
  35734. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35735. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35736. + fi
  35737. + ;;
  35738. -# Symbols that should not be listed in the preloaded symbols.
  35739. -exclude_expsyms=$lt_exclude_expsyms
  35740. + sysv5* | sco3.2v5* | sco5v6*)
  35741. + # Note: We can NOT use -z defs as we might desire, because we do not
  35742. + # link with -lc, and that would cause any symbols used from libc to
  35743. + # always be unresolved, which means just about no library would
  35744. + # ever link correctly. If we're not using GNU ld we use -z text
  35745. + # though, which does catch some bad symbols but isn't as heavy-handed
  35746. + # as -z defs.
  35747. + no_undefined_flag='${wl}-z,text'
  35748. + allow_undefined_flag='${wl}-z,nodefs'
  35749. + archive_cmds_need_lc=no
  35750. + hardcode_shlibpath_var=no
  35751. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  35752. + hardcode_libdir_separator=':'
  35753. + link_all_deplibs=yes
  35754. + export_dynamic_flag_spec='${wl}-Bexport'
  35755. + runpath_var='LD_RUN_PATH'
  35756. -# Symbols that must always be exported.
  35757. -include_expsyms=$lt_include_expsyms
  35758. + if test "$GCC" = yes; then
  35759. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35760. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35761. + else
  35762. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35763. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35764. + fi
  35765. + ;;
  35766. -# ### END LIBTOOL CONFIG
  35767. + uts4*)
  35768. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35769. + hardcode_libdir_flag_spec='-L$libdir'
  35770. + hardcode_shlibpath_var=no
  35771. + ;;
  35772. -__EOF__
  35773. + *)
  35774. + ld_shlibs=no
  35775. + ;;
  35776. + esac
  35777. + if test x$host_vendor = xsni; then
  35778. + case $host in
  35779. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35780. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  35781. + ;;
  35782. + esac
  35783. + fi
  35784. + fi
  35785. - case $host_os in
  35786. - aix3*)
  35787. - cat <<\EOF >> "$cfgfile"
  35788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  35789. +$as_echo "$ld_shlibs" >&6; }
  35790. +test "$ld_shlibs" = no && can_build_shared=no
  35791. -# AIX sometimes has problems with the GCC collect2 program. For some
  35792. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  35793. -# vanish in a puff of smoke.
  35794. -if test "X${COLLECT_NAMES+set}" != Xset; then
  35795. - COLLECT_NAMES=
  35796. - export COLLECT_NAMES
  35797. -fi
  35798. -EOF
  35799. - ;;
  35800. - esac
  35801. +with_gnu_ld=$with_gnu_ld
  35802. - # We use sed instead of cat because bash on DJGPP gets confused if
  35803. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  35804. - # text mode, it properly converts lines to CR/LF. This bash problem
  35805. - # is reportedly fixed, but why not run on old versions too?
  35806. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  35807. - mv -f "$cfgfile" "$ofile" || \
  35808. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  35809. - chmod +x "$ofile"
  35810. -else
  35811. - # If there is no Makefile yet, we rely on a make rule to execute
  35812. - # `config.status --recheck' to rerun these tests and create the
  35813. - # libtool script then.
  35814. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35815. - if test -f "$ltmain_in"; then
  35816. - test -f Makefile && make "$ltmain"
  35817. - fi
  35818. -fi
  35819. -ac_ext=c
  35820. -ac_cpp='$CPP $CPPFLAGS'
  35821. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35822. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35823. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35824. -CC="$lt_save_CC"
  35825. -# Check whether --with-tags was given.
  35826. -if test "${with_tags+set}" = set; then
  35827. - withval=$with_tags; tagnames="$withval"
  35828. -fi
  35829. -if test -f "$ltmain" && test -n "$tagnames"; then
  35830. - if test ! -f "${ofile}"; then
  35831. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  35832. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  35833. - fi
  35834. - if test -z "$LTCC"; then
  35835. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  35836. - if test -z "$LTCC"; then
  35837. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  35838. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  35839. - else
  35840. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  35841. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  35842. - fi
  35843. - fi
  35844. - if test -z "$LTCFLAGS"; then
  35845. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  35846. - fi
  35847. - # Extract list of available tagged configurations in $ofile.
  35848. - # Note that this assumes the entire list is on one line.
  35849. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  35850. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  35851. - for tagname in $tagnames; do
  35852. - IFS="$lt_save_ifs"
  35853. - # Check whether tagname contains only valid characters
  35854. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  35855. - "") ;;
  35856. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  35857. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  35858. - { (exit 1); exit 1; }; }
  35859. - ;;
  35860. +
  35861. +
  35862. +#
  35863. +# Do we need to explicitly link libc?
  35864. +#
  35865. +case "x$archive_cmds_need_lc" in
  35866. +x|xyes)
  35867. + # Assume -lc should be added
  35868. + archive_cmds_need_lc=yes
  35869. +
  35870. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  35871. + case $archive_cmds in
  35872. + *'~'*)
  35873. + # FIXME: we may have to deal with multi-command sequences.
  35874. + ;;
  35875. + '$CC '*)
  35876. + # Test whether the compiler implicitly links with -lc since on some
  35877. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35878. + # to ld, don't add -lc before -lgcc.
  35879. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35880. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35881. + $RM conftest*
  35882. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35883. +
  35884. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35885. + (eval $ac_compile) 2>&5
  35886. + ac_status=$?
  35887. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35888. + test $ac_status = 0; } 2>conftest.err; then
  35889. + soname=conftest
  35890. + lib=conftest
  35891. + libobjs=conftest.$ac_objext
  35892. + deplibs=
  35893. + wl=$lt_prog_compiler_wl
  35894. + pic_flag=$lt_prog_compiler_pic
  35895. + compiler_flags=-v
  35896. + linker_flags=-v
  35897. + verstring=
  35898. + output_objdir=.
  35899. + libname=conftest
  35900. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35901. + allow_undefined_flag=
  35902. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35903. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35904. + ac_status=$?
  35905. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35906. + test $ac_status = 0; }
  35907. + then
  35908. + archive_cmds_need_lc=no
  35909. + else
  35910. + archive_cmds_need_lc=yes
  35911. + fi
  35912. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35913. + else
  35914. + cat conftest.err 1>&5
  35915. + fi
  35916. + $RM conftest*
  35917. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35918. +$as_echo "$archive_cmds_need_lc" >&6; }
  35919. + ;;
  35920. esac
  35921. + fi
  35922. + ;;
  35923. +esac
  35924. +
  35925. +
  35926. +
  35927. +
  35928. +
  35929. +
  35930. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  35931. - then
  35932. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  35933. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  35934. - { (exit 1); exit 1; }; }
  35935. - fi
  35936. -
  35937. - # Update the list of available tags.
  35938. - if test -n "$tagname"; then
  35939. - echo appending configuration tag \"$tagname\" to $ofile
  35940. -
  35941. - case $tagname in
  35942. - CXX)
  35943. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  35944. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  35945. - (test "X$CXX" != "Xg++"))) ; then
  35946. - ac_ext=cpp
  35947. -ac_cpp='$CXXCPP $CPPFLAGS'
  35948. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35949. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35950. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35951. -archive_cmds_need_lc_CXX=no
  35952. -allow_undefined_flag_CXX=
  35953. -always_export_symbols_CXX=no
  35954. -archive_expsym_cmds_CXX=
  35955. -export_dynamic_flag_spec_CXX=
  35956. -hardcode_direct_CXX=no
  35957. -hardcode_libdir_flag_spec_CXX=
  35958. -hardcode_libdir_flag_spec_ld_CXX=
  35959. -hardcode_libdir_separator_CXX=
  35960. -hardcode_minus_L_CXX=no
  35961. -hardcode_shlibpath_var_CXX=unsupported
  35962. -hardcode_automatic_CXX=no
  35963. -module_cmds_CXX=
  35964. -module_expsym_cmds_CXX=
  35965. -link_all_deplibs_CXX=unknown
  35966. -old_archive_cmds_CXX=$old_archive_cmds
  35967. -no_undefined_flag_CXX=
  35968. -whole_archive_flag_spec_CXX=
  35969. -enable_shared_with_static_runtimes_CXX=no
  35970. -# Dependencies to place before and after the object being linked:
  35971. -predep_objects_CXX=
  35972. -postdep_objects_CXX=
  35973. -predeps_CXX=
  35974. -postdeps_CXX=
  35975. -compiler_lib_search_path_CXX=
  35976. -# Source file extension for C++ test sources.
  35977. -ac_ext=cpp
  35978. -# Object file extension for compiled C++ test sources.
  35979. -objext=o
  35980. -objext_CXX=$objext
  35981. -# Code to be used in simple compile tests
  35982. -lt_simple_compile_test_code="int some_variable = 0;"
  35983. -# Code to be used in simple link tests
  35984. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  35985. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35986. -# If no C compiler was specified, use CC.
  35987. -LTCC=${LTCC-"$CC"}
  35988. -# If no C compiler flags were specified, use CFLAGS.
  35989. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  35990. -# Allow CC to be a program name with arguments.
  35991. -compiler=$CC
  35992. -# save warnings/boilerplate of simple test code
  35993. -ac_outfile=conftest.$ac_objext
  35994. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  35995. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35996. -_lt_compiler_boilerplate=`cat conftest.err`
  35997. -$rm conftest*
  35998. -ac_outfile=conftest.$ac_objext
  35999. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  36000. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  36001. -_lt_linker_boilerplate=`cat conftest.err`
  36002. -$rm conftest*
  36003. -# Allow CC to be a program name with arguments.
  36004. -lt_save_CC=$CC
  36005. -lt_save_LD=$LD
  36006. -lt_save_GCC=$GCC
  36007. -GCC=$GXX
  36008. -lt_save_with_gnu_ld=$with_gnu_ld
  36009. -lt_save_path_LD=$lt_cv_path_LD
  36010. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  36011. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  36012. -else
  36013. - $as_unset lt_cv_prog_gnu_ld
  36014. -fi
  36015. -if test -n "${lt_cv_path_LDCXX+set}"; then
  36016. - lt_cv_path_LD=$lt_cv_path_LDCXX
  36017. -else
  36018. - $as_unset lt_cv_path_LD
  36019. -fi
  36020. -test -z "${LDCXX+set}" || LD=$LDCXX
  36021. -CC=${CXX-"c++"}
  36022. -compiler=$CC
  36023. -compiler_CXX=$CC
  36024. -for cc_temp in $compiler""; do
  36025. - case $cc_temp in
  36026. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  36027. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  36028. - \-*) ;;
  36029. - *) break;;
  36030. - esac
  36031. -done
  36032. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  36033. -# We don't want -fno-exception wen compiling C++ code, so set the
  36034. -# no_builtin_flag separately
  36035. -if test "$GXX" = yes; then
  36036. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  36037. -else
  36038. - lt_prog_compiler_no_builtin_flag_CXX=
  36039. -fi
  36040. -if test "$GXX" = yes; then
  36041. - # Set up default GNU C++ configuration
  36042. -# Check whether --with-gnu-ld was given.
  36043. -if test "${with_gnu_ld+set}" = set; then
  36044. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  36045. -else
  36046. - with_gnu_ld=no
  36047. -fi
  36048. -ac_prog=ld
  36049. -if test "$GCC" = yes; then
  36050. - # Check if gcc -print-prog-name=ld gives a path.
  36051. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  36052. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  36053. - case $host in
  36054. - *-*-mingw*)
  36055. - # gcc leaves a trailing carriage return which upsets mingw
  36056. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  36057. - *)
  36058. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  36059. - esac
  36060. - case $ac_prog in
  36061. - # Accept absolute paths.
  36062. - [\\/]* | ?:[\\/]*)
  36063. - re_direlt='/[^/][^/]*/\.\./'
  36064. - # Canonicalize the pathname of ld
  36065. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  36066. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  36067. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  36068. - done
  36069. - test -z "$LD" && LD="$ac_prog"
  36070. - ;;
  36071. - "")
  36072. - # If it fails, then pretend we aren't using GCC.
  36073. - ac_prog=ld
  36074. - ;;
  36075. - *)
  36076. - # If it is relative, then search for the first ld in PATH.
  36077. - with_gnu_ld=unknown
  36078. - ;;
  36079. - esac
  36080. -elif test "$with_gnu_ld" = yes; then
  36081. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  36082. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  36083. -else
  36084. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  36085. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  36086. -fi
  36087. -if test "${lt_cv_path_LD+set}" = set; then
  36088. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36089. -else
  36090. - if test -z "$LD"; then
  36091. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36092. - for ac_dir in $PATH; do
  36093. - IFS="$lt_save_ifs"
  36094. - test -z "$ac_dir" && ac_dir=.
  36095. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  36096. - lt_cv_path_LD="$ac_dir/$ac_prog"
  36097. - # Check to see if the program is GNU ld. I'd rather use --version,
  36098. - # but apparently some variants of GNU ld only accept -v.
  36099. - # Break only if it was the GNU/non-GNU ld that we prefer.
  36100. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  36101. - *GNU* | *'with BFD'*)
  36102. - test "$with_gnu_ld" != no && break
  36103. - ;;
  36104. - *)
  36105. - test "$with_gnu_ld" != yes && break
  36106. - ;;
  36107. - esac
  36108. - fi
  36109. - done
  36110. - IFS="$lt_save_ifs"
  36111. -else
  36112. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  36113. -fi
  36114. -fi
  36115. -LD="$lt_cv_path_LD"
  36116. -if test -n "$LD"; then
  36117. - { echo "$as_me:$LINENO: result: $LD" >&5
  36118. -echo "${ECHO_T}$LD" >&6; }
  36119. -else
  36120. - { echo "$as_me:$LINENO: result: no" >&5
  36121. -echo "${ECHO_T}no" >&6; }
  36122. -fi
  36123. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  36124. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  36125. - { (exit 1); exit 1; }; }
  36126. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  36127. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  36128. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  36129. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36130. -else
  36131. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  36132. -case `$LD -v 2>&1 </dev/null` in
  36133. -*GNU* | *'with BFD'*)
  36134. - lt_cv_prog_gnu_ld=yes
  36135. - ;;
  36136. -*)
  36137. - lt_cv_prog_gnu_ld=no
  36138. - ;;
  36139. -esac
  36140. -fi
  36141. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  36142. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  36143. -with_gnu_ld=$lt_cv_prog_gnu_ld
  36144. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  36145. - # archiving commands below assume that GNU ld is being used.
  36146. - if test "$with_gnu_ld" = yes; then
  36147. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36148. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36149. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  36150. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  36151. - # If archive_cmds runs LD, not CC, wlarc should be empty
  36152. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  36153. - # investigate it a little bit more. (MM)
  36154. - wlarc='${wl}'
  36155. - # ancient GNU ld didn't support --whole-archive et. al.
  36156. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  36157. - grep 'no-whole-archive' > /dev/null; then
  36158. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  36159. - else
  36160. - whole_archive_flag_spec_CXX=
  36161. - fi
  36162. - else
  36163. - with_gnu_ld=no
  36164. - wlarc=
  36165. - # A generic and very simple default shared library creation
  36166. - # command for GNU C++ for the case where it uses the native
  36167. - # linker, instead of GNU ld. If possible, this setting should
  36168. - # overridden to take advantage of the native linker features on
  36169. - # the platform it is being used on.
  36170. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  36171. - fi
  36172. - # Commands to make compiler produce verbose output that lists
  36173. - # what "hidden" libraries, object files and flags are used when
  36174. - # linking a shared library.
  36175. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  36176. -else
  36177. - GXX=no
  36178. - with_gnu_ld=no
  36179. - wlarc=
  36180. -fi
  36181. -# PORTME: fill in a description of your system's C++ link characteristics
  36182. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  36183. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  36184. -ld_shlibs_CXX=yes
  36185. -case $host_os in
  36186. - aix3*)
  36187. - # FIXME: insert proper C++ library support
  36188. - ld_shlibs_CXX=no
  36189. - ;;
  36190. - aix4* | aix5*)
  36191. - if test "$host_cpu" = ia64; then
  36192. - # On IA64, the linker does run time linking by default, so we don't
  36193. - # have to do anything special.
  36194. - aix_use_runtimelinking=no
  36195. - exp_sym_flag='-Bexport'
  36196. - no_entry_flag=""
  36197. - else
  36198. - aix_use_runtimelinking=no
  36199. - # Test if we are trying to use run time linking or normal
  36200. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  36201. - # need to do runtime linking.
  36202. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  36203. - for ld_flag in $LDFLAGS; do
  36204. - case $ld_flag in
  36205. - *-brtl*)
  36206. - aix_use_runtimelinking=yes
  36207. - break
  36208. - ;;
  36209. - esac
  36210. - done
  36211. - ;;
  36212. - esac
  36213. - exp_sym_flag='-bexport'
  36214. - no_entry_flag='-bnoentry'
  36215. - fi
  36216. - # When large executables or shared objects are built, AIX ld can
  36217. - # have problems creating the table of contents. If linking a library
  36218. - # or program results in "error TOC overflow" add -mminimal-toc to
  36219. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  36220. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  36221. -
  36222. - archive_cmds_CXX=''
  36223. - hardcode_direct_CXX=yes
  36224. - hardcode_libdir_separator_CXX=':'
  36225. - link_all_deplibs_CXX=yes
  36226. - if test "$GXX" = yes; then
  36227. - case $host_os in aix4.[012]|aix4.[012].*)
  36228. - # We only want to do this on AIX 4.2 and lower, the check
  36229. - # below for broken collect2 doesn't work under 4.3+
  36230. - collect2name=`${CC} -print-prog-name=collect2`
  36231. - if test -f "$collect2name" && \
  36232. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  36233. - then
  36234. - # We have reworked collect2
  36235. - :
  36236. - else
  36237. - # We have old collect2
  36238. - hardcode_direct_CXX=unsupported
  36239. - # It fails to find uninstalled libraries when the uninstalled
  36240. - # path is not listed in the libpath. Setting hardcode_minus_L
  36241. - # to unsupported forces relinking
  36242. - hardcode_minus_L_CXX=yes
  36243. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  36244. - hardcode_libdir_separator_CXX=
  36245. - fi
  36246. - ;;
  36247. - esac
  36248. - shared_flag='-shared'
  36249. - if test "$aix_use_runtimelinking" = yes; then
  36250. - shared_flag="$shared_flag "'${wl}-G'
  36251. - fi
  36252. - else
  36253. - # not using gcc
  36254. - if test "$host_cpu" = ia64; then
  36255. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  36256. - # chokes on -Wl,-G. The following line is correct:
  36257. - shared_flag='-G'
  36258. - else
  36259. - if test "$aix_use_runtimelinking" = yes; then
  36260. - shared_flag='${wl}-G'
  36261. - else
  36262. - shared_flag='${wl}-bM:SRE'
  36263. - fi
  36264. - fi
  36265. - fi
  36266. - # It seems that -bexpall does not export symbols beginning with
  36267. - # underscore (_), so it is better to generate a list of symbols to export.
  36268. - always_export_symbols_CXX=yes
  36269. - if test "$aix_use_runtimelinking" = yes; then
  36270. - # Warning - without using the other runtime loading flags (-brtl),
  36271. - # -berok will link without error, but may produce a broken library.
  36272. - allow_undefined_flag_CXX='-berok'
  36273. - # Determine the default libpath from the value encoded in an empty executable.
  36274. - cat >conftest.$ac_ext <<_ACEOF
  36275. -/* confdefs.h. */
  36276. -_ACEOF
  36277. -cat confdefs.h >>conftest.$ac_ext
  36278. -cat >>conftest.$ac_ext <<_ACEOF
  36279. -/* end confdefs.h. */
  36280. -int
  36281. -main ()
  36282. -{
  36283. - ;
  36284. - return 0;
  36285. -}
  36286. -_ACEOF
  36287. -rm -f conftest.$ac_objext conftest$ac_exeext
  36288. -if { (ac_try="$ac_link"
  36289. -case "(($ac_try" in
  36290. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36291. - *) ac_try_echo=$ac_try;;
  36292. -esac
  36293. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36294. - (eval "$ac_link") 2>conftest.er1
  36295. - ac_status=$?
  36296. - grep -v '^ *+' conftest.er1 >conftest.err
  36297. - rm -f conftest.er1
  36298. - cat conftest.err >&5
  36299. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36300. - (exit $ac_status); } && {
  36301. - test -z "$ac_cxx_werror_flag" ||
  36302. - test ! -s conftest.err
  36303. - } && test -s conftest$ac_exeext &&
  36304. - $as_test_x conftest$ac_exeext; then
  36305. -lt_aix_libpath_sed='
  36306. - /Import File Strings/,/^$/ {
  36307. - /^0/ {
  36308. - s/^0 *\(.*\)$/\1/
  36309. - p
  36310. - }
  36311. - }'
  36312. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36313. -# Check for a 64-bit object if we didn't find anything.
  36314. -if test -z "$aix_libpath"; then
  36315. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36316. -fi
  36317. -else
  36318. - echo "$as_me: failed program was:" >&5
  36319. -sed 's/^/| /' conftest.$ac_ext >&5
  36320. -fi
  36321. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36322. - conftest$ac_exeext conftest.$ac_ext
  36323. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36324. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  36325. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  36326. - else
  36327. - if test "$host_cpu" = ia64; then
  36328. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  36329. - allow_undefined_flag_CXX="-z nodefs"
  36330. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  36331. - else
  36332. - # Determine the default libpath from the value encoded in an empty executable.
  36333. - cat >conftest.$ac_ext <<_ACEOF
  36334. -/* confdefs.h. */
  36335. -_ACEOF
  36336. -cat confdefs.h >>conftest.$ac_ext
  36337. -cat >>conftest.$ac_ext <<_ACEOF
  36338. -/* end confdefs.h. */
  36339. -int
  36340. -main ()
  36341. -{
  36342. - ;
  36343. - return 0;
  36344. -}
  36345. -_ACEOF
  36346. -rm -f conftest.$ac_objext conftest$ac_exeext
  36347. -if { (ac_try="$ac_link"
  36348. -case "(($ac_try" in
  36349. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36350. - *) ac_try_echo=$ac_try;;
  36351. -esac
  36352. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36353. - (eval "$ac_link") 2>conftest.er1
  36354. - ac_status=$?
  36355. - grep -v '^ *+' conftest.er1 >conftest.err
  36356. - rm -f conftest.er1
  36357. - cat conftest.err >&5
  36358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36359. - (exit $ac_status); } && {
  36360. - test -z "$ac_cxx_werror_flag" ||
  36361. - test ! -s conftest.err
  36362. - } && test -s conftest$ac_exeext &&
  36363. - $as_test_x conftest$ac_exeext; then
  36364. -lt_aix_libpath_sed='
  36365. - /Import File Strings/,/^$/ {
  36366. - /^0/ {
  36367. - s/^0 *\(.*\)$/\1/
  36368. - p
  36369. - }
  36370. - }'
  36371. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36372. -# Check for a 64-bit object if we didn't find anything.
  36373. -if test -z "$aix_libpath"; then
  36374. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36375. -fi
  36376. -else
  36377. - echo "$as_me: failed program was:" >&5
  36378. -sed 's/^/| /' conftest.$ac_ext >&5
  36379. -fi
  36380. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36381. - conftest$ac_exeext conftest.$ac_ext
  36382. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36383. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  36384. - # Warning - without using the other run time loading flags,
  36385. - # -berok will link without error, but may produce a broken library.
  36386. - no_undefined_flag_CXX=' ${wl}-bernotok'
  36387. - allow_undefined_flag_CXX=' ${wl}-berok'
  36388. - # Exported symbols can be pulled into shared objects from archives
  36389. - whole_archive_flag_spec_CXX='$convenience'
  36390. - archive_cmds_need_lc_CXX=yes
  36391. - # This is similar to how AIX traditionally builds its shared libraries.
  36392. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  36393. - fi
  36394. - fi
  36395. - ;;
  36396. - beos*)
  36397. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36398. - allow_undefined_flag_CXX=unsupported
  36399. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  36400. - # support --undefined. This deserves some investigation. FIXME
  36401. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36402. - else
  36403. - ld_shlibs_CXX=no
  36404. - fi
  36405. - ;;
  36406. - chorus*)
  36407. - case $cc_basename in
  36408. - *)
  36409. - # FIXME: insert proper C++ library support
  36410. - ld_shlibs_CXX=no
  36411. - ;;
  36412. - esac
  36413. - ;;
  36414. - cygwin* | mingw* | pw32*)
  36415. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  36416. - # as there is no search path for DLLs.
  36417. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  36418. - allow_undefined_flag_CXX=unsupported
  36419. - always_export_symbols_CXX=no
  36420. - enable_shared_with_static_runtimes_CXX=yes
  36421. -
  36422. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  36423. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  36424. - # If the export-symbols file already is a .def file (1st line
  36425. - # is EXPORTS), use it as is; otherwise, prepend...
  36426. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  36427. - cp $export_symbols $output_objdir/$soname.def;
  36428. - else
  36429. - echo EXPORTS > $output_objdir/$soname.def;
  36430. - cat $export_symbols >> $output_objdir/$soname.def;
  36431. - fi~
  36432. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  36433. - else
  36434. - ld_shlibs_CXX=no
  36435. - fi
  36436. - ;;
  36437. - darwin* | rhapsody*)
  36438. - case $host_os in
  36439. - rhapsody* | darwin1.[012])
  36440. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  36441. - ;;
  36442. - *) # Darwin 1.3 on
  36443. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  36444. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36445. - else
  36446. - case ${MACOSX_DEPLOYMENT_TARGET} in
  36447. - 10.[012])
  36448. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36449. - ;;
  36450. - 10.*)
  36451. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  36452. - ;;
  36453. - esac
  36454. - fi
  36455. - ;;
  36456. - esac
  36457. - archive_cmds_need_lc_CXX=no
  36458. - hardcode_direct_CXX=no
  36459. - hardcode_automatic_CXX=yes
  36460. - hardcode_shlibpath_var_CXX=unsupported
  36461. - whole_archive_flag_spec_CXX=''
  36462. - link_all_deplibs_CXX=yes
  36463. -
  36464. - if test "$GXX" = yes ; then
  36465. - lt_int_apple_cc_single_mod=no
  36466. - output_verbose_link_cmd='echo'
  36467. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  36468. - lt_int_apple_cc_single_mod=yes
  36469. - fi
  36470. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  36471. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  36472. - else
  36473. - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  36474. - fi
  36475. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36476. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36477. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  36478. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36479. - else
  36480. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36481. - fi
  36482. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36483. - else
  36484. - case $cc_basename in
  36485. - xlc*)
  36486. - output_verbose_link_cmd='echo'
  36487. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  36488. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36489. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36490. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36491. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36492. - ;;
  36493. - *)
  36494. - ld_shlibs_CXX=no
  36495. - ;;
  36496. - esac
  36497. - fi
  36498. - ;;
  36499. - dgux*)
  36500. - case $cc_basename in
  36501. - ec++*)
  36502. - # FIXME: insert proper C++ library support
  36503. - ld_shlibs_CXX=no
  36504. - ;;
  36505. - ghcx*)
  36506. - # Green Hills C++ Compiler
  36507. - # FIXME: insert proper C++ library support
  36508. - ld_shlibs_CXX=no
  36509. - ;;
  36510. - *)
  36511. - # FIXME: insert proper C++ library support
  36512. - ld_shlibs_CXX=no
  36513. - ;;
  36514. - esac
  36515. - ;;
  36516. - freebsd[12]*)
  36517. - # C++ shared libraries reported to be fairly broken before switch to ELF
  36518. - ld_shlibs_CXX=no
  36519. - ;;
  36520. - freebsd-elf*)
  36521. - archive_cmds_need_lc_CXX=no
  36522. - ;;
  36523. - freebsd* | dragonfly*)
  36524. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  36525. - # conventions
  36526. - ld_shlibs_CXX=yes
  36527. - ;;
  36528. - gnu*)
  36529. - ;;
  36530. - hpux9*)
  36531. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  36532. - hardcode_libdir_separator_CXX=:
  36533. - export_dynamic_flag_spec_CXX='${wl}-E'
  36534. - hardcode_direct_CXX=yes
  36535. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  36536. - # but as the default
  36537. - # location of the library.
  36538. -
  36539. - case $cc_basename in
  36540. - CC*)
  36541. - # FIXME: insert proper C++ library support
  36542. - ld_shlibs_CXX=no
  36543. - ;;
  36544. - aCC*)
  36545. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  36546. - # Commands to make compiler produce verbose output that lists
  36547. - # what "hidden" libraries, object files and flags are used when
  36548. - # linking a shared library.
  36549. - #
  36550. - # There doesn't appear to be a way to prevent this compiler from
  36551. - # explicitly linking system object files so we need to strip them
  36552. - # from the output so that they don't get included in the library
  36553. - # dependencies.
  36554. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36555. - ;;
  36556. - *)
  36557. - if test "$GXX" = yes; then
  36558. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  36559. - else
  36560. - # FIXME: insert proper C++ library support
  36561. - ld_shlibs_CXX=no
  36562. - fi
  36563. - ;;
  36564. - esac
  36565. - ;;
  36566. - hpux10*|hpux11*)
  36567. - if test $with_gnu_ld = no; then
  36568. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  36569. - hardcode_libdir_separator_CXX=:
  36570. - case $host_cpu in
  36571. - hppa*64*|ia64*) ;;
  36572. - *)
  36573. - export_dynamic_flag_spec_CXX='${wl}-E'
  36574. - ;;
  36575. - esac
  36576. - fi
  36577. - case $host_cpu in
  36578. - hppa*64*|ia64*)
  36579. - hardcode_direct_CXX=no
  36580. - hardcode_shlibpath_var_CXX=no
  36581. - ;;
  36582. - *)
  36583. - hardcode_direct_CXX=yes
  36584. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  36585. - # but as the default
  36586. - # location of the library.
  36587. - ;;
  36588. - esac
  36589. - case $cc_basename in
  36590. - CC*)
  36591. - # FIXME: insert proper C++ library support
  36592. - ld_shlibs_CXX=no
  36593. - ;;
  36594. - aCC*)
  36595. - case $host_cpu in
  36596. - hppa*64*)
  36597. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36598. - ;;
  36599. - ia64*)
  36600. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36601. - ;;
  36602. - *)
  36603. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36604. - ;;
  36605. - esac
  36606. - # Commands to make compiler produce verbose output that lists
  36607. - # what "hidden" libraries, object files and flags are used when
  36608. - # linking a shared library.
  36609. - #
  36610. - # There doesn't appear to be a way to prevent this compiler from
  36611. - # explicitly linking system object files so we need to strip them
  36612. - # from the output so that they don't get included in the library
  36613. - # dependencies.
  36614. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36615. - ;;
  36616. - *)
  36617. - if test "$GXX" = yes; then
  36618. - if test $with_gnu_ld = no; then
  36619. - case $host_cpu in
  36620. - hppa*64*)
  36621. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36622. - ;;
  36623. - ia64*)
  36624. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36625. - ;;
  36626. - *)
  36627. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36628. - ;;
  36629. - esac
  36630. - fi
  36631. - else
  36632. - # FIXME: insert proper C++ library support
  36633. - ld_shlibs_CXX=no
  36634. - fi
  36635. - ;;
  36636. - esac
  36637. - ;;
  36638. - interix[3-9]*)
  36639. - hardcode_direct_CXX=no
  36640. - hardcode_shlibpath_var_CXX=no
  36641. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  36642. - export_dynamic_flag_spec_CXX='${wl}-E'
  36643. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  36644. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  36645. - # default) and relocated if they conflict, which is a slow very memory
  36646. - # consuming and fragmenting process. To avoid this, we pick a random,
  36647. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  36648. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  36649. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  36650. - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  36651. - ;;
  36652. - irix5* | irix6*)
  36653. - case $cc_basename in
  36654. - CC*)
  36655. - # SGI C++
  36656. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36657. -
  36658. - # Archives containing C++ object files must be created using
  36659. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  36660. - # necessary to make sure instantiated templates are included
  36661. - # in the archive.
  36662. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  36663. - ;;
  36664. - *)
  36665. - if test "$GXX" = yes; then
  36666. - if test "$with_gnu_ld" = no; then
  36667. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  36668. - else
  36669. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  36670. - fi
  36671. - fi
  36672. - link_all_deplibs_CXX=yes
  36673. - ;;
  36674. - esac
  36675. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  36676. - hardcode_libdir_separator_CXX=:
  36677. - ;;
  36678. - linux* | k*bsd*-gnu)
  36679. - case $cc_basename in
  36680. - KCC*)
  36681. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  36682. -
  36683. - # KCC will only create a shared library if the output file
  36684. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  36685. - # to its proper name (with version) after linking.
  36686. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  36687. - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  36688. - # Commands to make compiler produce verbose output that lists
  36689. - # what "hidden" libraries, object files and flags are used when
  36690. - # linking a shared library.
  36691. - #
  36692. - # There doesn't appear to be a way to prevent this compiler from
  36693. - # explicitly linking system object files so we need to strip them
  36694. - # from the output so that they don't get included in the library
  36695. - # dependencies.
  36696. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36697. -
  36698. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  36699. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  36700. -
  36701. - # Archives containing C++ object files must be created using
  36702. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  36703. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  36704. - ;;
  36705. - icpc*)
  36706. - # Intel C++
  36707. - with_gnu_ld=yes
  36708. - # version 8.0 and above of icpc choke on multiply defined symbols
  36709. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  36710. - # earlier do not add the objects themselves.
  36711. - case `$CC -V 2>&1` in
  36712. - *"Version 7."*)
  36713. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36714. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36715. - ;;
  36716. - *) # Version 8.0 or newer
  36717. - tmp_idyn=
  36718. - case $host_cpu in
  36719. - ia64*) tmp_idyn=' -i_dynamic';;
  36720. - esac
  36721. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36722. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36723. - ;;
  36724. - esac
  36725. - archive_cmds_need_lc_CXX=no
  36726. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  36727. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  36728. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  36729. - ;;
  36730. - pgCC*)
  36731. - # Portland Group C++ compiler
  36732. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  36733. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  36734. -
  36735. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  36736. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  36737. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  36738. - ;;
  36739. - cxx*)
  36740. - # Compaq C++
  36741. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36742. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  36743. - runpath_var=LD_RUN_PATH
  36744. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  36745. - hardcode_libdir_separator_CXX=:
  36746. - # Commands to make compiler produce verbose output that lists
  36747. - # what "hidden" libraries, object files and flags are used when
  36748. - # linking a shared library.
  36749. - #
  36750. - # There doesn't appear to be a way to prevent this compiler from
  36751. - # explicitly linking system object files so we need to strip them
  36752. - # from the output so that they don't get included in the library
  36753. - # dependencies.
  36754. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36755. - ;;
  36756. - *)
  36757. - case `$CC -V 2>&1 | sed 5q` in
  36758. - *Sun\ C*)
  36759. - # Sun C++ 5.9
  36760. - no_undefined_flag_CXX=' -zdefs'
  36761. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36762. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  36763. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  36764. - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  36765. - # Not sure whether something based on
  36766. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  36767. - # would be better.
  36768. - output_verbose_link_cmd='echo'
  36769. -
  36770. - # Archives containing C++ object files must be created using
  36771. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  36772. - # necessary to make sure instantiated templates are included
  36773. - # in the archive.
  36774. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  36775. - ;;
  36776. - esac
  36777. - ;;
  36778. - esac
  36779. - ;;
  36780. - lynxos*)
  36781. - # FIXME: insert proper C++ library support
  36782. - ld_shlibs_CXX=no
  36783. - ;;
  36784. - m88k*)
  36785. - # FIXME: insert proper C++ library support
  36786. - ld_shlibs_CXX=no
  36787. - ;;
  36788. - mvs*)
  36789. - case $cc_basename in
  36790. - cxx*)
  36791. - # FIXME: insert proper C++ library support
  36792. - ld_shlibs_CXX=no
  36793. - ;;
  36794. - *)
  36795. - # FIXME: insert proper C++ library support
  36796. - ld_shlibs_CXX=no
  36797. - ;;
  36798. - esac
  36799. - ;;
  36800. - netbsd*)
  36801. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36802. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  36803. - wlarc=
  36804. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  36805. - hardcode_direct_CXX=yes
  36806. - hardcode_shlibpath_var_CXX=no
  36807. - fi
  36808. - # Workaround some broken pre-1.5 toolchains
  36809. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  36810. - ;;
  36811. - openbsd2*)
  36812. - # C++ shared libraries are fairly broken
  36813. - ld_shlibs_CXX=no
  36814. - ;;
  36815. - openbsd*)
  36816. - if test -f /usr/libexec/ld.so; then
  36817. - hardcode_direct_CXX=yes
  36818. - hardcode_shlibpath_var_CXX=no
  36819. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  36820. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  36821. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36822. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  36823. - export_dynamic_flag_spec_CXX='${wl}-E'
  36824. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  36825. - fi
  36826. - output_verbose_link_cmd='echo'
  36827. - else
  36828. - ld_shlibs_CXX=no
  36829. - fi
  36830. - ;;
  36831. - osf3*)
  36832. - case $cc_basename in
  36833. - KCC*)
  36834. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  36835. -
  36836. - # KCC will only create a shared library if the output file
  36837. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  36838. - # to its proper name (with version) after linking.
  36839. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  36840. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  36841. - hardcode_libdir_separator_CXX=:
  36842. - # Archives containing C++ object files must be created using
  36843. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  36844. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  36845. - ;;
  36846. - RCC*)
  36847. - # Rational C++ 2.4.1
  36848. - # FIXME: insert proper C++ library support
  36849. - ld_shlibs_CXX=no
  36850. - ;;
  36851. - cxx*)
  36852. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  36853. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36854. -
  36855. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  36856. - hardcode_libdir_separator_CXX=:
  36857. -
  36858. - # Commands to make compiler produce verbose output that lists
  36859. - # what "hidden" libraries, object files and flags are used when
  36860. - # linking a shared library.
  36861. - #
  36862. - # There doesn't appear to be a way to prevent this compiler from
  36863. - # explicitly linking system object files so we need to strip them
  36864. - # from the output so that they don't get included in the library
  36865. - # dependencies.
  36866. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36867. - ;;
  36868. - *)
  36869. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  36870. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  36871. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36872. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  36873. - hardcode_libdir_separator_CXX=:
  36874. - # Commands to make compiler produce verbose output that lists
  36875. - # what "hidden" libraries, object files and flags are used when
  36876. - # linking a shared library.
  36877. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  36878. - else
  36879. - # FIXME: insert proper C++ library support
  36880. - ld_shlibs_CXX=no
  36881. - fi
  36882. - ;;
  36883. - esac
  36884. - ;;
  36885. - osf4* | osf5*)
  36886. - case $cc_basename in
  36887. - KCC*)
  36888. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  36889. -
  36890. - # KCC will only create a shared library if the output file
  36891. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  36892. - # to its proper name (with version) after linking.
  36893. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  36894. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  36895. - hardcode_libdir_separator_CXX=:
  36896. - # Archives containing C++ object files must be created using
  36897. - # the KAI C++ compiler.
  36898. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  36899. - ;;
  36900. - RCC*)
  36901. - # Rational C++ 2.4.1
  36902. - # FIXME: insert proper C++ library support
  36903. - ld_shlibs_CXX=no
  36904. - ;;
  36905. - cxx*)
  36906. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  36907. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36908. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  36909. - echo "-hidden">> $lib.exp~
  36910. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  36911. - $rm $lib.exp'
  36912. -
  36913. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  36914. - hardcode_libdir_separator_CXX=:
  36915. -
  36916. - # Commands to make compiler produce verbose output that lists
  36917. - # what "hidden" libraries, object files and flags are used when
  36918. - # linking a shared library.
  36919. - #
  36920. - # There doesn't appear to be a way to prevent this compiler from
  36921. - # explicitly linking system object files so we need to strip them
  36922. - # from the output so that they don't get included in the library
  36923. - # dependencies.
  36924. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  36925. - ;;
  36926. - *)
  36927. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  36928. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  36929. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36930. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  36931. - hardcode_libdir_separator_CXX=:
  36932. - # Commands to make compiler produce verbose output that lists
  36933. - # what "hidden" libraries, object files and flags are used when
  36934. - # linking a shared library.
  36935. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  36936. - else
  36937. - # FIXME: insert proper C++ library support
  36938. - ld_shlibs_CXX=no
  36939. - fi
  36940. - ;;
  36941. - esac
  36942. - ;;
  36943. - psos*)
  36944. - # FIXME: insert proper C++ library support
  36945. - ld_shlibs_CXX=no
  36946. - ;;
  36947. - sunos4*)
  36948. - case $cc_basename in
  36949. - CC*)
  36950. - # Sun C++ 4.x
  36951. - # FIXME: insert proper C++ library support
  36952. - ld_shlibs_CXX=no
  36953. - ;;
  36954. - lcc*)
  36955. - # Lucid
  36956. - # FIXME: insert proper C++ library support
  36957. - ld_shlibs_CXX=no
  36958. - ;;
  36959. - *)
  36960. - # FIXME: insert proper C++ library support
  36961. - ld_shlibs_CXX=no
  36962. - ;;
  36963. - esac
  36964. - ;;
  36965. - solaris*)
  36966. - case $cc_basename in
  36967. - CC*)
  36968. - # Sun C++ 4.2, 5.x and Centerline C++
  36969. - archive_cmds_need_lc_CXX=yes
  36970. - no_undefined_flag_CXX=' -zdefs'
  36971. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  36972. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36973. - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  36974. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  36975. - hardcode_shlibpath_var_CXX=no
  36976. - case $host_os in
  36977. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  36978. - *)
  36979. - # The compiler driver will combine and reorder linker options,
  36980. - # but understands `-z linker_flag'.
  36981. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  36982. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  36983. - ;;
  36984. - esac
  36985. - link_all_deplibs_CXX=yes
  36986. - output_verbose_link_cmd='echo'
  36987. - # Archives containing C++ object files must be created using
  36988. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  36989. - # necessary to make sure instantiated templates are included
  36990. - # in the archive.
  36991. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  36992. - ;;
  36993. - gcx*)
  36994. - # Green Hills C++ Compiler
  36995. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  36996. - # The C++ compiler must be used to create the archive.
  36997. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  36998. - ;;
  36999. - *)
  37000. - # GNU C++ compiler with Solaris linker
  37001. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  37002. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  37003. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  37004. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  37005. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37006. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  37007. - # Commands to make compiler produce verbose output that lists
  37008. - # what "hidden" libraries, object files and flags are used when
  37009. - # linking a shared library.
  37010. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  37011. - else
  37012. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  37013. - # platform.
  37014. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  37015. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37016. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  37017. - # Commands to make compiler produce verbose output that lists
  37018. - # what "hidden" libraries, object files and flags are used when
  37019. - # linking a shared library.
  37020. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  37021. - fi
  37022. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  37023. - case $host_os in
  37024. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  37025. - *)
  37026. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  37027. - ;;
  37028. - esac
  37029. - fi
  37030. - ;;
  37031. - esac
  37032. - ;;
  37033. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  37034. - no_undefined_flag_CXX='${wl}-z,text'
  37035. - archive_cmds_need_lc_CXX=no
  37036. - hardcode_shlibpath_var_CXX=no
  37037. - runpath_var='LD_RUN_PATH'
  37038. -
  37039. - case $cc_basename in
  37040. - CC*)
  37041. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  37042. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  37043. - ;;
  37044. - *)
  37045. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  37046. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  37047. - ;;
  37048. - esac
  37049. - ;;
  37050. - sysv5* | sco3.2v5* | sco5v6*)
  37051. - # Note: We can NOT use -z defs as we might desire, because we do not
  37052. - # link with -lc, and that would cause any symbols used from libc to
  37053. - # always be unresolved, which means just about no library would
  37054. - # ever link correctly. If we're not using GNU ld we use -z text
  37055. - # though, which does catch some bad symbols but isn't as heavy-handed
  37056. - # as -z defs.
  37057. - # For security reasons, it is highly recommended that you always
  37058. - # use absolute paths for naming shared libraries, and exclude the
  37059. - # DT_RUNPATH tag from executables and libraries. But doing so
  37060. - # requires that you compile everything twice, which is a pain.
  37061. - # So that behaviour is only enabled if SCOABSPATH is set to a
  37062. - # non-empty value in the environment. Most likely only useful for
  37063. - # creating official distributions of packages.
  37064. - # This is a hack until libtool officially supports absolute path
  37065. - # names for shared libraries.
  37066. - no_undefined_flag_CXX='${wl}-z,text'
  37067. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  37068. - archive_cmds_need_lc_CXX=no
  37069. - hardcode_shlibpath_var_CXX=no
  37070. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  37071. - hardcode_libdir_separator_CXX=':'
  37072. - link_all_deplibs_CXX=yes
  37073. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  37074. - runpath_var='LD_RUN_PATH'
  37075. -
  37076. - case $cc_basename in
  37077. - CC*)
  37078. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37079. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37080. - ;;
  37081. - *)
  37082. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37083. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37084. - ;;
  37085. - esac
  37086. - ;;
  37087. - tandem*)
  37088. - case $cc_basename in
  37089. - NCC*)
  37090. - # NonStop-UX NCC 3.20
  37091. - # FIXME: insert proper C++ library support
  37092. - ld_shlibs_CXX=no
  37093. - ;;
  37094. - *)
  37095. - # FIXME: insert proper C++ library support
  37096. - ld_shlibs_CXX=no
  37097. - ;;
  37098. - esac
  37099. - ;;
  37100. - vxworks*)
  37101. - # FIXME: insert proper C++ library support
  37102. - ld_shlibs_CXX=no
  37103. - ;;
  37104. - *)
  37105. - # FIXME: insert proper C++ library support
  37106. - ld_shlibs_CXX=no
  37107. - ;;
  37108. -esac
  37109. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  37110. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  37111. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  37112. -GCC_CXX="$GXX"
  37113. -LD_CXX="$LD"
  37114. -cat > conftest.$ac_ext <<EOF
  37115. -class Foo
  37116. -{
  37117. -public:
  37118. - Foo (void) { a = 0; }
  37119. -private:
  37120. - int a;
  37121. -};
  37122. -EOF
  37123. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37124. - (eval $ac_compile) 2>&5
  37125. - ac_status=$?
  37126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37127. - (exit $ac_status); }; then
  37128. - # Parse the compiler output and extract the necessary
  37129. - # objects, libraries and library flags.
  37130. - # Sentinel used to keep track of whether or not we are before
  37131. - # the conftest object file.
  37132. - pre_test_object_deps_done=no
  37133. - # The `*' in the case matches for architectures that use `case' in
  37134. - # $output_verbose_cmd can trigger glob expansion during the loop
  37135. - # eval without this substitution.
  37136. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  37137. - for p in `eval $output_verbose_link_cmd`; do
  37138. - case $p in
  37139. - -L* | -R* | -l*)
  37140. - # Some compilers place space between "-{L,R}" and the path.
  37141. - # Remove the space.
  37142. - if test $p = "-L" \
  37143. - || test $p = "-R"; then
  37144. - prev=$p
  37145. - continue
  37146. - else
  37147. - prev=
  37148. - fi
  37149. - if test "$pre_test_object_deps_done" = no; then
  37150. - case $p in
  37151. - -L* | -R*)
  37152. - # Internal compiler library paths should come after those
  37153. - # provided the user. The postdeps already come after the
  37154. - # user supplied libs so there is no need to process them.
  37155. - if test -z "$compiler_lib_search_path_CXX"; then
  37156. - compiler_lib_search_path_CXX="${prev}${p}"
  37157. - else
  37158. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  37159. - fi
  37160. - ;;
  37161. - # The "-l" case would never come before the object being
  37162. - # linked, so don't bother handling this case.
  37163. - esac
  37164. - else
  37165. - if test -z "$postdeps_CXX"; then
  37166. - postdeps_CXX="${prev}${p}"
  37167. - else
  37168. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  37169. - fi
  37170. - fi
  37171. - ;;
  37172. - *.$objext)
  37173. - # This assumes that the test object file only shows up
  37174. - # once in the compiler output.
  37175. - if test "$p" = "conftest.$objext"; then
  37176. - pre_test_object_deps_done=yes
  37177. - continue
  37178. - fi
  37179. - if test "$pre_test_object_deps_done" = no; then
  37180. - if test -z "$predep_objects_CXX"; then
  37181. - predep_objects_CXX="$p"
  37182. - else
  37183. - predep_objects_CXX="$predep_objects_CXX $p"
  37184. - fi
  37185. - else
  37186. - if test -z "$postdep_objects_CXX"; then
  37187. - postdep_objects_CXX="$p"
  37188. - else
  37189. - postdep_objects_CXX="$postdep_objects_CXX $p"
  37190. - fi
  37191. - fi
  37192. - ;;
  37193. - *) ;; # Ignore the rest.
  37194. - esac
  37195. - done
  37196. - # Clean up.
  37197. - rm -f a.out a.exe
  37198. -else
  37199. - echo "libtool.m4: error: problem compiling CXX test program"
  37200. -fi
  37201. -$rm -f confest.$objext
  37202. -# PORTME: override above test on systems where it is broken
  37203. -case $host_os in
  37204. -interix[3-9]*)
  37205. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  37206. - # hack all around it, let's just trust "g++" to DTRT.
  37207. - predep_objects_CXX=
  37208. - postdep_objects_CXX=
  37209. - postdeps_CXX=
  37210. - ;;
  37211. -linux*)
  37212. - case `$CC -V 2>&1 | sed 5q` in
  37213. - *Sun\ C*)
  37214. - # Sun C++ 5.9
  37215. - #
  37216. - # The more standards-conforming stlport4 library is
  37217. - # incompatible with the Cstd library. Avoid specifying
  37218. - # it if it's in CXXFLAGS. Ignore libCrun as
  37219. - # -library=stlport4 depends on it.
  37220. - case " $CXX $CXXFLAGS " in
  37221. - *" -library=stlport4 "*)
  37222. - solaris_use_stlport4=yes
  37223. - ;;
  37224. - esac
  37225. - if test "$solaris_use_stlport4" != yes; then
  37226. - postdeps_CXX='-library=Cstd -library=Crun'
  37227. - fi
  37228. - ;;
  37229. - esac
  37230. - ;;
  37231. -solaris*)
  37232. - case $cc_basename in
  37233. - CC*)
  37234. - # The more standards-conforming stlport4 library is
  37235. - # incompatible with the Cstd library. Avoid specifying
  37236. - # it if it's in CXXFLAGS. Ignore libCrun as
  37237. - # -library=stlport4 depends on it.
  37238. - case " $CXX $CXXFLAGS " in
  37239. - *" -library=stlport4 "*)
  37240. - solaris_use_stlport4=yes
  37241. - ;;
  37242. - esac
  37243. - # Adding this requires a known-good setup of shared libraries for
  37244. - # Sun compiler versions before 5.6, else PIC objects from an old
  37245. - # archive will be linked into the output, leading to subtle bugs.
  37246. - if test "$solaris_use_stlport4" != yes; then
  37247. - postdeps_CXX='-library=Cstd -library=Crun'
  37248. - fi
  37249. - ;;
  37250. - esac
  37251. - ;;
  37252. -esac
  37253. -case " $postdeps_CXX " in
  37254. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  37255. -esac
  37256. -lt_prog_compiler_wl_CXX=
  37257. -lt_prog_compiler_pic_CXX=
  37258. -lt_prog_compiler_static_CXX=
  37259. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  37260. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  37261. - # C++ specific cases for pic, static, wl, etc.
  37262. - if test "$GXX" = yes; then
  37263. - lt_prog_compiler_wl_CXX='-Wl,'
  37264. - lt_prog_compiler_static_CXX='-static'
  37265. - case $host_os in
  37266. - aix*)
  37267. - # All AIX code is PIC.
  37268. - if test "$host_cpu" = ia64; then
  37269. - # AIX 5 now supports IA64 processor
  37270. - lt_prog_compiler_static_CXX='-Bstatic'
  37271. - fi
  37272. - ;;
  37273. - amigaos*)
  37274. - # FIXME: we need at least 68020 code to build shared libraries, but
  37275. - # adding the `-m68020' flag to GCC prevents building anything better,
  37276. - # like `-m68040'.
  37277. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  37278. - ;;
  37279. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37280. - # PIC is the default for these OSes.
  37281. - ;;
  37282. - mingw* | cygwin* | os2* | pw32*)
  37283. - # This hack is so that the source file can tell whether it is being
  37284. - # built for inclusion in a dll (and should export symbols for example).
  37285. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  37286. - # (--disable-auto-import) libraries
  37287. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  37288. - ;;
  37289. - darwin* | rhapsody*)
  37290. - # PIC is the default on this platform
  37291. - # Common symbols not allowed in MH_DYLIB files
  37292. - lt_prog_compiler_pic_CXX='-fno-common'
  37293. - ;;
  37294. - *djgpp*)
  37295. - # DJGPP does not support shared libraries at all
  37296. - lt_prog_compiler_pic_CXX=
  37297. - ;;
  37298. - interix[3-9]*)
  37299. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37300. - # Instead, we relocate shared libraries at runtime.
  37301. - ;;
  37302. - sysv4*MP*)
  37303. - if test -d /usr/nec; then
  37304. - lt_prog_compiler_pic_CXX=-Kconform_pic
  37305. - fi
  37306. - ;;
  37307. - hpux*)
  37308. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37309. - # not for PA HP-UX.
  37310. - case $host_cpu in
  37311. - hppa*64*|ia64*)
  37312. - ;;
  37313. - *)
  37314. - lt_prog_compiler_pic_CXX='-fPIC'
  37315. - ;;
  37316. - esac
  37317. - ;;
  37318. - *)
  37319. - lt_prog_compiler_pic_CXX='-fPIC'
  37320. - ;;
  37321. - esac
  37322. - else
  37323. - case $host_os in
  37324. - aix4* | aix5*)
  37325. - # All AIX code is PIC.
  37326. - if test "$host_cpu" = ia64; then
  37327. - # AIX 5 now supports IA64 processor
  37328. - lt_prog_compiler_static_CXX='-Bstatic'
  37329. - else
  37330. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  37331. - fi
  37332. - ;;
  37333. - chorus*)
  37334. - case $cc_basename in
  37335. - cxch68*)
  37336. - # Green Hills C++ Compiler
  37337. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  37338. - ;;
  37339. - esac
  37340. - ;;
  37341. - darwin*)
  37342. - # PIC is the default on this platform
  37343. - # Common symbols not allowed in MH_DYLIB files
  37344. - case $cc_basename in
  37345. - xlc*)
  37346. - lt_prog_compiler_pic_CXX='-qnocommon'
  37347. - lt_prog_compiler_wl_CXX='-Wl,'
  37348. - ;;
  37349. - esac
  37350. - ;;
  37351. - dgux*)
  37352. - case $cc_basename in
  37353. - ec++*)
  37354. - lt_prog_compiler_pic_CXX='-KPIC'
  37355. - ;;
  37356. - ghcx*)
  37357. - # Green Hills C++ Compiler
  37358. - lt_prog_compiler_pic_CXX='-pic'
  37359. - ;;
  37360. - *)
  37361. - ;;
  37362. - esac
  37363. - ;;
  37364. - freebsd* | dragonfly*)
  37365. - # FreeBSD uses GNU C++
  37366. - ;;
  37367. - hpux9* | hpux10* | hpux11*)
  37368. - case $cc_basename in
  37369. - CC*)
  37370. - lt_prog_compiler_wl_CXX='-Wl,'
  37371. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  37372. - if test "$host_cpu" != ia64; then
  37373. - lt_prog_compiler_pic_CXX='+Z'
  37374. - fi
  37375. - ;;
  37376. - aCC*)
  37377. - lt_prog_compiler_wl_CXX='-Wl,'
  37378. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  37379. - case $host_cpu in
  37380. - hppa*64*|ia64*)
  37381. - # +Z the default
  37382. - ;;
  37383. - *)
  37384. - lt_prog_compiler_pic_CXX='+Z'
  37385. - ;;
  37386. - esac
  37387. - ;;
  37388. - *)
  37389. - ;;
  37390. - esac
  37391. - ;;
  37392. - interix*)
  37393. - # This is c89, which is MS Visual C++ (no shared libs)
  37394. - # Anyone wants to do a port?
  37395. - ;;
  37396. - irix5* | irix6* | nonstopux*)
  37397. - case $cc_basename in
  37398. - CC*)
  37399. - lt_prog_compiler_wl_CXX='-Wl,'
  37400. - lt_prog_compiler_static_CXX='-non_shared'
  37401. - # CC pic flag -KPIC is the default.
  37402. - ;;
  37403. - *)
  37404. - ;;
  37405. - esac
  37406. - ;;
  37407. - linux* | k*bsd*-gnu)
  37408. - case $cc_basename in
  37409. - KCC*)
  37410. - # KAI C++ Compiler
  37411. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  37412. - lt_prog_compiler_pic_CXX='-fPIC'
  37413. - ;;
  37414. - icpc* | ecpc*)
  37415. - # Intel C++
  37416. - lt_prog_compiler_wl_CXX='-Wl,'
  37417. - lt_prog_compiler_pic_CXX='-KPIC'
  37418. - lt_prog_compiler_static_CXX='-static'
  37419. - ;;
  37420. - pgCC*)
  37421. - # Portland Group C++ compiler.
  37422. - lt_prog_compiler_wl_CXX='-Wl,'
  37423. - lt_prog_compiler_pic_CXX='-fpic'
  37424. - lt_prog_compiler_static_CXX='-Bstatic'
  37425. - ;;
  37426. - cxx*)
  37427. - # Compaq C++
  37428. - # Make sure the PIC flag is empty. It appears that all Alpha
  37429. - # Linux and Compaq Tru64 Unix objects are PIC.
  37430. - lt_prog_compiler_pic_CXX=
  37431. - lt_prog_compiler_static_CXX='-non_shared'
  37432. - ;;
  37433. - *)
  37434. - case `$CC -V 2>&1 | sed 5q` in
  37435. - *Sun\ C*)
  37436. - # Sun C++ 5.9
  37437. - lt_prog_compiler_pic_CXX='-KPIC'
  37438. - lt_prog_compiler_static_CXX='-Bstatic'
  37439. - lt_prog_compiler_wl_CXX='-Qoption ld '
  37440. - ;;
  37441. - esac
  37442. - ;;
  37443. - esac
  37444. - ;;
  37445. - lynxos*)
  37446. - ;;
  37447. - m88k*)
  37448. - ;;
  37449. - mvs*)
  37450. - case $cc_basename in
  37451. - cxx*)
  37452. - lt_prog_compiler_pic_CXX='-W c,exportall'
  37453. - ;;
  37454. - *)
  37455. - ;;
  37456. - esac
  37457. - ;;
  37458. - netbsd*)
  37459. - ;;
  37460. - osf3* | osf4* | osf5*)
  37461. - case $cc_basename in
  37462. - KCC*)
  37463. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  37464. - ;;
  37465. - RCC*)
  37466. - # Rational C++ 2.4.1
  37467. - lt_prog_compiler_pic_CXX='-pic'
  37468. - ;;
  37469. - cxx*)
  37470. - # Digital/Compaq C++
  37471. - lt_prog_compiler_wl_CXX='-Wl,'
  37472. - # Make sure the PIC flag is empty. It appears that all Alpha
  37473. - # Linux and Compaq Tru64 Unix objects are PIC.
  37474. - lt_prog_compiler_pic_CXX=
  37475. - lt_prog_compiler_static_CXX='-non_shared'
  37476. - ;;
  37477. - *)
  37478. - ;;
  37479. - esac
  37480. - ;;
  37481. - psos*)
  37482. - ;;
  37483. - solaris*)
  37484. - case $cc_basename in
  37485. - CC*)
  37486. - # Sun C++ 4.2, 5.x and Centerline C++
  37487. - lt_prog_compiler_pic_CXX='-KPIC'
  37488. - lt_prog_compiler_static_CXX='-Bstatic'
  37489. - lt_prog_compiler_wl_CXX='-Qoption ld '
  37490. - ;;
  37491. - gcx*)
  37492. - # Green Hills C++ Compiler
  37493. - lt_prog_compiler_pic_CXX='-PIC'
  37494. - ;;
  37495. - *)
  37496. - ;;
  37497. - esac
  37498. - ;;
  37499. - sunos4*)
  37500. - case $cc_basename in
  37501. - CC*)
  37502. - # Sun C++ 4.x
  37503. - lt_prog_compiler_pic_CXX='-pic'
  37504. - lt_prog_compiler_static_CXX='-Bstatic'
  37505. - ;;
  37506. - lcc*)
  37507. - # Lucid
  37508. - lt_prog_compiler_pic_CXX='-pic'
  37509. - ;;
  37510. - *)
  37511. - ;;
  37512. - esac
  37513. - ;;
  37514. - tandem*)
  37515. - case $cc_basename in
  37516. - NCC*)
  37517. - # NonStop-UX NCC 3.20
  37518. - lt_prog_compiler_pic_CXX='-KPIC'
  37519. - ;;
  37520. - *)
  37521. - ;;
  37522. - esac
  37523. - ;;
  37524. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  37525. - case $cc_basename in
  37526. - CC*)
  37527. - lt_prog_compiler_wl_CXX='-Wl,'
  37528. - lt_prog_compiler_pic_CXX='-KPIC'
  37529. - lt_prog_compiler_static_CXX='-Bstatic'
  37530. - ;;
  37531. - esac
  37532. - ;;
  37533. - vxworks*)
  37534. - ;;
  37535. - *)
  37536. - lt_prog_compiler_can_build_shared_CXX=no
  37537. - ;;
  37538. - esac
  37539. - fi
  37540. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  37541. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  37542. -#
  37543. -# Check to make sure the PIC flag actually works.
  37544. -#
  37545. -if test -n "$lt_prog_compiler_pic_CXX"; then
  37546. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  37547. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  37548. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  37549. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37550. -else
  37551. - lt_prog_compiler_pic_works_CXX=no
  37552. - ac_outfile=conftest.$ac_objext
  37553. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  37554. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  37555. - # Insert the option either (1) after the last *FLAGS variable, or
  37556. - # (2) before a word containing "conftest.", or (3) at the end.
  37557. - # Note that $ac_compile itself does not contain backslashes and begins
  37558. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37559. - # The option is referenced via a variable to avoid confusing sed.
  37560. - lt_compile=`echo "$ac_compile" | $SED \
  37561. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37562. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37563. - -e 's:$: $lt_compiler_flag:'`
  37564. - (eval echo "\"\$as_me:18536: $lt_compile\"" >&5)
  37565. - (eval "$lt_compile" 2>conftest.err)
  37566. - ac_status=$?
  37567. - cat conftest.err >&5
  37568. - echo "$as_me:18540: \$? = $ac_status" >&5
  37569. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37570. - # The compiler can only warn and ignore the option if not recognized
  37571. - # So say no if there are warnings other than the usual output.
  37572. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  37573. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37574. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  37575. - lt_prog_compiler_pic_works_CXX=yes
  37576. - fi
  37577. - fi
  37578. - $rm conftest*
  37579. -fi
  37580. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  37581. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  37582. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  37583. - case $lt_prog_compiler_pic_CXX in
  37584. - "" | " "*) ;;
  37585. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  37586. - esac
  37587. -else
  37588. - lt_prog_compiler_pic_CXX=
  37589. - lt_prog_compiler_can_build_shared_CXX=no
  37590. -fi
  37591. -fi
  37592. -case $host_os in
  37593. - # For platforms which do not support PIC, -DPIC is meaningless:
  37594. - *djgpp*)
  37595. - lt_prog_compiler_pic_CXX=
  37596. - ;;
  37597. - *)
  37598. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  37599. - ;;
  37600. -esac
  37601. -#
  37602. -# Check to make sure the static flag actually works.
  37603. -#
  37604. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  37605. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  37606. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  37607. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  37608. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37609. -else
  37610. - lt_prog_compiler_static_works_CXX=no
  37611. - save_LDFLAGS="$LDFLAGS"
  37612. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  37613. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  37614. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  37615. - # The linker can only warn and ignore the option if not recognized
  37616. - # So say no if there are warnings
  37617. - if test -s conftest.err; then
  37618. - # Append any errors to the config.log.
  37619. - cat conftest.err 1>&5
  37620. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  37621. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37622. - if diff conftest.exp conftest.er2 >/dev/null; then
  37623. - lt_prog_compiler_static_works_CXX=yes
  37624. - fi
  37625. - else
  37626. - lt_prog_compiler_static_works_CXX=yes
  37627. - fi
  37628. - fi
  37629. - $rm conftest*
  37630. - LDFLAGS="$save_LDFLAGS"
  37631. -fi
  37632. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  37633. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  37634. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  37635. - :
  37636. -else
  37637. - lt_prog_compiler_static_CXX=
  37638. -fi
  37639. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  37640. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  37641. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  37642. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37643. -else
  37644. - lt_cv_prog_compiler_c_o_CXX=no
  37645. - $rm -r conftest 2>/dev/null
  37646. - mkdir conftest
  37647. - cd conftest
  37648. - mkdir out
  37649. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  37650. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  37651. - # Insert the option either (1) after the last *FLAGS variable, or
  37652. - # (2) before a word containing "conftest.", or (3) at the end.
  37653. - # Note that $ac_compile itself does not contain backslashes and begins
  37654. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37655. - lt_compile=`echo "$ac_compile" | $SED \
  37656. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37657. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37658. - -e 's:$: $lt_compiler_flag:'`
  37659. - (eval echo "\"\$as_me:18640: $lt_compile\"" >&5)
  37660. - (eval "$lt_compile" 2>out/conftest.err)
  37661. - ac_status=$?
  37662. - cat out/conftest.err >&5
  37663. - echo "$as_me:18644: \$? = $ac_status" >&5
  37664. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  37665. - then
  37666. - # The compiler can only warn and ignore the option if not recognized
  37667. - # So say no if there are warnings
  37668. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  37669. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  37670. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  37671. - lt_cv_prog_compiler_c_o_CXX=yes
  37672. - fi
  37673. - fi
  37674. - chmod u+w . 2>&5
  37675. - $rm conftest*
  37676. - # SGI C++ compiler will create directory out/ii_files/ for
  37677. - # template instantiation
  37678. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  37679. - $rm out/* && rmdir out
  37680. - cd ..
  37681. - rmdir conftest
  37682. - $rm conftest*
  37683. -fi
  37684. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  37685. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  37686. -hard_links="nottested"
  37687. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  37688. - # do not overwrite the value of need_locks provided by the user
  37689. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  37690. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  37691. - hard_links=yes
  37692. - $rm conftest*
  37693. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37694. - touch conftest.a
  37695. - ln conftest.a conftest.b 2>&5 || hard_links=no
  37696. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37697. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  37698. -echo "${ECHO_T}$hard_links" >&6; }
  37699. - if test "$hard_links" = no; then
  37700. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  37701. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  37702. - need_locks=warn
  37703. - fi
  37704. -else
  37705. - need_locks=no
  37706. -fi
  37707. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  37708. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  37709. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37710. - case $host_os in
  37711. - aix4* | aix5*)
  37712. - # If we're using GNU nm, then we don't want the "-C" option.
  37713. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  37714. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  37715. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  37716. - else
  37717. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  37718. - fi
  37719. - ;;
  37720. - pw32*)
  37721. - export_symbols_cmds_CXX="$ltdll_cmds"
  37722. - ;;
  37723. - cygwin* | mingw*)
  37724. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  37725. - ;;
  37726. - *)
  37727. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37728. - ;;
  37729. - esac
  37730. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  37731. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  37732. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  37733. -#
  37734. -# Do we need to explicitly link libc?
  37735. -#
  37736. -case "x$archive_cmds_need_lc_CXX" in
  37737. -x|xyes)
  37738. - # Assume -lc should be added
  37739. - archive_cmds_need_lc_CXX=yes
  37740. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  37741. - case $archive_cmds_CXX in
  37742. - *'~'*)
  37743. - # FIXME: we may have to deal with multi-command sequences.
  37744. - ;;
  37745. - '$CC '*)
  37746. - # Test whether the compiler implicitly links with -lc since on some
  37747. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  37748. - # to ld, don't add -lc before -lgcc.
  37749. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  37750. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  37751. - $rm conftest*
  37752. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  37753. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37754. - (eval $ac_compile) 2>&5
  37755. - ac_status=$?
  37756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37757. - (exit $ac_status); } 2>conftest.err; then
  37758. - soname=conftest
  37759. - lib=conftest
  37760. - libobjs=conftest.$ac_objext
  37761. - deplibs=
  37762. - wl=$lt_prog_compiler_wl_CXX
  37763. - pic_flag=$lt_prog_compiler_pic_CXX
  37764. - compiler_flags=-v
  37765. - linker_flags=-v
  37766. - verstring=
  37767. - output_objdir=.
  37768. - libname=conftest
  37769. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  37770. - allow_undefined_flag_CXX=
  37771. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  37772. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  37773. - ac_status=$?
  37774. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37775. - (exit $ac_status); }
  37776. - then
  37777. - archive_cmds_need_lc_CXX=no
  37778. - else
  37779. - archive_cmds_need_lc_CXX=yes
  37780. - fi
  37781. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  37782. - else
  37783. - cat conftest.err 1>&5
  37784. - fi
  37785. - $rm conftest*
  37786. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  37787. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  37788. - ;;
  37789. - esac
  37790. - fi
  37791. - ;;
  37792. -esac
  37793. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  37794. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  37795. +
  37796. +
  37797. +
  37798. +
  37799. +
  37800. +
  37801. +
  37802. +
  37803. +
  37804. +
  37805. +
  37806. +
  37807. +
  37808. +
  37809. +
  37810. +
  37811. +
  37812. +
  37813. +
  37814. +
  37815. +
  37816. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  37817. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  37818. +
  37819. +if test "$GCC" = yes; then
  37820. + case $host_os in
  37821. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  37822. + *) lt_awk_arg="/^libraries:/" ;;
  37823. + esac
  37824. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  37825. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  37826. + # if the path contains ";" then we assume it to be the separator
  37827. + # otherwise default to the standard path separator (i.e. ":") - it is
  37828. + # assumed that no part of a normal pathname contains ";" but that should
  37829. + # okay in the real world where ";" in dirpaths is itself problematic.
  37830. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  37831. + else
  37832. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  37833. + fi
  37834. + # Ok, now we have the path, separated by spaces, we can step through it
  37835. + # and add multilib dir if necessary.
  37836. + lt_tmp_lt_search_path_spec=
  37837. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  37838. + for lt_sys_path in $lt_search_path_spec; do
  37839. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  37840. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  37841. + else
  37842. + test -d "$lt_sys_path" && \
  37843. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  37844. + fi
  37845. + done
  37846. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  37847. +BEGIN {RS=" "; FS="/|\n";} {
  37848. + lt_foo="";
  37849. + lt_count=0;
  37850. + for (lt_i = NF; lt_i > 0; lt_i--) {
  37851. + if ($lt_i != "" && $lt_i != ".") {
  37852. + if ($lt_i == "..") {
  37853. + lt_count++;
  37854. + } else {
  37855. + if (lt_count == 0) {
  37856. + lt_foo="/" $lt_i lt_foo;
  37857. + } else {
  37858. + lt_count--;
  37859. + }
  37860. + }
  37861. + }
  37862. + }
  37863. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  37864. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  37865. +}'`
  37866. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  37867. +else
  37868. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  37869. +fi
  37870. library_names_spec=
  37871. libname_spec='lib$name'
  37872. soname_spec=
  37873. @@ -18796,7 +17006,6 @@
  37874. version_type=none
  37875. dynamic_linker="$host_os ld.so"
  37876. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  37877. -
  37878. need_lib_prefix=unknown
  37879. hardcode_into_libs=no
  37880. @@ -18814,7 +17023,7 @@
  37881. soname_spec='${libname}${release}${shared_ext}$major'
  37882. ;;
  37883. -aix4* | aix5*)
  37884. +aix[4-9]*)
  37885. version_type=linux
  37886. need_lib_prefix=no
  37887. need_version=no
  37888. @@ -18833,7 +17042,7 @@
  37889. aix4 | aix4.[01] | aix4.[01].*)
  37890. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  37891. echo ' yes '
  37892. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  37893. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  37894. :
  37895. else
  37896. can_build_shared=no
  37897. @@ -18859,9 +17068,18 @@
  37898. ;;
  37899. amigaos*)
  37900. - library_names_spec='$libname.ixlibrary $libname.a'
  37901. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  37902. - 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'
  37903. + case $host_cpu in
  37904. + powerpc)
  37905. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  37906. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  37907. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37908. + ;;
  37909. + m68k)
  37910. + library_names_spec='$libname.ixlibrary $libname.a'
  37911. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  37912. + 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'
  37913. + ;;
  37914. + esac
  37915. ;;
  37916. beos*)
  37917. @@ -18884,25 +17102,28 @@
  37918. # libtool to hard-code these into programs
  37919. ;;
  37920. -cygwin* | mingw* | pw32*)
  37921. +cygwin* | mingw* | pw32* | cegcc*)
  37922. version_type=windows
  37923. shrext_cmds=".dll"
  37924. need_version=no
  37925. need_lib_prefix=no
  37926. case $GCC,$host_os in
  37927. - yes,cygwin* | yes,mingw* | yes,pw32*)
  37928. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  37929. library_names_spec='$libname.dll.a'
  37930. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  37931. postinstall_cmds='base_file=`basename \${file}`~
  37932. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  37933. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  37934. dldir=$destdir/`dirname \$dlpath`~
  37935. test -d \$dldir || mkdir -p \$dldir~
  37936. $install_prog $dir/$dlname \$dldir/$dlname~
  37937. - chmod a+x \$dldir/$dlname'
  37938. + chmod a+x \$dldir/$dlname~
  37939. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  37940. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  37941. + fi'
  37942. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  37943. dlpath=$dir/\$dldll~
  37944. - $rm \$dlpath'
  37945. + $RM \$dlpath'
  37946. shlibpath_overrides_runpath=yes
  37947. case $host_os in
  37948. @@ -18911,20 +17132,20 @@
  37949. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37950. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  37951. ;;
  37952. - mingw*)
  37953. + mingw* | cegcc*)
  37954. # MinGW DLLs use traditional 'lib' prefix
  37955. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37956. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  37957. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  37958. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  37959. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  37960. # It is most probably a Windows format PATH printed by
  37961. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  37962. # path with ; separators, and with drive letters. We can handle the
  37963. # drive letters (cygwin fileutils understands them), so leave them,
  37964. # especially as we might pass files found there to a mingw objdump,
  37965. # which wouldn't understand a cygwinified path. Ahh.
  37966. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  37967. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  37968. else
  37969. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  37970. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  37971. fi
  37972. ;;
  37973. pw32*)
  37974. @@ -18948,12 +17169,13 @@
  37975. version_type=darwin
  37976. need_lib_prefix=no
  37977. need_version=no
  37978. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  37979. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  37980. soname_spec='${libname}${release}${major}$shared_ext'
  37981. shlibpath_overrides_runpath=yes
  37982. shlibpath_var=DYLD_LIBRARY_PATH
  37983. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  37984. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  37985. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  37986. ;;
  37987. @@ -19046,18 +17268,18 @@
  37988. fi
  37989. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37990. ;;
  37991. - hppa*64*)
  37992. - shrext_cmds='.sl'
  37993. - hardcode_into_libs=yes
  37994. - dynamic_linker="$host_os dld.sl"
  37995. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  37996. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37997. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37998. - soname_spec='${libname}${release}${shared_ext}$major'
  37999. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38000. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38001. - ;;
  38002. - *)
  38003. + hppa*64*)
  38004. + shrext_cmds='.sl'
  38005. + hardcode_into_libs=yes
  38006. + dynamic_linker="$host_os dld.sl"
  38007. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  38008. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38009. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38010. + soname_spec='${libname}${release}${shared_ext}$major'
  38011. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38012. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38013. + ;;
  38014. + *)
  38015. shrext_cmds='.sl'
  38016. dynamic_linker="$host_os dld.sl"
  38017. shlibpath_var=SHLIB_PATH
  38018. @@ -19125,7 +17347,7 @@
  38019. ;;
  38020. # This must be Linux ELF.
  38021. -linux* | k*bsd*-gnu)
  38022. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  38023. version_type=linux
  38024. need_lib_prefix=no
  38025. need_version=no
  38026. @@ -19134,6 +17356,32 @@
  38027. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  38028. shlibpath_var=LD_LIBRARY_PATH
  38029. shlibpath_overrides_runpath=no
  38030. + # Some binutils ld are patched to set DT_RUNPATH
  38031. + save_LDFLAGS=$LDFLAGS
  38032. + save_libdir=$libdir
  38033. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  38034. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  38035. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38036. +/* end confdefs.h. */
  38037. +
  38038. +int
  38039. +main ()
  38040. +{
  38041. +
  38042. + ;
  38043. + return 0;
  38044. +}
  38045. +_ACEOF
  38046. +if ac_fn_c_try_link "$LINENO"; then :
  38047. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  38048. + shlibpath_overrides_runpath=yes
  38049. +fi
  38050. +fi
  38051. +rm -f core conftest.err conftest.$ac_objext \
  38052. + conftest$ac_exeext conftest.$ac_ext
  38053. + LDFLAGS=$save_LDFLAGS
  38054. + libdir=$save_libdir
  38055. +
  38056. # This implies no fast_install, which is unacceptable.
  38057. # Some rework will be needed to allow for fast_install
  38058. # before this can be enabled.
  38059. @@ -19141,7 +17389,7 @@
  38060. # Append ld.so.conf contents to the search path
  38061. if test -f /etc/ld.so.conf; then
  38062. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  38063. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  38064. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  38065. fi
  38066. @@ -19154,11 +17402,23 @@
  38067. dynamic_linker='GNU/Linux ld.so'
  38068. ;;
  38069. +netbsdelf*-gnu)
  38070. + version_type=linux
  38071. + need_lib_prefix=no
  38072. + need_version=no
  38073. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38074. + soname_spec='${libname}${release}${shared_ext}$major'
  38075. + shlibpath_var=LD_LIBRARY_PATH
  38076. + shlibpath_overrides_runpath=no
  38077. + hardcode_into_libs=yes
  38078. + dynamic_linker='NetBSD ld.elf_so'
  38079. + ;;
  38080. +
  38081. netbsd*)
  38082. version_type=sunos
  38083. need_lib_prefix=no
  38084. need_version=no
  38085. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38086. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  38087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38088. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38089. dynamic_linker='NetBSD (a.out) ld.so'
  38090. @@ -19179,14 +17439,16 @@
  38091. shlibpath_overrides_runpath=yes
  38092. ;;
  38093. -nto-qnx*)
  38094. - version_type=linux
  38095. +*nto* | *qnx*)
  38096. + version_type=qnx
  38097. need_lib_prefix=no
  38098. need_version=no
  38099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38100. soname_spec='${libname}${release}${shared_ext}$major'
  38101. shlibpath_var=LD_LIBRARY_PATH
  38102. - shlibpath_overrides_runpath=yes
  38103. + shlibpath_overrides_runpath=no
  38104. + hardcode_into_libs=yes
  38105. + dynamic_linker='ldqnx.so'
  38106. ;;
  38107. openbsd*)
  38108. @@ -19195,13 +17457,13 @@
  38109. need_lib_prefix=no
  38110. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  38111. case $host_os in
  38112. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  38113. - *) need_version=no ;;
  38114. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  38115. + *) need_version=no ;;
  38116. esac
  38117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38118. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38119. shlibpath_var=LD_LIBRARY_PATH
  38120. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38121. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38122. case $host_os in
  38123. openbsd2.[89] | openbsd2.[89].*)
  38124. shlibpath_overrides_runpath=no
  38125. @@ -19273,7 +17535,6 @@
  38126. sni)
  38127. shlibpath_overrides_runpath=no
  38128. need_lib_prefix=no
  38129. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  38130. runpath_var=LD_RUN_PATH
  38131. ;;
  38132. siemens)
  38133. @@ -19304,13 +17565,12 @@
  38134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  38135. soname_spec='${libname}${release}${shared_ext}$major'
  38136. shlibpath_var=LD_LIBRARY_PATH
  38137. + shlibpath_overrides_runpath=yes
  38138. hardcode_into_libs=yes
  38139. if test "$with_gnu_ld" = yes; then
  38140. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  38141. - shlibpath_overrides_runpath=no
  38142. else
  38143. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  38144. - shlibpath_overrides_runpath=yes
  38145. case $host_os in
  38146. sco3.2v5*)
  38147. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  38148. @@ -19320,6 +17580,17 @@
  38149. sys_lib_dlsearch_path_spec='/usr/lib'
  38150. ;;
  38151. +tpf*)
  38152. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  38153. + version_type=linux
  38154. + need_lib_prefix=no
  38155. + need_version=no
  38156. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38157. + shlibpath_var=LD_LIBRARY_PATH
  38158. + shlibpath_overrides_runpath=no
  38159. + hardcode_into_libs=yes
  38160. + ;;
  38161. +
  38162. uts4*)
  38163. version_type=linux
  38164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38165. @@ -19331,8 +17602,8 @@
  38166. dynamic_linker=no
  38167. ;;
  38168. esac
  38169. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  38170. -echo "${ECHO_T}$dynamic_linker" >&6; }
  38171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  38172. +$as_echo "$dynamic_linker" >&6; }
  38173. test "$dynamic_linker" = no && can_build_shared=no
  38174. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  38175. @@ -19340,1453 +17611,1124 @@
  38176. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  38177. fi
  38178. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  38179. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  38180. -hardcode_action_CXX=
  38181. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  38182. - test -n "$runpath_var_CXX" || \
  38183. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  38184. -
  38185. - # We can hardcode non-existant directories.
  38186. - if test "$hardcode_direct_CXX" != no &&
  38187. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  38188. - # have to relink, otherwise we might link with an installed library
  38189. - # when we should be linking with a yet-to-be-installed one
  38190. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  38191. - test "$hardcode_minus_L_CXX" != no; then
  38192. - # Linking always hardcodes the temporary library directory.
  38193. - hardcode_action_CXX=relink
  38194. - else
  38195. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  38196. - hardcode_action_CXX=immediate
  38197. - fi
  38198. -else
  38199. - # We cannot hardcode anything, or else we can only hardcode existing
  38200. - # directories.
  38201. - hardcode_action_CXX=unsupported
  38202. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  38203. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  38204. fi
  38205. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  38206. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  38207. -
  38208. -if test "$hardcode_action_CXX" = relink; then
  38209. - # Fast installation is not supported
  38210. - enable_fast_install=no
  38211. -elif test "$shlibpath_overrides_runpath" = yes ||
  38212. - test "$enable_shared" = no; then
  38213. - # Fast installation is not necessary
  38214. - enable_fast_install=needless
  38215. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  38216. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  38217. fi
  38218. -# The else clause should only fire when bootstrapping the
  38219. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  38220. -# with your package, and you will get complaints that there are
  38221. -# no rules to generate ltmain.sh.
  38222. -if test -f "$ltmain"; then
  38223. - # See if we are running on zsh, and set the options which allow our commands through
  38224. - # without removal of \ escapes.
  38225. - if test -n "${ZSH_VERSION+set}" ; then
  38226. - setopt NO_GLOB_SUBST
  38227. - fi
  38228. - # Now quote all the things that may contain metacharacters while being
  38229. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  38230. - # variables and quote the copies for generation of the libtool script.
  38231. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  38232. - SED SHELL STRIP \
  38233. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  38234. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  38235. - deplibs_check_method reload_flag reload_cmds need_locks \
  38236. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  38237. - lt_cv_sys_global_symbol_to_c_name_address \
  38238. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  38239. - old_postinstall_cmds old_postuninstall_cmds \
  38240. - compiler_CXX \
  38241. - CC_CXX \
  38242. - LD_CXX \
  38243. - lt_prog_compiler_wl_CXX \
  38244. - lt_prog_compiler_pic_CXX \
  38245. - lt_prog_compiler_static_CXX \
  38246. - lt_prog_compiler_no_builtin_flag_CXX \
  38247. - export_dynamic_flag_spec_CXX \
  38248. - thread_safe_flag_spec_CXX \
  38249. - whole_archive_flag_spec_CXX \
  38250. - enable_shared_with_static_runtimes_CXX \
  38251. - old_archive_cmds_CXX \
  38252. - old_archive_from_new_cmds_CXX \
  38253. - predep_objects_CXX \
  38254. - postdep_objects_CXX \
  38255. - predeps_CXX \
  38256. - postdeps_CXX \
  38257. - compiler_lib_search_path_CXX \
  38258. - archive_cmds_CXX \
  38259. - archive_expsym_cmds_CXX \
  38260. - postinstall_cmds_CXX \
  38261. - postuninstall_cmds_CXX \
  38262. - old_archive_from_expsyms_cmds_CXX \
  38263. - allow_undefined_flag_CXX \
  38264. - no_undefined_flag_CXX \
  38265. - export_symbols_cmds_CXX \
  38266. - hardcode_libdir_flag_spec_CXX \
  38267. - hardcode_libdir_flag_spec_ld_CXX \
  38268. - hardcode_libdir_separator_CXX \
  38269. - hardcode_automatic_CXX \
  38270. - module_cmds_CXX \
  38271. - module_expsym_cmds_CXX \
  38272. - lt_cv_prog_compiler_c_o_CXX \
  38273. - fix_srcfile_path_CXX \
  38274. - exclude_expsyms_CXX \
  38275. - include_expsyms_CXX; do
  38276. -
  38277. - case $var in
  38278. - old_archive_cmds_CXX | \
  38279. - old_archive_from_new_cmds_CXX | \
  38280. - archive_cmds_CXX | \
  38281. - archive_expsym_cmds_CXX | \
  38282. - module_cmds_CXX | \
  38283. - module_expsym_cmds_CXX | \
  38284. - old_archive_from_expsyms_cmds_CXX | \
  38285. - export_symbols_cmds_CXX | \
  38286. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  38287. - postinstall_cmds | postuninstall_cmds | \
  38288. - old_postinstall_cmds | old_postuninstall_cmds | \
  38289. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  38290. - # Double-quote double-evaled strings.
  38291. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  38292. - ;;
  38293. - *)
  38294. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  38295. - ;;
  38296. - esac
  38297. - done
  38298. - case $lt_echo in
  38299. - *'\$0 --fallback-echo"')
  38300. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  38301. - ;;
  38302. - esac
  38303. -cfgfile="$ofile"
  38304. - cat <<__EOF__ >> "$cfgfile"
  38305. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  38306. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  38307. -# Shell to use when invoking shell scripts.
  38308. -SHELL=$lt_SHELL
  38309. -# Whether or not to build shared libraries.
  38310. -build_libtool_libs=$enable_shared
  38311. -# Whether or not to build static libraries.
  38312. -build_old_libs=$enable_static
  38313. -# Whether or not to add -lc for building shared libraries.
  38314. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  38315. -# Whether or not to disallow shared libs when runtime libs are static
  38316. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  38317. -# Whether or not to optimize for fast installation.
  38318. -fast_install=$enable_fast_install
  38319. -# The host system.
  38320. -host_alias=$host_alias
  38321. -host=$host
  38322. -host_os=$host_os
  38323. -# The build system.
  38324. -build_alias=$build_alias
  38325. -build=$build
  38326. -build_os=$build_os
  38327. -# An echo program that does not interpret backslashes.
  38328. -echo=$lt_echo
  38329. -# The archiver.
  38330. -AR=$lt_AR
  38331. -AR_FLAGS=$lt_AR_FLAGS
  38332. -# A C compiler.
  38333. -LTCC=$lt_LTCC
  38334. -# LTCC compiler flags.
  38335. -LTCFLAGS=$lt_LTCFLAGS
  38336. -# A language-specific compiler.
  38337. -CC=$lt_compiler_CXX
  38338. -# Is the compiler the GNU C compiler?
  38339. -with_gcc=$GCC_CXX
  38340. -# An ERE matcher.
  38341. -EGREP=$lt_EGREP
  38342. -# The linker used to build libraries.
  38343. -LD=$lt_LD_CXX
  38344. -# Whether we need hard or soft links.
  38345. -LN_S=$lt_LN_S
  38346. -# A BSD-compatible nm program.
  38347. -NM=$lt_NM
  38348. -# A symbol stripping program
  38349. -STRIP=$lt_STRIP
  38350. -# Used to examine libraries when file_magic_cmd begins "file"
  38351. -MAGIC_CMD=$MAGIC_CMD
  38352. -# Used on cygwin: DLL creation program.
  38353. -DLLTOOL="$DLLTOOL"
  38354. -# Used on cygwin: object dumper.
  38355. -OBJDUMP="$OBJDUMP"
  38356. -# Used on cygwin: assembler.
  38357. -AS="$AS"
  38358. -# The name of the directory that contains temporary libtool files.
  38359. -objdir=$objdir
  38360. -# How to create reloadable object files.
  38361. -reload_flag=$lt_reload_flag
  38362. -reload_cmds=$lt_reload_cmds
  38363. -# How to pass a linker flag through the compiler.
  38364. -wl=$lt_lt_prog_compiler_wl_CXX
  38365. -# Object file suffix (normally "o").
  38366. -objext="$ac_objext"
  38367. -# Old archive suffix (normally "a").
  38368. -libext="$libext"
  38369. -# Shared library suffix (normally ".so").
  38370. -shrext_cmds='$shrext_cmds'
  38371. -# Executable file suffix (normally "").
  38372. -exeext="$exeext"
  38373. -# Additional compiler flags for building library objects.
  38374. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  38375. -pic_mode=$pic_mode
  38376. -# What is the maximum length of a command?
  38377. -max_cmd_len=$lt_cv_sys_max_cmd_len
  38378. -# Does compiler simultaneously support -c and -o options?
  38379. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  38380. -# Must we lock files when doing compilation?
  38381. -need_locks=$lt_need_locks
  38382. -# Do we need the lib prefix for modules?
  38383. -need_lib_prefix=$need_lib_prefix
  38384. -# Do we need a version for libraries?
  38385. -need_version=$need_version
  38386. -# Whether dlopen is supported.
  38387. -dlopen_support=$enable_dlopen
  38388. -# Whether dlopen of programs is supported.
  38389. -dlopen_self=$enable_dlopen_self
  38390. -# Whether dlopen of statically linked programs is supported.
  38391. -dlopen_self_static=$enable_dlopen_self_static
  38392. -# Compiler flag to prevent dynamic linking.
  38393. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  38394. -# Compiler flag to turn off builtin functions.
  38395. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  38396. -# Compiler flag to allow reflexive dlopens.
  38397. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  38398. -# Compiler flag to generate shared objects directly from archives.
  38399. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  38400. -# Compiler flag to generate thread-safe objects.
  38401. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  38402. -# Library versioning type.
  38403. -version_type=$version_type
  38404. -# Format of library name prefix.
  38405. -libname_spec=$lt_libname_spec
  38406. -# List of archive names. First name is the real one, the rest are links.
  38407. -# The last name is the one that the linker finds with -lNAME.
  38408. -library_names_spec=$lt_library_names_spec
  38409. -# The coded name of the library, if different from the real name.
  38410. -soname_spec=$lt_soname_spec
  38411. -# Commands used to build and install an old-style archive.
  38412. -RANLIB=$lt_RANLIB
  38413. -old_archive_cmds=$lt_old_archive_cmds_CXX
  38414. -old_postinstall_cmds=$lt_old_postinstall_cmds
  38415. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  38416. -# Create an old-style archive from a shared archive.
  38417. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  38418. -# Create a temporary old-style archive to link instead of a shared archive.
  38419. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  38420. -# Commands used to build and install a shared archive.
  38421. -archive_cmds=$lt_archive_cmds_CXX
  38422. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  38423. -postinstall_cmds=$lt_postinstall_cmds
  38424. -postuninstall_cmds=$lt_postuninstall_cmds
  38425. -# Commands used to build a loadable module (assumed same as above if empty)
  38426. -module_cmds=$lt_module_cmds_CXX
  38427. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  38428. -# Commands to strip libraries.
  38429. -old_striplib=$lt_old_striplib
  38430. -striplib=$lt_striplib
  38431. -# Dependencies to place before the objects being linked to create a
  38432. -# shared library.
  38433. -predep_objects=$lt_predep_objects_CXX
  38434. -# Dependencies to place after the objects being linked to create a
  38435. -# shared library.
  38436. -postdep_objects=$lt_postdep_objects_CXX
  38437. -# Dependencies to place before the objects being linked to create a
  38438. -# shared library.
  38439. -predeps=$lt_predeps_CXX
  38440. -# Dependencies to place after the objects being linked to create a
  38441. -# shared library.
  38442. -postdeps=$lt_postdeps_CXX
  38443. -# The library search path used internally by the compiler when linking
  38444. -# a shared library.
  38445. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  38446. -# Method to check whether dependent libraries are shared objects.
  38447. -deplibs_check_method=$lt_deplibs_check_method
  38448. -# Command to use when deplibs_check_method == file_magic.
  38449. -file_magic_cmd=$lt_file_magic_cmd
  38450. -# Flag that allows shared libraries with undefined symbols to be built.
  38451. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  38452. -# Flag that forces no undefined symbols.
  38453. -no_undefined_flag=$lt_no_undefined_flag_CXX
  38454. -# Commands used to finish a libtool library installation in a directory.
  38455. -finish_cmds=$lt_finish_cmds
  38456. -# Same as above, but a single script fragment to be evaled but not shown.
  38457. -finish_eval=$lt_finish_eval
  38458. -# Take the output of nm and produce a listing of raw symbols and C names.
  38459. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  38460. -# Transform the output of nm in a proper C declaration
  38461. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  38462. -# Transform the output of nm in a C name address pair
  38463. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  38464. -# This is the shared library runtime path variable.
  38465. -runpath_var=$runpath_var
  38466. -# This is the shared library path variable.
  38467. -shlibpath_var=$shlibpath_var
  38468. -# Is shlibpath searched before the hard-coded library search path?
  38469. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38470. -# How to hardcode a shared library path into an executable.
  38471. -hardcode_action=$hardcode_action_CXX
  38472. -# Whether we should hardcode library paths into libraries.
  38473. -hardcode_into_libs=$hardcode_into_libs
  38474. -# Flag to hardcode \$libdir into a binary during linking.
  38475. -# This must work even if \$libdir does not exist.
  38476. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  38477. -# If ld is used when linking, flag to hardcode \$libdir into
  38478. -# a binary during linking. This must work even if \$libdir does
  38479. -# not exist.
  38480. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  38481. -# Whether we need a single -rpath flag with a separated argument.
  38482. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  38483. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  38484. -# resulting binary.
  38485. -hardcode_direct=$hardcode_direct_CXX
  38486. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  38487. -# resulting binary.
  38488. -hardcode_minus_L=$hardcode_minus_L_CXX
  38489. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  38490. -# the resulting binary.
  38491. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  38492. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  38493. -# and all subsequent libraries and executables linked against it.
  38494. -hardcode_automatic=$hardcode_automatic_CXX
  38495. -# Variables whose values should be saved in libtool wrapper scripts and
  38496. -# restored at relink time.
  38497. -variables_saved_for_relink="$variables_saved_for_relink"
  38498. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  38499. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  38500. +hardcode_action=
  38501. +if test -n "$hardcode_libdir_flag_spec" ||
  38502. + test -n "$runpath_var" ||
  38503. + test "X$hardcode_automatic" = "Xyes" ; then
  38504. -# Whether libtool must link a program against all its dependency libraries.
  38505. -link_all_deplibs=$link_all_deplibs_CXX
  38506. + # We can hardcode non-existent directories.
  38507. + if test "$hardcode_direct" != no &&
  38508. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  38509. + # have to relink, otherwise we might link with an installed library
  38510. + # when we should be linking with a yet-to-be-installed one
  38511. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  38512. + test "$hardcode_minus_L" != no; then
  38513. + # Linking always hardcodes the temporary library directory.
  38514. + hardcode_action=relink
  38515. + else
  38516. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  38517. + hardcode_action=immediate
  38518. + fi
  38519. +else
  38520. + # We cannot hardcode anything, or else we can only hardcode existing
  38521. + # directories.
  38522. + hardcode_action=unsupported
  38523. +fi
  38524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  38525. +$as_echo "$hardcode_action" >&6; }
  38526. -# Compile-time system search path for libraries
  38527. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38528. +if test "$hardcode_action" = relink ||
  38529. + test "$inherit_rpath" = yes; then
  38530. + # Fast installation is not supported
  38531. + enable_fast_install=no
  38532. +elif test "$shlibpath_overrides_runpath" = yes ||
  38533. + test "$enable_shared" = no; then
  38534. + # Fast installation is not necessary
  38535. + enable_fast_install=needless
  38536. +fi
  38537. -# Run-time system search path for libraries
  38538. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38539. -# Fix the shell variable \$srcfile for the compiler.
  38540. -fix_srcfile_path=$lt_fix_srcfile_path
  38541. -# Set to yes if exported symbols are required.
  38542. -always_export_symbols=$always_export_symbols_CXX
  38543. -# The commands to list exported symbols.
  38544. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  38545. -# The commands to extract the exported symbol list from a shared archive.
  38546. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  38547. -# Symbols that should not be listed in the preloaded symbols.
  38548. -exclude_expsyms=$lt_exclude_expsyms_CXX
  38549. + if test "x$enable_dlopen" != xyes; then
  38550. + enable_dlopen=unknown
  38551. + enable_dlopen_self=unknown
  38552. + enable_dlopen_self_static=unknown
  38553. +else
  38554. + lt_cv_dlopen=no
  38555. + lt_cv_dlopen_libs=
  38556. -# Symbols that must always be exported.
  38557. -include_expsyms=$lt_include_expsyms_CXX
  38558. + case $host_os in
  38559. + beos*)
  38560. + lt_cv_dlopen="load_add_on"
  38561. + lt_cv_dlopen_libs=
  38562. + lt_cv_dlopen_self=yes
  38563. + ;;
  38564. -# ### END LIBTOOL TAG CONFIG: $tagname
  38565. + mingw* | pw32* | cegcc*)
  38566. + lt_cv_dlopen="LoadLibrary"
  38567. + lt_cv_dlopen_libs=
  38568. + ;;
  38569. -__EOF__
  38570. + cygwin*)
  38571. + lt_cv_dlopen="dlopen"
  38572. + lt_cv_dlopen_libs=
  38573. + ;;
  38574. + darwin*)
  38575. + # if libdl is installed we need to link against it
  38576. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  38577. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  38578. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  38579. + $as_echo_n "(cached) " >&6
  38580. +else
  38581. + ac_check_lib_save_LIBS=$LIBS
  38582. +LIBS="-ldl $LIBS"
  38583. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38584. +/* end confdefs.h. */
  38585. +/* Override any GCC internal prototype to avoid an error.
  38586. + Use char because int might match the return type of a GCC
  38587. + builtin and then its argument prototype would still apply. */
  38588. +#ifdef __cplusplus
  38589. +extern "C"
  38590. +#endif
  38591. +char dlopen ();
  38592. +int
  38593. +main ()
  38594. +{
  38595. +return dlopen ();
  38596. + ;
  38597. + return 0;
  38598. +}
  38599. +_ACEOF
  38600. +if ac_fn_c_try_link "$LINENO"; then :
  38601. + ac_cv_lib_dl_dlopen=yes
  38602. else
  38603. - # If there is no Makefile yet, we rely on a make rule to execute
  38604. - # `config.status --recheck' to rerun these tests and create the
  38605. - # libtool script then.
  38606. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38607. - if test -f "$ltmain_in"; then
  38608. - test -f Makefile && make "$ltmain"
  38609. - fi
  38610. + ac_cv_lib_dl_dlopen=no
  38611. fi
  38612. +rm -f core conftest.err conftest.$ac_objext \
  38613. + conftest$ac_exeext conftest.$ac_ext
  38614. +LIBS=$ac_check_lib_save_LIBS
  38615. +fi
  38616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  38617. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  38618. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  38619. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  38620. +else
  38621. + lt_cv_dlopen="dyld"
  38622. + lt_cv_dlopen_libs=
  38623. + lt_cv_dlopen_self=yes
  38624. -ac_ext=c
  38625. -ac_cpp='$CPP $CPPFLAGS'
  38626. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38627. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38628. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38629. -
  38630. -CC=$lt_save_CC
  38631. -LDCXX=$LD
  38632. -LD=$lt_save_LD
  38633. -GCC=$lt_save_GCC
  38634. -with_gnu_ldcxx=$with_gnu_ld
  38635. -with_gnu_ld=$lt_save_with_gnu_ld
  38636. -lt_cv_path_LDCXX=$lt_cv_path_LD
  38637. -lt_cv_path_LD=$lt_save_path_LD
  38638. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  38639. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  38640. -
  38641. - else
  38642. - tagname=""
  38643. - fi
  38644. - ;;
  38645. -
  38646. - F77)
  38647. - if test -n "$F77" && test "X$F77" != "Xno"; then
  38648. +fi
  38649. -ac_ext=f
  38650. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  38651. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38652. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  38653. + ;;
  38654. + *)
  38655. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  38656. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  38657. + lt_cv_dlopen="shl_load"
  38658. +else
  38659. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  38660. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  38661. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  38662. + $as_echo_n "(cached) " >&6
  38663. +else
  38664. + ac_check_lib_save_LIBS=$LIBS
  38665. +LIBS="-ldld $LIBS"
  38666. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38667. +/* end confdefs.h. */
  38668. -archive_cmds_need_lc_F77=no
  38669. -allow_undefined_flag_F77=
  38670. -always_export_symbols_F77=no
  38671. -archive_expsym_cmds_F77=
  38672. -export_dynamic_flag_spec_F77=
  38673. -hardcode_direct_F77=no
  38674. -hardcode_libdir_flag_spec_F77=
  38675. -hardcode_libdir_flag_spec_ld_F77=
  38676. -hardcode_libdir_separator_F77=
  38677. -hardcode_minus_L_F77=no
  38678. -hardcode_automatic_F77=no
  38679. -module_cmds_F77=
  38680. -module_expsym_cmds_F77=
  38681. -link_all_deplibs_F77=unknown
  38682. -old_archive_cmds_F77=$old_archive_cmds
  38683. -no_undefined_flag_F77=
  38684. -whole_archive_flag_spec_F77=
  38685. -enable_shared_with_static_runtimes_F77=no
  38686. -
  38687. -# Source file extension for f77 test sources.
  38688. -ac_ext=f
  38689. -
  38690. -# Object file extension for compiled f77 test sources.
  38691. -objext=o
  38692. -objext_F77=$objext
  38693. +/* Override any GCC internal prototype to avoid an error.
  38694. + Use char because int might match the return type of a GCC
  38695. + builtin and then its argument prototype would still apply. */
  38696. +#ifdef __cplusplus
  38697. +extern "C"
  38698. +#endif
  38699. +char shl_load ();
  38700. +int
  38701. +main ()
  38702. +{
  38703. +return shl_load ();
  38704. + ;
  38705. + return 0;
  38706. +}
  38707. +_ACEOF
  38708. +if ac_fn_c_try_link "$LINENO"; then :
  38709. + ac_cv_lib_dld_shl_load=yes
  38710. +else
  38711. + ac_cv_lib_dld_shl_load=no
  38712. +fi
  38713. +rm -f core conftest.err conftest.$ac_objext \
  38714. + conftest$ac_exeext conftest.$ac_ext
  38715. +LIBS=$ac_check_lib_save_LIBS
  38716. +fi
  38717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  38718. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  38719. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  38720. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  38721. +else
  38722. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  38723. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  38724. + lt_cv_dlopen="dlopen"
  38725. +else
  38726. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  38727. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  38728. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  38729. + $as_echo_n "(cached) " >&6
  38730. +else
  38731. + ac_check_lib_save_LIBS=$LIBS
  38732. +LIBS="-ldl $LIBS"
  38733. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38734. +/* end confdefs.h. */
  38735. -# Code to be used in simple compile tests
  38736. -lt_simple_compile_test_code="\
  38737. - subroutine t
  38738. - return
  38739. - end
  38740. -"
  38741. +/* Override any GCC internal prototype to avoid an error.
  38742. + Use char because int might match the return type of a GCC
  38743. + builtin and then its argument prototype would still apply. */
  38744. +#ifdef __cplusplus
  38745. +extern "C"
  38746. +#endif
  38747. +char dlopen ();
  38748. +int
  38749. +main ()
  38750. +{
  38751. +return dlopen ();
  38752. + ;
  38753. + return 0;
  38754. +}
  38755. +_ACEOF
  38756. +if ac_fn_c_try_link "$LINENO"; then :
  38757. + ac_cv_lib_dl_dlopen=yes
  38758. +else
  38759. + ac_cv_lib_dl_dlopen=no
  38760. +fi
  38761. +rm -f core conftest.err conftest.$ac_objext \
  38762. + conftest$ac_exeext conftest.$ac_ext
  38763. +LIBS=$ac_check_lib_save_LIBS
  38764. +fi
  38765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  38766. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  38767. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  38768. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  38769. +else
  38770. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  38771. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  38772. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  38773. + $as_echo_n "(cached) " >&6
  38774. +else
  38775. + ac_check_lib_save_LIBS=$LIBS
  38776. +LIBS="-lsvld $LIBS"
  38777. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38778. +/* end confdefs.h. */
  38779. -# Code to be used in simple link tests
  38780. -lt_simple_link_test_code="\
  38781. - program t
  38782. - end
  38783. -"
  38784. +/* Override any GCC internal prototype to avoid an error.
  38785. + Use char because int might match the return type of a GCC
  38786. + builtin and then its argument prototype would still apply. */
  38787. +#ifdef __cplusplus
  38788. +extern "C"
  38789. +#endif
  38790. +char dlopen ();
  38791. +int
  38792. +main ()
  38793. +{
  38794. +return dlopen ();
  38795. + ;
  38796. + return 0;
  38797. +}
  38798. +_ACEOF
  38799. +if ac_fn_c_try_link "$LINENO"; then :
  38800. + ac_cv_lib_svld_dlopen=yes
  38801. +else
  38802. + ac_cv_lib_svld_dlopen=no
  38803. +fi
  38804. +rm -f core conftest.err conftest.$ac_objext \
  38805. + conftest$ac_exeext conftest.$ac_ext
  38806. +LIBS=$ac_check_lib_save_LIBS
  38807. +fi
  38808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  38809. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  38810. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  38811. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  38812. +else
  38813. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  38814. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  38815. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  38816. + $as_echo_n "(cached) " >&6
  38817. +else
  38818. + ac_check_lib_save_LIBS=$LIBS
  38819. +LIBS="-ldld $LIBS"
  38820. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38821. +/* end confdefs.h. */
  38822. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  38823. +/* Override any GCC internal prototype to avoid an error.
  38824. + Use char because int might match the return type of a GCC
  38825. + builtin and then its argument prototype would still apply. */
  38826. +#ifdef __cplusplus
  38827. +extern "C"
  38828. +#endif
  38829. +char dld_link ();
  38830. +int
  38831. +main ()
  38832. +{
  38833. +return dld_link ();
  38834. + ;
  38835. + return 0;
  38836. +}
  38837. +_ACEOF
  38838. +if ac_fn_c_try_link "$LINENO"; then :
  38839. + ac_cv_lib_dld_dld_link=yes
  38840. +else
  38841. + ac_cv_lib_dld_dld_link=no
  38842. +fi
  38843. +rm -f core conftest.err conftest.$ac_objext \
  38844. + conftest$ac_exeext conftest.$ac_ext
  38845. +LIBS=$ac_check_lib_save_LIBS
  38846. +fi
  38847. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  38848. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  38849. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  38850. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  38851. +fi
  38852. -# If no C compiler was specified, use CC.
  38853. -LTCC=${LTCC-"$CC"}
  38854. -# If no C compiler flags were specified, use CFLAGS.
  38855. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  38856. +fi
  38857. -# Allow CC to be a program name with arguments.
  38858. -compiler=$CC
  38859. +fi
  38860. -# save warnings/boilerplate of simple test code
  38861. -ac_outfile=conftest.$ac_objext
  38862. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  38863. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  38864. -_lt_compiler_boilerplate=`cat conftest.err`
  38865. -$rm conftest*
  38866. -ac_outfile=conftest.$ac_objext
  38867. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  38868. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  38869. -_lt_linker_boilerplate=`cat conftest.err`
  38870. -$rm conftest*
  38871. +fi
  38872. -# Allow CC to be a program name with arguments.
  38873. -lt_save_CC="$CC"
  38874. -CC=${F77-"f77"}
  38875. -compiler=$CC
  38876. -compiler_F77=$CC
  38877. -for cc_temp in $compiler""; do
  38878. - case $cc_temp in
  38879. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38880. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  38881. - \-*) ;;
  38882. - *) break;;
  38883. - esac
  38884. -done
  38885. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  38886. +fi
  38887. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  38888. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  38889. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  38890. -echo "${ECHO_T}$can_build_shared" >&6; }
  38891. +fi
  38892. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  38893. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  38894. -test "$can_build_shared" = "no" && enable_shared=no
  38895. + ;;
  38896. + esac
  38897. -# On AIX, shared libraries and static libraries use the same namespace, and
  38898. -# are all built from PIC.
  38899. -case $host_os in
  38900. -aix3*)
  38901. - test "$enable_shared" = yes && enable_static=no
  38902. - if test -n "$RANLIB"; then
  38903. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38904. - postinstall_cmds='$RANLIB $lib'
  38905. - fi
  38906. - ;;
  38907. -aix4* | aix5*)
  38908. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38909. - test "$enable_shared" = yes && enable_static=no
  38910. + if test "x$lt_cv_dlopen" != xno; then
  38911. + enable_dlopen=yes
  38912. + else
  38913. + enable_dlopen=no
  38914. fi
  38915. - ;;
  38916. -esac
  38917. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  38918. -echo "${ECHO_T}$enable_shared" >&6; }
  38919. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  38920. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  38921. -# Make sure either enable_shared or enable_static is yes.
  38922. -test "$enable_shared" = yes || enable_static=yes
  38923. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  38924. -echo "${ECHO_T}$enable_static" >&6; }
  38925. -
  38926. -GCC_F77="$G77"
  38927. -LD_F77="$LD"
  38928. + case $lt_cv_dlopen in
  38929. + dlopen)
  38930. + save_CPPFLAGS="$CPPFLAGS"
  38931. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  38932. -lt_prog_compiler_wl_F77=
  38933. -lt_prog_compiler_pic_F77=
  38934. -lt_prog_compiler_static_F77=
  38935. + save_LDFLAGS="$LDFLAGS"
  38936. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  38937. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  38938. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  38939. + save_LIBS="$LIBS"
  38940. + LIBS="$lt_cv_dlopen_libs $LIBS"
  38941. - if test "$GCC" = yes; then
  38942. - lt_prog_compiler_wl_F77='-Wl,'
  38943. - lt_prog_compiler_static_F77='-static'
  38944. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  38945. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  38946. +if test "${lt_cv_dlopen_self+set}" = set; then :
  38947. + $as_echo_n "(cached) " >&6
  38948. +else
  38949. + if test "$cross_compiling" = yes; then :
  38950. + lt_cv_dlopen_self=cross
  38951. +else
  38952. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38953. + lt_status=$lt_dlunknown
  38954. + cat > conftest.$ac_ext <<_LT_EOF
  38955. +#line 18037 "configure"
  38956. +#include "confdefs.h"
  38957. - case $host_os in
  38958. - aix*)
  38959. - # All AIX code is PIC.
  38960. - if test "$host_cpu" = ia64; then
  38961. - # AIX 5 now supports IA64 processor
  38962. - lt_prog_compiler_static_F77='-Bstatic'
  38963. - fi
  38964. - ;;
  38965. +#if HAVE_DLFCN_H
  38966. +#include <dlfcn.h>
  38967. +#endif
  38968. - amigaos*)
  38969. - # FIXME: we need at least 68020 code to build shared libraries, but
  38970. - # adding the `-m68020' flag to GCC prevents building anything better,
  38971. - # like `-m68040'.
  38972. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  38973. - ;;
  38974. +#include <stdio.h>
  38975. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  38976. - # PIC is the default for these OSes.
  38977. - ;;
  38978. +#ifdef RTLD_GLOBAL
  38979. +# define LT_DLGLOBAL RTLD_GLOBAL
  38980. +#else
  38981. +# ifdef DL_GLOBAL
  38982. +# define LT_DLGLOBAL DL_GLOBAL
  38983. +# else
  38984. +# define LT_DLGLOBAL 0
  38985. +# endif
  38986. +#endif
  38987. - mingw* | cygwin* | pw32* | os2*)
  38988. - # This hack is so that the source file can tell whether it is being
  38989. - # built for inclusion in a dll (and should export symbols for example).
  38990. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  38991. - # (--disable-auto-import) libraries
  38992. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  38993. - ;;
  38994. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38995. + find out it does not work in some platform. */
  38996. +#ifndef LT_DLLAZY_OR_NOW
  38997. +# ifdef RTLD_LAZY
  38998. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38999. +# else
  39000. +# ifdef DL_LAZY
  39001. +# define LT_DLLAZY_OR_NOW DL_LAZY
  39002. +# else
  39003. +# ifdef RTLD_NOW
  39004. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  39005. +# else
  39006. +# ifdef DL_NOW
  39007. +# define LT_DLLAZY_OR_NOW DL_NOW
  39008. +# else
  39009. +# define LT_DLLAZY_OR_NOW 0
  39010. +# endif
  39011. +# endif
  39012. +# endif
  39013. +# endif
  39014. +#endif
  39015. - darwin* | rhapsody*)
  39016. - # PIC is the default on this platform
  39017. - # Common symbols not allowed in MH_DYLIB files
  39018. - lt_prog_compiler_pic_F77='-fno-common'
  39019. - ;;
  39020. +void fnord() { int i=42;}
  39021. +int main ()
  39022. +{
  39023. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  39024. + int status = $lt_dlunknown;
  39025. - interix[3-9]*)
  39026. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  39027. - # Instead, we relocate shared libraries at runtime.
  39028. - ;;
  39029. -
  39030. - msdosdjgpp*)
  39031. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  39032. - # on systems that don't support them.
  39033. - lt_prog_compiler_can_build_shared_F77=no
  39034. - enable_shared=no
  39035. - ;;
  39036. -
  39037. - sysv4*MP*)
  39038. - if test -d /usr/nec; then
  39039. - lt_prog_compiler_pic_F77=-Kconform_pic
  39040. - fi
  39041. - ;;
  39042. -
  39043. - hpux*)
  39044. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  39045. - # not for PA HP-UX.
  39046. - case $host_cpu in
  39047. - hppa*64*|ia64*)
  39048. - # +Z the default
  39049. - ;;
  39050. - *)
  39051. - lt_prog_compiler_pic_F77='-fPIC'
  39052. - ;;
  39053. - esac
  39054. - ;;
  39055. + if (self)
  39056. + {
  39057. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  39058. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  39059. + /* dlclose (self); */
  39060. + }
  39061. + else
  39062. + puts (dlerror ());
  39063. - *)
  39064. - lt_prog_compiler_pic_F77='-fPIC'
  39065. - ;;
  39066. + return status;
  39067. +}
  39068. +_LT_EOF
  39069. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  39070. + (eval $ac_link) 2>&5
  39071. + ac_status=$?
  39072. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39073. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  39074. + (./conftest; exit; ) >&5 2>/dev/null
  39075. + lt_status=$?
  39076. + case x$lt_status in
  39077. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  39078. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  39079. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  39080. esac
  39081. - else
  39082. - # PORTME Check for flag to pass linker flags through the system compiler.
  39083. - case $host_os in
  39084. - aix*)
  39085. - lt_prog_compiler_wl_F77='-Wl,'
  39086. - if test "$host_cpu" = ia64; then
  39087. - # AIX 5 now supports IA64 processor
  39088. - lt_prog_compiler_static_F77='-Bstatic'
  39089. - else
  39090. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  39091. - fi
  39092. - ;;
  39093. - darwin*)
  39094. - # PIC is the default on this platform
  39095. - # Common symbols not allowed in MH_DYLIB files
  39096. - case $cc_basename in
  39097. - xlc*)
  39098. - lt_prog_compiler_pic_F77='-qnocommon'
  39099. - lt_prog_compiler_wl_F77='-Wl,'
  39100. - ;;
  39101. - esac
  39102. - ;;
  39103. + else :
  39104. + # compilation failed
  39105. + lt_cv_dlopen_self=no
  39106. + fi
  39107. +fi
  39108. +rm -fr conftest*
  39109. - mingw* | cygwin* | pw32* | os2*)
  39110. - # This hack is so that the source file can tell whether it is being
  39111. - # built for inclusion in a dll (and should export symbols for example).
  39112. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  39113. - ;;
  39114. - hpux9* | hpux10* | hpux11*)
  39115. - lt_prog_compiler_wl_F77='-Wl,'
  39116. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  39117. - # not for PA HP-UX.
  39118. - case $host_cpu in
  39119. - hppa*64*|ia64*)
  39120. - # +Z the default
  39121. - ;;
  39122. - *)
  39123. - lt_prog_compiler_pic_F77='+Z'
  39124. - ;;
  39125. - esac
  39126. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  39127. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  39128. - ;;
  39129. +fi
  39130. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  39131. +$as_echo "$lt_cv_dlopen_self" >&6; }
  39132. - irix5* | irix6* | nonstopux*)
  39133. - lt_prog_compiler_wl_F77='-Wl,'
  39134. - # PIC (with -KPIC) is the default.
  39135. - lt_prog_compiler_static_F77='-non_shared'
  39136. - ;;
  39137. + if test "x$lt_cv_dlopen_self" = xyes; then
  39138. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  39139. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  39140. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  39141. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  39142. + $as_echo_n "(cached) " >&6
  39143. +else
  39144. + if test "$cross_compiling" = yes; then :
  39145. + lt_cv_dlopen_self_static=cross
  39146. +else
  39147. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  39148. + lt_status=$lt_dlunknown
  39149. + cat > conftest.$ac_ext <<_LT_EOF
  39150. +#line 18133 "configure"
  39151. +#include "confdefs.h"
  39152. - newsos6)
  39153. - lt_prog_compiler_pic_F77='-KPIC'
  39154. - lt_prog_compiler_static_F77='-Bstatic'
  39155. - ;;
  39156. +#if HAVE_DLFCN_H
  39157. +#include <dlfcn.h>
  39158. +#endif
  39159. - linux* | k*bsd*-gnu)
  39160. - case $cc_basename in
  39161. - icc* | ecc*)
  39162. - lt_prog_compiler_wl_F77='-Wl,'
  39163. - lt_prog_compiler_pic_F77='-KPIC'
  39164. - lt_prog_compiler_static_F77='-static'
  39165. - ;;
  39166. - pgcc* | pgf77* | pgf90* | pgf95*)
  39167. - # Portland Group compilers (*not* the Pentium gcc compiler,
  39168. - # which looks to be a dead project)
  39169. - lt_prog_compiler_wl_F77='-Wl,'
  39170. - lt_prog_compiler_pic_F77='-fpic'
  39171. - lt_prog_compiler_static_F77='-Bstatic'
  39172. - ;;
  39173. - ccc*)
  39174. - lt_prog_compiler_wl_F77='-Wl,'
  39175. - # All Alpha code is PIC.
  39176. - lt_prog_compiler_static_F77='-non_shared'
  39177. - ;;
  39178. - *)
  39179. - case `$CC -V 2>&1 | sed 5q` in
  39180. - *Sun\ C*)
  39181. - # Sun C 5.9
  39182. - lt_prog_compiler_pic_F77='-KPIC'
  39183. - lt_prog_compiler_static_F77='-Bstatic'
  39184. - lt_prog_compiler_wl_F77='-Wl,'
  39185. - ;;
  39186. - *Sun\ F*)
  39187. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  39188. - lt_prog_compiler_pic_F77='-KPIC'
  39189. - lt_prog_compiler_static_F77='-Bstatic'
  39190. - lt_prog_compiler_wl_F77=''
  39191. - ;;
  39192. - esac
  39193. - ;;
  39194. - esac
  39195. - ;;
  39196. +#include <stdio.h>
  39197. - osf3* | osf4* | osf5*)
  39198. - lt_prog_compiler_wl_F77='-Wl,'
  39199. - # All OSF/1 code is PIC.
  39200. - lt_prog_compiler_static_F77='-non_shared'
  39201. - ;;
  39202. +#ifdef RTLD_GLOBAL
  39203. +# define LT_DLGLOBAL RTLD_GLOBAL
  39204. +#else
  39205. +# ifdef DL_GLOBAL
  39206. +# define LT_DLGLOBAL DL_GLOBAL
  39207. +# else
  39208. +# define LT_DLGLOBAL 0
  39209. +# endif
  39210. +#endif
  39211. - rdos*)
  39212. - lt_prog_compiler_static_F77='-non_shared'
  39213. - ;;
  39214. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  39215. + find out it does not work in some platform. */
  39216. +#ifndef LT_DLLAZY_OR_NOW
  39217. +# ifdef RTLD_LAZY
  39218. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  39219. +# else
  39220. +# ifdef DL_LAZY
  39221. +# define LT_DLLAZY_OR_NOW DL_LAZY
  39222. +# else
  39223. +# ifdef RTLD_NOW
  39224. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  39225. +# else
  39226. +# ifdef DL_NOW
  39227. +# define LT_DLLAZY_OR_NOW DL_NOW
  39228. +# else
  39229. +# define LT_DLLAZY_OR_NOW 0
  39230. +# endif
  39231. +# endif
  39232. +# endif
  39233. +# endif
  39234. +#endif
  39235. - solaris*)
  39236. - lt_prog_compiler_pic_F77='-KPIC'
  39237. - lt_prog_compiler_static_F77='-Bstatic'
  39238. - case $cc_basename in
  39239. - f77* | f90* | f95*)
  39240. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  39241. - *)
  39242. - lt_prog_compiler_wl_F77='-Wl,';;
  39243. - esac
  39244. - ;;
  39245. +void fnord() { int i=42;}
  39246. +int main ()
  39247. +{
  39248. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  39249. + int status = $lt_dlunknown;
  39250. - sunos4*)
  39251. - lt_prog_compiler_wl_F77='-Qoption ld '
  39252. - lt_prog_compiler_pic_F77='-PIC'
  39253. - lt_prog_compiler_static_F77='-Bstatic'
  39254. - ;;
  39255. + if (self)
  39256. + {
  39257. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  39258. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  39259. + /* dlclose (self); */
  39260. + }
  39261. + else
  39262. + puts (dlerror ());
  39263. - sysv4 | sysv4.2uw2* | sysv4.3*)
  39264. - lt_prog_compiler_wl_F77='-Wl,'
  39265. - lt_prog_compiler_pic_F77='-KPIC'
  39266. - lt_prog_compiler_static_F77='-Bstatic'
  39267. - ;;
  39268. + return status;
  39269. +}
  39270. +_LT_EOF
  39271. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  39272. + (eval $ac_link) 2>&5
  39273. + ac_status=$?
  39274. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39275. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  39276. + (./conftest; exit; ) >&5 2>/dev/null
  39277. + lt_status=$?
  39278. + case x$lt_status in
  39279. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  39280. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  39281. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  39282. + esac
  39283. + else :
  39284. + # compilation failed
  39285. + lt_cv_dlopen_self_static=no
  39286. + fi
  39287. +fi
  39288. +rm -fr conftest*
  39289. - sysv4*MP*)
  39290. - if test -d /usr/nec ;then
  39291. - lt_prog_compiler_pic_F77='-Kconform_pic'
  39292. - lt_prog_compiler_static_F77='-Bstatic'
  39293. - fi
  39294. - ;;
  39295. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  39296. - lt_prog_compiler_wl_F77='-Wl,'
  39297. - lt_prog_compiler_pic_F77='-KPIC'
  39298. - lt_prog_compiler_static_F77='-Bstatic'
  39299. - ;;
  39300. +fi
  39301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  39302. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  39303. + fi
  39304. - unicos*)
  39305. - lt_prog_compiler_wl_F77='-Wl,'
  39306. - lt_prog_compiler_can_build_shared_F77=no
  39307. - ;;
  39308. + CPPFLAGS="$save_CPPFLAGS"
  39309. + LDFLAGS="$save_LDFLAGS"
  39310. + LIBS="$save_LIBS"
  39311. + ;;
  39312. + esac
  39313. - uts4*)
  39314. - lt_prog_compiler_pic_F77='-pic'
  39315. - lt_prog_compiler_static_F77='-Bstatic'
  39316. - ;;
  39317. + case $lt_cv_dlopen_self in
  39318. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  39319. + *) enable_dlopen_self=unknown ;;
  39320. + esac
  39321. - *)
  39322. - lt_prog_compiler_can_build_shared_F77=no
  39323. - ;;
  39324. - esac
  39325. - fi
  39326. + case $lt_cv_dlopen_self_static in
  39327. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  39328. + *) enable_dlopen_self_static=unknown ;;
  39329. + esac
  39330. +fi
  39331. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  39332. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  39333. -#
  39334. -# Check to make sure the PIC flag actually works.
  39335. -#
  39336. -if test -n "$lt_prog_compiler_pic_F77"; then
  39337. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  39338. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  39339. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  39340. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39341. -else
  39342. - lt_prog_compiler_pic_works_F77=no
  39343. - ac_outfile=conftest.$ac_objext
  39344. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  39345. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  39346. - # Insert the option either (1) after the last *FLAGS variable, or
  39347. - # (2) before a word containing "conftest.", or (3) at the end.
  39348. - # Note that $ac_compile itself does not contain backslashes and begins
  39349. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  39350. - # The option is referenced via a variable to avoid confusing sed.
  39351. - lt_compile=`echo "$ac_compile" | $SED \
  39352. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  39353. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  39354. - -e 's:$: $lt_compiler_flag:'`
  39355. - (eval echo "\"\$as_me:20202: $lt_compile\"" >&5)
  39356. - (eval "$lt_compile" 2>conftest.err)
  39357. - ac_status=$?
  39358. - cat conftest.err >&5
  39359. - echo "$as_me:20206: \$? = $ac_status" >&5
  39360. - if (exit $ac_status) && test -s "$ac_outfile"; then
  39361. - # The compiler can only warn and ignore the option if not recognized
  39362. - # So say no if there are warnings other than the usual output.
  39363. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  39364. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  39365. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  39366. - lt_prog_compiler_pic_works_F77=yes
  39367. - fi
  39368. - fi
  39369. - $rm conftest*
  39370. -fi
  39371. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  39372. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  39373. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  39374. - case $lt_prog_compiler_pic_F77 in
  39375. - "" | " "*) ;;
  39376. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  39377. - esac
  39378. -else
  39379. - lt_prog_compiler_pic_F77=
  39380. - lt_prog_compiler_can_build_shared_F77=no
  39381. -fi
  39382. -fi
  39383. -case $host_os in
  39384. - # For platforms which do not support PIC, -DPIC is meaningless:
  39385. - *djgpp*)
  39386. - lt_prog_compiler_pic_F77=
  39387. +
  39388. +
  39389. +
  39390. +
  39391. +
  39392. +
  39393. +
  39394. +
  39395. +
  39396. +
  39397. +
  39398. +striplib=
  39399. +old_striplib=
  39400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  39401. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  39402. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  39403. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  39404. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  39405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39406. +$as_echo "yes" >&6; }
  39407. +else
  39408. +# FIXME - insert some real tests, host_os isn't really good enough
  39409. + case $host_os in
  39410. + darwin*)
  39411. + if test -n "$STRIP" ; then
  39412. + striplib="$STRIP -x"
  39413. + old_striplib="$STRIP -S"
  39414. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39415. +$as_echo "yes" >&6; }
  39416. + else
  39417. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39418. +$as_echo "no" >&6; }
  39419. + fi
  39420. ;;
  39421. *)
  39422. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  39423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39424. +$as_echo "no" >&6; }
  39425. ;;
  39426. -esac
  39427. + esac
  39428. +fi
  39429. -#
  39430. -# Check to make sure the static flag actually works.
  39431. -#
  39432. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  39433. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  39434. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  39435. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  39436. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39437. -else
  39438. - lt_prog_compiler_static_works_F77=no
  39439. - save_LDFLAGS="$LDFLAGS"
  39440. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  39441. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  39442. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  39443. - # The linker can only warn and ignore the option if not recognized
  39444. - # So say no if there are warnings
  39445. - if test -s conftest.err; then
  39446. - # Append any errors to the config.log.
  39447. - cat conftest.err 1>&5
  39448. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  39449. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  39450. - if diff conftest.exp conftest.er2 >/dev/null; then
  39451. - lt_prog_compiler_static_works_F77=yes
  39452. - fi
  39453. - else
  39454. - lt_prog_compiler_static_works_F77=yes
  39455. - fi
  39456. - fi
  39457. - $rm conftest*
  39458. - LDFLAGS="$save_LDFLAGS"
  39459. -fi
  39460. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  39461. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  39462. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  39463. - :
  39464. -else
  39465. - lt_prog_compiler_static_F77=
  39466. -fi
  39467. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  39468. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  39469. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  39470. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39471. -else
  39472. - lt_cv_prog_compiler_c_o_F77=no
  39473. - $rm -r conftest 2>/dev/null
  39474. - mkdir conftest
  39475. - cd conftest
  39476. - mkdir out
  39477. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  39478. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  39479. - # Insert the option either (1) after the last *FLAGS variable, or
  39480. - # (2) before a word containing "conftest.", or (3) at the end.
  39481. - # Note that $ac_compile itself does not contain backslashes and begins
  39482. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  39483. - lt_compile=`echo "$ac_compile" | $SED \
  39484. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  39485. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  39486. - -e 's:$: $lt_compiler_flag:'`
  39487. - (eval echo "\"\$as_me:20306: $lt_compile\"" >&5)
  39488. - (eval "$lt_compile" 2>out/conftest.err)
  39489. - ac_status=$?
  39490. - cat out/conftest.err >&5
  39491. - echo "$as_me:20310: \$? = $ac_status" >&5
  39492. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  39493. - then
  39494. - # The compiler can only warn and ignore the option if not recognized
  39495. - # So say no if there are warnings
  39496. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  39497. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  39498. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  39499. - lt_cv_prog_compiler_c_o_F77=yes
  39500. - fi
  39501. - fi
  39502. - chmod u+w . 2>&5
  39503. - $rm conftest*
  39504. - # SGI C++ compiler will create directory out/ii_files/ for
  39505. - # template instantiation
  39506. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  39507. - $rm out/* && rmdir out
  39508. - cd ..
  39509. - rmdir conftest
  39510. - $rm conftest*
  39511. -fi
  39512. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  39513. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  39514. -hard_links="nottested"
  39515. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  39516. - # do not overwrite the value of need_locks provided by the user
  39517. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  39518. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  39519. - hard_links=yes
  39520. - $rm conftest*
  39521. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  39522. - touch conftest.a
  39523. - ln conftest.a conftest.b 2>&5 || hard_links=no
  39524. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  39525. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  39526. -echo "${ECHO_T}$hard_links" >&6; }
  39527. - if test "$hard_links" = no; then
  39528. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  39529. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  39530. - need_locks=warn
  39531. - fi
  39532. -else
  39533. - need_locks=no
  39534. -fi
  39535. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  39536. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  39537. - runpath_var=
  39538. - allow_undefined_flag_F77=
  39539. - enable_shared_with_static_runtimes_F77=no
  39540. - archive_cmds_F77=
  39541. - archive_expsym_cmds_F77=
  39542. - old_archive_From_new_cmds_F77=
  39543. - old_archive_from_expsyms_cmds_F77=
  39544. - export_dynamic_flag_spec_F77=
  39545. - whole_archive_flag_spec_F77=
  39546. - thread_safe_flag_spec_F77=
  39547. - hardcode_libdir_flag_spec_F77=
  39548. - hardcode_libdir_flag_spec_ld_F77=
  39549. - hardcode_libdir_separator_F77=
  39550. - hardcode_direct_F77=no
  39551. - hardcode_minus_L_F77=no
  39552. - hardcode_shlibpath_var_F77=unsupported
  39553. - link_all_deplibs_F77=unknown
  39554. - hardcode_automatic_F77=no
  39555. - module_cmds_F77=
  39556. - module_expsym_cmds_F77=
  39557. - always_export_symbols_F77=no
  39558. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  39559. - # include_expsyms should be a list of space-separated symbols to be *always*
  39560. - # included in the symbol list
  39561. - include_expsyms_F77=
  39562. - # exclude_expsyms can be an extended regexp of symbols to exclude
  39563. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  39564. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  39565. - # as well as any symbol that contains `d'.
  39566. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  39567. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  39568. - # platforms (ab)use it in PIC code, but their linkers get confused if
  39569. - # the symbol is explicitly referenced. Since portable code cannot
  39570. - # rely on this symbol name, it's probably fine to never include it in
  39571. - # preloaded symbol tables.
  39572. - extract_expsyms_cmds=
  39573. - # Just being paranoid about ensuring that cc_basename is set.
  39574. - for cc_temp in $compiler""; do
  39575. - case $cc_temp in
  39576. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  39577. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  39578. - \-*) ;;
  39579. - *) break;;
  39580. - esac
  39581. -done
  39582. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  39583. + # Report which library types will actually be built
  39584. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  39585. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  39586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  39587. +$as_echo "$can_build_shared" >&6; }
  39588. +
  39589. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  39590. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  39591. + test "$can_build_shared" = "no" && enable_shared=no
  39592. +
  39593. + # On AIX, shared libraries and static libraries use the same namespace, and
  39594. + # are all built from PIC.
  39595. case $host_os in
  39596. - cygwin* | mingw* | pw32*)
  39597. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  39598. - # When not using gcc, we currently assume that we are using
  39599. - # Microsoft Visual C++.
  39600. - if test "$GCC" != yes; then
  39601. - with_gnu_ld=no
  39602. + aix3*)
  39603. + test "$enable_shared" = yes && enable_static=no
  39604. + if test -n "$RANLIB"; then
  39605. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  39606. + postinstall_cmds='$RANLIB $lib'
  39607. fi
  39608. ;;
  39609. - interix*)
  39610. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  39611. - with_gnu_ld=yes
  39612. - ;;
  39613. - openbsd*)
  39614. - with_gnu_ld=no
  39615. +
  39616. + aix[4-9]*)
  39617. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  39618. + test "$enable_shared" = yes && enable_static=no
  39619. + fi
  39620. ;;
  39621. esac
  39622. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  39623. +$as_echo "$enable_shared" >&6; }
  39624. - ld_shlibs_F77=yes
  39625. - if test "$with_gnu_ld" = yes; then
  39626. - # If archive_cmds runs LD, not CC, wlarc should be empty
  39627. - wlarc='${wl}'
  39628. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  39629. +$as_echo_n "checking whether to build static libraries... " >&6; }
  39630. + # Make sure either enable_shared or enable_static is yes.
  39631. + test "$enable_shared" = yes || enable_static=yes
  39632. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  39633. +$as_echo "$enable_static" >&6; }
  39634. - # Set some defaults for GNU ld with shared library support. These
  39635. - # are reset later if shared libraries are not supported. Putting them
  39636. - # here allows them to be overridden if necessary.
  39637. - runpath_var=LD_RUN_PATH
  39638. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  39639. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  39640. - # ancient GNU ld didn't support --whole-archive et. al.
  39641. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  39642. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  39643. - else
  39644. - whole_archive_flag_spec_F77=
  39645. - fi
  39646. - supports_anon_versioning=no
  39647. - case `$LD -v 2>/dev/null` in
  39648. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  39649. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  39650. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  39651. - *\ 2.11.*) ;; # other 2.11 versions
  39652. - *) supports_anon_versioning=yes ;;
  39653. - esac
  39654. - # See if GNU ld supports shared libraries.
  39655. - case $host_os in
  39656. - aix3* | aix4* | aix5*)
  39657. - # On AIX/PPC, the GNU linker is very broken
  39658. - if test "$host_cpu" != ia64; then
  39659. - ld_shlibs_F77=no
  39660. - cat <<EOF 1>&2
  39661. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  39662. -*** to be unable to reliably create shared libraries on AIX.
  39663. -*** Therefore, libtool is disabling shared libraries support. If you
  39664. -*** really care for shared libraries, you may want to modify your PATH
  39665. -*** so that a non-GNU linker is found, and then restart.
  39666. -EOF
  39667. - fi
  39668. - ;;
  39669. +fi
  39670. +ac_ext=c
  39671. +ac_cpp='$CPP $CPPFLAGS'
  39672. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39673. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39674. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39675. - amigaos*)
  39676. - archive_cmds_F77='$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)'
  39677. - hardcode_libdir_flag_spec_F77='-L$libdir'
  39678. - hardcode_minus_L_F77=yes
  39679. +CC="$lt_save_CC"
  39680. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  39681. - # that the semantics of dynamic libraries on AmigaOS, at least up
  39682. - # to version 4, is to share data among multiple programs linked
  39683. - # with the same dynamic library. Since this doesn't match the
  39684. - # behavior of shared libraries on other platforms, we can't use
  39685. - # them.
  39686. - ld_shlibs_F77=no
  39687. - ;;
  39688. -
  39689. - beos*)
  39690. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39691. - allow_undefined_flag_F77=unsupported
  39692. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  39693. - # support --undefined. This deserves some investigation. FIXME
  39694. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39695. - else
  39696. - ld_shlibs_F77=no
  39697. - fi
  39698. - ;;
  39699. - cygwin* | mingw* | pw32*)
  39700. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  39701. - # as there is no search path for DLLs.
  39702. - hardcode_libdir_flag_spec_F77='-L$libdir'
  39703. - allow_undefined_flag_F77=unsupported
  39704. - always_export_symbols_F77=no
  39705. - enable_shared_with_static_runtimes_F77=yes
  39706. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  39707. +ac_ext=cpp
  39708. +ac_cpp='$CXXCPP $CPPFLAGS'
  39709. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39710. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39711. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39712. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  39713. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  39714. - # If the export-symbols file already is a .def file (1st line
  39715. - # is EXPORTS), use it as is; otherwise, prepend...
  39716. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  39717. - cp $export_symbols $output_objdir/$soname.def;
  39718. - else
  39719. - echo EXPORTS > $output_objdir/$soname.def;
  39720. - cat $export_symbols >> $output_objdir/$soname.def;
  39721. - fi~
  39722. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  39723. - else
  39724. - ld_shlibs_F77=no
  39725. - fi
  39726. - ;;
  39727. +archive_cmds_need_lc_CXX=no
  39728. +allow_undefined_flag_CXX=
  39729. +always_export_symbols_CXX=no
  39730. +archive_expsym_cmds_CXX=
  39731. +compiler_needs_object_CXX=no
  39732. +export_dynamic_flag_spec_CXX=
  39733. +hardcode_direct_CXX=no
  39734. +hardcode_direct_absolute_CXX=no
  39735. +hardcode_libdir_flag_spec_CXX=
  39736. +hardcode_libdir_flag_spec_ld_CXX=
  39737. +hardcode_libdir_separator_CXX=
  39738. +hardcode_minus_L_CXX=no
  39739. +hardcode_shlibpath_var_CXX=unsupported
  39740. +hardcode_automatic_CXX=no
  39741. +inherit_rpath_CXX=no
  39742. +module_cmds_CXX=
  39743. +module_expsym_cmds_CXX=
  39744. +link_all_deplibs_CXX=unknown
  39745. +old_archive_cmds_CXX=$old_archive_cmds
  39746. +no_undefined_flag_CXX=
  39747. +whole_archive_flag_spec_CXX=
  39748. +enable_shared_with_static_runtimes_CXX=no
  39749. - interix[3-9]*)
  39750. - hardcode_direct_F77=no
  39751. - hardcode_shlibpath_var_F77=no
  39752. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  39753. - export_dynamic_flag_spec_F77='${wl}-E'
  39754. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  39755. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  39756. - # default) and relocated if they conflict, which is a slow very memory
  39757. - # consuming and fragmenting process. To avoid this, we pick a random,
  39758. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  39759. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  39760. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  39761. - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  39762. - ;;
  39763. +# Source file extension for C++ test sources.
  39764. +ac_ext=cpp
  39765. - gnu* | linux* | k*bsd*-gnu)
  39766. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39767. - tmp_addflag=
  39768. - case $cc_basename,$host_cpu in
  39769. - pgcc*) # Portland Group C compiler
  39770. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  39771. - tmp_addflag=' $pic_flag'
  39772. - ;;
  39773. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  39774. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  39775. - tmp_addflag=' $pic_flag -Mnomain' ;;
  39776. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  39777. - tmp_addflag=' -i_dynamic' ;;
  39778. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  39779. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  39780. - ifc* | ifort*) # Intel Fortran compiler
  39781. - tmp_addflag=' -nofor_main' ;;
  39782. - esac
  39783. - case `$CC -V 2>&1 | sed 5q` in
  39784. - *Sun\ C*) # Sun C 5.9
  39785. - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  39786. - tmp_sharedflag='-G' ;;
  39787. - *Sun\ F*) # Sun Fortran 8.3
  39788. - tmp_sharedflag='-G' ;;
  39789. - *)
  39790. - tmp_sharedflag='-shared' ;;
  39791. - esac
  39792. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39793. +# Object file extension for compiled C++ test sources.
  39794. +objext=o
  39795. +objext_CXX=$objext
  39796. - if test $supports_anon_versioning = yes; then
  39797. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  39798. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  39799. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  39800. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  39801. - fi
  39802. - else
  39803. - ld_shlibs_F77=no
  39804. - fi
  39805. - ;;
  39806. +# No sense in running all these tests if we already determined that
  39807. +# the CXX compiler isn't working. Some variables (like enable_shared)
  39808. +# are currently assumed to apply to all compilers on this platform,
  39809. +# and will be corrupted by setting them based on a non-working compiler.
  39810. +if test "$_lt_caught_CXX_error" != yes; then
  39811. + # Code to be used in simple compile tests
  39812. + lt_simple_compile_test_code="int some_variable = 0;"
  39813. - netbsd*)
  39814. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  39815. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  39816. - wlarc=
  39817. - else
  39818. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39819. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  39820. - fi
  39821. - ;;
  39822. + # Code to be used in simple link tests
  39823. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  39824. - solaris*)
  39825. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  39826. - ld_shlibs_F77=no
  39827. - cat <<EOF 1>&2
  39828. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  39829. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  39830. -*** create shared libraries on Solaris systems. Therefore, libtool
  39831. -*** is disabling shared libraries support. We urge you to upgrade GNU
  39832. -*** binutils to release 2.9.1 or newer. Another option is to modify
  39833. -*** your PATH or compiler configuration so that the native linker is
  39834. -*** used, and then restart.
  39835. -EOF
  39836. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39837. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39838. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  39839. - else
  39840. - ld_shlibs_F77=no
  39841. - fi
  39842. - ;;
  39843. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  39844. - case `$LD -v 2>&1` in
  39845. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  39846. - ld_shlibs_F77=no
  39847. - cat <<_LT_EOF 1>&2
  39848. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  39849. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  39850. -*** is disabling shared libraries support. We urge you to upgrade GNU
  39851. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  39852. -*** your PATH or compiler configuration so that the native linker is
  39853. -*** used, and then restart.
  39854. -_LT_EOF
  39855. - ;;
  39856. - *)
  39857. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39858. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  39859. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  39860. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  39861. - else
  39862. - ld_shlibs_F77=no
  39863. - fi
  39864. - ;;
  39865. - esac
  39866. - ;;
  39867. - sunos4*)
  39868. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39869. - wlarc=
  39870. - hardcode_direct_F77=yes
  39871. - hardcode_shlibpath_var_F77=no
  39872. - ;;
  39873. +# If no C compiler was specified, use CC.
  39874. +LTCC=${LTCC-"$CC"}
  39875. - *)
  39876. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39877. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39878. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  39879. - else
  39880. - ld_shlibs_F77=no
  39881. - fi
  39882. - ;;
  39883. - esac
  39884. +# If no C compiler flags were specified, use CFLAGS.
  39885. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  39886. - if test "$ld_shlibs_F77" = no; then
  39887. - runpath_var=
  39888. - hardcode_libdir_flag_spec_F77=
  39889. - export_dynamic_flag_spec_F77=
  39890. - whole_archive_flag_spec_F77=
  39891. - fi
  39892. - else
  39893. - # PORTME fill in a description of your system's linker (not GNU ld)
  39894. - case $host_os in
  39895. - aix3*)
  39896. - allow_undefined_flag_F77=unsupported
  39897. - always_export_symbols_F77=yes
  39898. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  39899. - # Note: this linker hardcodes the directories in LIBPATH if there
  39900. - # are no directories specified by -L.
  39901. - hardcode_minus_L_F77=yes
  39902. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  39903. - # Neither direct hardcoding nor static linking is supported with a
  39904. - # broken collect2.
  39905. - hardcode_direct_F77=unsupported
  39906. - fi
  39907. - ;;
  39908. +# Allow CC to be a program name with arguments.
  39909. +compiler=$CC
  39910. - aix4* | aix5*)
  39911. - if test "$host_cpu" = ia64; then
  39912. - # On IA64, the linker does run time linking by default, so we don't
  39913. - # have to do anything special.
  39914. - aix_use_runtimelinking=no
  39915. - exp_sym_flag='-Bexport'
  39916. - no_entry_flag=""
  39917. - else
  39918. - # If we're using GNU nm, then we don't want the "-C" option.
  39919. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  39920. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  39921. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  39922. - else
  39923. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  39924. - fi
  39925. - aix_use_runtimelinking=no
  39926. - # Test if we are trying to use run time linking or normal
  39927. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  39928. - # need to do runtime linking.
  39929. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  39930. - for ld_flag in $LDFLAGS; do
  39931. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  39932. - aix_use_runtimelinking=yes
  39933. - break
  39934. - fi
  39935. - done
  39936. - ;;
  39937. - esac
  39938. + # save warnings/boilerplate of simple test code
  39939. + ac_outfile=conftest.$ac_objext
  39940. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  39941. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  39942. +_lt_compiler_boilerplate=`cat conftest.err`
  39943. +$RM conftest*
  39944. - exp_sym_flag='-bexport'
  39945. - no_entry_flag='-bnoentry'
  39946. - fi
  39947. + ac_outfile=conftest.$ac_objext
  39948. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  39949. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  39950. +_lt_linker_boilerplate=`cat conftest.err`
  39951. +$RM -r conftest*
  39952. - # When large executables or shared objects are built, AIX ld can
  39953. - # have problems creating the table of contents. If linking a library
  39954. - # or program results in "error TOC overflow" add -mminimal-toc to
  39955. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  39956. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  39957. - archive_cmds_F77=''
  39958. - hardcode_direct_F77=yes
  39959. - hardcode_libdir_separator_F77=':'
  39960. - link_all_deplibs_F77=yes
  39961. + # Allow CC to be a program name with arguments.
  39962. + lt_save_CC=$CC
  39963. + lt_save_LD=$LD
  39964. + lt_save_GCC=$GCC
  39965. + GCC=$GXX
  39966. + lt_save_with_gnu_ld=$with_gnu_ld
  39967. + lt_save_path_LD=$lt_cv_path_LD
  39968. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  39969. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  39970. + else
  39971. + $as_unset lt_cv_prog_gnu_ld
  39972. + fi
  39973. + if test -n "${lt_cv_path_LDCXX+set}"; then
  39974. + lt_cv_path_LD=$lt_cv_path_LDCXX
  39975. + else
  39976. + $as_unset lt_cv_path_LD
  39977. + fi
  39978. + test -z "${LDCXX+set}" || LD=$LDCXX
  39979. + CC=${CXX-"c++"}
  39980. + compiler=$CC
  39981. + compiler_CXX=$CC
  39982. + for cc_temp in $compiler""; do
  39983. + case $cc_temp in
  39984. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  39985. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  39986. + \-*) ;;
  39987. + *) break;;
  39988. + esac
  39989. +done
  39990. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  39991. - if test "$GCC" = yes; then
  39992. - case $host_os in aix4.[012]|aix4.[012].*)
  39993. - # We only want to do this on AIX 4.2 and lower, the check
  39994. - # below for broken collect2 doesn't work under 4.3+
  39995. - collect2name=`${CC} -print-prog-name=collect2`
  39996. - if test -f "$collect2name" && \
  39997. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  39998. - then
  39999. - # We have reworked collect2
  40000. - :
  40001. - else
  40002. - # We have old collect2
  40003. - hardcode_direct_F77=unsupported
  40004. - # It fails to find uninstalled libraries when the uninstalled
  40005. - # path is not listed in the libpath. Setting hardcode_minus_L
  40006. - # to unsupported forces relinking
  40007. - hardcode_minus_L_F77=yes
  40008. - hardcode_libdir_flag_spec_F77='-L$libdir'
  40009. - hardcode_libdir_separator_F77=
  40010. - fi
  40011. - ;;
  40012. - esac
  40013. - shared_flag='-shared'
  40014. - if test "$aix_use_runtimelinking" = yes; then
  40015. - shared_flag="$shared_flag "'${wl}-G'
  40016. - fi
  40017. - else
  40018. - # not using gcc
  40019. - if test "$host_cpu" = ia64; then
  40020. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  40021. - # chokes on -Wl,-G. The following line is correct:
  40022. - shared_flag='-G'
  40023. - else
  40024. - if test "$aix_use_runtimelinking" = yes; then
  40025. - shared_flag='${wl}-G'
  40026. - else
  40027. - shared_flag='${wl}-bM:SRE'
  40028. - fi
  40029. - fi
  40030. - fi
  40031. - # It seems that -bexpall does not export symbols beginning with
  40032. - # underscore (_), so it is better to generate a list of symbols to export.
  40033. - always_export_symbols_F77=yes
  40034. - if test "$aix_use_runtimelinking" = yes; then
  40035. - # Warning - without using the other runtime loading flags (-brtl),
  40036. - # -berok will link without error, but may produce a broken library.
  40037. - allow_undefined_flag_F77='-berok'
  40038. - # Determine the default libpath from the value encoded in an empty executable.
  40039. - cat >conftest.$ac_ext <<_ACEOF
  40040. - program main
  40041. + if test -n "$compiler"; then
  40042. + # We don't want -fno-exception when compiling C++ code, so set the
  40043. + # no_builtin_flag separately
  40044. + if test "$GXX" = yes; then
  40045. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  40046. + else
  40047. + lt_prog_compiler_no_builtin_flag_CXX=
  40048. + fi
  40049. - end
  40050. -_ACEOF
  40051. -rm -f conftest.$ac_objext conftest$ac_exeext
  40052. -if { (ac_try="$ac_link"
  40053. -case "(($ac_try" in
  40054. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40055. - *) ac_try_echo=$ac_try;;
  40056. + if test "$GXX" = yes; then
  40057. + # Set up default GNU C++ configuration
  40058. +
  40059. +
  40060. +
  40061. +# Check whether --with-gnu-ld was given.
  40062. +if test "${with_gnu_ld+set}" = set; then :
  40063. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  40064. +else
  40065. + with_gnu_ld=no
  40066. +fi
  40067. +
  40068. +ac_prog=ld
  40069. +if test "$GCC" = yes; then
  40070. + # Check if gcc -print-prog-name=ld gives a path.
  40071. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  40072. +$as_echo_n "checking for ld used by $CC... " >&6; }
  40073. + case $host in
  40074. + *-*-mingw*)
  40075. + # gcc leaves a trailing carriage return which upsets mingw
  40076. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  40077. + *)
  40078. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  40079. + esac
  40080. + case $ac_prog in
  40081. + # Accept absolute paths.
  40082. + [\\/]* | ?:[\\/]*)
  40083. + re_direlt='/[^/][^/]*/\.\./'
  40084. + # Canonicalize the pathname of ld
  40085. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  40086. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  40087. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  40088. + done
  40089. + test -z "$LD" && LD="$ac_prog"
  40090. + ;;
  40091. + "")
  40092. + # If it fails, then pretend we aren't using GCC.
  40093. + ac_prog=ld
  40094. + ;;
  40095. + *)
  40096. + # If it is relative, then search for the first ld in PATH.
  40097. + with_gnu_ld=unknown
  40098. + ;;
  40099. + esac
  40100. +elif test "$with_gnu_ld" = yes; then
  40101. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  40102. +$as_echo_n "checking for GNU ld... " >&6; }
  40103. +else
  40104. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  40105. +$as_echo_n "checking for non-GNU ld... " >&6; }
  40106. +fi
  40107. +if test "${lt_cv_path_LD+set}" = set; then :
  40108. + $as_echo_n "(cached) " >&6
  40109. +else
  40110. + if test -z "$LD"; then
  40111. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  40112. + for ac_dir in $PATH; do
  40113. + IFS="$lt_save_ifs"
  40114. + test -z "$ac_dir" && ac_dir=.
  40115. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  40116. + lt_cv_path_LD="$ac_dir/$ac_prog"
  40117. + # Check to see if the program is GNU ld. I'd rather use --version,
  40118. + # but apparently some variants of GNU ld only accept -v.
  40119. + # Break only if it was the GNU/non-GNU ld that we prefer.
  40120. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  40121. + *GNU* | *'with BFD'*)
  40122. + test "$with_gnu_ld" != no && break
  40123. + ;;
  40124. + *)
  40125. + test "$with_gnu_ld" != yes && break
  40126. + ;;
  40127. + esac
  40128. + fi
  40129. + done
  40130. + IFS="$lt_save_ifs"
  40131. +else
  40132. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  40133. +fi
  40134. +fi
  40135. +
  40136. +LD="$lt_cv_path_LD"
  40137. +if test -n "$LD"; then
  40138. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  40139. +$as_echo "$LD" >&6; }
  40140. +else
  40141. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40142. +$as_echo "no" >&6; }
  40143. +fi
  40144. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  40145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  40146. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  40147. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  40148. + $as_echo_n "(cached) " >&6
  40149. +else
  40150. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  40151. +case `$LD -v 2>&1 </dev/null` in
  40152. +*GNU* | *'with BFD'*)
  40153. + lt_cv_prog_gnu_ld=yes
  40154. + ;;
  40155. +*)
  40156. + lt_cv_prog_gnu_ld=no
  40157. + ;;
  40158. esac
  40159. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40160. - (eval "$ac_link") 2>conftest.er1
  40161. - ac_status=$?
  40162. - grep -v '^ *+' conftest.er1 >conftest.err
  40163. - rm -f conftest.er1
  40164. - cat conftest.err >&5
  40165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40166. - (exit $ac_status); } && {
  40167. - test -z "$ac_f77_werror_flag" ||
  40168. - test ! -s conftest.err
  40169. - } && test -s conftest$ac_exeext &&
  40170. - $as_test_x conftest$ac_exeext; then
  40171. +fi
  40172. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  40173. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  40174. +with_gnu_ld=$lt_cv_prog_gnu_ld
  40175. +
  40176. +
  40177. +
  40178. +
  40179. +
  40180. +
  40181. +
  40182. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  40183. + # archiving commands below assume that GNU ld is being used.
  40184. + if test "$with_gnu_ld" = yes; then
  40185. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40186. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40187. +
  40188. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  40189. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  40190. +
  40191. + # If archive_cmds runs LD, not CC, wlarc should be empty
  40192. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  40193. + # investigate it a little bit more. (MM)
  40194. + wlarc='${wl}'
  40195. +
  40196. + # ancient GNU ld didn't support --whole-archive et. al.
  40197. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  40198. + $GREP 'no-whole-archive' > /dev/null; then
  40199. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  40200. + else
  40201. + whole_archive_flag_spec_CXX=
  40202. + fi
  40203. + else
  40204. + with_gnu_ld=no
  40205. + wlarc=
  40206. +
  40207. + # A generic and very simple default shared library creation
  40208. + # command for GNU C++ for the case where it uses the native
  40209. + # linker, instead of GNU ld. If possible, this setting should
  40210. + # overridden to take advantage of the native linker features on
  40211. + # the platform it is being used on.
  40212. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  40213. + fi
  40214. +
  40215. + # Commands to make compiler produce verbose output that lists
  40216. + # what "hidden" libraries, object files and flags are used when
  40217. + # linking a shared library.
  40218. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  40219. +
  40220. + else
  40221. + GXX=no
  40222. + with_gnu_ld=no
  40223. + wlarc=
  40224. + fi
  40225. +
  40226. + # PORTME: fill in a description of your system's C++ link characteristics
  40227. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  40228. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  40229. + ld_shlibs_CXX=yes
  40230. + case $host_os in
  40231. + aix3*)
  40232. + # FIXME: insert proper C++ library support
  40233. + ld_shlibs_CXX=no
  40234. + ;;
  40235. + aix[4-9]*)
  40236. + if test "$host_cpu" = ia64; then
  40237. + # On IA64, the linker does run time linking by default, so we don't
  40238. + # have to do anything special.
  40239. + aix_use_runtimelinking=no
  40240. + exp_sym_flag='-Bexport'
  40241. + no_entry_flag=""
  40242. + else
  40243. + aix_use_runtimelinking=no
  40244. +
  40245. + # Test if we are trying to use run time linking or normal
  40246. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  40247. + # need to do runtime linking.
  40248. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  40249. + for ld_flag in $LDFLAGS; do
  40250. + case $ld_flag in
  40251. + *-brtl*)
  40252. + aix_use_runtimelinking=yes
  40253. + break
  40254. + ;;
  40255. + esac
  40256. + done
  40257. + ;;
  40258. + esac
  40259. +
  40260. + exp_sym_flag='-bexport'
  40261. + no_entry_flag='-bnoentry'
  40262. + fi
  40263. +
  40264. + # When large executables or shared objects are built, AIX ld can
  40265. + # have problems creating the table of contents. If linking a library
  40266. + # or program results in "error TOC overflow" add -mminimal-toc to
  40267. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  40268. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  40269. +
  40270. + archive_cmds_CXX=''
  40271. + hardcode_direct_CXX=yes
  40272. + hardcode_direct_absolute_CXX=yes
  40273. + hardcode_libdir_separator_CXX=':'
  40274. + link_all_deplibs_CXX=yes
  40275. + file_list_spec_CXX='${wl}-f,'
  40276. +
  40277. + if test "$GXX" = yes; then
  40278. + case $host_os in aix4.[012]|aix4.[012].*)
  40279. + # We only want to do this on AIX 4.2 and lower, the check
  40280. + # below for broken collect2 doesn't work under 4.3+
  40281. + collect2name=`${CC} -print-prog-name=collect2`
  40282. + if test -f "$collect2name" &&
  40283. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  40284. + then
  40285. + # We have reworked collect2
  40286. + :
  40287. + else
  40288. + # We have old collect2
  40289. + hardcode_direct_CXX=unsupported
  40290. + # It fails to find uninstalled libraries when the uninstalled
  40291. + # path is not listed in the libpath. Setting hardcode_minus_L
  40292. + # to unsupported forces relinking
  40293. + hardcode_minus_L_CXX=yes
  40294. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  40295. + hardcode_libdir_separator_CXX=
  40296. + fi
  40297. + esac
  40298. + shared_flag='-shared'
  40299. + if test "$aix_use_runtimelinking" = yes; then
  40300. + shared_flag="$shared_flag "'${wl}-G'
  40301. + fi
  40302. + else
  40303. + # not using gcc
  40304. + if test "$host_cpu" = ia64; then
  40305. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  40306. + # chokes on -Wl,-G. The following line is correct:
  40307. + shared_flag='-G'
  40308. + else
  40309. + if test "$aix_use_runtimelinking" = yes; then
  40310. + shared_flag='${wl}-G'
  40311. + else
  40312. + shared_flag='${wl}-bM:SRE'
  40313. + fi
  40314. + fi
  40315. + fi
  40316. +
  40317. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  40318. + # It seems that -bexpall does not export symbols beginning with
  40319. + # underscore (_), so it is better to generate a list of symbols to
  40320. + # export.
  40321. + always_export_symbols_CXX=yes
  40322. + if test "$aix_use_runtimelinking" = yes; then
  40323. + # Warning - without using the other runtime loading flags (-brtl),
  40324. + # -berok will link without error, but may produce a broken library.
  40325. + allow_undefined_flag_CXX='-berok'
  40326. + # Determine the default libpath from the value encoded in an empty
  40327. + # executable.
  40328. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40329. +/* end confdefs.h. */
  40330. +
  40331. +int
  40332. +main ()
  40333. +{
  40334. +
  40335. + ;
  40336. + return 0;
  40337. +}
  40338. +_ACEOF
  40339. +if ac_fn_cxx_try_link "$LINENO"; then :
  40340. lt_aix_libpath_sed='
  40341. /Import File Strings/,/^$/ {
  40342. @@ -20800,49 +18742,34 @@
  40343. if test -z "$aix_libpath"; then
  40344. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  40345. fi
  40346. -else
  40347. - echo "$as_me: failed program was:" >&5
  40348. -sed 's/^/| /' conftest.$ac_ext >&5
  40349. -
  40350. -
  40351. fi
  40352. -
  40353. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40354. - conftest$ac_exeext conftest.$ac_ext
  40355. +rm -f core conftest.err conftest.$ac_objext \
  40356. + conftest$ac_exeext conftest.$ac_ext
  40357. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  40358. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  40359. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  40360. - else
  40361. - if test "$host_cpu" = ia64; then
  40362. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  40363. - allow_undefined_flag_F77="-z nodefs"
  40364. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  40365. - else
  40366. - # Determine the default libpath from the value encoded in an empty executable.
  40367. - cat >conftest.$ac_ext <<_ACEOF
  40368. - program main
  40369. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  40370. - end
  40371. + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  40372. + else
  40373. + if test "$host_cpu" = ia64; then
  40374. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  40375. + allow_undefined_flag_CXX="-z nodefs"
  40376. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  40377. + else
  40378. + # Determine the default libpath from the value encoded in an
  40379. + # empty executable.
  40380. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40381. +/* end confdefs.h. */
  40382. +
  40383. +int
  40384. +main ()
  40385. +{
  40386. +
  40387. + ;
  40388. + return 0;
  40389. +}
  40390. _ACEOF
  40391. -rm -f conftest.$ac_objext conftest$ac_exeext
  40392. -if { (ac_try="$ac_link"
  40393. -case "(($ac_try" in
  40394. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40395. - *) ac_try_echo=$ac_try;;
  40396. -esac
  40397. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40398. - (eval "$ac_link") 2>conftest.er1
  40399. - ac_status=$?
  40400. - grep -v '^ *+' conftest.er1 >conftest.err
  40401. - rm -f conftest.er1
  40402. - cat conftest.err >&5
  40403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40404. - (exit $ac_status); } && {
  40405. - test -z "$ac_f77_werror_flag" ||
  40406. - test ! -s conftest.err
  40407. - } && test -s conftest$ac_exeext &&
  40408. - $as_test_x conftest$ac_exeext; then
  40409. +if ac_fn_cxx_try_link "$LINENO"; then :
  40410. lt_aix_libpath_sed='
  40411. /Import File Strings/,/^$/ {
  40412. @@ -20856,3080 +18783,1566 @@
  40413. if test -z "$aix_libpath"; then
  40414. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  40415. fi
  40416. -else
  40417. - echo "$as_me: failed program was:" >&5
  40418. -sed 's/^/| /' conftest.$ac_ext >&5
  40419. -
  40420. -
  40421. fi
  40422. -
  40423. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40424. - conftest$ac_exeext conftest.$ac_ext
  40425. +rm -f core conftest.err conftest.$ac_objext \
  40426. + conftest$ac_exeext conftest.$ac_ext
  40427. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  40428. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  40429. - # Warning - without using the other run time loading flags,
  40430. - # -berok will link without error, but may produce a broken library.
  40431. - no_undefined_flag_F77=' ${wl}-bernotok'
  40432. - allow_undefined_flag_F77=' ${wl}-berok'
  40433. - # Exported symbols can be pulled into shared objects from archives
  40434. - whole_archive_flag_spec_F77='$convenience'
  40435. - archive_cmds_need_lc_F77=yes
  40436. - # This is similar to how AIX traditionally builds its shared libraries.
  40437. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  40438. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  40439. + # Warning - without using the other run time loading flags,
  40440. + # -berok will link without error, but may produce a broken library.
  40441. + no_undefined_flag_CXX=' ${wl}-bernotok'
  40442. + allow_undefined_flag_CXX=' ${wl}-berok'
  40443. + # Exported symbols can be pulled into shared objects from archives
  40444. + whole_archive_flag_spec_CXX='$convenience'
  40445. + archive_cmds_need_lc_CXX=yes
  40446. + # This is similar to how AIX traditionally builds its shared
  40447. + # libraries.
  40448. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  40449. + fi
  40450. + fi
  40451. + ;;
  40452. +
  40453. + beos*)
  40454. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  40455. + allow_undefined_flag_CXX=unsupported
  40456. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  40457. + # support --undefined. This deserves some investigation. FIXME
  40458. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40459. + else
  40460. + ld_shlibs_CXX=no
  40461. fi
  40462. - fi
  40463. - ;;
  40464. + ;;
  40465. - amigaos*)
  40466. - archive_cmds_F77='$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)'
  40467. - hardcode_libdir_flag_spec_F77='-L$libdir'
  40468. - hardcode_minus_L_F77=yes
  40469. - # see comment about different semantics on the GNU ld section
  40470. - ld_shlibs_F77=no
  40471. - ;;
  40472. + chorus*)
  40473. + case $cc_basename in
  40474. + *)
  40475. + # FIXME: insert proper C++ library support
  40476. + ld_shlibs_CXX=no
  40477. + ;;
  40478. + esac
  40479. + ;;
  40480. - bsdi[45]*)
  40481. - export_dynamic_flag_spec_F77=-rdynamic
  40482. - ;;
  40483. + cygwin* | mingw* | pw32* | cegcc*)
  40484. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  40485. + # as there is no search path for DLLs.
  40486. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  40487. + allow_undefined_flag_CXX=unsupported
  40488. + always_export_symbols_CXX=no
  40489. + enable_shared_with_static_runtimes_CXX=yes
  40490. +
  40491. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  40492. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  40493. + # If the export-symbols file already is a .def file (1st line
  40494. + # is EXPORTS), use it as is; otherwise, prepend...
  40495. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  40496. + cp $export_symbols $output_objdir/$soname.def;
  40497. + else
  40498. + echo EXPORTS > $output_objdir/$soname.def;
  40499. + cat $export_symbols >> $output_objdir/$soname.def;
  40500. + fi~
  40501. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  40502. + else
  40503. + ld_shlibs_CXX=no
  40504. + fi
  40505. + ;;
  40506. + darwin* | rhapsody*)
  40507. - cygwin* | mingw* | pw32*)
  40508. - # When not using gcc, we currently assume that we are using
  40509. - # Microsoft Visual C++.
  40510. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  40511. - # no search path for DLLs.
  40512. - hardcode_libdir_flag_spec_F77=' '
  40513. - allow_undefined_flag_F77=unsupported
  40514. - # Tell ltmain to make .lib files, not .a files.
  40515. - libext=lib
  40516. - # Tell ltmain to make .dll files, not .so files.
  40517. - shrext_cmds=".dll"
  40518. - # FIXME: Setting linknames here is a bad hack.
  40519. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  40520. - # The linker will automatically build a .lib file if we build a DLL.
  40521. - old_archive_From_new_cmds_F77='true'
  40522. - # FIXME: Should let the user specify the lib program.
  40523. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  40524. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  40525. - enable_shared_with_static_runtimes_F77=yes
  40526. - ;;
  40527. - darwin* | rhapsody*)
  40528. - case $host_os in
  40529. - rhapsody* | darwin1.[012])
  40530. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  40531. - ;;
  40532. - *) # Darwin 1.3 on
  40533. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  40534. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  40535. - else
  40536. - case ${MACOSX_DEPLOYMENT_TARGET} in
  40537. - 10.[012])
  40538. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  40539. - ;;
  40540. - 10.*)
  40541. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  40542. - ;;
  40543. - esac
  40544. - fi
  40545. - ;;
  40546. - esac
  40547. - archive_cmds_need_lc_F77=no
  40548. - hardcode_direct_F77=no
  40549. - hardcode_automatic_F77=yes
  40550. - hardcode_shlibpath_var_F77=unsupported
  40551. - whole_archive_flag_spec_F77=''
  40552. - link_all_deplibs_F77=yes
  40553. - if test "$GCC" = yes ; then
  40554. - output_verbose_link_cmd='echo'
  40555. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  40556. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  40557. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  40558. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  40559. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  40560. - else
  40561. - case $cc_basename in
  40562. - xlc*)
  40563. - output_verbose_link_cmd='echo'
  40564. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  40565. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  40566. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  40567. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  40568. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  40569. - ;;
  40570. - *)
  40571. - ld_shlibs_F77=no
  40572. - ;;
  40573. - esac
  40574. + archive_cmds_need_lc_CXX=no
  40575. + hardcode_direct_CXX=no
  40576. + hardcode_automatic_CXX=yes
  40577. + hardcode_shlibpath_var_CXX=unsupported
  40578. + whole_archive_flag_spec_CXX=''
  40579. + link_all_deplibs_CXX=yes
  40580. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  40581. + case $cc_basename in
  40582. + ifort*) _lt_dar_can_shared=yes ;;
  40583. + *) _lt_dar_can_shared=$GCC ;;
  40584. + esac
  40585. + if test "$_lt_dar_can_shared" = "yes"; then
  40586. + output_verbose_link_cmd=echo
  40587. + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  40588. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  40589. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  40590. + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  40591. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  40592. + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  40593. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  40594. fi
  40595. - ;;
  40596. - dgux*)
  40597. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  40598. - hardcode_libdir_flag_spec_F77='-L$libdir'
  40599. - hardcode_shlibpath_var_F77=no
  40600. - ;;
  40601. + else
  40602. + ld_shlibs_CXX=no
  40603. + fi
  40604. - freebsd1*)
  40605. - ld_shlibs_F77=no
  40606. - ;;
  40607. + ;;
  40608. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  40609. - # support. Future versions do this automatically, but an explicit c++rt0.o
  40610. - # does not break anything, and helps significantly (at the cost of a little
  40611. - # extra space).
  40612. - freebsd2.2*)
  40613. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  40614. - hardcode_libdir_flag_spec_F77='-R$libdir'
  40615. - hardcode_direct_F77=yes
  40616. - hardcode_shlibpath_var_F77=no
  40617. - ;;
  40618. + dgux*)
  40619. + case $cc_basename in
  40620. + ec++*)
  40621. + # FIXME: insert proper C++ library support
  40622. + ld_shlibs_CXX=no
  40623. + ;;
  40624. + ghcx*)
  40625. + # Green Hills C++ Compiler
  40626. + # FIXME: insert proper C++ library support
  40627. + ld_shlibs_CXX=no
  40628. + ;;
  40629. + *)
  40630. + # FIXME: insert proper C++ library support
  40631. + ld_shlibs_CXX=no
  40632. + ;;
  40633. + esac
  40634. + ;;
  40635. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  40636. - freebsd2*)
  40637. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  40638. - hardcode_direct_F77=yes
  40639. - hardcode_minus_L_F77=yes
  40640. - hardcode_shlibpath_var_F77=no
  40641. - ;;
  40642. + freebsd[12]*)
  40643. + # C++ shared libraries reported to be fairly broken before
  40644. + # switch to ELF
  40645. + ld_shlibs_CXX=no
  40646. + ;;
  40647. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  40648. - freebsd* | dragonfly*)
  40649. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  40650. - hardcode_libdir_flag_spec_F77='-R$libdir'
  40651. - hardcode_direct_F77=yes
  40652. - hardcode_shlibpath_var_F77=no
  40653. - ;;
  40654. + freebsd-elf*)
  40655. + archive_cmds_need_lc_CXX=no
  40656. + ;;
  40657. - hpux9*)
  40658. - if test "$GCC" = yes; then
  40659. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  40660. - else
  40661. - archive_cmds_F77='$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'
  40662. - fi
  40663. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  40664. - hardcode_libdir_separator_F77=:
  40665. - hardcode_direct_F77=yes
  40666. + freebsd* | dragonfly*)
  40667. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  40668. + # conventions
  40669. + ld_shlibs_CXX=yes
  40670. + ;;
  40671. - # hardcode_minus_L: Not really in the search PATH,
  40672. - # but as the default location of the library.
  40673. - hardcode_minus_L_F77=yes
  40674. - export_dynamic_flag_spec_F77='${wl}-E'
  40675. - ;;
  40676. + gnu*)
  40677. + ;;
  40678. - hpux10*)
  40679. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  40680. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  40681. - else
  40682. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  40683. - fi
  40684. - if test "$with_gnu_ld" = no; then
  40685. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  40686. - hardcode_libdir_separator_F77=:
  40687. + hpux9*)
  40688. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  40689. + hardcode_libdir_separator_CXX=:
  40690. + export_dynamic_flag_spec_CXX='${wl}-E'
  40691. + hardcode_direct_CXX=yes
  40692. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  40693. + # but as the default
  40694. + # location of the library.
  40695. +
  40696. + case $cc_basename in
  40697. + CC*)
  40698. + # FIXME: insert proper C++ library support
  40699. + ld_shlibs_CXX=no
  40700. + ;;
  40701. + aCC*)
  40702. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  40703. + # Commands to make compiler produce verbose output that lists
  40704. + # what "hidden" libraries, object files and flags are used when
  40705. + # linking a shared library.
  40706. + #
  40707. + # There doesn't appear to be a way to prevent this compiler from
  40708. + # explicitly linking system object files so we need to strip them
  40709. + # from the output so that they don't get included in the library
  40710. + # dependencies.
  40711. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  40712. + ;;
  40713. + *)
  40714. + if test "$GXX" = yes; then
  40715. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  40716. + else
  40717. + # FIXME: insert proper C++ library support
  40718. + ld_shlibs_CXX=no
  40719. + fi
  40720. + ;;
  40721. + esac
  40722. + ;;
  40723. - hardcode_direct_F77=yes
  40724. - export_dynamic_flag_spec_F77='${wl}-E'
  40725. + hpux10*|hpux11*)
  40726. + if test $with_gnu_ld = no; then
  40727. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  40728. + hardcode_libdir_separator_CXX=:
  40729. - # hardcode_minus_L: Not really in the search PATH,
  40730. - # but as the default location of the library.
  40731. - hardcode_minus_L_F77=yes
  40732. - fi
  40733. - ;;
  40734. + case $host_cpu in
  40735. + hppa*64*|ia64*)
  40736. + ;;
  40737. + *)
  40738. + export_dynamic_flag_spec_CXX='${wl}-E'
  40739. + ;;
  40740. + esac
  40741. + fi
  40742. + case $host_cpu in
  40743. + hppa*64*|ia64*)
  40744. + hardcode_direct_CXX=no
  40745. + hardcode_shlibpath_var_CXX=no
  40746. + ;;
  40747. + *)
  40748. + hardcode_direct_CXX=yes
  40749. + hardcode_direct_absolute_CXX=yes
  40750. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  40751. + # but as the default
  40752. + # location of the library.
  40753. + ;;
  40754. + esac
  40755. - hpux11*)
  40756. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  40757. - case $host_cpu in
  40758. - hppa*64*)
  40759. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40760. - ;;
  40761. - ia64*)
  40762. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  40763. - ;;
  40764. - *)
  40765. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  40766. - ;;
  40767. - esac
  40768. - else
  40769. - case $host_cpu in
  40770. - hppa*64*)
  40771. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40772. - ;;
  40773. - ia64*)
  40774. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  40775. - ;;
  40776. - *)
  40777. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  40778. - ;;
  40779. + case $cc_basename in
  40780. + CC*)
  40781. + # FIXME: insert proper C++ library support
  40782. + ld_shlibs_CXX=no
  40783. + ;;
  40784. + aCC*)
  40785. + case $host_cpu in
  40786. + hppa*64*)
  40787. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40788. + ;;
  40789. + ia64*)
  40790. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40791. + ;;
  40792. + *)
  40793. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40794. + ;;
  40795. + esac
  40796. + # Commands to make compiler produce verbose output that lists
  40797. + # what "hidden" libraries, object files and flags are used when
  40798. + # linking a shared library.
  40799. + #
  40800. + # There doesn't appear to be a way to prevent this compiler from
  40801. + # explicitly linking system object files so we need to strip them
  40802. + # from the output so that they don't get included in the library
  40803. + # dependencies.
  40804. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  40805. + ;;
  40806. + *)
  40807. + if test "$GXX" = yes; then
  40808. + if test $with_gnu_ld = no; then
  40809. + case $host_cpu in
  40810. + hppa*64*)
  40811. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40812. + ;;
  40813. + ia64*)
  40814. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40815. + ;;
  40816. + *)
  40817. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40818. + ;;
  40819. + esac
  40820. + fi
  40821. + else
  40822. + # FIXME: insert proper C++ library support
  40823. + ld_shlibs_CXX=no
  40824. + fi
  40825. + ;;
  40826. + esac
  40827. + ;;
  40828. +
  40829. + interix[3-9]*)
  40830. + hardcode_direct_CXX=no
  40831. + hardcode_shlibpath_var_CXX=no
  40832. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  40833. + export_dynamic_flag_spec_CXX='${wl}-E'
  40834. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  40835. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  40836. + # default) and relocated if they conflict, which is a slow very memory
  40837. + # consuming and fragmenting process. To avoid this, we pick a random,
  40838. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  40839. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  40840. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  40841. + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  40842. + ;;
  40843. + irix5* | irix6*)
  40844. + case $cc_basename in
  40845. + CC*)
  40846. + # SGI C++
  40847. + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  40848. +
  40849. + # Archives containing C++ object files must be created using
  40850. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  40851. + # necessary to make sure instantiated templates are included
  40852. + # in the archive.
  40853. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  40854. + ;;
  40855. + *)
  40856. + if test "$GXX" = yes; then
  40857. + if test "$with_gnu_ld" = no; then
  40858. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  40859. + else
  40860. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  40861. + fi
  40862. + fi
  40863. + link_all_deplibs_CXX=yes
  40864. + ;;
  40865. + esac
  40866. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  40867. + hardcode_libdir_separator_CXX=:
  40868. + inherit_rpath_CXX=yes
  40869. + ;;
  40870. +
  40871. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  40872. + case $cc_basename in
  40873. + KCC*)
  40874. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  40875. +
  40876. + # KCC will only create a shared library if the output file
  40877. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  40878. + # to its proper name (with version) after linking.
  40879. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  40880. + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  40881. + # Commands to make compiler produce verbose output that lists
  40882. + # what "hidden" libraries, object files and flags are used when
  40883. + # linking a shared library.
  40884. + #
  40885. + # There doesn't appear to be a way to prevent this compiler from
  40886. + # explicitly linking system object files so we need to strip them
  40887. + # from the output so that they don't get included in the library
  40888. + # dependencies.
  40889. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  40890. +
  40891. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  40892. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  40893. +
  40894. + # Archives containing C++ object files must be created using
  40895. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  40896. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  40897. + ;;
  40898. + icpc* | ecpc* )
  40899. + # Intel C++
  40900. + with_gnu_ld=yes
  40901. + # version 8.0 and above of icpc choke on multiply defined symbols
  40902. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  40903. + # earlier do not add the objects themselves.
  40904. + case `$CC -V 2>&1` in
  40905. + *"Version 7."*)
  40906. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40907. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40908. + ;;
  40909. + *) # Version 8.0 or newer
  40910. + tmp_idyn=
  40911. + case $host_cpu in
  40912. + ia64*) tmp_idyn=' -i_dynamic';;
  40913. + esac
  40914. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40915. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40916. + ;;
  40917. + esac
  40918. + archive_cmds_need_lc_CXX=no
  40919. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  40920. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  40921. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  40922. + ;;
  40923. + pgCC* | pgcpp*)
  40924. + # Portland Group C++ compiler
  40925. + case `$CC -V` in
  40926. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  40927. + prelink_cmds_CXX='tpldir=Template.dir~
  40928. + rm -rf $tpldir~
  40929. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  40930. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  40931. + old_archive_cmds_CXX='tpldir=Template.dir~
  40932. + rm -rf $tpldir~
  40933. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  40934. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  40935. + $RANLIB $oldlib'
  40936. + archive_cmds_CXX='tpldir=Template.dir~
  40937. + rm -rf $tpldir~
  40938. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  40939. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  40940. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  40941. + rm -rf $tpldir~
  40942. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  40943. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  40944. + ;;
  40945. + *) # Version 6 will use weak symbols
  40946. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  40947. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  40948. + ;;
  40949. + esac
  40950. +
  40951. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  40952. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  40953. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  40954. + ;;
  40955. + cxx*)
  40956. + # Compaq C++
  40957. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40958. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  40959. +
  40960. + runpath_var=LD_RUN_PATH
  40961. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  40962. + hardcode_libdir_separator_CXX=:
  40963. +
  40964. + # Commands to make compiler produce verbose output that lists
  40965. + # what "hidden" libraries, object files and flags are used when
  40966. + # linking a shared library.
  40967. + #
  40968. + # There doesn't appear to be a way to prevent this compiler from
  40969. + # explicitly linking system object files so we need to strip them
  40970. + # from the output so that they don't get included in the library
  40971. + # dependencies.
  40972. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  40973. + ;;
  40974. + xl*)
  40975. + # IBM XL 8.0 on PPC, with GNU ld
  40976. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  40977. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  40978. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40979. + if test "x$supports_anon_versioning" = xyes; then
  40980. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  40981. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  40982. + echo "local: *; };" >> $output_objdir/$libname.ver~
  40983. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  40984. + fi
  40985. + ;;
  40986. + *)
  40987. + case `$CC -V 2>&1 | sed 5q` in
  40988. + *Sun\ C*)
  40989. + # Sun C++ 5.9
  40990. + no_undefined_flag_CXX=' -zdefs'
  40991. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40992. + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  40993. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  40994. + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  40995. + compiler_needs_object_CXX=yes
  40996. +
  40997. + # Not sure whether something based on
  40998. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  40999. + # would be better.
  41000. + output_verbose_link_cmd='echo'
  41001. +
  41002. + # Archives containing C++ object files must be created using
  41003. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  41004. + # necessary to make sure instantiated templates are included
  41005. + # in the archive.
  41006. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  41007. + ;;
  41008. + esac
  41009. + ;;
  41010. esac
  41011. - fi
  41012. - if test "$with_gnu_ld" = no; then
  41013. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  41014. - hardcode_libdir_separator_F77=:
  41015. + ;;
  41016. - case $host_cpu in
  41017. - hppa*64*|ia64*)
  41018. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  41019. - hardcode_direct_F77=no
  41020. - hardcode_shlibpath_var_F77=no
  41021. - ;;
  41022. - *)
  41023. - hardcode_direct_F77=yes
  41024. - export_dynamic_flag_spec_F77='${wl}-E'
  41025. + lynxos*)
  41026. + # FIXME: insert proper C++ library support
  41027. + ld_shlibs_CXX=no
  41028. + ;;
  41029. - # hardcode_minus_L: Not really in the search PATH,
  41030. - # but as the default location of the library.
  41031. - hardcode_minus_L_F77=yes
  41032. - ;;
  41033. + m88k*)
  41034. + # FIXME: insert proper C++ library support
  41035. + ld_shlibs_CXX=no
  41036. + ;;
  41037. +
  41038. + mvs*)
  41039. + case $cc_basename in
  41040. + cxx*)
  41041. + # FIXME: insert proper C++ library support
  41042. + ld_shlibs_CXX=no
  41043. + ;;
  41044. + *)
  41045. + # FIXME: insert proper C++ library support
  41046. + ld_shlibs_CXX=no
  41047. + ;;
  41048. esac
  41049. - fi
  41050. - ;;
  41051. + ;;
  41052. - irix5* | irix6* | nonstopux*)
  41053. - if test "$GCC" = yes; then
  41054. - archive_cmds_F77='$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'
  41055. - else
  41056. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  41057. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  41058. - fi
  41059. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  41060. - hardcode_libdir_separator_F77=:
  41061. - link_all_deplibs_F77=yes
  41062. - ;;
  41063. + netbsd*)
  41064. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  41065. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  41066. + wlarc=
  41067. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  41068. + hardcode_direct_CXX=yes
  41069. + hardcode_shlibpath_var_CXX=no
  41070. + fi
  41071. + # Workaround some broken pre-1.5 toolchains
  41072. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  41073. + ;;
  41074. - netbsd*)
  41075. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  41076. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  41077. - else
  41078. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  41079. - fi
  41080. - hardcode_libdir_flag_spec_F77='-R$libdir'
  41081. - hardcode_direct_F77=yes
  41082. - hardcode_shlibpath_var_F77=no
  41083. - ;;
  41084. + *nto* | *qnx*)
  41085. + ld_shlibs_CXX=yes
  41086. + ;;
  41087. - newsos6)
  41088. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41089. - hardcode_direct_F77=yes
  41090. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  41091. - hardcode_libdir_separator_F77=:
  41092. - hardcode_shlibpath_var_F77=no
  41093. - ;;
  41094. + openbsd2*)
  41095. + # C++ shared libraries are fairly broken
  41096. + ld_shlibs_CXX=no
  41097. + ;;
  41098. - openbsd*)
  41099. - if test -f /usr/libexec/ld.so; then
  41100. - hardcode_direct_F77=yes
  41101. - hardcode_shlibpath_var_F77=no
  41102. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  41103. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  41104. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  41105. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  41106. - export_dynamic_flag_spec_F77='${wl}-E'
  41107. + openbsd*)
  41108. + if test -f /usr/libexec/ld.so; then
  41109. + hardcode_direct_CXX=yes
  41110. + hardcode_shlibpath_var_CXX=no
  41111. + hardcode_direct_absolute_CXX=yes
  41112. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  41113. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  41114. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  41115. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  41116. + export_dynamic_flag_spec_CXX='${wl}-E'
  41117. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  41118. + fi
  41119. + output_verbose_link_cmd=echo
  41120. else
  41121. - case $host_os in
  41122. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  41123. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41124. - hardcode_libdir_flag_spec_F77='-R$libdir'
  41125. - ;;
  41126. - *)
  41127. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  41128. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  41129. - ;;
  41130. - esac
  41131. - fi
  41132. - else
  41133. - ld_shlibs_F77=no
  41134. - fi
  41135. - ;;
  41136. + ld_shlibs_CXX=no
  41137. + fi
  41138. + ;;
  41139. - os2*)
  41140. - hardcode_libdir_flag_spec_F77='-L$libdir'
  41141. - hardcode_minus_L_F77=yes
  41142. - allow_undefined_flag_F77=unsupported
  41143. - archive_cmds_F77='$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'
  41144. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  41145. - ;;
  41146. + osf3* | osf4* | osf5*)
  41147. + case $cc_basename in
  41148. + KCC*)
  41149. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  41150. +
  41151. + # KCC will only create a shared library if the output file
  41152. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  41153. + # to its proper name (with version) after linking.
  41154. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  41155. +
  41156. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  41157. + hardcode_libdir_separator_CXX=:
  41158. +
  41159. + # Archives containing C++ object files must be created using
  41160. + # the KAI C++ compiler.
  41161. + case $host in
  41162. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  41163. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  41164. + esac
  41165. + ;;
  41166. + RCC*)
  41167. + # Rational C++ 2.4.1
  41168. + # FIXME: insert proper C++ library support
  41169. + ld_shlibs_CXX=no
  41170. + ;;
  41171. + cxx*)
  41172. + case $host in
  41173. + osf3*)
  41174. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  41175. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  41176. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  41177. + ;;
  41178. + *)
  41179. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  41180. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  41181. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  41182. + echo "-hidden">> $lib.exp~
  41183. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  41184. + $RM $lib.exp'
  41185. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  41186. + ;;
  41187. + esac
  41188. - osf3*)
  41189. - if test "$GCC" = yes; then
  41190. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  41191. - archive_cmds_F77='$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'
  41192. - else
  41193. - allow_undefined_flag_F77=' -expect_unresolved \*'
  41194. - archive_cmds_F77='$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'
  41195. - fi
  41196. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  41197. - hardcode_libdir_separator_F77=:
  41198. - ;;
  41199. + hardcode_libdir_separator_CXX=:
  41200. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  41201. - if test "$GCC" = yes; then
  41202. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  41203. - archive_cmds_F77='$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'
  41204. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  41205. - else
  41206. - allow_undefined_flag_F77=' -expect_unresolved \*'
  41207. - archive_cmds_F77='$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'
  41208. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  41209. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  41210. + # Commands to make compiler produce verbose output that lists
  41211. + # what "hidden" libraries, object files and flags are used when
  41212. + # linking a shared library.
  41213. + #
  41214. + # There doesn't appear to be a way to prevent this compiler from
  41215. + # explicitly linking system object files so we need to strip them
  41216. + # from the output so that they don't get included in the library
  41217. + # dependencies.
  41218. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  41219. + ;;
  41220. + *)
  41221. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  41222. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  41223. + case $host in
  41224. + osf3*)
  41225. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  41226. + ;;
  41227. + *)
  41228. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  41229. + ;;
  41230. + esac
  41231. +
  41232. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  41233. + hardcode_libdir_separator_CXX=:
  41234. +
  41235. + # Commands to make compiler produce verbose output that lists
  41236. + # what "hidden" libraries, object files and flags are used when
  41237. + # linking a shared library.
  41238. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  41239. +
  41240. + else
  41241. + # FIXME: insert proper C++ library support
  41242. + ld_shlibs_CXX=no
  41243. + fi
  41244. + ;;
  41245. + esac
  41246. + ;;
  41247. - # Both c and cxx compiler support -rpath directly
  41248. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  41249. - fi
  41250. - hardcode_libdir_separator_F77=:
  41251. - ;;
  41252. + psos*)
  41253. + # FIXME: insert proper C++ library support
  41254. + ld_shlibs_CXX=no
  41255. + ;;
  41256. - solaris*)
  41257. - no_undefined_flag_F77=' -z text'
  41258. - if test "$GCC" = yes; then
  41259. - wlarc='${wl}'
  41260. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41261. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  41262. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  41263. - else
  41264. - wlarc=''
  41265. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41266. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  41267. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  41268. - fi
  41269. - hardcode_libdir_flag_spec_F77='-R$libdir'
  41270. - hardcode_shlibpath_var_F77=no
  41271. - case $host_os in
  41272. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  41273. - *)
  41274. - # The compiler driver will combine and reorder linker options,
  41275. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  41276. - # but is careful enough not to reorder.
  41277. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  41278. - if test "$GCC" = yes; then
  41279. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  41280. - else
  41281. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  41282. - fi
  41283. - ;;
  41284. - esac
  41285. - link_all_deplibs_F77=yes
  41286. - ;;
  41287. + sunos4*)
  41288. + case $cc_basename in
  41289. + CC*)
  41290. + # Sun C++ 4.x
  41291. + # FIXME: insert proper C++ library support
  41292. + ld_shlibs_CXX=no
  41293. + ;;
  41294. + lcc*)
  41295. + # Lucid
  41296. + # FIXME: insert proper C++ library support
  41297. + ld_shlibs_CXX=no
  41298. + ;;
  41299. + *)
  41300. + # FIXME: insert proper C++ library support
  41301. + ld_shlibs_CXX=no
  41302. + ;;
  41303. + esac
  41304. + ;;
  41305. - sunos4*)
  41306. - if test "x$host_vendor" = xsequent; then
  41307. - # Use $CC to link under sequent, because it throws in some extra .o
  41308. - # files that make .init and .fini sections work.
  41309. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  41310. - else
  41311. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  41312. - fi
  41313. - hardcode_libdir_flag_spec_F77='-L$libdir'
  41314. - hardcode_direct_F77=yes
  41315. - hardcode_minus_L_F77=yes
  41316. - hardcode_shlibpath_var_F77=no
  41317. - ;;
  41318. + solaris*)
  41319. + case $cc_basename in
  41320. + CC*)
  41321. + # Sun C++ 4.2, 5.x and Centerline C++
  41322. + archive_cmds_need_lc_CXX=yes
  41323. + no_undefined_flag_CXX=' -zdefs'
  41324. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  41325. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  41326. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  41327. +
  41328. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  41329. + hardcode_shlibpath_var_CXX=no
  41330. + case $host_os in
  41331. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  41332. + *)
  41333. + # The compiler driver will combine and reorder linker options,
  41334. + # but understands `-z linker_flag'.
  41335. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  41336. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  41337. + ;;
  41338. + esac
  41339. + link_all_deplibs_CXX=yes
  41340. - sysv4)
  41341. - case $host_vendor in
  41342. - sni)
  41343. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41344. - hardcode_direct_F77=yes # is this really true???
  41345. - ;;
  41346. - siemens)
  41347. - ## LD is ld it makes a PLAMLIB
  41348. - ## CC just makes a GrossModule.
  41349. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  41350. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  41351. - hardcode_direct_F77=no
  41352. - ;;
  41353. - motorola)
  41354. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41355. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  41356. - ;;
  41357. - esac
  41358. - runpath_var='LD_RUN_PATH'
  41359. - hardcode_shlibpath_var_F77=no
  41360. - ;;
  41361. + output_verbose_link_cmd='echo'
  41362. - sysv4.3*)
  41363. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41364. - hardcode_shlibpath_var_F77=no
  41365. - export_dynamic_flag_spec_F77='-Bexport'
  41366. - ;;
  41367. + # Archives containing C++ object files must be created using
  41368. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  41369. + # necessary to make sure instantiated templates are included
  41370. + # in the archive.
  41371. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  41372. + ;;
  41373. + gcx*)
  41374. + # Green Hills C++ Compiler
  41375. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  41376. - sysv4*MP*)
  41377. - if test -d /usr/nec; then
  41378. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41379. - hardcode_shlibpath_var_F77=no
  41380. - runpath_var=LD_RUN_PATH
  41381. - hardcode_runpath_var=yes
  41382. - ld_shlibs_F77=yes
  41383. - fi
  41384. - ;;
  41385. + # The C++ compiler must be used to create the archive.
  41386. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  41387. + ;;
  41388. + *)
  41389. + # GNU C++ compiler with Solaris linker
  41390. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  41391. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  41392. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  41393. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  41394. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  41395. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  41396. +
  41397. + # Commands to make compiler produce verbose output that lists
  41398. + # what "hidden" libraries, object files and flags are used when
  41399. + # linking a shared library.
  41400. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  41401. + else
  41402. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  41403. + # platform.
  41404. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  41405. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  41406. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  41407. +
  41408. + # Commands to make compiler produce verbose output that lists
  41409. + # what "hidden" libraries, object files and flags are used when
  41410. + # linking a shared library.
  41411. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  41412. + fi
  41413. +
  41414. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  41415. + case $host_os in
  41416. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  41417. + *)
  41418. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  41419. + ;;
  41420. + esac
  41421. + fi
  41422. + ;;
  41423. + esac
  41424. + ;;
  41425. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  41426. - no_undefined_flag_F77='${wl}-z,text'
  41427. - archive_cmds_need_lc_F77=no
  41428. - hardcode_shlibpath_var_F77=no
  41429. + no_undefined_flag_CXX='${wl}-z,text'
  41430. + archive_cmds_need_lc_CXX=no
  41431. + hardcode_shlibpath_var_CXX=no
  41432. runpath_var='LD_RUN_PATH'
  41433. - if test "$GCC" = yes; then
  41434. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41435. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41436. - else
  41437. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41438. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41439. - fi
  41440. + case $cc_basename in
  41441. + CC*)
  41442. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41443. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41444. + ;;
  41445. + *)
  41446. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41447. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41448. + ;;
  41449. + esac
  41450. ;;
  41451. - sysv5* | sco3.2v5* | sco5v6*)
  41452. - # Note: We can NOT use -z defs as we might desire, because we do not
  41453. - # link with -lc, and that would cause any symbols used from libc to
  41454. - # always be unresolved, which means just about no library would
  41455. - # ever link correctly. If we're not using GNU ld we use -z text
  41456. - # though, which does catch some bad symbols but isn't as heavy-handed
  41457. - # as -z defs.
  41458. - no_undefined_flag_F77='${wl}-z,text'
  41459. - allow_undefined_flag_F77='${wl}-z,nodefs'
  41460. - archive_cmds_need_lc_F77=no
  41461. - hardcode_shlibpath_var_F77=no
  41462. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  41463. - hardcode_libdir_separator_F77=':'
  41464. - link_all_deplibs_F77=yes
  41465. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  41466. - runpath_var='LD_RUN_PATH'
  41467. + sysv5* | sco3.2v5* | sco5v6*)
  41468. + # Note: We can NOT use -z defs as we might desire, because we do not
  41469. + # link with -lc, and that would cause any symbols used from libc to
  41470. + # always be unresolved, which means just about no library would
  41471. + # ever link correctly. If we're not using GNU ld we use -z text
  41472. + # though, which does catch some bad symbols but isn't as heavy-handed
  41473. + # as -z defs.
  41474. + no_undefined_flag_CXX='${wl}-z,text'
  41475. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  41476. + archive_cmds_need_lc_CXX=no
  41477. + hardcode_shlibpath_var_CXX=no
  41478. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  41479. + hardcode_libdir_separator_CXX=':'
  41480. + link_all_deplibs_CXX=yes
  41481. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  41482. + runpath_var='LD_RUN_PATH'
  41483. - if test "$GCC" = yes; then
  41484. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41485. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41486. - else
  41487. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41488. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41489. - fi
  41490. + case $cc_basename in
  41491. + CC*)
  41492. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41493. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41494. + ;;
  41495. + *)
  41496. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41497. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  41498. + ;;
  41499. + esac
  41500. ;;
  41501. - uts4*)
  41502. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41503. - hardcode_libdir_flag_spec_F77='-L$libdir'
  41504. - hardcode_shlibpath_var_F77=no
  41505. - ;;
  41506. + tandem*)
  41507. + case $cc_basename in
  41508. + NCC*)
  41509. + # NonStop-UX NCC 3.20
  41510. + # FIXME: insert proper C++ library support
  41511. + ld_shlibs_CXX=no
  41512. + ;;
  41513. + *)
  41514. + # FIXME: insert proper C++ library support
  41515. + ld_shlibs_CXX=no
  41516. + ;;
  41517. + esac
  41518. + ;;
  41519. - *)
  41520. - ld_shlibs_F77=no
  41521. - ;;
  41522. - esac
  41523. - fi
  41524. + vxworks*)
  41525. + # FIXME: insert proper C++ library support
  41526. + ld_shlibs_CXX=no
  41527. + ;;
  41528. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  41529. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  41530. -test "$ld_shlibs_F77" = no && can_build_shared=no
  41531. + *)
  41532. + # FIXME: insert proper C++ library support
  41533. + ld_shlibs_CXX=no
  41534. + ;;
  41535. + esac
  41536. -#
  41537. -# Do we need to explicitly link libc?
  41538. -#
  41539. -case "x$archive_cmds_need_lc_F77" in
  41540. -x|xyes)
  41541. - # Assume -lc should be added
  41542. - archive_cmds_need_lc_F77=yes
  41543. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  41544. +$as_echo "$ld_shlibs_CXX" >&6; }
  41545. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  41546. +
  41547. + GCC_CXX="$GXX"
  41548. + LD_CXX="$LD"
  41549. +
  41550. + ## CAVEAT EMPTOR:
  41551. + ## There is no encapsulation within the following macros, do not change
  41552. + ## the running order or otherwise move them around unless you know exactly
  41553. + ## what you are doing...
  41554. + # Dependencies to place before and after the object being linked:
  41555. +predep_objects_CXX=
  41556. +postdep_objects_CXX=
  41557. +predeps_CXX=
  41558. +postdeps_CXX=
  41559. +compiler_lib_search_path_CXX=
  41560. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  41561. - case $archive_cmds_F77 in
  41562. - *'~'*)
  41563. - # FIXME: we may have to deal with multi-command sequences.
  41564. - ;;
  41565. - '$CC '*)
  41566. - # Test whether the compiler implicitly links with -lc since on some
  41567. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  41568. - # to ld, don't add -lc before -lgcc.
  41569. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  41570. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  41571. - $rm conftest*
  41572. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41573. +cat > conftest.$ac_ext <<_LT_EOF
  41574. +class Foo
  41575. +{
  41576. +public:
  41577. + Foo (void) { a = 0; }
  41578. +private:
  41579. + int a;
  41580. +};
  41581. +_LT_EOF
  41582. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41583. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  41584. (eval $ac_compile) 2>&5
  41585. ac_status=$?
  41586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41587. - (exit $ac_status); } 2>conftest.err; then
  41588. - soname=conftest
  41589. - lib=conftest
  41590. - libobjs=conftest.$ac_objext
  41591. - deplibs=
  41592. - wl=$lt_prog_compiler_wl_F77
  41593. - pic_flag=$lt_prog_compiler_pic_F77
  41594. - compiler_flags=-v
  41595. - linker_flags=-v
  41596. - verstring=
  41597. - output_objdir=.
  41598. - libname=conftest
  41599. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  41600. - allow_undefined_flag_F77=
  41601. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  41602. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  41603. - ac_status=$?
  41604. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41605. - (exit $ac_status); }
  41606. - then
  41607. - archive_cmds_need_lc_F77=no
  41608. - else
  41609. - archive_cmds_need_lc_F77=yes
  41610. - fi
  41611. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  41612. - else
  41613. - cat conftest.err 1>&5
  41614. - fi
  41615. - $rm conftest*
  41616. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  41617. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  41618. - ;;
  41619. - esac
  41620. - fi
  41621. - ;;
  41622. -esac
  41623. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  41624. + test $ac_status = 0; }; then
  41625. + # Parse the compiler output and extract the necessary
  41626. + # objects, libraries and library flags.
  41627. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  41628. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  41629. -library_names_spec=
  41630. -libname_spec='lib$name'
  41631. -soname_spec=
  41632. -shrext_cmds=".so"
  41633. -postinstall_cmds=
  41634. -postuninstall_cmds=
  41635. -finish_cmds=
  41636. -finish_eval=
  41637. -shlibpath_var=
  41638. -shlibpath_overrides_runpath=unknown
  41639. -version_type=none
  41640. -dynamic_linker="$host_os ld.so"
  41641. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  41642. + # Sentinel used to keep track of whether or not we are before
  41643. + # the conftest object file.
  41644. + pre_test_object_deps_done=no
  41645. -need_lib_prefix=unknown
  41646. -hardcode_into_libs=no
  41647. + for p in `eval "$output_verbose_link_cmd"`; do
  41648. + case $p in
  41649. -# when you set need_version to no, make sure it does not cause -set_version
  41650. -# flags to be left without arguments
  41651. -need_version=unknown
  41652. + -L* | -R* | -l*)
  41653. + # Some compilers place space between "-{L,R}" and the path.
  41654. + # Remove the space.
  41655. + if test $p = "-L" ||
  41656. + test $p = "-R"; then
  41657. + prev=$p
  41658. + continue
  41659. + else
  41660. + prev=
  41661. + fi
  41662. -case $host_os in
  41663. -aix3*)
  41664. - version_type=linux
  41665. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  41666. - shlibpath_var=LIBPATH
  41667. + if test "$pre_test_object_deps_done" = no; then
  41668. + case $p in
  41669. + -L* | -R*)
  41670. + # Internal compiler library paths should come after those
  41671. + # provided the user. The postdeps already come after the
  41672. + # user supplied libs so there is no need to process them.
  41673. + if test -z "$compiler_lib_search_path_CXX"; then
  41674. + compiler_lib_search_path_CXX="${prev}${p}"
  41675. + else
  41676. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  41677. + fi
  41678. + ;;
  41679. + # The "-l" case would never come before the object being
  41680. + # linked, so don't bother handling this case.
  41681. + esac
  41682. + else
  41683. + if test -z "$postdeps_CXX"; then
  41684. + postdeps_CXX="${prev}${p}"
  41685. + else
  41686. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  41687. + fi
  41688. + fi
  41689. + ;;
  41690. - # AIX 3 has no versioning support, so we append a major version to the name.
  41691. - soname_spec='${libname}${release}${shared_ext}$major'
  41692. - ;;
  41693. + *.$objext)
  41694. + # This assumes that the test object file only shows up
  41695. + # once in the compiler output.
  41696. + if test "$p" = "conftest.$objext"; then
  41697. + pre_test_object_deps_done=yes
  41698. + continue
  41699. + fi
  41700. +
  41701. + if test "$pre_test_object_deps_done" = no; then
  41702. + if test -z "$predep_objects_CXX"; then
  41703. + predep_objects_CXX="$p"
  41704. + else
  41705. + predep_objects_CXX="$predep_objects_CXX $p"
  41706. + fi
  41707. + else
  41708. + if test -z "$postdep_objects_CXX"; then
  41709. + postdep_objects_CXX="$p"
  41710. + else
  41711. + postdep_objects_CXX="$postdep_objects_CXX $p"
  41712. + fi
  41713. + fi
  41714. + ;;
  41715. +
  41716. + *) ;; # Ignore the rest.
  41717. -aix4* | aix5*)
  41718. - version_type=linux
  41719. - need_lib_prefix=no
  41720. - need_version=no
  41721. - hardcode_into_libs=yes
  41722. - if test "$host_cpu" = ia64; then
  41723. - # AIX 5 supports IA64
  41724. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  41725. - shlibpath_var=LD_LIBRARY_PATH
  41726. - else
  41727. - # With GCC up to 2.95.x, collect2 would create an import file
  41728. - # for dependence libraries. The import file would start with
  41729. - # the line `#! .'. This would cause the generated library to
  41730. - # depend on `.', always an invalid library. This was fixed in
  41731. - # development snapshots of GCC prior to 3.0.
  41732. - case $host_os in
  41733. - aix4 | aix4.[01] | aix4.[01].*)
  41734. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  41735. - echo ' yes '
  41736. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  41737. - :
  41738. - else
  41739. - can_build_shared=no
  41740. - fi
  41741. - ;;
  41742. esac
  41743. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  41744. - # soname into executable. Probably we can add versioning support to
  41745. - # collect2, so additional links can be useful in future.
  41746. - if test "$aix_use_runtimelinking" = yes; then
  41747. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  41748. - # instead of lib<name>.a to let people know that these are not
  41749. - # typical AIX shared libraries.
  41750. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41751. - else
  41752. - # We preserve .a as extension for shared libraries through AIX4.2
  41753. - # and later when we are not doing run time linking.
  41754. - library_names_spec='${libname}${release}.a $libname.a'
  41755. - soname_spec='${libname}${release}${shared_ext}$major'
  41756. - fi
  41757. - shlibpath_var=LIBPATH
  41758. - fi
  41759. - ;;
  41760. + done
  41761. -amigaos*)
  41762. - library_names_spec='$libname.ixlibrary $libname.a'
  41763. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  41764. - 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'
  41765. - ;;
  41766. + # Clean up.
  41767. + rm -f a.out a.exe
  41768. +else
  41769. + echo "libtool.m4: error: problem compiling CXX test program"
  41770. +fi
  41771. -beos*)
  41772. - library_names_spec='${libname}${shared_ext}'
  41773. - dynamic_linker="$host_os ld.so"
  41774. - shlibpath_var=LIBRARY_PATH
  41775. - ;;
  41776. +$RM -f confest.$objext
  41777. -bsdi[45]*)
  41778. - version_type=linux
  41779. - need_version=no
  41780. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41781. - soname_spec='${libname}${release}${shared_ext}$major'
  41782. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  41783. - shlibpath_var=LD_LIBRARY_PATH
  41784. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  41785. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  41786. - # the default ld.so.conf also contains /usr/contrib/lib and
  41787. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  41788. - # libtool to hard-code these into programs
  41789. +# PORTME: override above test on systems where it is broken
  41790. +case $host_os in
  41791. +interix[3-9]*)
  41792. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  41793. + # hack all around it, let's just trust "g++" to DTRT.
  41794. + predep_objects_CXX=
  41795. + postdep_objects_CXX=
  41796. + postdeps_CXX=
  41797. ;;
  41798. -cygwin* | mingw* | pw32*)
  41799. - version_type=windows
  41800. - shrext_cmds=".dll"
  41801. - need_version=no
  41802. - need_lib_prefix=no
  41803. -
  41804. - case $GCC,$host_os in
  41805. - yes,cygwin* | yes,mingw* | yes,pw32*)
  41806. - library_names_spec='$libname.dll.a'
  41807. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  41808. - postinstall_cmds='base_file=`basename \${file}`~
  41809. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  41810. - dldir=$destdir/`dirname \$dlpath`~
  41811. - test -d \$dldir || mkdir -p \$dldir~
  41812. - $install_prog $dir/$dlname \$dldir/$dlname~
  41813. - chmod a+x \$dldir/$dlname'
  41814. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  41815. - dlpath=$dir/\$dldll~
  41816. - $rm \$dlpath'
  41817. - shlibpath_overrides_runpath=yes
  41818. +linux*)
  41819. + case `$CC -V 2>&1 | sed 5q` in
  41820. + *Sun\ C*)
  41821. + # Sun C++ 5.9
  41822. - case $host_os in
  41823. - cygwin*)
  41824. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  41825. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  41826. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  41827. - ;;
  41828. - mingw*)
  41829. - # MinGW DLLs use traditional 'lib' prefix
  41830. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  41831. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  41832. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  41833. - # It is most probably a Windows format PATH printed by
  41834. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  41835. - # path with ; separators, and with drive letters. We can handle the
  41836. - # drive letters (cygwin fileutils understands them), so leave them,
  41837. - # especially as we might pass files found there to a mingw objdump,
  41838. - # which wouldn't understand a cygwinified path. Ahh.
  41839. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  41840. - else
  41841. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  41842. - fi
  41843. - ;;
  41844. - pw32*)
  41845. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  41846. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  41847. + # The more standards-conforming stlport4 library is
  41848. + # incompatible with the Cstd library. Avoid specifying
  41849. + # it if it's in CXXFLAGS. Ignore libCrun as
  41850. + # -library=stlport4 depends on it.
  41851. + case " $CXX $CXXFLAGS " in
  41852. + *" -library=stlport4 "*)
  41853. + solaris_use_stlport4=yes
  41854. ;;
  41855. esac
  41856. - ;;
  41857. - *)
  41858. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  41859. + if test "$solaris_use_stlport4" != yes; then
  41860. + postdeps_CXX='-library=Cstd -library=Crun'
  41861. + fi
  41862. ;;
  41863. esac
  41864. - dynamic_linker='Win32 ld.exe'
  41865. - # FIXME: first we should search . and the directory the executable is in
  41866. - shlibpath_var=PATH
  41867. ;;
  41868. -darwin* | rhapsody*)
  41869. - dynamic_linker="$host_os dyld"
  41870. - version_type=darwin
  41871. - need_lib_prefix=no
  41872. - need_version=no
  41873. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  41874. - soname_spec='${libname}${release}${major}$shared_ext'
  41875. - shlibpath_overrides_runpath=yes
  41876. - shlibpath_var=DYLD_LIBRARY_PATH
  41877. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  41878. -
  41879. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  41880. - ;;
  41881. +solaris*)
  41882. + case $cc_basename in
  41883. + CC*)
  41884. + # The more standards-conforming stlport4 library is
  41885. + # incompatible with the Cstd library. Avoid specifying
  41886. + # it if it's in CXXFLAGS. Ignore libCrun as
  41887. + # -library=stlport4 depends on it.
  41888. + case " $CXX $CXXFLAGS " in
  41889. + *" -library=stlport4 "*)
  41890. + solaris_use_stlport4=yes
  41891. + ;;
  41892. + esac
  41893. -dgux*)
  41894. - version_type=linux
  41895. - need_lib_prefix=no
  41896. - need_version=no
  41897. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  41898. - soname_spec='${libname}${release}${shared_ext}$major'
  41899. - shlibpath_var=LD_LIBRARY_PATH
  41900. - ;;
  41901. -
  41902. -freebsd1*)
  41903. - dynamic_linker=no
  41904. - ;;
  41905. -
  41906. -freebsd* | dragonfly*)
  41907. - # DragonFly does not have aout. When/if they implement a new
  41908. - # versioning mechanism, adjust this.
  41909. - if test -x /usr/bin/objformat; then
  41910. - objformat=`/usr/bin/objformat`
  41911. - else
  41912. - case $host_os in
  41913. - freebsd[123]*) objformat=aout ;;
  41914. - *) objformat=elf ;;
  41915. - esac
  41916. - fi
  41917. - version_type=freebsd-$objformat
  41918. - case $version_type in
  41919. - freebsd-elf*)
  41920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  41921. - need_version=no
  41922. - need_lib_prefix=no
  41923. - ;;
  41924. - freebsd-*)
  41925. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  41926. - need_version=yes
  41927. - ;;
  41928. - esac
  41929. - shlibpath_var=LD_LIBRARY_PATH
  41930. - case $host_os in
  41931. - freebsd2*)
  41932. - shlibpath_overrides_runpath=yes
  41933. - ;;
  41934. - freebsd3.[01]* | freebsdelf3.[01]*)
  41935. - shlibpath_overrides_runpath=yes
  41936. - hardcode_into_libs=yes
  41937. - ;;
  41938. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  41939. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  41940. - shlibpath_overrides_runpath=no
  41941. - hardcode_into_libs=yes
  41942. - ;;
  41943. - *) # from 4.6 on, and DragonFly
  41944. - shlibpath_overrides_runpath=yes
  41945. - hardcode_into_libs=yes
  41946. + # Adding this requires a known-good setup of shared libraries for
  41947. + # Sun compiler versions before 5.6, else PIC objects from an old
  41948. + # archive will be linked into the output, leading to subtle bugs.
  41949. + if test "$solaris_use_stlport4" != yes; then
  41950. + postdeps_CXX='-library=Cstd -library=Crun'
  41951. + fi
  41952. ;;
  41953. esac
  41954. ;;
  41955. +esac
  41956. -gnu*)
  41957. - version_type=linux
  41958. - need_lib_prefix=no
  41959. - need_version=no
  41960. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  41961. - soname_spec='${libname}${release}${shared_ext}$major'
  41962. - shlibpath_var=LD_LIBRARY_PATH
  41963. - hardcode_into_libs=yes
  41964. - ;;
  41965. -hpux9* | hpux10* | hpux11*)
  41966. - # Give a soname corresponding to the major version so that dld.sl refuses to
  41967. - # link against other versions.
  41968. - version_type=sunos
  41969. - need_lib_prefix=no
  41970. - need_version=no
  41971. - case $host_cpu in
  41972. - ia64*)
  41973. - shrext_cmds='.so'
  41974. - hardcode_into_libs=yes
  41975. - dynamic_linker="$host_os dld.so"
  41976. - shlibpath_var=LD_LIBRARY_PATH
  41977. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  41978. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41979. - soname_spec='${libname}${release}${shared_ext}$major'
  41980. - if test "X$HPUX_IA64_MODE" = X32; then
  41981. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  41982. - else
  41983. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  41984. - fi
  41985. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  41986. - ;;
  41987. - hppa*64*)
  41988. - shrext_cmds='.sl'
  41989. - hardcode_into_libs=yes
  41990. - dynamic_linker="$host_os dld.sl"
  41991. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  41992. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  41993. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41994. - soname_spec='${libname}${release}${shared_ext}$major'
  41995. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  41996. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  41997. - ;;
  41998. - *)
  41999. - shrext_cmds='.sl'
  42000. - dynamic_linker="$host_os dld.sl"
  42001. - shlibpath_var=SHLIB_PATH
  42002. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  42003. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42004. - soname_spec='${libname}${release}${shared_ext}$major'
  42005. - ;;
  42006. - esac
  42007. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  42008. - postinstall_cmds='chmod 555 $lib'
  42009. - ;;
  42010. +case " $postdeps_CXX " in
  42011. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  42012. +esac
  42013. + compiler_lib_search_dirs_CXX=
  42014. +if test -n "${compiler_lib_search_path_CXX}"; then
  42015. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  42016. +fi
  42017. -interix[3-9]*)
  42018. - version_type=linux
  42019. - need_lib_prefix=no
  42020. - need_version=no
  42021. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  42022. - soname_spec='${libname}${release}${shared_ext}$major'
  42023. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  42024. - shlibpath_var=LD_LIBRARY_PATH
  42025. - shlibpath_overrides_runpath=no
  42026. - hardcode_into_libs=yes
  42027. - ;;
  42028. -irix5* | irix6* | nonstopux*)
  42029. - case $host_os in
  42030. - nonstopux*) version_type=nonstopux ;;
  42031. - *)
  42032. - if test "$lt_cv_prog_gnu_ld" = yes; then
  42033. - version_type=linux
  42034. - else
  42035. - version_type=irix
  42036. - fi ;;
  42037. - esac
  42038. - need_lib_prefix=no
  42039. - need_version=no
  42040. - soname_spec='${libname}${release}${shared_ext}$major'
  42041. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  42042. - case $host_os in
  42043. - irix5* | nonstopux*)
  42044. - libsuff= shlibsuff=
  42045. - ;;
  42046. - *)
  42047. - case $LD in # libtool.m4 will add one of these switches to LD
  42048. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  42049. - libsuff= shlibsuff= libmagic=32-bit;;
  42050. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  42051. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  42052. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  42053. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  42054. - *) libsuff= shlibsuff= libmagic=never-match;;
  42055. - esac
  42056. - ;;
  42057. - esac
  42058. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  42059. - shlibpath_overrides_runpath=no
  42060. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  42061. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  42062. - hardcode_into_libs=yes
  42063. - ;;
  42064. -# No shared lib support for Linux oldld, aout, or coff.
  42065. -linux*oldld* | linux*aout* | linux*coff*)
  42066. - dynamic_linker=no
  42067. - ;;
  42068. -# This must be Linux ELF.
  42069. -linux* | k*bsd*-gnu)
  42070. - version_type=linux
  42071. - need_lib_prefix=no
  42072. - need_version=no
  42073. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42074. - soname_spec='${libname}${release}${shared_ext}$major'
  42075. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  42076. - shlibpath_var=LD_LIBRARY_PATH
  42077. - shlibpath_overrides_runpath=no
  42078. - # This implies no fast_install, which is unacceptable.
  42079. - # Some rework will be needed to allow for fast_install
  42080. - # before this can be enabled.
  42081. - hardcode_into_libs=yes
  42082. - # Append ld.so.conf contents to the search path
  42083. - if test -f /etc/ld.so.conf; then
  42084. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  42085. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  42086. - fi
  42087. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  42088. - # powerpc, because MkLinux only supported shared libraries with the
  42089. - # GNU dynamic linker. Since this was broken with cross compilers,
  42090. - # most powerpc-linux boxes support dynamic linking these days and
  42091. - # people can always --disable-shared, the test was removed, and we
  42092. - # assume the GNU/Linux dynamic linker is in use.
  42093. - dynamic_linker='GNU/Linux ld.so'
  42094. - ;;
  42095. -netbsd*)
  42096. - version_type=sunos
  42097. - need_lib_prefix=no
  42098. - need_version=no
  42099. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  42100. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  42101. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  42102. - dynamic_linker='NetBSD (a.out) ld.so'
  42103. - else
  42104. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  42105. - soname_spec='${libname}${release}${shared_ext}$major'
  42106. - dynamic_linker='NetBSD ld.elf_so'
  42107. - fi
  42108. - shlibpath_var=LD_LIBRARY_PATH
  42109. - shlibpath_overrides_runpath=yes
  42110. - hardcode_into_libs=yes
  42111. - ;;
  42112. -newsos6)
  42113. - version_type=linux
  42114. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42115. - shlibpath_var=LD_LIBRARY_PATH
  42116. - shlibpath_overrides_runpath=yes
  42117. - ;;
  42118. -nto-qnx*)
  42119. - version_type=linux
  42120. - need_lib_prefix=no
  42121. - need_version=no
  42122. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42123. - soname_spec='${libname}${release}${shared_ext}$major'
  42124. - shlibpath_var=LD_LIBRARY_PATH
  42125. - shlibpath_overrides_runpath=yes
  42126. - ;;
  42127. -openbsd*)
  42128. - version_type=sunos
  42129. - sys_lib_dlsearch_path_spec="/usr/lib"
  42130. - need_lib_prefix=no
  42131. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  42132. - case $host_os in
  42133. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  42134. - *) need_version=no ;;
  42135. - esac
  42136. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  42137. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  42138. - shlibpath_var=LD_LIBRARY_PATH
  42139. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  42140. - case $host_os in
  42141. - openbsd2.[89] | openbsd2.[89].*)
  42142. - shlibpath_overrides_runpath=no
  42143. - ;;
  42144. - *)
  42145. - shlibpath_overrides_runpath=yes
  42146. - ;;
  42147. - esac
  42148. - else
  42149. - shlibpath_overrides_runpath=yes
  42150. - fi
  42151. - ;;
  42152. -os2*)
  42153. - libname_spec='$name'
  42154. - shrext_cmds=".dll"
  42155. - need_lib_prefix=no
  42156. - library_names_spec='$libname${shared_ext} $libname.a'
  42157. - dynamic_linker='OS/2 ld.exe'
  42158. - shlibpath_var=LIBPATH
  42159. - ;;
  42160. -osf3* | osf4* | osf5*)
  42161. - version_type=osf
  42162. - need_lib_prefix=no
  42163. - need_version=no
  42164. - soname_spec='${libname}${release}${shared_ext}$major'
  42165. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42166. - shlibpath_var=LD_LIBRARY_PATH
  42167. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  42168. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  42169. - ;;
  42170. -
  42171. -rdos*)
  42172. - dynamic_linker=no
  42173. - ;;
  42174. -
  42175. -solaris*)
  42176. - version_type=linux
  42177. - need_lib_prefix=no
  42178. - need_version=no
  42179. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42180. - soname_spec='${libname}${release}${shared_ext}$major'
  42181. - shlibpath_var=LD_LIBRARY_PATH
  42182. - shlibpath_overrides_runpath=yes
  42183. - hardcode_into_libs=yes
  42184. - # ldd complains unless libraries are executable
  42185. - postinstall_cmds='chmod +x $lib'
  42186. - ;;
  42187. -
  42188. -sunos4*)
  42189. - version_type=sunos
  42190. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  42191. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  42192. - shlibpath_var=LD_LIBRARY_PATH
  42193. - shlibpath_overrides_runpath=yes
  42194. - if test "$with_gnu_ld" = yes; then
  42195. - need_lib_prefix=no
  42196. - fi
  42197. - need_version=yes
  42198. - ;;
  42199. -
  42200. -sysv4 | sysv4.3*)
  42201. - version_type=linux
  42202. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42203. - soname_spec='${libname}${release}${shared_ext}$major'
  42204. - shlibpath_var=LD_LIBRARY_PATH
  42205. - case $host_vendor in
  42206. - sni)
  42207. - shlibpath_overrides_runpath=no
  42208. - need_lib_prefix=no
  42209. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  42210. - runpath_var=LD_RUN_PATH
  42211. - ;;
  42212. - siemens)
  42213. - need_lib_prefix=no
  42214. - ;;
  42215. - motorola)
  42216. - need_lib_prefix=no
  42217. - need_version=no
  42218. - shlibpath_overrides_runpath=no
  42219. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  42220. - ;;
  42221. - esac
  42222. - ;;
  42223. -
  42224. -sysv4*MP*)
  42225. - if test -d /usr/nec ;then
  42226. - version_type=linux
  42227. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  42228. - soname_spec='$libname${shared_ext}.$major'
  42229. - shlibpath_var=LD_LIBRARY_PATH
  42230. - fi
  42231. - ;;
  42232. -
  42233. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  42234. - version_type=freebsd-elf
  42235. - need_lib_prefix=no
  42236. - need_version=no
  42237. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  42238. - soname_spec='${libname}${release}${shared_ext}$major'
  42239. - shlibpath_var=LD_LIBRARY_PATH
  42240. - hardcode_into_libs=yes
  42241. - if test "$with_gnu_ld" = yes; then
  42242. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  42243. - shlibpath_overrides_runpath=no
  42244. - else
  42245. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  42246. - shlibpath_overrides_runpath=yes
  42247. - case $host_os in
  42248. - sco3.2v5*)
  42249. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  42250. - ;;
  42251. - esac
  42252. - fi
  42253. - sys_lib_dlsearch_path_spec='/usr/lib'
  42254. - ;;
  42255. -
  42256. -uts4*)
  42257. - version_type=linux
  42258. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42259. - soname_spec='${libname}${release}${shared_ext}$major'
  42260. - shlibpath_var=LD_LIBRARY_PATH
  42261. - ;;
  42262. -
  42263. -*)
  42264. - dynamic_linker=no
  42265. - ;;
  42266. -esac
  42267. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  42268. -echo "${ECHO_T}$dynamic_linker" >&6; }
  42269. -test "$dynamic_linker" = no && can_build_shared=no
  42270. -
  42271. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  42272. -if test "$GCC" = yes; then
  42273. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  42274. -fi
  42275. -
  42276. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  42277. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  42278. -hardcode_action_F77=
  42279. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  42280. - test -n "$runpath_var_F77" || \
  42281. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  42282. -
  42283. - # We can hardcode non-existant directories.
  42284. - if test "$hardcode_direct_F77" != no &&
  42285. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  42286. - # have to relink, otherwise we might link with an installed library
  42287. - # when we should be linking with a yet-to-be-installed one
  42288. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  42289. - test "$hardcode_minus_L_F77" != no; then
  42290. - # Linking always hardcodes the temporary library directory.
  42291. - hardcode_action_F77=relink
  42292. - else
  42293. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  42294. - hardcode_action_F77=immediate
  42295. - fi
  42296. -else
  42297. - # We cannot hardcode anything, or else we can only hardcode existing
  42298. - # directories.
  42299. - hardcode_action_F77=unsupported
  42300. -fi
  42301. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  42302. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  42303. -
  42304. -if test "$hardcode_action_F77" = relink; then
  42305. - # Fast installation is not supported
  42306. - enable_fast_install=no
  42307. -elif test "$shlibpath_overrides_runpath" = yes ||
  42308. - test "$enable_shared" = no; then
  42309. - # Fast installation is not necessary
  42310. - enable_fast_install=needless
  42311. -fi
  42312. -# The else clause should only fire when bootstrapping the
  42313. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  42314. -# with your package, and you will get complaints that there are
  42315. -# no rules to generate ltmain.sh.
  42316. -if test -f "$ltmain"; then
  42317. - # See if we are running on zsh, and set the options which allow our commands through
  42318. - # without removal of \ escapes.
  42319. - if test -n "${ZSH_VERSION+set}" ; then
  42320. - setopt NO_GLOB_SUBST
  42321. - fi
  42322. - # Now quote all the things that may contain metacharacters while being
  42323. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  42324. - # variables and quote the copies for generation of the libtool script.
  42325. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  42326. - SED SHELL STRIP \
  42327. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  42328. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  42329. - deplibs_check_method reload_flag reload_cmds need_locks \
  42330. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  42331. - lt_cv_sys_global_symbol_to_c_name_address \
  42332. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  42333. - old_postinstall_cmds old_postuninstall_cmds \
  42334. - compiler_F77 \
  42335. - CC_F77 \
  42336. - LD_F77 \
  42337. - lt_prog_compiler_wl_F77 \
  42338. - lt_prog_compiler_pic_F77 \
  42339. - lt_prog_compiler_static_F77 \
  42340. - lt_prog_compiler_no_builtin_flag_F77 \
  42341. - export_dynamic_flag_spec_F77 \
  42342. - thread_safe_flag_spec_F77 \
  42343. - whole_archive_flag_spec_F77 \
  42344. - enable_shared_with_static_runtimes_F77 \
  42345. - old_archive_cmds_F77 \
  42346. - old_archive_from_new_cmds_F77 \
  42347. - predep_objects_F77 \
  42348. - postdep_objects_F77 \
  42349. - predeps_F77 \
  42350. - postdeps_F77 \
  42351. - compiler_lib_search_path_F77 \
  42352. - archive_cmds_F77 \
  42353. - archive_expsym_cmds_F77 \
  42354. - postinstall_cmds_F77 \
  42355. - postuninstall_cmds_F77 \
  42356. - old_archive_from_expsyms_cmds_F77 \
  42357. - allow_undefined_flag_F77 \
  42358. - no_undefined_flag_F77 \
  42359. - export_symbols_cmds_F77 \
  42360. - hardcode_libdir_flag_spec_F77 \
  42361. - hardcode_libdir_flag_spec_ld_F77 \
  42362. - hardcode_libdir_separator_F77 \
  42363. - hardcode_automatic_F77 \
  42364. - module_cmds_F77 \
  42365. - module_expsym_cmds_F77 \
  42366. - lt_cv_prog_compiler_c_o_F77 \
  42367. - fix_srcfile_path_F77 \
  42368. - exclude_expsyms_F77 \
  42369. - include_expsyms_F77; do
  42370. -
  42371. - case $var in
  42372. - old_archive_cmds_F77 | \
  42373. - old_archive_from_new_cmds_F77 | \
  42374. - archive_cmds_F77 | \
  42375. - archive_expsym_cmds_F77 | \
  42376. - module_cmds_F77 | \
  42377. - module_expsym_cmds_F77 | \
  42378. - old_archive_from_expsyms_cmds_F77 | \
  42379. - export_symbols_cmds_F77 | \
  42380. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  42381. - postinstall_cmds | postuninstall_cmds | \
  42382. - old_postinstall_cmds | old_postuninstall_cmds | \
  42383. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  42384. - # Double-quote double-evaled strings.
  42385. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  42386. - ;;
  42387. - *)
  42388. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  42389. - ;;
  42390. - esac
  42391. - done
  42392. -
  42393. - case $lt_echo in
  42394. - *'\$0 --fallback-echo"')
  42395. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  42396. - ;;
  42397. - esac
  42398. -
  42399. -cfgfile="$ofile"
  42400. -
  42401. - cat <<__EOF__ >> "$cfgfile"
  42402. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  42403. -
  42404. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42405. -
  42406. -# Shell to use when invoking shell scripts.
  42407. -SHELL=$lt_SHELL
  42408. -
  42409. -# Whether or not to build shared libraries.
  42410. -build_libtool_libs=$enable_shared
  42411. -
  42412. -# Whether or not to build static libraries.
  42413. -build_old_libs=$enable_static
  42414. -
  42415. -# Whether or not to add -lc for building shared libraries.
  42416. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  42417. -
  42418. -# Whether or not to disallow shared libs when runtime libs are static
  42419. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  42420. -
  42421. -# Whether or not to optimize for fast installation.
  42422. -fast_install=$enable_fast_install
  42423. -
  42424. -# The host system.
  42425. -host_alias=$host_alias
  42426. -host=$host
  42427. -host_os=$host_os
  42428. -
  42429. -# The build system.
  42430. -build_alias=$build_alias
  42431. -build=$build
  42432. -build_os=$build_os
  42433. -
  42434. -# An echo program that does not interpret backslashes.
  42435. -echo=$lt_echo
  42436. -
  42437. -# The archiver.
  42438. -AR=$lt_AR
  42439. -AR_FLAGS=$lt_AR_FLAGS
  42440. -
  42441. -# A C compiler.
  42442. -LTCC=$lt_LTCC
  42443. -
  42444. -# LTCC compiler flags.
  42445. -LTCFLAGS=$lt_LTCFLAGS
  42446. -
  42447. -# A language-specific compiler.
  42448. -CC=$lt_compiler_F77
  42449. -
  42450. -# Is the compiler the GNU C compiler?
  42451. -with_gcc=$GCC_F77
  42452. -
  42453. -# An ERE matcher.
  42454. -EGREP=$lt_EGREP
  42455. -
  42456. -# The linker used to build libraries.
  42457. -LD=$lt_LD_F77
  42458. -
  42459. -# Whether we need hard or soft links.
  42460. -LN_S=$lt_LN_S
  42461. -
  42462. -# A BSD-compatible nm program.
  42463. -NM=$lt_NM
  42464. -
  42465. -# A symbol stripping program
  42466. -STRIP=$lt_STRIP
  42467. -
  42468. -# Used to examine libraries when file_magic_cmd begins "file"
  42469. -MAGIC_CMD=$MAGIC_CMD
  42470. -
  42471. -# Used on cygwin: DLL creation program.
  42472. -DLLTOOL="$DLLTOOL"
  42473. -# Used on cygwin: object dumper.
  42474. -OBJDUMP="$OBJDUMP"
  42475. -
  42476. -# Used on cygwin: assembler.
  42477. -AS="$AS"
  42478. -
  42479. -# The name of the directory that contains temporary libtool files.
  42480. -objdir=$objdir
  42481. -# How to create reloadable object files.
  42482. -reload_flag=$lt_reload_flag
  42483. -reload_cmds=$lt_reload_cmds
  42484. -# How to pass a linker flag through the compiler.
  42485. -wl=$lt_lt_prog_compiler_wl_F77
  42486. -# Object file suffix (normally "o").
  42487. -objext="$ac_objext"
  42488. -# Old archive suffix (normally "a").
  42489. -libext="$libext"
  42490. -# Shared library suffix (normally ".so").
  42491. -shrext_cmds='$shrext_cmds'
  42492. -# Executable file suffix (normally "").
  42493. -exeext="$exeext"
  42494. -# Additional compiler flags for building library objects.
  42495. -pic_flag=$lt_lt_prog_compiler_pic_F77
  42496. -pic_mode=$pic_mode
  42497. -# What is the maximum length of a command?
  42498. -max_cmd_len=$lt_cv_sys_max_cmd_len
  42499. -# Does compiler simultaneously support -c and -o options?
  42500. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  42501. -# Must we lock files when doing compilation?
  42502. -need_locks=$lt_need_locks
  42503. -# Do we need the lib prefix for modules?
  42504. -need_lib_prefix=$need_lib_prefix
  42505. -# Do we need a version for libraries?
  42506. -need_version=$need_version
  42507. -# Whether dlopen is supported.
  42508. -dlopen_support=$enable_dlopen
  42509. -# Whether dlopen of programs is supported.
  42510. -dlopen_self=$enable_dlopen_self
  42511. -# Whether dlopen of statically linked programs is supported.
  42512. -dlopen_self_static=$enable_dlopen_self_static
  42513. -# Compiler flag to prevent dynamic linking.
  42514. -link_static_flag=$lt_lt_prog_compiler_static_F77
  42515. + lt_prog_compiler_wl_CXX=
  42516. +lt_prog_compiler_pic_CXX=
  42517. +lt_prog_compiler_static_CXX=
  42518. -# Compiler flag to turn off builtin functions.
  42519. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  42520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  42521. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  42522. -# Compiler flag to allow reflexive dlopens.
  42523. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  42524. + # C++ specific cases for pic, static, wl, etc.
  42525. + if test "$GXX" = yes; then
  42526. + lt_prog_compiler_wl_CXX='-Wl,'
  42527. + lt_prog_compiler_static_CXX='-static'
  42528. -# Compiler flag to generate shared objects directly from archives.
  42529. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  42530. + case $host_os in
  42531. + aix*)
  42532. + # All AIX code is PIC.
  42533. + if test "$host_cpu" = ia64; then
  42534. + # AIX 5 now supports IA64 processor
  42535. + lt_prog_compiler_static_CXX='-Bstatic'
  42536. + fi
  42537. + ;;
  42538. -# Compiler flag to generate thread-safe objects.
  42539. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  42540. -
  42541. -# Library versioning type.
  42542. -version_type=$version_type
  42543. -
  42544. -# Format of library name prefix.
  42545. -libname_spec=$lt_libname_spec
  42546. -
  42547. -# List of archive names. First name is the real one, the rest are links.
  42548. -# The last name is the one that the linker finds with -lNAME.
  42549. -library_names_spec=$lt_library_names_spec
  42550. -
  42551. -# The coded name of the library, if different from the real name.
  42552. -soname_spec=$lt_soname_spec
  42553. -
  42554. -# Commands used to build and install an old-style archive.
  42555. -RANLIB=$lt_RANLIB
  42556. -old_archive_cmds=$lt_old_archive_cmds_F77
  42557. -old_postinstall_cmds=$lt_old_postinstall_cmds
  42558. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  42559. -
  42560. -# Create an old-style archive from a shared archive.
  42561. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  42562. -
  42563. -# Create a temporary old-style archive to link instead of a shared archive.
  42564. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  42565. -
  42566. -# Commands used to build and install a shared archive.
  42567. -archive_cmds=$lt_archive_cmds_F77
  42568. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  42569. -postinstall_cmds=$lt_postinstall_cmds
  42570. -postuninstall_cmds=$lt_postuninstall_cmds
  42571. -
  42572. -# Commands used to build a loadable module (assumed same as above if empty)
  42573. -module_cmds=$lt_module_cmds_F77
  42574. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  42575. -
  42576. -# Commands to strip libraries.
  42577. -old_striplib=$lt_old_striplib
  42578. -striplib=$lt_striplib
  42579. -
  42580. -# Dependencies to place before the objects being linked to create a
  42581. -# shared library.
  42582. -predep_objects=$lt_predep_objects_F77
  42583. -
  42584. -# Dependencies to place after the objects being linked to create a
  42585. -# shared library.
  42586. -postdep_objects=$lt_postdep_objects_F77
  42587. -
  42588. -# Dependencies to place before the objects being linked to create a
  42589. -# shared library.
  42590. -predeps=$lt_predeps_F77
  42591. -
  42592. -# Dependencies to place after the objects being linked to create a
  42593. -# shared library.
  42594. -postdeps=$lt_postdeps_F77
  42595. -
  42596. -# The library search path used internally by the compiler when linking
  42597. -# a shared library.
  42598. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  42599. -
  42600. -# Method to check whether dependent libraries are shared objects.
  42601. -deplibs_check_method=$lt_deplibs_check_method
  42602. -
  42603. -# Command to use when deplibs_check_method == file_magic.
  42604. -file_magic_cmd=$lt_file_magic_cmd
  42605. -
  42606. -# Flag that allows shared libraries with undefined symbols to be built.
  42607. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  42608. -
  42609. -# Flag that forces no undefined symbols.
  42610. -no_undefined_flag=$lt_no_undefined_flag_F77
  42611. -
  42612. -# Commands used to finish a libtool library installation in a directory.
  42613. -finish_cmds=$lt_finish_cmds
  42614. -
  42615. -# Same as above, but a single script fragment to be evaled but not shown.
  42616. -finish_eval=$lt_finish_eval
  42617. -
  42618. -# Take the output of nm and produce a listing of raw symbols and C names.
  42619. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  42620. -
  42621. -# Transform the output of nm in a proper C declaration
  42622. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  42623. -
  42624. -# Transform the output of nm in a C name address pair
  42625. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  42626. -
  42627. -# This is the shared library runtime path variable.
  42628. -runpath_var=$runpath_var
  42629. -
  42630. -# This is the shared library path variable.
  42631. -shlibpath_var=$shlibpath_var
  42632. -
  42633. -# Is shlibpath searched before the hard-coded library search path?
  42634. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  42635. -
  42636. -# How to hardcode a shared library path into an executable.
  42637. -hardcode_action=$hardcode_action_F77
  42638. -
  42639. -# Whether we should hardcode library paths into libraries.
  42640. -hardcode_into_libs=$hardcode_into_libs
  42641. -
  42642. -# Flag to hardcode \$libdir into a binary during linking.
  42643. -# This must work even if \$libdir does not exist.
  42644. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  42645. -
  42646. -# If ld is used when linking, flag to hardcode \$libdir into
  42647. -# a binary during linking. This must work even if \$libdir does
  42648. -# not exist.
  42649. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  42650. -
  42651. -# Whether we need a single -rpath flag with a separated argument.
  42652. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  42653. -
  42654. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  42655. -# resulting binary.
  42656. -hardcode_direct=$hardcode_direct_F77
  42657. -
  42658. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  42659. -# resulting binary.
  42660. -hardcode_minus_L=$hardcode_minus_L_F77
  42661. -
  42662. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  42663. -# the resulting binary.
  42664. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  42665. -
  42666. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  42667. -# and all subsequent libraries and executables linked against it.
  42668. -hardcode_automatic=$hardcode_automatic_F77
  42669. -
  42670. -# Variables whose values should be saved in libtool wrapper scripts and
  42671. -# restored at relink time.
  42672. -variables_saved_for_relink="$variables_saved_for_relink"
  42673. -
  42674. -# Whether libtool must link a program against all its dependency libraries.
  42675. -link_all_deplibs=$link_all_deplibs_F77
  42676. -
  42677. -# Compile-time system search path for libraries
  42678. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  42679. -
  42680. -# Run-time system search path for libraries
  42681. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  42682. -
  42683. -# Fix the shell variable \$srcfile for the compiler.
  42684. -fix_srcfile_path=$lt_fix_srcfile_path
  42685. -
  42686. -# Set to yes if exported symbols are required.
  42687. -always_export_symbols=$always_export_symbols_F77
  42688. -
  42689. -# The commands to list exported symbols.
  42690. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  42691. -
  42692. -# The commands to extract the exported symbol list from a shared archive.
  42693. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  42694. -
  42695. -# Symbols that should not be listed in the preloaded symbols.
  42696. -exclude_expsyms=$lt_exclude_expsyms_F77
  42697. -
  42698. -# Symbols that must always be exported.
  42699. -include_expsyms=$lt_include_expsyms_F77
  42700. -
  42701. -# ### END LIBTOOL TAG CONFIG: $tagname
  42702. -
  42703. -__EOF__
  42704. -
  42705. -
  42706. -else
  42707. - # If there is no Makefile yet, we rely on a make rule to execute
  42708. - # `config.status --recheck' to rerun these tests and create the
  42709. - # libtool script then.
  42710. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  42711. - if test -f "$ltmain_in"; then
  42712. - test -f Makefile && make "$ltmain"
  42713. - fi
  42714. -fi
  42715. -
  42716. -
  42717. -ac_ext=c
  42718. -ac_cpp='$CPP $CPPFLAGS'
  42719. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42720. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42721. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42722. -
  42723. -CC="$lt_save_CC"
  42724. -
  42725. - else
  42726. - tagname=""
  42727. - fi
  42728. - ;;
  42729. -
  42730. - GCJ)
  42731. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  42732. -
  42733. -
  42734. -# Source file extension for Java test sources.
  42735. -ac_ext=java
  42736. -
  42737. -# Object file extension for compiled Java test sources.
  42738. -objext=o
  42739. -objext_GCJ=$objext
  42740. -
  42741. -# Code to be used in simple compile tests
  42742. -lt_simple_compile_test_code="class foo {}"
  42743. -
  42744. -# Code to be used in simple link tests
  42745. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  42746. -
  42747. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  42748. -
  42749. -# If no C compiler was specified, use CC.
  42750. -LTCC=${LTCC-"$CC"}
  42751. -
  42752. -# If no C compiler flags were specified, use CFLAGS.
  42753. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  42754. -
  42755. -# Allow CC to be a program name with arguments.
  42756. -compiler=$CC
  42757. -
  42758. -
  42759. -# save warnings/boilerplate of simple test code
  42760. -ac_outfile=conftest.$ac_objext
  42761. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  42762. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  42763. -_lt_compiler_boilerplate=`cat conftest.err`
  42764. -$rm conftest*
  42765. -
  42766. -ac_outfile=conftest.$ac_objext
  42767. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  42768. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  42769. -_lt_linker_boilerplate=`cat conftest.err`
  42770. -$rm conftest*
  42771. -
  42772. -
  42773. -# Allow CC to be a program name with arguments.
  42774. -lt_save_CC="$CC"
  42775. -CC=${GCJ-"gcj"}
  42776. -compiler=$CC
  42777. -compiler_GCJ=$CC
  42778. -for cc_temp in $compiler""; do
  42779. - case $cc_temp in
  42780. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  42781. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  42782. - \-*) ;;
  42783. - *) break;;
  42784. - esac
  42785. -done
  42786. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  42787. -
  42788. -
  42789. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  42790. -archive_cmds_need_lc_GCJ=no
  42791. -
  42792. -old_archive_cmds_GCJ=$old_archive_cmds
  42793. -
  42794. -
  42795. -lt_prog_compiler_no_builtin_flag_GCJ=
  42796. -
  42797. -if test "$GCC" = yes; then
  42798. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  42799. -
  42800. -
  42801. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  42802. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  42803. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  42804. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42805. -else
  42806. - lt_cv_prog_compiler_rtti_exceptions=no
  42807. - ac_outfile=conftest.$ac_objext
  42808. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42809. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  42810. - # Insert the option either (1) after the last *FLAGS variable, or
  42811. - # (2) before a word containing "conftest.", or (3) at the end.
  42812. - # Note that $ac_compile itself does not contain backslashes and begins
  42813. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  42814. - # The option is referenced via a variable to avoid confusing sed.
  42815. - lt_compile=`echo "$ac_compile" | $SED \
  42816. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  42817. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  42818. - -e 's:$: $lt_compiler_flag:'`
  42819. - (eval echo "\"\$as_me:22493: $lt_compile\"" >&5)
  42820. - (eval "$lt_compile" 2>conftest.err)
  42821. - ac_status=$?
  42822. - cat conftest.err >&5
  42823. - echo "$as_me:22497: \$? = $ac_status" >&5
  42824. - if (exit $ac_status) && test -s "$ac_outfile"; then
  42825. - # The compiler can only warn and ignore the option if not recognized
  42826. - # So say no if there are warnings other than the usual output.
  42827. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  42828. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  42829. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  42830. - lt_cv_prog_compiler_rtti_exceptions=yes
  42831. - fi
  42832. - fi
  42833. - $rm conftest*
  42834. -
  42835. -fi
  42836. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  42837. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  42838. -
  42839. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  42840. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  42841. -else
  42842. - :
  42843. -fi
  42844. -
  42845. -fi
  42846. -
  42847. -lt_prog_compiler_wl_GCJ=
  42848. -lt_prog_compiler_pic_GCJ=
  42849. -lt_prog_compiler_static_GCJ=
  42850. -
  42851. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  42852. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  42853. -
  42854. - if test "$GCC" = yes; then
  42855. - lt_prog_compiler_wl_GCJ='-Wl,'
  42856. - lt_prog_compiler_static_GCJ='-static'
  42857. -
  42858. - case $host_os in
  42859. - aix*)
  42860. - # All AIX code is PIC.
  42861. - if test "$host_cpu" = ia64; then
  42862. - # AIX 5 now supports IA64 processor
  42863. - lt_prog_compiler_static_GCJ='-Bstatic'
  42864. - fi
  42865. - ;;
  42866. -
  42867. - amigaos*)
  42868. - # FIXME: we need at least 68020 code to build shared libraries, but
  42869. - # adding the `-m68020' flag to GCC prevents building anything better,
  42870. - # like `-m68040'.
  42871. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  42872. - ;;
  42873. + amigaos*)
  42874. + case $host_cpu in
  42875. + powerpc)
  42876. + # see comment about AmigaOS4 .so support
  42877. + lt_prog_compiler_pic_CXX='-fPIC'
  42878. + ;;
  42879. + m68k)
  42880. + # FIXME: we need at least 68020 code to build shared libraries, but
  42881. + # adding the `-m68020' flag to GCC prevents building anything better,
  42882. + # like `-m68040'.
  42883. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  42884. + ;;
  42885. + esac
  42886. + ;;
  42887. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  42888. # PIC is the default for these OSes.
  42889. ;;
  42890. -
  42891. - mingw* | cygwin* | pw32* | os2*)
  42892. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  42893. # This hack is so that the source file can tell whether it is being
  42894. # built for inclusion in a dll (and should export symbols for example).
  42895. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  42896. # (--disable-auto-import) libraries
  42897. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  42898. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  42899. ;;
  42900. -
  42901. darwin* | rhapsody*)
  42902. # PIC is the default on this platform
  42903. # Common symbols not allowed in MH_DYLIB files
  42904. - lt_prog_compiler_pic_GCJ='-fno-common'
  42905. + lt_prog_compiler_pic_CXX='-fno-common'
  42906. + ;;
  42907. + *djgpp*)
  42908. + # DJGPP does not support shared libraries at all
  42909. + lt_prog_compiler_pic_CXX=
  42910. ;;
  42911. -
  42912. interix[3-9]*)
  42913. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  42914. # Instead, we relocate shared libraries at runtime.
  42915. ;;
  42916. -
  42917. - msdosdjgpp*)
  42918. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  42919. - # on systems that don't support them.
  42920. - lt_prog_compiler_can_build_shared_GCJ=no
  42921. - enable_shared=no
  42922. - ;;
  42923. -
  42924. sysv4*MP*)
  42925. if test -d /usr/nec; then
  42926. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  42927. + lt_prog_compiler_pic_CXX=-Kconform_pic
  42928. fi
  42929. ;;
  42930. -
  42931. hpux*)
  42932. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  42933. - # not for PA HP-UX.
  42934. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  42935. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  42936. + # sets the default TLS model and affects inlining.
  42937. case $host_cpu in
  42938. - hppa*64*|ia64*)
  42939. - # +Z the default
  42940. + hppa*64*)
  42941. ;;
  42942. *)
  42943. - lt_prog_compiler_pic_GCJ='-fPIC'
  42944. + lt_prog_compiler_pic_CXX='-fPIC'
  42945. ;;
  42946. esac
  42947. ;;
  42948. -
  42949. + *qnx* | *nto*)
  42950. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  42951. + # it will coredump.
  42952. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  42953. + ;;
  42954. *)
  42955. - lt_prog_compiler_pic_GCJ='-fPIC'
  42956. + lt_prog_compiler_pic_CXX='-fPIC'
  42957. ;;
  42958. esac
  42959. else
  42960. - # PORTME Check for flag to pass linker flags through the system compiler.
  42961. case $host_os in
  42962. - aix*)
  42963. - lt_prog_compiler_wl_GCJ='-Wl,'
  42964. - if test "$host_cpu" = ia64; then
  42965. - # AIX 5 now supports IA64 processor
  42966. - lt_prog_compiler_static_GCJ='-Bstatic'
  42967. - else
  42968. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  42969. - fi
  42970. - ;;
  42971. - darwin*)
  42972. - # PIC is the default on this platform
  42973. - # Common symbols not allowed in MH_DYLIB files
  42974. - case $cc_basename in
  42975. - xlc*)
  42976. - lt_prog_compiler_pic_GCJ='-qnocommon'
  42977. - lt_prog_compiler_wl_GCJ='-Wl,'
  42978. - ;;
  42979. - esac
  42980. - ;;
  42981. -
  42982. - mingw* | cygwin* | pw32* | os2*)
  42983. - # This hack is so that the source file can tell whether it is being
  42984. - # built for inclusion in a dll (and should export symbols for example).
  42985. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  42986. - ;;
  42987. -
  42988. - hpux9* | hpux10* | hpux11*)
  42989. - lt_prog_compiler_wl_GCJ='-Wl,'
  42990. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  42991. - # not for PA HP-UX.
  42992. - case $host_cpu in
  42993. - hppa*64*|ia64*)
  42994. - # +Z the default
  42995. + aix[4-9]*)
  42996. + # All AIX code is PIC.
  42997. + if test "$host_cpu" = ia64; then
  42998. + # AIX 5 now supports IA64 processor
  42999. + lt_prog_compiler_static_CXX='-Bstatic'
  43000. + else
  43001. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  43002. + fi
  43003. ;;
  43004. - *)
  43005. - lt_prog_compiler_pic_GCJ='+Z'
  43006. + chorus*)
  43007. + case $cc_basename in
  43008. + cxch68*)
  43009. + # Green Hills C++ Compiler
  43010. + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  43011. + ;;
  43012. + esac
  43013. ;;
  43014. - esac
  43015. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  43016. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  43017. - ;;
  43018. -
  43019. - irix5* | irix6* | nonstopux*)
  43020. - lt_prog_compiler_wl_GCJ='-Wl,'
  43021. - # PIC (with -KPIC) is the default.
  43022. - lt_prog_compiler_static_GCJ='-non_shared'
  43023. - ;;
  43024. -
  43025. - newsos6)
  43026. - lt_prog_compiler_pic_GCJ='-KPIC'
  43027. - lt_prog_compiler_static_GCJ='-Bstatic'
  43028. - ;;
  43029. -
  43030. - linux* | k*bsd*-gnu)
  43031. - case $cc_basename in
  43032. - icc* | ecc*)
  43033. - lt_prog_compiler_wl_GCJ='-Wl,'
  43034. - lt_prog_compiler_pic_GCJ='-KPIC'
  43035. - lt_prog_compiler_static_GCJ='-static'
  43036. - ;;
  43037. - pgcc* | pgf77* | pgf90* | pgf95*)
  43038. - # Portland Group compilers (*not* the Pentium gcc compiler,
  43039. - # which looks to be a dead project)
  43040. - lt_prog_compiler_wl_GCJ='-Wl,'
  43041. - lt_prog_compiler_pic_GCJ='-fpic'
  43042. - lt_prog_compiler_static_GCJ='-Bstatic'
  43043. - ;;
  43044. - ccc*)
  43045. - lt_prog_compiler_wl_GCJ='-Wl,'
  43046. - # All Alpha code is PIC.
  43047. - lt_prog_compiler_static_GCJ='-non_shared'
  43048. + dgux*)
  43049. + case $cc_basename in
  43050. + ec++*)
  43051. + lt_prog_compiler_pic_CXX='-KPIC'
  43052. + ;;
  43053. + ghcx*)
  43054. + # Green Hills C++ Compiler
  43055. + lt_prog_compiler_pic_CXX='-pic'
  43056. + ;;
  43057. + *)
  43058. + ;;
  43059. + esac
  43060. + ;;
  43061. + freebsd* | dragonfly*)
  43062. + # FreeBSD uses GNU C++
  43063. + ;;
  43064. + hpux9* | hpux10* | hpux11*)
  43065. + case $cc_basename in
  43066. + CC*)
  43067. + lt_prog_compiler_wl_CXX='-Wl,'
  43068. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  43069. + if test "$host_cpu" != ia64; then
  43070. + lt_prog_compiler_pic_CXX='+Z'
  43071. + fi
  43072. + ;;
  43073. + aCC*)
  43074. + lt_prog_compiler_wl_CXX='-Wl,'
  43075. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  43076. + case $host_cpu in
  43077. + hppa*64*|ia64*)
  43078. + # +Z the default
  43079. + ;;
  43080. + *)
  43081. + lt_prog_compiler_pic_CXX='+Z'
  43082. + ;;
  43083. + esac
  43084. + ;;
  43085. + *)
  43086. + ;;
  43087. + esac
  43088. + ;;
  43089. + interix*)
  43090. + # This is c89, which is MS Visual C++ (no shared libs)
  43091. + # Anyone wants to do a port?
  43092. + ;;
  43093. + irix5* | irix6* | nonstopux*)
  43094. + case $cc_basename in
  43095. + CC*)
  43096. + lt_prog_compiler_wl_CXX='-Wl,'
  43097. + lt_prog_compiler_static_CXX='-non_shared'
  43098. + # CC pic flag -KPIC is the default.
  43099. + ;;
  43100. + *)
  43101. + ;;
  43102. + esac
  43103. + ;;
  43104. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  43105. + case $cc_basename in
  43106. + KCC*)
  43107. + # KAI C++ Compiler
  43108. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  43109. + lt_prog_compiler_pic_CXX='-fPIC'
  43110. + ;;
  43111. + ecpc* )
  43112. + # old Intel C++ for x86_64 which still supported -KPIC.
  43113. + lt_prog_compiler_wl_CXX='-Wl,'
  43114. + lt_prog_compiler_pic_CXX='-KPIC'
  43115. + lt_prog_compiler_static_CXX='-static'
  43116. + ;;
  43117. + icpc* )
  43118. + # Intel C++, used to be incompatible with GCC.
  43119. + # ICC 10 doesn't accept -KPIC any more.
  43120. + lt_prog_compiler_wl_CXX='-Wl,'
  43121. + lt_prog_compiler_pic_CXX='-fPIC'
  43122. + lt_prog_compiler_static_CXX='-static'
  43123. + ;;
  43124. + pgCC* | pgcpp*)
  43125. + # Portland Group C++ compiler
  43126. + lt_prog_compiler_wl_CXX='-Wl,'
  43127. + lt_prog_compiler_pic_CXX='-fpic'
  43128. + lt_prog_compiler_static_CXX='-Bstatic'
  43129. + ;;
  43130. + cxx*)
  43131. + # Compaq C++
  43132. + # Make sure the PIC flag is empty. It appears that all Alpha
  43133. + # Linux and Compaq Tru64 Unix objects are PIC.
  43134. + lt_prog_compiler_pic_CXX=
  43135. + lt_prog_compiler_static_CXX='-non_shared'
  43136. + ;;
  43137. + xlc* | xlC*)
  43138. + # IBM XL 8.0 on PPC
  43139. + lt_prog_compiler_wl_CXX='-Wl,'
  43140. + lt_prog_compiler_pic_CXX='-qpic'
  43141. + lt_prog_compiler_static_CXX='-qstaticlink'
  43142. + ;;
  43143. + *)
  43144. + case `$CC -V 2>&1 | sed 5q` in
  43145. + *Sun\ C*)
  43146. + # Sun C++ 5.9
  43147. + lt_prog_compiler_pic_CXX='-KPIC'
  43148. + lt_prog_compiler_static_CXX='-Bstatic'
  43149. + lt_prog_compiler_wl_CXX='-Qoption ld '
  43150. + ;;
  43151. + esac
  43152. + ;;
  43153. + esac
  43154. + ;;
  43155. + lynxos*)
  43156. + ;;
  43157. + m88k*)
  43158. + ;;
  43159. + mvs*)
  43160. + case $cc_basename in
  43161. + cxx*)
  43162. + lt_prog_compiler_pic_CXX='-W c,exportall'
  43163. + ;;
  43164. + *)
  43165. + ;;
  43166. + esac
  43167. + ;;
  43168. + netbsd* | netbsdelf*-gnu)
  43169. + ;;
  43170. + *qnx* | *nto*)
  43171. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  43172. + # it will coredump.
  43173. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  43174. ;;
  43175. - *)
  43176. - case `$CC -V 2>&1 | sed 5q` in
  43177. - *Sun\ C*)
  43178. - # Sun C 5.9
  43179. - lt_prog_compiler_pic_GCJ='-KPIC'
  43180. - lt_prog_compiler_static_GCJ='-Bstatic'
  43181. - lt_prog_compiler_wl_GCJ='-Wl,'
  43182. - ;;
  43183. - *Sun\ F*)
  43184. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  43185. - lt_prog_compiler_pic_GCJ='-KPIC'
  43186. - lt_prog_compiler_static_GCJ='-Bstatic'
  43187. - lt_prog_compiler_wl_GCJ=''
  43188. - ;;
  43189. + osf3* | osf4* | osf5*)
  43190. + case $cc_basename in
  43191. + KCC*)
  43192. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  43193. + ;;
  43194. + RCC*)
  43195. + # Rational C++ 2.4.1
  43196. + lt_prog_compiler_pic_CXX='-pic'
  43197. + ;;
  43198. + cxx*)
  43199. + # Digital/Compaq C++
  43200. + lt_prog_compiler_wl_CXX='-Wl,'
  43201. + # Make sure the PIC flag is empty. It appears that all Alpha
  43202. + # Linux and Compaq Tru64 Unix objects are PIC.
  43203. + lt_prog_compiler_pic_CXX=
  43204. + lt_prog_compiler_static_CXX='-non_shared'
  43205. + ;;
  43206. + *)
  43207. + ;;
  43208. esac
  43209. ;;
  43210. - esac
  43211. - ;;
  43212. -
  43213. - osf3* | osf4* | osf5*)
  43214. - lt_prog_compiler_wl_GCJ='-Wl,'
  43215. - # All OSF/1 code is PIC.
  43216. - lt_prog_compiler_static_GCJ='-non_shared'
  43217. - ;;
  43218. -
  43219. - rdos*)
  43220. - lt_prog_compiler_static_GCJ='-non_shared'
  43221. - ;;
  43222. -
  43223. - solaris*)
  43224. - lt_prog_compiler_pic_GCJ='-KPIC'
  43225. - lt_prog_compiler_static_GCJ='-Bstatic'
  43226. - case $cc_basename in
  43227. - f77* | f90* | f95*)
  43228. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  43229. - *)
  43230. - lt_prog_compiler_wl_GCJ='-Wl,';;
  43231. - esac
  43232. - ;;
  43233. -
  43234. - sunos4*)
  43235. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  43236. - lt_prog_compiler_pic_GCJ='-PIC'
  43237. - lt_prog_compiler_static_GCJ='-Bstatic'
  43238. - ;;
  43239. -
  43240. - sysv4 | sysv4.2uw2* | sysv4.3*)
  43241. - lt_prog_compiler_wl_GCJ='-Wl,'
  43242. - lt_prog_compiler_pic_GCJ='-KPIC'
  43243. - lt_prog_compiler_static_GCJ='-Bstatic'
  43244. - ;;
  43245. -
  43246. - sysv4*MP*)
  43247. - if test -d /usr/nec ;then
  43248. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  43249. - lt_prog_compiler_static_GCJ='-Bstatic'
  43250. - fi
  43251. - ;;
  43252. -
  43253. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  43254. - lt_prog_compiler_wl_GCJ='-Wl,'
  43255. - lt_prog_compiler_pic_GCJ='-KPIC'
  43256. - lt_prog_compiler_static_GCJ='-Bstatic'
  43257. - ;;
  43258. -
  43259. - unicos*)
  43260. - lt_prog_compiler_wl_GCJ='-Wl,'
  43261. - lt_prog_compiler_can_build_shared_GCJ=no
  43262. - ;;
  43263. -
  43264. - uts4*)
  43265. - lt_prog_compiler_pic_GCJ='-pic'
  43266. - lt_prog_compiler_static_GCJ='-Bstatic'
  43267. - ;;
  43268. -
  43269. - *)
  43270. - lt_prog_compiler_can_build_shared_GCJ=no
  43271. - ;;
  43272. - esac
  43273. - fi
  43274. -
  43275. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  43276. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  43277. -
  43278. -#
  43279. -# Check to make sure the PIC flag actually works.
  43280. -#
  43281. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  43282. -
  43283. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  43284. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  43285. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  43286. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43287. -else
  43288. - lt_prog_compiler_pic_works_GCJ=no
  43289. - ac_outfile=conftest.$ac_objext
  43290. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  43291. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  43292. - # Insert the option either (1) after the last *FLAGS variable, or
  43293. - # (2) before a word containing "conftest.", or (3) at the end.
  43294. - # Note that $ac_compile itself does not contain backslashes and begins
  43295. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  43296. - # The option is referenced via a variable to avoid confusing sed.
  43297. - lt_compile=`echo "$ac_compile" | $SED \
  43298. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  43299. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  43300. - -e 's:$: $lt_compiler_flag:'`
  43301. - (eval echo "\"\$as_me:22783: $lt_compile\"" >&5)
  43302. - (eval "$lt_compile" 2>conftest.err)
  43303. - ac_status=$?
  43304. - cat conftest.err >&5
  43305. - echo "$as_me:22787: \$? = $ac_status" >&5
  43306. - if (exit $ac_status) && test -s "$ac_outfile"; then
  43307. - # The compiler can only warn and ignore the option if not recognized
  43308. - # So say no if there are warnings other than the usual output.
  43309. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  43310. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  43311. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  43312. - lt_prog_compiler_pic_works_GCJ=yes
  43313. - fi
  43314. - fi
  43315. - $rm conftest*
  43316. -
  43317. -fi
  43318. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  43319. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  43320. -
  43321. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  43322. - case $lt_prog_compiler_pic_GCJ in
  43323. - "" | " "*) ;;
  43324. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  43325. - esac
  43326. -else
  43327. - lt_prog_compiler_pic_GCJ=
  43328. - lt_prog_compiler_can_build_shared_GCJ=no
  43329. -fi
  43330. -
  43331. -fi
  43332. -case $host_os in
  43333. - # For platforms which do not support PIC, -DPIC is meaningless:
  43334. - *djgpp*)
  43335. - lt_prog_compiler_pic_GCJ=
  43336. - ;;
  43337. - *)
  43338. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  43339. - ;;
  43340. -esac
  43341. -
  43342. -#
  43343. -# Check to make sure the static flag actually works.
  43344. -#
  43345. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  43346. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  43347. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  43348. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  43349. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43350. -else
  43351. - lt_prog_compiler_static_works_GCJ=no
  43352. - save_LDFLAGS="$LDFLAGS"
  43353. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  43354. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  43355. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  43356. - # The linker can only warn and ignore the option if not recognized
  43357. - # So say no if there are warnings
  43358. - if test -s conftest.err; then
  43359. - # Append any errors to the config.log.
  43360. - cat conftest.err 1>&5
  43361. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  43362. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  43363. - if diff conftest.exp conftest.er2 >/dev/null; then
  43364. - lt_prog_compiler_static_works_GCJ=yes
  43365. - fi
  43366. - else
  43367. - lt_prog_compiler_static_works_GCJ=yes
  43368. - fi
  43369. - fi
  43370. - $rm conftest*
  43371. - LDFLAGS="$save_LDFLAGS"
  43372. -
  43373. -fi
  43374. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  43375. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  43376. -
  43377. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  43378. - :
  43379. -else
  43380. - lt_prog_compiler_static_GCJ=
  43381. -fi
  43382. -
  43383. -
  43384. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  43385. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  43386. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  43387. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43388. -else
  43389. - lt_cv_prog_compiler_c_o_GCJ=no
  43390. - $rm -r conftest 2>/dev/null
  43391. - mkdir conftest
  43392. - cd conftest
  43393. - mkdir out
  43394. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  43395. -
  43396. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  43397. - # Insert the option either (1) after the last *FLAGS variable, or
  43398. - # (2) before a word containing "conftest.", or (3) at the end.
  43399. - # Note that $ac_compile itself does not contain backslashes and begins
  43400. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  43401. - lt_compile=`echo "$ac_compile" | $SED \
  43402. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  43403. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  43404. - -e 's:$: $lt_compiler_flag:'`
  43405. - (eval echo "\"\$as_me:22887: $lt_compile\"" >&5)
  43406. - (eval "$lt_compile" 2>out/conftest.err)
  43407. - ac_status=$?
  43408. - cat out/conftest.err >&5
  43409. - echo "$as_me:22891: \$? = $ac_status" >&5
  43410. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  43411. - then
  43412. - # The compiler can only warn and ignore the option if not recognized
  43413. - # So say no if there are warnings
  43414. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  43415. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  43416. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  43417. - lt_cv_prog_compiler_c_o_GCJ=yes
  43418. - fi
  43419. - fi
  43420. - chmod u+w . 2>&5
  43421. - $rm conftest*
  43422. - # SGI C++ compiler will create directory out/ii_files/ for
  43423. - # template instantiation
  43424. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  43425. - $rm out/* && rmdir out
  43426. - cd ..
  43427. - rmdir conftest
  43428. - $rm conftest*
  43429. -
  43430. -fi
  43431. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  43432. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  43433. -
  43434. -
  43435. -hard_links="nottested"
  43436. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  43437. - # do not overwrite the value of need_locks provided by the user
  43438. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  43439. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  43440. - hard_links=yes
  43441. - $rm conftest*
  43442. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  43443. - touch conftest.a
  43444. - ln conftest.a conftest.b 2>&5 || hard_links=no
  43445. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  43446. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  43447. -echo "${ECHO_T}$hard_links" >&6; }
  43448. - if test "$hard_links" = no; then
  43449. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  43450. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  43451. - need_locks=warn
  43452. - fi
  43453. -else
  43454. - need_locks=no
  43455. -fi
  43456. -
  43457. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  43458. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  43459. -
  43460. - runpath_var=
  43461. - allow_undefined_flag_GCJ=
  43462. - enable_shared_with_static_runtimes_GCJ=no
  43463. - archive_cmds_GCJ=
  43464. - archive_expsym_cmds_GCJ=
  43465. - old_archive_From_new_cmds_GCJ=
  43466. - old_archive_from_expsyms_cmds_GCJ=
  43467. - export_dynamic_flag_spec_GCJ=
  43468. - whole_archive_flag_spec_GCJ=
  43469. - thread_safe_flag_spec_GCJ=
  43470. - hardcode_libdir_flag_spec_GCJ=
  43471. - hardcode_libdir_flag_spec_ld_GCJ=
  43472. - hardcode_libdir_separator_GCJ=
  43473. - hardcode_direct_GCJ=no
  43474. - hardcode_minus_L_GCJ=no
  43475. - hardcode_shlibpath_var_GCJ=unsupported
  43476. - link_all_deplibs_GCJ=unknown
  43477. - hardcode_automatic_GCJ=no
  43478. - module_cmds_GCJ=
  43479. - module_expsym_cmds_GCJ=
  43480. - always_export_symbols_GCJ=no
  43481. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  43482. - # include_expsyms should be a list of space-separated symbols to be *always*
  43483. - # included in the symbol list
  43484. - include_expsyms_GCJ=
  43485. - # exclude_expsyms can be an extended regexp of symbols to exclude
  43486. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  43487. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  43488. - # as well as any symbol that contains `d'.
  43489. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  43490. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  43491. - # platforms (ab)use it in PIC code, but their linkers get confused if
  43492. - # the symbol is explicitly referenced. Since portable code cannot
  43493. - # rely on this symbol name, it's probably fine to never include it in
  43494. - # preloaded symbol tables.
  43495. - extract_expsyms_cmds=
  43496. - # Just being paranoid about ensuring that cc_basename is set.
  43497. - for cc_temp in $compiler""; do
  43498. - case $cc_temp in
  43499. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  43500. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  43501. - \-*) ;;
  43502. - *) break;;
  43503. - esac
  43504. -done
  43505. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  43506. -
  43507. - case $host_os in
  43508. - cygwin* | mingw* | pw32*)
  43509. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  43510. - # When not using gcc, we currently assume that we are using
  43511. - # Microsoft Visual C++.
  43512. - if test "$GCC" != yes; then
  43513. - with_gnu_ld=no
  43514. - fi
  43515. - ;;
  43516. - interix*)
  43517. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  43518. - with_gnu_ld=yes
  43519. - ;;
  43520. - openbsd*)
  43521. - with_gnu_ld=no
  43522. - ;;
  43523. - esac
  43524. -
  43525. - ld_shlibs_GCJ=yes
  43526. - if test "$with_gnu_ld" = yes; then
  43527. - # If archive_cmds runs LD, not CC, wlarc should be empty
  43528. - wlarc='${wl}'
  43529. -
  43530. - # Set some defaults for GNU ld with shared library support. These
  43531. - # are reset later if shared libraries are not supported. Putting them
  43532. - # here allows them to be overridden if necessary.
  43533. - runpath_var=LD_RUN_PATH
  43534. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  43535. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  43536. - # ancient GNU ld didn't support --whole-archive et. al.
  43537. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  43538. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  43539. - else
  43540. - whole_archive_flag_spec_GCJ=
  43541. - fi
  43542. - supports_anon_versioning=no
  43543. - case `$LD -v 2>/dev/null` in
  43544. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  43545. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  43546. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  43547. - *\ 2.11.*) ;; # other 2.11 versions
  43548. - *) supports_anon_versioning=yes ;;
  43549. - esac
  43550. -
  43551. - # See if GNU ld supports shared libraries.
  43552. - case $host_os in
  43553. - aix3* | aix4* | aix5*)
  43554. - # On AIX/PPC, the GNU linker is very broken
  43555. - if test "$host_cpu" != ia64; then
  43556. - ld_shlibs_GCJ=no
  43557. - cat <<EOF 1>&2
  43558. -
  43559. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  43560. -*** to be unable to reliably create shared libraries on AIX.
  43561. -*** Therefore, libtool is disabling shared libraries support. If you
  43562. -*** really care for shared libraries, you may want to modify your PATH
  43563. -*** so that a non-GNU linker is found, and then restart.
  43564. -
  43565. -EOF
  43566. - fi
  43567. - ;;
  43568. -
  43569. - amigaos*)
  43570. - archive_cmds_GCJ='$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)'
  43571. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  43572. - hardcode_minus_L_GCJ=yes
  43573. -
  43574. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  43575. - # that the semantics of dynamic libraries on AmigaOS, at least up
  43576. - # to version 4, is to share data among multiple programs linked
  43577. - # with the same dynamic library. Since this doesn't match the
  43578. - # behavior of shared libraries on other platforms, we can't use
  43579. - # them.
  43580. - ld_shlibs_GCJ=no
  43581. - ;;
  43582. -
  43583. - beos*)
  43584. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  43585. - allow_undefined_flag_GCJ=unsupported
  43586. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  43587. - # support --undefined. This deserves some investigation. FIXME
  43588. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  43589. - else
  43590. - ld_shlibs_GCJ=no
  43591. - fi
  43592. - ;;
  43593. -
  43594. - cygwin* | mingw* | pw32*)
  43595. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  43596. - # as there is no search path for DLLs.
  43597. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  43598. - allow_undefined_flag_GCJ=unsupported
  43599. - always_export_symbols_GCJ=no
  43600. - enable_shared_with_static_runtimes_GCJ=yes
  43601. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  43602. -
  43603. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  43604. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  43605. - # If the export-symbols file already is a .def file (1st line
  43606. - # is EXPORTS), use it as is; otherwise, prepend...
  43607. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  43608. - cp $export_symbols $output_objdir/$soname.def;
  43609. - else
  43610. - echo EXPORTS > $output_objdir/$soname.def;
  43611. - cat $export_symbols >> $output_objdir/$soname.def;
  43612. - fi~
  43613. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  43614. - else
  43615. - ld_shlibs_GCJ=no
  43616. - fi
  43617. - ;;
  43618. -
  43619. - interix[3-9]*)
  43620. - hardcode_direct_GCJ=no
  43621. - hardcode_shlibpath_var_GCJ=no
  43622. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  43623. - export_dynamic_flag_spec_GCJ='${wl}-E'
  43624. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  43625. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  43626. - # default) and relocated if they conflict, which is a slow very memory
  43627. - # consuming and fragmenting process. To avoid this, we pick a random,
  43628. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  43629. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  43630. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  43631. - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  43632. - ;;
  43633. -
  43634. - gnu* | linux* | k*bsd*-gnu)
  43635. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  43636. - tmp_addflag=
  43637. - case $cc_basename,$host_cpu in
  43638. - pgcc*) # Portland Group C compiler
  43639. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  43640. - tmp_addflag=' $pic_flag'
  43641. - ;;
  43642. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  43643. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  43644. - tmp_addflag=' $pic_flag -Mnomain' ;;
  43645. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  43646. - tmp_addflag=' -i_dynamic' ;;
  43647. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  43648. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  43649. - ifc* | ifort*) # Intel Fortran compiler
  43650. - tmp_addflag=' -nofor_main' ;;
  43651. - esac
  43652. - case `$CC -V 2>&1 | sed 5q` in
  43653. - *Sun\ C*) # Sun C 5.9
  43654. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  43655. - tmp_sharedflag='-G' ;;
  43656. - *Sun\ F*) # Sun Fortran 8.3
  43657. - tmp_sharedflag='-G' ;;
  43658. - *)
  43659. - tmp_sharedflag='-shared' ;;
  43660. + psos*)
  43661. + ;;
  43662. + solaris*)
  43663. + case $cc_basename in
  43664. + CC*)
  43665. + # Sun C++ 4.2, 5.x and Centerline C++
  43666. + lt_prog_compiler_pic_CXX='-KPIC'
  43667. + lt_prog_compiler_static_CXX='-Bstatic'
  43668. + lt_prog_compiler_wl_CXX='-Qoption ld '
  43669. + ;;
  43670. + gcx*)
  43671. + # Green Hills C++ Compiler
  43672. + lt_prog_compiler_pic_CXX='-PIC'
  43673. + ;;
  43674. + *)
  43675. + ;;
  43676. esac
  43677. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  43678. -
  43679. - if test $supports_anon_versioning = yes; then
  43680. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  43681. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  43682. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  43683. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  43684. - fi
  43685. - else
  43686. - ld_shlibs_GCJ=no
  43687. - fi
  43688. - ;;
  43689. -
  43690. - netbsd*)
  43691. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  43692. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  43693. - wlarc=
  43694. - else
  43695. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  43696. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  43697. - fi
  43698. - ;;
  43699. -
  43700. - solaris*)
  43701. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  43702. - ld_shlibs_GCJ=no
  43703. - cat <<EOF 1>&2
  43704. -
  43705. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  43706. -*** create shared libraries on Solaris systems. Therefore, libtool
  43707. -*** is disabling shared libraries support. We urge you to upgrade GNU
  43708. -*** binutils to release 2.9.1 or newer. Another option is to modify
  43709. -*** your PATH or compiler configuration so that the native linker is
  43710. -*** used, and then restart.
  43711. -
  43712. -EOF
  43713. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  43714. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  43715. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  43716. - else
  43717. - ld_shlibs_GCJ=no
  43718. - fi
  43719. - ;;
  43720. -
  43721. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  43722. - case `$LD -v 2>&1` in
  43723. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  43724. - ld_shlibs_GCJ=no
  43725. - cat <<_LT_EOF 1>&2
  43726. -
  43727. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  43728. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  43729. -*** is disabling shared libraries support. We urge you to upgrade GNU
  43730. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  43731. -*** your PATH or compiler configuration so that the native linker is
  43732. -*** used, and then restart.
  43733. -
  43734. -_LT_EOF
  43735. ;;
  43736. - *)
  43737. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  43738. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  43739. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  43740. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  43741. - else
  43742. - ld_shlibs_GCJ=no
  43743. - fi
  43744. + sunos4*)
  43745. + case $cc_basename in
  43746. + CC*)
  43747. + # Sun C++ 4.x
  43748. + lt_prog_compiler_pic_CXX='-pic'
  43749. + lt_prog_compiler_static_CXX='-Bstatic'
  43750. + ;;
  43751. + lcc*)
  43752. + # Lucid
  43753. + lt_prog_compiler_pic_CXX='-pic'
  43754. + ;;
  43755. + *)
  43756. + ;;
  43757. + esac
  43758. ;;
  43759. - esac
  43760. - ;;
  43761. -
  43762. - sunos4*)
  43763. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  43764. - wlarc=
  43765. - hardcode_direct_GCJ=yes
  43766. - hardcode_shlibpath_var_GCJ=no
  43767. - ;;
  43768. -
  43769. - *)
  43770. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  43771. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  43772. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  43773. - else
  43774. - ld_shlibs_GCJ=no
  43775. - fi
  43776. - ;;
  43777. - esac
  43778. -
  43779. - if test "$ld_shlibs_GCJ" = no; then
  43780. - runpath_var=
  43781. - hardcode_libdir_flag_spec_GCJ=
  43782. - export_dynamic_flag_spec_GCJ=
  43783. - whole_archive_flag_spec_GCJ=
  43784. - fi
  43785. - else
  43786. - # PORTME fill in a description of your system's linker (not GNU ld)
  43787. - case $host_os in
  43788. - aix3*)
  43789. - allow_undefined_flag_GCJ=unsupported
  43790. - always_export_symbols_GCJ=yes
  43791. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  43792. - # Note: this linker hardcodes the directories in LIBPATH if there
  43793. - # are no directories specified by -L.
  43794. - hardcode_minus_L_GCJ=yes
  43795. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  43796. - # Neither direct hardcoding nor static linking is supported with a
  43797. - # broken collect2.
  43798. - hardcode_direct_GCJ=unsupported
  43799. - fi
  43800. - ;;
  43801. -
  43802. - aix4* | aix5*)
  43803. - if test "$host_cpu" = ia64; then
  43804. - # On IA64, the linker does run time linking by default, so we don't
  43805. - # have to do anything special.
  43806. - aix_use_runtimelinking=no
  43807. - exp_sym_flag='-Bexport'
  43808. - no_entry_flag=""
  43809. - else
  43810. - # If we're using GNU nm, then we don't want the "-C" option.
  43811. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  43812. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  43813. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  43814. - else
  43815. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  43816. - fi
  43817. - aix_use_runtimelinking=no
  43818. -
  43819. - # Test if we are trying to use run time linking or normal
  43820. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  43821. - # need to do runtime linking.
  43822. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  43823. - for ld_flag in $LDFLAGS; do
  43824. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  43825. - aix_use_runtimelinking=yes
  43826. - break
  43827. - fi
  43828. - done
  43829. - ;;
  43830. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  43831. + case $cc_basename in
  43832. + CC*)
  43833. + lt_prog_compiler_wl_CXX='-Wl,'
  43834. + lt_prog_compiler_pic_CXX='-KPIC'
  43835. + lt_prog_compiler_static_CXX='-Bstatic'
  43836. + ;;
  43837. esac
  43838. -
  43839. - exp_sym_flag='-bexport'
  43840. - no_entry_flag='-bnoentry'
  43841. - fi
  43842. -
  43843. - # When large executables or shared objects are built, AIX ld can
  43844. - # have problems creating the table of contents. If linking a library
  43845. - # or program results in "error TOC overflow" add -mminimal-toc to
  43846. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  43847. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  43848. -
  43849. - archive_cmds_GCJ=''
  43850. - hardcode_direct_GCJ=yes
  43851. - hardcode_libdir_separator_GCJ=':'
  43852. - link_all_deplibs_GCJ=yes
  43853. -
  43854. - if test "$GCC" = yes; then
  43855. - case $host_os in aix4.[012]|aix4.[012].*)
  43856. - # We only want to do this on AIX 4.2 and lower, the check
  43857. - # below for broken collect2 doesn't work under 4.3+
  43858. - collect2name=`${CC} -print-prog-name=collect2`
  43859. - if test -f "$collect2name" && \
  43860. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  43861. - then
  43862. - # We have reworked collect2
  43863. - :
  43864. - else
  43865. - # We have old collect2
  43866. - hardcode_direct_GCJ=unsupported
  43867. - # It fails to find uninstalled libraries when the uninstalled
  43868. - # path is not listed in the libpath. Setting hardcode_minus_L
  43869. - # to unsupported forces relinking
  43870. - hardcode_minus_L_GCJ=yes
  43871. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  43872. - hardcode_libdir_separator_GCJ=
  43873. - fi
  43874. - ;;
  43875. + ;;
  43876. + tandem*)
  43877. + case $cc_basename in
  43878. + NCC*)
  43879. + # NonStop-UX NCC 3.20
  43880. + lt_prog_compiler_pic_CXX='-KPIC'
  43881. + ;;
  43882. + *)
  43883. + ;;
  43884. esac
  43885. - shared_flag='-shared'
  43886. - if test "$aix_use_runtimelinking" = yes; then
  43887. - shared_flag="$shared_flag "'${wl}-G'
  43888. - fi
  43889. - else
  43890. - # not using gcc
  43891. - if test "$host_cpu" = ia64; then
  43892. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  43893. - # chokes on -Wl,-G. The following line is correct:
  43894. - shared_flag='-G'
  43895. - else
  43896. - if test "$aix_use_runtimelinking" = yes; then
  43897. - shared_flag='${wl}-G'
  43898. - else
  43899. - shared_flag='${wl}-bM:SRE'
  43900. - fi
  43901. - fi
  43902. - fi
  43903. + ;;
  43904. + vxworks*)
  43905. + ;;
  43906. + *)
  43907. + lt_prog_compiler_can_build_shared_CXX=no
  43908. + ;;
  43909. + esac
  43910. + fi
  43911. - # It seems that -bexpall does not export symbols beginning with
  43912. - # underscore (_), so it is better to generate a list of symbols to export.
  43913. - always_export_symbols_GCJ=yes
  43914. - if test "$aix_use_runtimelinking" = yes; then
  43915. - # Warning - without using the other runtime loading flags (-brtl),
  43916. - # -berok will link without error, but may produce a broken library.
  43917. - allow_undefined_flag_GCJ='-berok'
  43918. - # Determine the default libpath from the value encoded in an empty executable.
  43919. - cat >conftest.$ac_ext <<_ACEOF
  43920. -/* confdefs.h. */
  43921. -_ACEOF
  43922. -cat confdefs.h >>conftest.$ac_ext
  43923. -cat >>conftest.$ac_ext <<_ACEOF
  43924. -/* end confdefs.h. */
  43925. +case $host_os in
  43926. + # For platforms which do not support PIC, -DPIC is meaningless:
  43927. + *djgpp*)
  43928. + lt_prog_compiler_pic_CXX=
  43929. + ;;
  43930. + *)
  43931. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  43932. + ;;
  43933. +esac
  43934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  43935. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  43936. -int
  43937. -main ()
  43938. -{
  43939. - ;
  43940. - return 0;
  43941. -}
  43942. -_ACEOF
  43943. -rm -f conftest.$ac_objext conftest$ac_exeext
  43944. -if { (ac_try="$ac_link"
  43945. -case "(($ac_try" in
  43946. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43947. - *) ac_try_echo=$ac_try;;
  43948. -esac
  43949. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43950. - (eval "$ac_link") 2>conftest.er1
  43951. - ac_status=$?
  43952. - grep -v '^ *+' conftest.er1 >conftest.err
  43953. - rm -f conftest.er1
  43954. - cat conftest.err >&5
  43955. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43956. - (exit $ac_status); } && {
  43957. - test -z "$ac_c_werror_flag" ||
  43958. - test ! -s conftest.err
  43959. - } && test -s conftest$ac_exeext &&
  43960. - $as_test_x conftest$ac_exeext; then
  43961. -lt_aix_libpath_sed='
  43962. - /Import File Strings/,/^$/ {
  43963. - /^0/ {
  43964. - s/^0 *\(.*\)$/\1/
  43965. - p
  43966. - }
  43967. - }'
  43968. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  43969. -# Check for a 64-bit object if we didn't find anything.
  43970. -if test -z "$aix_libpath"; then
  43971. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  43972. -fi
  43973. +#
  43974. +# Check to make sure the PIC flag actually works.
  43975. +#
  43976. +if test -n "$lt_prog_compiler_pic_CXX"; then
  43977. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  43978. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  43979. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  43980. + $as_echo_n "(cached) " >&6
  43981. else
  43982. - echo "$as_me: failed program was:" >&5
  43983. -sed 's/^/| /' conftest.$ac_ext >&5
  43984. -
  43985. + lt_cv_prog_compiler_pic_works_CXX=no
  43986. + ac_outfile=conftest.$ac_objext
  43987. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  43988. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  43989. + # Insert the option either (1) after the last *FLAGS variable, or
  43990. + # (2) before a word containing "conftest.", or (3) at the end.
  43991. + # Note that $ac_compile itself does not contain backslashes and begins
  43992. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  43993. + # The option is referenced via a variable to avoid confusing sed.
  43994. + lt_compile=`echo "$ac_compile" | $SED \
  43995. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  43996. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  43997. + -e 's:$: $lt_compiler_flag:'`
  43998. + (eval echo "\"\$as_me:20089: $lt_compile\"" >&5)
  43999. + (eval "$lt_compile" 2>conftest.err)
  44000. + ac_status=$?
  44001. + cat conftest.err >&5
  44002. + echo "$as_me:20093: \$? = $ac_status" >&5
  44003. + if (exit $ac_status) && test -s "$ac_outfile"; then
  44004. + # The compiler can only warn and ignore the option if not recognized
  44005. + # So say no if there are warnings other than the usual output.
  44006. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  44007. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  44008. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  44009. + lt_cv_prog_compiler_pic_works_CXX=yes
  44010. + fi
  44011. + fi
  44012. + $RM conftest*
  44013. fi
  44014. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  44015. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  44016. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44017. - conftest$ac_exeext conftest.$ac_ext
  44018. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  44019. -
  44020. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  44021. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  44022. - else
  44023. - if test "$host_cpu" = ia64; then
  44024. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  44025. - allow_undefined_flag_GCJ="-z nodefs"
  44026. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  44027. - else
  44028. - # Determine the default libpath from the value encoded in an empty executable.
  44029. - cat >conftest.$ac_ext <<_ACEOF
  44030. -/* confdefs.h. */
  44031. -_ACEOF
  44032. -cat confdefs.h >>conftest.$ac_ext
  44033. -cat >>conftest.$ac_ext <<_ACEOF
  44034. -/* end confdefs.h. */
  44035. -
  44036. -int
  44037. -main ()
  44038. -{
  44039. -
  44040. - ;
  44041. - return 0;
  44042. -}
  44043. -_ACEOF
  44044. -rm -f conftest.$ac_objext conftest$ac_exeext
  44045. -if { (ac_try="$ac_link"
  44046. -case "(($ac_try" in
  44047. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44048. - *) ac_try_echo=$ac_try;;
  44049. -esac
  44050. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44051. - (eval "$ac_link") 2>conftest.er1
  44052. - ac_status=$?
  44053. - grep -v '^ *+' conftest.er1 >conftest.err
  44054. - rm -f conftest.er1
  44055. - cat conftest.err >&5
  44056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44057. - (exit $ac_status); } && {
  44058. - test -z "$ac_c_werror_flag" ||
  44059. - test ! -s conftest.err
  44060. - } && test -s conftest$ac_exeext &&
  44061. - $as_test_x conftest$ac_exeext; then
  44062. -
  44063. -lt_aix_libpath_sed='
  44064. - /Import File Strings/,/^$/ {
  44065. - /^0/ {
  44066. - s/^0 *\(.*\)$/\1/
  44067. - p
  44068. - }
  44069. - }'
  44070. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  44071. -# Check for a 64-bit object if we didn't find anything.
  44072. -if test -z "$aix_libpath"; then
  44073. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  44074. -fi
  44075. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  44076. + case $lt_prog_compiler_pic_CXX in
  44077. + "" | " "*) ;;
  44078. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  44079. + esac
  44080. else
  44081. - echo "$as_me: failed program was:" >&5
  44082. -sed 's/^/| /' conftest.$ac_ext >&5
  44083. -
  44084. -
  44085. + lt_prog_compiler_pic_CXX=
  44086. + lt_prog_compiler_can_build_shared_CXX=no
  44087. fi
  44088. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44089. - conftest$ac_exeext conftest.$ac_ext
  44090. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  44091. -
  44092. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  44093. - # Warning - without using the other run time loading flags,
  44094. - # -berok will link without error, but may produce a broken library.
  44095. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  44096. - allow_undefined_flag_GCJ=' ${wl}-berok'
  44097. - # Exported symbols can be pulled into shared objects from archives
  44098. - whole_archive_flag_spec_GCJ='$convenience'
  44099. - archive_cmds_need_lc_GCJ=yes
  44100. - # This is similar to how AIX traditionally builds its shared libraries.
  44101. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  44102. - fi
  44103. - fi
  44104. - ;;
  44105. -
  44106. - amigaos*)
  44107. - archive_cmds_GCJ='$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)'
  44108. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  44109. - hardcode_minus_L_GCJ=yes
  44110. - # see comment about different semantics on the GNU ld section
  44111. - ld_shlibs_GCJ=no
  44112. - ;;
  44113. -
  44114. - bsdi[45]*)
  44115. - export_dynamic_flag_spec_GCJ=-rdynamic
  44116. - ;;
  44117. -
  44118. - cygwin* | mingw* | pw32*)
  44119. - # When not using gcc, we currently assume that we are using
  44120. - # Microsoft Visual C++.
  44121. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  44122. - # no search path for DLLs.
  44123. - hardcode_libdir_flag_spec_GCJ=' '
  44124. - allow_undefined_flag_GCJ=unsupported
  44125. - # Tell ltmain to make .lib files, not .a files.
  44126. - libext=lib
  44127. - # Tell ltmain to make .dll files, not .so files.
  44128. - shrext_cmds=".dll"
  44129. - # FIXME: Setting linknames here is a bad hack.
  44130. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  44131. - # The linker will automatically build a .lib file if we build a DLL.
  44132. - old_archive_From_new_cmds_GCJ='true'
  44133. - # FIXME: Should let the user specify the lib program.
  44134. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  44135. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  44136. - enable_shared_with_static_runtimes_GCJ=yes
  44137. - ;;
  44138. -
  44139. - darwin* | rhapsody*)
  44140. - case $host_os in
  44141. - rhapsody* | darwin1.[012])
  44142. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  44143. - ;;
  44144. - *) # Darwin 1.3 on
  44145. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  44146. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  44147. - else
  44148. - case ${MACOSX_DEPLOYMENT_TARGET} in
  44149. - 10.[012])
  44150. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  44151. - ;;
  44152. - 10.*)
  44153. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  44154. - ;;
  44155. - esac
  44156. - fi
  44157. - ;;
  44158. - esac
  44159. - archive_cmds_need_lc_GCJ=no
  44160. - hardcode_direct_GCJ=no
  44161. - hardcode_automatic_GCJ=yes
  44162. - hardcode_shlibpath_var_GCJ=unsupported
  44163. - whole_archive_flag_spec_GCJ=''
  44164. - link_all_deplibs_GCJ=yes
  44165. - if test "$GCC" = yes ; then
  44166. - output_verbose_link_cmd='echo'
  44167. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  44168. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  44169. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  44170. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44171. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44172. - else
  44173. - case $cc_basename in
  44174. - xlc*)
  44175. - output_verbose_link_cmd='echo'
  44176. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  44177. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  44178. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  44179. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44180. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44181. - ;;
  44182. - *)
  44183. - ld_shlibs_GCJ=no
  44184. - ;;
  44185. - esac
  44186. - fi
  44187. - ;;
  44188. -
  44189. - dgux*)
  44190. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44191. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  44192. - hardcode_shlibpath_var_GCJ=no
  44193. - ;;
  44194. -
  44195. - freebsd1*)
  44196. - ld_shlibs_GCJ=no
  44197. - ;;
  44198. +fi
  44199. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  44200. - # support. Future versions do this automatically, but an explicit c++rt0.o
  44201. - # does not break anything, and helps significantly (at the cost of a little
  44202. - # extra space).
  44203. - freebsd2.2*)
  44204. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  44205. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  44206. - hardcode_direct_GCJ=yes
  44207. - hardcode_shlibpath_var_GCJ=no
  44208. - ;;
  44209. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  44210. - freebsd2*)
  44211. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  44212. - hardcode_direct_GCJ=yes
  44213. - hardcode_minus_L_GCJ=yes
  44214. - hardcode_shlibpath_var_GCJ=no
  44215. - ;;
  44216. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  44217. - freebsd* | dragonfly*)
  44218. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  44219. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  44220. - hardcode_direct_GCJ=yes
  44221. - hardcode_shlibpath_var_GCJ=no
  44222. - ;;
  44223. +#
  44224. +# Check to make sure the static flag actually works.
  44225. +#
  44226. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  44227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  44228. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  44229. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  44230. + $as_echo_n "(cached) " >&6
  44231. +else
  44232. + lt_cv_prog_compiler_static_works_CXX=no
  44233. + save_LDFLAGS="$LDFLAGS"
  44234. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  44235. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  44236. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  44237. + # The linker can only warn and ignore the option if not recognized
  44238. + # So say no if there are warnings
  44239. + if test -s conftest.err; then
  44240. + # Append any errors to the config.log.
  44241. + cat conftest.err 1>&5
  44242. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  44243. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  44244. + if diff conftest.exp conftest.er2 >/dev/null; then
  44245. + lt_cv_prog_compiler_static_works_CXX=yes
  44246. + fi
  44247. + else
  44248. + lt_cv_prog_compiler_static_works_CXX=yes
  44249. + fi
  44250. + fi
  44251. + $RM -r conftest*
  44252. + LDFLAGS="$save_LDFLAGS"
  44253. - hpux9*)
  44254. - if test "$GCC" = yes; then
  44255. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  44256. - else
  44257. - archive_cmds_GCJ='$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'
  44258. - fi
  44259. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  44260. - hardcode_libdir_separator_GCJ=:
  44261. - hardcode_direct_GCJ=yes
  44262. +fi
  44263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  44264. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  44265. - # hardcode_minus_L: Not really in the search PATH,
  44266. - # but as the default location of the library.
  44267. - hardcode_minus_L_GCJ=yes
  44268. - export_dynamic_flag_spec_GCJ='${wl}-E'
  44269. - ;;
  44270. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  44271. + :
  44272. +else
  44273. + lt_prog_compiler_static_CXX=
  44274. +fi
  44275. - hpux10*)
  44276. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  44277. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  44278. - else
  44279. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  44280. - fi
  44281. - if test "$with_gnu_ld" = no; then
  44282. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  44283. - hardcode_libdir_separator_GCJ=:
  44284. - hardcode_direct_GCJ=yes
  44285. - export_dynamic_flag_spec_GCJ='${wl}-E'
  44286. - # hardcode_minus_L: Not really in the search PATH,
  44287. - # but as the default location of the library.
  44288. - hardcode_minus_L_GCJ=yes
  44289. - fi
  44290. - ;;
  44291. - hpux11*)
  44292. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  44293. - case $host_cpu in
  44294. - hppa*64*)
  44295. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44296. - ;;
  44297. - ia64*)
  44298. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  44299. - ;;
  44300. - *)
  44301. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  44302. - ;;
  44303. - esac
  44304. - else
  44305. - case $host_cpu in
  44306. - hppa*64*)
  44307. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44308. - ;;
  44309. - ia64*)
  44310. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  44311. - ;;
  44312. - *)
  44313. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  44314. - ;;
  44315. - esac
  44316. - fi
  44317. - if test "$with_gnu_ld" = no; then
  44318. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  44319. - hardcode_libdir_separator_GCJ=:
  44320. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  44321. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  44322. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  44323. + $as_echo_n "(cached) " >&6
  44324. +else
  44325. + lt_cv_prog_compiler_c_o_CXX=no
  44326. + $RM -r conftest 2>/dev/null
  44327. + mkdir conftest
  44328. + cd conftest
  44329. + mkdir out
  44330. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  44331. - case $host_cpu in
  44332. - hppa*64*|ia64*)
  44333. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  44334. - hardcode_direct_GCJ=no
  44335. - hardcode_shlibpath_var_GCJ=no
  44336. - ;;
  44337. - *)
  44338. - hardcode_direct_GCJ=yes
  44339. - export_dynamic_flag_spec_GCJ='${wl}-E'
  44340. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  44341. + # Insert the option either (1) after the last *FLAGS variable, or
  44342. + # (2) before a word containing "conftest.", or (3) at the end.
  44343. + # Note that $ac_compile itself does not contain backslashes and begins
  44344. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  44345. + lt_compile=`echo "$ac_compile" | $SED \
  44346. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  44347. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  44348. + -e 's:$: $lt_compiler_flag:'`
  44349. + (eval echo "\"\$as_me:20188: $lt_compile\"" >&5)
  44350. + (eval "$lt_compile" 2>out/conftest.err)
  44351. + ac_status=$?
  44352. + cat out/conftest.err >&5
  44353. + echo "$as_me:20192: \$? = $ac_status" >&5
  44354. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  44355. + then
  44356. + # The compiler can only warn and ignore the option if not recognized
  44357. + # So say no if there are warnings
  44358. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  44359. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  44360. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  44361. + lt_cv_prog_compiler_c_o_CXX=yes
  44362. + fi
  44363. + fi
  44364. + chmod u+w . 2>&5
  44365. + $RM conftest*
  44366. + # SGI C++ compiler will create directory out/ii_files/ for
  44367. + # template instantiation
  44368. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  44369. + $RM out/* && rmdir out
  44370. + cd ..
  44371. + $RM -r conftest
  44372. + $RM conftest*
  44373. - # hardcode_minus_L: Not really in the search PATH,
  44374. - # but as the default location of the library.
  44375. - hardcode_minus_L_GCJ=yes
  44376. - ;;
  44377. - esac
  44378. - fi
  44379. - ;;
  44380. +fi
  44381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  44382. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  44383. - irix5* | irix6* | nonstopux*)
  44384. - if test "$GCC" = yes; then
  44385. - archive_cmds_GCJ='$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'
  44386. - else
  44387. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  44388. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  44389. - fi
  44390. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  44391. - hardcode_libdir_separator_GCJ=:
  44392. - link_all_deplibs_GCJ=yes
  44393. - ;;
  44394. - netbsd*)
  44395. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  44396. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  44397. - else
  44398. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  44399. - fi
  44400. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  44401. - hardcode_direct_GCJ=yes
  44402. - hardcode_shlibpath_var_GCJ=no
  44403. - ;;
  44404. - newsos6)
  44405. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44406. - hardcode_direct_GCJ=yes
  44407. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  44408. - hardcode_libdir_separator_GCJ=:
  44409. - hardcode_shlibpath_var_GCJ=no
  44410. - ;;
  44411. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  44412. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  44413. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  44414. + $as_echo_n "(cached) " >&6
  44415. +else
  44416. + lt_cv_prog_compiler_c_o_CXX=no
  44417. + $RM -r conftest 2>/dev/null
  44418. + mkdir conftest
  44419. + cd conftest
  44420. + mkdir out
  44421. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  44422. - openbsd*)
  44423. - if test -f /usr/libexec/ld.so; then
  44424. - hardcode_direct_GCJ=yes
  44425. - hardcode_shlibpath_var_GCJ=no
  44426. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  44427. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  44428. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  44429. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  44430. - export_dynamic_flag_spec_GCJ='${wl}-E'
  44431. - else
  44432. - case $host_os in
  44433. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  44434. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  44435. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  44436. - ;;
  44437. - *)
  44438. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  44439. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  44440. - ;;
  44441. - esac
  44442. - fi
  44443. - else
  44444. - ld_shlibs_GCJ=no
  44445. - fi
  44446. - ;;
  44447. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  44448. + # Insert the option either (1) after the last *FLAGS variable, or
  44449. + # (2) before a word containing "conftest.", or (3) at the end.
  44450. + # Note that $ac_compile itself does not contain backslashes and begins
  44451. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  44452. + lt_compile=`echo "$ac_compile" | $SED \
  44453. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  44454. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  44455. + -e 's:$: $lt_compiler_flag:'`
  44456. + (eval echo "\"\$as_me:20240: $lt_compile\"" >&5)
  44457. + (eval "$lt_compile" 2>out/conftest.err)
  44458. + ac_status=$?
  44459. + cat out/conftest.err >&5
  44460. + echo "$as_me:20244: \$? = $ac_status" >&5
  44461. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  44462. + then
  44463. + # The compiler can only warn and ignore the option if not recognized
  44464. + # So say no if there are warnings
  44465. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  44466. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  44467. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  44468. + lt_cv_prog_compiler_c_o_CXX=yes
  44469. + fi
  44470. + fi
  44471. + chmod u+w . 2>&5
  44472. + $RM conftest*
  44473. + # SGI C++ compiler will create directory out/ii_files/ for
  44474. + # template instantiation
  44475. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  44476. + $RM out/* && rmdir out
  44477. + cd ..
  44478. + $RM -r conftest
  44479. + $RM conftest*
  44480. - os2*)
  44481. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  44482. - hardcode_minus_L_GCJ=yes
  44483. - allow_undefined_flag_GCJ=unsupported
  44484. - archive_cmds_GCJ='$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'
  44485. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  44486. - ;;
  44487. +fi
  44488. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  44489. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  44490. - osf3*)
  44491. - if test "$GCC" = yes; then
  44492. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  44493. - archive_cmds_GCJ='$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'
  44494. - else
  44495. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  44496. - archive_cmds_GCJ='$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'
  44497. - fi
  44498. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  44499. - hardcode_libdir_separator_GCJ=:
  44500. - ;;
  44501. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  44502. - if test "$GCC" = yes; then
  44503. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  44504. - archive_cmds_GCJ='$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'
  44505. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  44506. - else
  44507. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  44508. - archive_cmds_GCJ='$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'
  44509. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  44510. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  44511. - # Both c and cxx compiler support -rpath directly
  44512. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  44513. - fi
  44514. - hardcode_libdir_separator_GCJ=:
  44515. - ;;
  44516. - solaris*)
  44517. - no_undefined_flag_GCJ=' -z text'
  44518. - if test "$GCC" = yes; then
  44519. - wlarc='${wl}'
  44520. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44521. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  44522. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  44523. - else
  44524. - wlarc=''
  44525. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44526. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  44527. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  44528. - fi
  44529. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  44530. - hardcode_shlibpath_var_GCJ=no
  44531. - case $host_os in
  44532. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  44533. - *)
  44534. - # The compiler driver will combine and reorder linker options,
  44535. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  44536. - # but is careful enough not to reorder.
  44537. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  44538. - if test "$GCC" = yes; then
  44539. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  44540. - else
  44541. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  44542. - fi
  44543. - ;;
  44544. - esac
  44545. - link_all_deplibs_GCJ=yes
  44546. - ;;
  44547. +hard_links="nottested"
  44548. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  44549. + # do not overwrite the value of need_locks provided by the user
  44550. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  44551. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  44552. + hard_links=yes
  44553. + $RM conftest*
  44554. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  44555. + touch conftest.a
  44556. + ln conftest.a conftest.b 2>&5 || hard_links=no
  44557. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  44558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  44559. +$as_echo "$hard_links" >&6; }
  44560. + if test "$hard_links" = no; then
  44561. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  44562. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  44563. + need_locks=warn
  44564. + fi
  44565. +else
  44566. + need_locks=no
  44567. +fi
  44568. - sunos4*)
  44569. - if test "x$host_vendor" = xsequent; then
  44570. - # Use $CC to link under sequent, because it throws in some extra .o
  44571. - # files that make .init and .fini sections work.
  44572. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  44573. - else
  44574. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  44575. - fi
  44576. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  44577. - hardcode_direct_GCJ=yes
  44578. - hardcode_minus_L_GCJ=yes
  44579. - hardcode_shlibpath_var_GCJ=no
  44580. - ;;
  44581. - sysv4)
  44582. - case $host_vendor in
  44583. - sni)
  44584. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44585. - hardcode_direct_GCJ=yes # is this really true???
  44586. - ;;
  44587. - siemens)
  44588. - ## LD is ld it makes a PLAMLIB
  44589. - ## CC just makes a GrossModule.
  44590. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  44591. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  44592. - hardcode_direct_GCJ=no
  44593. - ;;
  44594. - motorola)
  44595. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44596. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  44597. - ;;
  44598. - esac
  44599. - runpath_var='LD_RUN_PATH'
  44600. - hardcode_shlibpath_var_GCJ=no
  44601. - ;;
  44602. - sysv4.3*)
  44603. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44604. - hardcode_shlibpath_var_GCJ=no
  44605. - export_dynamic_flag_spec_GCJ='-Bexport'
  44606. - ;;
  44607. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  44608. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  44609. - sysv4*MP*)
  44610. - if test -d /usr/nec; then
  44611. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44612. - hardcode_shlibpath_var_GCJ=no
  44613. - runpath_var=LD_RUN_PATH
  44614. - hardcode_runpath_var=yes
  44615. - ld_shlibs_GCJ=yes
  44616. - fi
  44617. - ;;
  44618. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  44619. + case $host_os in
  44620. + aix[4-9]*)
  44621. + # If we're using GNU nm, then we don't want the "-C" option.
  44622. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  44623. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  44624. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  44625. + else
  44626. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  44627. + fi
  44628. + ;;
  44629. + pw32*)
  44630. + export_symbols_cmds_CXX="$ltdll_cmds"
  44631. + ;;
  44632. + cygwin* | mingw* | cegcc*)
  44633. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  44634. + ;;
  44635. + linux* | k*bsd*-gnu)
  44636. + link_all_deplibs_CXX=no
  44637. + ;;
  44638. + *)
  44639. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  44640. + ;;
  44641. + esac
  44642. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  44643. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  44644. - no_undefined_flag_GCJ='${wl}-z,text'
  44645. - archive_cmds_need_lc_GCJ=no
  44646. - hardcode_shlibpath_var_GCJ=no
  44647. - runpath_var='LD_RUN_PATH'
  44648. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  44649. +$as_echo "$ld_shlibs_CXX" >&6; }
  44650. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  44651. - if test "$GCC" = yes; then
  44652. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  44653. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  44654. - else
  44655. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  44656. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  44657. - fi
  44658. - ;;
  44659. +with_gnu_ld_CXX=$with_gnu_ld
  44660. - sysv5* | sco3.2v5* | sco5v6*)
  44661. - # Note: We can NOT use -z defs as we might desire, because we do not
  44662. - # link with -lc, and that would cause any symbols used from libc to
  44663. - # always be unresolved, which means just about no library would
  44664. - # ever link correctly. If we're not using GNU ld we use -z text
  44665. - # though, which does catch some bad symbols but isn't as heavy-handed
  44666. - # as -z defs.
  44667. - no_undefined_flag_GCJ='${wl}-z,text'
  44668. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  44669. - archive_cmds_need_lc_GCJ=no
  44670. - hardcode_shlibpath_var_GCJ=no
  44671. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  44672. - hardcode_libdir_separator_GCJ=':'
  44673. - link_all_deplibs_GCJ=yes
  44674. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  44675. - runpath_var='LD_RUN_PATH'
  44676. - if test "$GCC" = yes; then
  44677. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44678. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44679. - else
  44680. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44681. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  44682. - fi
  44683. - ;;
  44684. - uts4*)
  44685. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  44686. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  44687. - hardcode_shlibpath_var_GCJ=no
  44688. - ;;
  44689. - *)
  44690. - ld_shlibs_GCJ=no
  44691. - ;;
  44692. - esac
  44693. - fi
  44694. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  44695. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  44696. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  44697. #
  44698. # Do we need to explicitly link libc?
  44699. #
  44700. -case "x$archive_cmds_need_lc_GCJ" in
  44701. +case "x$archive_cmds_need_lc_CXX" in
  44702. x|xyes)
  44703. # Assume -lc should be added
  44704. - archive_cmds_need_lc_GCJ=yes
  44705. + archive_cmds_need_lc_CXX=yes
  44706. if test "$enable_shared" = yes && test "$GCC" = yes; then
  44707. - case $archive_cmds_GCJ in
  44708. + case $archive_cmds_CXX in
  44709. *'~'*)
  44710. # FIXME: we may have to deal with multi-command sequences.
  44711. ;;
  44712. @@ -23937,54 +20350,118 @@
  44713. # Test whether the compiler implicitly links with -lc since on some
  44714. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  44715. # to ld, don't add -lc before -lgcc.
  44716. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  44717. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  44718. - $rm conftest*
  44719. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  44720. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  44721. + $RM conftest*
  44722. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  44723. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  44724. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44725. (eval $ac_compile) 2>&5
  44726. ac_status=$?
  44727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44728. - (exit $ac_status); } 2>conftest.err; then
  44729. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44730. + test $ac_status = 0; } 2>conftest.err; then
  44731. soname=conftest
  44732. lib=conftest
  44733. libobjs=conftest.$ac_objext
  44734. deplibs=
  44735. - wl=$lt_prog_compiler_wl_GCJ
  44736. - pic_flag=$lt_prog_compiler_pic_GCJ
  44737. + wl=$lt_prog_compiler_wl_CXX
  44738. + pic_flag=$lt_prog_compiler_pic_CXX
  44739. compiler_flags=-v
  44740. linker_flags=-v
  44741. verstring=
  44742. output_objdir=.
  44743. libname=conftest
  44744. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  44745. - allow_undefined_flag_GCJ=
  44746. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  44747. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  44748. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  44749. + allow_undefined_flag_CXX=
  44750. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  44751. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  44752. ac_status=$?
  44753. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44754. - (exit $ac_status); }
  44755. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44756. + test $ac_status = 0; }
  44757. then
  44758. - archive_cmds_need_lc_GCJ=no
  44759. + archive_cmds_need_lc_CXX=no
  44760. else
  44761. - archive_cmds_need_lc_GCJ=yes
  44762. + archive_cmds_need_lc_CXX=yes
  44763. fi
  44764. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  44765. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  44766. else
  44767. cat conftest.err 1>&5
  44768. fi
  44769. - $rm conftest*
  44770. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  44771. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  44772. + $RM conftest*
  44773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  44774. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  44775. ;;
  44776. esac
  44777. fi
  44778. ;;
  44779. esac
  44780. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  44781. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  44782. +
  44783. +
  44784. +
  44785. +
  44786. +
  44787. +
  44788. +
  44789. +
  44790. +
  44791. +
  44792. +
  44793. +
  44794. +
  44795. +
  44796. +
  44797. +
  44798. +
  44799. +
  44800. +
  44801. +
  44802. +
  44803. +
  44804. +
  44805. +
  44806. +
  44807. +
  44808. +
  44809. +
  44810. +
  44811. +
  44812. +
  44813. +
  44814. +
  44815. +
  44816. +
  44817. +
  44818. +
  44819. +
  44820. +
  44821. +
  44822. +
  44823. +
  44824. +
  44825. +
  44826. +
  44827. +
  44828. +
  44829. +
  44830. +
  44831. +
  44832. +
  44833. +
  44834. +
  44835. +
  44836. +
  44837. +
  44838. +
  44839. +
  44840. +
  44841. +
  44842. +
  44843. +
  44844. +
  44845. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  44846. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  44847. +
  44848. library_names_spec=
  44849. libname_spec='lib$name'
  44850. soname_spec=
  44851. @@ -23998,7 +20475,6 @@
  44852. version_type=none
  44853. dynamic_linker="$host_os ld.so"
  44854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  44855. -
  44856. need_lib_prefix=unknown
  44857. hardcode_into_libs=no
  44858. @@ -24016,7 +20492,7 @@
  44859. soname_spec='${libname}${release}${shared_ext}$major'
  44860. ;;
  44861. -aix4* | aix5*)
  44862. +aix[4-9]*)
  44863. version_type=linux
  44864. need_lib_prefix=no
  44865. need_version=no
  44866. @@ -24035,7 +20511,7 @@
  44867. aix4 | aix4.[01] | aix4.[01].*)
  44868. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  44869. echo ' yes '
  44870. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  44871. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  44872. :
  44873. else
  44874. can_build_shared=no
  44875. @@ -24061,9 +20537,18 @@
  44876. ;;
  44877. amigaos*)
  44878. - library_names_spec='$libname.ixlibrary $libname.a'
  44879. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  44880. - 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'
  44881. + case $host_cpu in
  44882. + powerpc)
  44883. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  44884. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  44885. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  44886. + ;;
  44887. + m68k)
  44888. + library_names_spec='$libname.ixlibrary $libname.a'
  44889. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  44890. + 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'
  44891. + ;;
  44892. + esac
  44893. ;;
  44894. beos*)
  44895. @@ -24086,25 +20571,28 @@
  44896. # libtool to hard-code these into programs
  44897. ;;
  44898. -cygwin* | mingw* | pw32*)
  44899. +cygwin* | mingw* | pw32* | cegcc*)
  44900. version_type=windows
  44901. shrext_cmds=".dll"
  44902. need_version=no
  44903. need_lib_prefix=no
  44904. case $GCC,$host_os in
  44905. - yes,cygwin* | yes,mingw* | yes,pw32*)
  44906. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  44907. library_names_spec='$libname.dll.a'
  44908. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  44909. postinstall_cmds='base_file=`basename \${file}`~
  44910. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  44911. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  44912. dldir=$destdir/`dirname \$dlpath`~
  44913. test -d \$dldir || mkdir -p \$dldir~
  44914. $install_prog $dir/$dlname \$dldir/$dlname~
  44915. - chmod a+x \$dldir/$dlname'
  44916. + chmod a+x \$dldir/$dlname~
  44917. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  44918. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  44919. + fi'
  44920. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  44921. dlpath=$dir/\$dldll~
  44922. - $rm \$dlpath'
  44923. + $RM \$dlpath'
  44924. shlibpath_overrides_runpath=yes
  44925. case $host_os in
  44926. @@ -24113,20 +20601,20 @@
  44927. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  44928. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  44929. ;;
  44930. - mingw*)
  44931. + mingw* | cegcc*)
  44932. # MinGW DLLs use traditional 'lib' prefix
  44933. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  44934. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  44935. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  44936. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  44937. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  44938. # It is most probably a Windows format PATH printed by
  44939. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  44940. # path with ; separators, and with drive letters. We can handle the
  44941. # drive letters (cygwin fileutils understands them), so leave them,
  44942. # especially as we might pass files found there to a mingw objdump,
  44943. # which wouldn't understand a cygwinified path. Ahh.
  44944. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  44945. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  44946. else
  44947. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  44948. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  44949. fi
  44950. ;;
  44951. pw32*)
  44952. @@ -24150,7 +20638,7 @@
  44953. version_type=darwin
  44954. need_lib_prefix=no
  44955. need_version=no
  44956. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  44957. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  44958. soname_spec='${libname}${release}${major}$shared_ext'
  44959. shlibpath_overrides_runpath=yes
  44960. shlibpath_var=DYLD_LIBRARY_PATH
  44961. @@ -24248,18 +20736,18 @@
  44962. fi
  44963. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  44964. ;;
  44965. - hppa*64*)
  44966. - shrext_cmds='.sl'
  44967. - hardcode_into_libs=yes
  44968. - dynamic_linker="$host_os dld.sl"
  44969. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  44970. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  44971. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  44972. - soname_spec='${libname}${release}${shared_ext}$major'
  44973. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  44974. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  44975. - ;;
  44976. - *)
  44977. + hppa*64*)
  44978. + shrext_cmds='.sl'
  44979. + hardcode_into_libs=yes
  44980. + dynamic_linker="$host_os dld.sl"
  44981. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  44982. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  44983. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  44984. + soname_spec='${libname}${release}${shared_ext}$major'
  44985. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  44986. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  44987. + ;;
  44988. + *)
  44989. shrext_cmds='.sl'
  44990. dynamic_linker="$host_os dld.sl"
  44991. shlibpath_var=SHLIB_PATH
  44992. @@ -24327,7 +20815,7 @@
  44993. ;;
  44994. # This must be Linux ELF.
  44995. -linux* | k*bsd*-gnu)
  44996. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  44997. version_type=linux
  44998. need_lib_prefix=no
  44999. need_version=no
  45000. @@ -24336,6 +20824,32 @@
  45001. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  45002. shlibpath_var=LD_LIBRARY_PATH
  45003. shlibpath_overrides_runpath=no
  45004. + # Some binutils ld are patched to set DT_RUNPATH
  45005. + save_LDFLAGS=$LDFLAGS
  45006. + save_libdir=$libdir
  45007. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  45008. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  45009. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45010. +/* end confdefs.h. */
  45011. +
  45012. +int
  45013. +main ()
  45014. +{
  45015. +
  45016. + ;
  45017. + return 0;
  45018. +}
  45019. +_ACEOF
  45020. +if ac_fn_cxx_try_link "$LINENO"; then :
  45021. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  45022. + shlibpath_overrides_runpath=yes
  45023. +fi
  45024. +fi
  45025. +rm -f core conftest.err conftest.$ac_objext \
  45026. + conftest$ac_exeext conftest.$ac_ext
  45027. + LDFLAGS=$save_LDFLAGS
  45028. + libdir=$save_libdir
  45029. +
  45030. # This implies no fast_install, which is unacceptable.
  45031. # Some rework will be needed to allow for fast_install
  45032. # before this can be enabled.
  45033. @@ -24343,7 +20857,7 @@
  45034. # Append ld.so.conf contents to the search path
  45035. if test -f /etc/ld.so.conf; then
  45036. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  45037. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  45038. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  45039. fi
  45040. @@ -24356,11 +20870,23 @@
  45041. dynamic_linker='GNU/Linux ld.so'
  45042. ;;
  45043. +netbsdelf*-gnu)
  45044. + version_type=linux
  45045. + need_lib_prefix=no
  45046. + need_version=no
  45047. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  45048. + soname_spec='${libname}${release}${shared_ext}$major'
  45049. + shlibpath_var=LD_LIBRARY_PATH
  45050. + shlibpath_overrides_runpath=no
  45051. + hardcode_into_libs=yes
  45052. + dynamic_linker='NetBSD ld.elf_so'
  45053. + ;;
  45054. +
  45055. netbsd*)
  45056. version_type=sunos
  45057. need_lib_prefix=no
  45058. need_version=no
  45059. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  45060. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  45061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  45062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  45063. dynamic_linker='NetBSD (a.out) ld.so'
  45064. @@ -24381,14 +20907,16 @@
  45065. shlibpath_overrides_runpath=yes
  45066. ;;
  45067. -nto-qnx*)
  45068. - version_type=linux
  45069. +*nto* | *qnx*)
  45070. + version_type=qnx
  45071. need_lib_prefix=no
  45072. need_version=no
  45073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  45074. soname_spec='${libname}${release}${shared_ext}$major'
  45075. shlibpath_var=LD_LIBRARY_PATH
  45076. - shlibpath_overrides_runpath=yes
  45077. + shlibpath_overrides_runpath=no
  45078. + hardcode_into_libs=yes
  45079. + dynamic_linker='ldqnx.so'
  45080. ;;
  45081. openbsd*)
  45082. @@ -24397,13 +20925,13 @@
  45083. need_lib_prefix=no
  45084. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  45085. case $host_os in
  45086. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  45087. - *) need_version=no ;;
  45088. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  45089. + *) need_version=no ;;
  45090. esac
  45091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  45092. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  45093. shlibpath_var=LD_LIBRARY_PATH
  45094. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  45095. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  45096. case $host_os in
  45097. openbsd2.[89] | openbsd2.[89].*)
  45098. shlibpath_overrides_runpath=no
  45099. @@ -24475,7 +21003,6 @@
  45100. sni)
  45101. shlibpath_overrides_runpath=no
  45102. need_lib_prefix=no
  45103. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  45104. runpath_var=LD_RUN_PATH
  45105. ;;
  45106. siemens)
  45107. @@ -24488,1349 +21015,2567 @@
  45108. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  45109. ;;
  45110. esac
  45111. - ;;
  45112. + ;;
  45113. +
  45114. +sysv4*MP*)
  45115. + if test -d /usr/nec ;then
  45116. + version_type=linux
  45117. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  45118. + soname_spec='$libname${shared_ext}.$major'
  45119. + shlibpath_var=LD_LIBRARY_PATH
  45120. + fi
  45121. + ;;
  45122. +
  45123. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  45124. + version_type=freebsd-elf
  45125. + need_lib_prefix=no
  45126. + need_version=no
  45127. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  45128. + soname_spec='${libname}${release}${shared_ext}$major'
  45129. + shlibpath_var=LD_LIBRARY_PATH
  45130. + shlibpath_overrides_runpath=yes
  45131. + hardcode_into_libs=yes
  45132. + if test "$with_gnu_ld" = yes; then
  45133. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  45134. + else
  45135. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  45136. + case $host_os in
  45137. + sco3.2v5*)
  45138. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  45139. + ;;
  45140. + esac
  45141. + fi
  45142. + sys_lib_dlsearch_path_spec='/usr/lib'
  45143. + ;;
  45144. +
  45145. +tpf*)
  45146. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  45147. + version_type=linux
  45148. + need_lib_prefix=no
  45149. + need_version=no
  45150. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  45151. + shlibpath_var=LD_LIBRARY_PATH
  45152. + shlibpath_overrides_runpath=no
  45153. + hardcode_into_libs=yes
  45154. + ;;
  45155. +
  45156. +uts4*)
  45157. + version_type=linux
  45158. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  45159. + soname_spec='${libname}${release}${shared_ext}$major'
  45160. + shlibpath_var=LD_LIBRARY_PATH
  45161. + ;;
  45162. +
  45163. +*)
  45164. + dynamic_linker=no
  45165. + ;;
  45166. +esac
  45167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  45168. +$as_echo "$dynamic_linker" >&6; }
  45169. +test "$dynamic_linker" = no && can_build_shared=no
  45170. +
  45171. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  45172. +if test "$GCC" = yes; then
  45173. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  45174. +fi
  45175. +
  45176. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  45177. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  45178. +fi
  45179. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  45180. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  45181. +fi
  45182. +
  45183. +
  45184. +
  45185. +
  45186. +
  45187. +
  45188. +
  45189. +
  45190. +
  45191. +
  45192. +
  45193. +
  45194. +
  45195. +
  45196. +
  45197. +
  45198. +
  45199. +
  45200. +
  45201. +
  45202. +
  45203. +
  45204. +
  45205. +
  45206. +
  45207. +
  45208. +
  45209. +
  45210. +
  45211. +
  45212. +
  45213. +
  45214. +
  45215. +
  45216. +
  45217. +
  45218. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  45219. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  45220. +hardcode_action_CXX=
  45221. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  45222. + test -n "$runpath_var_CXX" ||
  45223. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  45224. +
  45225. + # We can hardcode non-existent directories.
  45226. + if test "$hardcode_direct_CXX" != no &&
  45227. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  45228. + # have to relink, otherwise we might link with an installed library
  45229. + # when we should be linking with a yet-to-be-installed one
  45230. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  45231. + test "$hardcode_minus_L_CXX" != no; then
  45232. + # Linking always hardcodes the temporary library directory.
  45233. + hardcode_action_CXX=relink
  45234. + else
  45235. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  45236. + hardcode_action_CXX=immediate
  45237. + fi
  45238. +else
  45239. + # We cannot hardcode anything, or else we can only hardcode existing
  45240. + # directories.
  45241. + hardcode_action_CXX=unsupported
  45242. +fi
  45243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  45244. +$as_echo "$hardcode_action_CXX" >&6; }
  45245. +
  45246. +if test "$hardcode_action_CXX" = relink ||
  45247. + test "$inherit_rpath_CXX" = yes; then
  45248. + # Fast installation is not supported
  45249. + enable_fast_install=no
  45250. +elif test "$shlibpath_overrides_runpath" = yes ||
  45251. + test "$enable_shared" = no; then
  45252. + # Fast installation is not necessary
  45253. + enable_fast_install=needless
  45254. +fi
  45255. +
  45256. +
  45257. +
  45258. +
  45259. +
  45260. +
  45261. +
  45262. + fi # test -n "$compiler"
  45263. +
  45264. + CC=$lt_save_CC
  45265. + LDCXX=$LD
  45266. + LD=$lt_save_LD
  45267. + GCC=$lt_save_GCC
  45268. + with_gnu_ld=$lt_save_with_gnu_ld
  45269. + lt_cv_path_LDCXX=$lt_cv_path_LD
  45270. + lt_cv_path_LD=$lt_save_path_LD
  45271. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  45272. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  45273. +fi # test "$_lt_caught_CXX_error" != yes
  45274. +
  45275. +ac_ext=c
  45276. +ac_cpp='$CPP $CPPFLAGS'
  45277. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45278. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45279. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45280. +
  45281. +
  45282. +
  45283. + ac_ext=f
  45284. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  45285. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45286. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  45287. +
  45288. +
  45289. +archive_cmds_need_lc_F77=no
  45290. +allow_undefined_flag_F77=
  45291. +always_export_symbols_F77=no
  45292. +archive_expsym_cmds_F77=
  45293. +export_dynamic_flag_spec_F77=
  45294. +hardcode_direct_F77=no
  45295. +hardcode_direct_absolute_F77=no
  45296. +hardcode_libdir_flag_spec_F77=
  45297. +hardcode_libdir_flag_spec_ld_F77=
  45298. +hardcode_libdir_separator_F77=
  45299. +hardcode_minus_L_F77=no
  45300. +hardcode_automatic_F77=no
  45301. +inherit_rpath_F77=no
  45302. +module_cmds_F77=
  45303. +module_expsym_cmds_F77=
  45304. +link_all_deplibs_F77=unknown
  45305. +old_archive_cmds_F77=$old_archive_cmds
  45306. +no_undefined_flag_F77=
  45307. +whole_archive_flag_spec_F77=
  45308. +enable_shared_with_static_runtimes_F77=no
  45309. +
  45310. +# Source file extension for f77 test sources.
  45311. +ac_ext=f
  45312. +
  45313. +# Object file extension for compiled f77 test sources.
  45314. +objext=o
  45315. +objext_F77=$objext
  45316. +
  45317. +# No sense in running all these tests if we already determined that
  45318. +# the F77 compiler isn't working. Some variables (like enable_shared)
  45319. +# are currently assumed to apply to all compilers on this platform,
  45320. +# and will be corrupted by setting them based on a non-working compiler.
  45321. +if test "$_lt_disable_F77" != yes; then
  45322. + # Code to be used in simple compile tests
  45323. + lt_simple_compile_test_code="\
  45324. + subroutine t
  45325. + return
  45326. + end
  45327. +"
  45328. +
  45329. + # Code to be used in simple link tests
  45330. + lt_simple_link_test_code="\
  45331. + program t
  45332. + end
  45333. +"
  45334. +
  45335. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  45336. +
  45337. +
  45338. +
  45339. +
  45340. +
  45341. +
  45342. +# If no C compiler was specified, use CC.
  45343. +LTCC=${LTCC-"$CC"}
  45344. +
  45345. +# If no C compiler flags were specified, use CFLAGS.
  45346. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  45347. +
  45348. +# Allow CC to be a program name with arguments.
  45349. +compiler=$CC
  45350. +
  45351. +
  45352. + # save warnings/boilerplate of simple test code
  45353. + ac_outfile=conftest.$ac_objext
  45354. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  45355. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  45356. +_lt_compiler_boilerplate=`cat conftest.err`
  45357. +$RM conftest*
  45358. +
  45359. + ac_outfile=conftest.$ac_objext
  45360. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  45361. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  45362. +_lt_linker_boilerplate=`cat conftest.err`
  45363. +$RM -r conftest*
  45364. +
  45365. +
  45366. + # Allow CC to be a program name with arguments.
  45367. + lt_save_CC="$CC"
  45368. + lt_save_GCC=$GCC
  45369. + CC=${F77-"f77"}
  45370. + compiler=$CC
  45371. + compiler_F77=$CC
  45372. + for cc_temp in $compiler""; do
  45373. + case $cc_temp in
  45374. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  45375. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  45376. + \-*) ;;
  45377. + *) break;;
  45378. + esac
  45379. +done
  45380. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  45381. -sysv4*MP*)
  45382. - if test -d /usr/nec ;then
  45383. - version_type=linux
  45384. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  45385. - soname_spec='$libname${shared_ext}.$major'
  45386. - shlibpath_var=LD_LIBRARY_PATH
  45387. - fi
  45388. - ;;
  45389. + GCC=$G77
  45390. + if test -n "$compiler"; then
  45391. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  45392. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  45393. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  45394. +$as_echo "$can_build_shared" >&6; }
  45395. +
  45396. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  45397. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  45398. + test "$can_build_shared" = "no" && enable_shared=no
  45399. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  45400. - version_type=freebsd-elf
  45401. - need_lib_prefix=no
  45402. - need_version=no
  45403. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  45404. - soname_spec='${libname}${release}${shared_ext}$major'
  45405. - shlibpath_var=LD_LIBRARY_PATH
  45406. - hardcode_into_libs=yes
  45407. - if test "$with_gnu_ld" = yes; then
  45408. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  45409. - shlibpath_overrides_runpath=no
  45410. - else
  45411. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  45412. - shlibpath_overrides_runpath=yes
  45413. + # On AIX, shared libraries and static libraries use the same namespace, and
  45414. + # are all built from PIC.
  45415. case $host_os in
  45416. - sco3.2v5*)
  45417. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  45418. - ;;
  45419. + aix3*)
  45420. + test "$enable_shared" = yes && enable_static=no
  45421. + if test -n "$RANLIB"; then
  45422. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  45423. + postinstall_cmds='$RANLIB $lib'
  45424. + fi
  45425. + ;;
  45426. + aix[4-9]*)
  45427. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  45428. + test "$enable_shared" = yes && enable_static=no
  45429. + fi
  45430. + ;;
  45431. esac
  45432. - fi
  45433. - sys_lib_dlsearch_path_spec='/usr/lib'
  45434. - ;;
  45435. -
  45436. -uts4*)
  45437. - version_type=linux
  45438. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  45439. - soname_spec='${libname}${release}${shared_ext}$major'
  45440. - shlibpath_var=LD_LIBRARY_PATH
  45441. - ;;
  45442. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  45443. +$as_echo "$enable_shared" >&6; }
  45444. -*)
  45445. - dynamic_linker=no
  45446. - ;;
  45447. -esac
  45448. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  45449. -echo "${ECHO_T}$dynamic_linker" >&6; }
  45450. -test "$dynamic_linker" = no && can_build_shared=no
  45451. -
  45452. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  45453. -if test "$GCC" = yes; then
  45454. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  45455. -fi
  45456. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  45457. +$as_echo_n "checking whether to build static libraries... " >&6; }
  45458. + # Make sure either enable_shared or enable_static is yes.
  45459. + test "$enable_shared" = yes || enable_static=yes
  45460. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  45461. +$as_echo "$enable_static" >&6; }
  45462. +
  45463. + GCC_F77="$G77"
  45464. + LD_F77="$LD"
  45465. +
  45466. + ## CAVEAT EMPTOR:
  45467. + ## There is no encapsulation within the following macros, do not change
  45468. + ## the running order or otherwise move them around unless you know exactly
  45469. + ## what you are doing...
  45470. + lt_prog_compiler_wl_F77=
  45471. +lt_prog_compiler_pic_F77=
  45472. +lt_prog_compiler_static_F77=
  45473. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  45474. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  45475. -hardcode_action_GCJ=
  45476. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  45477. - test -n "$runpath_var_GCJ" || \
  45478. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  45479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  45480. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  45481. - # We can hardcode non-existant directories.
  45482. - if test "$hardcode_direct_GCJ" != no &&
  45483. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  45484. - # have to relink, otherwise we might link with an installed library
  45485. - # when we should be linking with a yet-to-be-installed one
  45486. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  45487. - test "$hardcode_minus_L_GCJ" != no; then
  45488. - # Linking always hardcodes the temporary library directory.
  45489. - hardcode_action_GCJ=relink
  45490. - else
  45491. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  45492. - hardcode_action_GCJ=immediate
  45493. - fi
  45494. -else
  45495. - # We cannot hardcode anything, or else we can only hardcode existing
  45496. - # directories.
  45497. - hardcode_action_GCJ=unsupported
  45498. -fi
  45499. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  45500. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  45501. + if test "$GCC" = yes; then
  45502. + lt_prog_compiler_wl_F77='-Wl,'
  45503. + lt_prog_compiler_static_F77='-static'
  45504. -if test "$hardcode_action_GCJ" = relink; then
  45505. - # Fast installation is not supported
  45506. - enable_fast_install=no
  45507. -elif test "$shlibpath_overrides_runpath" = yes ||
  45508. - test "$enable_shared" = no; then
  45509. - # Fast installation is not necessary
  45510. - enable_fast_install=needless
  45511. -fi
  45512. + case $host_os in
  45513. + aix*)
  45514. + # All AIX code is PIC.
  45515. + if test "$host_cpu" = ia64; then
  45516. + # AIX 5 now supports IA64 processor
  45517. + lt_prog_compiler_static_F77='-Bstatic'
  45518. + fi
  45519. + ;;
  45520. + amigaos*)
  45521. + case $host_cpu in
  45522. + powerpc)
  45523. + # see comment about AmigaOS4 .so support
  45524. + lt_prog_compiler_pic_F77='-fPIC'
  45525. + ;;
  45526. + m68k)
  45527. + # FIXME: we need at least 68020 code to build shared libraries, but
  45528. + # adding the `-m68020' flag to GCC prevents building anything better,
  45529. + # like `-m68040'.
  45530. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  45531. + ;;
  45532. + esac
  45533. + ;;
  45534. -# The else clause should only fire when bootstrapping the
  45535. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  45536. -# with your package, and you will get complaints that there are
  45537. -# no rules to generate ltmain.sh.
  45538. -if test -f "$ltmain"; then
  45539. - # See if we are running on zsh, and set the options which allow our commands through
  45540. - # without removal of \ escapes.
  45541. - if test -n "${ZSH_VERSION+set}" ; then
  45542. - setopt NO_GLOB_SUBST
  45543. - fi
  45544. - # Now quote all the things that may contain metacharacters while being
  45545. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  45546. - # variables and quote the copies for generation of the libtool script.
  45547. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  45548. - SED SHELL STRIP \
  45549. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  45550. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  45551. - deplibs_check_method reload_flag reload_cmds need_locks \
  45552. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  45553. - lt_cv_sys_global_symbol_to_c_name_address \
  45554. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  45555. - old_postinstall_cmds old_postuninstall_cmds \
  45556. - compiler_GCJ \
  45557. - CC_GCJ \
  45558. - LD_GCJ \
  45559. - lt_prog_compiler_wl_GCJ \
  45560. - lt_prog_compiler_pic_GCJ \
  45561. - lt_prog_compiler_static_GCJ \
  45562. - lt_prog_compiler_no_builtin_flag_GCJ \
  45563. - export_dynamic_flag_spec_GCJ \
  45564. - thread_safe_flag_spec_GCJ \
  45565. - whole_archive_flag_spec_GCJ \
  45566. - enable_shared_with_static_runtimes_GCJ \
  45567. - old_archive_cmds_GCJ \
  45568. - old_archive_from_new_cmds_GCJ \
  45569. - predep_objects_GCJ \
  45570. - postdep_objects_GCJ \
  45571. - predeps_GCJ \
  45572. - postdeps_GCJ \
  45573. - compiler_lib_search_path_GCJ \
  45574. - archive_cmds_GCJ \
  45575. - archive_expsym_cmds_GCJ \
  45576. - postinstall_cmds_GCJ \
  45577. - postuninstall_cmds_GCJ \
  45578. - old_archive_from_expsyms_cmds_GCJ \
  45579. - allow_undefined_flag_GCJ \
  45580. - no_undefined_flag_GCJ \
  45581. - export_symbols_cmds_GCJ \
  45582. - hardcode_libdir_flag_spec_GCJ \
  45583. - hardcode_libdir_flag_spec_ld_GCJ \
  45584. - hardcode_libdir_separator_GCJ \
  45585. - hardcode_automatic_GCJ \
  45586. - module_cmds_GCJ \
  45587. - module_expsym_cmds_GCJ \
  45588. - lt_cv_prog_compiler_c_o_GCJ \
  45589. - fix_srcfile_path_GCJ \
  45590. - exclude_expsyms_GCJ \
  45591. - include_expsyms_GCJ; do
  45592. -
  45593. - case $var in
  45594. - old_archive_cmds_GCJ | \
  45595. - old_archive_from_new_cmds_GCJ | \
  45596. - archive_cmds_GCJ | \
  45597. - archive_expsym_cmds_GCJ | \
  45598. - module_cmds_GCJ | \
  45599. - module_expsym_cmds_GCJ | \
  45600. - old_archive_from_expsyms_cmds_GCJ | \
  45601. - export_symbols_cmds_GCJ | \
  45602. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  45603. - postinstall_cmds | postuninstall_cmds | \
  45604. - old_postinstall_cmds | old_postuninstall_cmds | \
  45605. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  45606. - # Double-quote double-evaled strings.
  45607. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  45608. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  45609. + # PIC is the default for these OSes.
  45610. ;;
  45611. - *)
  45612. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  45613. +
  45614. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  45615. + # This hack is so that the source file can tell whether it is being
  45616. + # built for inclusion in a dll (and should export symbols for example).
  45617. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  45618. + # (--disable-auto-import) libraries
  45619. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  45620. ;;
  45621. - esac
  45622. - done
  45623. - case $lt_echo in
  45624. - *'\$0 --fallback-echo"')
  45625. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  45626. - ;;
  45627. - esac
  45628. + darwin* | rhapsody*)
  45629. + # PIC is the default on this platform
  45630. + # Common symbols not allowed in MH_DYLIB files
  45631. + lt_prog_compiler_pic_F77='-fno-common'
  45632. + ;;
  45633. -cfgfile="$ofile"
  45634. + hpux*)
  45635. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  45636. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  45637. + # sets the default TLS model and affects inlining.
  45638. + case $host_cpu in
  45639. + hppa*64*)
  45640. + # +Z the default
  45641. + ;;
  45642. + *)
  45643. + lt_prog_compiler_pic_F77='-fPIC'
  45644. + ;;
  45645. + esac
  45646. + ;;
  45647. - cat <<__EOF__ >> "$cfgfile"
  45648. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  45649. + interix[3-9]*)
  45650. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  45651. + # Instead, we relocate shared libraries at runtime.
  45652. + ;;
  45653. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  45654. + msdosdjgpp*)
  45655. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  45656. + # on systems that don't support them.
  45657. + lt_prog_compiler_can_build_shared_F77=no
  45658. + enable_shared=no
  45659. + ;;
  45660. -# Shell to use when invoking shell scripts.
  45661. -SHELL=$lt_SHELL
  45662. + *nto* | *qnx*)
  45663. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  45664. + # it will coredump.
  45665. + lt_prog_compiler_pic_F77='-fPIC -shared'
  45666. + ;;
  45667. -# Whether or not to build shared libraries.
  45668. -build_libtool_libs=$enable_shared
  45669. + sysv4*MP*)
  45670. + if test -d /usr/nec; then
  45671. + lt_prog_compiler_pic_F77=-Kconform_pic
  45672. + fi
  45673. + ;;
  45674. -# Whether or not to build static libraries.
  45675. -build_old_libs=$enable_static
  45676. + *)
  45677. + lt_prog_compiler_pic_F77='-fPIC'
  45678. + ;;
  45679. + esac
  45680. + else
  45681. + # PORTME Check for flag to pass linker flags through the system compiler.
  45682. + case $host_os in
  45683. + aix*)
  45684. + lt_prog_compiler_wl_F77='-Wl,'
  45685. + if test "$host_cpu" = ia64; then
  45686. + # AIX 5 now supports IA64 processor
  45687. + lt_prog_compiler_static_F77='-Bstatic'
  45688. + else
  45689. + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  45690. + fi
  45691. + ;;
  45692. -# Whether or not to add -lc for building shared libraries.
  45693. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  45694. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  45695. + # This hack is so that the source file can tell whether it is being
  45696. + # built for inclusion in a dll (and should export symbols for example).
  45697. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  45698. + ;;
  45699. -# Whether or not to disallow shared libs when runtime libs are static
  45700. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  45701. + hpux9* | hpux10* | hpux11*)
  45702. + lt_prog_compiler_wl_F77='-Wl,'
  45703. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  45704. + # not for PA HP-UX.
  45705. + case $host_cpu in
  45706. + hppa*64*|ia64*)
  45707. + # +Z the default
  45708. + ;;
  45709. + *)
  45710. + lt_prog_compiler_pic_F77='+Z'
  45711. + ;;
  45712. + esac
  45713. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  45714. + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  45715. + ;;
  45716. -# Whether or not to optimize for fast installation.
  45717. -fast_install=$enable_fast_install
  45718. + irix5* | irix6* | nonstopux*)
  45719. + lt_prog_compiler_wl_F77='-Wl,'
  45720. + # PIC (with -KPIC) is the default.
  45721. + lt_prog_compiler_static_F77='-non_shared'
  45722. + ;;
  45723. -# The host system.
  45724. -host_alias=$host_alias
  45725. -host=$host
  45726. -host_os=$host_os
  45727. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  45728. + case $cc_basename in
  45729. + # old Intel for x86_64 which still supported -KPIC.
  45730. + ecc*)
  45731. + lt_prog_compiler_wl_F77='-Wl,'
  45732. + lt_prog_compiler_pic_F77='-KPIC'
  45733. + lt_prog_compiler_static_F77='-static'
  45734. + ;;
  45735. + # icc used to be incompatible with GCC.
  45736. + # ICC 10 doesn't accept -KPIC any more.
  45737. + icc* | ifort*)
  45738. + lt_prog_compiler_wl_F77='-Wl,'
  45739. + lt_prog_compiler_pic_F77='-fPIC'
  45740. + lt_prog_compiler_static_F77='-static'
  45741. + ;;
  45742. + # Lahey Fortran 8.1.
  45743. + lf95*)
  45744. + lt_prog_compiler_wl_F77='-Wl,'
  45745. + lt_prog_compiler_pic_F77='--shared'
  45746. + lt_prog_compiler_static_F77='--static'
  45747. + ;;
  45748. + pgcc* | pgf77* | pgf90* | pgf95*)
  45749. + # Portland Group compilers (*not* the Pentium gcc compiler,
  45750. + # which looks to be a dead project)
  45751. + lt_prog_compiler_wl_F77='-Wl,'
  45752. + lt_prog_compiler_pic_F77='-fpic'
  45753. + lt_prog_compiler_static_F77='-Bstatic'
  45754. + ;;
  45755. + ccc*)
  45756. + lt_prog_compiler_wl_F77='-Wl,'
  45757. + # All Alpha code is PIC.
  45758. + lt_prog_compiler_static_F77='-non_shared'
  45759. + ;;
  45760. + xl*)
  45761. + # IBM XL C 8.0/Fortran 10.1 on PPC
  45762. + lt_prog_compiler_wl_F77='-Wl,'
  45763. + lt_prog_compiler_pic_F77='-qpic'
  45764. + lt_prog_compiler_static_F77='-qstaticlink'
  45765. + ;;
  45766. + *)
  45767. + case `$CC -V 2>&1 | sed 5q` in
  45768. + *Sun\ C*)
  45769. + # Sun C 5.9
  45770. + lt_prog_compiler_pic_F77='-KPIC'
  45771. + lt_prog_compiler_static_F77='-Bstatic'
  45772. + lt_prog_compiler_wl_F77='-Wl,'
  45773. + ;;
  45774. + *Sun\ F*)
  45775. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  45776. + lt_prog_compiler_pic_F77='-KPIC'
  45777. + lt_prog_compiler_static_F77='-Bstatic'
  45778. + lt_prog_compiler_wl_F77=''
  45779. + ;;
  45780. + esac
  45781. + ;;
  45782. + esac
  45783. + ;;
  45784. -# The build system.
  45785. -build_alias=$build_alias
  45786. -build=$build
  45787. -build_os=$build_os
  45788. + newsos6)
  45789. + lt_prog_compiler_pic_F77='-KPIC'
  45790. + lt_prog_compiler_static_F77='-Bstatic'
  45791. + ;;
  45792. -# An echo program that does not interpret backslashes.
  45793. -echo=$lt_echo
  45794. + *nto* | *qnx*)
  45795. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  45796. + # it will coredump.
  45797. + lt_prog_compiler_pic_F77='-fPIC -shared'
  45798. + ;;
  45799. -# The archiver.
  45800. -AR=$lt_AR
  45801. -AR_FLAGS=$lt_AR_FLAGS
  45802. + osf3* | osf4* | osf5*)
  45803. + lt_prog_compiler_wl_F77='-Wl,'
  45804. + # All OSF/1 code is PIC.
  45805. + lt_prog_compiler_static_F77='-non_shared'
  45806. + ;;
  45807. -# A C compiler.
  45808. -LTCC=$lt_LTCC
  45809. + rdos*)
  45810. + lt_prog_compiler_static_F77='-non_shared'
  45811. + ;;
  45812. -# LTCC compiler flags.
  45813. -LTCFLAGS=$lt_LTCFLAGS
  45814. + solaris*)
  45815. + lt_prog_compiler_pic_F77='-KPIC'
  45816. + lt_prog_compiler_static_F77='-Bstatic'
  45817. + case $cc_basename in
  45818. + f77* | f90* | f95*)
  45819. + lt_prog_compiler_wl_F77='-Qoption ld ';;
  45820. + *)
  45821. + lt_prog_compiler_wl_F77='-Wl,';;
  45822. + esac
  45823. + ;;
  45824. -# A language-specific compiler.
  45825. -CC=$lt_compiler_GCJ
  45826. + sunos4*)
  45827. + lt_prog_compiler_wl_F77='-Qoption ld '
  45828. + lt_prog_compiler_pic_F77='-PIC'
  45829. + lt_prog_compiler_static_F77='-Bstatic'
  45830. + ;;
  45831. -# Is the compiler the GNU C compiler?
  45832. -with_gcc=$GCC_GCJ
  45833. + sysv4 | sysv4.2uw2* | sysv4.3*)
  45834. + lt_prog_compiler_wl_F77='-Wl,'
  45835. + lt_prog_compiler_pic_F77='-KPIC'
  45836. + lt_prog_compiler_static_F77='-Bstatic'
  45837. + ;;
  45838. -# An ERE matcher.
  45839. -EGREP=$lt_EGREP
  45840. + sysv4*MP*)
  45841. + if test -d /usr/nec ;then
  45842. + lt_prog_compiler_pic_F77='-Kconform_pic'
  45843. + lt_prog_compiler_static_F77='-Bstatic'
  45844. + fi
  45845. + ;;
  45846. -# The linker used to build libraries.
  45847. -LD=$lt_LD_GCJ
  45848. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  45849. + lt_prog_compiler_wl_F77='-Wl,'
  45850. + lt_prog_compiler_pic_F77='-KPIC'
  45851. + lt_prog_compiler_static_F77='-Bstatic'
  45852. + ;;
  45853. -# Whether we need hard or soft links.
  45854. -LN_S=$lt_LN_S
  45855. + unicos*)
  45856. + lt_prog_compiler_wl_F77='-Wl,'
  45857. + lt_prog_compiler_can_build_shared_F77=no
  45858. + ;;
  45859. -# A BSD-compatible nm program.
  45860. -NM=$lt_NM
  45861. + uts4*)
  45862. + lt_prog_compiler_pic_F77='-pic'
  45863. + lt_prog_compiler_static_F77='-Bstatic'
  45864. + ;;
  45865. -# A symbol stripping program
  45866. -STRIP=$lt_STRIP
  45867. + *)
  45868. + lt_prog_compiler_can_build_shared_F77=no
  45869. + ;;
  45870. + esac
  45871. + fi
  45872. -# Used to examine libraries when file_magic_cmd begins "file"
  45873. -MAGIC_CMD=$MAGIC_CMD
  45874. +case $host_os in
  45875. + # For platforms which do not support PIC, -DPIC is meaningless:
  45876. + *djgpp*)
  45877. + lt_prog_compiler_pic_F77=
  45878. + ;;
  45879. + *)
  45880. + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  45881. + ;;
  45882. +esac
  45883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
  45884. +$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  45885. -# Used on cygwin: DLL creation program.
  45886. -DLLTOOL="$DLLTOOL"
  45887. -# Used on cygwin: object dumper.
  45888. -OBJDUMP="$OBJDUMP"
  45889. -# Used on cygwin: assembler.
  45890. -AS="$AS"
  45891. +#
  45892. +# Check to make sure the PIC flag actually works.
  45893. +#
  45894. +if test -n "$lt_prog_compiler_pic_F77"; then
  45895. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  45896. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  45897. +if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
  45898. + $as_echo_n "(cached) " >&6
  45899. +else
  45900. + lt_cv_prog_compiler_pic_works_F77=no
  45901. + ac_outfile=conftest.$ac_objext
  45902. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  45903. + lt_compiler_flag="$lt_prog_compiler_pic_F77"
  45904. + # Insert the option either (1) after the last *FLAGS variable, or
  45905. + # (2) before a word containing "conftest.", or (3) at the end.
  45906. + # Note that $ac_compile itself does not contain backslashes and begins
  45907. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  45908. + # The option is referenced via a variable to avoid confusing sed.
  45909. + lt_compile=`echo "$ac_compile" | $SED \
  45910. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  45911. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  45912. + -e 's:$: $lt_compiler_flag:'`
  45913. + (eval echo "\"\$as_me:21635: $lt_compile\"" >&5)
  45914. + (eval "$lt_compile" 2>conftest.err)
  45915. + ac_status=$?
  45916. + cat conftest.err >&5
  45917. + echo "$as_me:21639: \$? = $ac_status" >&5
  45918. + if (exit $ac_status) && test -s "$ac_outfile"; then
  45919. + # The compiler can only warn and ignore the option if not recognized
  45920. + # So say no if there are warnings other than the usual output.
  45921. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  45922. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  45923. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  45924. + lt_cv_prog_compiler_pic_works_F77=yes
  45925. + fi
  45926. + fi
  45927. + $RM conftest*
  45928. -# The name of the directory that contains temporary libtool files.
  45929. -objdir=$objdir
  45930. +fi
  45931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  45932. +$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  45933. -# How to create reloadable object files.
  45934. -reload_flag=$lt_reload_flag
  45935. -reload_cmds=$lt_reload_cmds
  45936. +if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  45937. + case $lt_prog_compiler_pic_F77 in
  45938. + "" | " "*) ;;
  45939. + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  45940. + esac
  45941. +else
  45942. + lt_prog_compiler_pic_F77=
  45943. + lt_prog_compiler_can_build_shared_F77=no
  45944. +fi
  45945. -# How to pass a linker flag through the compiler.
  45946. -wl=$lt_lt_prog_compiler_wl_GCJ
  45947. +fi
  45948. -# Object file suffix (normally "o").
  45949. -objext="$ac_objext"
  45950. -# Old archive suffix (normally "a").
  45951. -libext="$libext"
  45952. -# Shared library suffix (normally ".so").
  45953. -shrext_cmds='$shrext_cmds'
  45954. +#
  45955. +# Check to make sure the static flag actually works.
  45956. +#
  45957. +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  45958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  45959. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  45960. +if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
  45961. + $as_echo_n "(cached) " >&6
  45962. +else
  45963. + lt_cv_prog_compiler_static_works_F77=no
  45964. + save_LDFLAGS="$LDFLAGS"
  45965. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  45966. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  45967. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  45968. + # The linker can only warn and ignore the option if not recognized
  45969. + # So say no if there are warnings
  45970. + if test -s conftest.err; then
  45971. + # Append any errors to the config.log.
  45972. + cat conftest.err 1>&5
  45973. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  45974. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  45975. + if diff conftest.exp conftest.er2 >/dev/null; then
  45976. + lt_cv_prog_compiler_static_works_F77=yes
  45977. + fi
  45978. + else
  45979. + lt_cv_prog_compiler_static_works_F77=yes
  45980. + fi
  45981. + fi
  45982. + $RM -r conftest*
  45983. + LDFLAGS="$save_LDFLAGS"
  45984. -# Executable file suffix (normally "").
  45985. -exeext="$exeext"
  45986. +fi
  45987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
  45988. +$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  45989. -# Additional compiler flags for building library objects.
  45990. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  45991. -pic_mode=$pic_mode
  45992. +if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  45993. + :
  45994. +else
  45995. + lt_prog_compiler_static_F77=
  45996. +fi
  45997. -# What is the maximum length of a command?
  45998. -max_cmd_len=$lt_cv_sys_max_cmd_len
  45999. -# Does compiler simultaneously support -c and -o options?
  46000. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  46001. -# Must we lock files when doing compilation?
  46002. -need_locks=$lt_need_locks
  46003. -# Do we need the lib prefix for modules?
  46004. -need_lib_prefix=$need_lib_prefix
  46005. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  46006. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  46007. +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
  46008. + $as_echo_n "(cached) " >&6
  46009. +else
  46010. + lt_cv_prog_compiler_c_o_F77=no
  46011. + $RM -r conftest 2>/dev/null
  46012. + mkdir conftest
  46013. + cd conftest
  46014. + mkdir out
  46015. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  46016. -# Do we need a version for libraries?
  46017. -need_version=$need_version
  46018. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  46019. + # Insert the option either (1) after the last *FLAGS variable, or
  46020. + # (2) before a word containing "conftest.", or (3) at the end.
  46021. + # Note that $ac_compile itself does not contain backslashes and begins
  46022. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  46023. + lt_compile=`echo "$ac_compile" | $SED \
  46024. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  46025. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46026. + -e 's:$: $lt_compiler_flag:'`
  46027. + (eval echo "\"\$as_me:21734: $lt_compile\"" >&5)
  46028. + (eval "$lt_compile" 2>out/conftest.err)
  46029. + ac_status=$?
  46030. + cat out/conftest.err >&5
  46031. + echo "$as_me:21738: \$? = $ac_status" >&5
  46032. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  46033. + then
  46034. + # The compiler can only warn and ignore the option if not recognized
  46035. + # So say no if there are warnings
  46036. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  46037. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  46038. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  46039. + lt_cv_prog_compiler_c_o_F77=yes
  46040. + fi
  46041. + fi
  46042. + chmod u+w . 2>&5
  46043. + $RM conftest*
  46044. + # SGI C++ compiler will create directory out/ii_files/ for
  46045. + # template instantiation
  46046. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  46047. + $RM out/* && rmdir out
  46048. + cd ..
  46049. + $RM -r conftest
  46050. + $RM conftest*
  46051. -# Whether dlopen is supported.
  46052. -dlopen_support=$enable_dlopen
  46053. +fi
  46054. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
  46055. +$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  46056. -# Whether dlopen of programs is supported.
  46057. -dlopen_self=$enable_dlopen_self
  46058. -# Whether dlopen of statically linked programs is supported.
  46059. -dlopen_self_static=$enable_dlopen_self_static
  46060. -# Compiler flag to prevent dynamic linking.
  46061. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  46062. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  46063. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  46064. +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
  46065. + $as_echo_n "(cached) " >&6
  46066. +else
  46067. + lt_cv_prog_compiler_c_o_F77=no
  46068. + $RM -r conftest 2>/dev/null
  46069. + mkdir conftest
  46070. + cd conftest
  46071. + mkdir out
  46072. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  46073. -# Compiler flag to turn off builtin functions.
  46074. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  46075. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  46076. + # Insert the option either (1) after the last *FLAGS variable, or
  46077. + # (2) before a word containing "conftest.", or (3) at the end.
  46078. + # Note that $ac_compile itself does not contain backslashes and begins
  46079. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  46080. + lt_compile=`echo "$ac_compile" | $SED \
  46081. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  46082. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46083. + -e 's:$: $lt_compiler_flag:'`
  46084. + (eval echo "\"\$as_me:21786: $lt_compile\"" >&5)
  46085. + (eval "$lt_compile" 2>out/conftest.err)
  46086. + ac_status=$?
  46087. + cat out/conftest.err >&5
  46088. + echo "$as_me:21790: \$? = $ac_status" >&5
  46089. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  46090. + then
  46091. + # The compiler can only warn and ignore the option if not recognized
  46092. + # So say no if there are warnings
  46093. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  46094. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  46095. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  46096. + lt_cv_prog_compiler_c_o_F77=yes
  46097. + fi
  46098. + fi
  46099. + chmod u+w . 2>&5
  46100. + $RM conftest*
  46101. + # SGI C++ compiler will create directory out/ii_files/ for
  46102. + # template instantiation
  46103. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  46104. + $RM out/* && rmdir out
  46105. + cd ..
  46106. + $RM -r conftest
  46107. + $RM conftest*
  46108. -# Compiler flag to allow reflexive dlopens.
  46109. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  46110. +fi
  46111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
  46112. +$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  46113. -# Compiler flag to generate shared objects directly from archives.
  46114. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  46115. -# Compiler flag to generate thread-safe objects.
  46116. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  46117. -# Library versioning type.
  46118. -version_type=$version_type
  46119. -# Format of library name prefix.
  46120. -libname_spec=$lt_libname_spec
  46121. +hard_links="nottested"
  46122. +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  46123. + # do not overwrite the value of need_locks provided by the user
  46124. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  46125. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  46126. + hard_links=yes
  46127. + $RM conftest*
  46128. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46129. + touch conftest.a
  46130. + ln conftest.a conftest.b 2>&5 || hard_links=no
  46131. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  46133. +$as_echo "$hard_links" >&6; }
  46134. + if test "$hard_links" = no; then
  46135. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  46136. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  46137. + need_locks=warn
  46138. + fi
  46139. +else
  46140. + need_locks=no
  46141. +fi
  46142. -# List of archive names. First name is the real one, the rest are links.
  46143. -# The last name is the one that the linker finds with -lNAME.
  46144. -library_names_spec=$lt_library_names_spec
  46145. -# The coded name of the library, if different from the real name.
  46146. -soname_spec=$lt_soname_spec
  46147. -# Commands used to build and install an old-style archive.
  46148. -RANLIB=$lt_RANLIB
  46149. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  46150. -old_postinstall_cmds=$lt_old_postinstall_cmds
  46151. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  46152. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  46153. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  46154. -# Create an old-style archive from a shared archive.
  46155. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  46156. + runpath_var=
  46157. + allow_undefined_flag_F77=
  46158. + always_export_symbols_F77=no
  46159. + archive_cmds_F77=
  46160. + archive_expsym_cmds_F77=
  46161. + compiler_needs_object_F77=no
  46162. + enable_shared_with_static_runtimes_F77=no
  46163. + export_dynamic_flag_spec_F77=
  46164. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  46165. + hardcode_automatic_F77=no
  46166. + hardcode_direct_F77=no
  46167. + hardcode_direct_absolute_F77=no
  46168. + hardcode_libdir_flag_spec_F77=
  46169. + hardcode_libdir_flag_spec_ld_F77=
  46170. + hardcode_libdir_separator_F77=
  46171. + hardcode_minus_L_F77=no
  46172. + hardcode_shlibpath_var_F77=unsupported
  46173. + inherit_rpath_F77=no
  46174. + link_all_deplibs_F77=unknown
  46175. + module_cmds_F77=
  46176. + module_expsym_cmds_F77=
  46177. + old_archive_from_new_cmds_F77=
  46178. + old_archive_from_expsyms_cmds_F77=
  46179. + thread_safe_flag_spec_F77=
  46180. + whole_archive_flag_spec_F77=
  46181. + # include_expsyms should be a list of space-separated symbols to be *always*
  46182. + # included in the symbol list
  46183. + include_expsyms_F77=
  46184. + # exclude_expsyms can be an extended regexp of symbols to exclude
  46185. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  46186. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  46187. + # as well as any symbol that contains `d'.
  46188. + exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  46189. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  46190. + # platforms (ab)use it in PIC code, but their linkers get confused if
  46191. + # the symbol is explicitly referenced. Since portable code cannot
  46192. + # rely on this symbol name, it's probably fine to never include it in
  46193. + # preloaded symbol tables.
  46194. + # Exclude shared library initialization/finalization symbols.
  46195. + extract_expsyms_cmds=
  46196. -# Create a temporary old-style archive to link instead of a shared archive.
  46197. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  46198. + case $host_os in
  46199. + cygwin* | mingw* | pw32* | cegcc*)
  46200. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  46201. + # When not using gcc, we currently assume that we are using
  46202. + # Microsoft Visual C++.
  46203. + if test "$GCC" != yes; then
  46204. + with_gnu_ld=no
  46205. + fi
  46206. + ;;
  46207. + interix*)
  46208. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  46209. + with_gnu_ld=yes
  46210. + ;;
  46211. + openbsd*)
  46212. + with_gnu_ld=no
  46213. + ;;
  46214. + linux* | k*bsd*-gnu)
  46215. + link_all_deplibs_F77=no
  46216. + ;;
  46217. + esac
  46218. -# Commands used to build and install a shared archive.
  46219. -archive_cmds=$lt_archive_cmds_GCJ
  46220. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  46221. -postinstall_cmds=$lt_postinstall_cmds
  46222. -postuninstall_cmds=$lt_postuninstall_cmds
  46223. + ld_shlibs_F77=yes
  46224. + if test "$with_gnu_ld" = yes; then
  46225. + # If archive_cmds runs LD, not CC, wlarc should be empty
  46226. + wlarc='${wl}'
  46227. -# Commands used to build a loadable module (assumed same as above if empty)
  46228. -module_cmds=$lt_module_cmds_GCJ
  46229. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  46230. + # Set some defaults for GNU ld with shared library support. These
  46231. + # are reset later if shared libraries are not supported. Putting them
  46232. + # here allows them to be overridden if necessary.
  46233. + runpath_var=LD_RUN_PATH
  46234. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  46235. + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  46236. + # ancient GNU ld didn't support --whole-archive et. al.
  46237. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  46238. + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  46239. + else
  46240. + whole_archive_flag_spec_F77=
  46241. + fi
  46242. + supports_anon_versioning=no
  46243. + case `$LD -v 2>&1` in
  46244. + *GNU\ gold*) supports_anon_versioning=yes ;;
  46245. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  46246. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  46247. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  46248. + *\ 2.11.*) ;; # other 2.11 versions
  46249. + *) supports_anon_versioning=yes ;;
  46250. + esac
  46251. -# Commands to strip libraries.
  46252. -old_striplib=$lt_old_striplib
  46253. -striplib=$lt_striplib
  46254. + # See if GNU ld supports shared libraries.
  46255. + case $host_os in
  46256. + aix[3-9]*)
  46257. + # On AIX/PPC, the GNU linker is very broken
  46258. + if test "$host_cpu" != ia64; then
  46259. + ld_shlibs_F77=no
  46260. + cat <<_LT_EOF 1>&2
  46261. -# Dependencies to place before the objects being linked to create a
  46262. -# shared library.
  46263. -predep_objects=$lt_predep_objects_GCJ
  46264. -
  46265. -# Dependencies to place after the objects being linked to create a
  46266. -# shared library.
  46267. -postdep_objects=$lt_postdep_objects_GCJ
  46268. -
  46269. -# Dependencies to place before the objects being linked to create a
  46270. -# shared library.
  46271. -predeps=$lt_predeps_GCJ
  46272. -
  46273. -# Dependencies to place after the objects being linked to create a
  46274. -# shared library.
  46275. -postdeps=$lt_postdeps_GCJ
  46276. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  46277. +*** to be unable to reliably create shared libraries on AIX.
  46278. +*** Therefore, libtool is disabling shared libraries support. If you
  46279. +*** really care for shared libraries, you may want to modify your PATH
  46280. +*** so that a non-GNU linker is found, and then restart.
  46281. -# The library search path used internally by the compiler when linking
  46282. -# a shared library.
  46283. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  46284. +_LT_EOF
  46285. + fi
  46286. + ;;
  46287. -# Method to check whether dependent libraries are shared objects.
  46288. -deplibs_check_method=$lt_deplibs_check_method
  46289. + amigaos*)
  46290. + case $host_cpu in
  46291. + powerpc)
  46292. + # see comment about AmigaOS4 .so support
  46293. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46294. + archive_expsym_cmds_F77=''
  46295. + ;;
  46296. + m68k)
  46297. + archive_cmds_F77='$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)'
  46298. + hardcode_libdir_flag_spec_F77='-L$libdir'
  46299. + hardcode_minus_L_F77=yes
  46300. + ;;
  46301. + esac
  46302. + ;;
  46303. -# Command to use when deplibs_check_method == file_magic.
  46304. -file_magic_cmd=$lt_file_magic_cmd
  46305. + beos*)
  46306. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46307. + allow_undefined_flag_F77=unsupported
  46308. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  46309. + # support --undefined. This deserves some investigation. FIXME
  46310. + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46311. + else
  46312. + ld_shlibs_F77=no
  46313. + fi
  46314. + ;;
  46315. -# Flag that allows shared libraries with undefined symbols to be built.
  46316. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  46317. + cygwin* | mingw* | pw32* | cegcc*)
  46318. + # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  46319. + # as there is no search path for DLLs.
  46320. + hardcode_libdir_flag_spec_F77='-L$libdir'
  46321. + allow_undefined_flag_F77=unsupported
  46322. + always_export_symbols_F77=no
  46323. + enable_shared_with_static_runtimes_F77=yes
  46324. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  46325. -# Flag that forces no undefined symbols.
  46326. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  46327. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  46328. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  46329. + # If the export-symbols file already is a .def file (1st line
  46330. + # is EXPORTS), use it as is; otherwise, prepend...
  46331. + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  46332. + cp $export_symbols $output_objdir/$soname.def;
  46333. + else
  46334. + echo EXPORTS > $output_objdir/$soname.def;
  46335. + cat $export_symbols >> $output_objdir/$soname.def;
  46336. + fi~
  46337. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  46338. + else
  46339. + ld_shlibs_F77=no
  46340. + fi
  46341. + ;;
  46342. -# Commands used to finish a libtool library installation in a directory.
  46343. -finish_cmds=$lt_finish_cmds
  46344. + interix[3-9]*)
  46345. + hardcode_direct_F77=no
  46346. + hardcode_shlibpath_var_F77=no
  46347. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  46348. + export_dynamic_flag_spec_F77='${wl}-E'
  46349. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  46350. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  46351. + # default) and relocated if they conflict, which is a slow very memory
  46352. + # consuming and fragmenting process. To avoid this, we pick a random,
  46353. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  46354. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  46355. + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  46356. + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  46357. + ;;
  46358. -# Same as above, but a single script fragment to be evaled but not shown.
  46359. -finish_eval=$lt_finish_eval
  46360. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  46361. + tmp_diet=no
  46362. + if test "$host_os" = linux-dietlibc; then
  46363. + case $cc_basename in
  46364. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  46365. + esac
  46366. + fi
  46367. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  46368. + && test "$tmp_diet" = no
  46369. + then
  46370. + tmp_addflag=
  46371. + tmp_sharedflag='-shared'
  46372. + case $cc_basename,$host_cpu in
  46373. + pgcc*) # Portland Group C compiler
  46374. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  46375. + tmp_addflag=' $pic_flag'
  46376. + ;;
  46377. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  46378. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  46379. + tmp_addflag=' $pic_flag -Mnomain' ;;
  46380. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  46381. + tmp_addflag=' -i_dynamic' ;;
  46382. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  46383. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  46384. + ifc* | ifort*) # Intel Fortran compiler
  46385. + tmp_addflag=' -nofor_main' ;;
  46386. + lf95*) # Lahey Fortran 8.1
  46387. + whole_archive_flag_spec_F77=
  46388. + tmp_sharedflag='--shared' ;;
  46389. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  46390. + tmp_sharedflag='-qmkshrobj'
  46391. + tmp_addflag= ;;
  46392. + esac
  46393. + case `$CC -V 2>&1 | sed 5q` in
  46394. + *Sun\ C*) # Sun C 5.9
  46395. + whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  46396. + compiler_needs_object_F77=yes
  46397. + tmp_sharedflag='-G' ;;
  46398. + *Sun\ F*) # Sun Fortran 8.3
  46399. + tmp_sharedflag='-G' ;;
  46400. + esac
  46401. + archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46402. -# Take the output of nm and produce a listing of raw symbols and C names.
  46403. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  46404. + if test "x$supports_anon_versioning" = xyes; then
  46405. + archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
  46406. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  46407. + echo "local: *; };" >> $output_objdir/$libname.ver~
  46408. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  46409. + fi
  46410. -# Transform the output of nm in a proper C declaration
  46411. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  46412. + case $cc_basename in
  46413. + xlf*)
  46414. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  46415. + whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
  46416. + hardcode_libdir_flag_spec_F77=
  46417. + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  46418. + archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  46419. + if test "x$supports_anon_versioning" = xyes; then
  46420. + archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
  46421. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  46422. + echo "local: *; };" >> $output_objdir/$libname.ver~
  46423. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  46424. + fi
  46425. + ;;
  46426. + esac
  46427. + else
  46428. + ld_shlibs_F77=no
  46429. + fi
  46430. + ;;
  46431. -# Transform the output of nm in a C name address pair
  46432. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  46433. + netbsd* | netbsdelf*-gnu)
  46434. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  46435. + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  46436. + wlarc=
  46437. + else
  46438. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46439. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  46440. + fi
  46441. + ;;
  46442. -# This is the shared library runtime path variable.
  46443. -runpath_var=$runpath_var
  46444. + solaris*)
  46445. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  46446. + ld_shlibs_F77=no
  46447. + cat <<_LT_EOF 1>&2
  46448. -# This is the shared library path variable.
  46449. -shlibpath_var=$shlibpath_var
  46450. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  46451. +*** create shared libraries on Solaris systems. Therefore, libtool
  46452. +*** is disabling shared libraries support. We urge you to upgrade GNU
  46453. +*** binutils to release 2.9.1 or newer. Another option is to modify
  46454. +*** your PATH or compiler configuration so that the native linker is
  46455. +*** used, and then restart.
  46456. -# Is shlibpath searched before the hard-coded library search path?
  46457. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  46458. +_LT_EOF
  46459. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46460. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46461. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  46462. + else
  46463. + ld_shlibs_F77=no
  46464. + fi
  46465. + ;;
  46466. -# How to hardcode a shared library path into an executable.
  46467. -hardcode_action=$hardcode_action_GCJ
  46468. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  46469. + case `$LD -v 2>&1` in
  46470. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  46471. + ld_shlibs_F77=no
  46472. + cat <<_LT_EOF 1>&2
  46473. -# Whether we should hardcode library paths into libraries.
  46474. -hardcode_into_libs=$hardcode_into_libs
  46475. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  46476. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  46477. +*** is disabling shared libraries support. We urge you to upgrade GNU
  46478. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  46479. +*** your PATH or compiler configuration so that the native linker is
  46480. +*** used, and then restart.
  46481. -# Flag to hardcode \$libdir into a binary during linking.
  46482. -# This must work even if \$libdir does not exist.
  46483. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  46484. +_LT_EOF
  46485. + ;;
  46486. + *)
  46487. + # For security reasons, it is highly recommended that you always
  46488. + # use absolute paths for naming shared libraries, and exclude the
  46489. + # DT_RUNPATH tag from executables and libraries. But doing so
  46490. + # requires that you compile everything twice, which is a pain.
  46491. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46492. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  46493. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46494. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  46495. + else
  46496. + ld_shlibs_F77=no
  46497. + fi
  46498. + ;;
  46499. + esac
  46500. + ;;
  46501. -# If ld is used when linking, flag to hardcode \$libdir into
  46502. -# a binary during linking. This must work even if \$libdir does
  46503. -# not exist.
  46504. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  46505. -
  46506. -# Whether we need a single -rpath flag with a separated argument.
  46507. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  46508. -
  46509. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  46510. -# resulting binary.
  46511. -hardcode_direct=$hardcode_direct_GCJ
  46512. -
  46513. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  46514. -# resulting binary.
  46515. -hardcode_minus_L=$hardcode_minus_L_GCJ
  46516. -
  46517. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  46518. -# the resulting binary.
  46519. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  46520. -
  46521. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  46522. -# and all subsequent libraries and executables linked against it.
  46523. -hardcode_automatic=$hardcode_automatic_GCJ
  46524. + sunos4*)
  46525. + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  46526. + wlarc=
  46527. + hardcode_direct_F77=yes
  46528. + hardcode_shlibpath_var_F77=no
  46529. + ;;
  46530. -# Variables whose values should be saved in libtool wrapper scripts and
  46531. -# restored at relink time.
  46532. -variables_saved_for_relink="$variables_saved_for_relink"
  46533. + *)
  46534. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46535. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46536. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  46537. + else
  46538. + ld_shlibs_F77=no
  46539. + fi
  46540. + ;;
  46541. + esac
  46542. -# Whether libtool must link a program against all its dependency libraries.
  46543. -link_all_deplibs=$link_all_deplibs_GCJ
  46544. + if test "$ld_shlibs_F77" = no; then
  46545. + runpath_var=
  46546. + hardcode_libdir_flag_spec_F77=
  46547. + export_dynamic_flag_spec_F77=
  46548. + whole_archive_flag_spec_F77=
  46549. + fi
  46550. + else
  46551. + # PORTME fill in a description of your system's linker (not GNU ld)
  46552. + case $host_os in
  46553. + aix3*)
  46554. + allow_undefined_flag_F77=unsupported
  46555. + always_export_symbols_F77=yes
  46556. + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  46557. + # Note: this linker hardcodes the directories in LIBPATH if there
  46558. + # are no directories specified by -L.
  46559. + hardcode_minus_L_F77=yes
  46560. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  46561. + # Neither direct hardcoding nor static linking is supported with a
  46562. + # broken collect2.
  46563. + hardcode_direct_F77=unsupported
  46564. + fi
  46565. + ;;
  46566. -# Compile-time system search path for libraries
  46567. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  46568. + aix[4-9]*)
  46569. + if test "$host_cpu" = ia64; then
  46570. + # On IA64, the linker does run time linking by default, so we don't
  46571. + # have to do anything special.
  46572. + aix_use_runtimelinking=no
  46573. + exp_sym_flag='-Bexport'
  46574. + no_entry_flag=""
  46575. + else
  46576. + # If we're using GNU nm, then we don't want the "-C" option.
  46577. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  46578. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  46579. + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  46580. + else
  46581. + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  46582. + fi
  46583. + aix_use_runtimelinking=no
  46584. -# Run-time system search path for libraries
  46585. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  46586. + # Test if we are trying to use run time linking or normal
  46587. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  46588. + # need to do runtime linking.
  46589. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  46590. + for ld_flag in $LDFLAGS; do
  46591. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  46592. + aix_use_runtimelinking=yes
  46593. + break
  46594. + fi
  46595. + done
  46596. + ;;
  46597. + esac
  46598. -# Fix the shell variable \$srcfile for the compiler.
  46599. -fix_srcfile_path=$lt_fix_srcfile_path
  46600. + exp_sym_flag='-bexport'
  46601. + no_entry_flag='-bnoentry'
  46602. + fi
  46603. -# Set to yes if exported symbols are required.
  46604. -always_export_symbols=$always_export_symbols_GCJ
  46605. + # When large executables or shared objects are built, AIX ld can
  46606. + # have problems creating the table of contents. If linking a library
  46607. + # or program results in "error TOC overflow" add -mminimal-toc to
  46608. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  46609. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  46610. -# The commands to list exported symbols.
  46611. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  46612. + archive_cmds_F77=''
  46613. + hardcode_direct_F77=yes
  46614. + hardcode_direct_absolute_F77=yes
  46615. + hardcode_libdir_separator_F77=':'
  46616. + link_all_deplibs_F77=yes
  46617. + file_list_spec_F77='${wl}-f,'
  46618. -# The commands to extract the exported symbol list from a shared archive.
  46619. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  46620. + if test "$GCC" = yes; then
  46621. + case $host_os in aix4.[012]|aix4.[012].*)
  46622. + # We only want to do this on AIX 4.2 and lower, the check
  46623. + # below for broken collect2 doesn't work under 4.3+
  46624. + collect2name=`${CC} -print-prog-name=collect2`
  46625. + if test -f "$collect2name" &&
  46626. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  46627. + then
  46628. + # We have reworked collect2
  46629. + :
  46630. + else
  46631. + # We have old collect2
  46632. + hardcode_direct_F77=unsupported
  46633. + # It fails to find uninstalled libraries when the uninstalled
  46634. + # path is not listed in the libpath. Setting hardcode_minus_L
  46635. + # to unsupported forces relinking
  46636. + hardcode_minus_L_F77=yes
  46637. + hardcode_libdir_flag_spec_F77='-L$libdir'
  46638. + hardcode_libdir_separator_F77=
  46639. + fi
  46640. + ;;
  46641. + esac
  46642. + shared_flag='-shared'
  46643. + if test "$aix_use_runtimelinking" = yes; then
  46644. + shared_flag="$shared_flag "'${wl}-G'
  46645. + fi
  46646. + link_all_deplibs_F77=no
  46647. + else
  46648. + # not using gcc
  46649. + if test "$host_cpu" = ia64; then
  46650. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  46651. + # chokes on -Wl,-G. The following line is correct:
  46652. + shared_flag='-G'
  46653. + else
  46654. + if test "$aix_use_runtimelinking" = yes; then
  46655. + shared_flag='${wl}-G'
  46656. + else
  46657. + shared_flag='${wl}-bM:SRE'
  46658. + fi
  46659. + fi
  46660. + fi
  46661. -# Symbols that should not be listed in the preloaded symbols.
  46662. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  46663. + export_dynamic_flag_spec_F77='${wl}-bexpall'
  46664. + # It seems that -bexpall does not export symbols beginning with
  46665. + # underscore (_), so it is better to generate a list of symbols to export.
  46666. + always_export_symbols_F77=yes
  46667. + if test "$aix_use_runtimelinking" = yes; then
  46668. + # Warning - without using the other runtime loading flags (-brtl),
  46669. + # -berok will link without error, but may produce a broken library.
  46670. + allow_undefined_flag_F77='-berok'
  46671. + # Determine the default libpath from the value encoded in an
  46672. + # empty executable.
  46673. + cat > conftest.$ac_ext <<_ACEOF
  46674. + program main
  46675. -# Symbols that must always be exported.
  46676. -include_expsyms=$lt_include_expsyms_GCJ
  46677. + end
  46678. +_ACEOF
  46679. +if ac_fn_f77_try_link "$LINENO"; then :
  46680. -# ### END LIBTOOL TAG CONFIG: $tagname
  46681. +lt_aix_libpath_sed='
  46682. + /Import File Strings/,/^$/ {
  46683. + /^0/ {
  46684. + s/^0 *\(.*\)$/\1/
  46685. + p
  46686. + }
  46687. + }'
  46688. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  46689. +# Check for a 64-bit object if we didn't find anything.
  46690. +if test -z "$aix_libpath"; then
  46691. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  46692. +fi
  46693. +fi
  46694. +rm -f core conftest.err conftest.$ac_objext \
  46695. + conftest$ac_exeext conftest.$ac_ext
  46696. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  46697. -__EOF__
  46698. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  46699. + archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  46700. + else
  46701. + if test "$host_cpu" = ia64; then
  46702. + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  46703. + allow_undefined_flag_F77="-z nodefs"
  46704. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  46705. + else
  46706. + # Determine the default libpath from the value encoded in an
  46707. + # empty executable.
  46708. + cat > conftest.$ac_ext <<_ACEOF
  46709. + program main
  46710. + end
  46711. +_ACEOF
  46712. +if ac_fn_f77_try_link "$LINENO"; then :
  46713. -else
  46714. - # If there is no Makefile yet, we rely on a make rule to execute
  46715. - # `config.status --recheck' to rerun these tests and create the
  46716. - # libtool script then.
  46717. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  46718. - if test -f "$ltmain_in"; then
  46719. - test -f Makefile && make "$ltmain"
  46720. - fi
  46721. +lt_aix_libpath_sed='
  46722. + /Import File Strings/,/^$/ {
  46723. + /^0/ {
  46724. + s/^0 *\(.*\)$/\1/
  46725. + p
  46726. + }
  46727. + }'
  46728. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  46729. +# Check for a 64-bit object if we didn't find anything.
  46730. +if test -z "$aix_libpath"; then
  46731. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  46732. fi
  46733. +fi
  46734. +rm -f core conftest.err conftest.$ac_objext \
  46735. + conftest$ac_exeext conftest.$ac_ext
  46736. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  46737. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  46738. + # Warning - without using the other run time loading flags,
  46739. + # -berok will link without error, but may produce a broken library.
  46740. + no_undefined_flag_F77=' ${wl}-bernotok'
  46741. + allow_undefined_flag_F77=' ${wl}-berok'
  46742. + # Exported symbols can be pulled into shared objects from archives
  46743. + whole_archive_flag_spec_F77='$convenience'
  46744. + archive_cmds_need_lc_F77=yes
  46745. + # This is similar to how AIX traditionally builds its shared libraries.
  46746. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  46747. + fi
  46748. + fi
  46749. + ;;
  46750. -ac_ext=c
  46751. -ac_cpp='$CPP $CPPFLAGS'
  46752. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46753. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46754. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46755. + amigaos*)
  46756. + case $host_cpu in
  46757. + powerpc)
  46758. + # see comment about AmigaOS4 .so support
  46759. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  46760. + archive_expsym_cmds_F77=''
  46761. + ;;
  46762. + m68k)
  46763. + archive_cmds_F77='$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)'
  46764. + hardcode_libdir_flag_spec_F77='-L$libdir'
  46765. + hardcode_minus_L_F77=yes
  46766. + ;;
  46767. + esac
  46768. + ;;
  46769. -CC="$lt_save_CC"
  46770. + bsdi[45]*)
  46771. + export_dynamic_flag_spec_F77=-rdynamic
  46772. + ;;
  46773. - else
  46774. - tagname=""
  46775. - fi
  46776. - ;;
  46777. + cygwin* | mingw* | pw32* | cegcc*)
  46778. + # When not using gcc, we currently assume that we are using
  46779. + # Microsoft Visual C++.
  46780. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  46781. + # no search path for DLLs.
  46782. + hardcode_libdir_flag_spec_F77=' '
  46783. + allow_undefined_flag_F77=unsupported
  46784. + # Tell ltmain to make .lib files, not .a files.
  46785. + libext=lib
  46786. + # Tell ltmain to make .dll files, not .so files.
  46787. + shrext_cmds=".dll"
  46788. + # FIXME: Setting linknames here is a bad hack.
  46789. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  46790. + # The linker will automatically build a .lib file if we build a DLL.
  46791. + old_archive_from_new_cmds_F77='true'
  46792. + # FIXME: Should let the user specify the lib program.
  46793. + old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  46794. + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  46795. + enable_shared_with_static_runtimes_F77=yes
  46796. + ;;
  46797. - RC)
  46798. + darwin* | rhapsody*)
  46799. -# Source file extension for RC test sources.
  46800. -ac_ext=rc
  46801. + archive_cmds_need_lc_F77=no
  46802. + hardcode_direct_F77=no
  46803. + hardcode_automatic_F77=yes
  46804. + hardcode_shlibpath_var_F77=unsupported
  46805. + whole_archive_flag_spec_F77=''
  46806. + link_all_deplibs_F77=yes
  46807. + allow_undefined_flag_F77="$_lt_dar_allow_undefined"
  46808. + case $cc_basename in
  46809. + ifort*) _lt_dar_can_shared=yes ;;
  46810. + *) _lt_dar_can_shared=$GCC ;;
  46811. + esac
  46812. + if test "$_lt_dar_can_shared" = "yes"; then
  46813. + output_verbose_link_cmd=echo
  46814. + archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  46815. + module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  46816. + archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  46817. + module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  46818. -# Object file extension for compiled RC test sources.
  46819. -objext=o
  46820. -objext_RC=$objext
  46821. + else
  46822. + ld_shlibs_F77=no
  46823. + fi
  46824. -# Code to be used in simple compile tests
  46825. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  46826. + ;;
  46827. -# Code to be used in simple link tests
  46828. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  46829. + dgux*)
  46830. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  46831. + hardcode_libdir_flag_spec_F77='-L$libdir'
  46832. + hardcode_shlibpath_var_F77=no
  46833. + ;;
  46834. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  46835. + freebsd1*)
  46836. + ld_shlibs_F77=no
  46837. + ;;
  46838. -# If no C compiler was specified, use CC.
  46839. -LTCC=${LTCC-"$CC"}
  46840. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  46841. + # support. Future versions do this automatically, but an explicit c++rt0.o
  46842. + # does not break anything, and helps significantly (at the cost of a little
  46843. + # extra space).
  46844. + freebsd2.2*)
  46845. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  46846. + hardcode_libdir_flag_spec_F77='-R$libdir'
  46847. + hardcode_direct_F77=yes
  46848. + hardcode_shlibpath_var_F77=no
  46849. + ;;
  46850. -# If no C compiler flags were specified, use CFLAGS.
  46851. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  46852. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  46853. + freebsd2*)
  46854. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  46855. + hardcode_direct_F77=yes
  46856. + hardcode_minus_L_F77=yes
  46857. + hardcode_shlibpath_var_F77=no
  46858. + ;;
  46859. -# Allow CC to be a program name with arguments.
  46860. -compiler=$CC
  46861. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  46862. + freebsd* | dragonfly*)
  46863. + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  46864. + hardcode_libdir_flag_spec_F77='-R$libdir'
  46865. + hardcode_direct_F77=yes
  46866. + hardcode_shlibpath_var_F77=no
  46867. + ;;
  46868. + hpux9*)
  46869. + if test "$GCC" = yes; then
  46870. + archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  46871. + else
  46872. + archive_cmds_F77='$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'
  46873. + fi
  46874. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  46875. + hardcode_libdir_separator_F77=:
  46876. + hardcode_direct_F77=yes
  46877. -# save warnings/boilerplate of simple test code
  46878. -ac_outfile=conftest.$ac_objext
  46879. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  46880. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  46881. -_lt_compiler_boilerplate=`cat conftest.err`
  46882. -$rm conftest*
  46883. + # hardcode_minus_L: Not really in the search PATH,
  46884. + # but as the default location of the library.
  46885. + hardcode_minus_L_F77=yes
  46886. + export_dynamic_flag_spec_F77='${wl}-E'
  46887. + ;;
  46888. -ac_outfile=conftest.$ac_objext
  46889. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  46890. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  46891. -_lt_linker_boilerplate=`cat conftest.err`
  46892. -$rm conftest*
  46893. + hpux10*)
  46894. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  46895. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  46896. + else
  46897. + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  46898. + fi
  46899. + if test "$with_gnu_ld" = no; then
  46900. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  46901. + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  46902. + hardcode_libdir_separator_F77=:
  46903. + hardcode_direct_F77=yes
  46904. + hardcode_direct_absolute_F77=yes
  46905. + export_dynamic_flag_spec_F77='${wl}-E'
  46906. + # hardcode_minus_L: Not really in the search PATH,
  46907. + # but as the default location of the library.
  46908. + hardcode_minus_L_F77=yes
  46909. + fi
  46910. + ;;
  46911. + hpux11*)
  46912. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  46913. + case $host_cpu in
  46914. + hppa*64*)
  46915. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  46916. + ;;
  46917. + ia64*)
  46918. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  46919. + ;;
  46920. + *)
  46921. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  46922. + ;;
  46923. + esac
  46924. + else
  46925. + case $host_cpu in
  46926. + hppa*64*)
  46927. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  46928. + ;;
  46929. + ia64*)
  46930. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  46931. + ;;
  46932. + *)
  46933. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  46934. + ;;
  46935. + esac
  46936. + fi
  46937. + if test "$with_gnu_ld" = no; then
  46938. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  46939. + hardcode_libdir_separator_F77=:
  46940. -# Allow CC to be a program name with arguments.
  46941. -lt_save_CC="$CC"
  46942. -CC=${RC-"windres"}
  46943. -compiler=$CC
  46944. -compiler_RC=$CC
  46945. -for cc_temp in $compiler""; do
  46946. - case $cc_temp in
  46947. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  46948. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  46949. - \-*) ;;
  46950. - *) break;;
  46951. - esac
  46952. -done
  46953. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  46954. + case $host_cpu in
  46955. + hppa*64*|ia64*)
  46956. + hardcode_direct_F77=no
  46957. + hardcode_shlibpath_var_F77=no
  46958. + ;;
  46959. + *)
  46960. + hardcode_direct_F77=yes
  46961. + hardcode_direct_absolute_F77=yes
  46962. + export_dynamic_flag_spec_F77='${wl}-E'
  46963. -lt_cv_prog_compiler_c_o_RC=yes
  46964. + # hardcode_minus_L: Not really in the search PATH,
  46965. + # but as the default location of the library.
  46966. + hardcode_minus_L_F77=yes
  46967. + ;;
  46968. + esac
  46969. + fi
  46970. + ;;
  46971. -# The else clause should only fire when bootstrapping the
  46972. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  46973. -# with your package, and you will get complaints that there are
  46974. -# no rules to generate ltmain.sh.
  46975. -if test -f "$ltmain"; then
  46976. - # See if we are running on zsh, and set the options which allow our commands through
  46977. - # without removal of \ escapes.
  46978. - if test -n "${ZSH_VERSION+set}" ; then
  46979. - setopt NO_GLOB_SUBST
  46980. - fi
  46981. - # Now quote all the things that may contain metacharacters while being
  46982. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  46983. - # variables and quote the copies for generation of the libtool script.
  46984. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  46985. - SED SHELL STRIP \
  46986. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  46987. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  46988. - deplibs_check_method reload_flag reload_cmds need_locks \
  46989. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  46990. - lt_cv_sys_global_symbol_to_c_name_address \
  46991. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  46992. - old_postinstall_cmds old_postuninstall_cmds \
  46993. - compiler_RC \
  46994. - CC_RC \
  46995. - LD_RC \
  46996. - lt_prog_compiler_wl_RC \
  46997. - lt_prog_compiler_pic_RC \
  46998. - lt_prog_compiler_static_RC \
  46999. - lt_prog_compiler_no_builtin_flag_RC \
  47000. - export_dynamic_flag_spec_RC \
  47001. - thread_safe_flag_spec_RC \
  47002. - whole_archive_flag_spec_RC \
  47003. - enable_shared_with_static_runtimes_RC \
  47004. - old_archive_cmds_RC \
  47005. - old_archive_from_new_cmds_RC \
  47006. - predep_objects_RC \
  47007. - postdep_objects_RC \
  47008. - predeps_RC \
  47009. - postdeps_RC \
  47010. - compiler_lib_search_path_RC \
  47011. - archive_cmds_RC \
  47012. - archive_expsym_cmds_RC \
  47013. - postinstall_cmds_RC \
  47014. - postuninstall_cmds_RC \
  47015. - old_archive_from_expsyms_cmds_RC \
  47016. - allow_undefined_flag_RC \
  47017. - no_undefined_flag_RC \
  47018. - export_symbols_cmds_RC \
  47019. - hardcode_libdir_flag_spec_RC \
  47020. - hardcode_libdir_flag_spec_ld_RC \
  47021. - hardcode_libdir_separator_RC \
  47022. - hardcode_automatic_RC \
  47023. - module_cmds_RC \
  47024. - module_expsym_cmds_RC \
  47025. - lt_cv_prog_compiler_c_o_RC \
  47026. - fix_srcfile_path_RC \
  47027. - exclude_expsyms_RC \
  47028. - include_expsyms_RC; do
  47029. -
  47030. - case $var in
  47031. - old_archive_cmds_RC | \
  47032. - old_archive_from_new_cmds_RC | \
  47033. - archive_cmds_RC | \
  47034. - archive_expsym_cmds_RC | \
  47035. - module_cmds_RC | \
  47036. - module_expsym_cmds_RC | \
  47037. - old_archive_from_expsyms_cmds_RC | \
  47038. - export_symbols_cmds_RC | \
  47039. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  47040. - postinstall_cmds | postuninstall_cmds | \
  47041. - old_postinstall_cmds | old_postuninstall_cmds | \
  47042. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  47043. - # Double-quote double-evaled strings.
  47044. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  47045. + irix5* | irix6* | nonstopux*)
  47046. + if test "$GCC" = yes; then
  47047. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  47048. + # Try to use the -exported_symbol ld option, if it does not
  47049. + # work, assume that -exports_file does not work either and
  47050. + # implicitly export all symbols.
  47051. + save_LDFLAGS="$LDFLAGS"
  47052. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  47053. + cat > conftest.$ac_ext <<_ACEOF
  47054. +int foo(void) {}
  47055. +_ACEOF
  47056. +if ac_fn_f77_try_link "$LINENO"; then :
  47057. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  47058. +
  47059. +fi
  47060. +rm -f core conftest.err conftest.$ac_objext \
  47061. + conftest$ac_exeext conftest.$ac_ext
  47062. + LDFLAGS="$save_LDFLAGS"
  47063. + else
  47064. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  47065. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  47066. + fi
  47067. + archive_cmds_need_lc_F77='no'
  47068. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  47069. + hardcode_libdir_separator_F77=:
  47070. + inherit_rpath_F77=yes
  47071. + link_all_deplibs_F77=yes
  47072. ;;
  47073. - *)
  47074. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  47075. +
  47076. + netbsd* | netbsdelf*-gnu)
  47077. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  47078. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  47079. + else
  47080. + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  47081. + fi
  47082. + hardcode_libdir_flag_spec_F77='-R$libdir'
  47083. + hardcode_direct_F77=yes
  47084. + hardcode_shlibpath_var_F77=no
  47085. ;;
  47086. - esac
  47087. - done
  47088. - case $lt_echo in
  47089. - *'\$0 --fallback-echo"')
  47090. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  47091. - ;;
  47092. - esac
  47093. + newsos6)
  47094. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47095. + hardcode_direct_F77=yes
  47096. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  47097. + hardcode_libdir_separator_F77=:
  47098. + hardcode_shlibpath_var_F77=no
  47099. + ;;
  47100. -cfgfile="$ofile"
  47101. + *nto* | *qnx*)
  47102. + ;;
  47103. - cat <<__EOF__ >> "$cfgfile"
  47104. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  47105. + openbsd*)
  47106. + if test -f /usr/libexec/ld.so; then
  47107. + hardcode_direct_F77=yes
  47108. + hardcode_shlibpath_var_F77=no
  47109. + hardcode_direct_absolute_F77=yes
  47110. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  47111. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47112. + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  47113. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  47114. + export_dynamic_flag_spec_F77='${wl}-E'
  47115. + else
  47116. + case $host_os in
  47117. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  47118. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  47119. + hardcode_libdir_flag_spec_F77='-R$libdir'
  47120. + ;;
  47121. + *)
  47122. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47123. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  47124. + ;;
  47125. + esac
  47126. + fi
  47127. + else
  47128. + ld_shlibs_F77=no
  47129. + fi
  47130. + ;;
  47131. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  47132. + os2*)
  47133. + hardcode_libdir_flag_spec_F77='-L$libdir'
  47134. + hardcode_minus_L_F77=yes
  47135. + allow_undefined_flag_F77=unsupported
  47136. + archive_cmds_F77='$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'
  47137. + old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  47138. + ;;
  47139. -# Shell to use when invoking shell scripts.
  47140. -SHELL=$lt_SHELL
  47141. + osf3*)
  47142. + if test "$GCC" = yes; then
  47143. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  47144. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  47145. + else
  47146. + allow_undefined_flag_F77=' -expect_unresolved \*'
  47147. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  47148. + fi
  47149. + archive_cmds_need_lc_F77='no'
  47150. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  47151. + hardcode_libdir_separator_F77=:
  47152. + ;;
  47153. -# Whether or not to build shared libraries.
  47154. -build_libtool_libs=$enable_shared
  47155. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  47156. + if test "$GCC" = yes; then
  47157. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  47158. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  47159. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  47160. + else
  47161. + allow_undefined_flag_F77=' -expect_unresolved \*'
  47162. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  47163. + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  47164. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  47165. -# Whether or not to build static libraries.
  47166. -build_old_libs=$enable_static
  47167. + # Both c and cxx compiler support -rpath directly
  47168. + hardcode_libdir_flag_spec_F77='-rpath $libdir'
  47169. + fi
  47170. + archive_cmds_need_lc_F77='no'
  47171. + hardcode_libdir_separator_F77=:
  47172. + ;;
  47173. -# Whether or not to add -lc for building shared libraries.
  47174. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  47175. + solaris*)
  47176. + no_undefined_flag_F77=' -z defs'
  47177. + if test "$GCC" = yes; then
  47178. + wlarc='${wl}'
  47179. + archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  47180. + archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47181. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  47182. + else
  47183. + case `$CC -V 2>&1` in
  47184. + *"Compilers 5.0"*)
  47185. + wlarc=''
  47186. + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47187. + archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47188. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  47189. + ;;
  47190. + *)
  47191. + wlarc='${wl}'
  47192. + archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  47193. + archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47194. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  47195. + ;;
  47196. + esac
  47197. + fi
  47198. + hardcode_libdir_flag_spec_F77='-R$libdir'
  47199. + hardcode_shlibpath_var_F77=no
  47200. + case $host_os in
  47201. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  47202. + *)
  47203. + # The compiler driver will combine and reorder linker options,
  47204. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  47205. + # but is careful enough not to reorder.
  47206. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  47207. + if test "$GCC" = yes; then
  47208. + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  47209. + else
  47210. + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  47211. + fi
  47212. + ;;
  47213. + esac
  47214. + link_all_deplibs_F77=yes
  47215. + ;;
  47216. -# Whether or not to disallow shared libs when runtime libs are static
  47217. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  47218. + sunos4*)
  47219. + if test "x$host_vendor" = xsequent; then
  47220. + # Use $CC to link under sequent, because it throws in some extra .o
  47221. + # files that make .init and .fini sections work.
  47222. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  47223. + else
  47224. + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  47225. + fi
  47226. + hardcode_libdir_flag_spec_F77='-L$libdir'
  47227. + hardcode_direct_F77=yes
  47228. + hardcode_minus_L_F77=yes
  47229. + hardcode_shlibpath_var_F77=no
  47230. + ;;
  47231. -# Whether or not to optimize for fast installation.
  47232. -fast_install=$enable_fast_install
  47233. + sysv4)
  47234. + case $host_vendor in
  47235. + sni)
  47236. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47237. + hardcode_direct_F77=yes # is this really true???
  47238. + ;;
  47239. + siemens)
  47240. + ## LD is ld it makes a PLAMLIB
  47241. + ## CC just makes a GrossModule.
  47242. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  47243. + reload_cmds_F77='$CC -r -o $output$reload_objs'
  47244. + hardcode_direct_F77=no
  47245. + ;;
  47246. + motorola)
  47247. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47248. + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  47249. + ;;
  47250. + esac
  47251. + runpath_var='LD_RUN_PATH'
  47252. + hardcode_shlibpath_var_F77=no
  47253. + ;;
  47254. -# The host system.
  47255. -host_alias=$host_alias
  47256. -host=$host
  47257. -host_os=$host_os
  47258. + sysv4.3*)
  47259. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47260. + hardcode_shlibpath_var_F77=no
  47261. + export_dynamic_flag_spec_F77='-Bexport'
  47262. + ;;
  47263. -# The build system.
  47264. -build_alias=$build_alias
  47265. -build=$build
  47266. -build_os=$build_os
  47267. + sysv4*MP*)
  47268. + if test -d /usr/nec; then
  47269. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47270. + hardcode_shlibpath_var_F77=no
  47271. + runpath_var=LD_RUN_PATH
  47272. + hardcode_runpath_var=yes
  47273. + ld_shlibs_F77=yes
  47274. + fi
  47275. + ;;
  47276. -# An echo program that does not interpret backslashes.
  47277. -echo=$lt_echo
  47278. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  47279. + no_undefined_flag_F77='${wl}-z,text'
  47280. + archive_cmds_need_lc_F77=no
  47281. + hardcode_shlibpath_var_F77=no
  47282. + runpath_var='LD_RUN_PATH'
  47283. -# The archiver.
  47284. -AR=$lt_AR
  47285. -AR_FLAGS=$lt_AR_FLAGS
  47286. + if test "$GCC" = yes; then
  47287. + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47288. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47289. + else
  47290. + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47291. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47292. + fi
  47293. + ;;
  47294. -# A C compiler.
  47295. -LTCC=$lt_LTCC
  47296. + sysv5* | sco3.2v5* | sco5v6*)
  47297. + # Note: We can NOT use -z defs as we might desire, because we do not
  47298. + # link with -lc, and that would cause any symbols used from libc to
  47299. + # always be unresolved, which means just about no library would
  47300. + # ever link correctly. If we're not using GNU ld we use -z text
  47301. + # though, which does catch some bad symbols but isn't as heavy-handed
  47302. + # as -z defs.
  47303. + no_undefined_flag_F77='${wl}-z,text'
  47304. + allow_undefined_flag_F77='${wl}-z,nodefs'
  47305. + archive_cmds_need_lc_F77=no
  47306. + hardcode_shlibpath_var_F77=no
  47307. + hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
  47308. + hardcode_libdir_separator_F77=':'
  47309. + link_all_deplibs_F77=yes
  47310. + export_dynamic_flag_spec_F77='${wl}-Bexport'
  47311. + runpath_var='LD_RUN_PATH'
  47312. -# LTCC compiler flags.
  47313. -LTCFLAGS=$lt_LTCFLAGS
  47314. + if test "$GCC" = yes; then
  47315. + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47316. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47317. + else
  47318. + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47319. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47320. + fi
  47321. + ;;
  47322. -# A language-specific compiler.
  47323. -CC=$lt_compiler_RC
  47324. + uts4*)
  47325. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47326. + hardcode_libdir_flag_spec_F77='-L$libdir'
  47327. + hardcode_shlibpath_var_F77=no
  47328. + ;;
  47329. -# Is the compiler the GNU C compiler?
  47330. -with_gcc=$GCC_RC
  47331. + *)
  47332. + ld_shlibs_F77=no
  47333. + ;;
  47334. + esac
  47335. -# An ERE matcher.
  47336. -EGREP=$lt_EGREP
  47337. + if test x$host_vendor = xsni; then
  47338. + case $host in
  47339. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  47340. + export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
  47341. + ;;
  47342. + esac
  47343. + fi
  47344. + fi
  47345. -# The linker used to build libraries.
  47346. -LD=$lt_LD_RC
  47347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
  47348. +$as_echo "$ld_shlibs_F77" >&6; }
  47349. +test "$ld_shlibs_F77" = no && can_build_shared=no
  47350. -# Whether we need hard or soft links.
  47351. -LN_S=$lt_LN_S
  47352. +with_gnu_ld_F77=$with_gnu_ld
  47353. -# A BSD-compatible nm program.
  47354. -NM=$lt_NM
  47355. -# A symbol stripping program
  47356. -STRIP=$lt_STRIP
  47357. -# Used to examine libraries when file_magic_cmd begins "file"
  47358. -MAGIC_CMD=$MAGIC_CMD
  47359. -# Used on cygwin: DLL creation program.
  47360. -DLLTOOL="$DLLTOOL"
  47361. -# Used on cygwin: object dumper.
  47362. -OBJDUMP="$OBJDUMP"
  47363. -# Used on cygwin: assembler.
  47364. -AS="$AS"
  47365. +#
  47366. +# Do we need to explicitly link libc?
  47367. +#
  47368. +case "x$archive_cmds_need_lc_F77" in
  47369. +x|xyes)
  47370. + # Assume -lc should be added
  47371. + archive_cmds_need_lc_F77=yes
  47372. -# The name of the directory that contains temporary libtool files.
  47373. -objdir=$objdir
  47374. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  47375. + case $archive_cmds_F77 in
  47376. + *'~'*)
  47377. + # FIXME: we may have to deal with multi-command sequences.
  47378. + ;;
  47379. + '$CC '*)
  47380. + # Test whether the compiler implicitly links with -lc since on some
  47381. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  47382. + # to ld, don't add -lc before -lgcc.
  47383. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  47384. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  47385. + $RM conftest*
  47386. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  47387. -# How to create reloadable object files.
  47388. -reload_flag=$lt_reload_flag
  47389. -reload_cmds=$lt_reload_cmds
  47390. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  47391. + (eval $ac_compile) 2>&5
  47392. + ac_status=$?
  47393. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  47394. + test $ac_status = 0; } 2>conftest.err; then
  47395. + soname=conftest
  47396. + lib=conftest
  47397. + libobjs=conftest.$ac_objext
  47398. + deplibs=
  47399. + wl=$lt_prog_compiler_wl_F77
  47400. + pic_flag=$lt_prog_compiler_pic_F77
  47401. + compiler_flags=-v
  47402. + linker_flags=-v
  47403. + verstring=
  47404. + output_objdir=.
  47405. + libname=conftest
  47406. + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  47407. + allow_undefined_flag_F77=
  47408. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  47409. + (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  47410. + ac_status=$?
  47411. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  47412. + test $ac_status = 0; }
  47413. + then
  47414. + archive_cmds_need_lc_F77=no
  47415. + else
  47416. + archive_cmds_need_lc_F77=yes
  47417. + fi
  47418. + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  47419. + else
  47420. + cat conftest.err 1>&5
  47421. + fi
  47422. + $RM conftest*
  47423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
  47424. +$as_echo "$archive_cmds_need_lc_F77" >&6; }
  47425. + ;;
  47426. + esac
  47427. + fi
  47428. + ;;
  47429. +esac
  47430. -# How to pass a linker flag through the compiler.
  47431. -wl=$lt_lt_prog_compiler_wl_RC
  47432. -# Object file suffix (normally "o").
  47433. -objext="$ac_objext"
  47434. -# Old archive suffix (normally "a").
  47435. -libext="$libext"
  47436. -# Shared library suffix (normally ".so").
  47437. -shrext_cmds='$shrext_cmds'
  47438. -# Executable file suffix (normally "").
  47439. -exeext="$exeext"
  47440. -# Additional compiler flags for building library objects.
  47441. -pic_flag=$lt_lt_prog_compiler_pic_RC
  47442. -pic_mode=$pic_mode
  47443. -# What is the maximum length of a command?
  47444. -max_cmd_len=$lt_cv_sys_max_cmd_len
  47445. -# Does compiler simultaneously support -c and -o options?
  47446. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  47447. -# Must we lock files when doing compilation?
  47448. -need_locks=$lt_need_locks
  47449. -# Do we need the lib prefix for modules?
  47450. -need_lib_prefix=$need_lib_prefix
  47451. -# Do we need a version for libraries?
  47452. -need_version=$need_version
  47453. -# Whether dlopen is supported.
  47454. -dlopen_support=$enable_dlopen
  47455. -# Whether dlopen of programs is supported.
  47456. -dlopen_self=$enable_dlopen_self
  47457. -# Whether dlopen of statically linked programs is supported.
  47458. -dlopen_self_static=$enable_dlopen_self_static
  47459. -# Compiler flag to prevent dynamic linking.
  47460. -link_static_flag=$lt_lt_prog_compiler_static_RC
  47461. -# Compiler flag to turn off builtin functions.
  47462. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  47463. -# Compiler flag to allow reflexive dlopens.
  47464. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  47465. -# Compiler flag to generate shared objects directly from archives.
  47466. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  47467. -# Compiler flag to generate thread-safe objects.
  47468. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  47469. -# Library versioning type.
  47470. -version_type=$version_type
  47471. -# Format of library name prefix.
  47472. -libname_spec=$lt_libname_spec
  47473. -# List of archive names. First name is the real one, the rest are links.
  47474. -# The last name is the one that the linker finds with -lNAME.
  47475. -library_names_spec=$lt_library_names_spec
  47476. -# The coded name of the library, if different from the real name.
  47477. -soname_spec=$lt_soname_spec
  47478. -# Commands used to build and install an old-style archive.
  47479. -RANLIB=$lt_RANLIB
  47480. -old_archive_cmds=$lt_old_archive_cmds_RC
  47481. -old_postinstall_cmds=$lt_old_postinstall_cmds
  47482. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  47483. -# Create an old-style archive from a shared archive.
  47484. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  47485. -# Create a temporary old-style archive to link instead of a shared archive.
  47486. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  47487. -# Commands used to build and install a shared archive.
  47488. -archive_cmds=$lt_archive_cmds_RC
  47489. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  47490. -postinstall_cmds=$lt_postinstall_cmds
  47491. -postuninstall_cmds=$lt_postuninstall_cmds
  47492. -# Commands used to build a loadable module (assumed same as above if empty)
  47493. -module_cmds=$lt_module_cmds_RC
  47494. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  47495. -# Commands to strip libraries.
  47496. -old_striplib=$lt_old_striplib
  47497. -striplib=$lt_striplib
  47498. -# Dependencies to place before the objects being linked to create a
  47499. -# shared library.
  47500. -predep_objects=$lt_predep_objects_RC
  47501. -
  47502. -# Dependencies to place after the objects being linked to create a
  47503. -# shared library.
  47504. -postdep_objects=$lt_postdep_objects_RC
  47505. -
  47506. -# Dependencies to place before the objects being linked to create a
  47507. -# shared library.
  47508. -predeps=$lt_predeps_RC
  47509. -
  47510. -# Dependencies to place after the objects being linked to create a
  47511. -# shared library.
  47512. -postdeps=$lt_postdeps_RC
  47513. -# The library search path used internally by the compiler when linking
  47514. -# a shared library.
  47515. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  47516. -# Method to check whether dependent libraries are shared objects.
  47517. -deplibs_check_method=$lt_deplibs_check_method
  47518. -# Command to use when deplibs_check_method == file_magic.
  47519. -file_magic_cmd=$lt_file_magic_cmd
  47520. -# Flag that allows shared libraries with undefined symbols to be built.
  47521. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  47522. -# Flag that forces no undefined symbols.
  47523. -no_undefined_flag=$lt_no_undefined_flag_RC
  47524. -# Commands used to finish a libtool library installation in a directory.
  47525. -finish_cmds=$lt_finish_cmds
  47526. -# Same as above, but a single script fragment to be evaled but not shown.
  47527. -finish_eval=$lt_finish_eval
  47528. -# Take the output of nm and produce a listing of raw symbols and C names.
  47529. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  47530. -# Transform the output of nm in a proper C declaration
  47531. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  47532. -# Transform the output of nm in a C name address pair
  47533. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  47534. -# This is the shared library runtime path variable.
  47535. -runpath_var=$runpath_var
  47536. -# This is the shared library path variable.
  47537. -shlibpath_var=$shlibpath_var
  47538. -# Is shlibpath searched before the hard-coded library search path?
  47539. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  47540. -# How to hardcode a shared library path into an executable.
  47541. -hardcode_action=$hardcode_action_RC
  47542. -# Whether we should hardcode library paths into libraries.
  47543. -hardcode_into_libs=$hardcode_into_libs
  47544. -# Flag to hardcode \$libdir into a binary during linking.
  47545. -# This must work even if \$libdir does not exist.
  47546. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  47547. -# If ld is used when linking, flag to hardcode \$libdir into
  47548. -# a binary during linking. This must work even if \$libdir does
  47549. -# not exist.
  47550. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  47551. -
  47552. -# Whether we need a single -rpath flag with a separated argument.
  47553. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  47554. -
  47555. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  47556. -# resulting binary.
  47557. -hardcode_direct=$hardcode_direct_RC
  47558. -
  47559. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  47560. -# resulting binary.
  47561. -hardcode_minus_L=$hardcode_minus_L_RC
  47562. -
  47563. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  47564. -# the resulting binary.
  47565. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  47566. -
  47567. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  47568. -# and all subsequent libraries and executables linked against it.
  47569. -hardcode_automatic=$hardcode_automatic_RC
  47570. -# Variables whose values should be saved in libtool wrapper scripts and
  47571. -# restored at relink time.
  47572. -variables_saved_for_relink="$variables_saved_for_relink"
  47573. -# Whether libtool must link a program against all its dependency libraries.
  47574. -link_all_deplibs=$link_all_deplibs_RC
  47575. -# Compile-time system search path for libraries
  47576. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  47577. -# Run-time system search path for libraries
  47578. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  47579. -# Fix the shell variable \$srcfile for the compiler.
  47580. -fix_srcfile_path=$lt_fix_srcfile_path
  47581. -# Set to yes if exported symbols are required.
  47582. -always_export_symbols=$always_export_symbols_RC
  47583. -# The commands to list exported symbols.
  47584. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  47585. -# The commands to extract the exported symbol list from a shared archive.
  47586. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  47587. -# Symbols that should not be listed in the preloaded symbols.
  47588. -exclude_expsyms=$lt_exclude_expsyms_RC
  47589. -# Symbols that must always be exported.
  47590. -include_expsyms=$lt_include_expsyms_RC
  47591. -# ### END LIBTOOL TAG CONFIG: $tagname
  47592. -__EOF__
  47593. -else
  47594. - # If there is no Makefile yet, we rely on a make rule to execute
  47595. - # `config.status --recheck' to rerun these tests and create the
  47596. - # libtool script then.
  47597. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  47598. - if test -f "$ltmain_in"; then
  47599. - test -f Makefile && make "$ltmain"
  47600. - fi
  47601. -fi
  47602. -ac_ext=c
  47603. -ac_cpp='$CPP $CPPFLAGS'
  47604. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47605. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47606. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47607. -CC="$lt_save_CC"
  47608. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  47609. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  47610. - ;;
  47611. +library_names_spec=
  47612. +libname_spec='lib$name'
  47613. +soname_spec=
  47614. +shrext_cmds=".so"
  47615. +postinstall_cmds=
  47616. +postuninstall_cmds=
  47617. +finish_cmds=
  47618. +finish_eval=
  47619. +shlibpath_var=
  47620. +shlibpath_overrides_runpath=unknown
  47621. +version_type=none
  47622. +dynamic_linker="$host_os ld.so"
  47623. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  47624. +need_lib_prefix=unknown
  47625. +hardcode_into_libs=no
  47626. - *)
  47627. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  47628. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  47629. - { (exit 1); exit 1; }; }
  47630. - ;;
  47631. - esac
  47632. +# when you set need_version to no, make sure it does not cause -set_version
  47633. +# flags to be left without arguments
  47634. +need_version=unknown
  47635. - # Append the new tag name to the list of available tags.
  47636. - if test -n "$tagname" ; then
  47637. - available_tags="$available_tags $tagname"
  47638. - fi
  47639. - fi
  47640. - done
  47641. - IFS="$lt_save_ifs"
  47642. +case $host_os in
  47643. +aix3*)
  47644. + version_type=linux
  47645. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  47646. + shlibpath_var=LIBPATH
  47647. +
  47648. + # AIX 3 has no versioning support, so we append a major version to the name.
  47649. + soname_spec='${libname}${release}${shared_ext}$major'
  47650. + ;;
  47651. - # Now substitute the updated list of available tags.
  47652. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  47653. - mv "${ofile}T" "$ofile"
  47654. - chmod +x "$ofile"
  47655. - else
  47656. - rm -f "${ofile}T"
  47657. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  47658. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  47659. - { (exit 1); exit 1; }; }
  47660. +aix[4-9]*)
  47661. + version_type=linux
  47662. + need_lib_prefix=no
  47663. + need_version=no
  47664. + hardcode_into_libs=yes
  47665. + if test "$host_cpu" = ia64; then
  47666. + # AIX 5 supports IA64
  47667. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  47668. + shlibpath_var=LD_LIBRARY_PATH
  47669. + else
  47670. + # With GCC up to 2.95.x, collect2 would create an import file
  47671. + # for dependence libraries. The import file would start with
  47672. + # the line `#! .'. This would cause the generated library to
  47673. + # depend on `.', always an invalid library. This was fixed in
  47674. + # development snapshots of GCC prior to 3.0.
  47675. + case $host_os in
  47676. + aix4 | aix4.[01] | aix4.[01].*)
  47677. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  47678. + echo ' yes '
  47679. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  47680. + :
  47681. + else
  47682. + can_build_shared=no
  47683. + fi
  47684. + ;;
  47685. + esac
  47686. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  47687. + # soname into executable. Probably we can add versioning support to
  47688. + # collect2, so additional links can be useful in future.
  47689. + if test "$aix_use_runtimelinking" = yes; then
  47690. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  47691. + # instead of lib<name>.a to let people know that these are not
  47692. + # typical AIX shared libraries.
  47693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47694. + else
  47695. + # We preserve .a as extension for shared libraries through AIX4.2
  47696. + # and later when we are not doing run time linking.
  47697. + library_names_spec='${libname}${release}.a $libname.a'
  47698. + soname_spec='${libname}${release}${shared_ext}$major'
  47699. + fi
  47700. + shlibpath_var=LIBPATH
  47701. fi
  47702. -fi
  47703. -
  47704. -
  47705. -
  47706. -# This can be used to rebuild libtool when needed
  47707. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  47708. -
  47709. -# Always use our own libtool.
  47710. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  47711. -
  47712. -# Prevent multiple expansion
  47713. -
  47714. -
  47715. -
  47716. -
  47717. -
  47718. -
  47719. -
  47720. -
  47721. -
  47722. + ;;
  47723. +amigaos*)
  47724. + case $host_cpu in
  47725. + powerpc)
  47726. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  47727. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  47728. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47729. + ;;
  47730. + m68k)
  47731. + library_names_spec='$libname.ixlibrary $libname.a'
  47732. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  47733. + 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'
  47734. + ;;
  47735. + esac
  47736. + ;;
  47737. +beos*)
  47738. + library_names_spec='${libname}${shared_ext}'
  47739. + dynamic_linker="$host_os ld.so"
  47740. + shlibpath_var=LIBRARY_PATH
  47741. + ;;
  47742. +bsdi[45]*)
  47743. + version_type=linux
  47744. + need_version=no
  47745. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47746. + soname_spec='${libname}${release}${shared_ext}$major'
  47747. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  47748. + shlibpath_var=LD_LIBRARY_PATH
  47749. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  47750. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  47751. + # the default ld.so.conf also contains /usr/contrib/lib and
  47752. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  47753. + # libtool to hard-code these into programs
  47754. + ;;
  47755. +cygwin* | mingw* | pw32* | cegcc*)
  47756. + version_type=windows
  47757. + shrext_cmds=".dll"
  47758. + need_version=no
  47759. + need_lib_prefix=no
  47760. + case $GCC,$host_os in
  47761. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  47762. + library_names_spec='$libname.dll.a'
  47763. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  47764. + postinstall_cmds='base_file=`basename \${file}`~
  47765. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  47766. + dldir=$destdir/`dirname \$dlpath`~
  47767. + test -d \$dldir || mkdir -p \$dldir~
  47768. + $install_prog $dir/$dlname \$dldir/$dlname~
  47769. + chmod a+x \$dldir/$dlname~
  47770. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  47771. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  47772. + fi'
  47773. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  47774. + dlpath=$dir/\$dldll~
  47775. + $RM \$dlpath'
  47776. + shlibpath_overrides_runpath=yes
  47777. + case $host_os in
  47778. + cygwin*)
  47779. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  47780. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  47781. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  47782. + ;;
  47783. + mingw* | cegcc*)
  47784. + # MinGW DLLs use traditional 'lib' prefix
  47785. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  47786. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  47787. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  47788. + # It is most probably a Windows format PATH printed by
  47789. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  47790. + # path with ; separators, and with drive letters. We can handle the
  47791. + # drive letters (cygwin fileutils understands them), so leave them,
  47792. + # especially as we might pass files found there to a mingw objdump,
  47793. + # which wouldn't understand a cygwinified path. Ahh.
  47794. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  47795. + else
  47796. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  47797. + fi
  47798. + ;;
  47799. + pw32*)
  47800. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  47801. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  47802. + ;;
  47803. + esac
  47804. + ;;
  47805. + *)
  47806. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  47807. + ;;
  47808. + esac
  47809. + dynamic_linker='Win32 ld.exe'
  47810. + # FIXME: first we should search . and the directory the executable is in
  47811. + shlibpath_var=PATH
  47812. + ;;
  47813. +darwin* | rhapsody*)
  47814. + dynamic_linker="$host_os dyld"
  47815. + version_type=darwin
  47816. + need_lib_prefix=no
  47817. + need_version=no
  47818. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  47819. + soname_spec='${libname}${release}${major}$shared_ext'
  47820. + shlibpath_overrides_runpath=yes
  47821. + shlibpath_var=DYLD_LIBRARY_PATH
  47822. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  47823. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  47824. + ;;
  47825. +dgux*)
  47826. + version_type=linux
  47827. + need_lib_prefix=no
  47828. + need_version=no
  47829. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  47830. + soname_spec='${libname}${release}${shared_ext}$major'
  47831. + shlibpath_var=LD_LIBRARY_PATH
  47832. + ;;
  47833. +freebsd1*)
  47834. + dynamic_linker=no
  47835. + ;;
  47836. -# Generate an error here if attempting to build both shared and static when
  47837. -# $libname.a is in $library_names_spec (as mentioned above), rather than
  47838. -# wait for ar or ld to fail.
  47839. -#
  47840. -if test "$enable_shared" = yes && test "$enable_static" = yes; then
  47841. - case $library_names_spec in
  47842. - *libname.a*)
  47843. - { { echo "$as_me:$LINENO: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
  47844. -echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
  47845. - { (exit 1); exit 1; }; }
  47846. +freebsd* | dragonfly*)
  47847. + # DragonFly does not have aout. When/if they implement a new
  47848. + # versioning mechanism, adjust this.
  47849. + if test -x /usr/bin/objformat; then
  47850. + objformat=`/usr/bin/objformat`
  47851. + else
  47852. + case $host_os in
  47853. + freebsd[123]*) objformat=aout ;;
  47854. + *) objformat=elf ;;
  47855. + esac
  47856. + fi
  47857. + version_type=freebsd-$objformat
  47858. + case $version_type in
  47859. + freebsd-elf*)
  47860. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  47861. + need_version=no
  47862. + need_lib_prefix=no
  47863. + ;;
  47864. + freebsd-*)
  47865. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  47866. + need_version=yes
  47867. ;;
  47868. esac
  47869. -fi
  47870. + shlibpath_var=LD_LIBRARY_PATH
  47871. + case $host_os in
  47872. + freebsd2*)
  47873. + shlibpath_overrides_runpath=yes
  47874. + ;;
  47875. + freebsd3.[01]* | freebsdelf3.[01]*)
  47876. + shlibpath_overrides_runpath=yes
  47877. + hardcode_into_libs=yes
  47878. + ;;
  47879. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  47880. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  47881. + shlibpath_overrides_runpath=no
  47882. + hardcode_into_libs=yes
  47883. + ;;
  47884. + *) # from 4.6 on, and DragonFly
  47885. + shlibpath_overrides_runpath=yes
  47886. + hardcode_into_libs=yes
  47887. + ;;
  47888. + esac
  47889. + ;;
  47890. +gnu*)
  47891. + version_type=linux
  47892. + need_lib_prefix=no
  47893. + need_version=no
  47894. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  47895. + soname_spec='${libname}${release}${shared_ext}$major'
  47896. + shlibpath_var=LD_LIBRARY_PATH
  47897. + hardcode_into_libs=yes
  47898. + ;;
  47899. +hpux9* | hpux10* | hpux11*)
  47900. + # Give a soname corresponding to the major version so that dld.sl refuses to
  47901. + # link against other versions.
  47902. + version_type=sunos
  47903. + need_lib_prefix=no
  47904. + need_version=no
  47905. + case $host_cpu in
  47906. + ia64*)
  47907. + shrext_cmds='.so'
  47908. + hardcode_into_libs=yes
  47909. + dynamic_linker="$host_os dld.so"
  47910. + shlibpath_var=LD_LIBRARY_PATH
  47911. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  47912. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47913. + soname_spec='${libname}${release}${shared_ext}$major'
  47914. + if test "X$HPUX_IA64_MODE" = X32; then
  47915. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  47916. + else
  47917. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  47918. + fi
  47919. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  47920. + ;;
  47921. + hppa*64*)
  47922. + shrext_cmds='.sl'
  47923. + hardcode_into_libs=yes
  47924. + dynamic_linker="$host_os dld.sl"
  47925. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  47926. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  47927. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47928. + soname_spec='${libname}${release}${shared_ext}$major'
  47929. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  47930. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  47931. + ;;
  47932. + *)
  47933. + shrext_cmds='.sl'
  47934. + dynamic_linker="$host_os dld.sl"
  47935. + shlibpath_var=SHLIB_PATH
  47936. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  47937. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47938. + soname_spec='${libname}${release}${shared_ext}$major'
  47939. + ;;
  47940. + esac
  47941. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  47942. + postinstall_cmds='chmod 555 $lib'
  47943. + ;;
  47944. -if test "$enable_static" = yes; then
  47945. - ENABLE_STATIC_TRUE=
  47946. - ENABLE_STATIC_FALSE='#'
  47947. -else
  47948. - ENABLE_STATIC_TRUE='#'
  47949. - ENABLE_STATIC_FALSE=
  47950. -fi
  47951. +interix[3-9]*)
  47952. + version_type=linux
  47953. + need_lib_prefix=no
  47954. + need_version=no
  47955. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  47956. + soname_spec='${libname}${release}${shared_ext}$major'
  47957. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  47958. + shlibpath_var=LD_LIBRARY_PATH
  47959. + shlibpath_overrides_runpath=no
  47960. + hardcode_into_libs=yes
  47961. + ;;
  47962. +irix5* | irix6* | nonstopux*)
  47963. + case $host_os in
  47964. + nonstopux*) version_type=nonstopux ;;
  47965. + *)
  47966. + if test "$lt_cv_prog_gnu_ld" = yes; then
  47967. + version_type=linux
  47968. + else
  47969. + version_type=irix
  47970. + fi ;;
  47971. + esac
  47972. + need_lib_prefix=no
  47973. + need_version=no
  47974. + soname_spec='${libname}${release}${shared_ext}$major'
  47975. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  47976. + case $host_os in
  47977. + irix5* | nonstopux*)
  47978. + libsuff= shlibsuff=
  47979. + ;;
  47980. + *)
  47981. + case $LD in # libtool.m4 will add one of these switches to LD
  47982. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  47983. + libsuff= shlibsuff= libmagic=32-bit;;
  47984. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  47985. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  47986. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  47987. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  47988. + *) libsuff= shlibsuff= libmagic=never-match;;
  47989. + esac
  47990. + ;;
  47991. + esac
  47992. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  47993. + shlibpath_overrides_runpath=no
  47994. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  47995. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  47996. + hardcode_into_libs=yes
  47997. + ;;
  47998. +# No shared lib support for Linux oldld, aout, or coff.
  47999. +linux*oldld* | linux*aout* | linux*coff*)
  48000. + dynamic_linker=no
  48001. + ;;
  48002. -# Many of these library and header checks are for the benefit of
  48003. -# supplementary programs. libgmp doesn't use anything too weird.
  48004. +# This must be Linux ELF.
  48005. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  48006. + version_type=linux
  48007. + need_lib_prefix=no
  48008. + need_version=no
  48009. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48010. + soname_spec='${libname}${release}${shared_ext}$major'
  48011. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  48012. + shlibpath_var=LD_LIBRARY_PATH
  48013. + shlibpath_overrides_runpath=no
  48014. + # Some binutils ld are patched to set DT_RUNPATH
  48015. + save_LDFLAGS=$LDFLAGS
  48016. + save_libdir=$libdir
  48017. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
  48018. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
  48019. + cat > conftest.$ac_ext <<_ACEOF
  48020. + program main
  48021. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  48022. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  48023. -if test "${ac_cv_header_stdc+set}" = set; then
  48024. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48025. -else
  48026. - cat >conftest.$ac_ext <<_ACEOF
  48027. -/* confdefs.h. */
  48028. + end
  48029. _ACEOF
  48030. -cat confdefs.h >>conftest.$ac_ext
  48031. -cat >>conftest.$ac_ext <<_ACEOF
  48032. -/* end confdefs.h. */
  48033. -#include <stdlib.h>
  48034. -#include <stdarg.h>
  48035. -#include <string.h>
  48036. -#include <float.h>
  48037. +if ac_fn_f77_try_link "$LINENO"; then :
  48038. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  48039. + shlibpath_overrides_runpath=yes
  48040. +fi
  48041. +fi
  48042. +rm -f core conftest.err conftest.$ac_objext \
  48043. + conftest$ac_exeext conftest.$ac_ext
  48044. + LDFLAGS=$save_LDFLAGS
  48045. + libdir=$save_libdir
  48046. -int
  48047. -main ()
  48048. -{
  48049. + # This implies no fast_install, which is unacceptable.
  48050. + # Some rework will be needed to allow for fast_install
  48051. + # before this can be enabled.
  48052. + hardcode_into_libs=yes
  48053. - ;
  48054. - return 0;
  48055. -}
  48056. -_ACEOF
  48057. -rm -f conftest.$ac_objext
  48058. -if { (ac_try="$ac_compile"
  48059. -case "(($ac_try" in
  48060. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48061. - *) ac_try_echo=$ac_try;;
  48062. -esac
  48063. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48064. - (eval "$ac_compile") 2>conftest.er1
  48065. - ac_status=$?
  48066. - grep -v '^ *+' conftest.er1 >conftest.err
  48067. - rm -f conftest.er1
  48068. - cat conftest.err >&5
  48069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48070. - (exit $ac_status); } && {
  48071. - test -z "$ac_c_werror_flag" ||
  48072. - test ! -s conftest.err
  48073. - } && test -s conftest.$ac_objext; then
  48074. - ac_cv_header_stdc=yes
  48075. -else
  48076. - echo "$as_me: failed program was:" >&5
  48077. -sed 's/^/| /' conftest.$ac_ext >&5
  48078. + # Append ld.so.conf contents to the search path
  48079. + if test -f /etc/ld.so.conf; then
  48080. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  48081. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  48082. + fi
  48083. - ac_cv_header_stdc=no
  48084. -fi
  48085. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  48086. + # powerpc, because MkLinux only supported shared libraries with the
  48087. + # GNU dynamic linker. Since this was broken with cross compilers,
  48088. + # most powerpc-linux boxes support dynamic linking these days and
  48089. + # people can always --disable-shared, the test was removed, and we
  48090. + # assume the GNU/Linux dynamic linker is in use.
  48091. + dynamic_linker='GNU/Linux ld.so'
  48092. + ;;
  48093. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48094. +netbsdelf*-gnu)
  48095. + version_type=linux
  48096. + need_lib_prefix=no
  48097. + need_version=no
  48098. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  48099. + soname_spec='${libname}${release}${shared_ext}$major'
  48100. + shlibpath_var=LD_LIBRARY_PATH
  48101. + shlibpath_overrides_runpath=no
  48102. + hardcode_into_libs=yes
  48103. + dynamic_linker='NetBSD ld.elf_so'
  48104. + ;;
  48105. -if test $ac_cv_header_stdc = yes; then
  48106. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  48107. - cat >conftest.$ac_ext <<_ACEOF
  48108. -/* confdefs.h. */
  48109. -_ACEOF
  48110. -cat confdefs.h >>conftest.$ac_ext
  48111. -cat >>conftest.$ac_ext <<_ACEOF
  48112. -/* end confdefs.h. */
  48113. -#include <string.h>
  48114. +netbsd*)
  48115. + version_type=sunos
  48116. + need_lib_prefix=no
  48117. + need_version=no
  48118. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  48119. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  48120. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  48121. + dynamic_linker='NetBSD (a.out) ld.so'
  48122. + else
  48123. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  48124. + soname_spec='${libname}${release}${shared_ext}$major'
  48125. + dynamic_linker='NetBSD ld.elf_so'
  48126. + fi
  48127. + shlibpath_var=LD_LIBRARY_PATH
  48128. + shlibpath_overrides_runpath=yes
  48129. + hardcode_into_libs=yes
  48130. + ;;
  48131. -_ACEOF
  48132. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  48133. - $EGREP "memchr" >/dev/null 2>&1; then
  48134. - :
  48135. -else
  48136. - ac_cv_header_stdc=no
  48137. -fi
  48138. -rm -f conftest*
  48139. +newsos6)
  48140. + version_type=linux
  48141. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48142. + shlibpath_var=LD_LIBRARY_PATH
  48143. + shlibpath_overrides_runpath=yes
  48144. + ;;
  48145. -fi
  48146. +*nto* | *qnx*)
  48147. + version_type=qnx
  48148. + need_lib_prefix=no
  48149. + need_version=no
  48150. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48151. + soname_spec='${libname}${release}${shared_ext}$major'
  48152. + shlibpath_var=LD_LIBRARY_PATH
  48153. + shlibpath_overrides_runpath=no
  48154. + hardcode_into_libs=yes
  48155. + dynamic_linker='ldqnx.so'
  48156. + ;;
  48157. -if test $ac_cv_header_stdc = yes; then
  48158. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  48159. - cat >conftest.$ac_ext <<_ACEOF
  48160. -/* confdefs.h. */
  48161. -_ACEOF
  48162. -cat confdefs.h >>conftest.$ac_ext
  48163. -cat >>conftest.$ac_ext <<_ACEOF
  48164. -/* end confdefs.h. */
  48165. -#include <stdlib.h>
  48166. +openbsd*)
  48167. + version_type=sunos
  48168. + sys_lib_dlsearch_path_spec="/usr/lib"
  48169. + need_lib_prefix=no
  48170. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  48171. + case $host_os in
  48172. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  48173. + *) need_version=no ;;
  48174. + esac
  48175. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  48176. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  48177. + shlibpath_var=LD_LIBRARY_PATH
  48178. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  48179. + case $host_os in
  48180. + openbsd2.[89] | openbsd2.[89].*)
  48181. + shlibpath_overrides_runpath=no
  48182. + ;;
  48183. + *)
  48184. + shlibpath_overrides_runpath=yes
  48185. + ;;
  48186. + esac
  48187. + else
  48188. + shlibpath_overrides_runpath=yes
  48189. + fi
  48190. + ;;
  48191. -_ACEOF
  48192. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  48193. - $EGREP "free" >/dev/null 2>&1; then
  48194. - :
  48195. -else
  48196. - ac_cv_header_stdc=no
  48197. -fi
  48198. -rm -f conftest*
  48199. +os2*)
  48200. + libname_spec='$name'
  48201. + shrext_cmds=".dll"
  48202. + need_lib_prefix=no
  48203. + library_names_spec='$libname${shared_ext} $libname.a'
  48204. + dynamic_linker='OS/2 ld.exe'
  48205. + shlibpath_var=LIBPATH
  48206. + ;;
  48207. -fi
  48208. +osf3* | osf4* | osf5*)
  48209. + version_type=osf
  48210. + need_lib_prefix=no
  48211. + need_version=no
  48212. + soname_spec='${libname}${release}${shared_ext}$major'
  48213. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48214. + shlibpath_var=LD_LIBRARY_PATH
  48215. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  48216. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  48217. + ;;
  48218. -if test $ac_cv_header_stdc = yes; then
  48219. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  48220. - if test "$cross_compiling" = yes; then
  48221. - :
  48222. -else
  48223. - cat >conftest.$ac_ext <<_ACEOF
  48224. -/* confdefs.h. */
  48225. -_ACEOF
  48226. -cat confdefs.h >>conftest.$ac_ext
  48227. -cat >>conftest.$ac_ext <<_ACEOF
  48228. -/* end confdefs.h. */
  48229. -#include <ctype.h>
  48230. -#include <stdlib.h>
  48231. -#if ((' ' & 0x0FF) == 0x020)
  48232. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  48233. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  48234. -#else
  48235. -# define ISLOWER(c) \
  48236. - (('a' <= (c) && (c) <= 'i') \
  48237. - || ('j' <= (c) && (c) <= 'r') \
  48238. - || ('s' <= (c) && (c) <= 'z'))
  48239. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  48240. -#endif
  48241. +rdos*)
  48242. + dynamic_linker=no
  48243. + ;;
  48244. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  48245. -int
  48246. -main ()
  48247. -{
  48248. - int i;
  48249. - for (i = 0; i < 256; i++)
  48250. - if (XOR (islower (i), ISLOWER (i))
  48251. - || toupper (i) != TOUPPER (i))
  48252. - return 2;
  48253. - return 0;
  48254. -}
  48255. -_ACEOF
  48256. -rm -f conftest$ac_exeext
  48257. -if { (ac_try="$ac_link"
  48258. -case "(($ac_try" in
  48259. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48260. - *) ac_try_echo=$ac_try;;
  48261. -esac
  48262. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48263. - (eval "$ac_link") 2>&5
  48264. - ac_status=$?
  48265. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48266. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  48267. - { (case "(($ac_try" in
  48268. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48269. - *) ac_try_echo=$ac_try;;
  48270. -esac
  48271. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48272. - (eval "$ac_try") 2>&5
  48273. - ac_status=$?
  48274. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48275. - (exit $ac_status); }; }; then
  48276. - :
  48277. -else
  48278. - echo "$as_me: program exited with status $ac_status" >&5
  48279. -echo "$as_me: failed program was:" >&5
  48280. -sed 's/^/| /' conftest.$ac_ext >&5
  48281. +solaris*)
  48282. + version_type=linux
  48283. + need_lib_prefix=no
  48284. + need_version=no
  48285. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48286. + soname_spec='${libname}${release}${shared_ext}$major'
  48287. + shlibpath_var=LD_LIBRARY_PATH
  48288. + shlibpath_overrides_runpath=yes
  48289. + hardcode_into_libs=yes
  48290. + # ldd complains unless libraries are executable
  48291. + postinstall_cmds='chmod +x $lib'
  48292. + ;;
  48293. -( exit $ac_status )
  48294. -ac_cv_header_stdc=no
  48295. -fi
  48296. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  48297. -fi
  48298. +sunos4*)
  48299. + version_type=sunos
  48300. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  48301. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  48302. + shlibpath_var=LD_LIBRARY_PATH
  48303. + shlibpath_overrides_runpath=yes
  48304. + if test "$with_gnu_ld" = yes; then
  48305. + need_lib_prefix=no
  48306. + fi
  48307. + need_version=yes
  48308. + ;;
  48309. +sysv4 | sysv4.3*)
  48310. + version_type=linux
  48311. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48312. + soname_spec='${libname}${release}${shared_ext}$major'
  48313. + shlibpath_var=LD_LIBRARY_PATH
  48314. + case $host_vendor in
  48315. + sni)
  48316. + shlibpath_overrides_runpath=no
  48317. + need_lib_prefix=no
  48318. + runpath_var=LD_RUN_PATH
  48319. + ;;
  48320. + siemens)
  48321. + need_lib_prefix=no
  48322. + ;;
  48323. + motorola)
  48324. + need_lib_prefix=no
  48325. + need_version=no
  48326. + shlibpath_overrides_runpath=no
  48327. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  48328. + ;;
  48329. + esac
  48330. + ;;
  48331. -fi
  48332. -fi
  48333. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  48334. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  48335. -if test $ac_cv_header_stdc = yes; then
  48336. +sysv4*MP*)
  48337. + if test -d /usr/nec ;then
  48338. + version_type=linux
  48339. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  48340. + soname_spec='$libname${shared_ext}.$major'
  48341. + shlibpath_var=LD_LIBRARY_PATH
  48342. + fi
  48343. + ;;
  48344. -cat >>confdefs.h <<\_ACEOF
  48345. -#define STDC_HEADERS 1
  48346. -_ACEOF
  48347. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  48348. + version_type=freebsd-elf
  48349. + need_lib_prefix=no
  48350. + need_version=no
  48351. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  48352. + soname_spec='${libname}${release}${shared_ext}$major'
  48353. + shlibpath_var=LD_LIBRARY_PATH
  48354. + shlibpath_overrides_runpath=yes
  48355. + hardcode_into_libs=yes
  48356. + if test "$with_gnu_ld" = yes; then
  48357. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  48358. + else
  48359. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  48360. + case $host_os in
  48361. + sco3.2v5*)
  48362. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  48363. + ;;
  48364. + esac
  48365. + fi
  48366. + sys_lib_dlsearch_path_spec='/usr/lib'
  48367. + ;;
  48368. -fi
  48369. +tpf*)
  48370. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  48371. + version_type=linux
  48372. + need_lib_prefix=no
  48373. + need_version=no
  48374. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48375. + shlibpath_var=LD_LIBRARY_PATH
  48376. + shlibpath_overrides_runpath=no
  48377. + hardcode_into_libs=yes
  48378. + ;;
  48379. -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  48380. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  48381. -if test "${ac_cv_header_time+set}" = set; then
  48382. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48383. -else
  48384. - cat >conftest.$ac_ext <<_ACEOF
  48385. -/* confdefs.h. */
  48386. -_ACEOF
  48387. -cat confdefs.h >>conftest.$ac_ext
  48388. -cat >>conftest.$ac_ext <<_ACEOF
  48389. -/* end confdefs.h. */
  48390. -#include <sys/types.h>
  48391. -#include <sys/time.h>
  48392. -#include <time.h>
  48393. +uts4*)
  48394. + version_type=linux
  48395. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  48396. + soname_spec='${libname}${release}${shared_ext}$major'
  48397. + shlibpath_var=LD_LIBRARY_PATH
  48398. + ;;
  48399. -int
  48400. -main ()
  48401. -{
  48402. -if ((struct tm *) 0)
  48403. -return 0;
  48404. - ;
  48405. - return 0;
  48406. -}
  48407. -_ACEOF
  48408. -rm -f conftest.$ac_objext
  48409. -if { (ac_try="$ac_compile"
  48410. -case "(($ac_try" in
  48411. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48412. - *) ac_try_echo=$ac_try;;
  48413. +*)
  48414. + dynamic_linker=no
  48415. + ;;
  48416. esac
  48417. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48418. - (eval "$ac_compile") 2>conftest.er1
  48419. - ac_status=$?
  48420. - grep -v '^ *+' conftest.er1 >conftest.err
  48421. - rm -f conftest.er1
  48422. - cat conftest.err >&5
  48423. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48424. - (exit $ac_status); } && {
  48425. - test -z "$ac_c_werror_flag" ||
  48426. - test ! -s conftest.err
  48427. - } && test -s conftest.$ac_objext; then
  48428. - ac_cv_header_time=yes
  48429. -else
  48430. - echo "$as_me: failed program was:" >&5
  48431. -sed 's/^/| /' conftest.$ac_ext >&5
  48432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  48433. +$as_echo "$dynamic_linker" >&6; }
  48434. +test "$dynamic_linker" = no && can_build_shared=no
  48435. - ac_cv_header_time=no
  48436. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  48437. +if test "$GCC" = yes; then
  48438. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  48439. fi
  48440. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48441. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  48442. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  48443. fi
  48444. -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  48445. -echo "${ECHO_T}$ac_cv_header_time" >&6; }
  48446. -if test $ac_cv_header_time = yes; then
  48447. -
  48448. -cat >>confdefs.h <<\_ACEOF
  48449. -#define TIME_WITH_SYS_TIME 1
  48450. -_ACEOF
  48451. -
  48452. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  48453. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  48454. fi
  48455. -# Reasons for testing:
  48456. -# float.h - not in SunOS bundled cc
  48457. -# invent.h - IRIX specific
  48458. -# langinfo.h - X/Open standard only, not in djgpp for instance
  48459. -# locale.h - old systems won't have this
  48460. -# nl_types.h - X/Open standard only, not in djgpp for instance
  48461. -# (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
  48462. -# sys/attributes.h - IRIX specific
  48463. -# sys/iograph.h - IRIX specific
  48464. -# sys/mman.h - not in Cray Unicos
  48465. -# sys/param.h - not in mingw
  48466. -# sys/processor.h - solaris specific, though also present in macos
  48467. -# sys/pstat.h - HPUX specific
  48468. -# sys/resource.h - not in mingw
  48469. -# sys/sysctl.h - not in mingw
  48470. -# sys/sysinfo.h - OSF specific
  48471. -# sys/syssgi.h - IRIX specific
  48472. -# sys/systemcfg.h - AIX specific
  48473. -# sys/time.h - autoconf suggests testing, don't know anywhere without it
  48474. -# sys/times.h - not in mingw
  48475. -# machine/hal_sysinfo.h - OSF specific
  48476. -#
  48477. -# inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
  48478. -# default tests
  48479. -#
  48480. -
  48481. -
  48482. -
  48483. -
  48484. @@ -25844,1253 +23589,552 @@
  48485. -for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
  48486. -do
  48487. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  48488. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48489. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  48490. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  48491. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48492. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48493. -fi
  48494. -ac_res=`eval echo '${'$as_ac_Header'}'`
  48495. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48496. -echo "${ECHO_T}$ac_res" >&6; }
  48497. -else
  48498. - # Is the header compilable?
  48499. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  48500. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  48501. -cat >conftest.$ac_ext <<_ACEOF
  48502. -/* confdefs.h. */
  48503. -_ACEOF
  48504. -cat confdefs.h >>conftest.$ac_ext
  48505. -cat >>conftest.$ac_ext <<_ACEOF
  48506. -/* end confdefs.h. */
  48507. -$ac_includes_default
  48508. -#include <$ac_header>
  48509. -_ACEOF
  48510. -rm -f conftest.$ac_objext
  48511. -if { (ac_try="$ac_compile"
  48512. -case "(($ac_try" in
  48513. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48514. - *) ac_try_echo=$ac_try;;
  48515. -esac
  48516. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48517. - (eval "$ac_compile") 2>conftest.er1
  48518. - ac_status=$?
  48519. - grep -v '^ *+' conftest.er1 >conftest.err
  48520. - rm -f conftest.er1
  48521. - cat conftest.err >&5
  48522. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48523. - (exit $ac_status); } && {
  48524. - test -z "$ac_c_werror_flag" ||
  48525. - test ! -s conftest.err
  48526. - } && test -s conftest.$ac_objext; then
  48527. - ac_header_compiler=yes
  48528. -else
  48529. - echo "$as_me: failed program was:" >&5
  48530. -sed 's/^/| /' conftest.$ac_ext >&5
  48531. -
  48532. - ac_header_compiler=no
  48533. -fi
  48534. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48535. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48536. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  48537. -# Is the header present?
  48538. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  48539. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  48540. -cat >conftest.$ac_ext <<_ACEOF
  48541. -/* confdefs.h. */
  48542. -_ACEOF
  48543. -cat confdefs.h >>conftest.$ac_ext
  48544. -cat >>conftest.$ac_ext <<_ACEOF
  48545. -/* end confdefs.h. */
  48546. -#include <$ac_header>
  48547. -_ACEOF
  48548. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  48549. -case "(($ac_try" in
  48550. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48551. - *) ac_try_echo=$ac_try;;
  48552. -esac
  48553. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48554. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48555. - ac_status=$?
  48556. - grep -v '^ *+' conftest.er1 >conftest.err
  48557. - rm -f conftest.er1
  48558. - cat conftest.err >&5
  48559. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48560. - (exit $ac_status); } >/dev/null && {
  48561. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48562. - test ! -s conftest.err
  48563. - }; then
  48564. - ac_header_preproc=yes
  48565. -else
  48566. - echo "$as_me: failed program was:" >&5
  48567. -sed 's/^/| /' conftest.$ac_ext >&5
  48568. - ac_header_preproc=no
  48569. -fi
  48570. -rm -f conftest.err conftest.$ac_ext
  48571. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48572. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  48573. -# So? What about this header?
  48574. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48575. - yes:no: )
  48576. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  48577. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48578. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  48579. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  48580. - ac_header_preproc=yes
  48581. - ;;
  48582. - no:yes:* )
  48583. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  48584. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  48585. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  48586. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  48587. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  48588. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  48589. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  48590. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  48591. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  48592. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  48593. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  48594. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  48595. - ( cat <<\_ASBOX
  48596. -## ---------------------------------- ##
  48597. -## Report this to gmp-bugs@gmplib.org ##
  48598. -## ---------------------------------- ##
  48599. -_ASBOX
  48600. - ) | sed "s/^/$as_me: WARNING: /" >&2
  48601. - ;;
  48602. -esac
  48603. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  48604. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  48605. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48606. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48607. -else
  48608. - eval "$as_ac_Header=\$ac_header_preproc"
  48609. -fi
  48610. -ac_res=`eval echo '${'$as_ac_Header'}'`
  48611. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48612. -echo "${ECHO_T}$ac_res" >&6; }
  48613. -fi
  48614. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  48615. - cat >>confdefs.h <<_ACEOF
  48616. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  48617. -_ACEOF
  48618. -fi
  48619. -done
  48620. -# On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
  48621. -for ac_header in sys/resource.h
  48622. -do
  48623. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  48624. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  48625. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  48626. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48627. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48628. -else
  48629. - cat >conftest.$ac_ext <<_ACEOF
  48630. -/* confdefs.h. */
  48631. -_ACEOF
  48632. -cat confdefs.h >>conftest.$ac_ext
  48633. -cat >>conftest.$ac_ext <<_ACEOF
  48634. -/* end confdefs.h. */
  48635. -#if TIME_WITH_SYS_TIME
  48636. -# include <sys/time.h>
  48637. -# include <time.h>
  48638. -#else
  48639. -# if HAVE_SYS_TIME_H
  48640. -# include <sys/time.h>
  48641. -# else
  48642. -# include <time.h>
  48643. -# endif
  48644. -#endif
  48645. -#include <$ac_header>
  48646. -_ACEOF
  48647. -rm -f conftest.$ac_objext
  48648. -if { (ac_try="$ac_compile"
  48649. -case "(($ac_try" in
  48650. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48651. - *) ac_try_echo=$ac_try;;
  48652. -esac
  48653. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48654. - (eval "$ac_compile") 2>conftest.er1
  48655. - ac_status=$?
  48656. - grep -v '^ *+' conftest.er1 >conftest.err
  48657. - rm -f conftest.er1
  48658. - cat conftest.err >&5
  48659. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48660. - (exit $ac_status); } && {
  48661. - test -z "$ac_c_werror_flag" ||
  48662. - test ! -s conftest.err
  48663. - } && test -s conftest.$ac_objext; then
  48664. - eval "$as_ac_Header=yes"
  48665. -else
  48666. - echo "$as_me: failed program was:" >&5
  48667. -sed 's/^/| /' conftest.$ac_ext >&5
  48668. - eval "$as_ac_Header=no"
  48669. -fi
  48670. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48671. -fi
  48672. -ac_res=`eval echo '${'$as_ac_Header'}'`
  48673. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48674. -echo "${ECHO_T}$ac_res" >&6; }
  48675. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  48676. - cat >>confdefs.h <<_ACEOF
  48677. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  48678. -_ACEOF
  48679. -fi
  48680. -done
  48681. -# On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
  48682. -for ac_header in sys/sysctl.h
  48683. -do
  48684. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  48685. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  48686. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  48687. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48688. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48689. -else
  48690. - cat >conftest.$ac_ext <<_ACEOF
  48691. -/* confdefs.h. */
  48692. -_ACEOF
  48693. -cat confdefs.h >>conftest.$ac_ext
  48694. -cat >>conftest.$ac_ext <<_ACEOF
  48695. -/* end confdefs.h. */
  48696. -#if HAVE_SYS_PARAM_H
  48697. -# include <sys/param.h>
  48698. -#endif
  48699. -#include <$ac_header>
  48700. -_ACEOF
  48701. -rm -f conftest.$ac_objext
  48702. -if { (ac_try="$ac_compile"
  48703. -case "(($ac_try" in
  48704. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48705. - *) ac_try_echo=$ac_try;;
  48706. -esac
  48707. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48708. - (eval "$ac_compile") 2>conftest.er1
  48709. - ac_status=$?
  48710. - grep -v '^ *+' conftest.er1 >conftest.err
  48711. - rm -f conftest.er1
  48712. - cat conftest.err >&5
  48713. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48714. - (exit $ac_status); } && {
  48715. - test -z "$ac_c_werror_flag" ||
  48716. - test ! -s conftest.err
  48717. - } && test -s conftest.$ac_objext; then
  48718. - eval "$as_ac_Header=yes"
  48719. -else
  48720. - echo "$as_me: failed program was:" >&5
  48721. -sed 's/^/| /' conftest.$ac_ext >&5
  48722. - eval "$as_ac_Header=no"
  48723. -fi
  48724. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  48725. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  48726. +hardcode_action_F77=
  48727. +if test -n "$hardcode_libdir_flag_spec_F77" ||
  48728. + test -n "$runpath_var_F77" ||
  48729. + test "X$hardcode_automatic_F77" = "Xyes" ; then
  48730. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48731. + # We can hardcode non-existent directories.
  48732. + if test "$hardcode_direct_F77" != no &&
  48733. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  48734. + # have to relink, otherwise we might link with an installed library
  48735. + # when we should be linking with a yet-to-be-installed one
  48736. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  48737. + test "$hardcode_minus_L_F77" != no; then
  48738. + # Linking always hardcodes the temporary library directory.
  48739. + hardcode_action_F77=relink
  48740. + else
  48741. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  48742. + hardcode_action_F77=immediate
  48743. + fi
  48744. +else
  48745. + # We cannot hardcode anything, or else we can only hardcode existing
  48746. + # directories.
  48747. + hardcode_action_F77=unsupported
  48748. fi
  48749. -ac_res=`eval echo '${'$as_ac_Header'}'`
  48750. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48751. -echo "${ECHO_T}$ac_res" >&6; }
  48752. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  48753. - cat >>confdefs.h <<_ACEOF
  48754. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  48755. -_ACEOF
  48756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
  48757. +$as_echo "$hardcode_action_F77" >&6; }
  48758. +if test "$hardcode_action_F77" = relink ||
  48759. + test "$inherit_rpath_F77" = yes; then
  48760. + # Fast installation is not supported
  48761. + enable_fast_install=no
  48762. +elif test "$shlibpath_overrides_runpath" = yes ||
  48763. + test "$enable_shared" = no; then
  48764. + # Fast installation is not necessary
  48765. + enable_fast_install=needless
  48766. fi
  48767. -done
  48768. -# On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
  48769. -for ac_header in machine/hal_sysinfo.h
  48770. -do
  48771. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  48772. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  48773. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  48774. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  48775. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48776. -else
  48777. - cat >conftest.$ac_ext <<_ACEOF
  48778. -/* confdefs.h. */
  48779. -_ACEOF
  48780. -cat confdefs.h >>conftest.$ac_ext
  48781. -cat >>conftest.$ac_ext <<_ACEOF
  48782. -/* end confdefs.h. */
  48783. -#if HAVE_SYS_SYSINFO_H
  48784. -# include <sys/sysinfo.h>
  48785. -#endif
  48786. -#include <$ac_header>
  48787. -_ACEOF
  48788. -rm -f conftest.$ac_objext
  48789. -if { (ac_try="$ac_compile"
  48790. -case "(($ac_try" in
  48791. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48792. - *) ac_try_echo=$ac_try;;
  48793. -esac
  48794. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48795. - (eval "$ac_compile") 2>conftest.er1
  48796. - ac_status=$?
  48797. - grep -v '^ *+' conftest.er1 >conftest.err
  48798. - rm -f conftest.er1
  48799. - cat conftest.err >&5
  48800. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48801. - (exit $ac_status); } && {
  48802. - test -z "$ac_c_werror_flag" ||
  48803. - test ! -s conftest.err
  48804. - } && test -s conftest.$ac_objext; then
  48805. - eval "$as_ac_Header=yes"
  48806. -else
  48807. - echo "$as_me: failed program was:" >&5
  48808. -sed 's/^/| /' conftest.$ac_ext >&5
  48809. - eval "$as_ac_Header=no"
  48810. -fi
  48811. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48812. -fi
  48813. -ac_res=`eval echo '${'$as_ac_Header'}'`
  48814. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48815. -echo "${ECHO_T}$ac_res" >&6; }
  48816. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  48817. - cat >>confdefs.h <<_ACEOF
  48818. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  48819. -_ACEOF
  48820. + fi # test -n "$compiler"
  48821. -fi
  48822. + GCC=$lt_save_GCC
  48823. + CC="$lt_save_CC"
  48824. +fi # test "$_lt_disable_F77" != yes
  48825. -done
  48826. +ac_ext=c
  48827. +ac_cpp='$CPP $CPPFLAGS'
  48828. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48829. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48830. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48831. -# Reasons for testing:
  48832. -# optarg - not declared in mingw
  48833. -# fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
  48834. -# sys_errlist, sys_nerr - not declared in SunOS 4
  48835. -#
  48836. -# optarg should be in unistd.h and the rest in stdio.h, both of which are
  48837. -# in the autoconf default includes.
  48838. -#
  48839. -# sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
  48840. -# to the man page (but aren't), in glibc they're in stdio.h.
  48841. -#
  48842. -{ echo "$as_me:$LINENO: checking whether fgetc is declared" >&5
  48843. -echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6; }
  48844. -if test "${ac_cv_have_decl_fgetc+set}" = set; then
  48845. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48846. -else
  48847. - cat >conftest.$ac_ext <<_ACEOF
  48848. -/* confdefs.h. */
  48849. -_ACEOF
  48850. -cat confdefs.h >>conftest.$ac_ext
  48851. -cat >>conftest.$ac_ext <<_ACEOF
  48852. -/* end confdefs.h. */
  48853. -$ac_includes_default
  48854. -int
  48855. -main ()
  48856. -{
  48857. -#ifndef fgetc
  48858. - (void) fgetc;
  48859. -#endif
  48860. - ;
  48861. - return 0;
  48862. -}
  48863. -_ACEOF
  48864. -rm -f conftest.$ac_objext
  48865. -if { (ac_try="$ac_compile"
  48866. -case "(($ac_try" in
  48867. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48868. - *) ac_try_echo=$ac_try;;
  48869. -esac
  48870. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48871. - (eval "$ac_compile") 2>conftest.er1
  48872. - ac_status=$?
  48873. - grep -v '^ *+' conftest.er1 >conftest.err
  48874. - rm -f conftest.er1
  48875. - cat conftest.err >&5
  48876. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48877. - (exit $ac_status); } && {
  48878. - test -z "$ac_c_werror_flag" ||
  48879. - test ! -s conftest.err
  48880. - } && test -s conftest.$ac_objext; then
  48881. - ac_cv_have_decl_fgetc=yes
  48882. -else
  48883. - echo "$as_me: failed program was:" >&5
  48884. -sed 's/^/| /' conftest.$ac_ext >&5
  48885. - ac_cv_have_decl_fgetc=no
  48886. -fi
  48887. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48888. -fi
  48889. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc" >&5
  48890. -echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6; }
  48891. -if test $ac_cv_have_decl_fgetc = yes; then
  48892. -cat >>confdefs.h <<_ACEOF
  48893. -#define HAVE_DECL_FGETC 1
  48894. -_ACEOF
  48895. -else
  48896. - cat >>confdefs.h <<_ACEOF
  48897. -#define HAVE_DECL_FGETC 0
  48898. -_ACEOF
  48899. -fi
  48900. -{ echo "$as_me:$LINENO: checking whether fscanf is declared" >&5
  48901. -echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6; }
  48902. -if test "${ac_cv_have_decl_fscanf+set}" = set; then
  48903. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48904. -else
  48905. - cat >conftest.$ac_ext <<_ACEOF
  48906. -/* confdefs.h. */
  48907. -_ACEOF
  48908. -cat confdefs.h >>conftest.$ac_ext
  48909. -cat >>conftest.$ac_ext <<_ACEOF
  48910. -/* end confdefs.h. */
  48911. -$ac_includes_default
  48912. -int
  48913. -main ()
  48914. -{
  48915. -#ifndef fscanf
  48916. - (void) fscanf;
  48917. -#endif
  48918. - ;
  48919. - return 0;
  48920. -}
  48921. -_ACEOF
  48922. -rm -f conftest.$ac_objext
  48923. -if { (ac_try="$ac_compile"
  48924. -case "(($ac_try" in
  48925. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48926. - *) ac_try_echo=$ac_try;;
  48927. -esac
  48928. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48929. - (eval "$ac_compile") 2>conftest.er1
  48930. - ac_status=$?
  48931. - grep -v '^ *+' conftest.er1 >conftest.err
  48932. - rm -f conftest.er1
  48933. - cat conftest.err >&5
  48934. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48935. - (exit $ac_status); } && {
  48936. - test -z "$ac_c_werror_flag" ||
  48937. - test ! -s conftest.err
  48938. - } && test -s conftest.$ac_objext; then
  48939. - ac_cv_have_decl_fscanf=yes
  48940. -else
  48941. - echo "$as_me: failed program was:" >&5
  48942. -sed 's/^/| /' conftest.$ac_ext >&5
  48943. + ac_config_commands="$ac_config_commands libtool"
  48944. - ac_cv_have_decl_fscanf=no
  48945. -fi
  48946. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48947. -fi
  48948. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fscanf" >&5
  48949. -echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6; }
  48950. -if test $ac_cv_have_decl_fscanf = yes; then
  48951. -cat >>confdefs.h <<_ACEOF
  48952. -#define HAVE_DECL_FSCANF 1
  48953. -_ACEOF
  48954. +# Only expand once:
  48955. -else
  48956. - cat >>confdefs.h <<_ACEOF
  48957. -#define HAVE_DECL_FSCANF 0
  48958. -_ACEOF
  48959. +# Generate an error here if attempting to build both shared and static when
  48960. +# $libname.a is in $library_names_spec (as mentioned above), rather than
  48961. +# wait for ar or ld to fail.
  48962. +#
  48963. +if test "$enable_shared" = yes && test "$enable_static" = yes; then
  48964. + case $library_names_spec in
  48965. + *libname.a*)
  48966. + as_fn_error "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
  48967. + ;;
  48968. + esac
  48969. fi
  48970. -{ echo "$as_me:$LINENO: checking whether optarg is declared" >&5
  48971. -echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; }
  48972. -if test "${ac_cv_have_decl_optarg+set}" = set; then
  48973. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48974. -else
  48975. - cat >conftest.$ac_ext <<_ACEOF
  48976. -/* confdefs.h. */
  48977. -_ACEOF
  48978. -cat confdefs.h >>conftest.$ac_ext
  48979. -cat >>conftest.$ac_ext <<_ACEOF
  48980. -/* end confdefs.h. */
  48981. -$ac_includes_default
  48982. -int
  48983. -main ()
  48984. -{
  48985. -#ifndef optarg
  48986. - (void) optarg;
  48987. -#endif
  48988. - ;
  48989. - return 0;
  48990. -}
  48991. -_ACEOF
  48992. -rm -f conftest.$ac_objext
  48993. -if { (ac_try="$ac_compile"
  48994. -case "(($ac_try" in
  48995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48996. - *) ac_try_echo=$ac_try;;
  48997. -esac
  48998. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48999. - (eval "$ac_compile") 2>conftest.er1
  49000. - ac_status=$?
  49001. - grep -v '^ *+' conftest.er1 >conftest.err
  49002. - rm -f conftest.er1
  49003. - cat conftest.err >&5
  49004. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49005. - (exit $ac_status); } && {
  49006. - test -z "$ac_c_werror_flag" ||
  49007. - test ! -s conftest.err
  49008. - } && test -s conftest.$ac_objext; then
  49009. - ac_cv_have_decl_optarg=yes
  49010. + if test "$enable_static" = yes; then
  49011. + ENABLE_STATIC_TRUE=
  49012. + ENABLE_STATIC_FALSE='#'
  49013. else
  49014. - echo "$as_me: failed program was:" >&5
  49015. -sed 's/^/| /' conftest.$ac_ext >&5
  49016. -
  49017. - ac_cv_have_decl_optarg=no
  49018. -fi
  49019. -
  49020. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49021. + ENABLE_STATIC_TRUE='#'
  49022. + ENABLE_STATIC_FALSE=
  49023. fi
  49024. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
  49025. -echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; }
  49026. -if test $ac_cv_have_decl_optarg = yes; then
  49027. -
  49028. -cat >>confdefs.h <<_ACEOF
  49029. -#define HAVE_DECL_OPTARG 1
  49030. -_ACEOF
  49031. -else
  49032. - cat >>confdefs.h <<_ACEOF
  49033. -#define HAVE_DECL_OPTARG 0
  49034. -_ACEOF
  49035. +# Many of these library and header checks are for the benefit of
  49036. +# supplementary programs. libgmp doesn't use anything too weird.
  49037. -fi
  49038. -{ echo "$as_me:$LINENO: checking whether ungetc is declared" >&5
  49039. -echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6; }
  49040. -if test "${ac_cv_have_decl_ungetc+set}" = set; then
  49041. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  49043. +$as_echo_n "checking for ANSI C header files... " >&6; }
  49044. +if test "${ac_cv_header_stdc+set}" = set; then :
  49045. + $as_echo_n "(cached) " >&6
  49046. else
  49047. - cat >conftest.$ac_ext <<_ACEOF
  49048. -/* confdefs.h. */
  49049. -_ACEOF
  49050. -cat confdefs.h >>conftest.$ac_ext
  49051. -cat >>conftest.$ac_ext <<_ACEOF
  49052. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49053. /* end confdefs.h. */
  49054. -$ac_includes_default
  49055. +#include <stdlib.h>
  49056. +#include <stdarg.h>
  49057. +#include <string.h>
  49058. +#include <float.h>
  49059. +
  49060. int
  49061. main ()
  49062. {
  49063. -#ifndef ungetc
  49064. - (void) ungetc;
  49065. -#endif
  49066. ;
  49067. return 0;
  49068. }
  49069. _ACEOF
  49070. -rm -f conftest.$ac_objext
  49071. -if { (ac_try="$ac_compile"
  49072. -case "(($ac_try" in
  49073. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49074. - *) ac_try_echo=$ac_try;;
  49075. -esac
  49076. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49077. - (eval "$ac_compile") 2>conftest.er1
  49078. - ac_status=$?
  49079. - grep -v '^ *+' conftest.er1 >conftest.err
  49080. - rm -f conftest.er1
  49081. - cat conftest.err >&5
  49082. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49083. - (exit $ac_status); } && {
  49084. - test -z "$ac_c_werror_flag" ||
  49085. - test ! -s conftest.err
  49086. - } && test -s conftest.$ac_objext; then
  49087. - ac_cv_have_decl_ungetc=yes
  49088. +if ac_fn_c_try_compile "$LINENO"; then :
  49089. + ac_cv_header_stdc=yes
  49090. else
  49091. - echo "$as_me: failed program was:" >&5
  49092. -sed 's/^/| /' conftest.$ac_ext >&5
  49093. -
  49094. - ac_cv_have_decl_ungetc=no
  49095. + ac_cv_header_stdc=no
  49096. fi
  49097. -
  49098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49099. -fi
  49100. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ungetc" >&5
  49101. -echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6; }
  49102. -if test $ac_cv_have_decl_ungetc = yes; then
  49103. -
  49104. -cat >>confdefs.h <<_ACEOF
  49105. -#define HAVE_DECL_UNGETC 1
  49106. -_ACEOF
  49107. -
  49108. -
  49109. -else
  49110. - cat >>confdefs.h <<_ACEOF
  49111. -#define HAVE_DECL_UNGETC 0
  49112. -_ACEOF
  49113. -
  49114. -fi
  49115. -{ echo "$as_me:$LINENO: checking whether vfprintf is declared" >&5
  49116. -echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6; }
  49117. -if test "${ac_cv_have_decl_vfprintf+set}" = set; then
  49118. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49119. -else
  49120. - cat >conftest.$ac_ext <<_ACEOF
  49121. -/* confdefs.h. */
  49122. -_ACEOF
  49123. -cat confdefs.h >>conftest.$ac_ext
  49124. -cat >>conftest.$ac_ext <<_ACEOF
  49125. +if test $ac_cv_header_stdc = yes; then
  49126. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  49127. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49128. /* end confdefs.h. */
  49129. -$ac_includes_default
  49130. -int
  49131. -main ()
  49132. -{
  49133. -#ifndef vfprintf
  49134. - (void) vfprintf;
  49135. -#endif
  49136. +#include <string.h>
  49137. - ;
  49138. - return 0;
  49139. -}
  49140. _ACEOF
  49141. -rm -f conftest.$ac_objext
  49142. -if { (ac_try="$ac_compile"
  49143. -case "(($ac_try" in
  49144. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49145. - *) ac_try_echo=$ac_try;;
  49146. -esac
  49147. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49148. - (eval "$ac_compile") 2>conftest.er1
  49149. - ac_status=$?
  49150. - grep -v '^ *+' conftest.er1 >conftest.err
  49151. - rm -f conftest.er1
  49152. - cat conftest.err >&5
  49153. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49154. - (exit $ac_status); } && {
  49155. - test -z "$ac_c_werror_flag" ||
  49156. - test ! -s conftest.err
  49157. - } && test -s conftest.$ac_objext; then
  49158. - ac_cv_have_decl_vfprintf=yes
  49159. -else
  49160. - echo "$as_me: failed program was:" >&5
  49161. -sed 's/^/| /' conftest.$ac_ext >&5
  49162. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  49163. + $EGREP "memchr" >/dev/null 2>&1; then :
  49164. - ac_cv_have_decl_vfprintf=no
  49165. +else
  49166. + ac_cv_header_stdc=no
  49167. fi
  49168. +rm -f conftest*
  49169. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49170. fi
  49171. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vfprintf" >&5
  49172. -echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6; }
  49173. -if test $ac_cv_have_decl_vfprintf = yes; then
  49174. -
  49175. -cat >>confdefs.h <<_ACEOF
  49176. -#define HAVE_DECL_VFPRINTF 1
  49177. -_ACEOF
  49178. +if test $ac_cv_header_stdc = yes; then
  49179. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  49180. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49181. +/* end confdefs.h. */
  49182. +#include <stdlib.h>
  49183. -else
  49184. - cat >>confdefs.h <<_ACEOF
  49185. -#define HAVE_DECL_VFPRINTF 0
  49186. _ACEOF
  49187. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  49188. + $EGREP "free" >/dev/null 2>&1; then :
  49189. -
  49190. +else
  49191. + ac_cv_header_stdc=no
  49192. fi
  49193. +rm -f conftest*
  49194. +fi
  49195. -{ echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
  49196. -echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6; }
  49197. -if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
  49198. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49199. +if test $ac_cv_header_stdc = yes; then
  49200. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  49201. + if test "$cross_compiling" = yes; then :
  49202. + :
  49203. else
  49204. - cat >conftest.$ac_ext <<_ACEOF
  49205. -/* confdefs.h. */
  49206. -_ACEOF
  49207. -cat confdefs.h >>conftest.$ac_ext
  49208. -cat >>conftest.$ac_ext <<_ACEOF
  49209. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49210. /* end confdefs.h. */
  49211. -#include <stdio.h>
  49212. -#include <errno.h>
  49213. +#include <ctype.h>
  49214. +#include <stdlib.h>
  49215. +#if ((' ' & 0x0FF) == 0x020)
  49216. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  49217. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  49218. +#else
  49219. +# define ISLOWER(c) \
  49220. + (('a' <= (c) && (c) <= 'i') \
  49221. + || ('j' <= (c) && (c) <= 'r') \
  49222. + || ('s' <= (c) && (c) <= 'z'))
  49223. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  49224. +#endif
  49225. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  49226. int
  49227. main ()
  49228. {
  49229. -#ifndef sys_errlist
  49230. - (void) sys_errlist;
  49231. -#endif
  49232. -
  49233. - ;
  49234. + int i;
  49235. + for (i = 0; i < 256; i++)
  49236. + if (XOR (islower (i), ISLOWER (i))
  49237. + || toupper (i) != TOUPPER (i))
  49238. + return 2;
  49239. return 0;
  49240. }
  49241. _ACEOF
  49242. -rm -f conftest.$ac_objext
  49243. -if { (ac_try="$ac_compile"
  49244. -case "(($ac_try" in
  49245. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49246. - *) ac_try_echo=$ac_try;;
  49247. -esac
  49248. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49249. - (eval "$ac_compile") 2>conftest.er1
  49250. - ac_status=$?
  49251. - grep -v '^ *+' conftest.er1 >conftest.err
  49252. - rm -f conftest.er1
  49253. - cat conftest.err >&5
  49254. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49255. - (exit $ac_status); } && {
  49256. - test -z "$ac_c_werror_flag" ||
  49257. - test ! -s conftest.err
  49258. - } && test -s conftest.$ac_objext; then
  49259. - ac_cv_have_decl_sys_errlist=yes
  49260. -else
  49261. - echo "$as_me: failed program was:" >&5
  49262. -sed 's/^/| /' conftest.$ac_ext >&5
  49263. +if ac_fn_c_try_run "$LINENO"; then :
  49264. - ac_cv_have_decl_sys_errlist=no
  49265. +else
  49266. + ac_cv_header_stdc=no
  49267. fi
  49268. -
  49269. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49270. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  49271. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  49272. fi
  49273. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
  49274. -echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6; }
  49275. -if test $ac_cv_have_decl_sys_errlist = yes; then
  49276. -cat >>confdefs.h <<_ACEOF
  49277. -#define HAVE_DECL_SYS_ERRLIST 1
  49278. -_ACEOF
  49279. -
  49280. -
  49281. -else
  49282. - cat >>confdefs.h <<_ACEOF
  49283. -#define HAVE_DECL_SYS_ERRLIST 0
  49284. -_ACEOF
  49285. +fi
  49286. +fi
  49287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  49288. +$as_echo "$ac_cv_header_stdc" >&6; }
  49289. +if test $ac_cv_header_stdc = yes; then
  49290. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  49291. fi
  49292. -{ echo "$as_me:$LINENO: checking whether sys_nerr is declared" >&5
  49293. -echo $ECHO_N "checking whether sys_nerr is declared... $ECHO_C" >&6; }
  49294. -if test "${ac_cv_have_decl_sys_nerr+set}" = set; then
  49295. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49296. +
  49297. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  49298. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  49299. +if test "${ac_cv_header_time+set}" = set; then :
  49300. + $as_echo_n "(cached) " >&6
  49301. else
  49302. - cat >conftest.$ac_ext <<_ACEOF
  49303. -/* confdefs.h. */
  49304. -_ACEOF
  49305. -cat confdefs.h >>conftest.$ac_ext
  49306. -cat >>conftest.$ac_ext <<_ACEOF
  49307. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49308. /* end confdefs.h. */
  49309. -#include <stdio.h>
  49310. -#include <errno.h>
  49311. +#include <sys/types.h>
  49312. +#include <sys/time.h>
  49313. +#include <time.h>
  49314. int
  49315. main ()
  49316. {
  49317. -#ifndef sys_nerr
  49318. - (void) sys_nerr;
  49319. -#endif
  49320. -
  49321. +if ((struct tm *) 0)
  49322. +return 0;
  49323. ;
  49324. return 0;
  49325. }
  49326. _ACEOF
  49327. -rm -f conftest.$ac_objext
  49328. -if { (ac_try="$ac_compile"
  49329. -case "(($ac_try" in
  49330. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49331. - *) ac_try_echo=$ac_try;;
  49332. -esac
  49333. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49334. - (eval "$ac_compile") 2>conftest.er1
  49335. - ac_status=$?
  49336. - grep -v '^ *+' conftest.er1 >conftest.err
  49337. - rm -f conftest.er1
  49338. - cat conftest.err >&5
  49339. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49340. - (exit $ac_status); } && {
  49341. - test -z "$ac_c_werror_flag" ||
  49342. - test ! -s conftest.err
  49343. - } && test -s conftest.$ac_objext; then
  49344. - ac_cv_have_decl_sys_nerr=yes
  49345. +if ac_fn_c_try_compile "$LINENO"; then :
  49346. + ac_cv_header_time=yes
  49347. else
  49348. - echo "$as_me: failed program was:" >&5
  49349. -sed 's/^/| /' conftest.$ac_ext >&5
  49350. -
  49351. - ac_cv_have_decl_sys_nerr=no
  49352. + ac_cv_header_time=no
  49353. fi
  49354. -
  49355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49356. fi
  49357. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_nerr" >&5
  49358. -echo "${ECHO_T}$ac_cv_have_decl_sys_nerr" >&6; }
  49359. -if test $ac_cv_have_decl_sys_nerr = yes; then
  49360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  49361. +$as_echo "$ac_cv_header_time" >&6; }
  49362. +if test $ac_cv_header_time = yes; then
  49363. -cat >>confdefs.h <<_ACEOF
  49364. -#define HAVE_DECL_SYS_NERR 1
  49365. -_ACEOF
  49366. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  49367. +fi
  49368. -else
  49369. +
  49370. +# Reasons for testing:
  49371. +# float.h - not in SunOS bundled cc
  49372. +# invent.h - IRIX specific
  49373. +# langinfo.h - X/Open standard only, not in djgpp for instance
  49374. +# locale.h - old systems won't have this
  49375. +# nl_types.h - X/Open standard only, not in djgpp for instance
  49376. +# (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
  49377. +# sys/attributes.h - IRIX specific
  49378. +# sys/iograph.h - IRIX specific
  49379. +# sys/mman.h - not in Cray Unicos
  49380. +# sys/param.h - not in mingw
  49381. +# sys/processor.h - solaris specific, though also present in macos
  49382. +# sys/pstat.h - HPUX specific
  49383. +# sys/resource.h - not in mingw
  49384. +# sys/sysctl.h - not in mingw
  49385. +# sys/sysinfo.h - OSF specific
  49386. +# sys/syssgi.h - IRIX specific
  49387. +# sys/systemcfg.h - AIX specific
  49388. +# sys/time.h - autoconf suggests testing, don't know anywhere without it
  49389. +# sys/times.h - not in mingw
  49390. +# machine/hal_sysinfo.h - OSF specific
  49391. +#
  49392. +# inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
  49393. +# default tests
  49394. +#
  49395. +for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
  49396. +do :
  49397. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  49398. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  49399. +eval as_val=\$$as_ac_Header
  49400. + if test "x$as_val" = x""yes; then :
  49401. cat >>confdefs.h <<_ACEOF
  49402. -#define HAVE_DECL_SYS_NERR 0
  49403. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  49404. _ACEOF
  49405. -
  49406. fi
  49407. +done
  49408. -{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  49409. -echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  49410. -if test "${ac_cv_type_signal+set}" = set; then
  49411. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49412. -else
  49413. - cat >conftest.$ac_ext <<_ACEOF
  49414. -/* confdefs.h. */
  49415. +# On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
  49416. +for ac_header in sys/resource.h
  49417. +do :
  49418. + ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
  49419. +# include <sys/time.h>
  49420. +# include <time.h>
  49421. +#else
  49422. +# if HAVE_SYS_TIME_H
  49423. +# include <sys/time.h>
  49424. +# else
  49425. +# include <time.h>
  49426. +# endif
  49427. +#endif
  49428. +"
  49429. +if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
  49430. + cat >>confdefs.h <<_ACEOF
  49431. +#define HAVE_SYS_RESOURCE_H 1
  49432. _ACEOF
  49433. -cat confdefs.h >>conftest.$ac_ext
  49434. -cat >>conftest.$ac_ext <<_ACEOF
  49435. -/* end confdefs.h. */
  49436. -#include <sys/types.h>
  49437. -#include <signal.h>
  49438. -int
  49439. -main ()
  49440. -{
  49441. -return *(signal (0, 0)) (0) == 1;
  49442. - ;
  49443. - return 0;
  49444. -}
  49445. +fi
  49446. +
  49447. +done
  49448. +
  49449. +
  49450. +# On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
  49451. +for ac_header in sys/sysctl.h
  49452. +do :
  49453. + ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
  49454. +# include <sys/param.h>
  49455. +#endif
  49456. +"
  49457. +if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
  49458. + cat >>confdefs.h <<_ACEOF
  49459. +#define HAVE_SYS_SYSCTL_H 1
  49460. _ACEOF
  49461. -rm -f conftest.$ac_objext
  49462. -if { (ac_try="$ac_compile"
  49463. -case "(($ac_try" in
  49464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49465. - *) ac_try_echo=$ac_try;;
  49466. -esac
  49467. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49468. - (eval "$ac_compile") 2>conftest.er1
  49469. - ac_status=$?
  49470. - grep -v '^ *+' conftest.er1 >conftest.err
  49471. - rm -f conftest.er1
  49472. - cat conftest.err >&5
  49473. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49474. - (exit $ac_status); } && {
  49475. - test -z "$ac_c_werror_flag" ||
  49476. - test ! -s conftest.err
  49477. - } && test -s conftest.$ac_objext; then
  49478. - ac_cv_type_signal=int
  49479. -else
  49480. - echo "$as_me: failed program was:" >&5
  49481. -sed 's/^/| /' conftest.$ac_ext >&5
  49482. - ac_cv_type_signal=void
  49483. fi
  49484. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49485. -fi
  49486. -{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  49487. -echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  49488. +done
  49489. -cat >>confdefs.h <<_ACEOF
  49490. -#define RETSIGTYPE $ac_cv_type_signal
  49491. +
  49492. +# On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
  49493. +for ac_header in machine/hal_sysinfo.h
  49494. +do :
  49495. + ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
  49496. +# include <sys/sysinfo.h>
  49497. +#endif
  49498. +"
  49499. +if test "x$ac_cv_header_machine_hal_sysinfo_h" = x""yes; then :
  49500. + cat >>confdefs.h <<_ACEOF
  49501. +#define HAVE_MACHINE_HAL_SYSINFO_H 1
  49502. _ACEOF
  49503. +fi
  49504. +
  49505. +done
  49506. # Reasons for testing:
  49507. -# intmax_t - C99
  49508. -# long double - not in the HP bundled K&R cc
  49509. -# long long - only in reasonably recent compilers
  49510. -# ptrdiff_t - seems to be everywhere, maybe don't need to check this
  49511. -# quad_t - BSD specific
  49512. -# uint_least32_t - C99
  49513. +# optarg - not declared in mingw
  49514. +# fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
  49515. +# sys_errlist, sys_nerr - not declared in SunOS 4
  49516. #
  49517. -# the default includes are sufficient for all these types
  49518. +# optarg should be in unistd.h and the rest in stdio.h, both of which are
  49519. +# in the autoconf default includes.
  49520. #
  49521. -{ echo "$as_me:$LINENO: checking for intmax_t" >&5
  49522. -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  49523. -if test "${ac_cv_type_intmax_t+set}" = set; then
  49524. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49525. -else
  49526. - cat >conftest.$ac_ext <<_ACEOF
  49527. -/* confdefs.h. */
  49528. -_ACEOF
  49529. -cat confdefs.h >>conftest.$ac_ext
  49530. -cat >>conftest.$ac_ext <<_ACEOF
  49531. -/* end confdefs.h. */
  49532. -$ac_includes_default
  49533. -typedef intmax_t ac__type_new_;
  49534. -int
  49535. -main ()
  49536. -{
  49537. -if ((ac__type_new_ *) 0)
  49538. - return 0;
  49539. -if (sizeof (ac__type_new_))
  49540. - return 0;
  49541. - ;
  49542. - return 0;
  49543. -}
  49544. -_ACEOF
  49545. -rm -f conftest.$ac_objext
  49546. -if { (ac_try="$ac_compile"
  49547. -case "(($ac_try" in
  49548. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49549. - *) ac_try_echo=$ac_try;;
  49550. -esac
  49551. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49552. - (eval "$ac_compile") 2>conftest.er1
  49553. - ac_status=$?
  49554. - grep -v '^ *+' conftest.er1 >conftest.err
  49555. - rm -f conftest.er1
  49556. - cat conftest.err >&5
  49557. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49558. - (exit $ac_status); } && {
  49559. - test -z "$ac_c_werror_flag" ||
  49560. - test ! -s conftest.err
  49561. - } && test -s conftest.$ac_objext; then
  49562. - ac_cv_type_intmax_t=yes
  49563. +# sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
  49564. +# to the man page (but aren't), in glibc they're in stdio.h.
  49565. +#
  49566. +ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
  49567. +if test "x$ac_cv_have_decl_fgetc" = x""yes; then :
  49568. + ac_have_decl=1
  49569. else
  49570. - echo "$as_me: failed program was:" >&5
  49571. -sed 's/^/| /' conftest.$ac_ext >&5
  49572. -
  49573. - ac_cv_type_intmax_t=no
  49574. + ac_have_decl=0
  49575. fi
  49576. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49577. +cat >>confdefs.h <<_ACEOF
  49578. +#define HAVE_DECL_FGETC $ac_have_decl
  49579. +_ACEOF
  49580. +ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
  49581. +if test "x$ac_cv_have_decl_fscanf" = x""yes; then :
  49582. + ac_have_decl=1
  49583. +else
  49584. + ac_have_decl=0
  49585. fi
  49586. -{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  49587. -echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
  49588. -if test $ac_cv_type_intmax_t = yes; then
  49589. cat >>confdefs.h <<_ACEOF
  49590. -#define HAVE_INTMAX_T 1
  49591. +#define HAVE_DECL_FSCANF $ac_have_decl
  49592. _ACEOF
  49593. -
  49594. -
  49595. -fi
  49596. -{ echo "$as_me:$LINENO: checking for long double" >&5
  49597. -echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
  49598. -if test "${ac_cv_type_long_double+set}" = set; then
  49599. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49600. +ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
  49601. +if test "x$ac_cv_have_decl_optarg" = x""yes; then :
  49602. + ac_have_decl=1
  49603. else
  49604. - cat >conftest.$ac_ext <<_ACEOF
  49605. -/* confdefs.h. */
  49606. -_ACEOF
  49607. -cat confdefs.h >>conftest.$ac_ext
  49608. -cat >>conftest.$ac_ext <<_ACEOF
  49609. -/* end confdefs.h. */
  49610. -$ac_includes_default
  49611. -typedef long double ac__type_new_;
  49612. -int
  49613. -main ()
  49614. -{
  49615. -if ((ac__type_new_ *) 0)
  49616. - return 0;
  49617. -if (sizeof (ac__type_new_))
  49618. - return 0;
  49619. - ;
  49620. - return 0;
  49621. -}
  49622. + ac_have_decl=0
  49623. +fi
  49624. +
  49625. +cat >>confdefs.h <<_ACEOF
  49626. +#define HAVE_DECL_OPTARG $ac_have_decl
  49627. _ACEOF
  49628. -rm -f conftest.$ac_objext
  49629. -if { (ac_try="$ac_compile"
  49630. -case "(($ac_try" in
  49631. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49632. - *) ac_try_echo=$ac_try;;
  49633. -esac
  49634. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49635. - (eval "$ac_compile") 2>conftest.er1
  49636. - ac_status=$?
  49637. - grep -v '^ *+' conftest.er1 >conftest.err
  49638. - rm -f conftest.er1
  49639. - cat conftest.err >&5
  49640. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49641. - (exit $ac_status); } && {
  49642. - test -z "$ac_c_werror_flag" ||
  49643. - test ! -s conftest.err
  49644. - } && test -s conftest.$ac_objext; then
  49645. - ac_cv_type_long_double=yes
  49646. +ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
  49647. +if test "x$ac_cv_have_decl_ungetc" = x""yes; then :
  49648. + ac_have_decl=1
  49649. else
  49650. - echo "$as_me: failed program was:" >&5
  49651. -sed 's/^/| /' conftest.$ac_ext >&5
  49652. -
  49653. - ac_cv_type_long_double=no
  49654. + ac_have_decl=0
  49655. fi
  49656. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49657. +cat >>confdefs.h <<_ACEOF
  49658. +#define HAVE_DECL_UNGETC $ac_have_decl
  49659. +_ACEOF
  49660. +ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
  49661. +if test "x$ac_cv_have_decl_vfprintf" = x""yes; then :
  49662. + ac_have_decl=1
  49663. +else
  49664. + ac_have_decl=0
  49665. fi
  49666. -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
  49667. -echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
  49668. -if test $ac_cv_type_long_double = yes; then
  49669. cat >>confdefs.h <<_ACEOF
  49670. -#define HAVE_LONG_DOUBLE 1
  49671. +#define HAVE_DECL_VFPRINTF $ac_have_decl
  49672. _ACEOF
  49673. -
  49674. -fi
  49675. -{ echo "$as_me:$LINENO: checking for long long" >&5
  49676. -echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  49677. -if test "${ac_cv_type_long_long+set}" = set; then
  49678. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49679. -else
  49680. - cat >conftest.$ac_ext <<_ACEOF
  49681. -/* confdefs.h. */
  49682. -_ACEOF
  49683. -cat confdefs.h >>conftest.$ac_ext
  49684. -cat >>conftest.$ac_ext <<_ACEOF
  49685. -/* end confdefs.h. */
  49686. -$ac_includes_default
  49687. -typedef long long ac__type_new_;
  49688. -int
  49689. -main ()
  49690. -{
  49691. -if ((ac__type_new_ *) 0)
  49692. - return 0;
  49693. -if (sizeof (ac__type_new_))
  49694. - return 0;
  49695. - ;
  49696. - return 0;
  49697. -}
  49698. -_ACEOF
  49699. -rm -f conftest.$ac_objext
  49700. -if { (ac_try="$ac_compile"
  49701. -case "(($ac_try" in
  49702. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49703. - *) ac_try_echo=$ac_try;;
  49704. -esac
  49705. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49706. - (eval "$ac_compile") 2>conftest.er1
  49707. - ac_status=$?
  49708. - grep -v '^ *+' conftest.er1 >conftest.err
  49709. - rm -f conftest.er1
  49710. - cat conftest.err >&5
  49711. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49712. - (exit $ac_status); } && {
  49713. - test -z "$ac_c_werror_flag" ||
  49714. - test ! -s conftest.err
  49715. - } && test -s conftest.$ac_objext; then
  49716. - ac_cv_type_long_long=yes
  49717. +ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
  49718. +#include <errno.h>
  49719. +"
  49720. +if test "x$ac_cv_have_decl_sys_errlist" = x""yes; then :
  49721. + ac_have_decl=1
  49722. else
  49723. - echo "$as_me: failed program was:" >&5
  49724. -sed 's/^/| /' conftest.$ac_ext >&5
  49725. -
  49726. - ac_cv_type_long_long=no
  49727. + ac_have_decl=0
  49728. fi
  49729. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49730. +cat >>confdefs.h <<_ACEOF
  49731. +#define HAVE_DECL_SYS_ERRLIST $ac_have_decl
  49732. +_ACEOF
  49733. +ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
  49734. +#include <errno.h>
  49735. +"
  49736. +if test "x$ac_cv_have_decl_sys_nerr" = x""yes; then :
  49737. + ac_have_decl=1
  49738. +else
  49739. + ac_have_decl=0
  49740. fi
  49741. -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  49742. -echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  49743. -if test $ac_cv_type_long_long = yes; then
  49744. cat >>confdefs.h <<_ACEOF
  49745. -#define HAVE_LONG_LONG 1
  49746. +#define HAVE_DECL_SYS_NERR $ac_have_decl
  49747. _ACEOF
  49748. -fi
  49749. -{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  49750. -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  49751. -if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  49752. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  49754. +$as_echo_n "checking return type of signal handlers... " >&6; }
  49755. +if test "${ac_cv_type_signal+set}" = set; then :
  49756. + $as_echo_n "(cached) " >&6
  49757. else
  49758. - cat >conftest.$ac_ext <<_ACEOF
  49759. -/* confdefs.h. */
  49760. -_ACEOF
  49761. -cat confdefs.h >>conftest.$ac_ext
  49762. -cat >>conftest.$ac_ext <<_ACEOF
  49763. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49764. /* end confdefs.h. */
  49765. -$ac_includes_default
  49766. -typedef ptrdiff_t ac__type_new_;
  49767. +#include <sys/types.h>
  49768. +#include <signal.h>
  49769. +
  49770. int
  49771. main ()
  49772. {
  49773. -if ((ac__type_new_ *) 0)
  49774. - return 0;
  49775. -if (sizeof (ac__type_new_))
  49776. - return 0;
  49777. +return *(signal (0, 0)) (0) == 1;
  49778. ;
  49779. return 0;
  49780. }
  49781. _ACEOF
  49782. -rm -f conftest.$ac_objext
  49783. -if { (ac_try="$ac_compile"
  49784. -case "(($ac_try" in
  49785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49786. - *) ac_try_echo=$ac_try;;
  49787. -esac
  49788. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49789. - (eval "$ac_compile") 2>conftest.er1
  49790. - ac_status=$?
  49791. - grep -v '^ *+' conftest.er1 >conftest.err
  49792. - rm -f conftest.er1
  49793. - cat conftest.err >&5
  49794. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49795. - (exit $ac_status); } && {
  49796. - test -z "$ac_c_werror_flag" ||
  49797. - test ! -s conftest.err
  49798. - } && test -s conftest.$ac_objext; then
  49799. - ac_cv_type_ptrdiff_t=yes
  49800. +if ac_fn_c_try_compile "$LINENO"; then :
  49801. + ac_cv_type_signal=int
  49802. else
  49803. - echo "$as_me: failed program was:" >&5
  49804. -sed 's/^/| /' conftest.$ac_ext >&5
  49805. -
  49806. - ac_cv_type_ptrdiff_t=no
  49807. + ac_cv_type_signal=void
  49808. fi
  49809. -
  49810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49811. fi
  49812. -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  49813. -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  49814. -if test $ac_cv_type_ptrdiff_t = yes; then
  49815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  49816. +$as_echo "$ac_cv_type_signal" >&6; }
  49817. cat >>confdefs.h <<_ACEOF
  49818. -#define HAVE_PTRDIFF_T 1
  49819. +#define RETSIGTYPE $ac_cv_type_signal
  49820. _ACEOF
  49821. -fi
  49822. -{ echo "$as_me:$LINENO: checking for quad_t" >&5
  49823. -echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
  49824. -if test "${ac_cv_type_quad_t+set}" = set; then
  49825. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49826. -else
  49827. - cat >conftest.$ac_ext <<_ACEOF
  49828. -/* confdefs.h. */
  49829. -_ACEOF
  49830. -cat confdefs.h >>conftest.$ac_ext
  49831. -cat >>conftest.$ac_ext <<_ACEOF
  49832. -/* end confdefs.h. */
  49833. -$ac_includes_default
  49834. -typedef quad_t ac__type_new_;
  49835. -int
  49836. -main ()
  49837. -{
  49838. -if ((ac__type_new_ *) 0)
  49839. - return 0;
  49840. -if (sizeof (ac__type_new_))
  49841. - return 0;
  49842. - ;
  49843. - return 0;
  49844. -}
  49845. +
  49846. +# Reasons for testing:
  49847. +# intmax_t - C99
  49848. +# long double - not in the HP bundled K&R cc
  49849. +# long long - only in reasonably recent compilers
  49850. +# ptrdiff_t - seems to be everywhere, maybe don't need to check this
  49851. +# quad_t - BSD specific
  49852. +# uint_least32_t - C99
  49853. +#
  49854. +# the default includes are sufficient for all these types
  49855. +#
  49856. +ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
  49857. +if test "x$ac_cv_type_intmax_t" = x""yes; then :
  49858. +
  49859. +cat >>confdefs.h <<_ACEOF
  49860. +#define HAVE_INTMAX_T 1
  49861. _ACEOF
  49862. -rm -f conftest.$ac_objext
  49863. -if { (ac_try="$ac_compile"
  49864. -case "(($ac_try" in
  49865. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49866. - *) ac_try_echo=$ac_try;;
  49867. -esac
  49868. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49869. - (eval "$ac_compile") 2>conftest.er1
  49870. - ac_status=$?
  49871. - grep -v '^ *+' conftest.er1 >conftest.err
  49872. - rm -f conftest.er1
  49873. - cat conftest.err >&5
  49874. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49875. - (exit $ac_status); } && {
  49876. - test -z "$ac_c_werror_flag" ||
  49877. - test ! -s conftest.err
  49878. - } && test -s conftest.$ac_objext; then
  49879. - ac_cv_type_quad_t=yes
  49880. -else
  49881. - echo "$as_me: failed program was:" >&5
  49882. -sed 's/^/| /' conftest.$ac_ext >&5
  49883. - ac_cv_type_quad_t=no
  49884. -fi
  49885. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49886. fi
  49887. -{ echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
  49888. -echo "${ECHO_T}$ac_cv_type_quad_t" >&6; }
  49889. -if test $ac_cv_type_quad_t = yes; then
  49890. +ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
  49891. +if test "x$ac_cv_type_long_double" = x""yes; then :
  49892. cat >>confdefs.h <<_ACEOF
  49893. -#define HAVE_QUAD_T 1
  49894. +#define HAVE_LONG_DOUBLE 1
  49895. _ACEOF
  49896. fi
  49897. -{ echo "$as_me:$LINENO: checking for uint_least32_t" >&5
  49898. -echo $ECHO_N "checking for uint_least32_t... $ECHO_C" >&6; }
  49899. -if test "${ac_cv_type_uint_least32_t+set}" = set; then
  49900. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49901. -else
  49902. - cat >conftest.$ac_ext <<_ACEOF
  49903. -/* confdefs.h. */
  49904. +ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  49905. +if test "x$ac_cv_type_long_long" = x""yes; then :
  49906. +
  49907. +cat >>confdefs.h <<_ACEOF
  49908. +#define HAVE_LONG_LONG 1
  49909. _ACEOF
  49910. -cat confdefs.h >>conftest.$ac_ext
  49911. -cat >>conftest.$ac_ext <<_ACEOF
  49912. -/* end confdefs.h. */
  49913. -$ac_includes_default
  49914. -typedef uint_least32_t ac__type_new_;
  49915. -int
  49916. -main ()
  49917. -{
  49918. -if ((ac__type_new_ *) 0)
  49919. - return 0;
  49920. -if (sizeof (ac__type_new_))
  49921. - return 0;
  49922. - ;
  49923. - return 0;
  49924. -}
  49925. +
  49926. +
  49927. +fi
  49928. +ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  49929. +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  49930. +
  49931. +cat >>confdefs.h <<_ACEOF
  49932. +#define HAVE_PTRDIFF_T 1
  49933. _ACEOF
  49934. -rm -f conftest.$ac_objext
  49935. -if { (ac_try="$ac_compile"
  49936. -case "(($ac_try" in
  49937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49938. - *) ac_try_echo=$ac_try;;
  49939. -esac
  49940. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49941. - (eval "$ac_compile") 2>conftest.er1
  49942. - ac_status=$?
  49943. - grep -v '^ *+' conftest.er1 >conftest.err
  49944. - rm -f conftest.er1
  49945. - cat conftest.err >&5
  49946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49947. - (exit $ac_status); } && {
  49948. - test -z "$ac_c_werror_flag" ||
  49949. - test ! -s conftest.err
  49950. - } && test -s conftest.$ac_objext; then
  49951. - ac_cv_type_uint_least32_t=yes
  49952. -else
  49953. - echo "$as_me: failed program was:" >&5
  49954. -sed 's/^/| /' conftest.$ac_ext >&5
  49955. - ac_cv_type_uint_least32_t=no
  49956. +
  49957. fi
  49958. +ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
  49959. +if test "x$ac_cv_type_quad_t" = x""yes; then :
  49960. +
  49961. +cat >>confdefs.h <<_ACEOF
  49962. +#define HAVE_QUAD_T 1
  49963. +_ACEOF
  49964. +
  49965. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49966. fi
  49967. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint_least32_t" >&5
  49968. -echo "${ECHO_T}$ac_cv_type_uint_least32_t" >&6; }
  49969. -if test $ac_cv_type_uint_least32_t = yes; then
  49970. +ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
  49971. +if test "x$ac_cv_type_uint_least32_t" = x""yes; then :
  49972. cat >>confdefs.h <<_ACEOF
  49973. #define HAVE_UINT_LEAST32_T 1
  49974. @@ -27100,23 +24144,19 @@
  49975. fi
  49976. -{ echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  49977. -echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
  49978. -if test "${ac_cv_c_stringize+set}" = set; then
  49979. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
  49981. +$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
  49982. +if test "${ac_cv_c_stringize+set}" = set; then :
  49983. + $as_echo_n "(cached) " >&6
  49984. else
  49985. - cat >conftest.$ac_ext <<_ACEOF
  49986. -/* confdefs.h. */
  49987. -_ACEOF
  49988. -cat confdefs.h >>conftest.$ac_ext
  49989. -cat >>conftest.$ac_ext <<_ACEOF
  49990. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49991. /* end confdefs.h. */
  49992. #define x(y) #y
  49993. char *s = x(teststring);
  49994. _ACEOF
  49995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  49996. - $EGREP "#teststring" >/dev/null 2>&1; then
  49997. + $EGREP "#teststring" >/dev/null 2>&1; then :
  49998. ac_cv_c_stringize=no
  49999. else
  50000. ac_cv_c_stringize=yes
  50001. @@ -27124,13 +24164,11 @@
  50002. rm -f conftest*
  50003. fi
  50004. -{ echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  50005. -echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
  50006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
  50007. +$as_echo "$ac_cv_c_stringize" >&6; }
  50008. if test $ac_cv_c_stringize = yes; then
  50009. -cat >>confdefs.h <<\_ACEOF
  50010. -#define HAVE_STRINGIZE 1
  50011. -_ACEOF
  50012. +$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
  50013. fi
  50014. @@ -27138,16 +24176,12 @@
  50015. # FIXME: Really want #ifndef __cplusplus around the #define volatile
  50016. # replacement autoconf gives, since volatile is always available in C++.
  50017. # But we don't use it in C++ currently.
  50018. -{ echo "$as_me:$LINENO: checking for working volatile" >&5
  50019. -echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  50020. -if test "${ac_cv_c_volatile+set}" = set; then
  50021. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  50023. +$as_echo_n "checking for working volatile... " >&6; }
  50024. +if test "${ac_cv_c_volatile+set}" = set; then :
  50025. + $as_echo_n "(cached) " >&6
  50026. else
  50027. - cat >conftest.$ac_ext <<_ACEOF
  50028. -/* confdefs.h. */
  50029. -_ACEOF
  50030. -cat confdefs.h >>conftest.$ac_ext
  50031. -cat >>conftest.$ac_ext <<_ACEOF
  50032. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50033. /* end confdefs.h. */
  50034. int
  50035. @@ -27161,112 +24195,61 @@
  50036. return 0;
  50037. }
  50038. _ACEOF
  50039. -rm -f conftest.$ac_objext
  50040. -if { (ac_try="$ac_compile"
  50041. -case "(($ac_try" in
  50042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50043. - *) ac_try_echo=$ac_try;;
  50044. -esac
  50045. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50046. - (eval "$ac_compile") 2>conftest.er1
  50047. - ac_status=$?
  50048. - grep -v '^ *+' conftest.er1 >conftest.err
  50049. - rm -f conftest.er1
  50050. - cat conftest.err >&5
  50051. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50052. - (exit $ac_status); } && {
  50053. - test -z "$ac_c_werror_flag" ||
  50054. - test ! -s conftest.err
  50055. - } && test -s conftest.$ac_objext; then
  50056. +if ac_fn_c_try_compile "$LINENO"; then :
  50057. ac_cv_c_volatile=yes
  50058. else
  50059. - echo "$as_me: failed program was:" >&5
  50060. -sed 's/^/| /' conftest.$ac_ext >&5
  50061. -
  50062. - ac_cv_c_volatile=no
  50063. + ac_cv_c_volatile=no
  50064. fi
  50065. -
  50066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50067. fi
  50068. -{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  50069. -echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  50070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  50071. +$as_echo "$ac_cv_c_volatile" >&6; }
  50072. if test $ac_cv_c_volatile = no; then
  50073. -cat >>confdefs.h <<\_ACEOF
  50074. -#define volatile
  50075. -_ACEOF
  50076. +$as_echo "#define volatile /**/" >>confdefs.h
  50077. fi
  50078. -{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
  50079. -echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
  50080. -if test "${ac_cv_c_restrict+set}" = set; then
  50081. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  50083. +$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  50084. +if test "${ac_cv_c_restrict+set}" = set; then :
  50085. + $as_echo_n "(cached) " >&6
  50086. else
  50087. ac_cv_c_restrict=no
  50088. - # Try the official restrict keyword, then gcc's __restrict, and
  50089. - # the less common variants.
  50090. - for ac_kw in restrict __restrict __restrict__ _Restrict; do
  50091. - cat >conftest.$ac_ext <<_ACEOF
  50092. -/* confdefs.h. */
  50093. -_ACEOF
  50094. -cat confdefs.h >>conftest.$ac_ext
  50095. -cat >>conftest.$ac_ext <<_ACEOF
  50096. + # The order here caters to the fact that C++ does not require restrict.
  50097. + for ac_kw in __restrict __restrict__ _Restrict restrict; do
  50098. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50099. /* end confdefs.h. */
  50100. typedef int * int_ptr;
  50101. - int foo (int_ptr $ac_kw ip) {
  50102. - return ip[0];
  50103. + int foo (int_ptr $ac_kw ip) {
  50104. + return ip[0];
  50105. }
  50106. int
  50107. main ()
  50108. {
  50109. int s[1];
  50110. - int * $ac_kw t = s;
  50111. - t[0] = 0;
  50112. - return foo(t)
  50113. + int * $ac_kw t = s;
  50114. + t[0] = 0;
  50115. + return foo(t)
  50116. ;
  50117. return 0;
  50118. }
  50119. _ACEOF
  50120. -rm -f conftest.$ac_objext
  50121. -if { (ac_try="$ac_compile"
  50122. -case "(($ac_try" in
  50123. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50124. - *) ac_try_echo=$ac_try;;
  50125. -esac
  50126. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50127. - (eval "$ac_compile") 2>conftest.er1
  50128. - ac_status=$?
  50129. - grep -v '^ *+' conftest.er1 >conftest.err
  50130. - rm -f conftest.er1
  50131. - cat conftest.err >&5
  50132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50133. - (exit $ac_status); } && {
  50134. - test -z "$ac_c_werror_flag" ||
  50135. - test ! -s conftest.err
  50136. - } && test -s conftest.$ac_objext; then
  50137. +if ac_fn_c_try_compile "$LINENO"; then :
  50138. ac_cv_c_restrict=$ac_kw
  50139. -else
  50140. - echo "$as_me: failed program was:" >&5
  50141. -sed 's/^/| /' conftest.$ac_ext >&5
  50142. -
  50143. -
  50144. fi
  50145. -
  50146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50147. test "$ac_cv_c_restrict" != no && break
  50148. done
  50149. fi
  50150. -{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
  50151. -echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
  50152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  50153. +$as_echo "$ac_cv_c_restrict" >&6; }
  50154. +
  50155. case $ac_cv_c_restrict in
  50156. restrict) ;;
  50157. - no)
  50158. -cat >>confdefs.h <<\_ACEOF
  50159. -#define restrict
  50160. -_ACEOF
  50161. + no) $as_echo "#define restrict /**/" >>confdefs.h
  50162. ;;
  50163. *) cat >>confdefs.h <<_ACEOF
  50164. #define restrict $ac_cv_c_restrict
  50165. @@ -27275,16 +24258,12 @@
  50166. esac
  50167. -{ echo "$as_me:$LINENO: checking whether <stdarg.h> exists and works" >&5
  50168. -echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6; }
  50169. -if test "${gmp_cv_c_stdarg+set}" = set; then
  50170. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
  50172. +$as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
  50173. +if test "${gmp_cv_c_stdarg+set}" = set; then :
  50174. + $as_echo_n "(cached) " >&6
  50175. else
  50176. - cat >conftest.$ac_ext <<_ACEOF
  50177. -/* confdefs.h. */
  50178. -_ACEOF
  50179. -cat confdefs.h >>conftest.$ac_ext
  50180. -cat >>conftest.$ac_ext <<_ACEOF
  50181. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50182. /* end confdefs.h. */
  50183. #include <stdarg.h>
  50184. int foo (int x, ...)
  50185. @@ -27304,54 +24283,28 @@
  50186. return 0;
  50187. }
  50188. _ACEOF
  50189. -rm -f conftest.$ac_objext
  50190. -if { (ac_try="$ac_compile"
  50191. -case "(($ac_try" in
  50192. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50193. - *) ac_try_echo=$ac_try;;
  50194. -esac
  50195. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50196. - (eval "$ac_compile") 2>conftest.er1
  50197. - ac_status=$?
  50198. - grep -v '^ *+' conftest.er1 >conftest.err
  50199. - rm -f conftest.er1
  50200. - cat conftest.err >&5
  50201. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50202. - (exit $ac_status); } && {
  50203. - test -z "$ac_c_werror_flag" ||
  50204. - test ! -s conftest.err
  50205. - } && test -s conftest.$ac_objext; then
  50206. +if ac_fn_c_try_compile "$LINENO"; then :
  50207. gmp_cv_c_stdarg=yes
  50208. else
  50209. - echo "$as_me: failed program was:" >&5
  50210. -sed 's/^/| /' conftest.$ac_ext >&5
  50211. -
  50212. - gmp_cv_c_stdarg=no
  50213. + gmp_cv_c_stdarg=no
  50214. fi
  50215. -
  50216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50217. fi
  50218. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_stdarg" >&5
  50219. -echo "${ECHO_T}$gmp_cv_c_stdarg" >&6; }
  50220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
  50221. +$as_echo "$gmp_cv_c_stdarg" >&6; }
  50222. if test $gmp_cv_c_stdarg = yes; then
  50223. -cat >>confdefs.h <<\_ACEOF
  50224. -#define HAVE_STDARG 1
  50225. -_ACEOF
  50226. +$as_echo "#define HAVE_STDARG 1" >>confdefs.h
  50227. fi
  50228. -{ echo "$as_me:$LINENO: checking whether gcc __attribute__ ((const)) works" >&5
  50229. -echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6; }
  50230. -if test "${gmp_cv_c_attribute_const+set}" = set; then
  50231. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50232. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
  50233. +$as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
  50234. +if test "${gmp_cv_c_attribute_const+set}" = set; then :
  50235. + $as_echo_n "(cached) " >&6
  50236. else
  50237. - cat >conftest.$ac_ext <<_ACEOF
  50238. -/* confdefs.h. */
  50239. -_ACEOF
  50240. -cat confdefs.h >>conftest.$ac_ext
  50241. -cat >>conftest.$ac_ext <<_ACEOF
  50242. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50243. /* end confdefs.h. */
  50244. int foo (int x) __attribute__ ((const));
  50245. int
  50246. @@ -27362,58 +24315,36 @@
  50247. return 0;
  50248. }
  50249. _ACEOF
  50250. -rm -f conftest.$ac_objext
  50251. -if { (ac_try="$ac_compile"
  50252. -case "(($ac_try" in
  50253. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50254. - *) ac_try_echo=$ac_try;;
  50255. -esac
  50256. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50257. - (eval "$ac_compile") 2>conftest.er1
  50258. - ac_status=$?
  50259. - grep -v '^ *+' conftest.er1 >conftest.err
  50260. - rm -f conftest.er1
  50261. - cat conftest.err >&5
  50262. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50263. - (exit $ac_status); } && {
  50264. - test -z "$ac_c_werror_flag" ||
  50265. - test ! -s conftest.err
  50266. - } && test -s conftest.$ac_objext; then
  50267. +if ac_fn_c_try_compile "$LINENO"; then :
  50268. gmp_cv_c_attribute_const=yes
  50269. else
  50270. - echo "$as_me: failed program was:" >&5
  50271. -sed 's/^/| /' conftest.$ac_ext >&5
  50272. -
  50273. - gmp_cv_c_attribute_const=no
  50274. + gmp_cv_c_attribute_const=no
  50275. fi
  50276. -
  50277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50278. fi
  50279. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_const" >&5
  50280. -echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6; }
  50281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
  50282. +$as_echo "$gmp_cv_c_attribute_const" >&6; }
  50283. if test $gmp_cv_c_attribute_const = yes; then
  50284. -cat >>confdefs.h <<\_ACEOF
  50285. -#define HAVE_ATTRIBUTE_CONST 1
  50286. -_ACEOF
  50287. +$as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
  50288. fi
  50289. -{ echo "$as_me:$LINENO: checking whether gcc __attribute__ ((malloc)) works" >&5
  50290. -echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6; }
  50291. -if test "${gmp_cv_c_attribute_malloc+set}" = set; then
  50292. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
  50294. +$as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
  50295. +if test "${gmp_cv_c_attribute_malloc+set}" = set; then :
  50296. + $as_echo_n "(cached) " >&6
  50297. else
  50298. cat >conftest.c <<EOF
  50299. void *foo (int x) __attribute__ ((malloc));
  50300. EOF
  50301. gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
  50302. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  50303. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  50304. (eval $gmp_compile) 2>&5
  50305. ac_status=$?
  50306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50307. - (exit $ac_status); }; then
  50308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  50309. + test $ac_status = 0; }; then
  50310. if grep "attribute directive ignored" conftest.out >/dev/null; then
  50311. gmp_cv_c_attribute_malloc=no
  50312. else
  50313. @@ -27426,26 +24357,20 @@
  50314. rm -f conftest*
  50315. fi
  50316. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_malloc" >&5
  50317. -echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6; }
  50318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
  50319. +$as_echo "$gmp_cv_c_attribute_malloc" >&6; }
  50320. if test $gmp_cv_c_attribute_malloc = yes; then
  50321. -cat >>confdefs.h <<\_ACEOF
  50322. -#define HAVE_ATTRIBUTE_MALLOC 1
  50323. -_ACEOF
  50324. +$as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
  50325. fi
  50326. -{ echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
  50327. -echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6; }
  50328. -if test "${gmp_cv_c_attribute_mode+set}" = set; then
  50329. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
  50331. +$as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
  50332. +if test "${gmp_cv_c_attribute_mode+set}" = set; then :
  50333. + $as_echo_n "(cached) " >&6
  50334. else
  50335. - cat >conftest.$ac_ext <<_ACEOF
  50336. -/* confdefs.h. */
  50337. -_ACEOF
  50338. -cat confdefs.h >>conftest.$ac_ext
  50339. -cat >>conftest.$ac_ext <<_ACEOF
  50340. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50341. /* end confdefs.h. */
  50342. typedef int SItype __attribute__ ((mode (SI)));
  50343. int
  50344. @@ -27456,54 +24381,28 @@
  50345. return 0;
  50346. }
  50347. _ACEOF
  50348. -rm -f conftest.$ac_objext
  50349. -if { (ac_try="$ac_compile"
  50350. -case "(($ac_try" in
  50351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50352. - *) ac_try_echo=$ac_try;;
  50353. -esac
  50354. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50355. - (eval "$ac_compile") 2>conftest.er1
  50356. - ac_status=$?
  50357. - grep -v '^ *+' conftest.er1 >conftest.err
  50358. - rm -f conftest.er1
  50359. - cat conftest.err >&5
  50360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50361. - (exit $ac_status); } && {
  50362. - test -z "$ac_c_werror_flag" ||
  50363. - test ! -s conftest.err
  50364. - } && test -s conftest.$ac_objext; then
  50365. +if ac_fn_c_try_compile "$LINENO"; then :
  50366. gmp_cv_c_attribute_mode=yes
  50367. else
  50368. - echo "$as_me: failed program was:" >&5
  50369. -sed 's/^/| /' conftest.$ac_ext >&5
  50370. -
  50371. - gmp_cv_c_attribute_mode=no
  50372. + gmp_cv_c_attribute_mode=no
  50373. fi
  50374. -
  50375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50376. fi
  50377. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
  50378. -echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6; }
  50379. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
  50380. +$as_echo "$gmp_cv_c_attribute_mode" >&6; }
  50381. if test $gmp_cv_c_attribute_mode = yes; then
  50382. -cat >>confdefs.h <<\_ACEOF
  50383. -#define HAVE_ATTRIBUTE_MODE 1
  50384. -_ACEOF
  50385. +$as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
  50386. fi
  50387. -{ echo "$as_me:$LINENO: checking whether gcc __attribute__ ((noreturn)) works" >&5
  50388. -echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6; }
  50389. -if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
  50390. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
  50392. +$as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
  50393. +if test "${gmp_cv_c_attribute_noreturn+set}" = set; then :
  50394. + $as_echo_n "(cached) " >&6
  50395. else
  50396. - cat >conftest.$ac_ext <<_ACEOF
  50397. -/* confdefs.h. */
  50398. -_ACEOF
  50399. -cat confdefs.h >>conftest.$ac_ext
  50400. -cat >>conftest.$ac_ext <<_ACEOF
  50401. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50402. /* end confdefs.h. */
  50403. void foo (int x) __attribute__ ((noreturn));
  50404. int
  50405. @@ -27514,57 +24413,31 @@
  50406. return 0;
  50407. }
  50408. _ACEOF
  50409. -rm -f conftest.$ac_objext
  50410. -if { (ac_try="$ac_compile"
  50411. -case "(($ac_try" in
  50412. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50413. - *) ac_try_echo=$ac_try;;
  50414. -esac
  50415. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50416. - (eval "$ac_compile") 2>conftest.er1
  50417. - ac_status=$?
  50418. - grep -v '^ *+' conftest.er1 >conftest.err
  50419. - rm -f conftest.er1
  50420. - cat conftest.err >&5
  50421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50422. - (exit $ac_status); } && {
  50423. - test -z "$ac_c_werror_flag" ||
  50424. - test ! -s conftest.err
  50425. - } && test -s conftest.$ac_objext; then
  50426. +if ac_fn_c_try_compile "$LINENO"; then :
  50427. gmp_cv_c_attribute_noreturn=yes
  50428. else
  50429. - echo "$as_me: failed program was:" >&5
  50430. -sed 's/^/| /' conftest.$ac_ext >&5
  50431. -
  50432. - gmp_cv_c_attribute_noreturn=no
  50433. + gmp_cv_c_attribute_noreturn=no
  50434. fi
  50435. -
  50436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50437. fi
  50438. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_noreturn" >&5
  50439. -echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6; }
  50440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
  50441. +$as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
  50442. if test $gmp_cv_c_attribute_noreturn = yes; then
  50443. -cat >>confdefs.h <<\_ACEOF
  50444. -#define HAVE_ATTRIBUTE_NORETURN 1
  50445. -_ACEOF
  50446. +$as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
  50447. fi
  50448. -{ echo "$as_me:$LINENO: checking for inline" >&5
  50449. -echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  50450. -if test "${ac_cv_c_inline+set}" = set; then
  50451. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  50453. +$as_echo_n "checking for inline... " >&6; }
  50454. +if test "${ac_cv_c_inline+set}" = set; then :
  50455. + $as_echo_n "(cached) " >&6
  50456. else
  50457. ac_cv_c_inline=no
  50458. for ac_kw in inline __inline__ __inline; do
  50459. - cat >conftest.$ac_ext <<_ACEOF
  50460. -/* confdefs.h. */
  50461. -_ACEOF
  50462. -cat confdefs.h >>conftest.$ac_ext
  50463. -cat >>conftest.$ac_ext <<_ACEOF
  50464. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50465. /* end confdefs.h. */
  50466. #ifndef __cplusplus
  50467. typedef int foo_t;
  50468. @@ -27573,39 +24446,16 @@
  50469. #endif
  50470. _ACEOF
  50471. -rm -f conftest.$ac_objext
  50472. -if { (ac_try="$ac_compile"
  50473. -case "(($ac_try" in
  50474. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50475. - *) ac_try_echo=$ac_try;;
  50476. -esac
  50477. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50478. - (eval "$ac_compile") 2>conftest.er1
  50479. - ac_status=$?
  50480. - grep -v '^ *+' conftest.er1 >conftest.err
  50481. - rm -f conftest.er1
  50482. - cat conftest.err >&5
  50483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50484. - (exit $ac_status); } && {
  50485. - test -z "$ac_c_werror_flag" ||
  50486. - test ! -s conftest.err
  50487. - } && test -s conftest.$ac_objext; then
  50488. +if ac_fn_c_try_compile "$LINENO"; then :
  50489. ac_cv_c_inline=$ac_kw
  50490. -else
  50491. - echo "$as_me: failed program was:" >&5
  50492. -sed 's/^/| /' conftest.$ac_ext >&5
  50493. -
  50494. -
  50495. fi
  50496. -
  50497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50498. test "$ac_cv_c_inline" != no && break
  50499. done
  50500. fi
  50501. -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  50502. -echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  50503. -
  50504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  50505. +$as_echo "$ac_cv_c_inline" >&6; }
  50506. case $ac_cv_c_inline in
  50507. inline | yes) ;;
  50508. @@ -27626,11 +24476,7 @@
  50509. case $ac_cv_c_inline in
  50510. no) ;;
  50511. *)
  50512. - cat >conftest.$ac_ext <<_ACEOF
  50513. -/* confdefs.h. */
  50514. -_ACEOF
  50515. -cat confdefs.h >>conftest.$ac_ext
  50516. -cat >>conftest.$ac_ext <<_ACEOF
  50517. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50518. /* end confdefs.h. */
  50519. #define __GMP_WITHIN_CONFIGURE_INLINE 1
  50520. #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  50521. @@ -27652,36 +24498,16 @@
  50522. return 0;
  50523. }
  50524. _ACEOF
  50525. -rm -f conftest.$ac_objext
  50526. -if { (ac_try="$ac_compile"
  50527. -case "(($ac_try" in
  50528. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50529. - *) ac_try_echo=$ac_try;;
  50530. -esac
  50531. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50532. - (eval "$ac_compile") 2>conftest.er1
  50533. - ac_status=$?
  50534. - grep -v '^ *+' conftest.er1 >conftest.err
  50535. - rm -f conftest.er1
  50536. - cat conftest.err >&5
  50537. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50538. - (exit $ac_status); } && {
  50539. - test -z "$ac_c_werror_flag" ||
  50540. - test ! -s conftest.err
  50541. - } && test -s conftest.$ac_objext; then
  50542. - :
  50543. -else
  50544. - echo "$as_me: failed program was:" >&5
  50545. -sed 's/^/| /' conftest.$ac_ext >&5
  50546. +if ac_fn_c_try_compile "$LINENO"; then :
  50547. - case $ac_cv_c_inline in
  50548. +else
  50549. + case $ac_cv_c_inline in
  50550. yes) tmp_inline=inline ;;
  50551. *) tmp_inline=$ac_cv_c_inline ;;
  50552. esac
  50553. - { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
  50554. -echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
  50555. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
  50556. +$as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
  50557. fi
  50558. -
  50559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50560. ;;
  50561. esac
  50562. @@ -27694,18 +24520,14 @@
  50563. # These system don't have libm, or don't need it
  50564. ;;
  50565. *-ncr-sysv4.3*)
  50566. - { echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
  50567. -echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6; }
  50568. -if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
  50569. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50570. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  50571. +$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  50572. +if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
  50573. + $as_echo_n "(cached) " >&6
  50574. else
  50575. ac_check_lib_save_LIBS=$LIBS
  50576. LIBS="-lmw $LIBS"
  50577. -cat >conftest.$ac_ext <<_ACEOF
  50578. -/* confdefs.h. */
  50579. -_ACEOF
  50580. -cat confdefs.h >>conftest.$ac_ext
  50581. -cat >>conftest.$ac_ext <<_ACEOF
  50582. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50583. /* end confdefs.h. */
  50584. /* Override any GCC internal prototype to avoid an error.
  50585. @@ -27723,54 +24545,29 @@
  50586. return 0;
  50587. }
  50588. _ACEOF
  50589. -rm -f conftest.$ac_objext conftest$ac_exeext
  50590. -if { (ac_try="$ac_link"
  50591. -case "(($ac_try" in
  50592. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50593. - *) ac_try_echo=$ac_try;;
  50594. -esac
  50595. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50596. - (eval "$ac_link") 2>conftest.er1
  50597. - ac_status=$?
  50598. - grep -v '^ *+' conftest.er1 >conftest.err
  50599. - rm -f conftest.er1
  50600. - cat conftest.err >&5
  50601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50602. - (exit $ac_status); } && {
  50603. - test -z "$ac_c_werror_flag" ||
  50604. - test ! -s conftest.err
  50605. - } && test -s conftest$ac_exeext &&
  50606. - $as_test_x conftest$ac_exeext; then
  50607. +if ac_fn_c_try_link "$LINENO"; then :
  50608. ac_cv_lib_mw__mwvalidcheckl=yes
  50609. else
  50610. - echo "$as_me: failed program was:" >&5
  50611. -sed 's/^/| /' conftest.$ac_ext >&5
  50612. -
  50613. - ac_cv_lib_mw__mwvalidcheckl=no
  50614. + ac_cv_lib_mw__mwvalidcheckl=no
  50615. fi
  50616. -
  50617. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  50618. - conftest$ac_exeext conftest.$ac_ext
  50619. +rm -f core conftest.err conftest.$ac_objext \
  50620. + conftest$ac_exeext conftest.$ac_ext
  50621. LIBS=$ac_check_lib_save_LIBS
  50622. fi
  50623. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  50624. -echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  50625. -if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
  50626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  50627. +$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  50628. +if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
  50629. LIBM="-lmw"
  50630. fi
  50631. - { echo "$as_me:$LINENO: checking for cos in -lm" >&5
  50632. -echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
  50633. -if test "${ac_cv_lib_m_cos+set}" = set; then
  50634. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50635. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  50636. +$as_echo_n "checking for cos in -lm... " >&6; }
  50637. +if test "${ac_cv_lib_m_cos+set}" = set; then :
  50638. + $as_echo_n "(cached) " >&6
  50639. else
  50640. ac_check_lib_save_LIBS=$LIBS
  50641. LIBS="-lm $LIBS"
  50642. -cat >conftest.$ac_ext <<_ACEOF
  50643. -/* confdefs.h. */
  50644. -_ACEOF
  50645. -cat confdefs.h >>conftest.$ac_ext
  50646. -cat >>conftest.$ac_ext <<_ACEOF
  50647. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50648. /* end confdefs.h. */
  50649. /* Override any GCC internal prototype to avoid an error.
  50650. @@ -27788,56 +24585,31 @@
  50651. return 0;
  50652. }
  50653. _ACEOF
  50654. -rm -f conftest.$ac_objext conftest$ac_exeext
  50655. -if { (ac_try="$ac_link"
  50656. -case "(($ac_try" in
  50657. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50658. - *) ac_try_echo=$ac_try;;
  50659. -esac
  50660. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50661. - (eval "$ac_link") 2>conftest.er1
  50662. - ac_status=$?
  50663. - grep -v '^ *+' conftest.er1 >conftest.err
  50664. - rm -f conftest.er1
  50665. - cat conftest.err >&5
  50666. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50667. - (exit $ac_status); } && {
  50668. - test -z "$ac_c_werror_flag" ||
  50669. - test ! -s conftest.err
  50670. - } && test -s conftest$ac_exeext &&
  50671. - $as_test_x conftest$ac_exeext; then
  50672. +if ac_fn_c_try_link "$LINENO"; then :
  50673. ac_cv_lib_m_cos=yes
  50674. else
  50675. - echo "$as_me: failed program was:" >&5
  50676. -sed 's/^/| /' conftest.$ac_ext >&5
  50677. -
  50678. - ac_cv_lib_m_cos=no
  50679. + ac_cv_lib_m_cos=no
  50680. fi
  50681. -
  50682. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  50683. - conftest$ac_exeext conftest.$ac_ext
  50684. +rm -f core conftest.err conftest.$ac_objext \
  50685. + conftest$ac_exeext conftest.$ac_ext
  50686. LIBS=$ac_check_lib_save_LIBS
  50687. fi
  50688. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  50689. -echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
  50690. -if test $ac_cv_lib_m_cos = yes; then
  50691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  50692. +$as_echo "$ac_cv_lib_m_cos" >&6; }
  50693. +if test "x$ac_cv_lib_m_cos" = x""yes; then :
  50694. LIBM="$LIBM -lm"
  50695. fi
  50696. ;;
  50697. *)
  50698. - { echo "$as_me:$LINENO: checking for cos in -lm" >&5
  50699. -echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
  50700. -if test "${ac_cv_lib_m_cos+set}" = set; then
  50701. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50702. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  50703. +$as_echo_n "checking for cos in -lm... " >&6; }
  50704. +if test "${ac_cv_lib_m_cos+set}" = set; then :
  50705. + $as_echo_n "(cached) " >&6
  50706. else
  50707. ac_check_lib_save_LIBS=$LIBS
  50708. LIBS="-lm $LIBS"
  50709. -cat >conftest.$ac_ext <<_ACEOF
  50710. -/* confdefs.h. */
  50711. -_ACEOF
  50712. -cat confdefs.h >>conftest.$ac_ext
  50713. -cat >>conftest.$ac_ext <<_ACEOF
  50714. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50715. /* end confdefs.h. */
  50716. /* Override any GCC internal prototype to avoid an error.
  50717. @@ -27855,39 +24627,18 @@
  50718. return 0;
  50719. }
  50720. _ACEOF
  50721. -rm -f conftest.$ac_objext conftest$ac_exeext
  50722. -if { (ac_try="$ac_link"
  50723. -case "(($ac_try" in
  50724. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50725. - *) ac_try_echo=$ac_try;;
  50726. -esac
  50727. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50728. - (eval "$ac_link") 2>conftest.er1
  50729. - ac_status=$?
  50730. - grep -v '^ *+' conftest.er1 >conftest.err
  50731. - rm -f conftest.er1
  50732. - cat conftest.err >&5
  50733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50734. - (exit $ac_status); } && {
  50735. - test -z "$ac_c_werror_flag" ||
  50736. - test ! -s conftest.err
  50737. - } && test -s conftest$ac_exeext &&
  50738. - $as_test_x conftest$ac_exeext; then
  50739. +if ac_fn_c_try_link "$LINENO"; then :
  50740. ac_cv_lib_m_cos=yes
  50741. -else
  50742. - echo "$as_me: failed program was:" >&5
  50743. -sed 's/^/| /' conftest.$ac_ext >&5
  50744. -
  50745. - ac_cv_lib_m_cos=no
  50746. +else
  50747. + ac_cv_lib_m_cos=no
  50748. fi
  50749. -
  50750. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  50751. - conftest$ac_exeext conftest.$ac_ext
  50752. +rm -f core conftest.err conftest.$ac_objext \
  50753. + conftest$ac_exeext conftest.$ac_ext
  50754. LIBS=$ac_check_lib_save_LIBS
  50755. fi
  50756. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  50757. -echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
  50758. -if test $ac_cv_lib_m_cos = yes; then
  50759. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  50760. +$as_echo "$ac_cv_lib_m_cos" >&6; }
  50761. +if test "x$ac_cv_lib_m_cos" = x""yes; then :
  50762. LIBM="-lm"
  50763. fi
  50764. @@ -27896,18 +24647,15 @@
  50765. +
  50766. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  50767. # for constant arguments. Useless!
  50768. -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
  50769. -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  50770. -if test "${gmp_cv_header_alloca+set}" = set; then
  50771. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50772. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  50773. +$as_echo_n "checking for working alloca.h... " >&6; }
  50774. +if test "${gmp_cv_header_alloca+set}" = set; then :
  50775. + $as_echo_n "(cached) " >&6
  50776. else
  50777. - cat >conftest.$ac_ext <<_ACEOF
  50778. -/* confdefs.h. */
  50779. -_ACEOF
  50780. -cat confdefs.h >>conftest.$ac_ext
  50781. -cat >>conftest.$ac_ext <<_ACEOF
  50782. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50783. /* end confdefs.h. */
  50784. #include <alloca.h>
  50785. int
  50786. @@ -27918,56 +24666,29 @@
  50787. return 0;
  50788. }
  50789. _ACEOF
  50790. -rm -f conftest.$ac_objext conftest$ac_exeext
  50791. -if { (ac_try="$ac_link"
  50792. -case "(($ac_try" in
  50793. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50794. - *) ac_try_echo=$ac_try;;
  50795. -esac
  50796. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50797. - (eval "$ac_link") 2>conftest.er1
  50798. - ac_status=$?
  50799. - grep -v '^ *+' conftest.er1 >conftest.err
  50800. - rm -f conftest.er1
  50801. - cat conftest.err >&5
  50802. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50803. - (exit $ac_status); } && {
  50804. - test -z "$ac_c_werror_flag" ||
  50805. - test ! -s conftest.err
  50806. - } && test -s conftest$ac_exeext &&
  50807. - $as_test_x conftest$ac_exeext; then
  50808. +if ac_fn_c_try_link "$LINENO"; then :
  50809. gmp_cv_header_alloca=yes
  50810. else
  50811. - echo "$as_me: failed program was:" >&5
  50812. -sed 's/^/| /' conftest.$ac_ext >&5
  50813. -
  50814. - gmp_cv_header_alloca=no
  50815. + gmp_cv_header_alloca=no
  50816. fi
  50817. -
  50818. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  50819. - conftest$ac_exeext conftest.$ac_ext
  50820. +rm -f core conftest.err conftest.$ac_objext \
  50821. + conftest$ac_exeext conftest.$ac_ext
  50822. fi
  50823. -{ echo "$as_me:$LINENO: result: $gmp_cv_header_alloca" >&5
  50824. -echo "${ECHO_T}$gmp_cv_header_alloca" >&6; }
  50825. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
  50826. +$as_echo "$gmp_cv_header_alloca" >&6; }
  50827. if test $gmp_cv_header_alloca = yes; then
  50828. -cat >>confdefs.h <<\_ACEOF
  50829. -#define HAVE_ALLOCA_H 1
  50830. -_ACEOF
  50831. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  50832. fi
  50833. -{ echo "$as_me:$LINENO: checking for alloca (via gmp-impl.h)" >&5
  50834. -echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6; }
  50835. -if test "${gmp_cv_func_alloca+set}" = set; then
  50836. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50837. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
  50838. +$as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
  50839. +if test "${gmp_cv_func_alloca+set}" = set; then :
  50840. + $as_echo_n "(cached) " >&6
  50841. else
  50842. - cat >conftest.$ac_ext <<_ACEOF
  50843. -/* confdefs.h. */
  50844. -_ACEOF
  50845. -cat confdefs.h >>conftest.$ac_ext
  50846. -cat >>conftest.$ac_ext <<_ACEOF
  50847. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50848. /* end confdefs.h. */
  50849. #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  50850. #define GMP_NAIL_BITS $GMP_NAIL_BITS
  50851. @@ -27986,50 +24707,27 @@
  50852. return 0;
  50853. }
  50854. _ACEOF
  50855. -rm -f conftest.$ac_objext conftest$ac_exeext
  50856. -if { (ac_try="$ac_link"
  50857. -case "(($ac_try" in
  50858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50859. - *) ac_try_echo=$ac_try;;
  50860. -esac
  50861. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50862. - (eval "$ac_link") 2>conftest.er1
  50863. - ac_status=$?
  50864. - grep -v '^ *+' conftest.er1 >conftest.err
  50865. - rm -f conftest.er1
  50866. - cat conftest.err >&5
  50867. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50868. - (exit $ac_status); } && {
  50869. - test -z "$ac_c_werror_flag" ||
  50870. - test ! -s conftest.err
  50871. - } && test -s conftest$ac_exeext &&
  50872. - $as_test_x conftest$ac_exeext; then
  50873. +if ac_fn_c_try_link "$LINENO"; then :
  50874. gmp_cv_func_alloca=yes
  50875. else
  50876. - echo "$as_me: failed program was:" >&5
  50877. -sed 's/^/| /' conftest.$ac_ext >&5
  50878. -
  50879. - gmp_cv_func_alloca=no
  50880. + gmp_cv_func_alloca=no
  50881. fi
  50882. -
  50883. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  50884. - conftest$ac_exeext conftest.$ac_ext
  50885. +rm -f core conftest.err conftest.$ac_objext \
  50886. + conftest$ac_exeext conftest.$ac_ext
  50887. fi
  50888. -{ echo "$as_me:$LINENO: result: $gmp_cv_func_alloca" >&5
  50889. -echo "${ECHO_T}$gmp_cv_func_alloca" >&6; }
  50890. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
  50891. +$as_echo "$gmp_cv_func_alloca" >&6; }
  50892. if test $gmp_cv_func_alloca = yes; then
  50893. -cat >>confdefs.h <<\_ACEOF
  50894. -#define HAVE_ALLOCA 1
  50895. -_ACEOF
  50896. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  50897. fi
  50898. -{ echo "$as_me:$LINENO: checking how to allocate temporary memory" >&5
  50899. -echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6; }
  50900. -if test "${gmp_cv_option_alloca+set}" = set; then
  50901. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50902. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
  50903. +$as_echo_n "checking how to allocate temporary memory... " >&6; }
  50904. +if test "${gmp_cv_option_alloca+set}" = set; then :
  50905. + $as_echo_n "(cached) " >&6
  50906. else
  50907. case $enable_alloca in
  50908. yes)
  50909. @@ -28050,61 +24748,44 @@
  50910. esac
  50911. fi
  50912. -{ echo "$as_me:$LINENO: result: $gmp_cv_option_alloca" >&5
  50913. -echo "${ECHO_T}$gmp_cv_option_alloca" >&6; }
  50914. -
  50915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
  50916. +$as_echo "$gmp_cv_option_alloca" >&6; }
  50917. case $gmp_cv_option_alloca in
  50918. alloca)
  50919. if test $gmp_cv_func_alloca = no; then
  50920. - { { echo "$as_me:$LINENO: error: --enable-alloca=alloca specified, but alloca not available" >&5
  50921. -echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
  50922. - { (exit 1); exit 1; }; }
  50923. + as_fn_error "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
  50924. fi
  50925. - cat >>confdefs.h <<\_ACEOF
  50926. -#define WANT_TMP_ALLOCA 1
  50927. -_ACEOF
  50928. + $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
  50929. TAL_OBJECT=tal-reent$U.lo
  50930. ;;
  50931. malloc-reentrant)
  50932. - cat >>confdefs.h <<\_ACEOF
  50933. -#define WANT_TMP_REENTRANT 1
  50934. -_ACEOF
  50935. + $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
  50936. TAL_OBJECT=tal-reent$U.lo
  50937. ;;
  50938. malloc-notreentrant)
  50939. - cat >>confdefs.h <<\_ACEOF
  50940. -#define WANT_TMP_NOTREENTRANT 1
  50941. -_ACEOF
  50942. + $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
  50943. TAL_OBJECT=tal-notreent$U.lo
  50944. ;;
  50945. debug)
  50946. - cat >>confdefs.h <<\_ACEOF
  50947. -#define WANT_TMP_DEBUG 1
  50948. -_ACEOF
  50949. + $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
  50950. TAL_OBJECT=tal-debug$U.lo
  50951. ;;
  50952. *)
  50953. # checks at the start of configure.in should protect us
  50954. - { { echo "$as_me:$LINENO: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
  50955. -echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
  50956. - { (exit 1); exit 1; }; }
  50957. + as_fn_error "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
  50958. ;;
  50959. esac
  50960. -cat >conftest.$ac_ext <<_ACEOF
  50961. -/* confdefs.h. */
  50962. -_ACEOF
  50963. -cat confdefs.h >>conftest.$ac_ext
  50964. -cat >>conftest.$ac_ext <<_ACEOF
  50965. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50966. /* end confdefs.h. */
  50967. #include <stdio.h>
  50968. #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  50969. @@ -28126,285 +24807,254 @@
  50970. return 0;
  50971. }
  50972. _ACEOF
  50973. -rm -f conftest.$ac_objext
  50974. -if { (ac_try="$ac_compile"
  50975. -case "(($ac_try" in
  50976. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50977. - *) ac_try_echo=$ac_try;;
  50978. -esac
  50979. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  50980. - (eval "$ac_compile") 2>conftest.er1
  50981. - ac_status=$?
  50982. - grep -v '^ *+' conftest.er1 >conftest.err
  50983. - rm -f conftest.er1
  50984. - cat conftest.err >&5
  50985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50986. - (exit $ac_status); } && {
  50987. - test -z "$ac_c_werror_flag" ||
  50988. - test ! -s conftest.err
  50989. - } && test -s conftest.$ac_objext; then
  50990. - :
  50991. -else
  50992. - echo "$as_me: failed program was:" >&5
  50993. -sed 's/^/| /' conftest.$ac_ext >&5
  50994. +if ac_fn_c_try_compile "$LINENO"; then :
  50995. - { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
  50996. -echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
  50997. +else
  50998. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
  50999. +$as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
  51000. fi
  51001. -
  51002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51003. -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  51004. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  51005. -if test "${ac_cv_c_bigendian+set}" = set; then
  51006. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51007. -else
  51008. - # See if sys/param.h defines the BYTE_ORDER macro.
  51009. -cat >conftest.$ac_ext <<_ACEOF
  51010. -/* confdefs.h. */
  51011. -_ACEOF
  51012. -cat confdefs.h >>conftest.$ac_ext
  51013. -cat >>conftest.$ac_ext <<_ACEOF
  51014. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  51015. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  51016. +if test "${ac_cv_c_bigendian+set}" = set; then :
  51017. + $as_echo_n "(cached) " >&6
  51018. +else
  51019. + ac_cv_c_bigendian=unknown
  51020. + # See if we're dealing with a universal compiler.
  51021. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51022. +/* end confdefs.h. */
  51023. +#ifndef __APPLE_CC__
  51024. + not a universal capable compiler
  51025. + #endif
  51026. + typedef int dummy;
  51027. +
  51028. +_ACEOF
  51029. +if ac_fn_c_try_compile "$LINENO"; then :
  51030. +
  51031. + # Check for potential -arch flags. It is not universal unless
  51032. + # there are at least two -arch flags with different values.
  51033. + ac_arch=
  51034. + ac_prev=
  51035. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  51036. + if test -n "$ac_prev"; then
  51037. + case $ac_word in
  51038. + i?86 | x86_64 | ppc | ppc64)
  51039. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  51040. + ac_arch=$ac_word
  51041. + else
  51042. + ac_cv_c_bigendian=universal
  51043. + break
  51044. + fi
  51045. + ;;
  51046. + esac
  51047. + ac_prev=
  51048. + elif test "x$ac_word" = "x-arch"; then
  51049. + ac_prev=arch
  51050. + fi
  51051. + done
  51052. +fi
  51053. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51054. + if test $ac_cv_c_bigendian = unknown; then
  51055. + # See if sys/param.h defines the BYTE_ORDER macro.
  51056. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51057. /* end confdefs.h. */
  51058. #include <sys/types.h>
  51059. -#include <sys/param.h>
  51060. + #include <sys/param.h>
  51061. int
  51062. main ()
  51063. {
  51064. -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  51065. - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  51066. - bogus endian macros
  51067. -#endif
  51068. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  51069. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  51070. + && LITTLE_ENDIAN)
  51071. + bogus endian macros
  51072. + #endif
  51073. ;
  51074. return 0;
  51075. }
  51076. _ACEOF
  51077. -rm -f conftest.$ac_objext
  51078. -if { (ac_try="$ac_compile"
  51079. -case "(($ac_try" in
  51080. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51081. - *) ac_try_echo=$ac_try;;
  51082. -esac
  51083. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51084. - (eval "$ac_compile") 2>conftest.er1
  51085. - ac_status=$?
  51086. - grep -v '^ *+' conftest.er1 >conftest.err
  51087. - rm -f conftest.er1
  51088. - cat conftest.err >&5
  51089. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51090. - (exit $ac_status); } && {
  51091. - test -z "$ac_c_werror_flag" ||
  51092. - test ! -s conftest.err
  51093. - } && test -s conftest.$ac_objext; then
  51094. +if ac_fn_c_try_compile "$LINENO"; then :
  51095. # It does; now see whether it defined to BIG_ENDIAN or not.
  51096. -cat >conftest.$ac_ext <<_ACEOF
  51097. -/* confdefs.h. */
  51098. -_ACEOF
  51099. -cat confdefs.h >>conftest.$ac_ext
  51100. -cat >>conftest.$ac_ext <<_ACEOF
  51101. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51102. /* end confdefs.h. */
  51103. #include <sys/types.h>
  51104. -#include <sys/param.h>
  51105. + #include <sys/param.h>
  51106. int
  51107. main ()
  51108. {
  51109. #if BYTE_ORDER != BIG_ENDIAN
  51110. - not big endian
  51111. -#endif
  51112. + not big endian
  51113. + #endif
  51114. ;
  51115. return 0;
  51116. }
  51117. _ACEOF
  51118. -rm -f conftest.$ac_objext
  51119. -if { (ac_try="$ac_compile"
  51120. -case "(($ac_try" in
  51121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51122. - *) ac_try_echo=$ac_try;;
  51123. -esac
  51124. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51125. - (eval "$ac_compile") 2>conftest.er1
  51126. - ac_status=$?
  51127. - grep -v '^ *+' conftest.er1 >conftest.err
  51128. - rm -f conftest.er1
  51129. - cat conftest.err >&5
  51130. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51131. - (exit $ac_status); } && {
  51132. - test -z "$ac_c_werror_flag" ||
  51133. - test ! -s conftest.err
  51134. - } && test -s conftest.$ac_objext; then
  51135. +if ac_fn_c_try_compile "$LINENO"; then :
  51136. ac_cv_c_bigendian=yes
  51137. else
  51138. - echo "$as_me: failed program was:" >&5
  51139. -sed 's/^/| /' conftest.$ac_ext >&5
  51140. -
  51141. - ac_cv_c_bigendian=no
  51142. + ac_cv_c_bigendian=no
  51143. fi
  51144. -
  51145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51146. -else
  51147. - echo "$as_me: failed program was:" >&5
  51148. -sed 's/^/| /' conftest.$ac_ext >&5
  51149. +fi
  51150. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51151. + fi
  51152. + if test $ac_cv_c_bigendian = unknown; then
  51153. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  51154. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51155. +/* end confdefs.h. */
  51156. +#include <limits.h>
  51157. - # It does not; compile a test program.
  51158. -if test "$cross_compiling" = yes; then
  51159. - # try to guess the endianness by grepping values into an object file
  51160. - ac_cv_c_bigendian=unknown
  51161. - cat >conftest.$ac_ext <<_ACEOF
  51162. -/* confdefs.h. */
  51163. +int
  51164. +main ()
  51165. +{
  51166. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  51167. + bogus endian macros
  51168. + #endif
  51169. +
  51170. + ;
  51171. + return 0;
  51172. +}
  51173. _ACEOF
  51174. -cat confdefs.h >>conftest.$ac_ext
  51175. -cat >>conftest.$ac_ext <<_ACEOF
  51176. +if ac_fn_c_try_compile "$LINENO"; then :
  51177. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  51178. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51179. /* end confdefs.h. */
  51180. -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  51181. -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  51182. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  51183. -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  51184. -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  51185. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  51186. +#include <limits.h>
  51187. +
  51188. int
  51189. main ()
  51190. {
  51191. - _ascii (); _ebcdic ();
  51192. +#ifndef _BIG_ENDIAN
  51193. + not big endian
  51194. + #endif
  51195. +
  51196. ;
  51197. return 0;
  51198. }
  51199. _ACEOF
  51200. -rm -f conftest.$ac_objext
  51201. -if { (ac_try="$ac_compile"
  51202. -case "(($ac_try" in
  51203. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51204. - *) ac_try_echo=$ac_try;;
  51205. -esac
  51206. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51207. - (eval "$ac_compile") 2>conftest.er1
  51208. - ac_status=$?
  51209. - grep -v '^ *+' conftest.er1 >conftest.err
  51210. - rm -f conftest.er1
  51211. - cat conftest.err >&5
  51212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51213. - (exit $ac_status); } && {
  51214. - test -z "$ac_c_werror_flag" ||
  51215. - test ! -s conftest.err
  51216. - } && test -s conftest.$ac_objext; then
  51217. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  51218. +if ac_fn_c_try_compile "$LINENO"; then :
  51219. ac_cv_c_bigendian=yes
  51220. +else
  51221. + ac_cv_c_bigendian=no
  51222. fi
  51223. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  51224. - if test "$ac_cv_c_bigendian" = unknown; then
  51225. - ac_cv_c_bigendian=no
  51226. - else
  51227. - # finding both strings is unlikely to happen, but who knows?
  51228. - ac_cv_c_bigendian=unknown
  51229. - fi
  51230. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51231. fi
  51232. -else
  51233. - echo "$as_me: failed program was:" >&5
  51234. -sed 's/^/| /' conftest.$ac_ext >&5
  51235. -
  51236. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51237. + fi
  51238. + if test $ac_cv_c_bigendian = unknown; then
  51239. + # Compile a test program.
  51240. + if test "$cross_compiling" = yes; then :
  51241. + # Try to guess by grepping values from an object file.
  51242. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51243. +/* end confdefs.h. */
  51244. +short int ascii_mm[] =
  51245. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  51246. + short int ascii_ii[] =
  51247. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  51248. + int use_ascii (int i) {
  51249. + return ascii_mm[i] + ascii_ii[i];
  51250. + }
  51251. + short int ebcdic_ii[] =
  51252. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  51253. + short int ebcdic_mm[] =
  51254. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  51255. + int use_ebcdic (int i) {
  51256. + return ebcdic_mm[i] + ebcdic_ii[i];
  51257. + }
  51258. + extern int foo;
  51259. +int
  51260. +main ()
  51261. +{
  51262. +return use_ascii (foo) == use_ebcdic (foo);
  51263. + ;
  51264. + return 0;
  51265. +}
  51266. +_ACEOF
  51267. +if ac_fn_c_try_compile "$LINENO"; then :
  51268. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  51269. + ac_cv_c_bigendian=yes
  51270. + fi
  51271. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  51272. + if test "$ac_cv_c_bigendian" = unknown; then
  51273. + ac_cv_c_bigendian=no
  51274. + else
  51275. + # finding both strings is unlikely to happen, but who knows?
  51276. + ac_cv_c_bigendian=unknown
  51277. + fi
  51278. + fi
  51279. fi
  51280. -
  51281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51282. else
  51283. - cat >conftest.$ac_ext <<_ACEOF
  51284. -/* confdefs.h. */
  51285. -_ACEOF
  51286. -cat confdefs.h >>conftest.$ac_ext
  51287. -cat >>conftest.$ac_ext <<_ACEOF
  51288. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51289. /* end confdefs.h. */
  51290. $ac_includes_default
  51291. int
  51292. main ()
  51293. {
  51294. - /* Are we little or big endian? From Harbison&Steele. */
  51295. - union
  51296. - {
  51297. - long int l;
  51298. - char c[sizeof (long int)];
  51299. - } u;
  51300. - u.l = 1;
  51301. - return u.c[sizeof (long int) - 1] == 1;
  51302. + /* Are we little or big endian? From Harbison&Steele. */
  51303. + union
  51304. + {
  51305. + long int l;
  51306. + char c[sizeof (long int)];
  51307. + } u;
  51308. + u.l = 1;
  51309. + return u.c[sizeof (long int) - 1] == 1;
  51310. ;
  51311. return 0;
  51312. }
  51313. _ACEOF
  51314. -rm -f conftest$ac_exeext
  51315. -if { (ac_try="$ac_link"
  51316. -case "(($ac_try" in
  51317. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51318. - *) ac_try_echo=$ac_try;;
  51319. -esac
  51320. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51321. - (eval "$ac_link") 2>&5
  51322. - ac_status=$?
  51323. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51324. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  51325. - { (case "(($ac_try" in
  51326. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51327. - *) ac_try_echo=$ac_try;;
  51328. -esac
  51329. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51330. - (eval "$ac_try") 2>&5
  51331. - ac_status=$?
  51332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51333. - (exit $ac_status); }; }; then
  51334. +if ac_fn_c_try_run "$LINENO"; then :
  51335. ac_cv_c_bigendian=no
  51336. else
  51337. - echo "$as_me: program exited with status $ac_status" >&5
  51338. -echo "$as_me: failed program was:" >&5
  51339. -sed 's/^/| /' conftest.$ac_ext >&5
  51340. -
  51341. -( exit $ac_status )
  51342. -ac_cv_c_bigendian=yes
  51343. -fi
  51344. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  51345. + ac_cv_c_bigendian=yes
  51346. fi
  51347. -
  51348. -
  51349. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  51350. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  51351. fi
  51352. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51353. + fi
  51354. fi
  51355. -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  51356. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  51357. -case $ac_cv_c_bigendian in
  51358. - yes)
  51359. - cat >>confdefs.h <<\_ACEOF
  51360. -#define HAVE_LIMB_BIG_ENDIAN 1
  51361. -_ACEOF
  51362. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  51363. +$as_echo "$ac_cv_c_bigendian" >&6; }
  51364. + case $ac_cv_c_bigendian in #(
  51365. + yes)
  51366. + $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
  51367. echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
  51368. - ;;
  51369. - no)
  51370. - cat >>confdefs.h <<\_ACEOF
  51371. -#define HAVE_LIMB_LITTLE_ENDIAN 1
  51372. -_ACEOF
  51373. +;; #(
  51374. + no)
  51375. + $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
  51376. echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
  51377. - ;;
  51378. - *)
  51379. - : ;;
  51380. -esac
  51381. + ;; #(
  51382. + universal)
  51383. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  51384. + ;; #(
  51385. + *)
  51386. + : ;;
  51387. + esac
  51388. -{ echo "$as_me:$LINENO: checking format of \`double' floating point" >&5
  51389. -echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6; }
  51390. -if test "${gmp_cv_c_double_format+set}" = set; then
  51391. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51392. +
  51393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
  51394. +$as_echo_n "checking format of \`double' floating point... " >&6; }
  51395. +if test "${gmp_cv_c_double_format+set}" = set; then :
  51396. + $as_echo_n "(cached) " >&6
  51397. else
  51398. gmp_cv_c_double_format=unknown
  51399. cat >conftest.c <<\EOF
  51400. @@ -28419,11 +25069,11 @@
  51401. };
  51402. EOF
  51403. gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
  51404. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  51405. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  51406. (eval $gmp_compile) 2>&5
  51407. ac_status=$?
  51408. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51409. - (exit $ac_status); }; then
  51410. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  51411. + test $ac_status = 0; }; then
  51412. cat >conftest.awk <<\EOF
  51413. BEGIN {
  51414. @@ -28583,68 +25233,55 @@
  51415. ;;
  51416. esac
  51417. else
  51418. - { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
  51419. -echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
  51420. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
  51421. +$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
  51422. fi
  51423. rm -f conftest*
  51424. fi
  51425. -{ echo "$as_me:$LINENO: result: $gmp_cv_c_double_format" >&5
  51426. -echo "${ECHO_T}$gmp_cv_c_double_format" >&6; }
  51427. -
  51428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
  51429. +$as_echo "$gmp_cv_c_double_format" >&6; }
  51430. case $gmp_cv_c_double_format in
  51431. "IEEE big endian")
  51432. - cat >>confdefs.h <<\_ACEOF
  51433. -#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
  51434. -_ACEOF
  51435. + $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
  51436. echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
  51437. ;;
  51438. "IEEE little endian")
  51439. - cat >>confdefs.h <<\_ACEOF
  51440. -#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
  51441. -_ACEOF
  51442. + $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
  51443. echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
  51444. ;;
  51445. "IEEE little endian, swapped halves")
  51446. - cat >>confdefs.h <<\_ACEOF
  51447. -#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
  51448. -_ACEOF
  51449. + $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
  51450. ;;
  51451. "VAX D")
  51452. - cat >>confdefs.h <<\_ACEOF
  51453. -#define HAVE_DOUBLE_VAX_D 1
  51454. -_ACEOF
  51455. + $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
  51456. ;;
  51457. "VAX G")
  51458. - cat >>confdefs.h <<\_ACEOF
  51459. -#define HAVE_DOUBLE_VAX_G 1
  51460. -_ACEOF
  51461. + $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
  51462. ;;
  51463. "Cray CFP")
  51464. - cat >>confdefs.h <<\_ACEOF
  51465. -#define HAVE_DOUBLE_CRAY_CFP 1
  51466. -_ACEOF
  51467. + $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
  51468. ;;
  51469. "bad ARM software floats")
  51470. ;;
  51471. unknown*)
  51472. - { echo "$as_me:$LINENO: WARNING: Could not determine float format." >&5
  51473. -echo "$as_me: WARNING: Could not determine float format." >&2;}
  51474. - { echo "$as_me:$LINENO: WARNING: Conversions to and from \"double\" may be slow." >&5
  51475. -echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
  51476. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
  51477. +$as_echo "$as_me: WARNING: Could not determine float format." >&2;}
  51478. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
  51479. +$as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
  51480. ;;
  51481. *)
  51482. - { echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
  51483. -echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
  51484. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
  51485. +$as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
  51486. ;;
  51487. esac
  51488. @@ -28673,137 +25310,24 @@
  51489. # syssgi - IRIX specific
  51490. # times - not in mingw
  51491. #
  51492. -# clock_gettime is in librt on *-*-osf5.1. We could look for it
  51493. -# there, but that's not worth bothering with unless it has a decent
  51494. -# resolution (in a quick test clock_getres said only 1 millisecond).
  51495. -#
  51496. -# AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
  51497. -# replacement setups it gives. It detects a faulty strnlen on AIX, but
  51498. -# missing out on that test is ok since our only use of strnlen is in
  51499. -# __gmp_replacement_vsnprintf which is not required on AIX since it has a
  51500. -# vsnprintf.
  51501. -#
  51502. -
  51503. -
  51504. -
  51505. -
  51506. -
  51507. -
  51508. -
  51509. -
  51510. -
  51511. -
  51512. -
  51513. -
  51514. -
  51515. -
  51516. -
  51517. -
  51518. -
  51519. -
  51520. -
  51521. -
  51522. -
  51523. -
  51524. -
  51525. -
  51526. -
  51527. -
  51528. -
  51529. -
  51530. -
  51531. -
  51532. -
  51533. -
  51534. -
  51535. -for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
  51536. -do
  51537. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51538. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  51539. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  51540. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  51541. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51542. -else
  51543. - cat >conftest.$ac_ext <<_ACEOF
  51544. -/* confdefs.h. */
  51545. -_ACEOF
  51546. -cat confdefs.h >>conftest.$ac_ext
  51547. -cat >>conftest.$ac_ext <<_ACEOF
  51548. -/* end confdefs.h. */
  51549. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  51550. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  51551. -#define $ac_func innocuous_$ac_func
  51552. -
  51553. -/* System header to define __stub macros and hopefully few prototypes,
  51554. - which can conflict with char $ac_func (); below.
  51555. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  51556. - <limits.h> exists even on freestanding compilers. */
  51557. -
  51558. -#ifdef __STDC__
  51559. -# include <limits.h>
  51560. -#else
  51561. -# include <assert.h>
  51562. -#endif
  51563. -
  51564. -#undef $ac_func
  51565. -
  51566. -/* Override any GCC internal prototype to avoid an error.
  51567. - Use char because int might match the return type of a GCC
  51568. - builtin and then its argument prototype would still apply. */
  51569. -#ifdef __cplusplus
  51570. -extern "C"
  51571. -#endif
  51572. -char $ac_func ();
  51573. -/* The GNU C library defines this for functions which it implements
  51574. - to always fail with ENOSYS. Some functions are actually named
  51575. - something starting with __ and the normal name is an alias. */
  51576. -#if defined __stub_$ac_func || defined __stub___$ac_func
  51577. -choke me
  51578. -#endif
  51579. -
  51580. -int
  51581. -main ()
  51582. -{
  51583. -return $ac_func ();
  51584. - ;
  51585. - return 0;
  51586. -}
  51587. -_ACEOF
  51588. -rm -f conftest.$ac_objext conftest$ac_exeext
  51589. -if { (ac_try="$ac_link"
  51590. -case "(($ac_try" in
  51591. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51592. - *) ac_try_echo=$ac_try;;
  51593. -esac
  51594. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51595. - (eval "$ac_link") 2>conftest.er1
  51596. - ac_status=$?
  51597. - grep -v '^ *+' conftest.er1 >conftest.err
  51598. - rm -f conftest.er1
  51599. - cat conftest.err >&5
  51600. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51601. - (exit $ac_status); } && {
  51602. - test -z "$ac_c_werror_flag" ||
  51603. - test ! -s conftest.err
  51604. - } && test -s conftest$ac_exeext &&
  51605. - $as_test_x conftest$ac_exeext; then
  51606. - eval "$as_ac_var=yes"
  51607. -else
  51608. - echo "$as_me: failed program was:" >&5
  51609. -sed 's/^/| /' conftest.$ac_ext >&5
  51610. -
  51611. - eval "$as_ac_var=no"
  51612. -fi
  51613. -
  51614. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  51615. - conftest$ac_exeext conftest.$ac_ext
  51616. -fi
  51617. -ac_res=`eval echo '${'$as_ac_var'}'`
  51618. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  51619. -echo "${ECHO_T}$ac_res" >&6; }
  51620. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  51621. +# clock_gettime is in librt on *-*-osf5.1. We could look for it
  51622. +# there, but that's not worth bothering with unless it has a decent
  51623. +# resolution (in a quick test clock_getres said only 1 millisecond).
  51624. +#
  51625. +# AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
  51626. +# replacement setups it gives. It detects a faulty strnlen on AIX, but
  51627. +# missing out on that test is ok since our only use of strnlen is in
  51628. +# __gmp_replacement_vsnprintf which is not required on AIX since it has a
  51629. +# vsnprintf.
  51630. +#
  51631. +for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
  51632. +do :
  51633. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51634. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  51635. +eval as_val=\$$as_ac_var
  51636. + if test "x$as_val" = x""yes; then :
  51637. cat >>confdefs.h <<_ACEOF
  51638. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51639. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51640. _ACEOF
  51641. fi
  51642. @@ -28811,88 +25335,8 @@
  51643. -{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
  51644. -echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
  51645. -if test "${ac_cv_func_vsnprintf+set}" = set; then
  51646. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51647. -else
  51648. - cat >conftest.$ac_ext <<_ACEOF
  51649. -/* confdefs.h. */
  51650. -_ACEOF
  51651. -cat confdefs.h >>conftest.$ac_ext
  51652. -cat >>conftest.$ac_ext <<_ACEOF
  51653. -/* end confdefs.h. */
  51654. -/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
  51655. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  51656. -#define vsnprintf innocuous_vsnprintf
  51657. -
  51658. -/* System header to define __stub macros and hopefully few prototypes,
  51659. - which can conflict with char vsnprintf (); below.
  51660. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  51661. - <limits.h> exists even on freestanding compilers. */
  51662. -
  51663. -#ifdef __STDC__
  51664. -# include <limits.h>
  51665. -#else
  51666. -# include <assert.h>
  51667. -#endif
  51668. -
  51669. -#undef vsnprintf
  51670. -
  51671. -/* Override any GCC internal prototype to avoid an error.
  51672. - Use char because int might match the return type of a GCC
  51673. - builtin and then its argument prototype would still apply. */
  51674. -#ifdef __cplusplus
  51675. -extern "C"
  51676. -#endif
  51677. -char vsnprintf ();
  51678. -/* The GNU C library defines this for functions which it implements
  51679. - to always fail with ENOSYS. Some functions are actually named
  51680. - something starting with __ and the normal name is an alias. */
  51681. -#if defined __stub_vsnprintf || defined __stub___vsnprintf
  51682. -choke me
  51683. -#endif
  51684. -
  51685. -int
  51686. -main ()
  51687. -{
  51688. -return vsnprintf ();
  51689. - ;
  51690. - return 0;
  51691. -}
  51692. -_ACEOF
  51693. -rm -f conftest.$ac_objext conftest$ac_exeext
  51694. -if { (ac_try="$ac_link"
  51695. -case "(($ac_try" in
  51696. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51697. - *) ac_try_echo=$ac_try;;
  51698. -esac
  51699. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51700. - (eval "$ac_link") 2>conftest.er1
  51701. - ac_status=$?
  51702. - grep -v '^ *+' conftest.er1 >conftest.err
  51703. - rm -f conftest.er1
  51704. - cat conftest.err >&5
  51705. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51706. - (exit $ac_status); } && {
  51707. - test -z "$ac_c_werror_flag" ||
  51708. - test ! -s conftest.err
  51709. - } && test -s conftest$ac_exeext &&
  51710. - $as_test_x conftest$ac_exeext; then
  51711. - ac_cv_func_vsnprintf=yes
  51712. -else
  51713. - echo "$as_me: failed program was:" >&5
  51714. -sed 's/^/| /' conftest.$ac_ext >&5
  51715. -
  51716. - ac_cv_func_vsnprintf=no
  51717. -fi
  51718. -
  51719. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  51720. - conftest$ac_exeext conftest.$ac_ext
  51721. -fi
  51722. -{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  51723. -echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
  51724. -if test $ac_cv_func_vsnprintf = yes; then
  51725. +ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  51726. +if test "x$ac_cv_func_vsnprintf" = x""yes; then :
  51727. gmp_vsnprintf_exists=yes
  51728. else
  51729. gmp_vsnprintf_exists=no
  51730. @@ -28901,21 +25345,17 @@
  51731. if test "$gmp_vsnprintf_exists" = no; then
  51732. gmp_cv_func_vsnprintf=no
  51733. else
  51734. - { echo "$as_me:$LINENO: checking whether vsnprintf works" >&5
  51735. -echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6; }
  51736. -if test "${gmp_cv_func_vsnprintf+set}" = set; then
  51737. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51738. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
  51739. +$as_echo_n "checking whether vsnprintf works... " >&6; }
  51740. +if test "${gmp_cv_func_vsnprintf+set}" = set; then :
  51741. + $as_echo_n "(cached) " >&6
  51742. else
  51743. gmp_cv_func_vsnprintf=yes
  51744. for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
  51745. - if test "$cross_compiling" = yes; then
  51746. + if test "$cross_compiling" = yes; then :
  51747. gmp_cv_func_vsnprintf=probably; break
  51748. else
  51749. - cat >conftest.$ac_ext <<_ACEOF
  51750. -/* confdefs.h. */
  51751. -_ACEOF
  51752. -cat confdefs.h >>conftest.$ac_ext
  51753. -cat >>conftest.$ac_ext <<_ACEOF
  51754. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51755. /* end confdefs.h. */
  51756. #include <string.h> /* for strcmp */
  51757. @@ -28967,61 +25407,35 @@
  51758. }
  51759. _ACEOF
  51760. -rm -f conftest$ac_exeext
  51761. -if { (ac_try="$ac_link"
  51762. -case "(($ac_try" in
  51763. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51764. - *) ac_try_echo=$ac_try;;
  51765. -esac
  51766. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51767. - (eval "$ac_link") 2>&5
  51768. - ac_status=$?
  51769. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51770. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  51771. - { (case "(($ac_try" in
  51772. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51773. - *) ac_try_echo=$ac_try;;
  51774. -esac
  51775. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51776. - (eval "$ac_try") 2>&5
  51777. - ac_status=$?
  51778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51779. - (exit $ac_status); }; }; then
  51780. +if ac_fn_c_try_run "$LINENO"; then :
  51781. :
  51782. else
  51783. - echo "$as_me: program exited with status $ac_status" >&5
  51784. -echo "$as_me: failed program was:" >&5
  51785. -sed 's/^/| /' conftest.$ac_ext >&5
  51786. -
  51787. -( exit $ac_status )
  51788. -gmp_cv_func_vsnprintf=no; break
  51789. + gmp_cv_func_vsnprintf=no; break
  51790. fi
  51791. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  51792. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  51793. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  51794. fi
  51795. -
  51796. done
  51797. fi
  51798. -{ echo "$as_me:$LINENO: result: $gmp_cv_func_vsnprintf" >&5
  51799. -echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6; }
  51800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
  51801. +$as_echo "$gmp_cv_func_vsnprintf" >&6; }
  51802. if test "$gmp_cv_func_vsnprintf" = probably; then
  51803. - { echo "$as_me:$LINENO: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
  51804. -echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
  51805. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
  51806. +$as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
  51807. fi
  51808. if test "$gmp_cv_func_vsnprintf" != no; then
  51809. -cat >>confdefs.h <<\_ACEOF
  51810. -#define HAVE_VSNPRINTF 1
  51811. -_ACEOF
  51812. +$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
  51813. fi
  51814. fi
  51815. -{ echo "$as_me:$LINENO: checking whether sscanf needs writable input" >&5
  51816. -echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6; }
  51817. -if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
  51818. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51819. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
  51820. +$as_echo_n "checking whether sscanf needs writable input... " >&6; }
  51821. +if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then :
  51822. + $as_echo_n "(cached) " >&6
  51823. else
  51824. case $host in
  51825. *-*-hpux9 | *-*-hpux9.*)
  51826. @@ -29030,124 +25444,25 @@
  51827. esac
  51828. fi
  51829. -{ echo "$as_me:$LINENO: result: $gmp_cv_func_sscanf_writable_input" >&5
  51830. -echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6; }
  51831. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
  51832. +$as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
  51833. case $gmp_cv_func_sscanf_writable_input in
  51834. yes)
  51835. -cat >>confdefs.h <<\_ACEOF
  51836. -#define SSCANF_WRITABLE_INPUT 1
  51837. -_ACEOF
  51838. +$as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
  51839. ;;
  51840. no) ;;
  51841. - *) { { echo "$as_me:$LINENO: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
  51842. -echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
  51843. - { (exit 1); exit 1; }; } ;;
  51844. + *) as_fn_error "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
  51845. esac
  51846. # Reasons for checking:
  51847. # pst_processor psp_iticksperclktick - not in hpux 9
  51848. #
  51849. -{ echo "$as_me:$LINENO: checking for struct pst_processor.psp_iticksperclktick" >&5
  51850. -echo $ECHO_N "checking for struct pst_processor.psp_iticksperclktick... $ECHO_C" >&6; }
  51851. -if test "${ac_cv_member_struct_pst_processor_psp_iticksperclktick+set}" = set; then
  51852. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51853. -else
  51854. - cat >conftest.$ac_ext <<_ACEOF
  51855. -/* confdefs.h. */
  51856. -_ACEOF
  51857. -cat confdefs.h >>conftest.$ac_ext
  51858. -cat >>conftest.$ac_ext <<_ACEOF
  51859. -/* end confdefs.h. */
  51860. -#include <sys/pstat.h>
  51861. -
  51862. -int
  51863. -main ()
  51864. -{
  51865. -static struct pst_processor ac_aggr;
  51866. -if (ac_aggr.psp_iticksperclktick)
  51867. -return 0;
  51868. - ;
  51869. - return 0;
  51870. -}
  51871. -_ACEOF
  51872. -rm -f conftest.$ac_objext
  51873. -if { (ac_try="$ac_compile"
  51874. -case "(($ac_try" in
  51875. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51876. - *) ac_try_echo=$ac_try;;
  51877. -esac
  51878. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51879. - (eval "$ac_compile") 2>conftest.er1
  51880. - ac_status=$?
  51881. - grep -v '^ *+' conftest.er1 >conftest.err
  51882. - rm -f conftest.er1
  51883. - cat conftest.err >&5
  51884. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51885. - (exit $ac_status); } && {
  51886. - test -z "$ac_c_werror_flag" ||
  51887. - test ! -s conftest.err
  51888. - } && test -s conftest.$ac_objext; then
  51889. - ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
  51890. -else
  51891. - echo "$as_me: failed program was:" >&5
  51892. -sed 's/^/| /' conftest.$ac_ext >&5
  51893. -
  51894. - cat >conftest.$ac_ext <<_ACEOF
  51895. -/* confdefs.h. */
  51896. -_ACEOF
  51897. -cat confdefs.h >>conftest.$ac_ext
  51898. -cat >>conftest.$ac_ext <<_ACEOF
  51899. -/* end confdefs.h. */
  51900. -#include <sys/pstat.h>
  51901. -
  51902. -int
  51903. -main ()
  51904. -{
  51905. -static struct pst_processor ac_aggr;
  51906. -if (sizeof ac_aggr.psp_iticksperclktick)
  51907. -return 0;
  51908. - ;
  51909. - return 0;
  51910. -}
  51911. -_ACEOF
  51912. -rm -f conftest.$ac_objext
  51913. -if { (ac_try="$ac_compile"
  51914. -case "(($ac_try" in
  51915. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51916. - *) ac_try_echo=$ac_try;;
  51917. -esac
  51918. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51919. - (eval "$ac_compile") 2>conftest.er1
  51920. - ac_status=$?
  51921. - grep -v '^ *+' conftest.er1 >conftest.err
  51922. - rm -f conftest.er1
  51923. - cat conftest.err >&5
  51924. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51925. - (exit $ac_status); } && {
  51926. - test -z "$ac_c_werror_flag" ||
  51927. - test ! -s conftest.err
  51928. - } && test -s conftest.$ac_objext; then
  51929. - ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
  51930. -else
  51931. - echo "$as_me: failed program was:" >&5
  51932. -sed 's/^/| /' conftest.$ac_ext >&5
  51933. -
  51934. - ac_cv_member_struct_pst_processor_psp_iticksperclktick=no
  51935. -fi
  51936. -
  51937. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51938. -fi
  51939. -
  51940. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51941. -fi
  51942. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&5
  51943. -echo "${ECHO_T}$ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&6; }
  51944. -if test $ac_cv_member_struct_pst_processor_psp_iticksperclktick = yes; then
  51945. +ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
  51946. +"
  51947. +if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = x""yes; then :
  51948. -cat >>confdefs.h <<\_ACEOF
  51949. -#define HAVE_PSP_ITICKSPERCLKTICK 1
  51950. -_ACEOF
  51951. +$as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
  51952. fi
  51953. @@ -29167,206 +25482,21 @@
  51954. # std::locale - not in g++ 2.95.4
  51955. #
  51956. -
  51957. for ac_header in sstream
  51958. -do
  51959. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  51960. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  51961. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  51962. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  51963. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  51964. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51965. -fi
  51966. -ac_res=`eval echo '${'$as_ac_Header'}'`
  51967. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  51968. -echo "${ECHO_T}$ac_res" >&6; }
  51969. -else
  51970. - # Is the header compilable?
  51971. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  51972. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  51973. -cat >conftest.$ac_ext <<_ACEOF
  51974. -/* confdefs.h. */
  51975. -_ACEOF
  51976. -cat confdefs.h >>conftest.$ac_ext
  51977. -cat >>conftest.$ac_ext <<_ACEOF
  51978. -/* end confdefs.h. */
  51979. -$ac_includes_default
  51980. -#include <$ac_header>
  51981. -_ACEOF
  51982. -rm -f conftest.$ac_objext
  51983. -if { (ac_try="$ac_compile"
  51984. -case "(($ac_try" in
  51985. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  51986. - *) ac_try_echo=$ac_try;;
  51987. -esac
  51988. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  51989. - (eval "$ac_compile") 2>conftest.er1
  51990. - ac_status=$?
  51991. - grep -v '^ *+' conftest.er1 >conftest.err
  51992. - rm -f conftest.er1
  51993. - cat conftest.err >&5
  51994. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51995. - (exit $ac_status); } && {
  51996. - test -z "$ac_cxx_werror_flag" ||
  51997. - test ! -s conftest.err
  51998. - } && test -s conftest.$ac_objext; then
  51999. - ac_header_compiler=yes
  52000. -else
  52001. - echo "$as_me: failed program was:" >&5
  52002. -sed 's/^/| /' conftest.$ac_ext >&5
  52003. -
  52004. - ac_header_compiler=no
  52005. -fi
  52006. -
  52007. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52008. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  52009. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  52010. -
  52011. -# Is the header present?
  52012. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  52013. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  52014. -cat >conftest.$ac_ext <<_ACEOF
  52015. -/* confdefs.h. */
  52016. -_ACEOF
  52017. -cat confdefs.h >>conftest.$ac_ext
  52018. -cat >>conftest.$ac_ext <<_ACEOF
  52019. -/* end confdefs.h. */
  52020. -#include <$ac_header>
  52021. -_ACEOF
  52022. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  52023. -case "(($ac_try" in
  52024. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  52025. - *) ac_try_echo=$ac_try;;
  52026. -esac
  52027. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  52028. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  52029. - ac_status=$?
  52030. - grep -v '^ *+' conftest.er1 >conftest.err
  52031. - rm -f conftest.er1
  52032. - cat conftest.err >&5
  52033. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52034. - (exit $ac_status); } >/dev/null && {
  52035. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  52036. - test ! -s conftest.err
  52037. - }; then
  52038. - ac_header_preproc=yes
  52039. -else
  52040. - echo "$as_me: failed program was:" >&5
  52041. -sed 's/^/| /' conftest.$ac_ext >&5
  52042. -
  52043. - ac_header_preproc=no
  52044. -fi
  52045. -
  52046. -rm -f conftest.err conftest.$ac_ext
  52047. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  52048. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  52049. -
  52050. -# So? What about this header?
  52051. -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  52052. - yes:no: )
  52053. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  52054. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  52055. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  52056. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  52057. - ac_header_preproc=yes
  52058. - ;;
  52059. - no:yes:* )
  52060. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  52061. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  52062. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  52063. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  52064. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  52065. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  52066. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  52067. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  52068. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  52069. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  52070. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  52071. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  52072. - ( cat <<\_ASBOX
  52073. -## ---------------------------------- ##
  52074. -## Report this to gmp-bugs@gmplib.org ##
  52075. -## ---------------------------------- ##
  52076. -_ASBOX
  52077. - ) | sed "s/^/$as_me: WARNING: /" >&2
  52078. - ;;
  52079. -esac
  52080. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  52081. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  52082. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  52083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52084. -else
  52085. - eval "$as_ac_Header=\$ac_header_preproc"
  52086. -fi
  52087. -ac_res=`eval echo '${'$as_ac_Header'}'`
  52088. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  52089. -echo "${ECHO_T}$ac_res" >&6; }
  52090. -
  52091. -fi
  52092. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  52093. +do :
  52094. + ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
  52095. +if test "x$ac_cv_header_sstream" = x""yes; then :
  52096. cat >>confdefs.h <<_ACEOF
  52097. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  52098. +#define HAVE_SSTREAM 1
  52099. _ACEOF
  52100. fi
  52101. done
  52102. - { echo "$as_me:$LINENO: checking for std::locale" >&5
  52103. -echo $ECHO_N "checking for std::locale... $ECHO_C" >&6; }
  52104. -if test "${ac_cv_type_std__locale+set}" = set; then
  52105. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52106. -else
  52107. - cat >conftest.$ac_ext <<_ACEOF
  52108. -/* confdefs.h. */
  52109. -_ACEOF
  52110. -cat confdefs.h >>conftest.$ac_ext
  52111. -cat >>conftest.$ac_ext <<_ACEOF
  52112. -/* end confdefs.h. */
  52113. -#include <locale>
  52114. -
  52115. -typedef std::locale ac__type_new_;
  52116. -int
  52117. -main ()
  52118. -{
  52119. -if ((ac__type_new_ *) 0)
  52120. - return 0;
  52121. -if (sizeof (ac__type_new_))
  52122. - return 0;
  52123. - ;
  52124. - return 0;
  52125. -}
  52126. -_ACEOF
  52127. -rm -f conftest.$ac_objext
  52128. -if { (ac_try="$ac_compile"
  52129. -case "(($ac_try" in
  52130. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  52131. - *) ac_try_echo=$ac_try;;
  52132. -esac
  52133. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  52134. - (eval "$ac_compile") 2>conftest.er1
  52135. - ac_status=$?
  52136. - grep -v '^ *+' conftest.er1 >conftest.err
  52137. - rm -f conftest.er1
  52138. - cat conftest.err >&5
  52139. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52140. - (exit $ac_status); } && {
  52141. - test -z "$ac_cxx_werror_flag" ||
  52142. - test ! -s conftest.err
  52143. - } && test -s conftest.$ac_objext; then
  52144. - ac_cv_type_std__locale=yes
  52145. -else
  52146. - echo "$as_me: failed program was:" >&5
  52147. -sed 's/^/| /' conftest.$ac_ext >&5
  52148. -
  52149. - ac_cv_type_std__locale=no
  52150. -fi
  52151. -
  52152. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52153. -fi
  52154. -{ echo "$as_me:$LINENO: result: $ac_cv_type_std__locale" >&5
  52155. -echo "${ECHO_T}$ac_cv_type_std__locale" >&6; }
  52156. -if test $ac_cv_type_std__locale = yes; then
  52157. + ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
  52158. +"
  52159. +if test "x$ac_cv_type_std__locale" = x""yes; then :
  52160. cat >>confdefs.h <<_ACEOF
  52161. #define HAVE_STD__LOCALE 1
  52162. @@ -29492,9 +25622,7 @@
  52163. echo " Generated by configure - DO NOT EDIT. */" >>fat.h
  52164. -cat >>confdefs.h <<\_ACEOF
  52165. -#define WANT_FAT_BINARY 1
  52166. -_ACEOF
  52167. +$as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
  52168. echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
  52169. @@ -29908,9 +26036,7 @@
  52170. fi
  52171. done
  52172. if test $found = no; then
  52173. - { { echo "$as_me:$LINENO: error: no version of $tmp_fn found in path: $path" >&5
  52174. -echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
  52175. - { (exit 1); exit 1; }; }
  52176. + as_fn_error "no version of $tmp_fn found in path: $path" "$LINENO" 5
  52177. fi
  52178. fi
  52179. done
  52180. @@ -29924,14 +26050,13 @@
  52181. -
  52182. # Don't demand an m4 unless it's actually needed.
  52183. if test $found_asm = yes; then
  52184. -{ echo "$as_me:$LINENO: checking for suitable m4" >&5
  52185. -echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6; }
  52186. -if test "${gmp_cv_prog_m4+set}" = set; then
  52187. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
  52189. +$as_echo_n "checking for suitable m4... " >&6; }
  52190. +if test "${gmp_cv_prog_m4+set}" = set; then :
  52191. + $as_echo_n "(cached) " >&6
  52192. else
  52193. if test -n "$M4"; then
  52194. gmp_cv_prog_m4="$M4"
  52195. @@ -29964,24 +26089,22 @@
  52196. done
  52197. IFS="$ac_save_ifs"
  52198. if test -z "$gmp_cv_prog_m4"; then
  52199. - { { echo "$as_me:$LINENO: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
  52200. -echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
  52201. - { (exit 1); exit 1; }; }
  52202. + as_fn_error "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
  52203. fi
  52204. fi
  52205. rm -f conftest.m4
  52206. fi
  52207. fi
  52208. -{ echo "$as_me:$LINENO: result: $gmp_cv_prog_m4" >&5
  52209. -echo "${ECHO_T}$gmp_cv_prog_m4" >&6; }
  52210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
  52211. +$as_echo "$gmp_cv_prog_m4" >&6; }
  52212. M4="$gmp_cv_prog_m4"
  52213. -{ echo "$as_me:$LINENO: checking if m4wrap produces spurious output" >&5
  52214. -echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6; }
  52215. -if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
  52216. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52217. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
  52218. +$as_echo_n "checking if m4wrap produces spurious output... " >&6; }
  52219. +if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then :
  52220. + $as_echo_n "(cached) " >&6
  52221. else
  52222. # hide the d-n-l from autoconf's error checking
  52223. tmp_d_n_l=d""nl
  52224. @@ -30000,8 +26123,8 @@
  52225. fi
  52226. fi
  52227. -{ echo "$as_me:$LINENO: result: $gmp_cv_m4_m4wrap_spurious" >&5
  52228. -echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6; }
  52229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
  52230. +$as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
  52231. echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
  52232. @@ -30016,10 +26139,10 @@
  52233. fi
  52234. if test "$gmp_asm_syntax_testing" != no; then
  52235. - { echo "$as_me:$LINENO: checking how to switch to text section" >&5
  52236. -echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6; }
  52237. -if test "${gmp_cv_asm_text+set}" = set; then
  52238. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52239. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
  52240. +$as_echo_n "checking how to switch to text section... " >&6; }
  52241. +if test "${gmp_cv_asm_text+set}" = set; then :
  52242. + $as_echo_n "(cached) " >&6
  52243. else
  52244. for i in ".text" ".code" ".csect .text[PR]"; do
  52245. echo "trying $i" >&5
  52246. @@ -30027,11 +26150,11 @@
  52247. $i
  52248. EOF
  52249. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52250. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52251. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52252. (eval $gmp_assemble) 2>&5
  52253. ac_status=$?
  52254. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52255. - (exit $ac_status); }; then
  52256. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52257. + test $ac_status = 0; }; then
  52258. cat conftest.out >&5
  52259. gmp_cv_asm_text=$i
  52260. rm -f conftest*
  52261. @@ -30046,20 +26169,18 @@
  52262. done
  52263. if test -z "$gmp_cv_asm_text"; then
  52264. - { { echo "$as_me:$LINENO: error: Cannot determine text section directive" >&5
  52265. -echo "$as_me: error: Cannot determine text section directive" >&2;}
  52266. - { (exit 1); exit 1; }; }
  52267. + as_fn_error "Cannot determine text section directive" "$LINENO" 5
  52268. fi
  52269. fi
  52270. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_text" >&5
  52271. -echo "${ECHO_T}$gmp_cv_asm_text" >&6; }
  52272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
  52273. +$as_echo "$gmp_cv_asm_text" >&6; }
  52274. echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
  52275. - { echo "$as_me:$LINENO: checking how to switch to data section" >&5
  52276. -echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6; }
  52277. -if test "${gmp_cv_asm_data+set}" = set; then
  52278. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52279. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
  52280. +$as_echo_n "checking how to switch to data section... " >&6; }
  52281. +if test "${gmp_cv_asm_data+set}" = set; then :
  52282. + $as_echo_n "(cached) " >&6
  52283. else
  52284. case $host in
  52285. *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
  52286. @@ -30067,15 +26188,15 @@
  52287. esac
  52288. fi
  52289. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_data" >&5
  52290. -echo "${ECHO_T}$gmp_cv_asm_data" >&6; }
  52291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
  52292. +$as_echo "$gmp_cv_asm_data" >&6; }
  52293. echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
  52294. -{ echo "$as_me:$LINENO: checking for assembler label suffix" >&5
  52295. -echo $ECHO_N "checking for assembler label suffix... $ECHO_C" >&6; }
  52296. -if test "${gmp_cv_asm_label_suffix+set}" = set; then
  52297. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
  52299. +$as_echo_n "checking for assembler label suffix... " >&6; }
  52300. +if test "${gmp_cv_asm_label_suffix+set}" = set; then :
  52301. + $as_echo_n "(cached) " >&6
  52302. else
  52303. gmp_cv_asm_label_suffix=unknown
  52304. for i in "" ":"; do
  52305. @@ -30085,11 +26206,11 @@
  52306. somelabel$i
  52307. EOF
  52308. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52309. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52310. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52311. (eval $gmp_assemble) 2>&5
  52312. ac_status=$?
  52313. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52314. - (exit $ac_status); }; then
  52315. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52316. + test $ac_status = 0; }; then
  52317. cat conftest.out >&5
  52318. gmp_cv_asm_label_suffix=$i
  52319. rm -f conftest*
  52320. @@ -30104,21 +26225,19 @@
  52321. done
  52322. if test "$gmp_cv_asm_label_suffix" = "unknown"; then
  52323. - { { echo "$as_me:$LINENO: error: Cannot determine label suffix" >&5
  52324. -echo "$as_me: error: Cannot determine label suffix" >&2;}
  52325. - { (exit 1); exit 1; }; }
  52326. + as_fn_error "Cannot determine label suffix" "$LINENO" 5
  52327. fi
  52328. fi
  52329. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_label_suffix" >&5
  52330. -echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6; }
  52331. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
  52332. +$as_echo "$gmp_cv_asm_label_suffix" >&6; }
  52333. echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
  52334. -{ echo "$as_me:$LINENO: checking for assembler global directive" >&5
  52335. -echo $ECHO_N "checking for assembler global directive... $ECHO_C" >&6; }
  52336. -if test "${gmp_cv_asm_globl+set}" = set; then
  52337. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
  52339. +$as_echo_n "checking for assembler global directive... " >&6; }
  52340. +if test "${gmp_cv_asm_globl+set}" = set; then :
  52341. + $as_echo_n "(cached) " >&6
  52342. else
  52343. case $host in
  52344. hppa*-*-*) gmp_cv_asm_globl=.export ;;
  52345. @@ -30127,15 +26246,15 @@
  52346. esac
  52347. fi
  52348. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_globl" >&5
  52349. -echo "${ECHO_T}$gmp_cv_asm_globl" >&6; }
  52350. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
  52351. +$as_echo "$gmp_cv_asm_globl" >&6; }
  52352. echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
  52353. -{ echo "$as_me:$LINENO: checking for assembler global directive attribute" >&5
  52354. -echo $ECHO_N "checking for assembler global directive attribute... $ECHO_C" >&6; }
  52355. -if test "${gmp_cv_asm_globl_attr+set}" = set; then
  52356. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
  52358. +$as_echo_n "checking for assembler global directive attribute... " >&6; }
  52359. +if test "${gmp_cv_asm_globl_attr+set}" = set; then :
  52360. + $as_echo_n "(cached) " >&6
  52361. else
  52362. case $gmp_cv_asm_globl in
  52363. .export) gmp_cv_asm_globl_attr=",entry" ;;
  52364. @@ -30143,26 +26262,26 @@
  52365. esac
  52366. fi
  52367. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_globl_attr" >&5
  52368. -echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6; }
  52369. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
  52370. +$as_echo "$gmp_cv_asm_globl_attr" >&6; }
  52371. echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
  52372. -{ echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
  52373. -echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6; }
  52374. -if test "${gmp_cv_asm_underscore+set}" = set; then
  52375. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52376. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
  52377. +$as_echo_n "checking if globals are prefixed by underscore... " >&6; }
  52378. +if test "${gmp_cv_asm_underscore+set}" = set; then :
  52379. + $as_echo_n "(cached) " >&6
  52380. else
  52381. gmp_cv_asm_underscore="unknown"
  52382. cat >conftest.c <<EOF
  52383. int gurkmacka;
  52384. EOF
  52385. gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
  52386. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  52387. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  52388. (eval $gmp_compile) 2>&5
  52389. ac_status=$?
  52390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52391. - (exit $ac_status); }; then
  52392. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52393. + test $ac_status = 0; }; then
  52394. $NM conftest.$OBJEXT >conftest.out
  52395. if grep _gurkmacka conftest.out >/dev/null; then
  52396. gmp_cv_asm_underscore=yes
  52397. @@ -30179,8 +26298,8 @@
  52398. rm -f conftest*
  52399. fi
  52400. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_underscore" >&5
  52401. -echo "${ECHO_T}$gmp_cv_asm_underscore" >&6; }
  52402. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
  52403. +$as_echo "$gmp_cv_asm_underscore" >&6; }
  52404. case $gmp_cv_asm_underscore in
  52405. yes)
  52406. @@ -30191,24 +26310,24 @@
  52407. echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
  52408. ;;
  52409. *)
  52410. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  52411. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  52412. - { echo "$as_me:$LINENO: WARNING: | Cannot determine global symbol prefix." >&5
  52413. -echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
  52414. - { echo "$as_me:$LINENO: WARNING: | $NM output doesn't contain a global data symbol." >&5
  52415. -echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
  52416. - { echo "$as_me:$LINENO: WARNING: | Will proceed with no underscore." >&5
  52417. -echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
  52418. - { echo "$as_me:$LINENO: WARNING: | If this is wrong then you'll get link errors referring" >&5
  52419. -echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
  52420. - { echo "$as_me:$LINENO: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
  52421. -echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
  52422. - { echo "$as_me:$LINENO: WARNING: | In this case do a fresh build with an override," >&5
  52423. -echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
  52424. - { echo "$as_me:$LINENO: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
  52425. -echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
  52426. - { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
  52427. -echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  52428. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  52429. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  52430. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
  52431. +$as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
  52432. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
  52433. +$as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
  52434. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
  52435. +$as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
  52436. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
  52437. +$as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
  52438. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
  52439. +$as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
  52440. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
  52441. +$as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
  52442. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
  52443. +$as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
  52444. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
  52445. +$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
  52446. echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
  52447. @@ -30219,10 +26338,10 @@
  52448. -{ echo "$as_me:$LINENO: checking how to switch to read-only data section" >&5
  52449. -echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6; }
  52450. -if test "${gmp_cv_asm_rodata+set}" = set; then
  52451. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
  52453. +$as_echo_n "checking how to switch to read-only data section... " >&6; }
  52454. +if test "${gmp_cv_asm_rodata+set}" = set; then :
  52455. + $as_echo_n "(cached) " >&6
  52456. else
  52457. case $host in
  52458. @@ -30238,11 +26357,11 @@
  52459. echo "Test program:" >&5
  52460. cat conftest.c >&5
  52461. gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
  52462. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  52463. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  52464. (eval $gmp_compile) 2>&5
  52465. ac_status=$?
  52466. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52467. - (exit $ac_status); }; then
  52468. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52469. + test $ac_status = 0; }; then
  52470. echo "Compiler output:" >&5
  52471. cat conftest.s >&5
  52472. if test $gmp_cv_asm_underscore = yes; then
  52473. @@ -30272,14 +26391,14 @@
  52474. rm -f conftest*
  52475. fi
  52476. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_rodata" >&5
  52477. -echo "${ECHO_T}$gmp_cv_asm_rodata" >&6; }
  52478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
  52479. +$as_echo "$gmp_cv_asm_rodata" >&6; }
  52480. echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
  52481. - { echo "$as_me:$LINENO: checking for assembler .type directive" >&5
  52482. -echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6; }
  52483. -if test "${gmp_cv_asm_type+set}" = set; then
  52484. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52485. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
  52486. +$as_echo_n "checking for assembler .type directive... " >&6; }
  52487. +if test "${gmp_cv_asm_type+set}" = set; then :
  52488. + $as_echo_n "(cached) " >&6
  52489. else
  52490. gmp_cv_asm_type=
  52491. for gmp_tmp_prefix in @ \# %; do
  52492. @@ -30287,11 +26406,11 @@
  52493. .type sym,${gmp_tmp_prefix}function
  52494. EOF
  52495. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52496. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52497. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52498. (eval $gmp_assemble) 2>&5
  52499. ac_status=$?
  52500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52501. - (exit $ac_status); }; then
  52502. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52503. + test $ac_status = 0; }; then
  52504. cat conftest.out >&5
  52505. if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
  52506. else
  52507. @@ -30310,25 +26429,25 @@
  52508. rm -f conftest*
  52509. fi
  52510. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_type" >&5
  52511. -echo "${ECHO_T}$gmp_cv_asm_type" >&6; }
  52512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
  52513. +$as_echo "$gmp_cv_asm_type" >&6; }
  52514. echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
  52515. - { echo "$as_me:$LINENO: checking for assembler .size directive" >&5
  52516. -echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6; }
  52517. -if test "${gmp_cv_asm_size+set}" = set; then
  52518. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52519. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
  52520. +$as_echo_n "checking for assembler .size directive... " >&6; }
  52521. +if test "${gmp_cv_asm_size+set}" = set; then :
  52522. + $as_echo_n "(cached) " >&6
  52523. else
  52524. gmp_cv_asm_size=
  52525. cat >conftest.s <<EOF
  52526. .size sym,1
  52527. EOF
  52528. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52529. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52530. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52531. (eval $gmp_assemble) 2>&5
  52532. ac_status=$?
  52533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52534. - (exit $ac_status); }; then
  52535. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52536. + test $ac_status = 0; }; then
  52537. cat conftest.out >&5
  52538. if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
  52539. else
  52540. @@ -30344,17 +26463,17 @@
  52541. fi
  52542. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_size" >&5
  52543. -echo "${ECHO_T}$gmp_cv_asm_size" >&6; }
  52544. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
  52545. +$as_echo "$gmp_cv_asm_size" >&6; }
  52546. echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
  52547. -{ echo "$as_me:$LINENO: checking for assembler local label prefix" >&5
  52548. -echo $ECHO_N "checking for assembler local label prefix... $ECHO_C" >&6; }
  52549. -if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
  52550. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
  52552. +$as_echo_n "checking for assembler local label prefix... " >&6; }
  52553. +if test "${gmp_cv_asm_lsym_prefix+set}" = set; then :
  52554. + $as_echo_n "(cached) " >&6
  52555. else
  52556. gmp_tmp_pre_appears=yes
  52557. for gmp_tmp_pre in L .L $L $ L$; do
  52558. @@ -30365,16 +26484,16 @@
  52559. ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
  52560. EOF
  52561. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52562. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52563. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52564. (eval $gmp_assemble) 2>&5
  52565. ac_status=$?
  52566. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52567. - (exit $ac_status); }; then
  52568. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52569. + test $ac_status = 0; }; then
  52570. cat conftest.out >&5
  52571. if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
  52572. cat conftest.nm >&5
  52573. - { echo "$as_me:$LINENO: WARNING: \"$NM\" failure" >&5
  52574. -echo "$as_me: WARNING: \"$NM\" failure" >&2;}
  52575. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
  52576. +$as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
  52577. break
  52578. fi
  52579. cat conftest.nm >&5
  52580. @@ -30407,15 +26526,15 @@
  52581. rm -f conftest*
  52582. if test -z "$gmp_cv_asm_lsym_prefix"; then
  52583. gmp_cv_asm_lsym_prefix=L
  52584. - { echo "$as_me:$LINENO: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
  52585. -echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
  52586. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
  52587. +$as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
  52588. fi
  52589. # for development purposes, note whether we got a purely temporary local label
  52590. echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
  52591. fi
  52592. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_lsym_prefix" >&5
  52593. -echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6; }
  52594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
  52595. +$as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
  52596. echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
  52597. cat >>confdefs.h <<_ACEOF
  52598. @@ -30425,10 +26544,10 @@
  52599. -{ echo "$as_me:$LINENO: checking for assembler byte directive" >&5
  52600. -echo $ECHO_N "checking for assembler byte directive... $ECHO_C" >&6; }
  52601. -if test "${gmp_cv_asm_byte+set}" = set; then
  52602. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52603. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
  52604. +$as_echo_n "checking for assembler byte directive... " >&6; }
  52605. +if test "${gmp_cv_asm_byte+set}" = set; then :
  52606. + $as_echo_n "(cached) " >&6
  52607. else
  52608. for i in .byte data1; do
  52609. echo "trying $i" >&5
  52610. @@ -30438,11 +26557,11 @@
  52611. EOF
  52612. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52613. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52614. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52615. (eval $gmp_assemble) 2>&5
  52616. ac_status=$?
  52617. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52618. - (exit $ac_status); }; then
  52619. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52620. + test $ac_status = 0; }; then
  52621. cat conftest.out >&5
  52622. gmp_cv_asm_byte=$i
  52623. rm -f conftest*
  52624. @@ -30457,24 +26576,22 @@
  52625. done
  52626. if test -z "$gmp_cv_asm_byte"; then
  52627. - { { echo "$as_me:$LINENO: error: Cannot determine how to emit a data byte" >&5
  52628. -echo "$as_me: error: Cannot determine how to emit a data byte" >&2;}
  52629. - { (exit 1); exit 1; }; }
  52630. + as_fn_error "Cannot determine how to emit a data byte" "$LINENO" 5
  52631. fi
  52632. fi
  52633. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_byte" >&5
  52634. -echo "${ECHO_T}$gmp_cv_asm_byte" >&6; }
  52635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
  52636. +$as_echo "$gmp_cv_asm_byte" >&6; }
  52637. -{ echo "$as_me:$LINENO: checking how to define a 32-bit word" >&5
  52638. -echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6; }
  52639. -if test "${gmp_cv_asm_w32+set}" = set; then
  52640. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52641. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
  52642. +$as_echo_n "checking how to define a 32-bit word... " >&6; }
  52643. +if test "${gmp_cv_asm_w32+set}" = set; then :
  52644. + $as_echo_n "(cached) " >&6
  52645. else
  52646. case $host in
  52647. *-*-hpux*)
  52648. @@ -30496,11 +26613,11 @@
  52649. $gmp_cv_asm_byte 0
  52650. EOF
  52651. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52652. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52653. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52654. (eval $gmp_assemble) 2>&5
  52655. ac_status=$?
  52656. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52657. - (exit $ac_status); }; then
  52658. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52659. + test $ac_status = 0; }; then
  52660. cat conftest.out >&5
  52661. gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
  52662. sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
  52663. @@ -30521,14 +26638,12 @@
  52664. ;;
  52665. esac
  52666. if test -z "$gmp_cv_asm_w32"; then
  52667. - { { echo "$as_me:$LINENO: error: cannot determine how to define a 32-bit word" >&5
  52668. -echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
  52669. - { (exit 1); exit 1; }; }
  52670. + as_fn_error "cannot determine how to define a 32-bit word" "$LINENO" 5
  52671. fi
  52672. fi
  52673. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_w32" >&5
  52674. -echo "${ECHO_T}$gmp_cv_asm_w32" >&6; }
  52675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
  52676. +$as_echo "$gmp_cv_asm_w32" >&6; }
  52677. echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
  52678. @@ -30536,10 +26651,10 @@
  52679. -{ echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
  52680. -echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6; }
  52681. -if test "${gmp_cv_asm_align_log+set}" = set; then
  52682. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
  52684. +$as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
  52685. +if test "${gmp_cv_asm_align_log+set}" = set; then :
  52686. + $as_echo_n "(cached) " >&6
  52687. else
  52688. cat >conftest.s <<EOF
  52689. $gmp_cv_asm_data
  52690. @@ -30551,11 +26666,11 @@
  52691. $gmp_cv_asm_byte 2
  52692. EOF
  52693. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52694. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52695. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52696. (eval $gmp_assemble) 2>&5
  52697. ac_status=$?
  52698. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52699. - (exit $ac_status); }; then
  52700. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52701. + test $ac_status = 0; }; then
  52702. cat conftest.out >&5
  52703. gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
  52704. sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
  52705. @@ -30568,15 +26683,13 @@
  52706. cat conftest.out >&5
  52707. echo "configure: failed program was:" >&5
  52708. cat conftest.s >&5
  52709. - { { echo "$as_me:$LINENO: error: cannot assemble alignment test" >&5
  52710. -echo "$as_me: error: cannot assemble alignment test" >&2;}
  52711. - { (exit 1); exit 1; }; }
  52712. + as_fn_error "cannot assemble alignment test" "$LINENO" 5
  52713. fi
  52714. rm -f conftest*
  52715. fi
  52716. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_align_log" >&5
  52717. -echo "${ECHO_T}$gmp_cv_asm_align_log" >&6; }
  52718. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
  52719. +$as_echo "$gmp_cv_asm_align_log" >&6; }
  52720. echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
  52721. @@ -30591,10 +26704,10 @@
  52722. ;;
  52723. ia64*-*-* | itanium-*-* | itanium2-*-*)
  52724. - { echo "$as_me:$LINENO: checking whether assembler .align padding is good" >&5
  52725. -echo $ECHO_N "checking whether assembler .align padding is good... $ECHO_C" >&6; }
  52726. -if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then
  52727. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52728. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
  52729. +$as_echo_n "checking whether assembler .align padding is good... " >&6; }
  52730. +if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then :
  52731. + $as_echo_n "(cached) " >&6
  52732. else
  52733. cat >conftest.awk <<\EOF
  52734. BEGIN {
  52735. @@ -30689,27 +26802,27 @@
  52736. EOF
  52737. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52738. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52739. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52740. (eval $gmp_assemble) 2>&5
  52741. ac_status=$?
  52742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52743. - (exit $ac_status); }; then
  52744. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52745. + test $ac_status = 0; }; then
  52746. cat conftest.out >&5
  52747. gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
  52748. else
  52749. cat conftest.out >&5
  52750. echo "configure: failed program was:" >&5
  52751. cat conftest.s >&5
  52752. - { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
  52753. -echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
  52754. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
  52755. +$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
  52756. gmp_cv_asm_ia64_align_ok=yes
  52757. fi
  52758. rm -f conftest*
  52759. fi
  52760. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_ia64_align_ok" >&5
  52761. -echo "${ECHO_T}$gmp_cv_asm_ia64_align_ok" >&6; }
  52762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
  52763. +$as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
  52764. echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
  52765. @@ -30717,10 +26830,10 @@
  52766. ;;
  52767. m68k-*-* | m68[0-9][0-9][0-9]-*-*)
  52768. -{ echo "$as_me:$LINENO: checking assembler instruction and register style" >&5
  52769. -echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6; }
  52770. -if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
  52771. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52772. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
  52773. +$as_echo_n "checking assembler instruction and register style... " >&6; }
  52774. +if test "${gmp_cv_asm_m68k_instruction+set}" = set; then :
  52775. + $as_echo_n "(cached) " >&6
  52776. else
  52777. for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
  52778. cat >conftest.s <<EOF
  52779. @@ -30728,11 +26841,11 @@
  52780. $i
  52781. EOF
  52782. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52783. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52784. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52785. (eval $gmp_assemble) 2>&5
  52786. ac_status=$?
  52787. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52788. - (exit $ac_status); }; then
  52789. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52790. + test $ac_status = 0; }; then
  52791. cat conftest.out >&5
  52792. gmp_cv_asm_m68k_instruction=$i
  52793. rm -f conftest*
  52794. @@ -30747,22 +26860,18 @@
  52795. done
  52796. if test -z "$gmp_cv_asm_m68k_instruction"; then
  52797. - { { echo "$as_me:$LINENO: error: cannot determine assembler instruction and register style" >&5
  52798. -echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
  52799. - { (exit 1); exit 1; }; }
  52800. + as_fn_error "cannot determine assembler instruction and register style" "$LINENO" 5
  52801. fi
  52802. fi
  52803. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_instruction" >&5
  52804. -echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6; }
  52805. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
  52806. +$as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
  52807. case $gmp_cv_asm_m68k_instruction in
  52808. "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
  52809. "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
  52810. "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
  52811. "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
  52812. -*) { { echo "$as_me:$LINENO: error: oops, unrecognised instruction and register style" >&5
  52813. -echo "$as_me: error: oops, unrecognised instruction and register style" >&2;}
  52814. - { (exit 1); exit 1; }; } ;;
  52815. +*) as_fn_error "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
  52816. esac
  52817. echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
  52818. @@ -30773,35 +26882,31 @@
  52819. -{ echo "$as_me:$LINENO: checking assembler addressing style" >&5
  52820. -echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6; }
  52821. -if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
  52822. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
  52824. +$as_echo_n "checking assembler addressing style... " >&6; }
  52825. +if test "${gmp_cv_asm_m68k_addressing+set}" = set; then :
  52826. + $as_echo_n "(cached) " >&6
  52827. else
  52828. case $gmp_cv_asm_m68k_instruction in
  52829. addl*) movel=movel ;;
  52830. add.l*) movel=move.l ;;
  52831. -*) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
  52832. -echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
  52833. - { (exit 1); exit 1; }; } ;;
  52834. +*) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
  52835. esac
  52836. case $gmp_cv_asm_m68k_instruction in
  52837. *"%d0,%d1") dreg=%d0; areg=%a0 ;;
  52838. *"d0,d1") dreg=d0; areg=a0 ;;
  52839. -*) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
  52840. -echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
  52841. - { (exit 1); exit 1; }; } ;;
  52842. +*) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
  52843. esac
  52844. cat >conftest.s <<EOF
  52845. $gmp_cv_asm_text
  52846. $movel $dreg, $areg@-
  52847. EOF
  52848. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52849. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52850. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52851. (eval $gmp_assemble) 2>&5
  52852. ac_status=$?
  52853. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52854. - (exit $ac_status); }; then
  52855. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52856. + test $ac_status = 0; }; then
  52857. cat conftest.out >&5
  52858. gmp_cv_asm_m68k_addressing=mit
  52859. else
  52860. @@ -30813,20 +26918,18 @@
  52861. $movel $dreg, -($areg)
  52862. EOF
  52863. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52864. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52865. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52866. (eval $gmp_assemble) 2>&5
  52867. ac_status=$?
  52868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52869. - (exit $ac_status); }; then
  52870. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52871. + test $ac_status = 0; }; then
  52872. cat conftest.out >&5
  52873. gmp_cv_asm_m68k_addressing=motorola
  52874. else
  52875. cat conftest.out >&5
  52876. echo "configure: failed program was:" >&5
  52877. cat conftest.s >&5
  52878. - { { echo "$as_me:$LINENO: error: cannot determine assembler addressing style" >&5
  52879. -echo "$as_me: error: cannot determine assembler addressing style" >&2;}
  52880. - { (exit 1); exit 1; }; }
  52881. + as_fn_error "cannot determine assembler addressing style" "$LINENO" 5
  52882. fi
  52883. rm -f conftest*
  52884. @@ -30835,17 +26938,17 @@
  52885. fi
  52886. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_addressing" >&5
  52887. -echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6; }
  52888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
  52889. +$as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
  52890. echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
  52891. -{ echo "$as_me:$LINENO: checking assembler shortest branches" >&5
  52892. -echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6; }
  52893. -if test "${gmp_cv_asm_m68k_branches+set}" = set; then
  52894. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52895. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
  52896. +$as_echo_n "checking assembler shortest branches... " >&6; }
  52897. +if test "${gmp_cv_asm_m68k_branches+set}" = set; then :
  52898. + $as_echo_n "(cached) " >&6
  52899. else
  52900. for i in jra jbra bra; do
  52901. cat >conftest.s <<EOF
  52902. @@ -30854,11 +26957,11 @@
  52903. $i foo
  52904. EOF
  52905. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52906. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52907. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52908. (eval $gmp_assemble) 2>&5
  52909. ac_status=$?
  52910. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52911. - (exit $ac_status); }; then
  52912. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52913. + test $ac_status = 0; }; then
  52914. cat conftest.out >&5
  52915. gmp_cv_asm_m68k_branches=$i
  52916. rm -f conftest*
  52917. @@ -30873,14 +26976,12 @@
  52918. done
  52919. if test -z "$gmp_cv_asm_m68k_branches"; then
  52920. - { { echo "$as_me:$LINENO: error: cannot determine assembler branching style" >&5
  52921. -echo "$as_me: error: cannot determine assembler branching style" >&2;}
  52922. - { (exit 1); exit 1; }; }
  52923. + as_fn_error "cannot determine assembler branching style" "$LINENO" 5
  52924. fi
  52925. fi
  52926. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_branches" >&5
  52927. -echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6; }
  52928. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
  52929. +$as_echo "$gmp_cv_asm_m68k_branches" >&6; }
  52930. echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
  52931. @@ -30888,10 +26989,10 @@
  52932. ;;
  52933. powerpc*-*-* | power[3-9]-*-*)
  52934. -{ echo "$as_me:$LINENO: checking whether compiler output is PIC by default" >&5
  52935. -echo $ECHO_N "checking whether compiler output is PIC by default... $ECHO_C" >&6; }
  52936. -if test "${gmp_cv_asm_powerpc_pic+set}" = set; then
  52937. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52938. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
  52939. +$as_echo_n "checking whether compiler output is PIC by default... " >&6; }
  52940. +if test "${gmp_cv_asm_powerpc_pic+set}" = set; then :
  52941. + $as_echo_n "(cached) " >&6
  52942. else
  52943. gmp_cv_asm_powerpc_pic=yes
  52944. cat >conftest.c <<EOF
  52945. @@ -30901,11 +27002,11 @@
  52946. echo "Test program:" >&5
  52947. cat conftest.c >&5
  52948. gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
  52949. -if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  52950. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  52951. (eval $gmp_compile) 2>&5
  52952. ac_status=$?
  52953. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52954. - (exit $ac_status); }; then
  52955. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52956. + test $ac_status = 0; }; then
  52957. echo "Compiler output:" >&5
  52958. cat conftest.s >&5
  52959. if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
  52960. @@ -30918,28 +27019,28 @@
  52961. rm -f conftest*
  52962. fi
  52963. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_pic" >&5
  52964. -echo "${ECHO_T}$gmp_cv_asm_powerpc_pic" >&6; }
  52965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
  52966. +$as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
  52967. echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
  52968. -{ echo "$as_me:$LINENO: checking if the assembler needs r on registers" >&5
  52969. -echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6; }
  52970. -if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
  52971. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
  52973. +$as_echo_n "checking if the assembler needs r on registers... " >&6; }
  52974. +if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then :
  52975. + $as_echo_n "(cached) " >&6
  52976. else
  52977. cat >conftest.s <<EOF
  52978. $gmp_cv_asm_text
  52979. mtctr 6
  52980. EOF
  52981. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52982. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52983. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52984. (eval $gmp_assemble) 2>&5
  52985. ac_status=$?
  52986. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52987. - (exit $ac_status); }; then
  52988. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  52989. + test $ac_status = 0; }; then
  52990. cat conftest.out >&5
  52991. gmp_cv_asm_powerpc_r_registers=no
  52992. else
  52993. @@ -30951,20 +27052,18 @@
  52994. mtctr r6
  52995. EOF
  52996. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  52997. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  52998. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  52999. (eval $gmp_assemble) 2>&5
  53000. ac_status=$?
  53001. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53002. - (exit $ac_status); }; then
  53003. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53004. + test $ac_status = 0; }; then
  53005. cat conftest.out >&5
  53006. gmp_cv_asm_powerpc_r_registers=yes
  53007. else
  53008. cat conftest.out >&5
  53009. echo "configure: failed program was:" >&5
  53010. cat conftest.s >&5
  53011. - { { echo "$as_me:$LINENO: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
  53012. -echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
  53013. - { (exit 1); exit 1; }; }
  53014. + as_fn_error "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
  53015. fi
  53016. rm -f conftest*
  53017. @@ -30972,8 +27071,8 @@
  53018. rm -f conftest*
  53019. fi
  53020. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_r_registers" >&5
  53021. -echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6; }
  53022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
  53023. +$as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
  53024. echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
  53025. @@ -31030,10 +27129,10 @@
  53026. case $ABI in
  53027. 64)
  53028. -{ echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
  53029. -echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6; }
  53030. -if test "${gmp_cv_asm_sparc_register+set}" = set; then
  53031. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
  53033. +$as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
  53034. +if test "${gmp_cv_asm_sparc_register+set}" = set; then :
  53035. + $as_echo_n "(cached) " >&6
  53036. else
  53037. cat >conftest.s <<EOF
  53038. $gmp_cv_asm_text
  53039. @@ -31041,11 +27140,11 @@
  53040. EOF
  53041. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  53042. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  53043. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  53044. (eval $gmp_assemble) 2>&5
  53045. ac_status=$?
  53046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53047. - (exit $ac_status); }; then
  53048. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53049. + test $ac_status = 0; }; then
  53050. cat conftest.out >&5
  53051. gmp_cv_asm_sparc_register=yes
  53052. else
  53053. @@ -31057,8 +27156,8 @@
  53054. rm -f conftest*
  53055. fi
  53056. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_sparc_register" >&5
  53057. -echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6; }
  53058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
  53059. +$as_echo "$gmp_cv_asm_sparc_register" >&6; }
  53060. echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
  53061. @@ -31069,10 +27168,10 @@
  53062. ;;
  53063. i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
  53064. -{ echo "$as_me:$LINENO: checking if the .align directive accepts an 0x90 fill in .text" >&5
  53065. -echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6; }
  53066. -if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
  53067. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53068. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
  53069. +$as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
  53070. +if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then :
  53071. + $as_echo_n "(cached) " >&6
  53072. else
  53073. cat >conftest.s <<EOF
  53074. $gmp_cv_asm_text
  53075. @@ -31081,11 +27180,11 @@
  53076. .align 4, 0x90
  53077. EOF
  53078. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  53079. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  53080. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  53081. (eval $gmp_assemble) 2>&5
  53082. ac_status=$?
  53083. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53084. - (exit $ac_status); }; then
  53085. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53086. + test $ac_status = 0; }; then
  53087. cat conftest.out >&5
  53088. if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
  53089. echo "Supressing this warning by omitting 0x90" 1>&5
  53090. @@ -31102,8 +27201,8 @@
  53091. rm -f conftest*
  53092. fi
  53093. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_align_fill_0x90" >&5
  53094. -echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6; }
  53095. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
  53096. +$as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
  53097. echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
  53098. @@ -31114,19 +27213,17 @@
  53099. echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
  53100. - cat >>confdefs.h <<\_ACEOF
  53101. -#define HAVE_HOST_CPU_FAMILY_x86 1
  53102. -_ACEOF
  53103. + $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
  53104. -{ echo "$as_me:$LINENO: checking for assembler COFF type directives" >&5
  53105. -echo $ECHO_N "checking for assembler COFF type directives... $ECHO_C" >&6; }
  53106. -if test "${gmp_cv_asm_x86_coff_type+set}" = set; then
  53107. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
  53109. +$as_echo_n "checking for assembler COFF type directives... " >&6; }
  53110. +if test "${gmp_cv_asm_x86_coff_type+set}" = set; then :
  53111. + $as_echo_n "(cached) " >&6
  53112. else
  53113. cat >conftest.s <<EOF
  53114. $gmp_cv_asm_text
  53115. @@ -31139,11 +27236,11 @@
  53116. EOF
  53117. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  53118. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  53119. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  53120. (eval $gmp_assemble) 2>&5
  53121. ac_status=$?
  53122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53123. - (exit $ac_status); }; then
  53124. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53125. + test $ac_status = 0; }; then
  53126. cat conftest.out >&5
  53127. gmp_cv_asm_x86_coff_type=yes
  53128. else
  53129. @@ -31156,8 +27253,8 @@
  53130. fi
  53131. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_coff_type" >&5
  53132. -echo "${ECHO_T}$gmp_cv_asm_x86_coff_type" >&6; }
  53133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
  53134. +$as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
  53135. echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
  53136. @@ -31166,10 +27263,11 @@
  53137. -{ echo "$as_me:$LINENO: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
  53138. -echo $ECHO_N "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... $ECHO_C" >&6; }
  53139. -if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then
  53140. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53141. +
  53142. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
  53143. +$as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
  53144. +if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then :
  53145. + $as_echo_n "(cached) " >&6
  53146. else
  53147. gmp_cv_asm_x86_got_underscore="not applicable"
  53148. if test $gmp_cv_asm_underscore = yes; then
  53149. @@ -31185,11 +27283,11 @@
  53150. addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
  53151. EOF
  53152. gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
  53153. - if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
  53154. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  53155. (eval $gmp_compile) 2>&5
  53156. ac_status=$?
  53157. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53158. - (exit $ac_status); }; then
  53159. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53160. + test $ac_status = 0; }; then
  53161. if test "$tmp_underscore" = "_"; then
  53162. gmp_cv_asm_x86_got_underscore=yes
  53163. else
  53164. @@ -31201,8 +27299,8 @@
  53165. rm -f conftest* a.out b.out a.exe a_out.exe
  53166. fi
  53167. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_got_underscore" >&5
  53168. -echo "${ECHO_T}$gmp_cv_asm_x86_got_underscore" >&6; }
  53169. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
  53170. +$as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
  53171. if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
  53172. echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
  53173. @@ -31214,21 +27312,21 @@
  53174. fi
  53175. -{ echo "$as_me:$LINENO: checking if the assembler takes cl with shldl" >&5
  53176. -echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6; }
  53177. -if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
  53178. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
  53180. +$as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
  53181. +if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then :
  53182. + $as_echo_n "(cached) " >&6
  53183. else
  53184. cat >conftest.s <<EOF
  53185. $gmp_cv_asm_text
  53186. shldl %cl, %eax, %ebx
  53187. EOF
  53188. gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
  53189. -if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
  53190. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
  53191. (eval $gmp_assemble) 2>&5
  53192. ac_status=$?
  53193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53194. - (exit $ac_status); }; then
  53195. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53196. + test $ac_status = 0; }; then
  53197. cat conftest.out >&5
  53198. gmp_cv_asm_x86_shldl_cl=yes
  53199. else
  53200. @@ -31241,34 +27339,62 @@
  53201. fi
  53202. -{ echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_shldl_cl" >&5
  53203. -echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6; }
  53204. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
  53205. +$as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
  53206. if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
  53207. -echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
  53208. +echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
  53209. +
  53210. +else
  53211. +
  53212. +echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
  53213. +
  53214. +fi
  53215. +
  53216. + case $enable_profiling in
  53217. + prof | gprof) # Check whether --enable-shared was given.
  53218. +if test "${enable_shared+set}" = set; then :
  53219. + enableval=$enable_shared; p=${PACKAGE-default}
  53220. + case $enableval in
  53221. + yes) enable_shared=yes ;;
  53222. + no) enable_shared=no ;;
  53223. + *)
  53224. + enable_shared=no
  53225. + # Look at the argument we got. We use all the common list separators.
  53226. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  53227. + for pkg in $enableval; do
  53228. + IFS="$lt_save_ifs"
  53229. + if test "X$pkg" = "X$p"; then
  53230. + enable_shared=yes
  53231. + fi
  53232. + done
  53233. + IFS="$lt_save_ifs"
  53234. + ;;
  53235. + esac
  53236. +else
  53237. + enable_shared=yes
  53238. +fi
  53239. +
  53240. +
  53241. +
  53242. -else
  53243. -echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
  53244. -fi
  53245. - case $enable_profiling in
  53246. - prof | gprof)
  53247. -{ echo "$as_me:$LINENO: checking how to call x86 mcount" >&5
  53248. -echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6; }
  53249. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
  53250. +$as_echo_n "checking how to call x86 mcount... " >&6; }
  53251. cat >conftest.c <<EOF
  53252. foo(){bar();}
  53253. EOF
  53254. if test "$enable_static" = yes; then
  53255. gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
  53256. - if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
  53257. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
  53258. (eval $gmp_asmout_compile) 2>&5
  53259. ac_status=$?
  53260. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53261. - (exit $ac_status); }; then
  53262. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53263. + test $ac_status = 0; }; then
  53264. if grep '\.data' conftest.s >/dev/null; then
  53265. mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
  53266. else
  53267. @@ -31276,24 +27402,20 @@
  53268. fi
  53269. mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
  53270. if test -z "$mcount_nonpic_call"; then
  53271. - { { echo "$as_me:$LINENO: error: Cannot find mcount call for non-PIC" >&5
  53272. -echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
  53273. - { (exit 1); exit 1; }; }
  53274. + as_fn_error "Cannot find mcount call for non-PIC" "$LINENO" 5
  53275. fi
  53276. else
  53277. - { { echo "$as_me:$LINENO: error: Cannot compile test program for non-PIC" >&5
  53278. -echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
  53279. - { (exit 1); exit 1; }; }
  53280. + as_fn_error "Cannot compile test program for non-PIC" "$LINENO" 5
  53281. fi
  53282. fi
  53283. if test "$enable_shared" = yes; then
  53284. gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
  53285. - if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
  53286. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
  53287. (eval $gmp_asmout_compile) 2>&5
  53288. ac_status=$?
  53289. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53290. - (exit $ac_status); }; then
  53291. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53292. + test $ac_status = 0; }; then
  53293. if grep '\.data' conftest.s >/dev/null; then
  53294. case $lt_prog_compiler_pic in
  53295. *-DDLL_EXPORT*)
  53296. @@ -31309,14 +27431,10 @@
  53297. fi
  53298. mcount_pic_call=`grep 'call.*mcount' conftest.s`
  53299. if test -z "$mcount_pic_call"; then
  53300. - { { echo "$as_me:$LINENO: error: Cannot find mcount call for PIC" >&5
  53301. -echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
  53302. - { (exit 1); exit 1; }; }
  53303. + as_fn_error "Cannot find mcount call for PIC" "$LINENO" 5
  53304. fi
  53305. else
  53306. - { { echo "$as_me:$LINENO: error: Cannot compile test program for PIC" >&5
  53307. -echo "$as_me: error: Cannot compile test program for PIC" >&2;}
  53308. - { (exit 1); exit 1; }; }
  53309. + as_fn_error "Cannot compile test program for PIC" "$LINENO" 5
  53310. fi
  53311. fi
  53312. @@ -31334,8 +27452,8 @@
  53313. rm -f conftest.*
  53314. -{ echo "$as_me:$LINENO: result: determined" >&5
  53315. -echo "${ECHO_T}determined" >&6; }
  53316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
  53317. +$as_echo "determined" >&6; }
  53318. ;;
  53319. esac
  53320. case $host in
  53321. @@ -31381,9 +27499,7 @@
  53322. fi
  53323. done
  53324. if test -z "$gmp_mparam_source"; then
  53325. - { { echo "$as_me:$LINENO: error: no version of gmp-mparam.h found in path: $path" >&5
  53326. -echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
  53327. - { (exit 1); exit 1; }; }
  53328. + as_fn_error "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
  53329. fi
  53330. # For a helpful message from tune/tuneup.c
  53331. @@ -31417,4128 +27533,3604 @@
  53332. # Sizes of some types, needed at preprocessing time.
  53333. #
  53334. -# FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
  53335. -# be slightly rash, but it's true everwhere we know of and ought to be true
  53336. -# of any sensible system. In a generic C build, grepping LONG_BIT out of
  53337. -# <limits.h> might be an alternative, for maximum portability.
  53338. +# FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
  53339. +# be slightly rash, but it's true everwhere we know of and ought to be true
  53340. +# of any sensible system. In a generic C build, grepping LONG_BIT out of
  53341. +# <limits.h> might be an alternative, for maximum portability.
  53342. +#
  53343. +# The cast to long int works around a bug in the HP C Compiler
  53344. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  53345. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  53346. +# This bug is HP SR number 8606223364.
  53347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  53348. +$as_echo_n "checking size of unsigned short... " >&6; }
  53349. +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
  53350. + $as_echo_n "(cached) " >&6
  53351. +else
  53352. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  53353. +
  53354. +else
  53355. + if test "$ac_cv_type_unsigned_short" = yes; then
  53356. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  53357. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  53358. +{ as_fn_set_status 77
  53359. +as_fn_error "cannot compute sizeof (unsigned short)
  53360. +See \`config.log' for more details." "$LINENO" 5; }; }
  53361. + else
  53362. + ac_cv_sizeof_unsigned_short=0
  53363. + fi
  53364. +fi
  53365. +
  53366. +fi
  53367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  53368. +$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  53369. +
  53370. +
  53371. +
  53372. +cat >>confdefs.h <<_ACEOF
  53373. +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  53374. +_ACEOF
  53375. +
  53376. +
  53377. +# The cast to long int works around a bug in the HP C Compiler
  53378. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  53379. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  53380. +# This bug is HP SR number 8606223364.
  53381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
  53382. +$as_echo_n "checking size of unsigned... " >&6; }
  53383. +if test "${ac_cv_sizeof_unsigned+set}" = set; then :
  53384. + $as_echo_n "(cached) " >&6
  53385. +else
  53386. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
  53387. +
  53388. +else
  53389. + if test "$ac_cv_type_unsigned" = yes; then
  53390. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  53391. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  53392. +{ as_fn_set_status 77
  53393. +as_fn_error "cannot compute sizeof (unsigned)
  53394. +See \`config.log' for more details." "$LINENO" 5; }; }
  53395. + else
  53396. + ac_cv_sizeof_unsigned=0
  53397. + fi
  53398. +fi
  53399. +
  53400. +fi
  53401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
  53402. +$as_echo "$ac_cv_sizeof_unsigned" >&6; }
  53403. +
  53404. +
  53405. +
  53406. +cat >>confdefs.h <<_ACEOF
  53407. +#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
  53408. +_ACEOF
  53409. +
  53410. +
  53411. +# The cast to long int works around a bug in the HP C Compiler
  53412. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  53413. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  53414. +# This bug is HP SR number 8606223364.
  53415. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  53416. +$as_echo_n "checking size of unsigned long... " >&6; }
  53417. +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  53418. + $as_echo_n "(cached) " >&6
  53419. +else
  53420. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  53421. +
  53422. +else
  53423. + if test "$ac_cv_type_unsigned_long" = yes; then
  53424. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  53425. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  53426. +{ as_fn_set_status 77
  53427. +as_fn_error "cannot compute sizeof (unsigned long)
  53428. +See \`config.log' for more details." "$LINENO" 5; }; }
  53429. + else
  53430. + ac_cv_sizeof_unsigned_long=0
  53431. + fi
  53432. +fi
  53433. +
  53434. +fi
  53435. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  53436. +$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  53437. +
  53438. +
  53439. +
  53440. +cat >>confdefs.h <<_ACEOF
  53441. +#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  53442. +_ACEOF
  53443. +
  53444. +
  53445. +# The cast to long int works around a bug in the HP C Compiler
  53446. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  53447. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  53448. +# This bug is HP SR number 8606223364.
  53449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
  53450. +$as_echo_n "checking size of mp_limb_t... " >&6; }
  53451. +if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
  53452. + $as_echo_n "(cached) " >&6
  53453. +else
  53454. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  53455. +#define GMP_NAIL_BITS $GMP_NAIL_BITS
  53456. +#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  53457. +#define GMP_LIMB_BITS 123
  53458. +$DEFN_LONG_LONG_LIMB
  53459. +#include \"$srcdir/gmp-h.in\"
  53460. +
  53461. +"; then :
  53462. +
  53463. +else
  53464. + if test "$ac_cv_type_mp_limb_t" = yes; then
  53465. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  53466. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  53467. +{ as_fn_set_status 77
  53468. +as_fn_error "cannot compute sizeof (mp_limb_t)
  53469. +See \`config.log' for more details." "$LINENO" 5; }; }
  53470. + else
  53471. + ac_cv_sizeof_mp_limb_t=0
  53472. + fi
  53473. +fi
  53474. +
  53475. +fi
  53476. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
  53477. +$as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
  53478. +
  53479. +
  53480. +
  53481. +cat >>confdefs.h <<_ACEOF
  53482. +#define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
  53483. +_ACEOF
  53484. +
  53485. +
  53486. +if test "$ac_cv_sizeof_mp_limb_t" = 0; then
  53487. + as_fn_error "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
  53488. +fi
  53489. +BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
  53490. +
  53491. +
  53492. +echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
  53493. +
  53494. +
  53495. +# Check compiler limb size matches gmp-mparam.h
  53496. +#
  53497. +# FIXME: Some of the cycle counter objects in the tune directory depend on
  53498. +# the size of ulong, it'd be possible to check that here, though a mismatch
  53499. +# probably wouldn't want to be fatal, none of the libgmp assembler code
  53500. +# depends on ulong.
  53501. +#
  53502. +mparam_bits=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
  53503. +if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
  53504. + if test "$test_CFLAGS" = set; then
  53505. + as_fn_error "Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  53506. +in this configuration expects $mparam_bits bits.
  53507. +You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
  53508. +intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
  53509. + else
  53510. + as_fn_error "Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  53511. +in this configuration expects $mparam_bits bits." "$LINENO" 5
  53512. + fi
  53513. +fi
  53514. +
  53515. +
  53516. +echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
  53517. +
  53518. +
  53519. +echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
  53520. +
  53521. +
  53522. +echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
  53523. +
  53524. +
  53525. +
  53526. +# Exclude the mpn random functions from mpbsd since that would drag in the
  53527. +# top-level rand things, all of which are unnecessary for libmp. There's
  53528. +# other unnecessary objects too actually, if we could be bothered figuring
  53529. +# out exactly which they are.
  53530. +#
  53531. +mpn_objs_in_libmp=
  53532. +for i in $mpn_objs_in_libgmp; do
  53533. + case $i in
  53534. + *random*) ;;
  53535. + *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
  53536. + esac
  53537. +done
  53538. +
  53539. +
  53540. +
  53541. +
  53542. +
  53543. +
  53544. +
  53545. +# A recompiled sqr_basecase for use in the tune program, if necessary.
  53546. +TUNE_SQR_OBJ=
  53547. +test -d tune || mkdir tune
  53548. +case $sqr_basecase_source in
  53549. + *.asm)
  53550. + sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
  53551. + if test -n "$sqr_max"; then
  53552. + TUNE_SQR_OBJ=sqr_asm.o
  53553. +
  53554. +cat >>confdefs.h <<_ACEOF
  53555. +#define TUNE_SQR_KARATSUBA_MAX $sqr_max
  53556. +_ACEOF
  53557. +
  53558. + fi
  53559. + cat >tune/sqr_basecase.c <<EOF
  53560. +/* not sure that an empty file can compile, so put in a dummy */
  53561. +int sqr_basecase_dummy;
  53562. +EOF
  53563. + ;;
  53564. + *.c)
  53565. + TUNE_SQR_OBJ=
  53566. + $as_echo "#define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC" >>confdefs.h
  53567. +
  53568. + cat >tune/sqr_basecase.c <<EOF
  53569. +#define TUNE_PROGRAM_BUILD 1
  53570. +#define TUNE_PROGRAM_BUILD_SQR 1
  53571. +#include "mpn/sqr_basecase.c"
  53572. +EOF
  53573. + ;;
  53574. +esac
  53575. +
  53576. +
  53577. +
  53578. +# Configs for demos/pexpr.c.
  53579. +#
  53580. +ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
  53581. +
  53582. +case $ac_cv_func_clock in
  53583. +yes) HAVE_CLOCK_01=1
  53584. + ;;
  53585. +no) HAVE_CLOCK_01=0 ;;
  53586. +esac
  53587. +
  53588. +case $ac_cv_func_cputime in
  53589. +yes) HAVE_CPUTIME_01=1
  53590. + ;;
  53591. +no) HAVE_CPUTIME_01=0 ;;
  53592. +esac
  53593. +
  53594. +case $ac_cv_func_getrusage in
  53595. +yes) HAVE_GETRUSAGE_01=1
  53596. + ;;
  53597. +no) HAVE_GETRUSAGE_01=0 ;;
  53598. +esac
  53599. +
  53600. +case $ac_cv_func_gettimeofday in
  53601. +yes) HAVE_GETTIMEOFDAY_01=1
  53602. + ;;
  53603. +no) HAVE_GETTIMEOFDAY_01=0 ;;
  53604. +esac
  53605. +
  53606. +case $ac_cv_func_sigaction in
  53607. +yes) HAVE_SIGACTION_01=1
  53608. + ;;
  53609. +no) HAVE_SIGACTION_01=0 ;;
  53610. +esac
  53611. +
  53612. +case $ac_cv_func_sigaltstack in
  53613. +yes) HAVE_SIGALTSTACK_01=1
  53614. + ;;
  53615. +no) HAVE_SIGALTSTACK_01=0 ;;
  53616. +esac
  53617. +
  53618. +case $ac_cv_func_sigstack in
  53619. +yes) HAVE_SIGSTACK_01=1
  53620. + ;;
  53621. +no) HAVE_SIGSTACK_01=0 ;;
  53622. +esac
  53623. +
  53624. +
  53625. +case $ac_cv_header_sys_resource_h in
  53626. +yes) HAVE_SYS_RESOURCE_H_01=1
  53627. + ;;
  53628. +no) HAVE_SYS_RESOURCE_H_01=0 ;;
  53629. +esac
  53630. +
  53631. +
  53632. +ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
  53633. +"
  53634. +if test "x$ac_cv_type_stack_t" = x""yes; then :
  53635. +
  53636. +cat >>confdefs.h <<_ACEOF
  53637. +#define HAVE_STACK_T 1
  53638. +_ACEOF
  53639. +
  53640. +HAVE_STACK_T_01=1
  53641. +else
  53642. + HAVE_STACK_T_01=0
  53643. +fi
  53644. +
  53645. +
  53646. +
  53647. +# Configs for demos/calc directory
  53648. +#
  53649. +# AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
  53650. +# AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
  53651. +# directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
  53652. +# which would look very strange.
  53653. +#
  53654. +# -lcurses is required by libreadline. On a typical SVR4 style system this
  53655. +# normally doesn't have to be given explicitly, since libreadline.so will
  53656. +# have a NEEDED record for it. But if someone for some reason is using only
  53657. +# a static libreadline.a then we must give -lcurses. Readline (as of
  53658. +# version 4.3) doesn't use libtool, so we can't rely on a .la to cover
  53659. +# necessary dependencies.
  53660. +#
  53661. +# On a couple of systems we've seen libreadline available, but the headers
  53662. +# not in the default include path, so check for readline/readline.h. We've
  53663. +# also seen readline/history.h missing, not sure if that's just a broken
  53664. +# install or a very old version, but check that too.
  53665. #
  53666. -{ echo "$as_me:$LINENO: checking for unsigned short" >&5
  53667. -echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
  53668. -if test "${ac_cv_type_unsigned_short+set}" = set; then
  53669. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53670. +ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
  53671. +
  53672. +LIBCURSES=
  53673. +if test $with_readline != no; then
  53674. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
  53675. +$as_echo_n "checking for tputs in -lncurses... " >&6; }
  53676. +if test "${ac_cv_lib_ncurses_tputs+set}" = set; then :
  53677. + $as_echo_n "(cached) " >&6
  53678. else
  53679. - cat >conftest.$ac_ext <<_ACEOF
  53680. -/* confdefs.h. */
  53681. -_ACEOF
  53682. -cat confdefs.h >>conftest.$ac_ext
  53683. -cat >>conftest.$ac_ext <<_ACEOF
  53684. + ac_check_lib_save_LIBS=$LIBS
  53685. +LIBS="-lncurses $LIBS"
  53686. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53687. /* end confdefs.h. */
  53688. -$ac_includes_default
  53689. -typedef unsigned short ac__type_new_;
  53690. +
  53691. +/* Override any GCC internal prototype to avoid an error.
  53692. + Use char because int might match the return type of a GCC
  53693. + builtin and then its argument prototype would still apply. */
  53694. +#ifdef __cplusplus
  53695. +extern "C"
  53696. +#endif
  53697. +char tputs ();
  53698. int
  53699. main ()
  53700. {
  53701. -if ((ac__type_new_ *) 0)
  53702. - return 0;
  53703. -if (sizeof (ac__type_new_))
  53704. - return 0;
  53705. +return tputs ();
  53706. ;
  53707. return 0;
  53708. }
  53709. _ACEOF
  53710. -rm -f conftest.$ac_objext
  53711. -if { (ac_try="$ac_compile"
  53712. -case "(($ac_try" in
  53713. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  53714. - *) ac_try_echo=$ac_try;;
  53715. -esac
  53716. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  53717. - (eval "$ac_compile") 2>conftest.er1
  53718. - ac_status=$?
  53719. - grep -v '^ *+' conftest.er1 >conftest.err
  53720. - rm -f conftest.er1
  53721. - cat conftest.err >&5
  53722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53723. - (exit $ac_status); } && {
  53724. - test -z "$ac_c_werror_flag" ||
  53725. - test ! -s conftest.err
  53726. - } && test -s conftest.$ac_objext; then
  53727. - ac_cv_type_unsigned_short=yes
  53728. +if ac_fn_c_try_link "$LINENO"; then :
  53729. + ac_cv_lib_ncurses_tputs=yes
  53730. else
  53731. - echo "$as_me: failed program was:" >&5
  53732. -sed 's/^/| /' conftest.$ac_ext >&5
  53733. -
  53734. - ac_cv_type_unsigned_short=no
  53735. + ac_cv_lib_ncurses_tputs=no
  53736. fi
  53737. -
  53738. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53739. +rm -f core conftest.err conftest.$ac_objext \
  53740. + conftest$ac_exeext conftest.$ac_ext
  53741. +LIBS=$ac_check_lib_save_LIBS
  53742. fi
  53743. -{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
  53744. -echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
  53745. -
  53746. -# The cast to long int works around a bug in the HP C Compiler
  53747. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  53748. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  53749. -# This bug is HP SR number 8606223364.
  53750. -{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
  53751. -echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
  53752. -if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  53753. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
  53755. +$as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
  53756. +if test "x$ac_cv_lib_ncurses_tputs" = x""yes; then :
  53757. + LIBCURSES=-lncurses
  53758. else
  53759. - if test "$cross_compiling" = yes; then
  53760. - # Depending upon the size, compute the lo and hi bounds.
  53761. -cat >conftest.$ac_ext <<_ACEOF
  53762. -/* confdefs.h. */
  53763. -_ACEOF
  53764. -cat confdefs.h >>conftest.$ac_ext
  53765. -cat >>conftest.$ac_ext <<_ACEOF
  53766. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
  53767. +$as_echo_n "checking for tputs in -lcurses... " >&6; }
  53768. +if test "${ac_cv_lib_curses_tputs+set}" = set; then :
  53769. + $as_echo_n "(cached) " >&6
  53770. +else
  53771. + ac_check_lib_save_LIBS=$LIBS
  53772. +LIBS="-lcurses $LIBS"
  53773. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53774. /* end confdefs.h. */
  53775. -$ac_includes_default
  53776. - typedef unsigned short ac__type_sizeof_;
  53777. +
  53778. +/* Override any GCC internal prototype to avoid an error.
  53779. + Use char because int might match the return type of a GCC
  53780. + builtin and then its argument prototype would still apply. */
  53781. +#ifdef __cplusplus
  53782. +extern "C"
  53783. +#endif
  53784. +char tputs ();
  53785. int
  53786. main ()
  53787. {
  53788. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  53789. -test_array [0] = 0
  53790. -
  53791. +return tputs ();
  53792. ;
  53793. return 0;
  53794. }
  53795. _ACEOF
  53796. -rm -f conftest.$ac_objext
  53797. -if { (ac_try="$ac_compile"
  53798. -case "(($ac_try" in
  53799. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  53800. - *) ac_try_echo=$ac_try;;
  53801. -esac
  53802. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  53803. - (eval "$ac_compile") 2>conftest.er1
  53804. - ac_status=$?
  53805. - grep -v '^ *+' conftest.er1 >conftest.err
  53806. - rm -f conftest.er1
  53807. - cat conftest.err >&5
  53808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53809. - (exit $ac_status); } && {
  53810. - test -z "$ac_c_werror_flag" ||
  53811. - test ! -s conftest.err
  53812. - } && test -s conftest.$ac_objext; then
  53813. - ac_lo=0 ac_mid=0
  53814. - while :; do
  53815. - cat >conftest.$ac_ext <<_ACEOF
  53816. -/* confdefs.h. */
  53817. -_ACEOF
  53818. -cat confdefs.h >>conftest.$ac_ext
  53819. -cat >>conftest.$ac_ext <<_ACEOF
  53820. +if ac_fn_c_try_link "$LINENO"; then :
  53821. + ac_cv_lib_curses_tputs=yes
  53822. +else
  53823. + ac_cv_lib_curses_tputs=no
  53824. +fi
  53825. +rm -f core conftest.err conftest.$ac_objext \
  53826. + conftest$ac_exeext conftest.$ac_ext
  53827. +LIBS=$ac_check_lib_save_LIBS
  53828. +fi
  53829. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
  53830. +$as_echo "$ac_cv_lib_curses_tputs" >&6; }
  53831. +if test "x$ac_cv_lib_curses_tputs" = x""yes; then :
  53832. + LIBCURSES=-lcurses
  53833. +fi
  53834. +
  53835. +fi
  53836. +
  53837. +fi
  53838. +
  53839. +use_readline=$with_readline
  53840. +if test $with_readline = detect; then
  53841. + use_readline=no
  53842. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  53843. +$as_echo_n "checking for readline in -lreadline... " >&6; }
  53844. +if test "${ac_cv_lib_readline_readline+set}" = set; then :
  53845. + $as_echo_n "(cached) " >&6
  53846. +else
  53847. + ac_check_lib_save_LIBS=$LIBS
  53848. +LIBS="-lreadline $LIBCURSES $LIBS"
  53849. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53850. /* end confdefs.h. */
  53851. -$ac_includes_default
  53852. - typedef unsigned short ac__type_sizeof_;
  53853. +
  53854. +/* Override any GCC internal prototype to avoid an error.
  53855. + Use char because int might match the return type of a GCC
  53856. + builtin and then its argument prototype would still apply. */
  53857. +#ifdef __cplusplus
  53858. +extern "C"
  53859. +#endif
  53860. +char readline ();
  53861. int
  53862. main ()
  53863. {
  53864. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  53865. -test_array [0] = 0
  53866. -
  53867. +return readline ();
  53868. ;
  53869. return 0;
  53870. }
  53871. _ACEOF
  53872. -rm -f conftest.$ac_objext
  53873. -if { (ac_try="$ac_compile"
  53874. -case "(($ac_try" in
  53875. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  53876. - *) ac_try_echo=$ac_try;;
  53877. -esac
  53878. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  53879. - (eval "$ac_compile") 2>conftest.er1
  53880. - ac_status=$?
  53881. - grep -v '^ *+' conftest.er1 >conftest.err
  53882. - rm -f conftest.er1
  53883. - cat conftest.err >&5
  53884. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53885. - (exit $ac_status); } && {
  53886. - test -z "$ac_c_werror_flag" ||
  53887. - test ! -s conftest.err
  53888. - } && test -s conftest.$ac_objext; then
  53889. - ac_hi=$ac_mid; break
  53890. +if ac_fn_c_try_link "$LINENO"; then :
  53891. + ac_cv_lib_readline_readline=yes
  53892. else
  53893. - echo "$as_me: failed program was:" >&5
  53894. -sed 's/^/| /' conftest.$ac_ext >&5
  53895. + ac_cv_lib_readline_readline=no
  53896. +fi
  53897. +rm -f core conftest.err conftest.$ac_objext \
  53898. + conftest$ac_exeext conftest.$ac_ext
  53899. +LIBS=$ac_check_lib_save_LIBS
  53900. +fi
  53901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  53902. +$as_echo "$ac_cv_lib_readline_readline" >&6; }
  53903. +if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  53904. + ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  53905. +if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
  53906. + ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  53907. +if test "x$ac_cv_header_readline_history_h" = x""yes; then :
  53908. + use_readline=yes
  53909. +fi
  53910. +
  53911. - ac_lo=`expr $ac_mid + 1`
  53912. - if test $ac_lo -le $ac_mid; then
  53913. - ac_lo= ac_hi=
  53914. - break
  53915. - fi
  53916. - ac_mid=`expr 2 '*' $ac_mid + 1`
  53917. fi
  53918. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53919. +
  53920. +fi
  53921. +
  53922. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
  53923. +$as_echo_n "checking readline detected... " >&6; }
  53924. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
  53925. +$as_echo "$use_readline" >&6; }
  53926. +fi
  53927. +if test $use_readline = yes; then
  53928. + WITH_READLINE_01=1
  53929. +
  53930. + LIBREADLINE=-lreadline
  53931. +
  53932. +else
  53933. + WITH_READLINE_01=0
  53934. +fi
  53935. +for ac_prog in 'bison -y' byacc
  53936. +do
  53937. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  53938. +set dummy $ac_prog; ac_word=$2
  53939. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  53940. +$as_echo_n "checking for $ac_word... " >&6; }
  53941. +if test "${ac_cv_prog_YACC+set}" = set; then :
  53942. + $as_echo_n "(cached) " >&6
  53943. +else
  53944. + if test -n "$YACC"; then
  53945. + ac_cv_prog_YACC="$YACC" # Let the user override the test.
  53946. +else
  53947. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  53948. +for as_dir in $PATH
  53949. +do
  53950. + IFS=$as_save_IFS
  53951. + test -z "$as_dir" && as_dir=.
  53952. + for ac_exec_ext in '' $ac_executable_extensions; do
  53953. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  53954. + ac_cv_prog_YACC="$ac_prog"
  53955. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  53956. + break 2
  53957. + fi
  53958. +done
  53959. done
  53960. +IFS=$as_save_IFS
  53961. +
  53962. +fi
  53963. +fi
  53964. +YACC=$ac_cv_prog_YACC
  53965. +if test -n "$YACC"; then
  53966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  53967. +$as_echo "$YACC" >&6; }
  53968. else
  53969. - echo "$as_me: failed program was:" >&5
  53970. -sed 's/^/| /' conftest.$ac_ext >&5
  53971. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  53972. +$as_echo "no" >&6; }
  53973. +fi
  53974. - cat >conftest.$ac_ext <<_ACEOF
  53975. -/* confdefs.h. */
  53976. -_ACEOF
  53977. -cat confdefs.h >>conftest.$ac_ext
  53978. -cat >>conftest.$ac_ext <<_ACEOF
  53979. -/* end confdefs.h. */
  53980. -$ac_includes_default
  53981. - typedef unsigned short ac__type_sizeof_;
  53982. -int
  53983. -main ()
  53984. -{
  53985. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  53986. -test_array [0] = 0
  53987. - ;
  53988. - return 0;
  53989. -}
  53990. -_ACEOF
  53991. -rm -f conftest.$ac_objext
  53992. -if { (ac_try="$ac_compile"
  53993. -case "(($ac_try" in
  53994. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  53995. - *) ac_try_echo=$ac_try;;
  53996. -esac
  53997. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  53998. - (eval "$ac_compile") 2>conftest.er1
  53999. - ac_status=$?
  54000. - grep -v '^ *+' conftest.er1 >conftest.err
  54001. - rm -f conftest.er1
  54002. - cat conftest.err >&5
  54003. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54004. - (exit $ac_status); } && {
  54005. - test -z "$ac_c_werror_flag" ||
  54006. - test ! -s conftest.err
  54007. - } && test -s conftest.$ac_objext; then
  54008. - ac_hi=-1 ac_mid=-1
  54009. - while :; do
  54010. - cat >conftest.$ac_ext <<_ACEOF
  54011. -/* confdefs.h. */
  54012. -_ACEOF
  54013. -cat confdefs.h >>conftest.$ac_ext
  54014. -cat >>conftest.$ac_ext <<_ACEOF
  54015. -/* end confdefs.h. */
  54016. -$ac_includes_default
  54017. - typedef unsigned short ac__type_sizeof_;
  54018. -int
  54019. -main ()
  54020. -{
  54021. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  54022. -test_array [0] = 0
  54023. + test -n "$YACC" && break
  54024. +done
  54025. +test -n "$YACC" || YACC="yacc"
  54026. - ;
  54027. - return 0;
  54028. +for ac_prog in flex lex
  54029. +do
  54030. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  54031. +set dummy $ac_prog; ac_word=$2
  54032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  54033. +$as_echo_n "checking for $ac_word... " >&6; }
  54034. +if test "${ac_cv_prog_LEX+set}" = set; then :
  54035. + $as_echo_n "(cached) " >&6
  54036. +else
  54037. + if test -n "$LEX"; then
  54038. + ac_cv_prog_LEX="$LEX" # Let the user override the test.
  54039. +else
  54040. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  54041. +for as_dir in $PATH
  54042. +do
  54043. + IFS=$as_save_IFS
  54044. + test -z "$as_dir" && as_dir=.
  54045. + for ac_exec_ext in '' $ac_executable_extensions; do
  54046. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  54047. + ac_cv_prog_LEX="$ac_prog"
  54048. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  54049. + break 2
  54050. + fi
  54051. +done
  54052. + done
  54053. +IFS=$as_save_IFS
  54054. +
  54055. +fi
  54056. +fi
  54057. +LEX=$ac_cv_prog_LEX
  54058. +if test -n "$LEX"; then
  54059. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  54060. +$as_echo "$LEX" >&6; }
  54061. +else
  54062. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54063. +$as_echo "no" >&6; }
  54064. +fi
  54065. +
  54066. +
  54067. + test -n "$LEX" && break
  54068. +done
  54069. +test -n "$LEX" || LEX=":"
  54070. +
  54071. +if test "x$LEX" != "x:"; then
  54072. + cat >conftest.l <<_ACEOF
  54073. +%%
  54074. +a { ECHO; }
  54075. +b { REJECT; }
  54076. +c { yymore (); }
  54077. +d { yyless (1); }
  54078. +e { yyless (input () != 0); }
  54079. +f { unput (yytext[0]); }
  54080. +. { BEGIN INITIAL; }
  54081. +%%
  54082. +#ifdef YYTEXT_POINTER
  54083. +extern char *yytext;
  54084. +#endif
  54085. +int
  54086. +main (void)
  54087. +{
  54088. + return ! yylex () + ! yywrap ();
  54089. }
  54090. _ACEOF
  54091. -rm -f conftest.$ac_objext
  54092. -if { (ac_try="$ac_compile"
  54093. +{ { ac_try="$LEX conftest.l"
  54094. case "(($ac_try" in
  54095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54096. *) ac_try_echo=$ac_try;;
  54097. esac
  54098. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54099. - (eval "$ac_compile") 2>conftest.er1
  54100. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  54101. +$as_echo "$ac_try_echo"; } >&5
  54102. + (eval "$LEX conftest.l") 2>&5
  54103. ac_status=$?
  54104. - grep -v '^ *+' conftest.er1 >conftest.err
  54105. - rm -f conftest.er1
  54106. - cat conftest.err >&5
  54107. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54108. - (exit $ac_status); } && {
  54109. - test -z "$ac_c_werror_flag" ||
  54110. - test ! -s conftest.err
  54111. - } && test -s conftest.$ac_objext; then
  54112. - ac_lo=$ac_mid; break
  54113. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  54114. + test $ac_status = 0; }
  54115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  54116. +$as_echo_n "checking lex output file root... " >&6; }
  54117. +if test "${ac_cv_prog_lex_root+set}" = set; then :
  54118. + $as_echo_n "(cached) " >&6
  54119. else
  54120. - echo "$as_me: failed program was:" >&5
  54121. -sed 's/^/| /' conftest.$ac_ext >&5
  54122. - ac_hi=`expr '(' $ac_mid ')' - 1`
  54123. - if test $ac_mid -le $ac_hi; then
  54124. - ac_lo= ac_hi=
  54125. - break
  54126. - fi
  54127. - ac_mid=`expr 2 '*' $ac_mid`
  54128. +if test -f lex.yy.c; then
  54129. + ac_cv_prog_lex_root=lex.yy
  54130. +elif test -f lexyy.c; then
  54131. + ac_cv_prog_lex_root=lexyy
  54132. +else
  54133. + as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
  54134. +fi
  54135. fi
  54136. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  54137. +$as_echo "$ac_cv_prog_lex_root" >&6; }
  54138. +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  54139. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54140. - done
  54141. +if test -z "${LEXLIB+set}"; then
  54142. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  54143. +$as_echo_n "checking lex library... " >&6; }
  54144. +if test "${ac_cv_lib_lex+set}" = set; then :
  54145. + $as_echo_n "(cached) " >&6
  54146. else
  54147. - echo "$as_me: failed program was:" >&5
  54148. -sed 's/^/| /' conftest.$ac_ext >&5
  54149. - ac_lo= ac_hi=
  54150. + ac_save_LIBS=$LIBS
  54151. + ac_cv_lib_lex='none needed'
  54152. + for ac_lib in '' -lfl -ll; do
  54153. + LIBS="$ac_lib $ac_save_LIBS"
  54154. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54155. +/* end confdefs.h. */
  54156. +`cat $LEX_OUTPUT_ROOT.c`
  54157. +_ACEOF
  54158. +if ac_fn_c_try_link "$LINENO"; then :
  54159. + ac_cv_lib_lex=$ac_lib
  54160. fi
  54161. +rm -f core conftest.err conftest.$ac_objext \
  54162. + conftest$ac_exeext conftest.$ac_ext
  54163. + test "$ac_cv_lib_lex" != 'none needed' && break
  54164. + done
  54165. + LIBS=$ac_save_LIBS
  54166. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54167. +fi
  54168. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  54169. +$as_echo "$ac_cv_lib_lex" >&6; }
  54170. + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  54171. fi
  54172. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54173. -# Binary search between lo and hi bounds.
  54174. -while test "x$ac_lo" != "x$ac_hi"; do
  54175. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  54176. - cat >conftest.$ac_ext <<_ACEOF
  54177. -/* confdefs.h. */
  54178. -_ACEOF
  54179. -cat confdefs.h >>conftest.$ac_ext
  54180. -cat >>conftest.$ac_ext <<_ACEOF
  54181. -/* end confdefs.h. */
  54182. -$ac_includes_default
  54183. - typedef unsigned short ac__type_sizeof_;
  54184. -int
  54185. -main ()
  54186. -{
  54187. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  54188. -test_array [0] = 0
  54189. - ;
  54190. - return 0;
  54191. -}
  54192. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  54193. +$as_echo_n "checking whether yytext is a pointer... " >&6; }
  54194. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  54195. + $as_echo_n "(cached) " >&6
  54196. +else
  54197. + # POSIX says lex can declare yytext either as a pointer or an array; the
  54198. +# default is implementation-dependent. Figure out which it is, since
  54199. +# not all implementations provide the %pointer and %array declarations.
  54200. +ac_cv_prog_lex_yytext_pointer=no
  54201. +ac_save_LIBS=$LIBS
  54202. +LIBS="$LEXLIB $ac_save_LIBS"
  54203. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54204. +/* end confdefs.h. */
  54205. +#define YYTEXT_POINTER 1
  54206. +`cat $LEX_OUTPUT_ROOT.c`
  54207. _ACEOF
  54208. -rm -f conftest.$ac_objext
  54209. -if { (ac_try="$ac_compile"
  54210. -case "(($ac_try" in
  54211. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54212. - *) ac_try_echo=$ac_try;;
  54213. +if ac_fn_c_try_link "$LINENO"; then :
  54214. + ac_cv_prog_lex_yytext_pointer=yes
  54215. +fi
  54216. +rm -f core conftest.err conftest.$ac_objext \
  54217. + conftest$ac_exeext conftest.$ac_ext
  54218. +LIBS=$ac_save_LIBS
  54219. +
  54220. +fi
  54221. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  54222. +$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  54223. +if test $ac_cv_prog_lex_yytext_pointer = yes; then
  54224. +
  54225. +$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  54226. +
  54227. +fi
  54228. +rm -f conftest.l $LEX_OUTPUT_ROOT.c
  54229. +
  54230. +fi
  54231. +if test "$LEX" = :; then
  54232. + LEX=${am_missing_run}flex
  54233. +fi
  54234. +
  54235. +# Configs for demos/expr directory
  54236. +#
  54237. +# Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
  54238. +# AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
  54239. +# called. (Automake 1.8.4 doesn't, at least not when the only library is in
  54240. +# an EXTRA_LIBRARIES.)
  54241. +#
  54242. +if test -n "$ac_tool_prefix"; then
  54243. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  54244. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  54245. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  54246. +$as_echo_n "checking for $ac_word... " >&6; }
  54247. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  54248. + $as_echo_n "(cached) " >&6
  54249. +else
  54250. + if test -n "$RANLIB"; then
  54251. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  54252. +else
  54253. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  54254. +for as_dir in $PATH
  54255. +do
  54256. + IFS=$as_save_IFS
  54257. + test -z "$as_dir" && as_dir=.
  54258. + for ac_exec_ext in '' $ac_executable_extensions; do
  54259. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  54260. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  54261. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  54262. + break 2
  54263. + fi
  54264. +done
  54265. + done
  54266. +IFS=$as_save_IFS
  54267. +
  54268. +fi
  54269. +fi
  54270. +RANLIB=$ac_cv_prog_RANLIB
  54271. +if test -n "$RANLIB"; then
  54272. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  54273. +$as_echo "$RANLIB" >&6; }
  54274. +else
  54275. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54276. +$as_echo "no" >&6; }
  54277. +fi
  54278. +
  54279. +
  54280. +fi
  54281. +if test -z "$ac_cv_prog_RANLIB"; then
  54282. + ac_ct_RANLIB=$RANLIB
  54283. + # Extract the first word of "ranlib", so it can be a program name with args.
  54284. +set dummy ranlib; ac_word=$2
  54285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  54286. +$as_echo_n "checking for $ac_word... " >&6; }
  54287. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  54288. + $as_echo_n "(cached) " >&6
  54289. +else
  54290. + if test -n "$ac_ct_RANLIB"; then
  54291. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  54292. +else
  54293. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  54294. +for as_dir in $PATH
  54295. +do
  54296. + IFS=$as_save_IFS
  54297. + test -z "$as_dir" && as_dir=.
  54298. + for ac_exec_ext in '' $ac_executable_extensions; do
  54299. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  54300. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  54301. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  54302. + break 2
  54303. + fi
  54304. +done
  54305. + done
  54306. +IFS=$as_save_IFS
  54307. +
  54308. +fi
  54309. +fi
  54310. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  54311. +if test -n "$ac_ct_RANLIB"; then
  54312. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  54313. +$as_echo "$ac_ct_RANLIB" >&6; }
  54314. +else
  54315. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54316. +$as_echo "no" >&6; }
  54317. +fi
  54318. +
  54319. + if test "x$ac_ct_RANLIB" = x; then
  54320. + RANLIB=":"
  54321. + else
  54322. + case $cross_compiling:$ac_tool_warned in
  54323. +yes:)
  54324. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  54325. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  54326. +ac_tool_warned=yes ;;
  54327. esac
  54328. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54329. - (eval "$ac_compile") 2>conftest.er1
  54330. - ac_status=$?
  54331. - grep -v '^ *+' conftest.er1 >conftest.err
  54332. - rm -f conftest.er1
  54333. - cat conftest.err >&5
  54334. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54335. - (exit $ac_status); } && {
  54336. - test -z "$ac_c_werror_flag" ||
  54337. - test ! -s conftest.err
  54338. - } && test -s conftest.$ac_objext; then
  54339. - ac_hi=$ac_mid
  54340. + RANLIB=$ac_ct_RANLIB
  54341. + fi
  54342. else
  54343. - echo "$as_me: failed program was:" >&5
  54344. -sed 's/^/| /' conftest.$ac_ext >&5
  54345. + RANLIB="$ac_cv_prog_RANLIB"
  54346. +fi
  54347. +
  54348. +
  54349. +
  54350. +# Create config.m4.
  54351. +
  54352. +echo "creating $gmp_configm4"
  54353. +echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
  54354. +if test -f $gmp_tmpconfigm4; then
  54355. + echo "changequote(<,>)" >> $gmp_configm4
  54356. + echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
  54357. + cat $gmp_tmpconfigm4 >> $gmp_configm4
  54358. + echo ">)" >> $gmp_configm4
  54359. + echo "changequote(\`,')" >> $gmp_configm4
  54360. + rm $gmp_tmpconfigm4
  54361. +fi
  54362. +echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
  54363. +if test -f $gmp_tmpconfigm4i; then
  54364. + cat $gmp_tmpconfigm4i >> $gmp_configm4
  54365. + rm $gmp_tmpconfigm4i
  54366. +fi
  54367. +if test -f $gmp_tmpconfigm4p; then
  54368. + cat $gmp_tmpconfigm4p >> $gmp_configm4
  54369. + rm $gmp_tmpconfigm4p
  54370. +fi
  54371. +echo "')" >> $gmp_configm4
  54372. +echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
  54373. +
  54374. +
  54375. +# Create Makefiles
  54376. +# FIXME: Upcoming version of autoconf/automake may not like broken lines.
  54377. +# Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
  54378. - ac_lo=`expr '(' $ac_mid ')' + 1`
  54379. +ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
  54380. +
  54381. +cat >confcache <<\_ACEOF
  54382. +# This file is a shell script that caches the results of configure
  54383. +# tests run on this system so they can be shared between configure
  54384. +# scripts and configure runs, see configure's option --config-cache.
  54385. +# It is not useful on other systems. If it contains results you don't
  54386. +# want to keep, you may remove or edit it.
  54387. +#
  54388. +# config.status only pays attention to the cache file if you give it
  54389. +# the --recheck option to rerun configure.
  54390. +#
  54391. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  54392. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  54393. +# following values.
  54394. +
  54395. +_ACEOF
  54396. +
  54397. +# The following way of writing the cache mishandles newlines in values,
  54398. +# but we know of no workaround that is simple, portable, and efficient.
  54399. +# So, we kill variables containing newlines.
  54400. +# Ultrix sh set writes to stderr and can't be redirected directly,
  54401. +# and sets the high bit in the cache file unless we assign to the vars.
  54402. +(
  54403. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  54404. + eval ac_val=\$$ac_var
  54405. + case $ac_val in #(
  54406. + *${as_nl}*)
  54407. + case $ac_var in #(
  54408. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  54409. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  54410. + esac
  54411. + case $ac_var in #(
  54412. + _ | IFS | as_nl) ;; #(
  54413. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  54414. + *) { eval $ac_var=; unset $ac_var;} ;;
  54415. + esac ;;
  54416. + esac
  54417. + done
  54418. +
  54419. + (set) 2>&1 |
  54420. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  54421. + *${as_nl}ac_space=\ *)
  54422. + # `set' does not quote correctly, so add quotes: double-quote
  54423. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  54424. + sed -n \
  54425. + "s/'/'\\\\''/g;
  54426. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  54427. + ;; #(
  54428. + *)
  54429. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  54430. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  54431. + ;;
  54432. + esac |
  54433. + sort
  54434. +) |
  54435. + sed '
  54436. + /^ac_cv_env_/b end
  54437. + t clear
  54438. + :clear
  54439. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  54440. + t end
  54441. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  54442. + :end' >>confcache
  54443. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  54444. + if test -w "$cache_file"; then
  54445. + test "x$cache_file" != "x/dev/null" &&
  54446. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  54447. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  54448. + cat confcache >$cache_file
  54449. + else
  54450. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  54451. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  54452. + fi
  54453. fi
  54454. +rm -f confcache
  54455. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54456. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  54457. +# Let make expand exec_prefix.
  54458. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  54459. +
  54460. +DEFS=-DHAVE_CONFIG_H
  54461. +
  54462. +ac_libobjs=
  54463. +ac_ltlibobjs=
  54464. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  54465. + # 1. Remove the extension, and $U if already installed.
  54466. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  54467. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  54468. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  54469. + # will be set to the directory where LIBOBJS objects are built.
  54470. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  54471. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  54472. done
  54473. -case $ac_lo in
  54474. -?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  54475. -'') if test "$ac_cv_type_unsigned_short" = yes; then
  54476. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  54477. -See \`config.log' for more details." >&5
  54478. -echo "$as_me: error: cannot compute sizeof (unsigned short)
  54479. -See \`config.log' for more details." >&2;}
  54480. - { (exit 77); exit 77; }; }
  54481. - else
  54482. - ac_cv_sizeof_unsigned_short=0
  54483. - fi ;;
  54484. -esac
  54485. -else
  54486. - cat >conftest.$ac_ext <<_ACEOF
  54487. -/* confdefs.h. */
  54488. -_ACEOF
  54489. -cat confdefs.h >>conftest.$ac_ext
  54490. -cat >>conftest.$ac_ext <<_ACEOF
  54491. -/* end confdefs.h. */
  54492. -$ac_includes_default
  54493. - typedef unsigned short ac__type_sizeof_;
  54494. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  54495. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  54496. -#include <stdio.h>
  54497. -#include <stdlib.h>
  54498. -int
  54499. -main ()
  54500. -{
  54501. +LIBOBJS=$ac_libobjs
  54502. - FILE *f = fopen ("conftest.val", "w");
  54503. - if (! f)
  54504. - return 1;
  54505. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  54506. - {
  54507. - long int i = longval ();
  54508. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  54509. - return 1;
  54510. - fprintf (f, "%ld\n", i);
  54511. - }
  54512. - else
  54513. - {
  54514. - unsigned long int i = ulongval ();
  54515. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  54516. - return 1;
  54517. - fprintf (f, "%lu\n", i);
  54518. - }
  54519. - return ferror (f) || fclose (f) != 0;
  54520. +LTLIBOBJS=$ac_ltlibobjs
  54521. - ;
  54522. - return 0;
  54523. -}
  54524. -_ACEOF
  54525. -rm -f conftest$ac_exeext
  54526. -if { (ac_try="$ac_link"
  54527. -case "(($ac_try" in
  54528. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54529. - *) ac_try_echo=$ac_try;;
  54530. -esac
  54531. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54532. - (eval "$ac_link") 2>&5
  54533. - ac_status=$?
  54534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54535. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  54536. - { (case "(($ac_try" in
  54537. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54538. - *) ac_try_echo=$ac_try;;
  54539. -esac
  54540. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54541. - (eval "$ac_try") 2>&5
  54542. - ac_status=$?
  54543. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54544. - (exit $ac_status); }; }; then
  54545. - ac_cv_sizeof_unsigned_short=`cat conftest.val`
  54546. +
  54547. + if test -n "$EXEEXT"; then
  54548. + am__EXEEXT_TRUE=
  54549. + am__EXEEXT_FALSE='#'
  54550. else
  54551. - echo "$as_me: program exited with status $ac_status" >&5
  54552. -echo "$as_me: failed program was:" >&5
  54553. -sed 's/^/| /' conftest.$ac_ext >&5
  54554. + am__EXEEXT_TRUE='#'
  54555. + am__EXEEXT_FALSE=
  54556. +fi
  54557. -( exit $ac_status )
  54558. -if test "$ac_cv_type_unsigned_short" = yes; then
  54559. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  54560. -See \`config.log' for more details." >&5
  54561. -echo "$as_me: error: cannot compute sizeof (unsigned short)
  54562. -See \`config.log' for more details." >&2;}
  54563. - { (exit 77); exit 77; }; }
  54564. - else
  54565. - ac_cv_sizeof_unsigned_short=0
  54566. - fi
  54567. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  54568. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  54569. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  54570. fi
  54571. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  54572. +if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
  54573. + as_fn_error "conditional \"WANT_MPBSD\" was never defined.
  54574. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  54575. fi
  54576. -rm -f conftest.val
  54577. +if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
  54578. + as_fn_error "conditional \"WANT_CXX\" was never defined.
  54579. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  54580. +fi
  54581. +if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  54582. + as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
  54583. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  54584. fi
  54585. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  54586. -echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
  54587. +: ${CONFIG_STATUS=./config.status}
  54588. +ac_write_fail=0
  54589. +ac_clean_files_save=$ac_clean_files
  54590. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  54591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  54592. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  54593. +as_write_fail=0
  54594. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  54595. +#! $SHELL
  54596. +# Generated by $as_me.
  54597. +# Run this file to recreate the current configuration.
  54598. +# Compiler output produced by configure, useful for debugging
  54599. +# configure, is in config.log if it exists.
  54600. -cat >>confdefs.h <<_ACEOF
  54601. -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  54602. -_ACEOF
  54603. +debug=false
  54604. +ac_cs_recheck=false
  54605. +ac_cs_silent=false
  54606. +SHELL=\${CONFIG_SHELL-$SHELL}
  54607. +export SHELL
  54608. +_ASEOF
  54609. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  54610. +## -------------------- ##
  54611. +## M4sh Initialization. ##
  54612. +## -------------------- ##
  54613. -{ echo "$as_me:$LINENO: checking for unsigned" >&5
  54614. -echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
  54615. -if test "${ac_cv_type_unsigned+set}" = set; then
  54616. - echo $ECHO_N "(cached) $ECHO_C" >&6
  54617. +# Be more Bourne compatible
  54618. +DUALCASE=1; export DUALCASE # for MKS sh
  54619. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  54620. + emulate sh
  54621. + NULLCMD=:
  54622. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  54623. + # is contrary to our usage. Disable this feature.
  54624. + alias -g '${1+"$@"}'='"$@"'
  54625. + setopt NO_GLOB_SUBST
  54626. else
  54627. - cat >conftest.$ac_ext <<_ACEOF
  54628. -/* confdefs.h. */
  54629. -_ACEOF
  54630. -cat confdefs.h >>conftest.$ac_ext
  54631. -cat >>conftest.$ac_ext <<_ACEOF
  54632. -/* end confdefs.h. */
  54633. -$ac_includes_default
  54634. -typedef unsigned ac__type_new_;
  54635. -int
  54636. -main ()
  54637. -{
  54638. -if ((ac__type_new_ *) 0)
  54639. - return 0;
  54640. -if (sizeof (ac__type_new_))
  54641. - return 0;
  54642. - ;
  54643. - return 0;
  54644. -}
  54645. -_ACEOF
  54646. -rm -f conftest.$ac_objext
  54647. -if { (ac_try="$ac_compile"
  54648. -case "(($ac_try" in
  54649. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54650. - *) ac_try_echo=$ac_try;;
  54651. + case `(set -o) 2>/dev/null` in #(
  54652. + *posix*) :
  54653. + set -o posix ;; #(
  54654. + *) :
  54655. + ;;
  54656. esac
  54657. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54658. - (eval "$ac_compile") 2>conftest.er1
  54659. - ac_status=$?
  54660. - grep -v '^ *+' conftest.er1 >conftest.err
  54661. - rm -f conftest.er1
  54662. - cat conftest.err >&5
  54663. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54664. - (exit $ac_status); } && {
  54665. - test -z "$ac_c_werror_flag" ||
  54666. - test ! -s conftest.err
  54667. - } && test -s conftest.$ac_objext; then
  54668. - ac_cv_type_unsigned=yes
  54669. -else
  54670. - echo "$as_me: failed program was:" >&5
  54671. -sed 's/^/| /' conftest.$ac_ext >&5
  54672. +fi
  54673. +
  54674. - ac_cv_type_unsigned=no
  54675. +as_nl='
  54676. +'
  54677. +export as_nl
  54678. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  54679. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  54680. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  54681. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  54682. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  54683. +# but without wasting forks for bash or zsh.
  54684. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  54685. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  54686. + as_echo='print -r --'
  54687. + as_echo_n='print -rn --'
  54688. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  54689. + as_echo='printf %s\n'
  54690. + as_echo_n='printf %s'
  54691. +else
  54692. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54693. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54694. + as_echo_n='/usr/ucb/echo -n'
  54695. + else
  54696. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  54697. + as_echo_n_body='eval
  54698. + arg=$1;
  54699. + case $arg in #(
  54700. + *"$as_nl"*)
  54701. + expr "X$arg" : "X\\(.*\\)$as_nl";
  54702. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  54703. + esac;
  54704. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  54705. + '
  54706. + export as_echo_n_body
  54707. + as_echo_n='sh -c $as_echo_n_body as_echo'
  54708. + fi
  54709. + export as_echo_body
  54710. + as_echo='sh -c $as_echo_body as_echo'
  54711. fi
  54712. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54713. +# The user is always right.
  54714. +if test "${PATH_SEPARATOR+set}" != set; then
  54715. + PATH_SEPARATOR=:
  54716. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  54717. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  54718. + PATH_SEPARATOR=';'
  54719. + }
  54720. fi
  54721. -{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
  54722. -echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
  54723. -# The cast to long int works around a bug in the HP C Compiler
  54724. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  54725. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  54726. -# This bug is HP SR number 8606223364.
  54727. -{ echo "$as_me:$LINENO: checking size of unsigned" >&5
  54728. -echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
  54729. -if test "${ac_cv_sizeof_unsigned+set}" = set; then
  54730. - echo $ECHO_N "(cached) $ECHO_C" >&6
  54731. -else
  54732. - if test "$cross_compiling" = yes; then
  54733. - # Depending upon the size, compute the lo and hi bounds.
  54734. -cat >conftest.$ac_ext <<_ACEOF
  54735. -/* confdefs.h. */
  54736. -_ACEOF
  54737. -cat confdefs.h >>conftest.$ac_ext
  54738. -cat >>conftest.$ac_ext <<_ACEOF
  54739. -/* end confdefs.h. */
  54740. -$ac_includes_default
  54741. - typedef unsigned ac__type_sizeof_;
  54742. -int
  54743. -main ()
  54744. -{
  54745. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  54746. -test_array [0] = 0
  54747. - ;
  54748. - return 0;
  54749. -}
  54750. -_ACEOF
  54751. -rm -f conftest.$ac_objext
  54752. -if { (ac_try="$ac_compile"
  54753. -case "(($ac_try" in
  54754. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54755. - *) ac_try_echo=$ac_try;;
  54756. -esac
  54757. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54758. - (eval "$ac_compile") 2>conftest.er1
  54759. - ac_status=$?
  54760. - grep -v '^ *+' conftest.er1 >conftest.err
  54761. - rm -f conftest.er1
  54762. - cat conftest.err >&5
  54763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54764. - (exit $ac_status); } && {
  54765. - test -z "$ac_c_werror_flag" ||
  54766. - test ! -s conftest.err
  54767. - } && test -s conftest.$ac_objext; then
  54768. - ac_lo=0 ac_mid=0
  54769. - while :; do
  54770. - cat >conftest.$ac_ext <<_ACEOF
  54771. -/* confdefs.h. */
  54772. -_ACEOF
  54773. -cat confdefs.h >>conftest.$ac_ext
  54774. -cat >>conftest.$ac_ext <<_ACEOF
  54775. -/* end confdefs.h. */
  54776. -$ac_includes_default
  54777. - typedef unsigned ac__type_sizeof_;
  54778. -int
  54779. -main ()
  54780. -{
  54781. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  54782. -test_array [0] = 0
  54783. +# IFS
  54784. +# We need space, tab and new line, in precisely that order. Quoting is
  54785. +# there to prevent editors from complaining about space-tab.
  54786. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  54787. +# splitting by setting IFS to empty value.)
  54788. +IFS=" "" $as_nl"
  54789. - ;
  54790. - return 0;
  54791. -}
  54792. -_ACEOF
  54793. -rm -f conftest.$ac_objext
  54794. -if { (ac_try="$ac_compile"
  54795. -case "(($ac_try" in
  54796. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54797. - *) ac_try_echo=$ac_try;;
  54798. -esac
  54799. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54800. - (eval "$ac_compile") 2>conftest.er1
  54801. - ac_status=$?
  54802. - grep -v '^ *+' conftest.er1 >conftest.err
  54803. - rm -f conftest.er1
  54804. - cat conftest.err >&5
  54805. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54806. - (exit $ac_status); } && {
  54807. - test -z "$ac_c_werror_flag" ||
  54808. - test ! -s conftest.err
  54809. - } && test -s conftest.$ac_objext; then
  54810. - ac_hi=$ac_mid; break
  54811. -else
  54812. - echo "$as_me: failed program was:" >&5
  54813. -sed 's/^/| /' conftest.$ac_ext >&5
  54814. +# Find who we are. Look in the path if we contain no directory separator.
  54815. +case $0 in #((
  54816. + *[\\/]* ) as_myself=$0 ;;
  54817. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  54818. +for as_dir in $PATH
  54819. +do
  54820. + IFS=$as_save_IFS
  54821. + test -z "$as_dir" && as_dir=.
  54822. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  54823. + done
  54824. +IFS=$as_save_IFS
  54825. - ac_lo=`expr $ac_mid + 1`
  54826. - if test $ac_lo -le $ac_mid; then
  54827. - ac_lo= ac_hi=
  54828. - break
  54829. - fi
  54830. - ac_mid=`expr 2 '*' $ac_mid + 1`
  54831. + ;;
  54832. +esac
  54833. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  54834. +# in which case we are not to be found in the path.
  54835. +if test "x$as_myself" = x; then
  54836. + as_myself=$0
  54837. +fi
  54838. +if test ! -f "$as_myself"; then
  54839. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  54840. + exit 1
  54841. fi
  54842. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54843. - done
  54844. -else
  54845. - echo "$as_me: failed program was:" >&5
  54846. -sed 's/^/| /' conftest.$ac_ext >&5
  54847. +# Unset variables that we do not need and which cause bugs (e.g. in
  54848. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  54849. +# suppresses any "Segmentation fault" message there. '((' could
  54850. +# trigger a bug in pdksh 5.2.14.
  54851. +for as_var in BASH_ENV ENV MAIL MAILPATH
  54852. +do eval test x\${$as_var+set} = xset \
  54853. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  54854. +done
  54855. +PS1='$ '
  54856. +PS2='> '
  54857. +PS4='+ '
  54858. - cat >conftest.$ac_ext <<_ACEOF
  54859. -/* confdefs.h. */
  54860. -_ACEOF
  54861. -cat confdefs.h >>conftest.$ac_ext
  54862. -cat >>conftest.$ac_ext <<_ACEOF
  54863. -/* end confdefs.h. */
  54864. -$ac_includes_default
  54865. - typedef unsigned ac__type_sizeof_;
  54866. -int
  54867. -main ()
  54868. -{
  54869. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  54870. -test_array [0] = 0
  54871. +# NLS nuisances.
  54872. +LC_ALL=C
  54873. +export LC_ALL
  54874. +LANGUAGE=C
  54875. +export LANGUAGE
  54876. - ;
  54877. - return 0;
  54878. -}
  54879. -_ACEOF
  54880. -rm -f conftest.$ac_objext
  54881. -if { (ac_try="$ac_compile"
  54882. -case "(($ac_try" in
  54883. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54884. - *) ac_try_echo=$ac_try;;
  54885. -esac
  54886. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54887. - (eval "$ac_compile") 2>conftest.er1
  54888. - ac_status=$?
  54889. - grep -v '^ *+' conftest.er1 >conftest.err
  54890. - rm -f conftest.er1
  54891. - cat conftest.err >&5
  54892. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54893. - (exit $ac_status); } && {
  54894. - test -z "$ac_c_werror_flag" ||
  54895. - test ! -s conftest.err
  54896. - } && test -s conftest.$ac_objext; then
  54897. - ac_hi=-1 ac_mid=-1
  54898. - while :; do
  54899. - cat >conftest.$ac_ext <<_ACEOF
  54900. -/* confdefs.h. */
  54901. -_ACEOF
  54902. -cat confdefs.h >>conftest.$ac_ext
  54903. -cat >>conftest.$ac_ext <<_ACEOF
  54904. -/* end confdefs.h. */
  54905. -$ac_includes_default
  54906. - typedef unsigned ac__type_sizeof_;
  54907. -int
  54908. -main ()
  54909. -{
  54910. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  54911. -test_array [0] = 0
  54912. +# CDPATH.
  54913. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54914. - ;
  54915. - return 0;
  54916. -}
  54917. -_ACEOF
  54918. -rm -f conftest.$ac_objext
  54919. -if { (ac_try="$ac_compile"
  54920. -case "(($ac_try" in
  54921. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  54922. - *) ac_try_echo=$ac_try;;
  54923. -esac
  54924. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  54925. - (eval "$ac_compile") 2>conftest.er1
  54926. - ac_status=$?
  54927. - grep -v '^ *+' conftest.er1 >conftest.err
  54928. - rm -f conftest.er1
  54929. - cat conftest.err >&5
  54930. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  54931. - (exit $ac_status); } && {
  54932. - test -z "$ac_c_werror_flag" ||
  54933. - test ! -s conftest.err
  54934. - } && test -s conftest.$ac_objext; then
  54935. - ac_lo=$ac_mid; break
  54936. +
  54937. +# as_fn_error ERROR [LINENO LOG_FD]
  54938. +# ---------------------------------
  54939. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  54940. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  54941. +# script with status $?, using 1 if that was 0.
  54942. +as_fn_error ()
  54943. +{
  54944. + as_status=$?; test $as_status -eq 0 && as_status=1
  54945. + if test "$3"; then
  54946. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  54947. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  54948. + fi
  54949. + $as_echo "$as_me: error: $1" >&2
  54950. + as_fn_exit $as_status
  54951. +} # as_fn_error
  54952. +
  54953. +
  54954. +# as_fn_set_status STATUS
  54955. +# -----------------------
  54956. +# Set $? to STATUS, without forking.
  54957. +as_fn_set_status ()
  54958. +{
  54959. + return $1
  54960. +} # as_fn_set_status
  54961. +
  54962. +# as_fn_exit STATUS
  54963. +# -----------------
  54964. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  54965. +as_fn_exit ()
  54966. +{
  54967. + set +e
  54968. + as_fn_set_status $1
  54969. + exit $1
  54970. +} # as_fn_exit
  54971. +
  54972. +# as_fn_unset VAR
  54973. +# ---------------
  54974. +# Portably unset VAR.
  54975. +as_fn_unset ()
  54976. +{
  54977. + { eval $1=; unset $1;}
  54978. +}
  54979. +as_unset=as_fn_unset
  54980. +# as_fn_append VAR VALUE
  54981. +# ----------------------
  54982. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  54983. +# advantage of any shell optimizations that allow amortized linear growth over
  54984. +# repeated appends, instead of the typical quadratic growth present in naive
  54985. +# implementations.
  54986. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  54987. + eval 'as_fn_append ()
  54988. + {
  54989. + eval $1+=\$2
  54990. + }'
  54991. +else
  54992. + as_fn_append ()
  54993. + {
  54994. + eval $1=\$$1\$2
  54995. + }
  54996. +fi # as_fn_append
  54997. +
  54998. +# as_fn_arith ARG...
  54999. +# ------------------
  55000. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  55001. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  55002. +# must be portable across $(()) and expr.
  55003. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  55004. + eval 'as_fn_arith ()
  55005. + {
  55006. + as_val=$(( $* ))
  55007. + }'
  55008. else
  55009. - echo "$as_me: failed program was:" >&5
  55010. -sed 's/^/| /' conftest.$ac_ext >&5
  55011. + as_fn_arith ()
  55012. + {
  55013. + as_val=`expr "$@" || test $? -eq 1`
  55014. + }
  55015. +fi # as_fn_arith
  55016. - ac_hi=`expr '(' $ac_mid ')' - 1`
  55017. - if test $ac_mid -le $ac_hi; then
  55018. - ac_lo= ac_hi=
  55019. - break
  55020. - fi
  55021. - ac_mid=`expr 2 '*' $ac_mid`
  55022. -fi
  55023. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55024. - done
  55025. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  55026. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  55027. + as_expr=expr
  55028. else
  55029. - echo "$as_me: failed program was:" >&5
  55030. -sed 's/^/| /' conftest.$ac_ext >&5
  55031. -
  55032. - ac_lo= ac_hi=
  55033. + as_expr=false
  55034. fi
  55035. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55036. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  55037. + as_basename=basename
  55038. +else
  55039. + as_basename=false
  55040. fi
  55041. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55042. -# Binary search between lo and hi bounds.
  55043. -while test "x$ac_lo" != "x$ac_hi"; do
  55044. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  55045. - cat >conftest.$ac_ext <<_ACEOF
  55046. -/* confdefs.h. */
  55047. -_ACEOF
  55048. -cat confdefs.h >>conftest.$ac_ext
  55049. -cat >>conftest.$ac_ext <<_ACEOF
  55050. -/* end confdefs.h. */
  55051. -$ac_includes_default
  55052. - typedef unsigned ac__type_sizeof_;
  55053. -int
  55054. -main ()
  55055. -{
  55056. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  55057. -test_array [0] = 0
  55058. -
  55059. - ;
  55060. - return 0;
  55061. -}
  55062. -_ACEOF
  55063. -rm -f conftest.$ac_objext
  55064. -if { (ac_try="$ac_compile"
  55065. -case "(($ac_try" in
  55066. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55067. - *) ac_try_echo=$ac_try;;
  55068. -esac
  55069. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55070. - (eval "$ac_compile") 2>conftest.er1
  55071. - ac_status=$?
  55072. - grep -v '^ *+' conftest.er1 >conftest.err
  55073. - rm -f conftest.er1
  55074. - cat conftest.err >&5
  55075. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55076. - (exit $ac_status); } && {
  55077. - test -z "$ac_c_werror_flag" ||
  55078. - test ! -s conftest.err
  55079. - } && test -s conftest.$ac_objext; then
  55080. - ac_hi=$ac_mid
  55081. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  55082. + as_dirname=dirname
  55083. else
  55084. - echo "$as_me: failed program was:" >&5
  55085. -sed 's/^/| /' conftest.$ac_ext >&5
  55086. -
  55087. - ac_lo=`expr '(' $ac_mid ')' + 1`
  55088. + as_dirname=false
  55089. fi
  55090. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55091. -done
  55092. -case $ac_lo in
  55093. -?*) ac_cv_sizeof_unsigned=$ac_lo;;
  55094. -'') if test "$ac_cv_type_unsigned" = yes; then
  55095. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
  55096. -See \`config.log' for more details." >&5
  55097. -echo "$as_me: error: cannot compute sizeof (unsigned)
  55098. -See \`config.log' for more details." >&2;}
  55099. - { (exit 77); exit 77; }; }
  55100. - else
  55101. - ac_cv_sizeof_unsigned=0
  55102. - fi ;;
  55103. -esac
  55104. -else
  55105. - cat >conftest.$ac_ext <<_ACEOF
  55106. -/* confdefs.h. */
  55107. -_ACEOF
  55108. -cat confdefs.h >>conftest.$ac_ext
  55109. -cat >>conftest.$ac_ext <<_ACEOF
  55110. -/* end confdefs.h. */
  55111. -$ac_includes_default
  55112. - typedef unsigned ac__type_sizeof_;
  55113. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  55114. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  55115. -#include <stdio.h>
  55116. -#include <stdlib.h>
  55117. -int
  55118. -main ()
  55119. -{
  55120. +as_me=`$as_basename -- "$0" ||
  55121. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  55122. + X"$0" : 'X\(//\)$' \| \
  55123. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  55124. +$as_echo X/"$0" |
  55125. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  55126. + s//\1/
  55127. + q
  55128. + }
  55129. + /^X\/\(\/\/\)$/{
  55130. + s//\1/
  55131. + q
  55132. + }
  55133. + /^X\/\(\/\).*/{
  55134. + s//\1/
  55135. + q
  55136. + }
  55137. + s/.*/./; q'`
  55138. - FILE *f = fopen ("conftest.val", "w");
  55139. - if (! f)
  55140. - return 1;
  55141. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  55142. - {
  55143. - long int i = longval ();
  55144. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  55145. - return 1;
  55146. - fprintf (f, "%ld\n", i);
  55147. - }
  55148. - else
  55149. - {
  55150. - unsigned long int i = ulongval ();
  55151. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  55152. - return 1;
  55153. - fprintf (f, "%lu\n", i);
  55154. - }
  55155. - return ferror (f) || fclose (f) != 0;
  55156. +# Avoid depending upon Character Ranges.
  55157. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  55158. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  55159. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  55160. +as_cr_digits='0123456789'
  55161. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  55162. - ;
  55163. - return 0;
  55164. -}
  55165. -_ACEOF
  55166. -rm -f conftest$ac_exeext
  55167. -if { (ac_try="$ac_link"
  55168. -case "(($ac_try" in
  55169. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55170. - *) ac_try_echo=$ac_try;;
  55171. -esac
  55172. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55173. - (eval "$ac_link") 2>&5
  55174. - ac_status=$?
  55175. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55176. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  55177. - { (case "(($ac_try" in
  55178. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55179. - *) ac_try_echo=$ac_try;;
  55180. +ECHO_C= ECHO_N= ECHO_T=
  55181. +case `echo -n x` in #(((((
  55182. +-n*)
  55183. + case `echo 'xy\c'` in
  55184. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  55185. + xy) ECHO_C='\c';;
  55186. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  55187. + ECHO_T=' ';;
  55188. + esac;;
  55189. +*)
  55190. + ECHO_N='-n';;
  55191. esac
  55192. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55193. - (eval "$ac_try") 2>&5
  55194. - ac_status=$?
  55195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55196. - (exit $ac_status); }; }; then
  55197. - ac_cv_sizeof_unsigned=`cat conftest.val`
  55198. -else
  55199. - echo "$as_me: program exited with status $ac_status" >&5
  55200. -echo "$as_me: failed program was:" >&5
  55201. -sed 's/^/| /' conftest.$ac_ext >&5
  55202. -( exit $ac_status )
  55203. -if test "$ac_cv_type_unsigned" = yes; then
  55204. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
  55205. -See \`config.log' for more details." >&5
  55206. -echo "$as_me: error: cannot compute sizeof (unsigned)
  55207. -See \`config.log' for more details." >&2;}
  55208. - { (exit 77); exit 77; }; }
  55209. - else
  55210. - ac_cv_sizeof_unsigned=0
  55211. - fi
  55212. -fi
  55213. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  55214. +rm -f conf$$ conf$$.exe conf$$.file
  55215. +if test -d conf$$.dir; then
  55216. + rm -f conf$$.dir/conf$$.file
  55217. +else
  55218. + rm -f conf$$.dir
  55219. + mkdir conf$$.dir 2>/dev/null
  55220. fi
  55221. -rm -f conftest.val
  55222. +if (echo >conf$$.file) 2>/dev/null; then
  55223. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  55224. + as_ln_s='ln -s'
  55225. + # ... but there are two gotchas:
  55226. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  55227. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  55228. + # In both cases, we have to default to `cp -p'.
  55229. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  55230. + as_ln_s='cp -p'
  55231. + elif ln conf$$.file conf$$ 2>/dev/null; then
  55232. + as_ln_s=ln
  55233. + else
  55234. + as_ln_s='cp -p'
  55235. + fi
  55236. +else
  55237. + as_ln_s='cp -p'
  55238. fi
  55239. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
  55240. -echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
  55241. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  55242. +rmdir conf$$.dir 2>/dev/null
  55243. +# as_fn_mkdir_p
  55244. +# -------------
  55245. +# Create "$as_dir" as a directory, including parents if necessary.
  55246. +as_fn_mkdir_p ()
  55247. +{
  55248. -cat >>confdefs.h <<_ACEOF
  55249. -#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
  55250. -_ACEOF
  55251. + case $as_dir in #(
  55252. + -*) as_dir=./$as_dir;;
  55253. + esac
  55254. + test -d "$as_dir" || eval $as_mkdir_p || {
  55255. + as_dirs=
  55256. + while :; do
  55257. + case $as_dir in #(
  55258. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  55259. + *) as_qdir=$as_dir;;
  55260. + esac
  55261. + as_dirs="'$as_qdir' $as_dirs"
  55262. + as_dir=`$as_dirname -- "$as_dir" ||
  55263. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  55264. + X"$as_dir" : 'X\(//\)[^/]' \| \
  55265. + X"$as_dir" : 'X\(//\)$' \| \
  55266. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  55267. +$as_echo X"$as_dir" |
  55268. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  55269. + s//\1/
  55270. + q
  55271. + }
  55272. + /^X\(\/\/\)[^/].*/{
  55273. + s//\1/
  55274. + q
  55275. + }
  55276. + /^X\(\/\/\)$/{
  55277. + s//\1/
  55278. + q
  55279. + }
  55280. + /^X\(\/\).*/{
  55281. + s//\1/
  55282. + q
  55283. + }
  55284. + s/.*/./; q'`
  55285. + test -d "$as_dir" && break
  55286. + done
  55287. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  55288. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  55289. -{ echo "$as_me:$LINENO: checking for unsigned long" >&5
  55290. -echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
  55291. -if test "${ac_cv_type_unsigned_long+set}" = set; then
  55292. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55293. -else
  55294. - cat >conftest.$ac_ext <<_ACEOF
  55295. -/* confdefs.h. */
  55296. -_ACEOF
  55297. -cat confdefs.h >>conftest.$ac_ext
  55298. -cat >>conftest.$ac_ext <<_ACEOF
  55299. -/* end confdefs.h. */
  55300. -$ac_includes_default
  55301. -typedef unsigned long ac__type_new_;
  55302. -int
  55303. -main ()
  55304. -{
  55305. -if ((ac__type_new_ *) 0)
  55306. - return 0;
  55307. -if (sizeof (ac__type_new_))
  55308. - return 0;
  55309. - ;
  55310. - return 0;
  55311. -}
  55312. -_ACEOF
  55313. -rm -f conftest.$ac_objext
  55314. -if { (ac_try="$ac_compile"
  55315. -case "(($ac_try" in
  55316. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55317. - *) ac_try_echo=$ac_try;;
  55318. -esac
  55319. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55320. - (eval "$ac_compile") 2>conftest.er1
  55321. - ac_status=$?
  55322. - grep -v '^ *+' conftest.er1 >conftest.err
  55323. - rm -f conftest.er1
  55324. - cat conftest.err >&5
  55325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55326. - (exit $ac_status); } && {
  55327. - test -z "$ac_c_werror_flag" ||
  55328. - test ! -s conftest.err
  55329. - } && test -s conftest.$ac_objext; then
  55330. - ac_cv_type_unsigned_long=yes
  55331. +} # as_fn_mkdir_p
  55332. +if mkdir -p . 2>/dev/null; then
  55333. + as_mkdir_p='mkdir -p "$as_dir"'
  55334. else
  55335. - echo "$as_me: failed program was:" >&5
  55336. -sed 's/^/| /' conftest.$ac_ext >&5
  55337. -
  55338. - ac_cv_type_unsigned_long=no
  55339. + test -d ./-p && rmdir ./-p
  55340. + as_mkdir_p=false
  55341. fi
  55342. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55343. +if test -x / >/dev/null 2>&1; then
  55344. + as_test_x='test -x'
  55345. +else
  55346. + if ls -dL / >/dev/null 2>&1; then
  55347. + as_ls_L_option=L
  55348. + else
  55349. + as_ls_L_option=
  55350. + fi
  55351. + as_test_x='
  55352. + eval sh -c '\''
  55353. + if test -d "$1"; then
  55354. + test -d "$1/.";
  55355. + else
  55356. + case $1 in #(
  55357. + -*)set "./$1";;
  55358. + esac;
  55359. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  55360. + ???[sx]*):;;*)false;;esac;fi
  55361. + '\'' sh
  55362. + '
  55363. fi
  55364. -{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  55365. -echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
  55366. +as_executable_p=$as_test_x
  55367. -# The cast to long int works around a bug in the HP C Compiler
  55368. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  55369. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  55370. -# This bug is HP SR number 8606223364.
  55371. -{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
  55372. -echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
  55373. -if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  55374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55375. -else
  55376. - if test "$cross_compiling" = yes; then
  55377. - # Depending upon the size, compute the lo and hi bounds.
  55378. -cat >conftest.$ac_ext <<_ACEOF
  55379. -/* confdefs.h. */
  55380. -_ACEOF
  55381. -cat confdefs.h >>conftest.$ac_ext
  55382. -cat >>conftest.$ac_ext <<_ACEOF
  55383. -/* end confdefs.h. */
  55384. -$ac_includes_default
  55385. - typedef unsigned long ac__type_sizeof_;
  55386. -int
  55387. -main ()
  55388. -{
  55389. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  55390. -test_array [0] = 0
  55391. +# Sed expression to map a string onto a valid CPP name.
  55392. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  55393. +
  55394. +# Sed expression to map a string onto a valid variable name.
  55395. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  55396. +
  55397. +
  55398. +exec 6>&1
  55399. +## ----------------------------------- ##
  55400. +## Main body of $CONFIG_STATUS script. ##
  55401. +## ----------------------------------- ##
  55402. +_ASEOF
  55403. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  55404. +
  55405. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  55406. +# Save the log message, to keep $0 and so on meaningful, and to
  55407. +# report actual input values of CONFIG_FILES etc. instead of their
  55408. +# values after options handling.
  55409. +ac_log="
  55410. +This file was extended by GNU MP $as_me 4.3.2, which was
  55411. +generated by GNU Autoconf 2.65. Invocation command line was
  55412. +
  55413. + CONFIG_FILES = $CONFIG_FILES
  55414. + CONFIG_HEADERS = $CONFIG_HEADERS
  55415. + CONFIG_LINKS = $CONFIG_LINKS
  55416. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  55417. + $ $0 $@
  55418. +
  55419. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  55420. +"
  55421. - ;
  55422. - return 0;
  55423. -}
  55424. _ACEOF
  55425. -rm -f conftest.$ac_objext
  55426. -if { (ac_try="$ac_compile"
  55427. -case "(($ac_try" in
  55428. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55429. - *) ac_try_echo=$ac_try;;
  55430. +
  55431. +case $ac_config_files in *"
  55432. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  55433. esac
  55434. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55435. - (eval "$ac_compile") 2>conftest.er1
  55436. - ac_status=$?
  55437. - grep -v '^ *+' conftest.er1 >conftest.err
  55438. - rm -f conftest.er1
  55439. - cat conftest.err >&5
  55440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55441. - (exit $ac_status); } && {
  55442. - test -z "$ac_c_werror_flag" ||
  55443. - test ! -s conftest.err
  55444. - } && test -s conftest.$ac_objext; then
  55445. - ac_lo=0 ac_mid=0
  55446. - while :; do
  55447. - cat >conftest.$ac_ext <<_ACEOF
  55448. -/* confdefs.h. */
  55449. -_ACEOF
  55450. -cat confdefs.h >>conftest.$ac_ext
  55451. -cat >>conftest.$ac_ext <<_ACEOF
  55452. -/* end confdefs.h. */
  55453. -$ac_includes_default
  55454. - typedef unsigned long ac__type_sizeof_;
  55455. -int
  55456. -main ()
  55457. -{
  55458. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  55459. -test_array [0] = 0
  55460. - ;
  55461. - return 0;
  55462. -}
  55463. -_ACEOF
  55464. -rm -f conftest.$ac_objext
  55465. -if { (ac_try="$ac_compile"
  55466. -case "(($ac_try" in
  55467. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55468. - *) ac_try_echo=$ac_try;;
  55469. +case $ac_config_headers in *"
  55470. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  55471. esac
  55472. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55473. - (eval "$ac_compile") 2>conftest.er1
  55474. - ac_status=$?
  55475. - grep -v '^ *+' conftest.er1 >conftest.err
  55476. - rm -f conftest.er1
  55477. - cat conftest.err >&5
  55478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55479. - (exit $ac_status); } && {
  55480. - test -z "$ac_c_werror_flag" ||
  55481. - test ! -s conftest.err
  55482. - } && test -s conftest.$ac_objext; then
  55483. - ac_hi=$ac_mid; break
  55484. -else
  55485. - echo "$as_me: failed program was:" >&5
  55486. -sed 's/^/| /' conftest.$ac_ext >&5
  55487. - ac_lo=`expr $ac_mid + 1`
  55488. - if test $ac_lo -le $ac_mid; then
  55489. - ac_lo= ac_hi=
  55490. - break
  55491. - fi
  55492. - ac_mid=`expr 2 '*' $ac_mid + 1`
  55493. -fi
  55494. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55495. - done
  55496. -else
  55497. - echo "$as_me: failed program was:" >&5
  55498. -sed 's/^/| /' conftest.$ac_ext >&5
  55499. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  55500. +# Files that config.status was made for.
  55501. +config_files="$ac_config_files"
  55502. +config_headers="$ac_config_headers"
  55503. +config_links="$ac_config_links"
  55504. +config_commands="$ac_config_commands"
  55505. - cat >conftest.$ac_ext <<_ACEOF
  55506. -/* confdefs.h. */
  55507. _ACEOF
  55508. -cat confdefs.h >>conftest.$ac_ext
  55509. -cat >>conftest.$ac_ext <<_ACEOF
  55510. -/* end confdefs.h. */
  55511. -$ac_includes_default
  55512. - typedef unsigned long ac__type_sizeof_;
  55513. -int
  55514. -main ()
  55515. -{
  55516. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  55517. -test_array [0] = 0
  55518. - ;
  55519. - return 0;
  55520. -}
  55521. -_ACEOF
  55522. -rm -f conftest.$ac_objext
  55523. -if { (ac_try="$ac_compile"
  55524. -case "(($ac_try" in
  55525. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55526. - *) ac_try_echo=$ac_try;;
  55527. -esac
  55528. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55529. - (eval "$ac_compile") 2>conftest.er1
  55530. - ac_status=$?
  55531. - grep -v '^ *+' conftest.er1 >conftest.err
  55532. - rm -f conftest.er1
  55533. - cat conftest.err >&5
  55534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55535. - (exit $ac_status); } && {
  55536. - test -z "$ac_c_werror_flag" ||
  55537. - test ! -s conftest.err
  55538. - } && test -s conftest.$ac_objext; then
  55539. - ac_hi=-1 ac_mid=-1
  55540. - while :; do
  55541. - cat >conftest.$ac_ext <<_ACEOF
  55542. -/* confdefs.h. */
  55543. -_ACEOF
  55544. -cat confdefs.h >>conftest.$ac_ext
  55545. -cat >>conftest.$ac_ext <<_ACEOF
  55546. -/* end confdefs.h. */
  55547. -$ac_includes_default
  55548. - typedef unsigned long ac__type_sizeof_;
  55549. -int
  55550. -main ()
  55551. -{
  55552. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  55553. -test_array [0] = 0
  55554. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  55555. +ac_cs_usage="\
  55556. +\`$as_me' instantiates files and other configuration actions
  55557. +from templates according to the current configuration. Unless the files
  55558. +and actions are specified as TAGs, all are instantiated by default.
  55559. - ;
  55560. - return 0;
  55561. -}
  55562. -_ACEOF
  55563. -rm -f conftest.$ac_objext
  55564. -if { (ac_try="$ac_compile"
  55565. -case "(($ac_try" in
  55566. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55567. - *) ac_try_echo=$ac_try;;
  55568. -esac
  55569. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55570. - (eval "$ac_compile") 2>conftest.er1
  55571. - ac_status=$?
  55572. - grep -v '^ *+' conftest.er1 >conftest.err
  55573. - rm -f conftest.er1
  55574. - cat conftest.err >&5
  55575. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55576. - (exit $ac_status); } && {
  55577. - test -z "$ac_c_werror_flag" ||
  55578. - test ! -s conftest.err
  55579. - } && test -s conftest.$ac_objext; then
  55580. - ac_lo=$ac_mid; break
  55581. -else
  55582. - echo "$as_me: failed program was:" >&5
  55583. -sed 's/^/| /' conftest.$ac_ext >&5
  55584. +Usage: $0 [OPTION]... [TAG]...
  55585. - ac_hi=`expr '(' $ac_mid ')' - 1`
  55586. - if test $ac_mid -le $ac_hi; then
  55587. - ac_lo= ac_hi=
  55588. - break
  55589. - fi
  55590. - ac_mid=`expr 2 '*' $ac_mid`
  55591. -fi
  55592. + -h, --help print this help, then exit
  55593. + -V, --version print version number and configuration settings, then exit
  55594. + --config print configuration, then exit
  55595. + -q, --quiet, --silent
  55596. + do not print progress messages
  55597. + -d, --debug don't remove temporary files
  55598. + --recheck update $as_me by reconfiguring in the same conditions
  55599. + --file=FILE[:TEMPLATE]
  55600. + instantiate the configuration file FILE
  55601. + --header=FILE[:TEMPLATE]
  55602. + instantiate the configuration header FILE
  55603. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55604. - done
  55605. -else
  55606. - echo "$as_me: failed program was:" >&5
  55607. -sed 's/^/| /' conftest.$ac_ext >&5
  55608. +Configuration files:
  55609. +$config_files
  55610. - ac_lo= ac_hi=
  55611. -fi
  55612. +Configuration headers:
  55613. +$config_headers
  55614. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55615. -fi
  55616. +Configuration links:
  55617. +$config_links
  55618. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55619. -# Binary search between lo and hi bounds.
  55620. -while test "x$ac_lo" != "x$ac_hi"; do
  55621. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  55622. - cat >conftest.$ac_ext <<_ACEOF
  55623. -/* confdefs.h. */
  55624. -_ACEOF
  55625. -cat confdefs.h >>conftest.$ac_ext
  55626. -cat >>conftest.$ac_ext <<_ACEOF
  55627. -/* end confdefs.h. */
  55628. -$ac_includes_default
  55629. - typedef unsigned long ac__type_sizeof_;
  55630. -int
  55631. -main ()
  55632. -{
  55633. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  55634. -test_array [0] = 0
  55635. +Configuration commands:
  55636. +$config_commands
  55637. +
  55638. +Report bugs to <gmp-bugs@gmplib.org>.
  55639. +GNU MP home page: <http://www.gnu.org/software/gmp/>.
  55640. +General help using GNU software: <http://www.gnu.org/gethelp/>."
  55641. - ;
  55642. - return 0;
  55643. -}
  55644. _ACEOF
  55645. -rm -f conftest.$ac_objext
  55646. -if { (ac_try="$ac_compile"
  55647. -case "(($ac_try" in
  55648. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55649. - *) ac_try_echo=$ac_try;;
  55650. -esac
  55651. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55652. - (eval "$ac_compile") 2>conftest.er1
  55653. - ac_status=$?
  55654. - grep -v '^ *+' conftest.er1 >conftest.err
  55655. - rm -f conftest.er1
  55656. - cat conftest.err >&5
  55657. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55658. - (exit $ac_status); } && {
  55659. - test -z "$ac_c_werror_flag" ||
  55660. - test ! -s conftest.err
  55661. - } && test -s conftest.$ac_objext; then
  55662. - ac_hi=$ac_mid
  55663. -else
  55664. - echo "$as_me: failed program was:" >&5
  55665. -sed 's/^/| /' conftest.$ac_ext >&5
  55666. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  55667. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  55668. +ac_cs_version="\\
  55669. +GNU MP config.status 4.3.2
  55670. +configured by $0, generated by GNU Autoconf 2.65,
  55671. + with options \\"\$ac_cs_config\\"
  55672. - ac_lo=`expr '(' $ac_mid ')' + 1`
  55673. -fi
  55674. +Copyright (C) 2009 Free Software Foundation, Inc.
  55675. +This config.status script is free software; the Free Software Foundation
  55676. +gives unlimited permission to copy, distribute and modify it."
  55677. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55678. -done
  55679. -case $ac_lo in
  55680. -?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  55681. -'') if test "$ac_cv_type_unsigned_long" = yes; then
  55682. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  55683. -See \`config.log' for more details." >&5
  55684. -echo "$as_me: error: cannot compute sizeof (unsigned long)
  55685. -See \`config.log' for more details." >&2;}
  55686. - { (exit 77); exit 77; }; }
  55687. - else
  55688. - ac_cv_sizeof_unsigned_long=0
  55689. - fi ;;
  55690. -esac
  55691. -else
  55692. - cat >conftest.$ac_ext <<_ACEOF
  55693. -/* confdefs.h. */
  55694. +ac_pwd='$ac_pwd'
  55695. +srcdir='$srcdir'
  55696. +INSTALL='$INSTALL'
  55697. +MKDIR_P='$MKDIR_P'
  55698. +AWK='$AWK'
  55699. +test -n "\$AWK" || AWK=awk
  55700. _ACEOF
  55701. -cat confdefs.h >>conftest.$ac_ext
  55702. -cat >>conftest.$ac_ext <<_ACEOF
  55703. -/* end confdefs.h. */
  55704. -$ac_includes_default
  55705. - typedef unsigned long ac__type_sizeof_;
  55706. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  55707. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  55708. -#include <stdio.h>
  55709. -#include <stdlib.h>
  55710. -int
  55711. -main ()
  55712. -{
  55713. - FILE *f = fopen ("conftest.val", "w");
  55714. - if (! f)
  55715. - return 1;
  55716. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  55717. - {
  55718. - long int i = longval ();
  55719. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  55720. - return 1;
  55721. - fprintf (f, "%ld\n", i);
  55722. - }
  55723. - else
  55724. - {
  55725. - unsigned long int i = ulongval ();
  55726. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  55727. - return 1;
  55728. - fprintf (f, "%lu\n", i);
  55729. - }
  55730. - return ferror (f) || fclose (f) != 0;
  55731. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  55732. +# The default lists apply if the user does not specify any file.
  55733. +ac_need_defaults=:
  55734. +while test $# != 0
  55735. +do
  55736. + case $1 in
  55737. + --*=*)
  55738. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  55739. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  55740. + ac_shift=:
  55741. + ;;
  55742. + *)
  55743. + ac_option=$1
  55744. + ac_optarg=$2
  55745. + ac_shift=shift
  55746. + ;;
  55747. + esac
  55748. - ;
  55749. - return 0;
  55750. -}
  55751. -_ACEOF
  55752. -rm -f conftest$ac_exeext
  55753. -if { (ac_try="$ac_link"
  55754. -case "(($ac_try" in
  55755. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55756. - *) ac_try_echo=$ac_try;;
  55757. -esac
  55758. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55759. - (eval "$ac_link") 2>&5
  55760. - ac_status=$?
  55761. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55762. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  55763. - { (case "(($ac_try" in
  55764. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55765. - *) ac_try_echo=$ac_try;;
  55766. -esac
  55767. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  55768. - (eval "$ac_try") 2>&5
  55769. - ac_status=$?
  55770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55771. - (exit $ac_status); }; }; then
  55772. - ac_cv_sizeof_unsigned_long=`cat conftest.val`
  55773. -else
  55774. - echo "$as_me: program exited with status $ac_status" >&5
  55775. -echo "$as_me: failed program was:" >&5
  55776. -sed 's/^/| /' conftest.$ac_ext >&5
  55777. + case $ac_option in
  55778. + # Handling of the options.
  55779. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  55780. + ac_cs_recheck=: ;;
  55781. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  55782. + $as_echo "$ac_cs_version"; exit ;;
  55783. + --config | --confi | --conf | --con | --co | --c )
  55784. + $as_echo "$ac_cs_config"; exit ;;
  55785. + --debug | --debu | --deb | --de | --d | -d )
  55786. + debug=: ;;
  55787. + --file | --fil | --fi | --f )
  55788. + $ac_shift
  55789. + case $ac_optarg in
  55790. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  55791. + esac
  55792. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  55793. + ac_need_defaults=false;;
  55794. + --header | --heade | --head | --hea )
  55795. + $ac_shift
  55796. + case $ac_optarg in
  55797. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  55798. + esac
  55799. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  55800. + ac_need_defaults=false;;
  55801. + --he | --h)
  55802. + # Conflict between --help and --header
  55803. + as_fn_error "ambiguous option: \`$1'
  55804. +Try \`$0 --help' for more information.";;
  55805. + --help | --hel | -h )
  55806. + $as_echo "$ac_cs_usage"; exit ;;
  55807. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  55808. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  55809. + ac_cs_silent=: ;;
  55810. -( exit $ac_status )
  55811. -if test "$ac_cv_type_unsigned_long" = yes; then
  55812. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  55813. -See \`config.log' for more details." >&5
  55814. -echo "$as_me: error: cannot compute sizeof (unsigned long)
  55815. -See \`config.log' for more details." >&2;}
  55816. - { (exit 77); exit 77; }; }
  55817. - else
  55818. - ac_cv_sizeof_unsigned_long=0
  55819. - fi
  55820. -fi
  55821. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  55822. -fi
  55823. -rm -f conftest.val
  55824. + # This is an error.
  55825. + -*) as_fn_error "unrecognized option: \`$1'
  55826. +Try \`$0 --help' for more information." ;;
  55827. +
  55828. + *) as_fn_append ac_config_targets " $1"
  55829. + ac_need_defaults=false ;;
  55830. +
  55831. + esac
  55832. + shift
  55833. +done
  55834. +
  55835. +ac_configure_extra_args=
  55836. +
  55837. +if $ac_cs_silent; then
  55838. + exec 6>/dev/null
  55839. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  55840. fi
  55841. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  55842. -echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
  55843. +_ACEOF
  55844. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  55845. +if \$ac_cs_recheck; then
  55846. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  55847. + shift
  55848. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  55849. + CONFIG_SHELL='$SHELL'
  55850. + export CONFIG_SHELL
  55851. + exec "\$@"
  55852. +fi
  55853. +_ACEOF
  55854. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  55855. +exec 5>>config.log
  55856. +{
  55857. + echo
  55858. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  55859. +## Running $as_me. ##
  55860. +_ASBOX
  55861. + $as_echo "$ac_log"
  55862. +} >&5
  55863. -cat >>confdefs.h <<_ACEOF
  55864. -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  55865. _ACEOF
  55866. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  55867. +#
  55868. +# INIT-COMMANDS
  55869. +#
  55870. -{ echo "$as_me:$LINENO: checking for mp_limb_t" >&5
  55871. -echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6; }
  55872. -if test "${ac_cv_type_mp_limb_t+set}" = set; then
  55873. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55874. -else
  55875. - cat >conftest.$ac_ext <<_ACEOF
  55876. -/* confdefs.h. */
  55877. -_ACEOF
  55878. -cat confdefs.h >>conftest.$ac_ext
  55879. -cat >>conftest.$ac_ext <<_ACEOF
  55880. -/* end confdefs.h. */
  55881. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  55882. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  55883. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  55884. -#define GMP_LIMB_BITS 123
  55885. -$DEFN_LONG_LONG_LIMB
  55886. -#include "$srcdir/gmp-h.in"
  55887. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  55888. +# if CDPATH is set.
  55889. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  55890. +sed_quote_subst='$sed_quote_subst'
  55891. +double_quote_subst='$double_quote_subst'
  55892. +delay_variable_subst='$delay_variable_subst'
  55893. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  55894. +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  55895. +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  55896. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  55897. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  55898. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  55899. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  55900. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  55901. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  55902. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  55903. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  55904. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  55905. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  55906. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  55907. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  55908. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  55909. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  55910. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  55911. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  55912. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  55913. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  55914. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  55915. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  55916. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  55917. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  55918. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  55919. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  55920. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  55921. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  55922. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  55923. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55924. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  55925. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  55926. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  55927. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  55928. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  55929. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  55930. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55931. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55932. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55933. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  55934. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  55935. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  55936. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  55937. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  55938. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  55939. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  55940. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  55941. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  55942. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  55943. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  55944. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  55945. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  55946. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  55947. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  55948. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  55949. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  55950. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  55951. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  55952. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  55953. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  55954. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  55955. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  55956. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  55957. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55958. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55959. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  55960. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  55961. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55962. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55963. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  55964. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55965. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55966. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55967. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55968. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55969. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55970. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  55971. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  55972. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  55973. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55974. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  55975. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  55976. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  55977. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  55978. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  55979. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  55980. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  55981. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  55982. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  55983. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  55984. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  55985. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55986. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  55987. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  55988. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  55989. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55990. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  55991. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  55992. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  55993. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  55994. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  55995. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  55996. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  55997. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55998. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  55999. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  56000. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  56001. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  56002. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  56003. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  56004. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  56005. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  56006. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  56007. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  56008. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  56009. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  56010. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  56011. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  56012. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  56013. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  56014. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  56015. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  56016. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  56017. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  56018. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  56019. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56020. +LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56021. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56022. +old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56023. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56024. +compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56025. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56026. +GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56027. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56028. +lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56029. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56030. +lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56031. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56032. +lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56033. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56034. +lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56035. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56036. +lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56037. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56038. +archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56039. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56040. +enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56041. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56042. +export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56043. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56044. +whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56045. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56046. +compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56047. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56048. +old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56049. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56050. +old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56051. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56052. +archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56053. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56054. +archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56055. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56056. +module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56057. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56058. +module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56059. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56060. +with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56061. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56062. +allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56063. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56064. +no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56065. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56066. +hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56067. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56068. +hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56069. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56070. +hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56071. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56072. +hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56073. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56074. +hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56075. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56076. +hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56077. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56078. +hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56079. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56080. +hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56081. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56082. +inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56083. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56084. +link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56085. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56086. +fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56087. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56088. +always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56089. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56090. +export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56091. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56092. +exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56093. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56094. +include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56095. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56096. +prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56097. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56098. +file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56099. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56100. +hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56101. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56102. +compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56103. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56104. +predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56105. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56106. +postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56107. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56108. +predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56109. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56110. +postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56111. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  56112. +compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
  56113. +
  56114. +LTCC='$LTCC'
  56115. +LTCFLAGS='$LTCFLAGS'
  56116. +compiler='$compiler_DEFAULT'
  56117. +
  56118. +# Quote evaled strings.
  56119. +for var in NM \
  56120. +SED \
  56121. +GREP \
  56122. +EGREP \
  56123. +FGREP \
  56124. +LD \
  56125. +LN_S \
  56126. +lt_SP2NL \
  56127. +lt_NL2SP \
  56128. +reload_flag \
  56129. +deplibs_check_method \
  56130. +file_magic_cmd \
  56131. +AR \
  56132. +AR_FLAGS \
  56133. +STRIP \
  56134. +RANLIB \
  56135. +CC \
  56136. +CFLAGS \
  56137. +compiler \
  56138. +lt_cv_sys_global_symbol_pipe \
  56139. +lt_cv_sys_global_symbol_to_cdecl \
  56140. +lt_cv_sys_global_symbol_to_c_name_address \
  56141. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  56142. +SHELL \
  56143. +ECHO \
  56144. +lt_prog_compiler_no_builtin_flag \
  56145. +lt_prog_compiler_wl \
  56146. +lt_prog_compiler_pic \
  56147. +lt_prog_compiler_static \
  56148. +lt_cv_prog_compiler_c_o \
  56149. +need_locks \
  56150. +DSYMUTIL \
  56151. +NMEDIT \
  56152. +LIPO \
  56153. +OTOOL \
  56154. +OTOOL64 \
  56155. +shrext_cmds \
  56156. +export_dynamic_flag_spec \
  56157. +whole_archive_flag_spec \
  56158. +compiler_needs_object \
  56159. +with_gnu_ld \
  56160. +allow_undefined_flag \
  56161. +no_undefined_flag \
  56162. +hardcode_libdir_flag_spec \
  56163. +hardcode_libdir_flag_spec_ld \
  56164. +hardcode_libdir_separator \
  56165. +fix_srcfile_path \
  56166. +exclude_expsyms \
  56167. +include_expsyms \
  56168. +file_list_spec \
  56169. +variables_saved_for_relink \
  56170. +libname_spec \
  56171. +library_names_spec \
  56172. +soname_spec \
  56173. +finish_eval \
  56174. +old_striplib \
  56175. +striplib \
  56176. +compiler_lib_search_dirs \
  56177. +predep_objects \
  56178. +postdep_objects \
  56179. +predeps \
  56180. +postdeps \
  56181. +compiler_lib_search_path \
  56182. +LD_CXX \
  56183. +LD_F77 \
  56184. +compiler_CXX \
  56185. +compiler_F77 \
  56186. +lt_prog_compiler_no_builtin_flag_CXX \
  56187. +lt_prog_compiler_no_builtin_flag_F77 \
  56188. +lt_prog_compiler_wl_CXX \
  56189. +lt_prog_compiler_wl_F77 \
  56190. +lt_prog_compiler_pic_CXX \
  56191. +lt_prog_compiler_pic_F77 \
  56192. +lt_prog_compiler_static_CXX \
  56193. +lt_prog_compiler_static_F77 \
  56194. +lt_cv_prog_compiler_c_o_CXX \
  56195. +lt_cv_prog_compiler_c_o_F77 \
  56196. +export_dynamic_flag_spec_CXX \
  56197. +export_dynamic_flag_spec_F77 \
  56198. +whole_archive_flag_spec_CXX \
  56199. +whole_archive_flag_spec_F77 \
  56200. +compiler_needs_object_CXX \
  56201. +compiler_needs_object_F77 \
  56202. +with_gnu_ld_CXX \
  56203. +with_gnu_ld_F77 \
  56204. +allow_undefined_flag_CXX \
  56205. +allow_undefined_flag_F77 \
  56206. +no_undefined_flag_CXX \
  56207. +no_undefined_flag_F77 \
  56208. +hardcode_libdir_flag_spec_CXX \
  56209. +hardcode_libdir_flag_spec_F77 \
  56210. +hardcode_libdir_flag_spec_ld_CXX \
  56211. +hardcode_libdir_flag_spec_ld_F77 \
  56212. +hardcode_libdir_separator_CXX \
  56213. +hardcode_libdir_separator_F77 \
  56214. +fix_srcfile_path_CXX \
  56215. +fix_srcfile_path_F77 \
  56216. +exclude_expsyms_CXX \
  56217. +exclude_expsyms_F77 \
  56218. +include_expsyms_CXX \
  56219. +include_expsyms_F77 \
  56220. +file_list_spec_CXX \
  56221. +file_list_spec_F77 \
  56222. +compiler_lib_search_dirs_CXX \
  56223. +compiler_lib_search_dirs_F77 \
  56224. +predep_objects_CXX \
  56225. +predep_objects_F77 \
  56226. +postdep_objects_CXX \
  56227. +postdep_objects_F77 \
  56228. +predeps_CXX \
  56229. +predeps_F77 \
  56230. +postdeps_CXX \
  56231. +postdeps_F77 \
  56232. +compiler_lib_search_path_CXX \
  56233. +compiler_lib_search_path_F77; do
  56234. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  56235. + *[\\\\\\\`\\"\\\$]*)
  56236. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  56237. + ;;
  56238. + *)
  56239. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  56240. + ;;
  56241. + esac
  56242. +done
  56243. -typedef mp_limb_t ac__type_new_;
  56244. -int
  56245. -main ()
  56246. -{
  56247. -if ((ac__type_new_ *) 0)
  56248. - return 0;
  56249. -if (sizeof (ac__type_new_))
  56250. - return 0;
  56251. - ;
  56252. - return 0;
  56253. -}
  56254. -_ACEOF
  56255. -rm -f conftest.$ac_objext
  56256. -if { (ac_try="$ac_compile"
  56257. -case "(($ac_try" in
  56258. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56259. - *) ac_try_echo=$ac_try;;
  56260. +# Double-quote double-evaled strings.
  56261. +for var in reload_cmds \
  56262. +old_postinstall_cmds \
  56263. +old_postuninstall_cmds \
  56264. +old_archive_cmds \
  56265. +extract_expsyms_cmds \
  56266. +old_archive_from_new_cmds \
  56267. +old_archive_from_expsyms_cmds \
  56268. +archive_cmds \
  56269. +archive_expsym_cmds \
  56270. +module_cmds \
  56271. +module_expsym_cmds \
  56272. +export_symbols_cmds \
  56273. +prelink_cmds \
  56274. +postinstall_cmds \
  56275. +postuninstall_cmds \
  56276. +finish_cmds \
  56277. +sys_lib_search_path_spec \
  56278. +sys_lib_dlsearch_path_spec \
  56279. +old_archive_cmds_CXX \
  56280. +old_archive_cmds_F77 \
  56281. +old_archive_from_new_cmds_CXX \
  56282. +old_archive_from_new_cmds_F77 \
  56283. +old_archive_from_expsyms_cmds_CXX \
  56284. +old_archive_from_expsyms_cmds_F77 \
  56285. +archive_cmds_CXX \
  56286. +archive_cmds_F77 \
  56287. +archive_expsym_cmds_CXX \
  56288. +archive_expsym_cmds_F77 \
  56289. +module_cmds_CXX \
  56290. +module_cmds_F77 \
  56291. +module_expsym_cmds_CXX \
  56292. +module_expsym_cmds_F77 \
  56293. +export_symbols_cmds_CXX \
  56294. +export_symbols_cmds_F77 \
  56295. +prelink_cmds_CXX \
  56296. +prelink_cmds_F77; do
  56297. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  56298. + *[\\\\\\\`\\"\\\$]*)
  56299. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  56300. + ;;
  56301. + *)
  56302. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  56303. + ;;
  56304. + esac
  56305. +done
  56306. +
  56307. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  56308. +case \$lt_ECHO in
  56309. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  56310. + ;;
  56311. esac
  56312. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56313. - (eval "$ac_compile") 2>conftest.er1
  56314. - ac_status=$?
  56315. - grep -v '^ *+' conftest.er1 >conftest.err
  56316. - rm -f conftest.er1
  56317. - cat conftest.err >&5
  56318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56319. - (exit $ac_status); } && {
  56320. - test -z "$ac_c_werror_flag" ||
  56321. - test ! -s conftest.err
  56322. - } && test -s conftest.$ac_objext; then
  56323. - ac_cv_type_mp_limb_t=yes
  56324. -else
  56325. - echo "$as_me: failed program was:" >&5
  56326. -sed 's/^/| /' conftest.$ac_ext >&5
  56327. - ac_cv_type_mp_limb_t=no
  56328. -fi
  56329. +ac_aux_dir='$ac_aux_dir'
  56330. +xsi_shell='$xsi_shell'
  56331. +lt_shell_append='$lt_shell_append'
  56332. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56333. +# See if we are running on zsh, and set the options which allow our
  56334. +# commands through without removal of \ escapes INIT.
  56335. +if test -n "\${ZSH_VERSION+set}" ; then
  56336. + setopt NO_GLOB_SUBST
  56337. fi
  56338. -{ echo "$as_me:$LINENO: result: $ac_cv_type_mp_limb_t" >&5
  56339. -echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6; }
  56340. -# The cast to long int works around a bug in the HP C Compiler
  56341. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  56342. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  56343. -# This bug is HP SR number 8606223364.
  56344. -{ echo "$as_me:$LINENO: checking size of mp_limb_t" >&5
  56345. -echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6; }
  56346. -if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
  56347. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56348. -else
  56349. - if test "$cross_compiling" = yes; then
  56350. - # Depending upon the size, compute the lo and hi bounds.
  56351. -cat >conftest.$ac_ext <<_ACEOF
  56352. -/* confdefs.h. */
  56353. -_ACEOF
  56354. -cat confdefs.h >>conftest.$ac_ext
  56355. -cat >>conftest.$ac_ext <<_ACEOF
  56356. -/* end confdefs.h. */
  56357. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56358. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56359. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56360. -#define GMP_LIMB_BITS 123
  56361. -$DEFN_LONG_LONG_LIMB
  56362. -#include "$srcdir/gmp-h.in"
  56363. + PACKAGE='$PACKAGE'
  56364. + VERSION='$VERSION'
  56365. + TIMESTAMP='$TIMESTAMP'
  56366. + RM='$RM'
  56367. + ofile='$ofile'
  56368. - typedef mp_limb_t ac__type_sizeof_;
  56369. -int
  56370. -main ()
  56371. -{
  56372. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  56373. -test_array [0] = 0
  56374. - ;
  56375. - return 0;
  56376. -}
  56377. -_ACEOF
  56378. -rm -f conftest.$ac_objext
  56379. -if { (ac_try="$ac_compile"
  56380. -case "(($ac_try" in
  56381. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56382. - *) ac_try_echo=$ac_try;;
  56383. -esac
  56384. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56385. - (eval "$ac_compile") 2>conftest.er1
  56386. - ac_status=$?
  56387. - grep -v '^ *+' conftest.er1 >conftest.err
  56388. - rm -f conftest.er1
  56389. - cat conftest.err >&5
  56390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56391. - (exit $ac_status); } && {
  56392. - test -z "$ac_c_werror_flag" ||
  56393. - test ! -s conftest.err
  56394. - } && test -s conftest.$ac_objext; then
  56395. - ac_lo=0 ac_mid=0
  56396. - while :; do
  56397. - cat >conftest.$ac_ext <<_ACEOF
  56398. -/* confdefs.h. */
  56399. -_ACEOF
  56400. -cat confdefs.h >>conftest.$ac_ext
  56401. -cat >>conftest.$ac_ext <<_ACEOF
  56402. -/* end confdefs.h. */
  56403. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56404. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56405. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56406. -#define GMP_LIMB_BITS 123
  56407. -$DEFN_LONG_LONG_LIMB
  56408. -#include "$srcdir/gmp-h.in"
  56409. - typedef mp_limb_t ac__type_sizeof_;
  56410. -int
  56411. -main ()
  56412. -{
  56413. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  56414. -test_array [0] = 0
  56415. - ;
  56416. - return 0;
  56417. -}
  56418. -_ACEOF
  56419. -rm -f conftest.$ac_objext
  56420. -if { (ac_try="$ac_compile"
  56421. -case "(($ac_try" in
  56422. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56423. - *) ac_try_echo=$ac_try;;
  56424. -esac
  56425. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56426. - (eval "$ac_compile") 2>conftest.er1
  56427. - ac_status=$?
  56428. - grep -v '^ *+' conftest.er1 >conftest.err
  56429. - rm -f conftest.er1
  56430. - cat conftest.err >&5
  56431. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56432. - (exit $ac_status); } && {
  56433. - test -z "$ac_c_werror_flag" ||
  56434. - test ! -s conftest.err
  56435. - } && test -s conftest.$ac_objext; then
  56436. - ac_hi=$ac_mid; break
  56437. -else
  56438. - echo "$as_me: failed program was:" >&5
  56439. -sed 's/^/| /' conftest.$ac_ext >&5
  56440. - ac_lo=`expr $ac_mid + 1`
  56441. - if test $ac_lo -le $ac_mid; then
  56442. - ac_lo= ac_hi=
  56443. - break
  56444. - fi
  56445. - ac_mid=`expr 2 '*' $ac_mid + 1`
  56446. -fi
  56447. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56448. - done
  56449. -else
  56450. - echo "$as_me: failed program was:" >&5
  56451. -sed 's/^/| /' conftest.$ac_ext >&5
  56452. - cat >conftest.$ac_ext <<_ACEOF
  56453. -/* confdefs.h. */
  56454. _ACEOF
  56455. -cat confdefs.h >>conftest.$ac_ext
  56456. -cat >>conftest.$ac_ext <<_ACEOF
  56457. -/* end confdefs.h. */
  56458. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56459. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56460. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56461. -#define GMP_LIMB_BITS 123
  56462. -$DEFN_LONG_LONG_LIMB
  56463. -#include "$srcdir/gmp-h.in"
  56464. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  56465. - typedef mp_limb_t ac__type_sizeof_;
  56466. -int
  56467. -main ()
  56468. -{
  56469. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  56470. -test_array [0] = 0
  56471. +# Handling of arguments.
  56472. +for ac_config_target in $ac_config_targets
  56473. +do
  56474. + case $ac_config_target in
  56475. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  56476. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  56477. + "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
  56478. + "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
  56479. + "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
  56480. + "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
  56481. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  56482. + "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
  56483. + "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
  56484. + "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
  56485. + "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
  56486. + "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
  56487. + "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
  56488. + "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
  56489. + "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
  56490. + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  56491. + "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
  56492. + "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
  56493. + "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
  56494. + "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
  56495. + "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
  56496. + "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
  56497. + "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
  56498. + "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
  56499. + "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
  56500. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  56501. + "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
  56502. + "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
  56503. + "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
  56504. + "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
  56505. + "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
  56506. + "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
  56507. - ;
  56508. - return 0;
  56509. -}
  56510. -_ACEOF
  56511. -rm -f conftest.$ac_objext
  56512. -if { (ac_try="$ac_compile"
  56513. -case "(($ac_try" in
  56514. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56515. - *) ac_try_echo=$ac_try;;
  56516. -esac
  56517. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56518. - (eval "$ac_compile") 2>conftest.er1
  56519. - ac_status=$?
  56520. - grep -v '^ *+' conftest.er1 >conftest.err
  56521. - rm -f conftest.er1
  56522. - cat conftest.err >&5
  56523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56524. - (exit $ac_status); } && {
  56525. - test -z "$ac_c_werror_flag" ||
  56526. - test ! -s conftest.err
  56527. - } && test -s conftest.$ac_objext; then
  56528. - ac_hi=-1 ac_mid=-1
  56529. - while :; do
  56530. - cat >conftest.$ac_ext <<_ACEOF
  56531. -/* confdefs.h. */
  56532. -_ACEOF
  56533. -cat confdefs.h >>conftest.$ac_ext
  56534. -cat >>conftest.$ac_ext <<_ACEOF
  56535. -/* end confdefs.h. */
  56536. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56537. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56538. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56539. -#define GMP_LIMB_BITS 123
  56540. -$DEFN_LONG_LONG_LIMB
  56541. -#include "$srcdir/gmp-h.in"
  56542. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  56543. + esac
  56544. +done
  56545. - typedef mp_limb_t ac__type_sizeof_;
  56546. -int
  56547. -main ()
  56548. -{
  56549. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  56550. -test_array [0] = 0
  56551. +# If the user did not use the arguments to specify the items to instantiate,
  56552. +# then the envvar interface is used. Set only those that are not.
  56553. +# We use the long form for the default assignment because of an extremely
  56554. +# bizarre bug on SunOS 4.1.3.
  56555. +if $ac_need_defaults; then
  56556. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  56557. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  56558. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  56559. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  56560. +fi
  56561. - ;
  56562. - return 0;
  56563. +# Have a temporary directory for convenience. Make it in the build tree
  56564. +# simply because there is no reason against having it here, and in addition,
  56565. +# creating and moving files from /tmp can sometimes cause problems.
  56566. +# Hook for its removal unless debugging.
  56567. +# Note that there is a small window in which the directory will not be cleaned:
  56568. +# after its creation but before its name has been assigned to `$tmp'.
  56569. +$debug ||
  56570. +{
  56571. + tmp=
  56572. + trap 'exit_status=$?
  56573. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  56574. +' 0
  56575. + trap 'as_fn_exit 1' 1 2 13 15
  56576. }
  56577. -_ACEOF
  56578. -rm -f conftest.$ac_objext
  56579. -if { (ac_try="$ac_compile"
  56580. -case "(($ac_try" in
  56581. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56582. - *) ac_try_echo=$ac_try;;
  56583. -esac
  56584. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56585. - (eval "$ac_compile") 2>conftest.er1
  56586. - ac_status=$?
  56587. - grep -v '^ *+' conftest.er1 >conftest.err
  56588. - rm -f conftest.er1
  56589. - cat conftest.err >&5
  56590. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56591. - (exit $ac_status); } && {
  56592. - test -z "$ac_c_werror_flag" ||
  56593. - test ! -s conftest.err
  56594. - } && test -s conftest.$ac_objext; then
  56595. - ac_lo=$ac_mid; break
  56596. -else
  56597. - echo "$as_me: failed program was:" >&5
  56598. -sed 's/^/| /' conftest.$ac_ext >&5
  56599. +# Create a (secure) tmp directory for tmp files.
  56600. - ac_hi=`expr '(' $ac_mid ')' - 1`
  56601. - if test $ac_mid -le $ac_hi; then
  56602. - ac_lo= ac_hi=
  56603. - break
  56604. - fi
  56605. - ac_mid=`expr 2 '*' $ac_mid`
  56606. -fi
  56607. +{
  56608. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  56609. + test -n "$tmp" && test -d "$tmp"
  56610. +} ||
  56611. +{
  56612. + tmp=./conf$$-$RANDOM
  56613. + (umask 077 && mkdir "$tmp")
  56614. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  56615. +
  56616. +# Set up the scripts for CONFIG_FILES section.
  56617. +# No need to generate them if there are no CONFIG_FILES.
  56618. +# This happens for instance with `./config.status config.h'.
  56619. +if test -n "$CONFIG_FILES"; then
  56620. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56621. - done
  56622. -else
  56623. - echo "$as_me: failed program was:" >&5
  56624. -sed 's/^/| /' conftest.$ac_ext >&5
  56625. - ac_lo= ac_hi=
  56626. +ac_cr=`echo X | tr X '\015'`
  56627. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  56628. +# But we know of no other shell where ac_cr would be empty at this
  56629. +# point, so we can use a bashism as a fallback.
  56630. +if test "x$ac_cr" = x; then
  56631. + eval ac_cr=\$\'\\r\'
  56632. fi
  56633. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  56634. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  56635. + ac_cs_awk_cr='\r'
  56636. +else
  56637. + ac_cs_awk_cr=$ac_cr
  56638. +fi
  56639. +
  56640. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  56641. +_ACEOF
  56642. +
  56643. +
  56644. +{
  56645. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  56646. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  56647. + echo "_ACEOF"
  56648. +} >conf$$subs.sh ||
  56649. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  56650. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  56651. +ac_delim='%!_!# '
  56652. +for ac_last_try in false false false false false :; do
  56653. + . ./conf$$subs.sh ||
  56654. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  56655. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56656. -fi
  56657. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  56658. + if test $ac_delim_n = $ac_delim_num; then
  56659. + break
  56660. + elif $ac_last_try; then
  56661. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  56662. + else
  56663. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  56664. + fi
  56665. +done
  56666. +rm -f conf$$subs.sh
  56667. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56668. -# Binary search between lo and hi bounds.
  56669. -while test "x$ac_lo" != "x$ac_hi"; do
  56670. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  56671. - cat >conftest.$ac_ext <<_ACEOF
  56672. -/* confdefs.h. */
  56673. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  56674. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  56675. _ACEOF
  56676. -cat confdefs.h >>conftest.$ac_ext
  56677. -cat >>conftest.$ac_ext <<_ACEOF
  56678. -/* end confdefs.h. */
  56679. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56680. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56681. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56682. -#define GMP_LIMB_BITS 123
  56683. -$DEFN_LONG_LONG_LIMB
  56684. -#include "$srcdir/gmp-h.in"
  56685. -
  56686. +sed -n '
  56687. +h
  56688. +s/^/S["/; s/!.*/"]=/
  56689. +p
  56690. +g
  56691. +s/^[^!]*!//
  56692. +:repl
  56693. +t repl
  56694. +s/'"$ac_delim"'$//
  56695. +t delim
  56696. +:nl
  56697. +h
  56698. +s/\(.\{148\}\)..*/\1/
  56699. +t more1
  56700. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  56701. +p
  56702. +n
  56703. +b repl
  56704. +:more1
  56705. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  56706. +p
  56707. +g
  56708. +s/.\{148\}//
  56709. +t nl
  56710. +:delim
  56711. +h
  56712. +s/\(.\{148\}\)..*/\1/
  56713. +t more2
  56714. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  56715. +p
  56716. +b
  56717. +:more2
  56718. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  56719. +p
  56720. +g
  56721. +s/.\{148\}//
  56722. +t delim
  56723. +' <conf$$subs.awk | sed '
  56724. +/^[^""]/{
  56725. + N
  56726. + s/\n//
  56727. +}
  56728. +' >>$CONFIG_STATUS || ac_write_fail=1
  56729. +rm -f conf$$subs.awk
  56730. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  56731. +_ACAWK
  56732. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  56733. + for (key in S) S_is_set[key] = 1
  56734. + FS = ""
  56735. - typedef mp_limb_t ac__type_sizeof_;
  56736. -int
  56737. -main ()
  56738. +}
  56739. {
  56740. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  56741. -test_array [0] = 0
  56742. + line = $ 0
  56743. + nfields = split(line, field, "@")
  56744. + substed = 0
  56745. + len = length(field[1])
  56746. + for (i = 2; i < nfields; i++) {
  56747. + key = field[i]
  56748. + keylen = length(key)
  56749. + if (S_is_set[key]) {
  56750. + value = S[key]
  56751. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  56752. + len += length(value) + length(field[++i])
  56753. + substed = 1
  56754. + } else
  56755. + len += 1 + keylen
  56756. + }
  56757. - ;
  56758. - return 0;
  56759. + print line
  56760. }
  56761. +
  56762. +_ACAWK
  56763. _ACEOF
  56764. -rm -f conftest.$ac_objext
  56765. -if { (ac_try="$ac_compile"
  56766. -case "(($ac_try" in
  56767. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56768. - *) ac_try_echo=$ac_try;;
  56769. -esac
  56770. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  56771. - (eval "$ac_compile") 2>conftest.er1
  56772. - ac_status=$?
  56773. - grep -v '^ *+' conftest.er1 >conftest.err
  56774. - rm -f conftest.er1
  56775. - cat conftest.err >&5
  56776. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56777. - (exit $ac_status); } && {
  56778. - test -z "$ac_c_werror_flag" ||
  56779. - test ! -s conftest.err
  56780. - } && test -s conftest.$ac_objext; then
  56781. - ac_hi=$ac_mid
  56782. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  56783. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  56784. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  56785. else
  56786. - echo "$as_me: failed program was:" >&5
  56787. -sed 's/^/| /' conftest.$ac_ext >&5
  56788. + cat
  56789. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  56790. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  56791. +_ACEOF
  56792. - ac_lo=`expr '(' $ac_mid ')' + 1`
  56793. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  56794. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  56795. +# trailing colons and then remove the whole line if VPATH becomes empty
  56796. +# (actually we leave an empty line to preserve line numbers).
  56797. +if test "x$srcdir" = x.; then
  56798. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  56799. +s/:*\$(srcdir):*/:/
  56800. +s/:*\${srcdir}:*/:/
  56801. +s/:*@srcdir@:*/:/
  56802. +s/^\([^=]*=[ ]*\):*/\1/
  56803. +s/:*$//
  56804. +s/^[^=]*=[ ]*$//
  56805. +}'
  56806. fi
  56807. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56808. -done
  56809. -case $ac_lo in
  56810. -?*) ac_cv_sizeof_mp_limb_t=$ac_lo;;
  56811. -'') if test "$ac_cv_type_mp_limb_t" = yes; then
  56812. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t)
  56813. -See \`config.log' for more details." >&5
  56814. -echo "$as_me: error: cannot compute sizeof (mp_limb_t)
  56815. -See \`config.log' for more details." >&2;}
  56816. - { (exit 77); exit 77; }; }
  56817. - else
  56818. - ac_cv_sizeof_mp_limb_t=0
  56819. - fi ;;
  56820. -esac
  56821. -else
  56822. - cat >conftest.$ac_ext <<_ACEOF
  56823. -/* confdefs.h. */
  56824. -_ACEOF
  56825. -cat confdefs.h >>conftest.$ac_ext
  56826. -cat >>conftest.$ac_ext <<_ACEOF
  56827. -/* end confdefs.h. */
  56828. -#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
  56829. -#define GMP_NAIL_BITS $GMP_NAIL_BITS
  56830. -#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
  56831. -#define GMP_LIMB_BITS 123
  56832. -$DEFN_LONG_LONG_LIMB
  56833. -#include "$srcdir/gmp-h.in"
  56834. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  56835. +fi # test -n "$CONFIG_FILES"
  56836. +# Set up the scripts for CONFIG_HEADERS section.
  56837. +# No need to generate them if there are no CONFIG_HEADERS.
  56838. +# This happens for instance with `./config.status Makefile'.
  56839. +if test -n "$CONFIG_HEADERS"; then
  56840. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  56841. +BEGIN {
  56842. +_ACEOF
  56843. - typedef mp_limb_t ac__type_sizeof_;
  56844. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  56845. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  56846. -#include <stdio.h>
  56847. -#include <stdlib.h>
  56848. -int
  56849. -main ()
  56850. -{
  56851. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  56852. +# here-document in config.status, that substitutes the proper values into
  56853. +# config.h.in to produce config.h.
  56854. - FILE *f = fopen ("conftest.val", "w");
  56855. - if (! f)
  56856. - return 1;
  56857. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  56858. - {
  56859. - long int i = longval ();
  56860. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  56861. - return 1;
  56862. - fprintf (f, "%ld\n", i);
  56863. - }
  56864. +# Create a delimiter string that does not exist in confdefs.h, to ease
  56865. +# handling of long lines.
  56866. +ac_delim='%!_!# '
  56867. +for ac_last_try in false false :; do
  56868. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  56869. + if test -z "$ac_t"; then
  56870. + break
  56871. + elif $ac_last_try; then
  56872. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  56873. else
  56874. - {
  56875. - unsigned long int i = ulongval ();
  56876. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  56877. - return 1;
  56878. - fprintf (f, "%lu\n", i);
  56879. - }
  56880. - return ferror (f) || fclose (f) != 0;
  56881. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  56882. + fi
  56883. +done
  56884. - ;
  56885. - return 0;
  56886. +# For the awk script, D is an array of macro values keyed by name,
  56887. +# likewise P contains macro parameters if any. Preserve backslash
  56888. +# newline sequences.
  56889. +
  56890. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  56891. +sed -n '
  56892. +s/.\{148\}/&'"$ac_delim"'/g
  56893. +t rset
  56894. +:rset
  56895. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  56896. +t def
  56897. +d
  56898. +:def
  56899. +s/\\$//
  56900. +t bsnl
  56901. +s/["\\]/\\&/g
  56902. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  56903. +D["\1"]=" \3"/p
  56904. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  56905. +d
  56906. +:bsnl
  56907. +s/["\\]/\\&/g
  56908. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  56909. +D["\1"]=" \3\\\\\\n"\\/p
  56910. +t cont
  56911. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  56912. +t cont
  56913. +d
  56914. +:cont
  56915. +n
  56916. +s/.\{148\}/&'"$ac_delim"'/g
  56917. +t clear
  56918. +:clear
  56919. +s/\\$//
  56920. +t bsnlc
  56921. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  56922. +d
  56923. +:bsnlc
  56924. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  56925. +b cont
  56926. +' <confdefs.h | sed '
  56927. +s/'"$ac_delim"'/"\\\
  56928. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  56929. +
  56930. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  56931. + for (key in D) D_is_set[key] = 1
  56932. + FS = ""
  56933. +}
  56934. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  56935. + line = \$ 0
  56936. + split(line, arg, " ")
  56937. + if (arg[1] == "#") {
  56938. + defundef = arg[2]
  56939. + mac1 = arg[3]
  56940. + } else {
  56941. + defundef = substr(arg[1], 2)
  56942. + mac1 = arg[2]
  56943. + }
  56944. + split(mac1, mac2, "(") #)
  56945. + macro = mac2[1]
  56946. + prefix = substr(line, 1, index(line, defundef) - 1)
  56947. + if (D_is_set[macro]) {
  56948. + # Preserve the white space surrounding the "#".
  56949. + print prefix "define", macro P[macro] D[macro]
  56950. + next
  56951. + } else {
  56952. + # Replace #undef with comments. This is necessary, for example,
  56953. + # in the case of _POSIX_SOURCE, which is predefined and required
  56954. + # on some systems where configure will not decide to define it.
  56955. + if (defundef == "undef") {
  56956. + print "/*", prefix defundef, macro, "*/"
  56957. + next
  56958. + }
  56959. + }
  56960. }
  56961. +{ print }
  56962. +_ACAWK
  56963. _ACEOF
  56964. -rm -f conftest$ac_exeext
  56965. -if { (ac_try="$ac_link"
  56966. -case "(($ac_try" in
  56967. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  56968. - *) ac_try_echo=$ac_try;;
  56969. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  56970. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  56971. +fi # test -n "$CONFIG_HEADERS"
  56972. +
  56973. +
  56974. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  56975. +shift
  56976. +for ac_tag
  56977. +do
  56978. + case $ac_tag in
  56979. + :[FHLC]) ac_mode=$ac_tag; continue;;
  56980. + esac
  56981. + case $ac_mode$ac_tag in
  56982. + :[FHL]*:*);;
  56983. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  56984. + :[FH]-) ac_tag=-:-;;
  56985. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  56986. + esac
  56987. + ac_save_IFS=$IFS
  56988. + IFS=:
  56989. + set x $ac_tag
  56990. + IFS=$ac_save_IFS
  56991. + shift
  56992. + ac_file=$1
  56993. + shift
  56994. +
  56995. + case $ac_mode in
  56996. + :L) ac_source=$1;;
  56997. + :[FH])
  56998. + ac_file_inputs=
  56999. + for ac_f
  57000. + do
  57001. + case $ac_f in
  57002. + -) ac_f="$tmp/stdin";;
  57003. + *) # Look for the file first in the build tree, then in the source tree
  57004. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  57005. + # because $ac_f cannot contain `:'.
  57006. + test -f "$ac_f" ||
  57007. + case $ac_f in
  57008. + [\\/$]*) false;;
  57009. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  57010. + esac ||
  57011. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  57012. + esac
  57013. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  57014. + as_fn_append ac_file_inputs " '$ac_f'"
  57015. + done
  57016. +
  57017. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  57018. + # use $as_me), people would be surprised to read:
  57019. + # /* config.h. Generated by config.status. */
  57020. + configure_input='Generated from '`
  57021. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  57022. + `' by configure.'
  57023. + if test x"$ac_file" != x-; then
  57024. + configure_input="$ac_file. $configure_input"
  57025. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  57026. +$as_echo "$as_me: creating $ac_file" >&6;}
  57027. + fi
  57028. + # Neutralize special characters interpreted by sed in replacement strings.
  57029. + case $configure_input in #(
  57030. + *\&* | *\|* | *\\* )
  57031. + ac_sed_conf_input=`$as_echo "$configure_input" |
  57032. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  57033. + *) ac_sed_conf_input=$configure_input;;
  57034. + esac
  57035. +
  57036. + case $ac_tag in
  57037. + *:-:* | *:-) cat >"$tmp/stdin" \
  57038. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  57039. + esac
  57040. + ;;
  57041. + esac
  57042. +
  57043. + ac_dir=`$as_dirname -- "$ac_file" ||
  57044. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  57045. + X"$ac_file" : 'X\(//\)[^/]' \| \
  57046. + X"$ac_file" : 'X\(//\)$' \| \
  57047. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  57048. +$as_echo X"$ac_file" |
  57049. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  57050. + s//\1/
  57051. + q
  57052. + }
  57053. + /^X\(\/\/\)[^/].*/{
  57054. + s//\1/
  57055. + q
  57056. + }
  57057. + /^X\(\/\/\)$/{
  57058. + s//\1/
  57059. + q
  57060. + }
  57061. + /^X\(\/\).*/{
  57062. + s//\1/
  57063. + q
  57064. + }
  57065. + s/.*/./; q'`
  57066. + as_dir="$ac_dir"; as_fn_mkdir_p
  57067. + ac_builddir=.
  57068. +
  57069. +case "$ac_dir" in
  57070. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  57071. +*)
  57072. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  57073. + # A ".." for each directory in $ac_dir_suffix.
  57074. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  57075. + case $ac_top_builddir_sub in
  57076. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  57077. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  57078. + esac ;;
  57079. esac
  57080. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57081. - (eval "$ac_link") 2>&5
  57082. - ac_status=$?
  57083. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57084. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  57085. - { (case "(($ac_try" in
  57086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57087. - *) ac_try_echo=$ac_try;;
  57088. +ac_abs_top_builddir=$ac_pwd
  57089. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  57090. +# for backward compatibility:
  57091. +ac_top_builddir=$ac_top_build_prefix
  57092. +
  57093. +case $srcdir in
  57094. + .) # We are building in place.
  57095. + ac_srcdir=.
  57096. + ac_top_srcdir=$ac_top_builddir_sub
  57097. + ac_abs_top_srcdir=$ac_pwd ;;
  57098. + [\\/]* | ?:[\\/]* ) # Absolute name.
  57099. + ac_srcdir=$srcdir$ac_dir_suffix;
  57100. + ac_top_srcdir=$srcdir
  57101. + ac_abs_top_srcdir=$srcdir ;;
  57102. + *) # Relative name.
  57103. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  57104. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  57105. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  57106. esac
  57107. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57108. - (eval "$ac_try") 2>&5
  57109. - ac_status=$?
  57110. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57111. - (exit $ac_status); }; }; then
  57112. - ac_cv_sizeof_mp_limb_t=`cat conftest.val`
  57113. -else
  57114. - echo "$as_me: program exited with status $ac_status" >&5
  57115. -echo "$as_me: failed program was:" >&5
  57116. -sed 's/^/| /' conftest.$ac_ext >&5
  57117. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  57118. -( exit $ac_status )
  57119. -if test "$ac_cv_type_mp_limb_t" = yes; then
  57120. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t)
  57121. -See \`config.log' for more details." >&5
  57122. -echo "$as_me: error: cannot compute sizeof (mp_limb_t)
  57123. -See \`config.log' for more details." >&2;}
  57124. - { (exit 77); exit 77; }; }
  57125. - else
  57126. - ac_cv_sizeof_mp_limb_t=0
  57127. - fi
  57128. -fi
  57129. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  57130. -fi
  57131. -rm -f conftest.val
  57132. -fi
  57133. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_mp_limb_t" >&5
  57134. -echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6; }
  57135. + case $ac_mode in
  57136. + :F)
  57137. + #
  57138. + # CONFIG_FILE
  57139. + #
  57140. + case $INSTALL in
  57141. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  57142. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  57143. + esac
  57144. + ac_MKDIR_P=$MKDIR_P
  57145. + case $MKDIR_P in
  57146. + [\\/$]* | ?:[\\/]* ) ;;
  57147. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  57148. + esac
  57149. +_ACEOF
  57150. -cat >>confdefs.h <<_ACEOF
  57151. -#define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
  57152. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  57153. +# If the template does not know about datarootdir, expand it.
  57154. +# FIXME: This hack should be removed a few years after 2.60.
  57155. +ac_datarootdir_hack=; ac_datarootdir_seen=
  57156. +ac_sed_dataroot='
  57157. +/datarootdir/ {
  57158. + p
  57159. + q
  57160. +}
  57161. +/@datadir@/p
  57162. +/@docdir@/p
  57163. +/@infodir@/p
  57164. +/@localedir@/p
  57165. +/@mandir@/p'
  57166. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  57167. +*datarootdir*) ac_datarootdir_seen=yes;;
  57168. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  57169. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  57170. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  57171. +_ACEOF
  57172. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  57173. + ac_datarootdir_hack='
  57174. + s&@datadir@&$datadir&g
  57175. + s&@docdir@&$docdir&g
  57176. + s&@infodir@&$infodir&g
  57177. + s&@localedir@&$localedir&g
  57178. + s&@mandir@&$mandir&g
  57179. + s&\\\${datarootdir}&$datarootdir&g' ;;
  57180. +esac
  57181. +_ACEOF
  57182. +
  57183. +# Neutralize VPATH when `$srcdir' = `.'.
  57184. +# Shell code in configure.ac might set extrasub.
  57185. +# FIXME: do we really want to maintain this feature?
  57186. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  57187. +ac_sed_extra="$ac_vpsub
  57188. +$extrasub
  57189. _ACEOF
  57190. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  57191. +:t
  57192. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  57193. +s|@configure_input@|$ac_sed_conf_input|;t t
  57194. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  57195. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  57196. +s&@srcdir@&$ac_srcdir&;t t
  57197. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  57198. +s&@top_srcdir@&$ac_top_srcdir&;t t
  57199. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  57200. +s&@builddir@&$ac_builddir&;t t
  57201. +s&@abs_builddir@&$ac_abs_builddir&;t t
  57202. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  57203. +s&@INSTALL@&$ac_INSTALL&;t t
  57204. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  57205. +$ac_datarootdir_hack
  57206. +"
  57207. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  57208. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  57209. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  57210. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  57211. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  57212. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  57213. +which seems to be undefined. Please make sure it is defined." >&5
  57214. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  57215. +which seems to be undefined. Please make sure it is defined." >&2;}
  57216. -if test "$ac_cv_sizeof_mp_limb_t" = 0; then
  57217. - { { echo "$as_me:$LINENO: error: Oops, mp_limb_t doesn't seem to work" >&5
  57218. -echo "$as_me: error: Oops, mp_limb_t doesn't seem to work" >&2;}
  57219. - { (exit 1); exit 1; }; }
  57220. -fi
  57221. -BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
  57222. + rm -f "$tmp/stdin"
  57223. + case $ac_file in
  57224. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  57225. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  57226. + esac \
  57227. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  57228. + ;;
  57229. + :H)
  57230. + #
  57231. + # CONFIG_HEADER
  57232. + #
  57233. + if test x"$ac_file" != x-; then
  57234. + {
  57235. + $as_echo "/* $configure_input */" \
  57236. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  57237. + } >"$tmp/config.h" \
  57238. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  57239. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  57240. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  57241. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  57242. + else
  57243. + rm -f "$ac_file"
  57244. + mv "$tmp/config.h" "$ac_file" \
  57245. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  57246. + fi
  57247. + else
  57248. + $as_echo "/* $configure_input */" \
  57249. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  57250. + || as_fn_error "could not create -" "$LINENO" 5
  57251. + fi
  57252. +# Compute "$ac_file"'s index in $config_headers.
  57253. +_am_arg="$ac_file"
  57254. +_am_stamp_count=1
  57255. +for _am_header in $config_headers :; do
  57256. + case $_am_header in
  57257. + $_am_arg | $_am_arg:* )
  57258. + break ;;
  57259. + * )
  57260. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  57261. + esac
  57262. +done
  57263. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  57264. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  57265. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  57266. + X"$_am_arg" : 'X\(//\)$' \| \
  57267. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  57268. +$as_echo X"$_am_arg" |
  57269. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  57270. + s//\1/
  57271. + q
  57272. + }
  57273. + /^X\(\/\/\)[^/].*/{
  57274. + s//\1/
  57275. + q
  57276. + }
  57277. + /^X\(\/\/\)$/{
  57278. + s//\1/
  57279. + q
  57280. + }
  57281. + /^X\(\/\).*/{
  57282. + s//\1/
  57283. + q
  57284. + }
  57285. + s/.*/./; q'`/stamp-h$_am_stamp_count
  57286. + ;;
  57287. + :L)
  57288. + #
  57289. + # CONFIG_LINK
  57290. + #
  57291. + if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  57292. + :
  57293. + else
  57294. + # Prefer the file from the source tree if names are identical.
  57295. + if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  57296. + ac_source=$srcdir/$ac_source
  57297. + fi
  57298. -echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
  57299. + { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  57300. +$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  57301. + if test ! -r "$ac_source"; then
  57302. + as_fn_error "$ac_source: file not found" "$LINENO" 5
  57303. + fi
  57304. + rm -f "$ac_file"
  57305. -# Check compiler limb size matches gmp-mparam.h
  57306. -#
  57307. -# FIXME: Some of the cycle counter objects in the tune directory depend on
  57308. -# the size of ulong, it'd be possible to check that here, though a mismatch
  57309. -# probably wouldn't want to be fatal, none of the libgmp assembler code
  57310. -# depends on ulong.
  57311. -#
  57312. -mparam_bits=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
  57313. -if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
  57314. - if test "$test_CFLAGS" = set; then
  57315. - { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  57316. -in this configuration expects $mparam_bits bits.
  57317. -You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
  57318. -intended ABI, see \"ABI and ISA\" in the manual." >&5
  57319. -echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  57320. -in this configuration expects $mparam_bits bits.
  57321. -You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
  57322. -intended ABI, see \"ABI and ISA\" in the manual." >&2;}
  57323. - { (exit 1); exit 1; }; }
  57324. - else
  57325. - { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  57326. -in this configuration expects $mparam_bits bits." >&5
  57327. -echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
  57328. -in this configuration expects $mparam_bits bits." >&2;}
  57329. - { (exit 1); exit 1; }; }
  57330. + # Try a relative symlink, then a hard link, then a copy.
  57331. + case $srcdir in
  57332. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  57333. + *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  57334. + esac
  57335. + ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  57336. + ln "$ac_source" "$ac_file" 2>/dev/null ||
  57337. + cp -p "$ac_source" "$ac_file" ||
  57338. + as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  57339. fi
  57340. -fi
  57341. + ;;
  57342. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  57343. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  57344. + ;;
  57345. + esac
  57346. -echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
  57347. + case $ac_file$ac_mode in
  57348. + "libtool":C)
  57349. + # See if we are running on zsh, and set the options which allow our
  57350. + # commands through without removal of \ escapes.
  57351. + if test -n "${ZSH_VERSION+set}" ; then
  57352. + setopt NO_GLOB_SUBST
  57353. + fi
  57354. -echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
  57355. + cfgfile="${ofile}T"
  57356. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  57357. + $RM "$cfgfile"
  57358. + cat <<_LT_EOF >> "$cfgfile"
  57359. +#! $SHELL
  57360. -echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
  57361. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  57362. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  57363. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  57364. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  57365. +#
  57366. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  57367. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  57368. +# Written by Gordon Matzigkeit, 1996
  57369. +#
  57370. +# This file is part of GNU Libtool.
  57371. +#
  57372. +# GNU Libtool is free software; you can redistribute it and/or
  57373. +# modify it under the terms of the GNU General Public License as
  57374. +# published by the Free Software Foundation; either version 2 of
  57375. +# the License, or (at your option) any later version.
  57376. +#
  57377. +# As a special exception to the GNU General Public License,
  57378. +# if you distribute this file as part of a program or library that
  57379. +# is built using GNU Libtool, you may include this file under the
  57380. +# same distribution terms that you use for the rest of that program.
  57381. +#
  57382. +# GNU Libtool is distributed in the hope that it will be useful,
  57383. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57384. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57385. +# GNU General Public License for more details.
  57386. +#
  57387. +# You should have received a copy of the GNU General Public License
  57388. +# along with GNU Libtool; see the file COPYING. If not, a copy
  57389. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  57390. +# obtained by writing to the Free Software Foundation, Inc.,
  57391. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  57392. +# The names of the tagged configurations supported by this script.
  57393. +available_tags="CXX F77 "
  57394. -# Exclude the mpn random functions from mpbsd since that would drag in the
  57395. -# top-level rand things, all of which are unnecessary for libmp. There's
  57396. -# other unnecessary objects too actually, if we could be bothered figuring
  57397. -# out exactly which they are.
  57398. -#
  57399. -mpn_objs_in_libmp=
  57400. -for i in $mpn_objs_in_libgmp; do
  57401. - case $i in
  57402. - *random*) ;;
  57403. - *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
  57404. - esac
  57405. -done
  57406. +# ### BEGIN LIBTOOL CONFIG
  57407. +# A BSD- or MS-compatible name lister.
  57408. +NM=$lt_NM
  57409. +# Assembler program.
  57410. +AS=$AS
  57411. +# DLL creation program.
  57412. +DLLTOOL=$DLLTOOL
  57413. +# Object dumper program.
  57414. +OBJDUMP=$OBJDUMP
  57415. +# Which release of libtool.m4 was used?
  57416. +macro_version=$macro_version
  57417. +macro_revision=$macro_revision
  57418. +# Whether or not to build shared libraries.
  57419. +build_libtool_libs=$enable_shared
  57420. -# A recompiled sqr_basecase for use in the tune program, if necessary.
  57421. -TUNE_SQR_OBJ=
  57422. -test -d tune || mkdir tune
  57423. -case $sqr_basecase_source in
  57424. - *.asm)
  57425. - sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
  57426. - if test -n "$sqr_max"; then
  57427. - TUNE_SQR_OBJ=sqr_asm.o
  57428. +# Whether or not to build static libraries.
  57429. +build_old_libs=$enable_static
  57430. -cat >>confdefs.h <<_ACEOF
  57431. -#define TUNE_SQR_KARATSUBA_MAX $sqr_max
  57432. -_ACEOF
  57433. +# What type of objects to build.
  57434. +pic_mode=$pic_mode
  57435. - fi
  57436. - cat >tune/sqr_basecase.c <<EOF
  57437. -/* not sure that an empty file can compile, so put in a dummy */
  57438. -int sqr_basecase_dummy;
  57439. -EOF
  57440. - ;;
  57441. - *.c)
  57442. - TUNE_SQR_OBJ=
  57443. - cat >>confdefs.h <<\_ACEOF
  57444. -#define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
  57445. -_ACEOF
  57446. +# Whether or not to optimize for fast installation.
  57447. +fast_install=$enable_fast_install
  57448. - cat >tune/sqr_basecase.c <<EOF
  57449. -#define TUNE_PROGRAM_BUILD 1
  57450. -#define TUNE_PROGRAM_BUILD_SQR 1
  57451. -#include "mpn/sqr_basecase.c"
  57452. -EOF
  57453. - ;;
  57454. -esac
  57455. +# The host system.
  57456. +host_alias=$host_alias
  57457. +host=$host
  57458. +host_os=$host_os
  57459. +# The build system.
  57460. +build_alias=$build_alias
  57461. +build=$build
  57462. +build_os=$build_os
  57463. +# A sed program that does not truncate output.
  57464. +SED=$lt_SED
  57465. -# Configs for demos/pexpr.c.
  57466. -#
  57467. -ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
  57468. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  57469. +Xsed="\$SED -e 1s/^X//"
  57470. -case $ac_cv_func_clock in
  57471. -yes) HAVE_CLOCK_01=1
  57472. - ;;
  57473. -no) HAVE_CLOCK_01=0 ;;
  57474. -esac
  57475. +# A grep program that handles long lines.
  57476. +GREP=$lt_GREP
  57477. -case $ac_cv_func_cputime in
  57478. -yes) HAVE_CPUTIME_01=1
  57479. - ;;
  57480. -no) HAVE_CPUTIME_01=0 ;;
  57481. -esac
  57482. +# An ERE matcher.
  57483. +EGREP=$lt_EGREP
  57484. -case $ac_cv_func_getrusage in
  57485. -yes) HAVE_GETRUSAGE_01=1
  57486. - ;;
  57487. -no) HAVE_GETRUSAGE_01=0 ;;
  57488. -esac
  57489. +# A literal string matcher.
  57490. +FGREP=$lt_FGREP
  57491. -case $ac_cv_func_gettimeofday in
  57492. -yes) HAVE_GETTIMEOFDAY_01=1
  57493. - ;;
  57494. -no) HAVE_GETTIMEOFDAY_01=0 ;;
  57495. -esac
  57496. +# Whether we need soft or hard links.
  57497. +LN_S=$lt_LN_S
  57498. -case $ac_cv_func_sigaction in
  57499. -yes) HAVE_SIGACTION_01=1
  57500. - ;;
  57501. -no) HAVE_SIGACTION_01=0 ;;
  57502. -esac
  57503. +# What is the maximum length of a command?
  57504. +max_cmd_len=$max_cmd_len
  57505. -case $ac_cv_func_sigaltstack in
  57506. -yes) HAVE_SIGALTSTACK_01=1
  57507. - ;;
  57508. -no) HAVE_SIGALTSTACK_01=0 ;;
  57509. -esac
  57510. +# Object file suffix (normally "o").
  57511. +objext=$ac_objext
  57512. -case $ac_cv_func_sigstack in
  57513. -yes) HAVE_SIGSTACK_01=1
  57514. - ;;
  57515. -no) HAVE_SIGSTACK_01=0 ;;
  57516. -esac
  57517. +# Executable file suffix (normally "").
  57518. +exeext=$exeext
  57519. +# whether the shell understands "unset".
  57520. +lt_unset=$lt_unset
  57521. -case $ac_cv_header_sys_resource_h in
  57522. -yes) HAVE_SYS_RESOURCE_H_01=1
  57523. - ;;
  57524. -no) HAVE_SYS_RESOURCE_H_01=0 ;;
  57525. -esac
  57526. +# turn spaces into newlines.
  57527. +SP2NL=$lt_lt_SP2NL
  57528. +# turn newlines into spaces.
  57529. +NL2SP=$lt_lt_NL2SP
  57530. -{ echo "$as_me:$LINENO: checking for stack_t" >&5
  57531. -echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
  57532. -if test "${ac_cv_type_stack_t+set}" = set; then
  57533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57534. -else
  57535. - cat >conftest.$ac_ext <<_ACEOF
  57536. -/* confdefs.h. */
  57537. -_ACEOF
  57538. -cat confdefs.h >>conftest.$ac_ext
  57539. -cat >>conftest.$ac_ext <<_ACEOF
  57540. -/* end confdefs.h. */
  57541. -#include <signal.h>
  57542. +# How to create reloadable object files.
  57543. +reload_flag=$lt_reload_flag
  57544. +reload_cmds=$lt_reload_cmds
  57545. -typedef stack_t ac__type_new_;
  57546. -int
  57547. -main ()
  57548. -{
  57549. -if ((ac__type_new_ *) 0)
  57550. - return 0;
  57551. -if (sizeof (ac__type_new_))
  57552. - return 0;
  57553. - ;
  57554. - return 0;
  57555. -}
  57556. -_ACEOF
  57557. -rm -f conftest.$ac_objext
  57558. -if { (ac_try="$ac_compile"
  57559. -case "(($ac_try" in
  57560. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57561. - *) ac_try_echo=$ac_try;;
  57562. -esac
  57563. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57564. - (eval "$ac_compile") 2>conftest.er1
  57565. - ac_status=$?
  57566. - grep -v '^ *+' conftest.er1 >conftest.err
  57567. - rm -f conftest.er1
  57568. - cat conftest.err >&5
  57569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57570. - (exit $ac_status); } && {
  57571. - test -z "$ac_c_werror_flag" ||
  57572. - test ! -s conftest.err
  57573. - } && test -s conftest.$ac_objext; then
  57574. - ac_cv_type_stack_t=yes
  57575. -else
  57576. - echo "$as_me: failed program was:" >&5
  57577. -sed 's/^/| /' conftest.$ac_ext >&5
  57578. +# Method to check whether dependent libraries are shared objects.
  57579. +deplibs_check_method=$lt_deplibs_check_method
  57580. - ac_cv_type_stack_t=no
  57581. -fi
  57582. +# Command to use when deplibs_check_method == "file_magic".
  57583. +file_magic_cmd=$lt_file_magic_cmd
  57584. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57585. -fi
  57586. -{ echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
  57587. -echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
  57588. -if test $ac_cv_type_stack_t = yes; then
  57589. +# The archiver.
  57590. +AR=$lt_AR
  57591. +AR_FLAGS=$lt_AR_FLAGS
  57592. -cat >>confdefs.h <<_ACEOF
  57593. -#define HAVE_STACK_T 1
  57594. -_ACEOF
  57595. +# A symbol stripping program.
  57596. +STRIP=$lt_STRIP
  57597. +
  57598. +# Commands used to install an old-style archive.
  57599. +RANLIB=$lt_RANLIB
  57600. +old_postinstall_cmds=$lt_old_postinstall_cmds
  57601. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  57602. -HAVE_STACK_T_01=1
  57603. -else
  57604. - HAVE_STACK_T_01=0
  57605. -fi
  57606. +# A C compiler.
  57607. +LTCC=$lt_CC
  57608. +# LTCC compiler flags.
  57609. +LTCFLAGS=$lt_CFLAGS
  57610. +# Take the output of nm and produce a listing of raw symbols and C names.
  57611. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  57612. -# Configs for demos/calc directory
  57613. -#
  57614. -# AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
  57615. -# AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
  57616. -# directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
  57617. -# which would look very strange.
  57618. -#
  57619. -# -lcurses is required by libreadline. On a typical SVR4 style system this
  57620. -# normally doesn't have to be given explicitly, since libreadline.so will
  57621. -# have a NEEDED record for it. But if someone for some reason is using only
  57622. -# a static libreadline.a then we must give -lcurses. Readline (as of
  57623. -# version 4.3) doesn't use libtool, so we can't rely on a .la to cover
  57624. -# necessary dependencies.
  57625. -#
  57626. -# On a couple of systems we've seen libreadline available, but the headers
  57627. -# not in the default include path, so check for readline/readline.h. We've
  57628. -# also seen readline/history.h missing, not sure if that's just a broken
  57629. -# install or a very old version, but check that too.
  57630. -#
  57631. -ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
  57632. +# Transform the output of nm in a proper C declaration.
  57633. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  57634. -LIBCURSES=
  57635. -if test $with_readline != no; then
  57636. - { echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
  57637. -echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6; }
  57638. -if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
  57639. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57640. -else
  57641. - ac_check_lib_save_LIBS=$LIBS
  57642. -LIBS="-lncurses $LIBS"
  57643. -cat >conftest.$ac_ext <<_ACEOF
  57644. -/* confdefs.h. */
  57645. -_ACEOF
  57646. -cat confdefs.h >>conftest.$ac_ext
  57647. -cat >>conftest.$ac_ext <<_ACEOF
  57648. -/* end confdefs.h. */
  57649. +# Transform the output of nm in a C name address pair.
  57650. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  57651. -/* Override any GCC internal prototype to avoid an error.
  57652. - Use char because int might match the return type of a GCC
  57653. - builtin and then its argument prototype would still apply. */
  57654. -#ifdef __cplusplus
  57655. -extern "C"
  57656. -#endif
  57657. -char tputs ();
  57658. -int
  57659. -main ()
  57660. -{
  57661. -return tputs ();
  57662. - ;
  57663. - return 0;
  57664. -}
  57665. -_ACEOF
  57666. -rm -f conftest.$ac_objext conftest$ac_exeext
  57667. -if { (ac_try="$ac_link"
  57668. -case "(($ac_try" in
  57669. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57670. - *) ac_try_echo=$ac_try;;
  57671. -esac
  57672. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57673. - (eval "$ac_link") 2>conftest.er1
  57674. - ac_status=$?
  57675. - grep -v '^ *+' conftest.er1 >conftest.err
  57676. - rm -f conftest.er1
  57677. - cat conftest.err >&5
  57678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57679. - (exit $ac_status); } && {
  57680. - test -z "$ac_c_werror_flag" ||
  57681. - test ! -s conftest.err
  57682. - } && test -s conftest$ac_exeext &&
  57683. - $as_test_x conftest$ac_exeext; then
  57684. - ac_cv_lib_ncurses_tputs=yes
  57685. -else
  57686. - echo "$as_me: failed program was:" >&5
  57687. -sed 's/^/| /' conftest.$ac_ext >&5
  57688. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  57689. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  57690. - ac_cv_lib_ncurses_tputs=no
  57691. -fi
  57692. +# The name of the directory that contains temporary libtool files.
  57693. +objdir=$objdir
  57694. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  57695. - conftest$ac_exeext conftest.$ac_ext
  57696. -LIBS=$ac_check_lib_save_LIBS
  57697. -fi
  57698. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
  57699. -echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6; }
  57700. -if test $ac_cv_lib_ncurses_tputs = yes; then
  57701. - LIBCURSES=-lncurses
  57702. -else
  57703. - { echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
  57704. -echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6; }
  57705. -if test "${ac_cv_lib_curses_tputs+set}" = set; then
  57706. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57707. -else
  57708. - ac_check_lib_save_LIBS=$LIBS
  57709. -LIBS="-lcurses $LIBS"
  57710. -cat >conftest.$ac_ext <<_ACEOF
  57711. -/* confdefs.h. */
  57712. -_ACEOF
  57713. -cat confdefs.h >>conftest.$ac_ext
  57714. -cat >>conftest.$ac_ext <<_ACEOF
  57715. -/* end confdefs.h. */
  57716. +# Shell to use when invoking shell scripts.
  57717. +SHELL=$lt_SHELL
  57718. -/* Override any GCC internal prototype to avoid an error.
  57719. - Use char because int might match the return type of a GCC
  57720. - builtin and then its argument prototype would still apply. */
  57721. -#ifdef __cplusplus
  57722. -extern "C"
  57723. -#endif
  57724. -char tputs ();
  57725. -int
  57726. -main ()
  57727. -{
  57728. -return tputs ();
  57729. - ;
  57730. - return 0;
  57731. -}
  57732. -_ACEOF
  57733. -rm -f conftest.$ac_objext conftest$ac_exeext
  57734. -if { (ac_try="$ac_link"
  57735. -case "(($ac_try" in
  57736. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57737. - *) ac_try_echo=$ac_try;;
  57738. -esac
  57739. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57740. - (eval "$ac_link") 2>conftest.er1
  57741. - ac_status=$?
  57742. - grep -v '^ *+' conftest.er1 >conftest.err
  57743. - rm -f conftest.er1
  57744. - cat conftest.err >&5
  57745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57746. - (exit $ac_status); } && {
  57747. - test -z "$ac_c_werror_flag" ||
  57748. - test ! -s conftest.err
  57749. - } && test -s conftest$ac_exeext &&
  57750. - $as_test_x conftest$ac_exeext; then
  57751. - ac_cv_lib_curses_tputs=yes
  57752. -else
  57753. - echo "$as_me: failed program was:" >&5
  57754. -sed 's/^/| /' conftest.$ac_ext >&5
  57755. +# An echo program that does not interpret backslashes.
  57756. +ECHO=$lt_ECHO
  57757. - ac_cv_lib_curses_tputs=no
  57758. -fi
  57759. +# Used to examine libraries when file_magic_cmd begins with "file".
  57760. +MAGIC_CMD=$MAGIC_CMD
  57761. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  57762. - conftest$ac_exeext conftest.$ac_ext
  57763. -LIBS=$ac_check_lib_save_LIBS
  57764. -fi
  57765. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
  57766. -echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6; }
  57767. -if test $ac_cv_lib_curses_tputs = yes; then
  57768. - LIBCURSES=-lcurses
  57769. -fi
  57770. +# Must we lock files when doing compilation?
  57771. +need_locks=$lt_need_locks
  57772. -fi
  57773. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  57774. +DSYMUTIL=$lt_DSYMUTIL
  57775. -fi
  57776. +# Tool to change global to local symbols on Mac OS X.
  57777. +NMEDIT=$lt_NMEDIT
  57778. -use_readline=$with_readline
  57779. -if test $with_readline = detect; then
  57780. - use_readline=no
  57781. - { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
  57782. -echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
  57783. -if test "${ac_cv_lib_readline_readline+set}" = set; then
  57784. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57785. -else
  57786. - ac_check_lib_save_LIBS=$LIBS
  57787. -LIBS="-lreadline $LIBCURSES $LIBS"
  57788. -cat >conftest.$ac_ext <<_ACEOF
  57789. -/* confdefs.h. */
  57790. -_ACEOF
  57791. -cat confdefs.h >>conftest.$ac_ext
  57792. -cat >>conftest.$ac_ext <<_ACEOF
  57793. -/* end confdefs.h. */
  57794. +# Tool to manipulate fat objects and archives on Mac OS X.
  57795. +LIPO=$lt_LIPO
  57796. -/* Override any GCC internal prototype to avoid an error.
  57797. - Use char because int might match the return type of a GCC
  57798. - builtin and then its argument prototype would still apply. */
  57799. -#ifdef __cplusplus
  57800. -extern "C"
  57801. -#endif
  57802. -char readline ();
  57803. -int
  57804. -main ()
  57805. -{
  57806. -return readline ();
  57807. - ;
  57808. - return 0;
  57809. -}
  57810. -_ACEOF
  57811. -rm -f conftest.$ac_objext conftest$ac_exeext
  57812. -if { (ac_try="$ac_link"
  57813. -case "(($ac_try" in
  57814. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57815. - *) ac_try_echo=$ac_try;;
  57816. -esac
  57817. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57818. - (eval "$ac_link") 2>conftest.er1
  57819. - ac_status=$?
  57820. - grep -v '^ *+' conftest.er1 >conftest.err
  57821. - rm -f conftest.er1
  57822. - cat conftest.err >&5
  57823. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57824. - (exit $ac_status); } && {
  57825. - test -z "$ac_c_werror_flag" ||
  57826. - test ! -s conftest.err
  57827. - } && test -s conftest$ac_exeext &&
  57828. - $as_test_x conftest$ac_exeext; then
  57829. - ac_cv_lib_readline_readline=yes
  57830. -else
  57831. - echo "$as_me: failed program was:" >&5
  57832. -sed 's/^/| /' conftest.$ac_ext >&5
  57833. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  57834. +OTOOL=$lt_OTOOL
  57835. - ac_cv_lib_readline_readline=no
  57836. -fi
  57837. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  57838. +OTOOL64=$lt_OTOOL64
  57839. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  57840. - conftest$ac_exeext conftest.$ac_ext
  57841. -LIBS=$ac_check_lib_save_LIBS
  57842. -fi
  57843. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
  57844. -echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
  57845. -if test $ac_cv_lib_readline_readline = yes; then
  57846. - if test "${ac_cv_header_readline_readline_h+set}" = set; then
  57847. - { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
  57848. -echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
  57849. -if test "${ac_cv_header_readline_readline_h+set}" = set; then
  57850. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57851. -fi
  57852. -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
  57853. -echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
  57854. -else
  57855. - # Is the header compilable?
  57856. -{ echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
  57857. -echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
  57858. -cat >conftest.$ac_ext <<_ACEOF
  57859. -/* confdefs.h. */
  57860. -_ACEOF
  57861. -cat confdefs.h >>conftest.$ac_ext
  57862. -cat >>conftest.$ac_ext <<_ACEOF
  57863. -/* end confdefs.h. */
  57864. -$ac_includes_default
  57865. -#include <readline/readline.h>
  57866. -_ACEOF
  57867. -rm -f conftest.$ac_objext
  57868. -if { (ac_try="$ac_compile"
  57869. -case "(($ac_try" in
  57870. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57871. - *) ac_try_echo=$ac_try;;
  57872. -esac
  57873. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57874. - (eval "$ac_compile") 2>conftest.er1
  57875. - ac_status=$?
  57876. - grep -v '^ *+' conftest.er1 >conftest.err
  57877. - rm -f conftest.er1
  57878. - cat conftest.err >&5
  57879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57880. - (exit $ac_status); } && {
  57881. - test -z "$ac_c_werror_flag" ||
  57882. - test ! -s conftest.err
  57883. - } && test -s conftest.$ac_objext; then
  57884. - ac_header_compiler=yes
  57885. -else
  57886. - echo "$as_me: failed program was:" >&5
  57887. -sed 's/^/| /' conftest.$ac_ext >&5
  57888. +# Old archive suffix (normally "a").
  57889. +libext=$libext
  57890. - ac_header_compiler=no
  57891. -fi
  57892. +# Shared library suffix (normally ".so").
  57893. +shrext_cmds=$lt_shrext_cmds
  57894. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57895. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  57896. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  57897. +# The commands to extract the exported symbol list from a shared archive.
  57898. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  57899. -# Is the header present?
  57900. -{ echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
  57901. -echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
  57902. -cat >conftest.$ac_ext <<_ACEOF
  57903. -/* confdefs.h. */
  57904. -_ACEOF
  57905. -cat confdefs.h >>conftest.$ac_ext
  57906. -cat >>conftest.$ac_ext <<_ACEOF
  57907. -/* end confdefs.h. */
  57908. -#include <readline/readline.h>
  57909. -_ACEOF
  57910. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  57911. -case "(($ac_try" in
  57912. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  57913. - *) ac_try_echo=$ac_try;;
  57914. -esac
  57915. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  57916. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  57917. - ac_status=$?
  57918. - grep -v '^ *+' conftest.er1 >conftest.err
  57919. - rm -f conftest.er1
  57920. - cat conftest.err >&5
  57921. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57922. - (exit $ac_status); } >/dev/null && {
  57923. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  57924. - test ! -s conftest.err
  57925. - }; then
  57926. - ac_header_preproc=yes
  57927. -else
  57928. - echo "$as_me: failed program was:" >&5
  57929. -sed 's/^/| /' conftest.$ac_ext >&5
  57930. +# Variables whose values should be saved in libtool wrapper scripts and
  57931. +# restored at link time.
  57932. +variables_saved_for_relink=$lt_variables_saved_for_relink
  57933. - ac_header_preproc=no
  57934. -fi
  57935. +# Do we need the "lib" prefix for modules?
  57936. +need_lib_prefix=$need_lib_prefix
  57937. -rm -f conftest.err conftest.$ac_ext
  57938. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  57939. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  57940. +# Do we need a version for libraries?
  57941. +need_version=$need_version
  57942. -# So? What about this header?
  57943. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  57944. - yes:no: )
  57945. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
  57946. -echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  57947. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
  57948. -echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
  57949. - ac_header_preproc=yes
  57950. - ;;
  57951. - no:yes:* )
  57952. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
  57953. -echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
  57954. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
  57955. -echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
  57956. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
  57957. -echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
  57958. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
  57959. -echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
  57960. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
  57961. -echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
  57962. - { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
  57963. -echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
  57964. - ( cat <<\_ASBOX
  57965. -## ---------------------------------- ##
  57966. -## Report this to gmp-bugs@gmplib.org ##
  57967. -## ---------------------------------- ##
  57968. -_ASBOX
  57969. - ) | sed "s/^/$as_me: WARNING: /" >&2
  57970. - ;;
  57971. -esac
  57972. -{ echo "$as_me:$LINENO: checking for readline/readline.h" >&5
  57973. -echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
  57974. -if test "${ac_cv_header_readline_readline_h+set}" = set; then
  57975. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57976. -else
  57977. - ac_cv_header_readline_readline_h=$ac_header_preproc
  57978. -fi
  57979. -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
  57980. -echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
  57981. -
  57982. -fi
  57983. -if test $ac_cv_header_readline_readline_h = yes; then
  57984. - if test "${ac_cv_header_readline_history_h+set}" = set; then
  57985. - { echo "$as_me:$LINENO: checking for readline/history.h" >&5
  57986. -echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
  57987. -if test "${ac_cv_header_readline_history_h+set}" = set; then
  57988. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57989. -fi
  57990. -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
  57991. -echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
  57992. -else
  57993. - # Is the header compilable?
  57994. -{ echo "$as_me:$LINENO: checking readline/history.h usability" >&5
  57995. -echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
  57996. -cat >conftest.$ac_ext <<_ACEOF
  57997. -/* confdefs.h. */
  57998. -_ACEOF
  57999. -cat confdefs.h >>conftest.$ac_ext
  58000. -cat >>conftest.$ac_ext <<_ACEOF
  58001. -/* end confdefs.h. */
  58002. -$ac_includes_default
  58003. -#include <readline/history.h>
  58004. -_ACEOF
  58005. -rm -f conftest.$ac_objext
  58006. -if { (ac_try="$ac_compile"
  58007. -case "(($ac_try" in
  58008. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58009. - *) ac_try_echo=$ac_try;;
  58010. -esac
  58011. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58012. - (eval "$ac_compile") 2>conftest.er1
  58013. - ac_status=$?
  58014. - grep -v '^ *+' conftest.er1 >conftest.err
  58015. - rm -f conftest.er1
  58016. - cat conftest.err >&5
  58017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58018. - (exit $ac_status); } && {
  58019. - test -z "$ac_c_werror_flag" ||
  58020. - test ! -s conftest.err
  58021. - } && test -s conftest.$ac_objext; then
  58022. - ac_header_compiler=yes
  58023. -else
  58024. - echo "$as_me: failed program was:" >&5
  58025. -sed 's/^/| /' conftest.$ac_ext >&5
  58026. +# Library versioning type.
  58027. +version_type=$version_type
  58028. - ac_header_compiler=no
  58029. -fi
  58030. +# Shared library runtime path variable.
  58031. +runpath_var=$runpath_var
  58032. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58033. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  58034. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  58035. +# Shared library path variable.
  58036. +shlibpath_var=$shlibpath_var
  58037. -# Is the header present?
  58038. -{ echo "$as_me:$LINENO: checking readline/history.h presence" >&5
  58039. -echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
  58040. -cat >conftest.$ac_ext <<_ACEOF
  58041. -/* confdefs.h. */
  58042. -_ACEOF
  58043. -cat confdefs.h >>conftest.$ac_ext
  58044. -cat >>conftest.$ac_ext <<_ACEOF
  58045. -/* end confdefs.h. */
  58046. -#include <readline/history.h>
  58047. -_ACEOF
  58048. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  58049. -case "(($ac_try" in
  58050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58051. - *) ac_try_echo=$ac_try;;
  58052. -esac
  58053. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58054. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  58055. - ac_status=$?
  58056. - grep -v '^ *+' conftest.er1 >conftest.err
  58057. - rm -f conftest.er1
  58058. - cat conftest.err >&5
  58059. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58060. - (exit $ac_status); } >/dev/null && {
  58061. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  58062. - test ! -s conftest.err
  58063. - }; then
  58064. - ac_header_preproc=yes
  58065. -else
  58066. - echo "$as_me: failed program was:" >&5
  58067. -sed 's/^/| /' conftest.$ac_ext >&5
  58068. +# Is shlibpath searched before the hard-coded library search path?
  58069. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  58070. - ac_header_preproc=no
  58071. -fi
  58072. +# Format of library name prefix.
  58073. +libname_spec=$lt_libname_spec
  58074. -rm -f conftest.err conftest.$ac_ext
  58075. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  58076. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  58077. +# List of archive names. First name is the real one, the rest are links.
  58078. +# The last name is the one that the linker finds with -lNAME
  58079. +library_names_spec=$lt_library_names_spec
  58080. -# So? What about this header?
  58081. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  58082. - yes:no: )
  58083. - { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
  58084. -echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  58085. - { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
  58086. -echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
  58087. - ac_header_preproc=yes
  58088. - ;;
  58089. - no:yes:* )
  58090. - { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
  58091. -echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
  58092. - { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
  58093. -echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
  58094. - { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
  58095. -echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
  58096. - { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
  58097. -echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
  58098. - { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
  58099. -echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
  58100. - { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
  58101. -echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
  58102. - ( cat <<\_ASBOX
  58103. -## ---------------------------------- ##
  58104. -## Report this to gmp-bugs@gmplib.org ##
  58105. -## ---------------------------------- ##
  58106. -_ASBOX
  58107. - ) | sed "s/^/$as_me: WARNING: /" >&2
  58108. - ;;
  58109. -esac
  58110. -{ echo "$as_me:$LINENO: checking for readline/history.h" >&5
  58111. -echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
  58112. -if test "${ac_cv_header_readline_history_h+set}" = set; then
  58113. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58114. -else
  58115. - ac_cv_header_readline_history_h=$ac_header_preproc
  58116. -fi
  58117. -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
  58118. -echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
  58119. +# The coded name of the library, if different from the real name.
  58120. +soname_spec=$lt_soname_spec
  58121. -fi
  58122. -if test $ac_cv_header_readline_history_h = yes; then
  58123. - use_readline=yes
  58124. -fi
  58125. +# Command to use after installation of a shared archive.
  58126. +postinstall_cmds=$lt_postinstall_cmds
  58127. +# Command to use after uninstallation of a shared archive.
  58128. +postuninstall_cmds=$lt_postuninstall_cmds
  58129. -fi
  58130. +# Commands used to finish a libtool library installation in a directory.
  58131. +finish_cmds=$lt_finish_cmds
  58132. +# As "finish_cmds", except a single script fragment to be evaled but
  58133. +# not shown.
  58134. +finish_eval=$lt_finish_eval
  58135. -fi
  58136. +# Whether we should hardcode library paths into libraries.
  58137. +hardcode_into_libs=$hardcode_into_libs
  58138. - { echo "$as_me:$LINENO: checking readline detected" >&5
  58139. -echo $ECHO_N "checking readline detected... $ECHO_C" >&6; }
  58140. - { echo "$as_me:$LINENO: result: $use_readline" >&5
  58141. -echo "${ECHO_T}$use_readline" >&6; }
  58142. -fi
  58143. -if test $use_readline = yes; then
  58144. - WITH_READLINE_01=1
  58145. +# Compile-time system search path for libraries.
  58146. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  58147. - LIBREADLINE=-lreadline
  58148. +# Run-time system search path for libraries.
  58149. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  58150. -else
  58151. - WITH_READLINE_01=0
  58152. -fi
  58153. -for ac_prog in 'bison -y' byacc
  58154. -do
  58155. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  58156. -set dummy $ac_prog; ac_word=$2
  58157. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  58158. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  58159. -if test "${ac_cv_prog_YACC+set}" = set; then
  58160. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58161. -else
  58162. - if test -n "$YACC"; then
  58163. - ac_cv_prog_YACC="$YACC" # Let the user override the test.
  58164. -else
  58165. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58166. -for as_dir in $PATH
  58167. -do
  58168. - IFS=$as_save_IFS
  58169. - test -z "$as_dir" && as_dir=.
  58170. - for ac_exec_ext in '' $ac_executable_extensions; do
  58171. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  58172. - ac_cv_prog_YACC="$ac_prog"
  58173. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  58174. - break 2
  58175. - fi
  58176. -done
  58177. -done
  58178. -IFS=$as_save_IFS
  58179. +# Whether dlopen is supported.
  58180. +dlopen_support=$enable_dlopen
  58181. -fi
  58182. -fi
  58183. -YACC=$ac_cv_prog_YACC
  58184. -if test -n "$YACC"; then
  58185. - { echo "$as_me:$LINENO: result: $YACC" >&5
  58186. -echo "${ECHO_T}$YACC" >&6; }
  58187. -else
  58188. - { echo "$as_me:$LINENO: result: no" >&5
  58189. -echo "${ECHO_T}no" >&6; }
  58190. -fi
  58191. +# Whether dlopen of programs is supported.
  58192. +dlopen_self=$enable_dlopen_self
  58193. +# Whether dlopen of statically linked programs is supported.
  58194. +dlopen_self_static=$enable_dlopen_self_static
  58195. - test -n "$YACC" && break
  58196. -done
  58197. -test -n "$YACC" || YACC="yacc"
  58198. +# Commands to strip libraries.
  58199. +old_striplib=$lt_old_striplib
  58200. +striplib=$lt_striplib
  58201. -for ac_prog in flex lex
  58202. -do
  58203. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  58204. -set dummy $ac_prog; ac_word=$2
  58205. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  58206. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  58207. -if test "${ac_cv_prog_LEX+set}" = set; then
  58208. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58209. -else
  58210. - if test -n "$LEX"; then
  58211. - ac_cv_prog_LEX="$LEX" # Let the user override the test.
  58212. -else
  58213. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58214. -for as_dir in $PATH
  58215. -do
  58216. - IFS=$as_save_IFS
  58217. - test -z "$as_dir" && as_dir=.
  58218. - for ac_exec_ext in '' $ac_executable_extensions; do
  58219. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  58220. - ac_cv_prog_LEX="$ac_prog"
  58221. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  58222. - break 2
  58223. - fi
  58224. -done
  58225. -done
  58226. -IFS=$as_save_IFS
  58227. -fi
  58228. -fi
  58229. -LEX=$ac_cv_prog_LEX
  58230. -if test -n "$LEX"; then
  58231. - { echo "$as_me:$LINENO: result: $LEX" >&5
  58232. -echo "${ECHO_T}$LEX" >&6; }
  58233. -else
  58234. - { echo "$as_me:$LINENO: result: no" >&5
  58235. -echo "${ECHO_T}no" >&6; }
  58236. -fi
  58237. +# The linker used to build libraries.
  58238. +LD=$lt_LD
  58239. +# Commands used to build an old-style archive.
  58240. +old_archive_cmds=$lt_old_archive_cmds
  58241. - test -n "$LEX" && break
  58242. -done
  58243. -test -n "$LEX" || LEX=":"
  58244. +# A language specific compiler.
  58245. +CC=$lt_compiler
  58246. -if test "x$LEX" != "x:"; then
  58247. - cat >conftest.l <<_ACEOF
  58248. -%%
  58249. -a { ECHO; }
  58250. -b { REJECT; }
  58251. -c { yymore (); }
  58252. -d { yyless (1); }
  58253. -e { yyless (input () != 0); }
  58254. -f { unput (yytext[0]); }
  58255. -. { BEGIN INITIAL; }
  58256. -%%
  58257. -#ifdef YYTEXT_POINTER
  58258. -extern char *yytext;
  58259. -#endif
  58260. -int
  58261. -main (void)
  58262. -{
  58263. - return ! yylex () + ! yywrap ();
  58264. -}
  58265. -_ACEOF
  58266. -{ (ac_try="$LEX conftest.l"
  58267. -case "(($ac_try" in
  58268. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58269. - *) ac_try_echo=$ac_try;;
  58270. -esac
  58271. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58272. - (eval "$LEX conftest.l") 2>&5
  58273. - ac_status=$?
  58274. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58275. - (exit $ac_status); }
  58276. -{ echo "$as_me:$LINENO: checking lex output file root" >&5
  58277. -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
  58278. -if test "${ac_cv_prog_lex_root+set}" = set; then
  58279. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58280. -else
  58281. +# Is the compiler the GNU compiler?
  58282. +with_gcc=$GCC
  58283. -if test -f lex.yy.c; then
  58284. - ac_cv_prog_lex_root=lex.yy
  58285. -elif test -f lexyy.c; then
  58286. - ac_cv_prog_lex_root=lexyy
  58287. -else
  58288. - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  58289. -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  58290. - { (exit 1); exit 1; }; }
  58291. -fi
  58292. -fi
  58293. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  58294. -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
  58295. -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  58296. +# Compiler flag to turn off builtin functions.
  58297. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  58298. -if test -z "${LEXLIB+set}"; then
  58299. - { echo "$as_me:$LINENO: checking lex library" >&5
  58300. -echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
  58301. -if test "${ac_cv_lib_lex+set}" = set; then
  58302. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58303. -else
  58304. +# How to pass a linker flag through the compiler.
  58305. +wl=$lt_lt_prog_compiler_wl
  58306. - ac_save_LIBS=$LIBS
  58307. - ac_cv_lib_lex='none needed'
  58308. - for ac_lib in '' -lfl -ll; do
  58309. - LIBS="$ac_lib $ac_save_LIBS"
  58310. - cat >conftest.$ac_ext <<_ACEOF
  58311. -`cat $LEX_OUTPUT_ROOT.c`
  58312. -_ACEOF
  58313. -rm -f conftest.$ac_objext conftest$ac_exeext
  58314. -if { (ac_try="$ac_link"
  58315. -case "(($ac_try" in
  58316. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58317. - *) ac_try_echo=$ac_try;;
  58318. -esac
  58319. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58320. - (eval "$ac_link") 2>conftest.er1
  58321. - ac_status=$?
  58322. - grep -v '^ *+' conftest.er1 >conftest.err
  58323. - rm -f conftest.er1
  58324. - cat conftest.err >&5
  58325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58326. - (exit $ac_status); } && {
  58327. - test -z "$ac_c_werror_flag" ||
  58328. - test ! -s conftest.err
  58329. - } && test -s conftest$ac_exeext &&
  58330. - $as_test_x conftest$ac_exeext; then
  58331. - ac_cv_lib_lex=$ac_lib
  58332. -else
  58333. - echo "$as_me: failed program was:" >&5
  58334. -sed 's/^/| /' conftest.$ac_ext >&5
  58335. +# Additional compiler flags for building library objects.
  58336. +pic_flag=$lt_lt_prog_compiler_pic
  58337. +# Compiler flag to prevent dynamic linking.
  58338. +link_static_flag=$lt_lt_prog_compiler_static
  58339. -fi
  58340. +# Does compiler simultaneously support -c and -o options?
  58341. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  58342. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  58343. - conftest$ac_exeext conftest.$ac_ext
  58344. - test "$ac_cv_lib_lex" != 'none needed' && break
  58345. - done
  58346. - LIBS=$ac_save_LIBS
  58347. +# Whether or not to add -lc for building shared libraries.
  58348. +build_libtool_need_lc=$archive_cmds_need_lc
  58349. -fi
  58350. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
  58351. -echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  58352. - test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  58353. -fi
  58354. +# Whether or not to disallow shared libs when runtime libs are static.
  58355. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  58356. +# Compiler flag to allow reflexive dlopens.
  58357. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  58358. -{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  58359. -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
  58360. -if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  58361. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58362. -else
  58363. - # POSIX says lex can declare yytext either as a pointer or an array; the
  58364. -# default is implementation-dependent. Figure out which it is, since
  58365. -# not all implementations provide the %pointer and %array declarations.
  58366. -ac_cv_prog_lex_yytext_pointer=no
  58367. -ac_save_LIBS=$LIBS
  58368. -LIBS="$LEXLIB $ac_save_LIBS"
  58369. -cat >conftest.$ac_ext <<_ACEOF
  58370. -#define YYTEXT_POINTER 1
  58371. -`cat $LEX_OUTPUT_ROOT.c`
  58372. -_ACEOF
  58373. -rm -f conftest.$ac_objext conftest$ac_exeext
  58374. -if { (ac_try="$ac_link"
  58375. -case "(($ac_try" in
  58376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58377. - *) ac_try_echo=$ac_try;;
  58378. -esac
  58379. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58380. - (eval "$ac_link") 2>conftest.er1
  58381. - ac_status=$?
  58382. - grep -v '^ *+' conftest.er1 >conftest.err
  58383. - rm -f conftest.er1
  58384. - cat conftest.err >&5
  58385. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58386. - (exit $ac_status); } && {
  58387. - test -z "$ac_c_werror_flag" ||
  58388. - test ! -s conftest.err
  58389. - } && test -s conftest$ac_exeext &&
  58390. - $as_test_x conftest$ac_exeext; then
  58391. - ac_cv_prog_lex_yytext_pointer=yes
  58392. -else
  58393. - echo "$as_me: failed program was:" >&5
  58394. -sed 's/^/| /' conftest.$ac_ext >&5
  58395. +# Compiler flag to generate shared objects directly from archives.
  58396. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  58397. +# Whether the compiler copes with passing no objects directly.
  58398. +compiler_needs_object=$lt_compiler_needs_object
  58399. -fi
  58400. +# Create an old-style archive from a shared archive.
  58401. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  58402. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  58403. - conftest$ac_exeext conftest.$ac_ext
  58404. -LIBS=$ac_save_LIBS
  58405. +# Create a temporary old-style archive to link instead of a shared archive.
  58406. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  58407. -fi
  58408. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  58409. -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
  58410. -if test $ac_cv_prog_lex_yytext_pointer = yes; then
  58411. +# Commands used to build a shared archive.
  58412. +archive_cmds=$lt_archive_cmds
  58413. +archive_expsym_cmds=$lt_archive_expsym_cmds
  58414. -cat >>confdefs.h <<\_ACEOF
  58415. -#define YYTEXT_POINTER 1
  58416. -_ACEOF
  58417. +# Commands used to build a loadable module if different from building
  58418. +# a shared archive.
  58419. +module_cmds=$lt_module_cmds
  58420. +module_expsym_cmds=$lt_module_expsym_cmds
  58421. -fi
  58422. -rm -f conftest.l $LEX_OUTPUT_ROOT.c
  58423. +# Whether we are building with GNU ld or not.
  58424. +with_gnu_ld=$lt_with_gnu_ld
  58425. -fi
  58426. -if test "$LEX" = :; then
  58427. - LEX=${am_missing_run}flex
  58428. -fi
  58429. +# Flag that allows shared libraries with undefined symbols to be built.
  58430. +allow_undefined_flag=$lt_allow_undefined_flag
  58431. -# Configs for demos/expr directory
  58432. -#
  58433. -# Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
  58434. -# AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
  58435. -# called. (Automake 1.8.4 doesn't, at least not when the only library is in
  58436. -# an EXTRA_LIBRARIES.)
  58437. -#
  58438. -if test -n "$ac_tool_prefix"; then
  58439. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  58440. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  58441. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  58442. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  58443. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  58444. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58445. -else
  58446. - if test -n "$RANLIB"; then
  58447. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  58448. -else
  58449. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58450. -for as_dir in $PATH
  58451. -do
  58452. - IFS=$as_save_IFS
  58453. - test -z "$as_dir" && as_dir=.
  58454. - for ac_exec_ext in '' $ac_executable_extensions; do
  58455. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  58456. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  58457. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  58458. - break 2
  58459. - fi
  58460. -done
  58461. -done
  58462. -IFS=$as_save_IFS
  58463. +# Flag that enforces no undefined symbols.
  58464. +no_undefined_flag=$lt_no_undefined_flag
  58465. -fi
  58466. -fi
  58467. -RANLIB=$ac_cv_prog_RANLIB
  58468. -if test -n "$RANLIB"; then
  58469. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  58470. -echo "${ECHO_T}$RANLIB" >&6; }
  58471. -else
  58472. - { echo "$as_me:$LINENO: result: no" >&5
  58473. -echo "${ECHO_T}no" >&6; }
  58474. -fi
  58475. +# Flag to hardcode \$libdir into a binary during linking.
  58476. +# This must work even if \$libdir does not exist
  58477. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  58478. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  58479. +# during linking. This must work even if \$libdir does not exist.
  58480. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  58481. -fi
  58482. -if test -z "$ac_cv_prog_RANLIB"; then
  58483. - ac_ct_RANLIB=$RANLIB
  58484. - # Extract the first word of "ranlib", so it can be a program name with args.
  58485. -set dummy ranlib; ac_word=$2
  58486. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  58487. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  58488. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  58489. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58490. -else
  58491. - if test -n "$ac_ct_RANLIB"; then
  58492. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  58493. -else
  58494. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58495. -for as_dir in $PATH
  58496. -do
  58497. - IFS=$as_save_IFS
  58498. - test -z "$as_dir" && as_dir=.
  58499. - for ac_exec_ext in '' $ac_executable_extensions; do
  58500. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  58501. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  58502. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  58503. - break 2
  58504. - fi
  58505. -done
  58506. -done
  58507. -IFS=$as_save_IFS
  58508. +# Whether we need a single "-rpath" flag with a separated argument.
  58509. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  58510. -fi
  58511. -fi
  58512. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  58513. -if test -n "$ac_ct_RANLIB"; then
  58514. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  58515. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  58516. -else
  58517. - { echo "$as_me:$LINENO: result: no" >&5
  58518. -echo "${ECHO_T}no" >&6; }
  58519. -fi
  58520. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  58521. +# DIR into the resulting binary.
  58522. +hardcode_direct=$hardcode_direct
  58523. - if test "x$ac_ct_RANLIB" = x; then
  58524. - RANLIB=":"
  58525. - else
  58526. - case $cross_compiling:$ac_tool_warned in
  58527. -yes:)
  58528. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  58529. -whose name does not start with the host triplet. If you think this
  58530. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  58531. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  58532. -whose name does not start with the host triplet. If you think this
  58533. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  58534. -ac_tool_warned=yes ;;
  58535. -esac
  58536. - RANLIB=$ac_ct_RANLIB
  58537. - fi
  58538. -else
  58539. - RANLIB="$ac_cv_prog_RANLIB"
  58540. -fi
  58541. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  58542. +# DIR into the resulting binary and the resulting library dependency is
  58543. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  58544. +# library is relocated.
  58545. +hardcode_direct_absolute=$hardcode_direct_absolute
  58546. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  58547. +# into the resulting binary.
  58548. +hardcode_minus_L=$hardcode_minus_L
  58549. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  58550. +# into the resulting binary.
  58551. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  58552. -# Create config.m4.
  58553. +# Set to "yes" if building a shared library automatically hardcodes DIR
  58554. +# into the library and all subsequent libraries and executables linked
  58555. +# against it.
  58556. +hardcode_automatic=$hardcode_automatic
  58557. -echo "creating $gmp_configm4"
  58558. -echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
  58559. -if test -f $gmp_tmpconfigm4; then
  58560. - echo "changequote(<,>)" >> $gmp_configm4
  58561. - echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
  58562. - cat $gmp_tmpconfigm4 >> $gmp_configm4
  58563. - echo ">)" >> $gmp_configm4
  58564. - echo "changequote(\`,')" >> $gmp_configm4
  58565. - rm $gmp_tmpconfigm4
  58566. -fi
  58567. -echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
  58568. -if test -f $gmp_tmpconfigm4i; then
  58569. - cat $gmp_tmpconfigm4i >> $gmp_configm4
  58570. - rm $gmp_tmpconfigm4i
  58571. -fi
  58572. -if test -f $gmp_tmpconfigm4p; then
  58573. - cat $gmp_tmpconfigm4p >> $gmp_configm4
  58574. - rm $gmp_tmpconfigm4p
  58575. -fi
  58576. -echo "')" >> $gmp_configm4
  58577. -echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
  58578. +# Set to yes if linker adds runtime paths of dependent libraries
  58579. +# to runtime path list.
  58580. +inherit_rpath=$inherit_rpath
  58581. +# Whether libtool must link a program against all its dependency libraries.
  58582. +link_all_deplibs=$link_all_deplibs
  58583. -# Create Makefiles
  58584. -# FIXME: Upcoming version of autoconf/automake may not like broken lines.
  58585. -# Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
  58586. +# Fix the shell variable \$srcfile for the compiler.
  58587. +fix_srcfile_path=$lt_fix_srcfile_path
  58588. -ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
  58589. +# Set to "yes" if exported symbols are required.
  58590. +always_export_symbols=$always_export_symbols
  58591. -cat >confcache <<\_ACEOF
  58592. -# This file is a shell script that caches the results of configure
  58593. -# tests run on this system so they can be shared between configure
  58594. -# scripts and configure runs, see configure's option --config-cache.
  58595. -# It is not useful on other systems. If it contains results you don't
  58596. -# want to keep, you may remove or edit it.
  58597. -#
  58598. -# config.status only pays attention to the cache file if you give it
  58599. -# the --recheck option to rerun configure.
  58600. -#
  58601. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  58602. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  58603. -# following values.
  58604. +# The commands to list exported symbols.
  58605. +export_symbols_cmds=$lt_export_symbols_cmds
  58606. -_ACEOF
  58607. +# Symbols that should not be listed in the preloaded symbols.
  58608. +exclude_expsyms=$lt_exclude_expsyms
  58609. -# The following way of writing the cache mishandles newlines in values,
  58610. -# but we know of no workaround that is simple, portable, and efficient.
  58611. -# So, we kill variables containing newlines.
  58612. -# Ultrix sh set writes to stderr and can't be redirected directly,
  58613. -# and sets the high bit in the cache file unless we assign to the vars.
  58614. -(
  58615. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  58616. - eval ac_val=\$$ac_var
  58617. - case $ac_val in #(
  58618. - *${as_nl}*)
  58619. - case $ac_var in #(
  58620. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  58621. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  58622. - esac
  58623. - case $ac_var in #(
  58624. - _ | IFS | as_nl) ;; #(
  58625. - *) $as_unset $ac_var ;;
  58626. - esac ;;
  58627. - esac
  58628. - done
  58629. +# Symbols that must always be exported.
  58630. +include_expsyms=$lt_include_expsyms
  58631. - (set) 2>&1 |
  58632. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  58633. - *${as_nl}ac_space=\ *)
  58634. - # `set' does not quote correctly, so add quotes (double-quote
  58635. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  58636. - sed -n \
  58637. - "s/'/'\\\\''/g;
  58638. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  58639. - ;; #(
  58640. - *)
  58641. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  58642. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  58643. - ;;
  58644. - esac |
  58645. - sort
  58646. -) |
  58647. - sed '
  58648. - /^ac_cv_env_/b end
  58649. - t clear
  58650. - :clear
  58651. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  58652. - t end
  58653. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  58654. - :end' >>confcache
  58655. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  58656. - if test -w "$cache_file"; then
  58657. - test "x$cache_file" != "x/dev/null" &&
  58658. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  58659. -echo "$as_me: updating cache $cache_file" >&6;}
  58660. - cat confcache >$cache_file
  58661. - else
  58662. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  58663. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  58664. - fi
  58665. -fi
  58666. -rm -f confcache
  58667. +# Commands necessary for linking programs (against libraries) with templates.
  58668. +prelink_cmds=$lt_prelink_cmds
  58669. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  58670. -# Let make expand exec_prefix.
  58671. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  58672. +# Specify filename containing input files.
  58673. +file_list_spec=$lt_file_list_spec
  58674. -DEFS=-DHAVE_CONFIG_H
  58675. +# How to hardcode a shared library path into an executable.
  58676. +hardcode_action=$hardcode_action
  58677. -ac_libobjs=
  58678. -ac_ltlibobjs=
  58679. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  58680. - # 1. Remove the extension, and $U if already installed.
  58681. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  58682. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  58683. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  58684. - # will be set to the directory where LIBOBJS objects are built.
  58685. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  58686. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  58687. -done
  58688. -LIBOBJS=$ac_libobjs
  58689. +# The directories searched by this compiler when creating a shared library.
  58690. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  58691. -LTLIBOBJS=$ac_ltlibobjs
  58692. +# Dependencies to place before and after the objects being linked to
  58693. +# create a shared library.
  58694. +predep_objects=$lt_predep_objects
  58695. +postdep_objects=$lt_postdep_objects
  58696. +predeps=$lt_predeps
  58697. +postdeps=$lt_postdeps
  58698. +# The library search path used internally by the compiler when linking
  58699. +# a shared library.
  58700. +compiler_lib_search_path=$lt_compiler_lib_search_path
  58701. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  58702. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  58703. -Usually this means the macro was only invoked conditionally." >&5
  58704. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  58705. -Usually this means the macro was only invoked conditionally." >&2;}
  58706. - { (exit 1); exit 1; }; }
  58707. -fi
  58708. -if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
  58709. - { { echo "$as_me:$LINENO: error: conditional \"WANT_MPBSD\" was never defined.
  58710. -Usually this means the macro was only invoked conditionally." >&5
  58711. -echo "$as_me: error: conditional \"WANT_MPBSD\" was never defined.
  58712. -Usually this means the macro was only invoked conditionally." >&2;}
  58713. - { (exit 1); exit 1; }; }
  58714. -fi
  58715. -if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
  58716. - { { echo "$as_me:$LINENO: error: conditional \"WANT_CXX\" was never defined.
  58717. -Usually this means the macro was only invoked conditionally." >&5
  58718. -echo "$as_me: error: conditional \"WANT_CXX\" was never defined.
  58719. -Usually this means the macro was only invoked conditionally." >&2;}
  58720. - { (exit 1); exit 1; }; }
  58721. -fi
  58722. -if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  58723. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
  58724. -Usually this means the macro was only invoked conditionally." >&5
  58725. -echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
  58726. -Usually this means the macro was only invoked conditionally." >&2;}
  58727. - { (exit 1); exit 1; }; }
  58728. +# ### END LIBTOOL CONFIG
  58729. +
  58730. +_LT_EOF
  58731. +
  58732. + case $host_os in
  58733. + aix3*)
  58734. + cat <<\_LT_EOF >> "$cfgfile"
  58735. +# AIX sometimes has problems with the GCC collect2 program. For some
  58736. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  58737. +# vanish in a puff of smoke.
  58738. +if test "X${COLLECT_NAMES+set}" != Xset; then
  58739. + COLLECT_NAMES=
  58740. + export COLLECT_NAMES
  58741. fi
  58742. +_LT_EOF
  58743. + ;;
  58744. + esac
  58745. -: ${CONFIG_STATUS=./config.status}
  58746. -ac_clean_files_save=$ac_clean_files
  58747. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  58748. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  58749. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  58750. -cat >$CONFIG_STATUS <<_ACEOF
  58751. -#! $SHELL
  58752. -# Generated by $as_me.
  58753. -# Run this file to recreate the current configuration.
  58754. -# Compiler output produced by configure, useful for debugging
  58755. -# configure, is in config.log if it exists.
  58756. -debug=false
  58757. -ac_cs_recheck=false
  58758. -ac_cs_silent=false
  58759. -SHELL=\${CONFIG_SHELL-$SHELL}
  58760. -_ACEOF
  58761. +ltmain="$ac_aux_dir/ltmain.sh"
  58762. -cat >>$CONFIG_STATUS <<\_ACEOF
  58763. -## --------------------- ##
  58764. -## M4sh Initialization. ##
  58765. -## --------------------- ##
  58766. -# Be more Bourne compatible
  58767. -DUALCASE=1; export DUALCASE # for MKS sh
  58768. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  58769. - emulate sh
  58770. - NULLCMD=:
  58771. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  58772. - # is contrary to our usage. Disable this feature.
  58773. - alias -g '${1+"$@"}'='"$@"'
  58774. - setopt NO_GLOB_SUBST
  58775. -else
  58776. - case `(set -o) 2>/dev/null` in
  58777. - *posix*) set -o posix ;;
  58778. -esac
  58779. + # We use sed instead of cat because bash on DJGPP gets confused if
  58780. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  58781. + # text mode, it properly converts lines to CR/LF. This bash problem
  58782. + # is reportedly fixed, but why not run on old versions too?
  58783. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  58784. + || (rm -f "$cfgfile"; exit 1)
  58785. +
  58786. + case $xsi_shell in
  58787. + yes)
  58788. + cat << \_LT_EOF >> "$cfgfile"
  58789. +
  58790. +# func_dirname file append nondir_replacement
  58791. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  58792. +# otherwise set result to NONDIR_REPLACEMENT.
  58793. +func_dirname ()
  58794. +{
  58795. + case ${1} in
  58796. + */*) func_dirname_result="${1%/*}${2}" ;;
  58797. + * ) func_dirname_result="${3}" ;;
  58798. + esac
  58799. +}
  58800. +
  58801. +# func_basename file
  58802. +func_basename ()
  58803. +{
  58804. + func_basename_result="${1##*/}"
  58805. +}
  58806. +
  58807. +# func_dirname_and_basename file append nondir_replacement
  58808. +# perform func_basename and func_dirname in a single function
  58809. +# call:
  58810. +# dirname: Compute the dirname of FILE. If nonempty,
  58811. +# add APPEND to the result, otherwise set result
  58812. +# to NONDIR_REPLACEMENT.
  58813. +# value returned in "$func_dirname_result"
  58814. +# basename: Compute filename of FILE.
  58815. +# value retuned in "$func_basename_result"
  58816. +# Implementation must be kept synchronized with func_dirname
  58817. +# and func_basename. For efficiency, we do not delegate to
  58818. +# those functions but instead duplicate the functionality here.
  58819. +func_dirname_and_basename ()
  58820. +{
  58821. + case ${1} in
  58822. + */*) func_dirname_result="${1%/*}${2}" ;;
  58823. + * ) func_dirname_result="${3}" ;;
  58824. + esac
  58825. + func_basename_result="${1##*/}"
  58826. +}
  58827. +
  58828. +# func_stripname prefix suffix name
  58829. +# strip PREFIX and SUFFIX off of NAME.
  58830. +# PREFIX and SUFFIX must not contain globbing or regex special
  58831. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  58832. +# dot (in which case that matches only a dot).
  58833. +func_stripname ()
  58834. +{
  58835. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  58836. + # positional parameters, so assign one to ordinary parameter first.
  58837. + func_stripname_result=${3}
  58838. + func_stripname_result=${func_stripname_result#"${1}"}
  58839. + func_stripname_result=${func_stripname_result%"${2}"}
  58840. +}
  58841. +
  58842. +# func_opt_split
  58843. +func_opt_split ()
  58844. +{
  58845. + func_opt_split_opt=${1%%=*}
  58846. + func_opt_split_arg=${1#*=}
  58847. +}
  58848. +
  58849. +# func_lo2o object
  58850. +func_lo2o ()
  58851. +{
  58852. + case ${1} in
  58853. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  58854. + *) func_lo2o_result=${1} ;;
  58855. + esac
  58856. +}
  58857. +
  58858. +# func_xform libobj-or-source
  58859. +func_xform ()
  58860. +{
  58861. + func_xform_result=${1%.*}.lo
  58862. +}
  58863. +
  58864. +# func_arith arithmetic-term...
  58865. +func_arith ()
  58866. +{
  58867. + func_arith_result=$(( $* ))
  58868. +}
  58869. +
  58870. +# func_len string
  58871. +# STRING may not start with a hyphen.
  58872. +func_len ()
  58873. +{
  58874. + func_len_result=${#1}
  58875. +}
  58876. -fi
  58877. +_LT_EOF
  58878. + ;;
  58879. + *) # Bourne compatible functions.
  58880. + cat << \_LT_EOF >> "$cfgfile"
  58881. +# func_dirname file append nondir_replacement
  58882. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  58883. +# otherwise set result to NONDIR_REPLACEMENT.
  58884. +func_dirname ()
  58885. +{
  58886. + # Extract subdirectory from the argument.
  58887. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  58888. + if test "X$func_dirname_result" = "X${1}"; then
  58889. + func_dirname_result="${3}"
  58890. + else
  58891. + func_dirname_result="$func_dirname_result${2}"
  58892. + fi
  58893. +}
  58894. +# func_basename file
  58895. +func_basename ()
  58896. +{
  58897. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  58898. +}
  58899. -# PATH needs CR
  58900. -# Avoid depending upon Character Ranges.
  58901. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  58902. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  58903. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  58904. -as_cr_digits='0123456789'
  58905. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  58906. +# func_stripname prefix suffix name
  58907. +# strip PREFIX and SUFFIX off of NAME.
  58908. +# PREFIX and SUFFIX must not contain globbing or regex special
  58909. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  58910. +# dot (in which case that matches only a dot).
  58911. +# func_strip_suffix prefix name
  58912. +func_stripname ()
  58913. +{
  58914. + case ${2} in
  58915. + .*) func_stripname_result=`$ECHO "X${3}" \
  58916. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  58917. + *) func_stripname_result=`$ECHO "X${3}" \
  58918. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  58919. + esac
  58920. +}
  58921. -# The user is always right.
  58922. -if test "${PATH_SEPARATOR+set}" != set; then
  58923. - echo "#! /bin/sh" >conf$$.sh
  58924. - echo "exit 0" >>conf$$.sh
  58925. - chmod +x conf$$.sh
  58926. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  58927. - PATH_SEPARATOR=';'
  58928. - else
  58929. - PATH_SEPARATOR=:
  58930. - fi
  58931. - rm -f conf$$.sh
  58932. -fi
  58933. +# sed scripts:
  58934. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  58935. +my_sed_long_arg='1s/^-[^=]*=//'
  58936. -# Support unset when possible.
  58937. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  58938. - as_unset=unset
  58939. -else
  58940. - as_unset=false
  58941. -fi
  58942. +# func_opt_split
  58943. +func_opt_split ()
  58944. +{
  58945. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  58946. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  58947. +}
  58948. +# func_lo2o object
  58949. +func_lo2o ()
  58950. +{
  58951. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  58952. +}
  58953. -# IFS
  58954. -# We need space, tab and new line, in precisely that order. Quoting is
  58955. -# there to prevent editors from complaining about space-tab.
  58956. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58957. -# splitting by setting IFS to empty value.)
  58958. -as_nl='
  58959. -'
  58960. -IFS=" "" $as_nl"
  58961. +# func_xform libobj-or-source
  58962. +func_xform ()
  58963. +{
  58964. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  58965. +}
  58966. -# Find who we are. Look in the path if we contain no directory separator.
  58967. -case $0 in
  58968. - *[\\/]* ) as_myself=$0 ;;
  58969. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58970. -for as_dir in $PATH
  58971. -do
  58972. - IFS=$as_save_IFS
  58973. - test -z "$as_dir" && as_dir=.
  58974. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  58975. -done
  58976. -IFS=$as_save_IFS
  58977. +# func_arith arithmetic-term...
  58978. +func_arith ()
  58979. +{
  58980. + func_arith_result=`expr "$@"`
  58981. +}
  58982. - ;;
  58983. +# func_len string
  58984. +# STRING may not start with a hyphen.
  58985. +func_len ()
  58986. +{
  58987. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  58988. +}
  58989. +
  58990. +_LT_EOF
  58991. esac
  58992. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  58993. -# in which case we are not to be found in the path.
  58994. -if test "x$as_myself" = x; then
  58995. - as_myself=$0
  58996. -fi
  58997. -if test ! -f "$as_myself"; then
  58998. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  58999. - { (exit 1); exit 1; }
  59000. -fi
  59001. -# Work around bugs in pre-3.0 UWIN ksh.
  59002. -for as_var in ENV MAIL MAILPATH
  59003. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  59004. -done
  59005. -PS1='$ '
  59006. -PS2='> '
  59007. -PS4='+ '
  59008. +case $lt_shell_append in
  59009. + yes)
  59010. + cat << \_LT_EOF >> "$cfgfile"
  59011. -# NLS nuisances.
  59012. -for as_var in \
  59013. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  59014. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  59015. - LC_TELEPHONE LC_TIME
  59016. -do
  59017. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  59018. - eval $as_var=C; export $as_var
  59019. - else
  59020. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  59021. - fi
  59022. -done
  59023. +# func_append var value
  59024. +# Append VALUE to the end of shell variable VAR.
  59025. +func_append ()
  59026. +{
  59027. + eval "$1+=\$2"
  59028. +}
  59029. +_LT_EOF
  59030. + ;;
  59031. + *)
  59032. + cat << \_LT_EOF >> "$cfgfile"
  59033. -# Required to use basename.
  59034. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  59035. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  59036. - as_expr=expr
  59037. -else
  59038. - as_expr=false
  59039. -fi
  59040. +# func_append var value
  59041. +# Append VALUE to the end of shell variable VAR.
  59042. +func_append ()
  59043. +{
  59044. + eval "$1=\$$1\$2"
  59045. +}
  59046. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  59047. - as_basename=basename
  59048. -else
  59049. - as_basename=false
  59050. -fi
  59051. +_LT_EOF
  59052. + ;;
  59053. + esac
  59054. -# Name of the executable.
  59055. -as_me=`$as_basename -- "$0" ||
  59056. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59057. - X"$0" : 'X\(//\)$' \| \
  59058. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  59059. -echo X/"$0" |
  59060. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  59061. - s//\1/
  59062. - q
  59063. - }
  59064. - /^X\/\(\/\/\)$/{
  59065. - s//\1/
  59066. - q
  59067. - }
  59068. - /^X\/\(\/\).*/{
  59069. - s//\1/
  59070. - q
  59071. - }
  59072. - s/.*/./; q'`
  59073. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  59074. + || (rm -f "$cfgfile"; exit 1)
  59075. -# CDPATH.
  59076. -$as_unset CDPATH
  59077. + mv -f "$cfgfile" "$ofile" ||
  59078. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  59079. + chmod +x "$ofile"
  59080. + cat <<_LT_EOF >> "$ofile"
  59081. - as_lineno_1=$LINENO
  59082. - as_lineno_2=$LINENO
  59083. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  59084. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  59085. -
  59086. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  59087. - # uniformly replaced by the line number. The first 'sed' inserts a
  59088. - # line-number line after each line using $LINENO; the second 'sed'
  59089. - # does the real work. The second script uses 'N' to pair each
  59090. - # line-number line with the line containing $LINENO, and appends
  59091. - # trailing '-' during substitution so that $LINENO is not a special
  59092. - # case at line end.
  59093. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  59094. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  59095. - # E. McMahon (1931-1989) for sed's syntax. :-)
  59096. - sed -n '
  59097. - p
  59098. - /[$]LINENO/=
  59099. - ' <$as_myself |
  59100. - sed '
  59101. - s/[$]LINENO.*/&-/
  59102. - t lineno
  59103. - b
  59104. - :lineno
  59105. - N
  59106. - :loop
  59107. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  59108. - t loop
  59109. - s/-\n.*//
  59110. - ' >$as_me.lineno &&
  59111. - chmod +x "$as_me.lineno" ||
  59112. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  59113. - { (exit 1); exit 1; }; }
  59114. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  59115. - # Don't try to exec as it changes $[0], causing all sort of problems
  59116. - # (the dirname of $[0] is not the place where we might find the
  59117. - # original and so on. Autoconf is especially sensitive to this).
  59118. - . "./$as_me.lineno"
  59119. - # Exit status is that of the last command.
  59120. - exit
  59121. -}
  59122. +# The linker used to build libraries.
  59123. +LD=$lt_LD_CXX
  59124. +# Commands used to build an old-style archive.
  59125. +old_archive_cmds=$lt_old_archive_cmds_CXX
  59126. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  59127. - as_dirname=dirname
  59128. -else
  59129. - as_dirname=false
  59130. -fi
  59131. +# A language specific compiler.
  59132. +CC=$lt_compiler_CXX
  59133. -ECHO_C= ECHO_N= ECHO_T=
  59134. -case `echo -n x` in
  59135. --n*)
  59136. - case `echo 'x\c'` in
  59137. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  59138. - *) ECHO_C='\c';;
  59139. - esac;;
  59140. -*)
  59141. - ECHO_N='-n';;
  59142. -esac
  59143. +# Is the compiler the GNU compiler?
  59144. +with_gcc=$GCC_CXX
  59145. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  59146. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  59147. - as_expr=expr
  59148. -else
  59149. - as_expr=false
  59150. -fi
  59151. +# Compiler flag to turn off builtin functions.
  59152. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  59153. -rm -f conf$$ conf$$.exe conf$$.file
  59154. -if test -d conf$$.dir; then
  59155. - rm -f conf$$.dir/conf$$.file
  59156. -else
  59157. - rm -f conf$$.dir
  59158. - mkdir conf$$.dir
  59159. -fi
  59160. -echo >conf$$.file
  59161. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  59162. - as_ln_s='ln -s'
  59163. - # ... but there are two gotchas:
  59164. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  59165. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  59166. - # In both cases, we have to default to `cp -p'.
  59167. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  59168. - as_ln_s='cp -p'
  59169. -elif ln conf$$.file conf$$ 2>/dev/null; then
  59170. - as_ln_s=ln
  59171. -else
  59172. - as_ln_s='cp -p'
  59173. -fi
  59174. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  59175. -rmdir conf$$.dir 2>/dev/null
  59176. +# How to pass a linker flag through the compiler.
  59177. +wl=$lt_lt_prog_compiler_wl_CXX
  59178. -if mkdir -p . 2>/dev/null; then
  59179. - as_mkdir_p=:
  59180. -else
  59181. - test -d ./-p && rmdir ./-p
  59182. - as_mkdir_p=false
  59183. -fi
  59184. +# Additional compiler flags for building library objects.
  59185. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  59186. -if test -x / >/dev/null 2>&1; then
  59187. - as_test_x='test -x'
  59188. -else
  59189. - if ls -dL / >/dev/null 2>&1; then
  59190. - as_ls_L_option=L
  59191. - else
  59192. - as_ls_L_option=
  59193. - fi
  59194. - as_test_x='
  59195. - eval sh -c '\''
  59196. - if test -d "$1"; then
  59197. - test -d "$1/.";
  59198. - else
  59199. - case $1 in
  59200. - -*)set "./$1";;
  59201. - esac;
  59202. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  59203. - ???[sx]*):;;*)false;;esac;fi
  59204. - '\'' sh
  59205. - '
  59206. -fi
  59207. -as_executable_p=$as_test_x
  59208. +# Compiler flag to prevent dynamic linking.
  59209. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  59210. -# Sed expression to map a string onto a valid CPP name.
  59211. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  59212. +# Does compiler simultaneously support -c and -o options?
  59213. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  59214. -# Sed expression to map a string onto a valid variable name.
  59215. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  59216. +# Whether or not to add -lc for building shared libraries.
  59217. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  59218. +# Whether or not to disallow shared libs when runtime libs are static.
  59219. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  59220. -exec 6>&1
  59221. +# Compiler flag to allow reflexive dlopens.
  59222. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  59223. -# Save the log message, to keep $[0] and so on meaningful, and to
  59224. -# report actual input values of CONFIG_FILES etc. instead of their
  59225. -# values after options handling.
  59226. -ac_log="
  59227. -This file was extended by GNU MP $as_me 4.3.2, which was
  59228. -generated by GNU Autoconf 2.61. Invocation command line was
  59229. +# Compiler flag to generate shared objects directly from archives.
  59230. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  59231. - CONFIG_FILES = $CONFIG_FILES
  59232. - CONFIG_HEADERS = $CONFIG_HEADERS
  59233. - CONFIG_LINKS = $CONFIG_LINKS
  59234. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  59235. - $ $0 $@
  59236. +# Whether the compiler copes with passing no objects directly.
  59237. +compiler_needs_object=$lt_compiler_needs_object_CXX
  59238. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  59239. -"
  59240. +# Create an old-style archive from a shared archive.
  59241. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  59242. -_ACEOF
  59243. +# Create a temporary old-style archive to link instead of a shared archive.
  59244. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  59245. -cat >>$CONFIG_STATUS <<_ACEOF
  59246. -# Files that config.status was made for.
  59247. -config_files="$ac_config_files"
  59248. -config_headers="$ac_config_headers"
  59249. -config_links="$ac_config_links"
  59250. +# Commands used to build a shared archive.
  59251. +archive_cmds=$lt_archive_cmds_CXX
  59252. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  59253. -_ACEOF
  59254. +# Commands used to build a loadable module if different from building
  59255. +# a shared archive.
  59256. +module_cmds=$lt_module_cmds_CXX
  59257. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  59258. -cat >>$CONFIG_STATUS <<\_ACEOF
  59259. -ac_cs_usage="\
  59260. -\`$as_me' instantiates files from templates according to the
  59261. -current configuration.
  59262. +# Whether we are building with GNU ld or not.
  59263. +with_gnu_ld=$lt_with_gnu_ld_CXX
  59264. -Usage: $0 [OPTIONS] [FILE]...
  59265. +# Flag that allows shared libraries with undefined symbols to be built.
  59266. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  59267. - -h, --help print this help, then exit
  59268. - -V, --version print version number and configuration settings, then exit
  59269. - -q, --quiet do not print progress messages
  59270. - -d, --debug don't remove temporary files
  59271. - --recheck update $as_me by reconfiguring in the same conditions
  59272. - --file=FILE[:TEMPLATE]
  59273. - instantiate the configuration file FILE
  59274. - --header=FILE[:TEMPLATE]
  59275. - instantiate the configuration header FILE
  59276. +# Flag that enforces no undefined symbols.
  59277. +no_undefined_flag=$lt_no_undefined_flag_CXX
  59278. +
  59279. +# Flag to hardcode \$libdir into a binary during linking.
  59280. +# This must work even if \$libdir does not exist
  59281. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  59282. +
  59283. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  59284. +# during linking. This must work even if \$libdir does not exist.
  59285. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  59286. -Configuration files:
  59287. -$config_files
  59288. +# Whether we need a single "-rpath" flag with a separated argument.
  59289. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  59290. -Configuration headers:
  59291. -$config_headers
  59292. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  59293. +# DIR into the resulting binary.
  59294. +hardcode_direct=$hardcode_direct_CXX
  59295. -Configuration links:
  59296. -$config_links
  59297. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  59298. +# DIR into the resulting binary and the resulting library dependency is
  59299. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  59300. +# library is relocated.
  59301. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  59302. -Report bugs to <bug-autoconf@gnu.org>."
  59303. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  59304. +# into the resulting binary.
  59305. +hardcode_minus_L=$hardcode_minus_L_CXX
  59306. -_ACEOF
  59307. -cat >>$CONFIG_STATUS <<_ACEOF
  59308. -ac_cs_version="\\
  59309. -GNU MP config.status 4.3.2
  59310. -configured by $0, generated by GNU Autoconf 2.61,
  59311. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  59312. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  59313. +# into the resulting binary.
  59314. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  59315. -Copyright (C) 2006 Free Software Foundation, Inc.
  59316. -This config.status script is free software; the Free Software Foundation
  59317. -gives unlimited permission to copy, distribute and modify it."
  59318. +# Set to "yes" if building a shared library automatically hardcodes DIR
  59319. +# into the library and all subsequent libraries and executables linked
  59320. +# against it.
  59321. +hardcode_automatic=$hardcode_automatic_CXX
  59322. -ac_pwd='$ac_pwd'
  59323. -srcdir='$srcdir'
  59324. -INSTALL='$INSTALL'
  59325. -_ACEOF
  59326. +# Set to yes if linker adds runtime paths of dependent libraries
  59327. +# to runtime path list.
  59328. +inherit_rpath=$inherit_rpath_CXX
  59329. -cat >>$CONFIG_STATUS <<\_ACEOF
  59330. -# If no file are specified by the user, then we need to provide default
  59331. -# value. By we need to know if files were specified by the user.
  59332. -ac_need_defaults=:
  59333. -while test $# != 0
  59334. -do
  59335. - case $1 in
  59336. - --*=*)
  59337. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  59338. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  59339. - ac_shift=:
  59340. - ;;
  59341. - *)
  59342. - ac_option=$1
  59343. - ac_optarg=$2
  59344. - ac_shift=shift
  59345. - ;;
  59346. - esac
  59347. +# Whether libtool must link a program against all its dependency libraries.
  59348. +link_all_deplibs=$link_all_deplibs_CXX
  59349. - case $ac_option in
  59350. - # Handling of the options.
  59351. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  59352. - ac_cs_recheck=: ;;
  59353. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  59354. - echo "$ac_cs_version"; exit ;;
  59355. - --debug | --debu | --deb | --de | --d | -d )
  59356. - debug=: ;;
  59357. - --file | --fil | --fi | --f )
  59358. - $ac_shift
  59359. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  59360. - ac_need_defaults=false;;
  59361. - --header | --heade | --head | --hea )
  59362. - $ac_shift
  59363. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  59364. - ac_need_defaults=false;;
  59365. - --he | --h)
  59366. - # Conflict between --help and --header
  59367. - { echo "$as_me: error: ambiguous option: $1
  59368. -Try \`$0 --help' for more information." >&2
  59369. - { (exit 1); exit 1; }; };;
  59370. - --help | --hel | -h )
  59371. - echo "$ac_cs_usage"; exit ;;
  59372. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  59373. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  59374. - ac_cs_silent=: ;;
  59375. +# Fix the shell variable \$srcfile for the compiler.
  59376. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  59377. - # This is an error.
  59378. - -*) { echo "$as_me: error: unrecognized option: $1
  59379. -Try \`$0 --help' for more information." >&2
  59380. - { (exit 1); exit 1; }; } ;;
  59381. +# Set to "yes" if exported symbols are required.
  59382. +always_export_symbols=$always_export_symbols_CXX
  59383. - *) ac_config_targets="$ac_config_targets $1"
  59384. - ac_need_defaults=false ;;
  59385. +# The commands to list exported symbols.
  59386. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  59387. - esac
  59388. - shift
  59389. -done
  59390. +# Symbols that should not be listed in the preloaded symbols.
  59391. +exclude_expsyms=$lt_exclude_expsyms_CXX
  59392. -ac_configure_extra_args=
  59393. +# Symbols that must always be exported.
  59394. +include_expsyms=$lt_include_expsyms_CXX
  59395. -if $ac_cs_silent; then
  59396. - exec 6>/dev/null
  59397. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  59398. -fi
  59399. +# Commands necessary for linking programs (against libraries) with templates.
  59400. +prelink_cmds=$lt_prelink_cmds_CXX
  59401. -_ACEOF
  59402. -cat >>$CONFIG_STATUS <<_ACEOF
  59403. -if \$ac_cs_recheck; then
  59404. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  59405. - CONFIG_SHELL=$SHELL
  59406. - export CONFIG_SHELL
  59407. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  59408. -fi
  59409. +# Specify filename containing input files.
  59410. +file_list_spec=$lt_file_list_spec_CXX
  59411. -_ACEOF
  59412. -cat >>$CONFIG_STATUS <<\_ACEOF
  59413. -exec 5>>config.log
  59414. -{
  59415. - echo
  59416. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  59417. -## Running $as_me. ##
  59418. -_ASBOX
  59419. - echo "$ac_log"
  59420. -} >&5
  59421. +# How to hardcode a shared library path into an executable.
  59422. +hardcode_action=$hardcode_action_CXX
  59423. -_ACEOF
  59424. -cat >>$CONFIG_STATUS <<_ACEOF
  59425. -_ACEOF
  59426. +# The directories searched by this compiler when creating a shared library.
  59427. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  59428. -cat >>$CONFIG_STATUS <<\_ACEOF
  59429. +# Dependencies to place before and after the objects being linked to
  59430. +# create a shared library.
  59431. +predep_objects=$lt_predep_objects_CXX
  59432. +postdep_objects=$lt_postdep_objects_CXX
  59433. +predeps=$lt_predeps_CXX
  59434. +postdeps=$lt_postdeps_CXX
  59435. -# Handling of arguments.
  59436. -for ac_config_target in $ac_config_targets
  59437. -do
  59438. - case $ac_config_target in
  59439. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  59440. - "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
  59441. - "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
  59442. - "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
  59443. - "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
  59444. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  59445. - "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
  59446. - "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
  59447. - "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
  59448. - "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
  59449. - "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
  59450. - "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
  59451. - "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
  59452. - "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
  59453. - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  59454. - "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
  59455. - "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
  59456. - "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
  59457. - "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
  59458. - "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
  59459. - "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
  59460. - "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
  59461. - "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
  59462. - "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
  59463. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  59464. - "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
  59465. - "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
  59466. - "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
  59467. - "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
  59468. - "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
  59469. - "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
  59470. +# The library search path used internally by the compiler when linking
  59471. +# a shared library.
  59472. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  59473. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  59474. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  59475. - { (exit 1); exit 1; }; };;
  59476. - esac
  59477. -done
  59478. +# ### END LIBTOOL TAG CONFIG: CXX
  59479. +_LT_EOF
  59480. -# If the user did not use the arguments to specify the items to instantiate,
  59481. -# then the envvar interface is used. Set only those that are not.
  59482. -# We use the long form for the default assignment because of an extremely
  59483. -# bizarre bug on SunOS 4.1.3.
  59484. -if $ac_need_defaults; then
  59485. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  59486. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  59487. - test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  59488. -fi
  59489. + cat <<_LT_EOF >> "$ofile"
  59490. -# Have a temporary directory for convenience. Make it in the build tree
  59491. -# simply because there is no reason against having it here, and in addition,
  59492. -# creating and moving files from /tmp can sometimes cause problems.
  59493. -# Hook for its removal unless debugging.
  59494. -# Note that there is a small window in which the directory will not be cleaned:
  59495. -# after its creation but before its name has been assigned to `$tmp'.
  59496. -$debug ||
  59497. -{
  59498. - tmp=
  59499. - trap 'exit_status=$?
  59500. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  59501. -' 0
  59502. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  59503. -}
  59504. -# Create a (secure) tmp directory for tmp files.
  59505. +# ### BEGIN LIBTOOL TAG CONFIG: F77
  59506. -{
  59507. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  59508. - test -n "$tmp" && test -d "$tmp"
  59509. -} ||
  59510. -{
  59511. - tmp=./conf$$-$RANDOM
  59512. - (umask 077 && mkdir "$tmp")
  59513. -} ||
  59514. -{
  59515. - echo "$me: cannot create a temporary directory in ." >&2
  59516. - { (exit 1); exit 1; }
  59517. -}
  59518. +# The linker used to build libraries.
  59519. +LD=$lt_LD_F77
  59520. -#
  59521. -# Set up the sed scripts for CONFIG_FILES section.
  59522. -#
  59523. +# Commands used to build an old-style archive.
  59524. +old_archive_cmds=$lt_old_archive_cmds_F77
  59525. -# No need to generate the scripts if there are no CONFIG_FILES.
  59526. -# This happens for instance when ./config.status config.h
  59527. -if test -n "$CONFIG_FILES"; then
  59528. +# A language specific compiler.
  59529. +CC=$lt_compiler_F77
  59530. -_ACEOF
  59531. +# Is the compiler the GNU compiler?
  59532. +with_gcc=$GCC_F77
  59533. +# Compiler flag to turn off builtin functions.
  59534. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  59535. +# How to pass a linker flag through the compiler.
  59536. +wl=$lt_lt_prog_compiler_wl_F77
  59537. -ac_delim='%!_!# '
  59538. -for ac_last_try in false false false false false :; do
  59539. - cat >conf$$subs.sed <<_ACEOF
  59540. -SHELL!$SHELL$ac_delim
  59541. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  59542. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  59543. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  59544. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  59545. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  59546. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  59547. -exec_prefix!$exec_prefix$ac_delim
  59548. -prefix!$prefix$ac_delim
  59549. -program_transform_name!$program_transform_name$ac_delim
  59550. -bindir!$bindir$ac_delim
  59551. -sbindir!$sbindir$ac_delim
  59552. -libexecdir!$libexecdir$ac_delim
  59553. -datarootdir!$datarootdir$ac_delim
  59554. -datadir!$datadir$ac_delim
  59555. -sysconfdir!$sysconfdir$ac_delim
  59556. -sharedstatedir!$sharedstatedir$ac_delim
  59557. -localstatedir!$localstatedir$ac_delim
  59558. -includedir!$includedir$ac_delim
  59559. -oldincludedir!$oldincludedir$ac_delim
  59560. -docdir!$docdir$ac_delim
  59561. -infodir!$infodir$ac_delim
  59562. -htmldir!$htmldir$ac_delim
  59563. -dvidir!$dvidir$ac_delim
  59564. -pdfdir!$pdfdir$ac_delim
  59565. -psdir!$psdir$ac_delim
  59566. -libdir!$libdir$ac_delim
  59567. -localedir!$localedir$ac_delim
  59568. -mandir!$mandir$ac_delim
  59569. -DEFS!$DEFS$ac_delim
  59570. -ECHO_C!$ECHO_C$ac_delim
  59571. -ECHO_N!$ECHO_N$ac_delim
  59572. -ECHO_T!$ECHO_T$ac_delim
  59573. -LIBS!$LIBS$ac_delim
  59574. -build_alias!$build_alias$ac_delim
  59575. -host_alias!$host_alias$ac_delim
  59576. -target_alias!$target_alias$ac_delim
  59577. -build!$build$ac_delim
  59578. -build_cpu!$build_cpu$ac_delim
  59579. -build_vendor!$build_vendor$ac_delim
  59580. -build_os!$build_os$ac_delim
  59581. -host!$host$ac_delim
  59582. -host_cpu!$host_cpu$ac_delim
  59583. -host_vendor!$host_vendor$ac_delim
  59584. -host_os!$host_os$ac_delim
  59585. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  59586. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  59587. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  59588. -CYGPATH_W!$CYGPATH_W$ac_delim
  59589. -PACKAGE!$PACKAGE$ac_delim
  59590. -VERSION!$VERSION$ac_delim
  59591. -ACLOCAL!$ACLOCAL$ac_delim
  59592. -AUTOCONF!$AUTOCONF$ac_delim
  59593. -AUTOMAKE!$AUTOMAKE$ac_delim
  59594. -AUTOHEADER!$AUTOHEADER$ac_delim
  59595. -MAKEINFO!$MAKEINFO$ac_delim
  59596. -AMTAR!$AMTAR$ac_delim
  59597. -install_sh!$install_sh$ac_delim
  59598. -STRIP!$STRIP$ac_delim
  59599. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  59600. -mkdir_p!$mkdir_p$ac_delim
  59601. -AWK!$AWK$ac_delim
  59602. -SET_MAKE!$SET_MAKE$ac_delim
  59603. -am__leading_dot!$am__leading_dot$ac_delim
  59604. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  59605. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  59606. -MAINT!$MAINT$ac_delim
  59607. -WANT_MPBSD_TRUE!$WANT_MPBSD_TRUE$ac_delim
  59608. -WANT_MPBSD_FALSE!$WANT_MPBSD_FALSE$ac_delim
  59609. -GMP_NAIL_BITS!$GMP_NAIL_BITS$ac_delim
  59610. -ABI!$ABI$ac_delim
  59611. -HAVE_HOST_CPU_FAMILY_power!$HAVE_HOST_CPU_FAMILY_power$ac_delim
  59612. -HAVE_HOST_CPU_FAMILY_powerpc!$HAVE_HOST_CPU_FAMILY_powerpc$ac_delim
  59613. -GMP_LDFLAGS!$GMP_LDFLAGS$ac_delim
  59614. -LIBGMP_LDFLAGS!$LIBGMP_LDFLAGS$ac_delim
  59615. -LIBGMPXX_LDFLAGS!$LIBGMPXX_LDFLAGS$ac_delim
  59616. -SPEED_CYCLECOUNTER_OBJ!$SPEED_CYCLECOUNTER_OBJ$ac_delim
  59617. -CALLING_CONVENTIONS_OBJS!$CALLING_CONVENTIONS_OBJS$ac_delim
  59618. -DEFN_LONG_LONG_LIMB!$DEFN_LONG_LONG_LIMB$ac_delim
  59619. -CC!$CC$ac_delim
  59620. -CFLAGS!$CFLAGS$ac_delim
  59621. -LDFLAGS!$LDFLAGS$ac_delim
  59622. -CPPFLAGS!$CPPFLAGS$ac_delim
  59623. -ac_ct_CC!$ac_ct_CC$ac_delim
  59624. -EXEEXT!$EXEEXT$ac_delim
  59625. -OBJEXT!$OBJEXT$ac_delim
  59626. -CPP!$CPP$ac_delim
  59627. -CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
  59628. -CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
  59629. -EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
  59630. -U_FOR_BUILD!$U_FOR_BUILD$ac_delim
  59631. -LIBM_FOR_BUILD!$LIBM_FOR_BUILD$ac_delim
  59632. -CCAS!$CCAS$ac_delim
  59633. -CXX!$CXX$ac_delim
  59634. -CXXFLAGS!$CXXFLAGS$ac_delim
  59635. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  59636. -WANT_CXX_TRUE!$WANT_CXX_TRUE$ac_delim
  59637. -_ACEOF
  59638. +# Additional compiler flags for building library objects.
  59639. +pic_flag=$lt_lt_prog_compiler_pic_F77
  59640. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  59641. - break
  59642. - elif $ac_last_try; then
  59643. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  59644. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  59645. - { (exit 1); exit 1; }; }
  59646. - else
  59647. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  59648. - fi
  59649. -done
  59650. +# Compiler flag to prevent dynamic linking.
  59651. +link_static_flag=$lt_lt_prog_compiler_static_F77
  59652. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  59653. -if test -n "$ac_eof"; then
  59654. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  59655. - ac_eof=`expr $ac_eof + 1`
  59656. -fi
  59657. +# Does compiler simultaneously support -c and -o options?
  59658. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  59659. -cat >>$CONFIG_STATUS <<_ACEOF
  59660. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  59661. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  59662. -_ACEOF
  59663. -sed '
  59664. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  59665. -s/^/s,@/; s/!/@,|#_!!_#|/
  59666. -:n
  59667. -t n
  59668. -s/'"$ac_delim"'$/,g/; t
  59669. -s/$/\\/; p
  59670. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  59671. -' >>$CONFIG_STATUS <conf$$subs.sed
  59672. -rm -f conf$$subs.sed
  59673. -cat >>$CONFIG_STATUS <<_ACEOF
  59674. -CEOF$ac_eof
  59675. -_ACEOF
  59676. +# Whether or not to add -lc for building shared libraries.
  59677. +build_libtool_need_lc=$archive_cmds_need_lc_F77
  59678. +# Whether or not to disallow shared libs when runtime libs are static.
  59679. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  59680. -ac_delim='%!_!# '
  59681. -for ac_last_try in false false false false false :; do
  59682. - cat >conf$$subs.sed <<_ACEOF
  59683. -WANT_CXX_FALSE!$WANT_CXX_FALSE$ac_delim
  59684. -CXXCPP!$CXXCPP$ac_delim
  59685. -GREP!$GREP$ac_delim
  59686. -EGREP!$EGREP$ac_delim
  59687. -U!$U$ac_delim
  59688. -ANSI2KNR!$ANSI2KNR$ac_delim
  59689. -ASMFLAGS!$ASMFLAGS$ac_delim
  59690. -AR!$AR$ac_delim
  59691. -LIBGMP_DLL!$LIBGMP_DLL$ac_delim
  59692. -SED!$SED$ac_delim
  59693. -LN_S!$LN_S$ac_delim
  59694. -ECHO!$ECHO$ac_delim
  59695. -RANLIB!$RANLIB$ac_delim
  59696. -DLLTOOL!$DLLTOOL$ac_delim
  59697. -AS!$AS$ac_delim
  59698. -OBJDUMP!$OBJDUMP$ac_delim
  59699. -LIBTOOL!$LIBTOOL$ac_delim
  59700. -ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
  59701. -ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
  59702. -LIBM!$LIBM$ac_delim
  59703. -TAL_OBJECT!$TAL_OBJECT$ac_delim
  59704. -M4!$M4$ac_delim
  59705. -BITS_PER_MP_LIMB!$BITS_PER_MP_LIMB$ac_delim
  59706. -mpn_objs_in_libmp!$mpn_objs_in_libmp$ac_delim
  59707. -mpn_objects!$mpn_objects$ac_delim
  59708. -mpn_objs_in_libgmp!$mpn_objs_in_libgmp$ac_delim
  59709. -gmp_srclinks!$gmp_srclinks$ac_delim
  59710. -TUNE_SQR_OBJ!$TUNE_SQR_OBJ$ac_delim
  59711. -HAVE_CLOCK_01!$HAVE_CLOCK_01$ac_delim
  59712. -HAVE_CPUTIME_01!$HAVE_CPUTIME_01$ac_delim
  59713. -HAVE_GETRUSAGE_01!$HAVE_GETRUSAGE_01$ac_delim
  59714. -HAVE_GETTIMEOFDAY_01!$HAVE_GETTIMEOFDAY_01$ac_delim
  59715. -HAVE_SIGACTION_01!$HAVE_SIGACTION_01$ac_delim
  59716. -HAVE_SIGALTSTACK_01!$HAVE_SIGALTSTACK_01$ac_delim
  59717. -HAVE_SIGSTACK_01!$HAVE_SIGSTACK_01$ac_delim
  59718. -HAVE_SYS_RESOURCE_H_01!$HAVE_SYS_RESOURCE_H_01$ac_delim
  59719. -HAVE_STACK_T_01!$HAVE_STACK_T_01$ac_delim
  59720. -LIBCURSES!$LIBCURSES$ac_delim
  59721. -WITH_READLINE_01!$WITH_READLINE_01$ac_delim
  59722. -LIBREADLINE!$LIBREADLINE$ac_delim
  59723. -YACC!$YACC$ac_delim
  59724. -YFLAGS!$YFLAGS$ac_delim
  59725. -LEX!$LEX$ac_delim
  59726. -LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
  59727. -LEXLIB!$LEXLIB$ac_delim
  59728. -LIBOBJS!$LIBOBJS$ac_delim
  59729. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  59730. -_ACEOF
  59731. +# Compiler flag to allow reflexive dlopens.
  59732. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  59733. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
  59734. - break
  59735. - elif $ac_last_try; then
  59736. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  59737. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  59738. - { (exit 1); exit 1; }; }
  59739. - else
  59740. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  59741. - fi
  59742. -done
  59743. +# Compiler flag to generate shared objects directly from archives.
  59744. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  59745. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  59746. -if test -n "$ac_eof"; then
  59747. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  59748. - ac_eof=`expr $ac_eof + 1`
  59749. -fi
  59750. -
  59751. -cat >>$CONFIG_STATUS <<_ACEOF
  59752. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  59753. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  59754. -_ACEOF
  59755. -sed '
  59756. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  59757. -s/^/s,@/; s/!/@,|#_!!_#|/
  59758. -:n
  59759. -t n
  59760. -s/'"$ac_delim"'$/,g/; t
  59761. -s/$/\\/; p
  59762. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  59763. -' >>$CONFIG_STATUS <conf$$subs.sed
  59764. -rm -f conf$$subs.sed
  59765. -cat >>$CONFIG_STATUS <<_ACEOF
  59766. -:end
  59767. -s/|#_!!_#|//g
  59768. -CEOF$ac_eof
  59769. -_ACEOF
  59770. +# Whether the compiler copes with passing no objects directly.
  59771. +compiler_needs_object=$lt_compiler_needs_object_F77
  59772. +# Create an old-style archive from a shared archive.
  59773. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  59774. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  59775. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  59776. -# trailing colons and then remove the whole line if VPATH becomes empty
  59777. -# (actually we leave an empty line to preserve line numbers).
  59778. -if test "x$srcdir" = x.; then
  59779. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  59780. -s/:*\$(srcdir):*/:/
  59781. -s/:*\${srcdir}:*/:/
  59782. -s/:*@srcdir@:*/:/
  59783. -s/^\([^=]*=[ ]*\):*/\1/
  59784. -s/:*$//
  59785. -s/^[^=]*=[ ]*$//
  59786. -}'
  59787. -fi
  59788. +# Create a temporary old-style archive to link instead of a shared archive.
  59789. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  59790. -cat >>$CONFIG_STATUS <<\_ACEOF
  59791. -fi # test -n "$CONFIG_FILES"
  59792. +# Commands used to build a shared archive.
  59793. +archive_cmds=$lt_archive_cmds_F77
  59794. +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  59795. +# Commands used to build a loadable module if different from building
  59796. +# a shared archive.
  59797. +module_cmds=$lt_module_cmds_F77
  59798. +module_expsym_cmds=$lt_module_expsym_cmds_F77
  59799. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
  59800. -do
  59801. - case $ac_tag in
  59802. - :[FHLC]) ac_mode=$ac_tag; continue;;
  59803. - esac
  59804. - case $ac_mode$ac_tag in
  59805. - :[FHL]*:*);;
  59806. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  59807. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  59808. - { (exit 1); exit 1; }; };;
  59809. - :[FH]-) ac_tag=-:-;;
  59810. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  59811. - esac
  59812. - ac_save_IFS=$IFS
  59813. - IFS=:
  59814. - set x $ac_tag
  59815. - IFS=$ac_save_IFS
  59816. - shift
  59817. - ac_file=$1
  59818. - shift
  59819. +# Whether we are building with GNU ld or not.
  59820. +with_gnu_ld=$lt_with_gnu_ld_F77
  59821. - case $ac_mode in
  59822. - :L) ac_source=$1;;
  59823. - :[FH])
  59824. - ac_file_inputs=
  59825. - for ac_f
  59826. - do
  59827. - case $ac_f in
  59828. - -) ac_f="$tmp/stdin";;
  59829. - *) # Look for the file first in the build tree, then in the source tree
  59830. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  59831. - # because $ac_f cannot contain `:'.
  59832. - test -f "$ac_f" ||
  59833. - case $ac_f in
  59834. - [\\/$]*) false;;
  59835. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  59836. - esac ||
  59837. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  59838. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  59839. - { (exit 1); exit 1; }; };;
  59840. - esac
  59841. - ac_file_inputs="$ac_file_inputs $ac_f"
  59842. - done
  59843. +# Flag that allows shared libraries with undefined symbols to be built.
  59844. +allow_undefined_flag=$lt_allow_undefined_flag_F77
  59845. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  59846. - # use $as_me), people would be surprised to read:
  59847. - # /* config.h. Generated by config.status. */
  59848. - configure_input="Generated from "`IFS=:
  59849. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  59850. - if test x"$ac_file" != x-; then
  59851. - configure_input="$ac_file. $configure_input"
  59852. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  59853. -echo "$as_me: creating $ac_file" >&6;}
  59854. - fi
  59855. +# Flag that enforces no undefined symbols.
  59856. +no_undefined_flag=$lt_no_undefined_flag_F77
  59857. - case $ac_tag in
  59858. - *:-:* | *:-) cat >"$tmp/stdin";;
  59859. - esac
  59860. - ;;
  59861. - esac
  59862. +# Flag to hardcode \$libdir into a binary during linking.
  59863. +# This must work even if \$libdir does not exist
  59864. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  59865. - ac_dir=`$as_dirname -- "$ac_file" ||
  59866. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  59867. - X"$ac_file" : 'X\(//\)[^/]' \| \
  59868. - X"$ac_file" : 'X\(//\)$' \| \
  59869. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  59870. -echo X"$ac_file" |
  59871. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  59872. - s//\1/
  59873. - q
  59874. - }
  59875. - /^X\(\/\/\)[^/].*/{
  59876. - s//\1/
  59877. - q
  59878. - }
  59879. - /^X\(\/\/\)$/{
  59880. - s//\1/
  59881. - q
  59882. - }
  59883. - /^X\(\/\).*/{
  59884. - s//\1/
  59885. - q
  59886. - }
  59887. - s/.*/./; q'`
  59888. - { as_dir="$ac_dir"
  59889. - case $as_dir in #(
  59890. - -*) as_dir=./$as_dir;;
  59891. - esac
  59892. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  59893. - as_dirs=
  59894. - while :; do
  59895. - case $as_dir in #(
  59896. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  59897. - *) as_qdir=$as_dir;;
  59898. - esac
  59899. - as_dirs="'$as_qdir' $as_dirs"
  59900. - as_dir=`$as_dirname -- "$as_dir" ||
  59901. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  59902. - X"$as_dir" : 'X\(//\)[^/]' \| \
  59903. - X"$as_dir" : 'X\(//\)$' \| \
  59904. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  59905. -echo X"$as_dir" |
  59906. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  59907. - s//\1/
  59908. - q
  59909. - }
  59910. - /^X\(\/\/\)[^/].*/{
  59911. - s//\1/
  59912. - q
  59913. - }
  59914. - /^X\(\/\/\)$/{
  59915. - s//\1/
  59916. - q
  59917. - }
  59918. - /^X\(\/\).*/{
  59919. - s//\1/
  59920. - q
  59921. - }
  59922. - s/.*/./; q'`
  59923. - test -d "$as_dir" && break
  59924. - done
  59925. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  59926. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  59927. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  59928. - { (exit 1); exit 1; }; }; }
  59929. - ac_builddir=.
  59930. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  59931. +# during linking. This must work even if \$libdir does not exist.
  59932. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  59933. -case "$ac_dir" in
  59934. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  59935. -*)
  59936. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  59937. - # A ".." for each directory in $ac_dir_suffix.
  59938. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  59939. - case $ac_top_builddir_sub in
  59940. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  59941. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  59942. - esac ;;
  59943. -esac
  59944. -ac_abs_top_builddir=$ac_pwd
  59945. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  59946. -# for backward compatibility:
  59947. -ac_top_builddir=$ac_top_build_prefix
  59948. +# Whether we need a single "-rpath" flag with a separated argument.
  59949. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  59950. -case $srcdir in
  59951. - .) # We are building in place.
  59952. - ac_srcdir=.
  59953. - ac_top_srcdir=$ac_top_builddir_sub
  59954. - ac_abs_top_srcdir=$ac_pwd ;;
  59955. - [\\/]* | ?:[\\/]* ) # Absolute name.
  59956. - ac_srcdir=$srcdir$ac_dir_suffix;
  59957. - ac_top_srcdir=$srcdir
  59958. - ac_abs_top_srcdir=$srcdir ;;
  59959. - *) # Relative name.
  59960. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  59961. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  59962. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  59963. -esac
  59964. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  59965. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  59966. +# DIR into the resulting binary.
  59967. +hardcode_direct=$hardcode_direct_F77
  59968. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  59969. +# DIR into the resulting binary and the resulting library dependency is
  59970. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  59971. +# library is relocated.
  59972. +hardcode_direct_absolute=$hardcode_direct_absolute_F77
  59973. - case $ac_mode in
  59974. - :F)
  59975. - #
  59976. - # CONFIG_FILE
  59977. - #
  59978. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  59979. +# into the resulting binary.
  59980. +hardcode_minus_L=$hardcode_minus_L_F77
  59981. - case $INSTALL in
  59982. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  59983. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  59984. - esac
  59985. -_ACEOF
  59986. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  59987. +# into the resulting binary.
  59988. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  59989. -cat >>$CONFIG_STATUS <<\_ACEOF
  59990. -# If the template does not know about datarootdir, expand it.
  59991. -# FIXME: This hack should be removed a few years after 2.60.
  59992. -ac_datarootdir_hack=; ac_datarootdir_seen=
  59993. +# Set to "yes" if building a shared library automatically hardcodes DIR
  59994. +# into the library and all subsequent libraries and executables linked
  59995. +# against it.
  59996. +hardcode_automatic=$hardcode_automatic_F77
  59997. -case `sed -n '/datarootdir/ {
  59998. - p
  59999. - q
  60000. -}
  60001. -/@datadir@/p
  60002. -/@docdir@/p
  60003. -/@infodir@/p
  60004. -/@localedir@/p
  60005. -/@mandir@/p
  60006. -' $ac_file_inputs` in
  60007. -*datarootdir*) ac_datarootdir_seen=yes;;
  60008. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  60009. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  60010. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  60011. -_ACEOF
  60012. -cat >>$CONFIG_STATUS <<_ACEOF
  60013. - ac_datarootdir_hack='
  60014. - s&@datadir@&$datadir&g
  60015. - s&@docdir@&$docdir&g
  60016. - s&@infodir@&$infodir&g
  60017. - s&@localedir@&$localedir&g
  60018. - s&@mandir@&$mandir&g
  60019. - s&\\\${datarootdir}&$datarootdir&g' ;;
  60020. -esac
  60021. -_ACEOF
  60022. +# Set to yes if linker adds runtime paths of dependent libraries
  60023. +# to runtime path list.
  60024. +inherit_rpath=$inherit_rpath_F77
  60025. -# Neutralize VPATH when `$srcdir' = `.'.
  60026. -# Shell code in configure.ac might set extrasub.
  60027. -# FIXME: do we really want to maintain this feature?
  60028. -cat >>$CONFIG_STATUS <<_ACEOF
  60029. - sed "$ac_vpsub
  60030. -$extrasub
  60031. -_ACEOF
  60032. -cat >>$CONFIG_STATUS <<\_ACEOF
  60033. -:t
  60034. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  60035. -s&@configure_input@&$configure_input&;t t
  60036. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  60037. -s&@srcdir@&$ac_srcdir&;t t
  60038. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  60039. -s&@top_srcdir@&$ac_top_srcdir&;t t
  60040. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  60041. -s&@builddir@&$ac_builddir&;t t
  60042. -s&@abs_builddir@&$ac_abs_builddir&;t t
  60043. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  60044. -s&@INSTALL@&$ac_INSTALL&;t t
  60045. -$ac_datarootdir_hack
  60046. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  60047. +# Whether libtool must link a program against all its dependency libraries.
  60048. +link_all_deplibs=$link_all_deplibs_F77
  60049. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  60050. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  60051. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  60052. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  60053. -which seems to be undefined. Please make sure it is defined." >&5
  60054. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  60055. -which seems to be undefined. Please make sure it is defined." >&2;}
  60056. +# Fix the shell variable \$srcfile for the compiler.
  60057. +fix_srcfile_path=$lt_fix_srcfile_path_F77
  60058. - rm -f "$tmp/stdin"
  60059. - case $ac_file in
  60060. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  60061. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  60062. - esac
  60063. - ;;
  60064. - :H)
  60065. - #
  60066. - # CONFIG_HEADER
  60067. - #
  60068. -_ACEOF
  60069. +# Set to "yes" if exported symbols are required.
  60070. +always_export_symbols=$always_export_symbols_F77
  60071. -# Transform confdefs.h into a sed script `conftest.defines', that
  60072. -# substitutes the proper values into config.h.in to produce config.h.
  60073. -rm -f conftest.defines conftest.tail
  60074. -# First, append a space to every undef/define line, to ease matching.
  60075. -echo 's/$/ /' >conftest.defines
  60076. -# Then, protect against being on the right side of a sed subst, or in
  60077. -# an unquoted here document, in config.status. If some macros were
  60078. -# called several times there might be several #defines for the same
  60079. -# symbol, which is useless. But do not sort them, since the last
  60080. -# AC_DEFINE must be honored.
  60081. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  60082. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  60083. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  60084. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  60085. -# just an empty string.
  60086. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  60087. -ac_dB='\\)[ (].*,\\1define\\2'
  60088. -ac_dC=' '
  60089. -ac_dD=' ,'
  60090. +# The commands to list exported symbols.
  60091. +export_symbols_cmds=$lt_export_symbols_cmds_F77
  60092. -uniq confdefs.h |
  60093. - sed -n '
  60094. - t rset
  60095. - :rset
  60096. - s/^[ ]*#[ ]*define[ ][ ]*//
  60097. - t ok
  60098. - d
  60099. - :ok
  60100. - s/[\\&,]/\\&/g
  60101. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  60102. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  60103. - ' >>conftest.defines
  60104. -
  60105. -# Remove the space that was appended to ease matching.
  60106. -# Then replace #undef with comments. This is necessary, for
  60107. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  60108. -# on some systems where configure will not decide to define it.
  60109. -# (The regexp can be short, since the line contains either #define or #undef.)
  60110. -echo 's/ $//
  60111. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  60112. -
  60113. -# Break up conftest.defines:
  60114. -ac_max_sed_lines=50
  60115. -
  60116. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  60117. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  60118. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  60119. -# et cetera.
  60120. -ac_in='$ac_file_inputs'
  60121. -ac_out='"$tmp/out1"'
  60122. -ac_nxt='"$tmp/out2"'
  60123. -
  60124. -while :
  60125. -do
  60126. - # Write a here document:
  60127. - cat >>$CONFIG_STATUS <<_ACEOF
  60128. - # First, check the format of the line:
  60129. - cat >"\$tmp/defines.sed" <<\\CEOF
  60130. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  60131. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  60132. -b
  60133. -:def
  60134. -_ACEOF
  60135. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  60136. - echo 'CEOF
  60137. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  60138. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  60139. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  60140. - grep . conftest.tail >/dev/null || break
  60141. - rm -f conftest.defines
  60142. - mv conftest.tail conftest.defines
  60143. -done
  60144. -rm -f conftest.defines conftest.tail
  60145. +# Symbols that should not be listed in the preloaded symbols.
  60146. +exclude_expsyms=$lt_exclude_expsyms_F77
  60147. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  60148. -cat >>$CONFIG_STATUS <<\_ACEOF
  60149. - if test x"$ac_file" != x-; then
  60150. - echo "/* $configure_input */" >"$tmp/config.h"
  60151. - cat "$ac_result" >>"$tmp/config.h"
  60152. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  60153. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  60154. -echo "$as_me: $ac_file is unchanged" >&6;}
  60155. - else
  60156. - rm -f $ac_file
  60157. - mv "$tmp/config.h" $ac_file
  60158. - fi
  60159. - else
  60160. - echo "/* $configure_input */"
  60161. - cat "$ac_result"
  60162. - fi
  60163. - rm -f "$tmp/out12"
  60164. -# Compute $ac_file's index in $config_headers.
  60165. -_am_stamp_count=1
  60166. -for _am_header in $config_headers :; do
  60167. - case $_am_header in
  60168. - $ac_file | $ac_file:* )
  60169. - break ;;
  60170. - * )
  60171. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  60172. - esac
  60173. -done
  60174. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  60175. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  60176. - X$ac_file : 'X\(//\)[^/]' \| \
  60177. - X$ac_file : 'X\(//\)$' \| \
  60178. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  60179. -echo X$ac_file |
  60180. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  60181. - s//\1/
  60182. - q
  60183. - }
  60184. - /^X\(\/\/\)[^/].*/{
  60185. - s//\1/
  60186. - q
  60187. - }
  60188. - /^X\(\/\/\)$/{
  60189. - s//\1/
  60190. - q
  60191. - }
  60192. - /^X\(\/\).*/{
  60193. - s//\1/
  60194. - q
  60195. - }
  60196. - s/.*/./; q'`/stamp-h$_am_stamp_count
  60197. - ;;
  60198. - :L)
  60199. - #
  60200. - # CONFIG_LINK
  60201. - #
  60202. +# Symbols that must always be exported.
  60203. +include_expsyms=$lt_include_expsyms_F77
  60204. +
  60205. +# Commands necessary for linking programs (against libraries) with templates.
  60206. +prelink_cmds=$lt_prelink_cmds_F77
  60207. +
  60208. +# Specify filename containing input files.
  60209. +file_list_spec=$lt_file_list_spec_F77
  60210. +
  60211. +# How to hardcode a shared library path into an executable.
  60212. +hardcode_action=$hardcode_action_F77
  60213. +
  60214. +# The directories searched by this compiler when creating a shared library.
  60215. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  60216. +
  60217. +# Dependencies to place before and after the objects being linked to
  60218. +# create a shared library.
  60219. +predep_objects=$lt_predep_objects_F77
  60220. +postdep_objects=$lt_postdep_objects_F77
  60221. +predeps=$lt_predeps_F77
  60222. +postdeps=$lt_postdeps_F77
  60223. - { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
  60224. -echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
  60225. +# The library search path used internally by the compiler when linking
  60226. +# a shared library.
  60227. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  60228. +
  60229. +# ### END LIBTOOL TAG CONFIG: F77
  60230. +_LT_EOF
  60231. - if test ! -r "$srcdir/$ac_source"; then
  60232. - { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
  60233. -echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
  60234. - { (exit 1); exit 1; }; }
  60235. - fi
  60236. - rm -f "$ac_file"
  60237. -
  60238. - # Try a relative symlink, then a hard link, then a copy.
  60239. - case $srcdir in
  60240. - [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
  60241. - *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
  60242. - esac
  60243. - ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  60244. - ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
  60245. - cp -p "$srcdir/$ac_source" "$ac_file" ||
  60246. - { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
  60247. -echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
  60248. - { (exit 1); exit 1; }; }
  60249. ;;
  60250. esac
  60251. -
  60252. done # for ac_tag
  60253. -{ (exit 0); exit 0; }
  60254. +as_fn_exit 0
  60255. _ACEOF
  60256. -chmod +x $CONFIG_STATUS
  60257. ac_clean_files=$ac_clean_files_save
  60258. +test $ac_write_fail = 0 ||
  60259. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  60260. +
  60261. # configure is writing to config.log, and then calls config.status.
  60262. # config.status does its own redirection, appending to config.log.
  60263. @@ -35558,6 +31150,10 @@
  60264. exec 5>>config.log
  60265. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  60266. # would make configure fail if this is the last instruction.
  60267. - $ac_cs_success || { (exit 1); exit 1; }
  60268. + $ac_cs_success || as_fn_exit $?
  60269. +fi
  60270. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  60271. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  60272. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  60273. fi
  60274. diff -Nur gmp-4.3.2.orig/cxx/Makefile.in gmp-4.3.2/cxx/Makefile.in
  60275. --- gmp-4.3.2.orig/cxx/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  60276. +++ gmp-4.3.2/cxx/Makefile.in 2011-02-16 19:23:19.623552016 +0100
  60277. @@ -1,8 +1,9 @@
  60278. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  60279. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60280. # @configure_input@
  60281. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60282. -# 2003, 2004 Free Software Foundation, Inc.
  60283. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60284. +# Inc.
  60285. # This Makefile.in is free software; the Free Software Foundation
  60286. # gives unlimited permission to copy and/or distribute it,
  60287. # with or without modifications, as long as this notice is preserved.
  60288. @@ -31,17 +32,12 @@
  60289. # You should have received a copy of the GNU Lesser General Public License
  60290. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  60291. -SOURCES = $(libcxx_la_SOURCES)
  60292. -
  60293. -srcdir = @srcdir@
  60294. -top_srcdir = @top_srcdir@
  60295. VPATH = @srcdir@
  60296. pkgdatadir = $(datadir)/@PACKAGE@
  60297. -pkglibdir = $(libdir)/@PACKAGE@
  60298. pkgincludedir = $(includedir)/@PACKAGE@
  60299. -top_builddir = ..
  60300. +pkglibdir = $(libdir)/@PACKAGE@
  60301. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60302. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60303. -INSTALL = @INSTALL@
  60304. install_sh_DATA = $(install_sh) -c -m 644
  60305. install_sh_PROGRAM = $(install_sh) -c
  60306. install_sh_SCRIPT = $(install_sh) -c
  60307. @@ -53,6 +49,7 @@
  60308. NORMAL_UNINSTALL = :
  60309. PRE_UNINSTALL = :
  60310. POST_UNINSTALL = :
  60311. +build_triplet = @build@
  60312. host_triplet = @host@
  60313. ANSI2KNR = $(top_builddir)/ansi2knr
  60314. subdir = cxx
  60315. @@ -62,25 +59,28 @@
  60316. $(top_srcdir)/configure.in
  60317. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  60318. $(ACLOCAL_M4)
  60319. -mkinstalldirs = $(mkdir_p)
  60320. +mkinstalldirs = $(install_sh) -d
  60321. CONFIG_HEADER = $(top_builddir)/config.h
  60322. CONFIG_CLEAN_FILES =
  60323. +CONFIG_CLEAN_VPATH_FILES =
  60324. LTLIBRARIES = $(noinst_LTLIBRARIES)
  60325. libcxx_la_LIBADD =
  60326. am_libcxx_la_OBJECTS = isfuns.lo ismpf.lo ismpq.lo ismpz.lo ismpznw.lo \
  60327. osdoprnti.lo osfuns.lo osmpf.lo osmpq.lo osmpz.lo
  60328. libcxx_la_OBJECTS = $(am_libcxx_la_OBJECTS)
  60329. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  60330. +@WANT_CXX_TRUE@am_libcxx_la_rpath =
  60331. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  60332. depcomp =
  60333. am__depfiles_maybe =
  60334. CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  60335. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  60336. -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
  60337. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  60338. - $(AM_CXXFLAGS) $(CXXFLAGS)
  60339. +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60340. + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  60341. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  60342. CXXLD = $(CXX)
  60343. -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
  60344. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  60345. +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60346. + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
  60347. + $(LDFLAGS) -o $@
  60348. SOURCES = $(libcxx_la_SOURCES)
  60349. DIST_SOURCES = $(libcxx_la_SOURCES)
  60350. ETAGS = etags
  60351. @@ -112,15 +112,17 @@
  60352. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  60353. DEFS = @DEFS@
  60354. DLLTOOL = @DLLTOOL@
  60355. -ECHO = @ECHO@
  60356. +DSYMUTIL = @DSYMUTIL@
  60357. +DUMPBIN = @DUMPBIN@
  60358. ECHO_C = @ECHO_C@
  60359. ECHO_N = @ECHO_N@
  60360. ECHO_T = @ECHO_T@
  60361. EGREP = @EGREP@
  60362. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  60363. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  60364. EXEEXT = @EXEEXT@
  60365. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  60366. +F77 = @F77@
  60367. +FFLAGS = @FFLAGS@
  60368. +FGREP = @FGREP@
  60369. GMP_LDFLAGS = @GMP_LDFLAGS@
  60370. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  60371. GREP = @GREP@
  60372. @@ -135,10 +137,12 @@
  60373. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  60374. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  60375. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  60376. +INSTALL = @INSTALL@
  60377. INSTALL_DATA = @INSTALL_DATA@
  60378. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  60379. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  60380. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  60381. +LD = @LD@
  60382. LDFLAGS = @LDFLAGS@
  60383. LEX = @LEX@
  60384. LEXLIB = @LEXLIB@
  60385. @@ -153,20 +157,25 @@
  60386. LIBREADLINE = @LIBREADLINE@
  60387. LIBS = @LIBS@
  60388. LIBTOOL = @LIBTOOL@
  60389. +LIPO = @LIPO@
  60390. LN_S = @LN_S@
  60391. LTLIBOBJS = @LTLIBOBJS@
  60392. M4 = @M4@
  60393. MAINT = @MAINT@
  60394. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  60395. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  60396. MAKEINFO = @MAKEINFO@
  60397. +MKDIR_P = @MKDIR_P@
  60398. +NM = @NM@
  60399. +NMEDIT = @NMEDIT@
  60400. OBJDUMP = @OBJDUMP@
  60401. OBJEXT = @OBJEXT@
  60402. +OTOOL = @OTOOL@
  60403. +OTOOL64 = @OTOOL64@
  60404. PACKAGE = @PACKAGE@
  60405. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  60406. PACKAGE_NAME = @PACKAGE_NAME@
  60407. PACKAGE_STRING = @PACKAGE_STRING@
  60408. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  60409. +PACKAGE_URL = @PACKAGE_URL@
  60410. PACKAGE_VERSION = @PACKAGE_VERSION@
  60411. PATH_SEPARATOR = @PATH_SEPARATOR@
  60412. RANLIB = @RANLIB@
  60413. @@ -180,22 +189,27 @@
  60414. U = @U@
  60415. U_FOR_BUILD = @U_FOR_BUILD@
  60416. VERSION = @VERSION@
  60417. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  60418. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  60419. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  60420. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  60421. WITH_READLINE_01 = @WITH_READLINE_01@
  60422. YACC = @YACC@
  60423. YFLAGS = @YFLAGS@
  60424. +abs_builddir = @abs_builddir@
  60425. +abs_srcdir = @abs_srcdir@
  60426. +abs_top_builddir = @abs_top_builddir@
  60427. +abs_top_srcdir = @abs_top_srcdir@
  60428. ac_ct_CC = @ac_ct_CC@
  60429. ac_ct_CXX = @ac_ct_CXX@
  60430. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  60431. +ac_ct_F77 = @ac_ct_F77@
  60432. am__leading_dot = @am__leading_dot@
  60433. +am__tar = @am__tar@
  60434. +am__untar = @am__untar@
  60435. bindir = @bindir@
  60436. build = @build@
  60437. build_alias = @build_alias@
  60438. build_cpu = @build_cpu@
  60439. build_os = @build_os@
  60440. build_vendor = @build_vendor@
  60441. +builddir = @builddir@
  60442. datadir = @datadir@
  60443. datarootdir = @datarootdir@
  60444. docdir = @docdir@
  60445. @@ -215,6 +229,7 @@
  60446. libexecdir = @libexecdir@
  60447. localedir = @localedir@
  60448. localstatedir = @localstatedir@
  60449. +lt_ECHO = @lt_ECHO@
  60450. mandir = @mandir@
  60451. mkdir_p = @mkdir_p@
  60452. mpn_objects = @mpn_objects@
  60453. @@ -227,8 +242,12 @@
  60454. psdir = @psdir@
  60455. sbindir = @sbindir@
  60456. sharedstatedir = @sharedstatedir@
  60457. +srcdir = @srcdir@
  60458. sysconfdir = @sysconfdir@
  60459. target_alias = @target_alias@
  60460. +top_build_prefix = @top_build_prefix@
  60461. +top_builddir = @top_builddir@
  60462. +top_srcdir = @top_srcdir@
  60463. INCLUDES = -D__GMP_WITHIN_GMPXX -I$(top_srcdir)
  60464. @WANT_CXX_TRUE@noinst_LTLIBRARIES = libcxx.la
  60465. libcxx_la_SOURCES = \
  60466. @@ -243,14 +262,14 @@
  60467. @for dep in $?; do \
  60468. case '$(am__configure_deps)' in \
  60469. *$$dep*) \
  60470. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  60471. - && exit 0; \
  60472. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  60473. + && { if test -f $@; then exit 0; else break; fi; }; \
  60474. exit 1;; \
  60475. esac; \
  60476. done; \
  60477. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps cxx/Makefile'; \
  60478. - cd $(top_srcdir) && \
  60479. - $(AUTOMAKE) --gnu --ignore-deps cxx/Makefile
  60480. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps cxx/Makefile'; \
  60481. + $(am__cd) $(top_srcdir) && \
  60482. + $(AUTOMAKE) --gnu --ignore-deps cxx/Makefile
  60483. .PRECIOUS: Makefile
  60484. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  60485. @case '$?' in \
  60486. @@ -268,17 +287,18 @@
  60487. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60488. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  60489. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60490. +$(am__aclocal_m4_deps):
  60491. clean-noinstLTLIBRARIES:
  60492. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  60493. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  60494. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  60495. - test "$$dir" = "$$p" && dir=.; \
  60496. + test "$$dir" != "$$p" || dir=.; \
  60497. echo "rm -f \"$${dir}/so_locations\""; \
  60498. rm -f "$${dir}/so_locations"; \
  60499. done
  60500. libcxx.la: $(libcxx_la_OBJECTS) $(libcxx_la_DEPENDENCIES)
  60501. - $(CXXLINK) $(libcxx_la_LDFLAGS) $(libcxx_la_OBJECTS) $(libcxx_la_LIBADD) $(LIBS)
  60502. + $(CXXLINK) $(am_libcxx_la_rpath) $(libcxx_la_OBJECTS) $(libcxx_la_LIBADD) $(LIBS)
  60503. mostlyclean-compile:
  60504. -rm -f *.$(OBJEXT)
  60505. @@ -286,7 +306,7 @@
  60506. distclean-compile:
  60507. -rm -f *.tab.c
  60508. $(top_builddir)/ansi2knr:
  60509. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  60510. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  60511. mostlyclean-kr:
  60512. -test "$U" = "" || rm -f *_.c
  60513. @@ -306,82 +326,85 @@
  60514. clean-libtool:
  60515. -rm -rf .libs _libs
  60516. -distclean-libtool:
  60517. - -rm -f libtool
  60518. -uninstall-info-am:
  60519. -
  60520. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  60521. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60522. unique=`for i in $$list; do \
  60523. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60524. done | \
  60525. - $(AWK) ' { files[$$0] = 1; } \
  60526. - END { for (i in files) print i; }'`; \
  60527. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60528. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60529. mkid -fID $$unique
  60530. tags: TAGS
  60531. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60532. $(TAGS_FILES) $(LISP)
  60533. - tags=; \
  60534. + set x; \
  60535. here=`pwd`; \
  60536. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60537. unique=`for i in $$list; do \
  60538. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60539. done | \
  60540. - $(AWK) ' { files[$$0] = 1; } \
  60541. - END { for (i in files) print i; }'`; \
  60542. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  60543. - test -z "$$unique" && unique=$$empty_fix; \
  60544. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60545. - $$tags $$unique; \
  60546. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60547. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60548. + shift; \
  60549. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  60550. + test -n "$$unique" || unique=$$empty_fix; \
  60551. + if test $$# -gt 0; then \
  60552. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60553. + "$$@" $$unique; \
  60554. + else \
  60555. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60556. + $$unique; \
  60557. + fi; \
  60558. fi
  60559. ctags: CTAGS
  60560. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60561. $(TAGS_FILES) $(LISP)
  60562. - tags=; \
  60563. - here=`pwd`; \
  60564. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60565. unique=`for i in $$list; do \
  60566. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60567. done | \
  60568. - $(AWK) ' { files[$$0] = 1; } \
  60569. - END { for (i in files) print i; }'`; \
  60570. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  60571. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60572. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60573. + test -z "$(CTAGS_ARGS)$$unique" \
  60574. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  60575. - $$tags $$unique
  60576. + $$unique
  60577. GTAGS:
  60578. here=`$(am__cd) $(top_builddir) && pwd` \
  60579. - && cd $(top_srcdir) \
  60580. - && gtags -i $(GTAGS_ARGS) $$here
  60581. + && $(am__cd) $(top_srcdir) \
  60582. + && gtags -i $(GTAGS_ARGS) "$$here"
  60583. distclean-tags:
  60584. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  60585. distdir: $(DISTFILES)
  60586. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  60587. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  60588. - list='$(DISTFILES)'; for file in $$list; do \
  60589. - case $$file in \
  60590. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  60591. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  60592. - esac; \
  60593. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  60594. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  60595. + list='$(DISTFILES)'; \
  60596. + dist_files=`for file in $$list; do echo $$file; done | \
  60597. + sed -e "s|^$$srcdirstrip/||;t" \
  60598. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  60599. + case $$dist_files in \
  60600. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  60601. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  60602. + sort -u` ;; \
  60603. + esac; \
  60604. + for file in $$dist_files; do \
  60605. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  60606. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  60607. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  60608. - dir="/$$dir"; \
  60609. - $(mkdir_p) "$(distdir)$$dir"; \
  60610. - else \
  60611. - dir=''; \
  60612. - fi; \
  60613. if test -d $$d/$$file; then \
  60614. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  60615. + if test -d "$(distdir)/$$file"; then \
  60616. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  60617. + fi; \
  60618. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  60619. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  60620. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  60621. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  60622. fi; \
  60623. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  60624. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  60625. else \
  60626. - test -f $(distdir)/$$file \
  60627. - || cp -p $$d/$$file $(distdir)/$$file \
  60628. + test -f "$(distdir)/$$file" \
  60629. + || cp -p $$d/$$file "$(distdir)/$$file" \
  60630. || exit 1; \
  60631. fi; \
  60632. done
  60633. @@ -408,7 +431,8 @@
  60634. clean-generic:
  60635. distclean-generic:
  60636. - -rm -f $(CONFIG_CLEAN_FILES)
  60637. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  60638. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  60639. maintainer-clean-generic:
  60640. @echo "This command is intended for maintainers to use"
  60641. @@ -421,7 +445,7 @@
  60642. distclean: distclean-am
  60643. -rm -f Makefile
  60644. distclean-am: clean-am distclean-compile distclean-generic \
  60645. - distclean-libtool distclean-tags
  60646. + distclean-tags
  60647. dvi: dvi-am
  60648. @@ -429,18 +453,38 @@
  60649. html: html-am
  60650. +html-am:
  60651. +
  60652. info: info-am
  60653. info-am:
  60654. install-data-am:
  60655. +install-dvi: install-dvi-am
  60656. +
  60657. +install-dvi-am:
  60658. +
  60659. install-exec-am:
  60660. +install-html: install-html-am
  60661. +
  60662. +install-html-am:
  60663. +
  60664. install-info: install-info-am
  60665. +install-info-am:
  60666. +
  60667. install-man:
  60668. +install-pdf: install-pdf-am
  60669. +
  60670. +install-pdf-am:
  60671. +
  60672. +install-ps: install-ps-am
  60673. +
  60674. +install-ps-am:
  60675. +
  60676. installcheck-am:
  60677. maintainer-clean: maintainer-clean-am
  60678. @@ -460,19 +504,24 @@
  60679. ps-am:
  60680. -uninstall-am: uninstall-info-am
  60681. +uninstall-am:
  60682. +
  60683. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  60684. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  60685. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  60686. distclean-compile distclean-generic distclean-libtool \
  60687. distclean-tags distdir dvi dvi-am html html-am info info-am \
  60688. - install install-am install-data install-data-am install-exec \
  60689. - install-exec-am install-info install-info-am install-man \
  60690. + install install-am install-data install-data-am install-dvi \
  60691. + install-dvi-am install-exec install-exec-am install-html \
  60692. + install-html-am install-info install-info-am install-man \
  60693. + install-pdf install-pdf-am install-ps install-ps-am \
  60694. install-strip installcheck installcheck-am installdirs \
  60695. maintainer-clean maintainer-clean-generic mostlyclean \
  60696. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  60697. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  60698. - uninstall-am uninstall-info-am
  60699. + uninstall-am
  60700. +
  60701. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  60702. # Otherwise a system limit (for SysV at least) may be exceeded.
  60703. diff -Nur gmp-4.3.2.orig/demos/calc/Makefile.in gmp-4.3.2/demos/calc/Makefile.in
  60704. --- gmp-4.3.2.orig/demos/calc/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  60705. +++ gmp-4.3.2/demos/calc/Makefile.in 2011-02-16 19:23:19.793562869 +0100
  60706. @@ -1,8 +1,9 @@
  60707. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  60708. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60709. # @configure_input@
  60710. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60711. -# 2003, 2004 Free Software Foundation, Inc.
  60712. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60713. +# Inc.
  60714. # This Makefile.in is free software; the Free Software Foundation
  60715. # gives unlimited permission to copy and/or distribute it,
  60716. # with or without modifications, as long as this notice is preserved.
  60717. @@ -30,17 +31,12 @@
  60718. #
  60719. # You should have received a copy of the GNU Lesser General Public License
  60720. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  60721. -SOURCES = $(calc_SOURCES)
  60722. -
  60723. -srcdir = @srcdir@
  60724. -top_srcdir = @top_srcdir@
  60725. VPATH = @srcdir@
  60726. pkgdatadir = $(datadir)/@PACKAGE@
  60727. -pkglibdir = $(libdir)/@PACKAGE@
  60728. pkgincludedir = $(includedir)/@PACKAGE@
  60729. -top_builddir = ../..
  60730. +pkglibdir = $(libdir)/@PACKAGE@
  60731. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60732. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60733. -INSTALL = @INSTALL@
  60734. install_sh_DATA = $(install_sh) -c -m 644
  60735. install_sh_PROGRAM = $(install_sh) -c
  60736. install_sh_SCRIPT = $(install_sh) -c
  60737. @@ -52,6 +48,7 @@
  60738. NORMAL_UNINSTALL = :
  60739. PRE_UNINSTALL = :
  60740. POST_UNINSTALL = :
  60741. +build_triplet = @build@
  60742. host_triplet = @host@
  60743. ANSI2KNR = $(top_builddir)/ansi2knr
  60744. EXTRA_PROGRAMS = calc$(EXEEXT)
  60745. @@ -63,9 +60,10 @@
  60746. $(top_srcdir)/configure.in
  60747. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  60748. $(ACLOCAL_M4)
  60749. -mkinstalldirs = $(mkdir_p)
  60750. +mkinstalldirs = $(install_sh) -d
  60751. CONFIG_HEADER = $(top_builddir)/config.h
  60752. CONFIG_CLEAN_FILES = calc-config.h
  60753. +CONFIG_CLEAN_VPATH_FILES =
  60754. am_calc_OBJECTS = calc$U.$(OBJEXT) calclex$U.$(OBJEXT) \
  60755. calcread$U.$(OBJEXT)
  60756. calc_OBJECTS = $(am_calc_OBJECTS)
  60757. @@ -73,22 +71,27 @@
  60758. am__DEPENDENCIES_1 =
  60759. calc_DEPENDENCIES = $(top_builddir)/libgmp.la $(am__DEPENDENCIES_1) \
  60760. $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
  60761. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  60762. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  60763. depcomp =
  60764. am__depfiles_maybe =
  60765. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  60766. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60767. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  60768. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  60769. - $(AM_CFLAGS) $(CFLAGS)
  60770. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60771. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  60772. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60773. CCLD = $(CC)
  60774. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  60775. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  60776. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60777. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  60778. + $(LDFLAGS) -o $@
  60779. +@MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
  60780. LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
  60781. -LTLEXCOMPILE = $(LIBTOOL) --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
  60782. +LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60783. + --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
  60784. +YLWRAP = $(top_srcdir)/ylwrap
  60785. +@MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
  60786. YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
  60787. -LTYACCCOMPILE = $(LIBTOOL) --mode=compile $(YACC) $(YFLAGS) \
  60788. - $(AM_YFLAGS)
  60789. +LTYACCCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60790. + --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS)
  60791. SOURCES = $(calc_SOURCES)
  60792. DIST_SOURCES = $(calc_SOURCES)
  60793. ETAGS = etags
  60794. @@ -120,15 +123,17 @@
  60795. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  60796. DEFS = @DEFS@
  60797. DLLTOOL = @DLLTOOL@
  60798. -ECHO = @ECHO@
  60799. +DSYMUTIL = @DSYMUTIL@
  60800. +DUMPBIN = @DUMPBIN@
  60801. ECHO_C = @ECHO_C@
  60802. ECHO_N = @ECHO_N@
  60803. ECHO_T = @ECHO_T@
  60804. EGREP = @EGREP@
  60805. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  60806. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  60807. EXEEXT = @EXEEXT@
  60808. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  60809. +F77 = @F77@
  60810. +FFLAGS = @FFLAGS@
  60811. +FGREP = @FGREP@
  60812. GMP_LDFLAGS = @GMP_LDFLAGS@
  60813. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  60814. GREP = @GREP@
  60815. @@ -143,10 +148,12 @@
  60816. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  60817. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  60818. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  60819. +INSTALL = @INSTALL@
  60820. INSTALL_DATA = @INSTALL_DATA@
  60821. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  60822. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  60823. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  60824. +LD = @LD@
  60825. LDFLAGS = @LDFLAGS@
  60826. LEX = @LEX@
  60827. LEXLIB = @LEXLIB@
  60828. @@ -161,20 +168,25 @@
  60829. LIBREADLINE = @LIBREADLINE@
  60830. LIBS = @LIBS@
  60831. LIBTOOL = @LIBTOOL@
  60832. +LIPO = @LIPO@
  60833. LN_S = @LN_S@
  60834. LTLIBOBJS = @LTLIBOBJS@
  60835. M4 = @M4@
  60836. MAINT = @MAINT@
  60837. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  60838. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  60839. MAKEINFO = @MAKEINFO@
  60840. +MKDIR_P = @MKDIR_P@
  60841. +NM = @NM@
  60842. +NMEDIT = @NMEDIT@
  60843. OBJDUMP = @OBJDUMP@
  60844. OBJEXT = @OBJEXT@
  60845. +OTOOL = @OTOOL@
  60846. +OTOOL64 = @OTOOL64@
  60847. PACKAGE = @PACKAGE@
  60848. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  60849. PACKAGE_NAME = @PACKAGE_NAME@
  60850. PACKAGE_STRING = @PACKAGE_STRING@
  60851. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  60852. +PACKAGE_URL = @PACKAGE_URL@
  60853. PACKAGE_VERSION = @PACKAGE_VERSION@
  60854. PATH_SEPARATOR = @PATH_SEPARATOR@
  60855. RANLIB = @RANLIB@
  60856. @@ -188,22 +200,27 @@
  60857. U = @U@
  60858. U_FOR_BUILD = @U_FOR_BUILD@
  60859. VERSION = @VERSION@
  60860. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  60861. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  60862. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  60863. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  60864. WITH_READLINE_01 = @WITH_READLINE_01@
  60865. YACC = @YACC@
  60866. YFLAGS = @YFLAGS@
  60867. +abs_builddir = @abs_builddir@
  60868. +abs_srcdir = @abs_srcdir@
  60869. +abs_top_builddir = @abs_top_builddir@
  60870. +abs_top_srcdir = @abs_top_srcdir@
  60871. ac_ct_CC = @ac_ct_CC@
  60872. ac_ct_CXX = @ac_ct_CXX@
  60873. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  60874. +ac_ct_F77 = @ac_ct_F77@
  60875. am__leading_dot = @am__leading_dot@
  60876. +am__tar = @am__tar@
  60877. +am__untar = @am__untar@
  60878. bindir = @bindir@
  60879. build = @build@
  60880. build_alias = @build_alias@
  60881. build_cpu = @build_cpu@
  60882. build_os = @build_os@
  60883. build_vendor = @build_vendor@
  60884. +builddir = @builddir@
  60885. datadir = @datadir@
  60886. datarootdir = @datarootdir@
  60887. docdir = @docdir@
  60888. @@ -223,6 +240,7 @@
  60889. libexecdir = @libexecdir@
  60890. localedir = @localedir@
  60891. localstatedir = @localstatedir@
  60892. +lt_ECHO = @lt_ECHO@
  60893. mandir = @mandir@
  60894. mkdir_p = @mkdir_p@
  60895. mpn_objects = @mpn_objects@
  60896. @@ -235,8 +253,12 @@
  60897. psdir = @psdir@
  60898. sbindir = @sbindir@
  60899. sharedstatedir = @sharedstatedir@
  60900. +srcdir = @srcdir@
  60901. sysconfdir = @sysconfdir@
  60902. target_alias = @target_alias@
  60903. +top_build_prefix = @top_build_prefix@
  60904. +top_builddir = @top_builddir@
  60905. +top_srcdir = @top_srcdir@
  60906. INCLUDES = -I$(top_srcdir)
  60907. # $(LEXLIB) is not actually needed for flex (which means the distributed
  60908. @@ -257,14 +279,14 @@
  60909. @for dep in $?; do \
  60910. case '$(am__configure_deps)' in \
  60911. *$$dep*) \
  60912. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  60913. - && exit 0; \
  60914. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  60915. + && { if test -f $@; then exit 0; else break; fi; }; \
  60916. exit 1;; \
  60917. esac; \
  60918. done; \
  60919. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/calc/Makefile'; \
  60920. - cd $(top_srcdir) && \
  60921. - $(AUTOMAKE) --gnu --ignore-deps demos/calc/Makefile
  60922. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/calc/Makefile'; \
  60923. + $(am__cd) $(top_srcdir) && \
  60924. + $(AUTOMAKE) --gnu --ignore-deps demos/calc/Makefile
  60925. .PRECIOUS: Makefile
  60926. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  60927. @case '$?' in \
  60928. @@ -282,16 +304,17 @@
  60929. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60930. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  60931. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60932. +$(am__aclocal_m4_deps):
  60933. calc-config.h: $(top_builddir)/config.status $(srcdir)/calc-config-h.in
  60934. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  60935. calc.h: calc.c
  60936. @if test ! -f $@; then \
  60937. rm -f calc.c; \
  60938. - $(MAKE) calc.c; \
  60939. + $(MAKE) $(AM_MAKEFLAGS) calc.c; \
  60940. else :; fi
  60941. calc$(EXEEXT): $(calc_OBJECTS) $(calc_DEPENDENCIES)
  60942. @rm -f calc$(EXEEXT)
  60943. - $(LINK) $(calc_LDFLAGS) $(calc_OBJECTS) $(calc_LDADD) $(LIBS)
  60944. + $(LINK) $(calc_OBJECTS) $(calc_LDADD) $(LIBS)
  60945. mostlyclean-compile:
  60946. -rm -f *.$(OBJEXT)
  60947. @@ -299,7 +322,7 @@
  60948. distclean-compile:
  60949. -rm -f *.tab.c
  60950. $(top_builddir)/ansi2knr:
  60951. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  60952. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  60953. mostlyclean-kr:
  60954. -test "$U" = "" || rm -f *_.c
  60955. @@ -322,29 +345,10 @@
  60956. calcread_.$(OBJEXT) calcread_.lo : $(ANSI2KNR)
  60957. .l.c:
  60958. - $(LEXCOMPILE) $<
  60959. - sed '/^#/ s|$(LEX_OUTPUT_ROOT)\.c|$@|' $(LEX_OUTPUT_ROOT).c >$@
  60960. - rm -f $(LEX_OUTPUT_ROOT).c
  60961. + $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
  60962. .y.c:
  60963. - $(YACCCOMPILE) $<
  60964. - if test -f y.tab.h; then \
  60965. - to=`echo "$*_H" | sed \
  60966. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
  60967. - -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
  60968. - sed "/^#/ s/Y_TAB_H/$$to/g" y.tab.h >$*.ht; \
  60969. - rm -f y.tab.h; \
  60970. - if cmp -s $*.ht $*.h; then \
  60971. - rm -f $*.ht ;\
  60972. - else \
  60973. - mv $*.ht $*.h; \
  60974. - fi; \
  60975. - fi
  60976. - if test -f y.output; then \
  60977. - mv y.output $*.output; \
  60978. - fi
  60979. - sed '/^#/ s|y\.tab\.c|$@|' y.tab.c >$@t && mv $@t $@
  60980. - rm -f y.tab.c
  60981. + $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
  60982. mostlyclean-libtool:
  60983. -rm -f *.lo
  60984. @@ -352,82 +356,85 @@
  60985. clean-libtool:
  60986. -rm -rf .libs _libs
  60987. -distclean-libtool:
  60988. - -rm -f libtool
  60989. -uninstall-info-am:
  60990. -
  60991. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  60992. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60993. unique=`for i in $$list; do \
  60994. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60995. done | \
  60996. - $(AWK) ' { files[$$0] = 1; } \
  60997. - END { for (i in files) print i; }'`; \
  60998. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60999. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61000. mkid -fID $$unique
  61001. tags: TAGS
  61002. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61003. $(TAGS_FILES) $(LISP)
  61004. - tags=; \
  61005. + set x; \
  61006. here=`pwd`; \
  61007. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61008. unique=`for i in $$list; do \
  61009. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61010. done | \
  61011. - $(AWK) ' { files[$$0] = 1; } \
  61012. - END { for (i in files) print i; }'`; \
  61013. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61014. - test -z "$$unique" && unique=$$empty_fix; \
  61015. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61016. - $$tags $$unique; \
  61017. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61018. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61019. + shift; \
  61020. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61021. + test -n "$$unique" || unique=$$empty_fix; \
  61022. + if test $$# -gt 0; then \
  61023. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61024. + "$$@" $$unique; \
  61025. + else \
  61026. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61027. + $$unique; \
  61028. + fi; \
  61029. fi
  61030. ctags: CTAGS
  61031. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61032. $(TAGS_FILES) $(LISP)
  61033. - tags=; \
  61034. - here=`pwd`; \
  61035. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61036. unique=`for i in $$list; do \
  61037. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61038. done | \
  61039. - $(AWK) ' { files[$$0] = 1; } \
  61040. - END { for (i in files) print i; }'`; \
  61041. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61042. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61043. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61044. + test -z "$(CTAGS_ARGS)$$unique" \
  61045. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61046. - $$tags $$unique
  61047. + $$unique
  61048. GTAGS:
  61049. here=`$(am__cd) $(top_builddir) && pwd` \
  61050. - && cd $(top_srcdir) \
  61051. - && gtags -i $(GTAGS_ARGS) $$here
  61052. + && $(am__cd) $(top_srcdir) \
  61053. + && gtags -i $(GTAGS_ARGS) "$$here"
  61054. distclean-tags:
  61055. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61056. distdir: $(DISTFILES)
  61057. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61058. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61059. - list='$(DISTFILES)'; for file in $$list; do \
  61060. - case $$file in \
  61061. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61062. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61063. - esac; \
  61064. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61065. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61066. + list='$(DISTFILES)'; \
  61067. + dist_files=`for file in $$list; do echo $$file; done | \
  61068. + sed -e "s|^$$srcdirstrip/||;t" \
  61069. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61070. + case $$dist_files in \
  61071. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61072. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61073. + sort -u` ;; \
  61074. + esac; \
  61075. + for file in $$dist_files; do \
  61076. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61077. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61078. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61079. - dir="/$$dir"; \
  61080. - $(mkdir_p) "$(distdir)$$dir"; \
  61081. - else \
  61082. - dir=''; \
  61083. - fi; \
  61084. if test -d $$d/$$file; then \
  61085. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61086. + if test -d "$(distdir)/$$file"; then \
  61087. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61088. + fi; \
  61089. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61090. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61091. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61092. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61093. fi; \
  61094. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61095. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61096. else \
  61097. - test -f $(distdir)/$$file \
  61098. - || cp -p $$d/$$file $(distdir)/$$file \
  61099. + test -f "$(distdir)/$$file" \
  61100. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61101. || exit 1; \
  61102. fi; \
  61103. done
  61104. @@ -457,15 +464,16 @@
  61105. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  61106. distclean-generic:
  61107. - -rm -f $(CONFIG_CLEAN_FILES)
  61108. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61109. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61110. maintainer-clean-generic:
  61111. @echo "This command is intended for maintainers to use"
  61112. @echo "it deletes files that may require special tools to rebuild."
  61113. - -rm -f calc.h
  61114. -rm -f calc.c
  61115. - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
  61116. + -rm -f calc.h
  61117. -rm -f calclex.c
  61118. + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
  61119. clean: clean-am
  61120. clean-am: clean-generic clean-libtool mostlyclean-am
  61121. @@ -473,7 +481,7 @@
  61122. distclean: distclean-am
  61123. -rm -f Makefile
  61124. distclean-am: clean-am distclean-compile distclean-generic \
  61125. - distclean-libtool distclean-tags
  61126. + distclean-tags
  61127. dvi: dvi-am
  61128. @@ -481,18 +489,38 @@
  61129. html: html-am
  61130. +html-am:
  61131. +
  61132. info: info-am
  61133. info-am:
  61134. install-data-am:
  61135. +install-dvi: install-dvi-am
  61136. +
  61137. +install-dvi-am:
  61138. +
  61139. install-exec-am:
  61140. +install-html: install-html-am
  61141. +
  61142. +install-html-am:
  61143. +
  61144. install-info: install-info-am
  61145. +install-info-am:
  61146. +
  61147. install-man:
  61148. +install-pdf: install-pdf-am
  61149. +
  61150. +install-pdf-am:
  61151. +
  61152. +install-ps: install-ps-am
  61153. +
  61154. +install-ps-am:
  61155. +
  61156. installcheck-am:
  61157. maintainer-clean: maintainer-clean-am
  61158. @@ -512,21 +540,27 @@
  61159. ps-am:
  61160. -uninstall-am: uninstall-info-am
  61161. +uninstall-am:
  61162. +
  61163. +.MAKE: $(top_builddir)/ansi2knr all check install install-am \
  61164. + install-strip
  61165. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  61166. clean-libtool ctags distclean distclean-compile \
  61167. distclean-generic distclean-libtool distclean-tags distdir dvi \
  61168. dvi-am html html-am info info-am install install-am \
  61169. - install-data install-data-am install-exec install-exec-am \
  61170. - install-info install-info-am install-man install-strip \
  61171. + install-data install-data-am install-dvi install-dvi-am \
  61172. + install-exec install-exec-am install-html install-html-am \
  61173. + install-info install-info-am install-man install-pdf \
  61174. + install-pdf-am install-ps install-ps-am install-strip \
  61175. installcheck installcheck-am installdirs maintainer-clean \
  61176. maintainer-clean-generic mostlyclean mostlyclean-compile \
  61177. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  61178. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  61179. + pdf-am ps ps-am tags uninstall uninstall-am
  61180. allprogs: $(EXTRA_PROGRAMS)
  61181. +
  61182. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61183. # Otherwise a system limit (for SysV at least) may be exceeded.
  61184. .NOEXPORT:
  61185. diff -Nur gmp-4.3.2.orig/demos/expr/Makefile.in gmp-4.3.2/demos/expr/Makefile.in
  61186. --- gmp-4.3.2.orig/demos/expr/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  61187. +++ gmp-4.3.2/demos/expr/Makefile.in 2011-02-16 19:23:19.844802283 +0100
  61188. @@ -1,8 +1,9 @@
  61189. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  61190. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61191. # @configure_input@
  61192. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61193. -# 2003, 2004 Free Software Foundation, Inc.
  61194. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61195. +# Inc.
  61196. # This Makefile.in is free software; the Free Software Foundation
  61197. # gives unlimited permission to copy and/or distribute it,
  61198. # with or without modifications, as long as this notice is preserved.
  61199. @@ -30,17 +31,12 @@
  61200. #
  61201. # You should have received a copy of the GNU Lesser General Public License
  61202. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  61203. -SOURCES = $(libexpr_a_SOURCES) run-expr.c t-expr.c
  61204. -
  61205. -srcdir = @srcdir@
  61206. -top_srcdir = @top_srcdir@
  61207. VPATH = @srcdir@
  61208. pkgdatadir = $(datadir)/@PACKAGE@
  61209. -pkglibdir = $(libdir)/@PACKAGE@
  61210. pkgincludedir = $(includedir)/@PACKAGE@
  61211. -top_builddir = ../..
  61212. +pkglibdir = $(libdir)/@PACKAGE@
  61213. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61214. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61215. -INSTALL = @INSTALL@
  61216. install_sh_DATA = $(install_sh) -c -m 644
  61217. install_sh_PROGRAM = $(install_sh) -c
  61218. install_sh_SCRIPT = $(install_sh) -c
  61219. @@ -52,6 +48,7 @@
  61220. NORMAL_UNINSTALL = :
  61221. PRE_UNINSTALL = :
  61222. POST_UNINSTALL = :
  61223. +build_triplet = @build@
  61224. host_triplet = @host@
  61225. ANSI2KNR = $(top_builddir)/ansi2knr
  61226. EXTRA_PROGRAMS = run-expr$(EXEEXT) t-expr$(EXEEXT)
  61227. @@ -62,9 +59,10 @@
  61228. $(top_srcdir)/configure.in
  61229. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61230. $(ACLOCAL_M4)
  61231. -mkinstalldirs = $(mkdir_p)
  61232. +mkinstalldirs = $(install_sh) -d
  61233. CONFIG_HEADER = $(top_builddir)/config.h
  61234. CONFIG_CLEAN_FILES =
  61235. +CONFIG_CLEAN_VPATH_FILES =
  61236. libexpr_a_AR = $(AR) $(ARFLAGS)
  61237. libexpr_a_LIBADD =
  61238. am_libexpr_a_OBJECTS = expr$U.$(OBJEXT) exprv$U.$(OBJEXT) \
  61239. @@ -77,20 +75,19 @@
  61240. run_expr_DEPENDENCIES = libexpr.a $(top_builddir)/libgmp.la
  61241. t_expr_SOURCES = t-expr.c
  61242. t_expr_OBJECTS = t-expr$U.$(OBJEXT)
  61243. -am__DEPENDENCIES_1 = libexpr.a $(top_builddir)/libgmp.la
  61244. -t_expr_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  61245. - $(am__DEPENDENCIES_1)
  61246. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  61247. +t_expr_DEPENDENCIES = $(top_builddir)/tests/libtests.la $(LDADD)
  61248. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  61249. depcomp =
  61250. am__depfiles_maybe =
  61251. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61252. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61253. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  61254. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  61255. - $(AM_CFLAGS) $(CFLAGS)
  61256. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61257. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61258. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61259. CCLD = $(CC)
  61260. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61261. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  61262. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61263. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  61264. + $(LDFLAGS) -o $@
  61265. SOURCES = $(libexpr_a_SOURCES) run-expr.c t-expr.c
  61266. DIST_SOURCES = $(libexpr_a_SOURCES) run-expr.c t-expr.c
  61267. ETAGS = etags
  61268. @@ -122,15 +119,17 @@
  61269. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  61270. DEFS = @DEFS@
  61271. DLLTOOL = @DLLTOOL@
  61272. -ECHO = @ECHO@
  61273. +DSYMUTIL = @DSYMUTIL@
  61274. +DUMPBIN = @DUMPBIN@
  61275. ECHO_C = @ECHO_C@
  61276. ECHO_N = @ECHO_N@
  61277. ECHO_T = @ECHO_T@
  61278. EGREP = @EGREP@
  61279. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  61280. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  61281. EXEEXT = @EXEEXT@
  61282. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  61283. +F77 = @F77@
  61284. +FFLAGS = @FFLAGS@
  61285. +FGREP = @FGREP@
  61286. GMP_LDFLAGS = @GMP_LDFLAGS@
  61287. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  61288. GREP = @GREP@
  61289. @@ -145,10 +144,12 @@
  61290. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  61291. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  61292. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  61293. +INSTALL = @INSTALL@
  61294. INSTALL_DATA = @INSTALL_DATA@
  61295. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61296. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61297. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61298. +LD = @LD@
  61299. LDFLAGS = @LDFLAGS@
  61300. LEX = @LEX@
  61301. LEXLIB = @LEXLIB@
  61302. @@ -163,20 +164,25 @@
  61303. LIBREADLINE = @LIBREADLINE@
  61304. LIBS = @LIBS@
  61305. LIBTOOL = @LIBTOOL@
  61306. +LIPO = @LIPO@
  61307. LN_S = @LN_S@
  61308. LTLIBOBJS = @LTLIBOBJS@
  61309. M4 = @M4@
  61310. MAINT = @MAINT@
  61311. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  61312. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  61313. MAKEINFO = @MAKEINFO@
  61314. +MKDIR_P = @MKDIR_P@
  61315. +NM = @NM@
  61316. +NMEDIT = @NMEDIT@
  61317. OBJDUMP = @OBJDUMP@
  61318. OBJEXT = @OBJEXT@
  61319. +OTOOL = @OTOOL@
  61320. +OTOOL64 = @OTOOL64@
  61321. PACKAGE = @PACKAGE@
  61322. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61323. PACKAGE_NAME = @PACKAGE_NAME@
  61324. PACKAGE_STRING = @PACKAGE_STRING@
  61325. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61326. +PACKAGE_URL = @PACKAGE_URL@
  61327. PACKAGE_VERSION = @PACKAGE_VERSION@
  61328. PATH_SEPARATOR = @PATH_SEPARATOR@
  61329. RANLIB = @RANLIB@
  61330. @@ -190,22 +196,27 @@
  61331. U = @U@
  61332. U_FOR_BUILD = @U_FOR_BUILD@
  61333. VERSION = @VERSION@
  61334. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  61335. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  61336. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  61337. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  61338. WITH_READLINE_01 = @WITH_READLINE_01@
  61339. YACC = @YACC@
  61340. YFLAGS = @YFLAGS@
  61341. +abs_builddir = @abs_builddir@
  61342. +abs_srcdir = @abs_srcdir@
  61343. +abs_top_builddir = @abs_top_builddir@
  61344. +abs_top_srcdir = @abs_top_srcdir@
  61345. ac_ct_CC = @ac_ct_CC@
  61346. ac_ct_CXX = @ac_ct_CXX@
  61347. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61348. +ac_ct_F77 = @ac_ct_F77@
  61349. am__leading_dot = @am__leading_dot@
  61350. +am__tar = @am__tar@
  61351. +am__untar = @am__untar@
  61352. bindir = @bindir@
  61353. build = @build@
  61354. build_alias = @build_alias@
  61355. build_cpu = @build_cpu@
  61356. build_os = @build_os@
  61357. build_vendor = @build_vendor@
  61358. +builddir = @builddir@
  61359. datadir = @datadir@
  61360. datarootdir = @datarootdir@
  61361. docdir = @docdir@
  61362. @@ -225,6 +236,7 @@
  61363. libexecdir = @libexecdir@
  61364. localedir = @localedir@
  61365. localstatedir = @localstatedir@
  61366. +lt_ECHO = @lt_ECHO@
  61367. mandir = @mandir@
  61368. mkdir_p = @mkdir_p@
  61369. mpn_objects = @mpn_objects@
  61370. @@ -237,8 +249,12 @@
  61371. psdir = @psdir@
  61372. sbindir = @sbindir@
  61373. sharedstatedir = @sharedstatedir@
  61374. +srcdir = @srcdir@
  61375. sysconfdir = @sysconfdir@
  61376. target_alias = @target_alias@
  61377. +top_build_prefix = @top_build_prefix@
  61378. +top_builddir = @top_builddir@
  61379. +top_srcdir = @top_srcdir@
  61380. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  61381. # FIXME: This is a workaround for a bug in automake 1.8.4. When the only
  61382. @@ -262,14 +278,14 @@
  61383. @for dep in $?; do \
  61384. case '$(am__configure_deps)' in \
  61385. *$$dep*) \
  61386. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61387. - && exit 0; \
  61388. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61389. + && { if test -f $@; then exit 0; else break; fi; }; \
  61390. exit 1;; \
  61391. esac; \
  61392. done; \
  61393. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/expr/Makefile'; \
  61394. - cd $(top_srcdir) && \
  61395. - $(AUTOMAKE) --gnu --ignore-deps demos/expr/Makefile
  61396. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/expr/Makefile'; \
  61397. + $(am__cd) $(top_srcdir) && \
  61398. + $(AUTOMAKE) --gnu --ignore-deps demos/expr/Makefile
  61399. .PRECIOUS: Makefile
  61400. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61401. @case '$?' in \
  61402. @@ -287,16 +303,17 @@
  61403. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61404. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61405. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61406. +$(am__aclocal_m4_deps):
  61407. libexpr.a: $(libexpr_a_OBJECTS) $(libexpr_a_DEPENDENCIES)
  61408. -rm -f libexpr.a
  61409. $(libexpr_a_AR) libexpr.a $(libexpr_a_OBJECTS) $(libexpr_a_LIBADD)
  61410. $(RANLIB) libexpr.a
  61411. run-expr$(EXEEXT): $(run_expr_OBJECTS) $(run_expr_DEPENDENCIES)
  61412. @rm -f run-expr$(EXEEXT)
  61413. - $(LINK) $(run_expr_LDFLAGS) $(run_expr_OBJECTS) $(run_expr_LDADD) $(LIBS)
  61414. + $(LINK) $(run_expr_OBJECTS) $(run_expr_LDADD) $(LIBS)
  61415. t-expr$(EXEEXT): $(t_expr_OBJECTS) $(t_expr_DEPENDENCIES)
  61416. @rm -f t-expr$(EXEEXT)
  61417. - $(LINK) $(t_expr_LDFLAGS) $(t_expr_OBJECTS) $(t_expr_LDADD) $(LIBS)
  61418. + $(LINK) $(t_expr_OBJECTS) $(t_expr_LDADD) $(LIBS)
  61419. mostlyclean-compile:
  61420. -rm -f *.$(OBJEXT)
  61421. @@ -304,7 +321,7 @@
  61422. distclean-compile:
  61423. -rm -f *.tab.c
  61424. $(top_builddir)/ansi2knr:
  61425. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  61426. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  61427. mostlyclean-kr:
  61428. -test "$U" = "" || rm -f *_.c
  61429. @@ -349,82 +366,85 @@
  61430. clean-libtool:
  61431. -rm -rf .libs _libs
  61432. -distclean-libtool:
  61433. - -rm -f libtool
  61434. -uninstall-info-am:
  61435. -
  61436. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61437. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61438. unique=`for i in $$list; do \
  61439. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61440. done | \
  61441. - $(AWK) ' { files[$$0] = 1; } \
  61442. - END { for (i in files) print i; }'`; \
  61443. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61444. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61445. mkid -fID $$unique
  61446. tags: TAGS
  61447. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61448. $(TAGS_FILES) $(LISP)
  61449. - tags=; \
  61450. + set x; \
  61451. here=`pwd`; \
  61452. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61453. unique=`for i in $$list; do \
  61454. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61455. done | \
  61456. - $(AWK) ' { files[$$0] = 1; } \
  61457. - END { for (i in files) print i; }'`; \
  61458. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61459. - test -z "$$unique" && unique=$$empty_fix; \
  61460. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61461. - $$tags $$unique; \
  61462. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61463. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61464. + shift; \
  61465. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61466. + test -n "$$unique" || unique=$$empty_fix; \
  61467. + if test $$# -gt 0; then \
  61468. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61469. + "$$@" $$unique; \
  61470. + else \
  61471. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61472. + $$unique; \
  61473. + fi; \
  61474. fi
  61475. ctags: CTAGS
  61476. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61477. $(TAGS_FILES) $(LISP)
  61478. - tags=; \
  61479. - here=`pwd`; \
  61480. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61481. unique=`for i in $$list; do \
  61482. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61483. done | \
  61484. - $(AWK) ' { files[$$0] = 1; } \
  61485. - END { for (i in files) print i; }'`; \
  61486. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61487. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61488. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61489. + test -z "$(CTAGS_ARGS)$$unique" \
  61490. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61491. - $$tags $$unique
  61492. + $$unique
  61493. GTAGS:
  61494. here=`$(am__cd) $(top_builddir) && pwd` \
  61495. - && cd $(top_srcdir) \
  61496. - && gtags -i $(GTAGS_ARGS) $$here
  61497. + && $(am__cd) $(top_srcdir) \
  61498. + && gtags -i $(GTAGS_ARGS) "$$here"
  61499. distclean-tags:
  61500. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61501. distdir: $(DISTFILES)
  61502. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61503. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61504. - list='$(DISTFILES)'; for file in $$list; do \
  61505. - case $$file in \
  61506. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61507. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61508. - esac; \
  61509. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61510. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61511. + list='$(DISTFILES)'; \
  61512. + dist_files=`for file in $$list; do echo $$file; done | \
  61513. + sed -e "s|^$$srcdirstrip/||;t" \
  61514. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61515. + case $$dist_files in \
  61516. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61517. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61518. + sort -u` ;; \
  61519. + esac; \
  61520. + for file in $$dist_files; do \
  61521. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61522. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61523. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61524. - dir="/$$dir"; \
  61525. - $(mkdir_p) "$(distdir)$$dir"; \
  61526. - else \
  61527. - dir=''; \
  61528. - fi; \
  61529. if test -d $$d/$$file; then \
  61530. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61531. + if test -d "$(distdir)/$$file"; then \
  61532. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61533. + fi; \
  61534. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61535. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61536. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61537. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61538. fi; \
  61539. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61540. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61541. else \
  61542. - test -f $(distdir)/$$file \
  61543. - || cp -p $$d/$$file $(distdir)/$$file \
  61544. + test -f "$(distdir)/$$file" \
  61545. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61546. || exit 1; \
  61547. fi; \
  61548. done
  61549. @@ -452,7 +472,8 @@
  61550. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  61551. distclean-generic:
  61552. - -rm -f $(CONFIG_CLEAN_FILES)
  61553. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61554. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61555. maintainer-clean-generic:
  61556. @echo "This command is intended for maintainers to use"
  61557. @@ -464,7 +485,7 @@
  61558. distclean: distclean-am
  61559. -rm -f Makefile
  61560. distclean-am: clean-am distclean-compile distclean-generic \
  61561. - distclean-libtool distclean-tags
  61562. + distclean-tags
  61563. dvi: dvi-am
  61564. @@ -472,18 +493,38 @@
  61565. html: html-am
  61566. +html-am:
  61567. +
  61568. info: info-am
  61569. info-am:
  61570. install-data-am:
  61571. +install-dvi: install-dvi-am
  61572. +
  61573. +install-dvi-am:
  61574. +
  61575. install-exec-am:
  61576. +install-html: install-html-am
  61577. +
  61578. +install-html-am:
  61579. +
  61580. install-info: install-info-am
  61581. +install-info-am:
  61582. +
  61583. install-man:
  61584. +install-pdf: install-pdf-am
  61585. +
  61586. +install-pdf-am:
  61587. +
  61588. +install-ps: install-ps-am
  61589. +
  61590. +install-ps-am:
  61591. +
  61592. installcheck-am:
  61593. maintainer-clean: maintainer-clean-am
  61594. @@ -503,24 +544,29 @@
  61595. ps-am:
  61596. -uninstall-am: uninstall-info-am
  61597. +uninstall-am:
  61598. +
  61599. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  61600. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  61601. clean-libtool ctags distclean distclean-compile \
  61602. distclean-generic distclean-libtool distclean-tags distdir dvi \
  61603. dvi-am html html-am info info-am install install-am \
  61604. - install-data install-data-am install-exec install-exec-am \
  61605. - install-info install-info-am install-man install-strip \
  61606. + install-data install-data-am install-dvi install-dvi-am \
  61607. + install-exec install-exec-am install-html install-html-am \
  61608. + install-info install-info-am install-man install-pdf \
  61609. + install-pdf-am install-ps install-ps-am install-strip \
  61610. installcheck installcheck-am installdirs maintainer-clean \
  61611. maintainer-clean-generic mostlyclean mostlyclean-compile \
  61612. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  61613. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  61614. + pdf-am ps ps-am tags uninstall uninstall-am
  61615. allprogs: $(EXTRA_PROGRAMS)
  61616. $(top_builddir)/tests/libtests.la:
  61617. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  61618. +
  61619. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61620. # Otherwise a system limit (for SysV at least) may be exceeded.
  61621. .NOEXPORT:
  61622. diff -Nur gmp-4.3.2.orig/demos/Makefile.in gmp-4.3.2/demos/Makefile.in
  61623. --- gmp-4.3.2.orig/demos/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  61624. +++ gmp-4.3.2/demos/Makefile.in 2011-02-16 19:23:19.673562123 +0100
  61625. @@ -1,8 +1,9 @@
  61626. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  61627. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61628. # @configure_input@
  61629. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61630. -# 2003, 2004 Free Software Foundation, Inc.
  61631. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61632. +# Inc.
  61633. # This Makefile.in is free software; the Free Software Foundation
  61634. # gives unlimited permission to copy and/or distribute it,
  61635. # with or without modifications, as long as this notice is preserved.
  61636. @@ -30,17 +31,12 @@
  61637. #
  61638. # You should have received a copy of the GNU Lesser General Public License
  61639. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  61640. -SOURCES = factorize.c isprime.c pexpr.c primes.c qcn.c
  61641. -
  61642. -srcdir = @srcdir@
  61643. -top_srcdir = @top_srcdir@
  61644. VPATH = @srcdir@
  61645. pkgdatadir = $(datadir)/@PACKAGE@
  61646. -pkglibdir = $(libdir)/@PACKAGE@
  61647. pkgincludedir = $(includedir)/@PACKAGE@
  61648. -top_builddir = ..
  61649. +pkglibdir = $(libdir)/@PACKAGE@
  61650. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61651. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61652. -INSTALL = @INSTALL@
  61653. install_sh_DATA = $(install_sh) -c -m 644
  61654. install_sh_PROGRAM = $(install_sh) -c
  61655. install_sh_SCRIPT = $(install_sh) -c
  61656. @@ -52,6 +48,7 @@
  61657. NORMAL_UNINSTALL = :
  61658. PRE_UNINSTALL = :
  61659. POST_UNINSTALL = :
  61660. +build_triplet = @build@
  61661. host_triplet = @host@
  61662. ANSI2KNR = $(top_builddir)/ansi2knr
  61663. EXTRA_PROGRAMS = factorize$(EXEEXT) isprime$(EXEEXT) pexpr$(EXEEXT) \
  61664. @@ -64,9 +61,10 @@
  61665. $(top_srcdir)/configure.in
  61666. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61667. $(ACLOCAL_M4)
  61668. -mkinstalldirs = $(mkdir_p)
  61669. +mkinstalldirs = $(install_sh) -d
  61670. CONFIG_HEADER = $(top_builddir)/config.h
  61671. CONFIG_CLEAN_FILES = pexpr-config.h
  61672. +CONFIG_CLEAN_VPATH_FILES =
  61673. factorize_SOURCES = factorize.c
  61674. factorize_OBJECTS = factorize$U.$(OBJEXT)
  61675. factorize_LDADD = $(LDADD)
  61676. @@ -81,35 +79,66 @@
  61677. pexpr_DEPENDENCIES = $(top_builddir)/libgmp.la
  61678. primes_SOURCES = primes.c
  61679. primes_OBJECTS = primes$U.$(OBJEXT)
  61680. -am__DEPENDENCIES_1 = $(top_builddir)/libgmp.la
  61681. -am__DEPENDENCIES_2 =
  61682. -primes_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2)
  61683. +am__DEPENDENCIES_1 =
  61684. +primes_DEPENDENCIES = $(LDADD) $(am__DEPENDENCIES_1)
  61685. qcn_SOURCES = qcn.c
  61686. qcn_OBJECTS = qcn$U.$(OBJEXT)
  61687. -qcn_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2)
  61688. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  61689. +qcn_DEPENDENCIES = $(LDADD) $(am__DEPENDENCIES_1)
  61690. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  61691. depcomp =
  61692. am__depfiles_maybe =
  61693. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61694. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61695. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  61696. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  61697. - $(AM_CFLAGS) $(CFLAGS)
  61698. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61699. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61700. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61701. CCLD = $(CC)
  61702. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61703. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  61704. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61705. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  61706. + $(LDFLAGS) -o $@
  61707. SOURCES = factorize.c isprime.c pexpr.c primes.c qcn.c
  61708. DIST_SOURCES = factorize.c isprime.c pexpr.c primes.c qcn.c
  61709. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61710. html-recursive info-recursive install-data-recursive \
  61711. - install-exec-recursive install-info-recursive \
  61712. - install-recursive installcheck-recursive installdirs-recursive \
  61713. - pdf-recursive ps-recursive uninstall-info-recursive \
  61714. - uninstall-recursive
  61715. + install-dvi-recursive install-exec-recursive \
  61716. + install-html-recursive install-info-recursive \
  61717. + install-pdf-recursive install-ps-recursive install-recursive \
  61718. + installcheck-recursive installdirs-recursive pdf-recursive \
  61719. + ps-recursive uninstall-recursive
  61720. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61721. + distclean-recursive maintainer-clean-recursive
  61722. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61723. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61724. + distdir
  61725. ETAGS = etags
  61726. CTAGS = ctags
  61727. DIST_SUBDIRS = $(SUBDIRS)
  61728. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61729. +am__relativize = \
  61730. + dir0=`pwd`; \
  61731. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61732. + sed_rest='s,^[^/]*/*,,'; \
  61733. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61734. + sed_butlast='s,/*[^/]*$$,,'; \
  61735. + while test -n "$$dir1"; do \
  61736. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61737. + if test "$$first" != "."; then \
  61738. + if test "$$first" = ".."; then \
  61739. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61740. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61741. + else \
  61742. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61743. + if test "$$first2" = "$$first"; then \
  61744. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61745. + else \
  61746. + dir2="../$$dir2"; \
  61747. + fi; \
  61748. + dir0="$$dir0"/"$$first"; \
  61749. + fi; \
  61750. + fi; \
  61751. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61752. + done; \
  61753. + reldir="$$dir2"
  61754. ABI = @ABI@
  61755. ACLOCAL = @ACLOCAL@
  61756. AMTAR = @AMTAR@
  61757. @@ -136,15 +165,17 @@
  61758. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  61759. DEFS = @DEFS@
  61760. DLLTOOL = @DLLTOOL@
  61761. -ECHO = @ECHO@
  61762. +DSYMUTIL = @DSYMUTIL@
  61763. +DUMPBIN = @DUMPBIN@
  61764. ECHO_C = @ECHO_C@
  61765. ECHO_N = @ECHO_N@
  61766. ECHO_T = @ECHO_T@
  61767. EGREP = @EGREP@
  61768. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  61769. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  61770. EXEEXT = @EXEEXT@
  61771. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  61772. +F77 = @F77@
  61773. +FFLAGS = @FFLAGS@
  61774. +FGREP = @FGREP@
  61775. GMP_LDFLAGS = @GMP_LDFLAGS@
  61776. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  61777. GREP = @GREP@
  61778. @@ -159,10 +190,12 @@
  61779. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  61780. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  61781. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  61782. +INSTALL = @INSTALL@
  61783. INSTALL_DATA = @INSTALL_DATA@
  61784. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61785. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61786. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61787. +LD = @LD@
  61788. LDFLAGS = @LDFLAGS@
  61789. LEX = @LEX@
  61790. LEXLIB = @LEXLIB@
  61791. @@ -177,20 +210,25 @@
  61792. LIBREADLINE = @LIBREADLINE@
  61793. LIBS = @LIBS@
  61794. LIBTOOL = @LIBTOOL@
  61795. +LIPO = @LIPO@
  61796. LN_S = @LN_S@
  61797. LTLIBOBJS = @LTLIBOBJS@
  61798. M4 = @M4@
  61799. MAINT = @MAINT@
  61800. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  61801. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  61802. MAKEINFO = @MAKEINFO@
  61803. +MKDIR_P = @MKDIR_P@
  61804. +NM = @NM@
  61805. +NMEDIT = @NMEDIT@
  61806. OBJDUMP = @OBJDUMP@
  61807. OBJEXT = @OBJEXT@
  61808. +OTOOL = @OTOOL@
  61809. +OTOOL64 = @OTOOL64@
  61810. PACKAGE = @PACKAGE@
  61811. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61812. PACKAGE_NAME = @PACKAGE_NAME@
  61813. PACKAGE_STRING = @PACKAGE_STRING@
  61814. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61815. +PACKAGE_URL = @PACKAGE_URL@
  61816. PACKAGE_VERSION = @PACKAGE_VERSION@
  61817. PATH_SEPARATOR = @PATH_SEPARATOR@
  61818. RANLIB = @RANLIB@
  61819. @@ -204,22 +242,27 @@
  61820. U = @U@
  61821. U_FOR_BUILD = @U_FOR_BUILD@
  61822. VERSION = @VERSION@
  61823. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  61824. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  61825. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  61826. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  61827. WITH_READLINE_01 = @WITH_READLINE_01@
  61828. YACC = @YACC@
  61829. YFLAGS = @YFLAGS@
  61830. +abs_builddir = @abs_builddir@
  61831. +abs_srcdir = @abs_srcdir@
  61832. +abs_top_builddir = @abs_top_builddir@
  61833. +abs_top_srcdir = @abs_top_srcdir@
  61834. ac_ct_CC = @ac_ct_CC@
  61835. ac_ct_CXX = @ac_ct_CXX@
  61836. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61837. +ac_ct_F77 = @ac_ct_F77@
  61838. am__leading_dot = @am__leading_dot@
  61839. +am__tar = @am__tar@
  61840. +am__untar = @am__untar@
  61841. bindir = @bindir@
  61842. build = @build@
  61843. build_alias = @build_alias@
  61844. build_cpu = @build_cpu@
  61845. build_os = @build_os@
  61846. build_vendor = @build_vendor@
  61847. +builddir = @builddir@
  61848. datadir = @datadir@
  61849. datarootdir = @datarootdir@
  61850. docdir = @docdir@
  61851. @@ -239,6 +282,7 @@
  61852. libexecdir = @libexecdir@
  61853. localedir = @localedir@
  61854. localstatedir = @localstatedir@
  61855. +lt_ECHO = @lt_ECHO@
  61856. mandir = @mandir@
  61857. mkdir_p = @mkdir_p@
  61858. mpn_objects = @mpn_objects@
  61859. @@ -251,8 +295,12 @@
  61860. psdir = @psdir@
  61861. sbindir = @sbindir@
  61862. sharedstatedir = @sharedstatedir@
  61863. +srcdir = @srcdir@
  61864. sysconfdir = @sysconfdir@
  61865. target_alias = @target_alias@
  61866. +top_build_prefix = @top_build_prefix@
  61867. +top_builddir = @top_builddir@
  61868. +top_srcdir = @top_srcdir@
  61869. SUBDIRS = calc expr
  61870. EXTRA_DIST = perl
  61871. INCLUDES = -I$(top_srcdir)
  61872. @@ -268,14 +316,14 @@
  61873. @for dep in $?; do \
  61874. case '$(am__configure_deps)' in \
  61875. *$$dep*) \
  61876. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61877. - && exit 0; \
  61878. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61879. + && { if test -f $@; then exit 0; else break; fi; }; \
  61880. exit 1;; \
  61881. esac; \
  61882. done; \
  61883. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/Makefile'; \
  61884. - cd $(top_srcdir) && \
  61885. - $(AUTOMAKE) --gnu --ignore-deps demos/Makefile
  61886. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps demos/Makefile'; \
  61887. + $(am__cd) $(top_srcdir) && \
  61888. + $(AUTOMAKE) --gnu --ignore-deps demos/Makefile
  61889. .PRECIOUS: Makefile
  61890. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61891. @case '$?' in \
  61892. @@ -293,23 +341,24 @@
  61893. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61894. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61895. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61896. +$(am__aclocal_m4_deps):
  61897. pexpr-config.h: $(top_builddir)/config.status $(srcdir)/pexpr-config-h.in
  61898. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  61899. factorize$(EXEEXT): $(factorize_OBJECTS) $(factorize_DEPENDENCIES)
  61900. @rm -f factorize$(EXEEXT)
  61901. - $(LINK) $(factorize_LDFLAGS) $(factorize_OBJECTS) $(factorize_LDADD) $(LIBS)
  61902. + $(LINK) $(factorize_OBJECTS) $(factorize_LDADD) $(LIBS)
  61903. isprime$(EXEEXT): $(isprime_OBJECTS) $(isprime_DEPENDENCIES)
  61904. @rm -f isprime$(EXEEXT)
  61905. - $(LINK) $(isprime_LDFLAGS) $(isprime_OBJECTS) $(isprime_LDADD) $(LIBS)
  61906. + $(LINK) $(isprime_OBJECTS) $(isprime_LDADD) $(LIBS)
  61907. pexpr$(EXEEXT): $(pexpr_OBJECTS) $(pexpr_DEPENDENCIES)
  61908. @rm -f pexpr$(EXEEXT)
  61909. - $(LINK) $(pexpr_LDFLAGS) $(pexpr_OBJECTS) $(pexpr_LDADD) $(LIBS)
  61910. + $(LINK) $(pexpr_OBJECTS) $(pexpr_LDADD) $(LIBS)
  61911. primes$(EXEEXT): $(primes_OBJECTS) $(primes_DEPENDENCIES)
  61912. @rm -f primes$(EXEEXT)
  61913. - $(LINK) $(primes_LDFLAGS) $(primes_OBJECTS) $(primes_LDADD) $(LIBS)
  61914. + $(LINK) $(primes_OBJECTS) $(primes_LDADD) $(LIBS)
  61915. qcn$(EXEEXT): $(qcn_OBJECTS) $(qcn_DEPENDENCIES)
  61916. @rm -f qcn$(EXEEXT)
  61917. - $(LINK) $(qcn_LDFLAGS) $(qcn_OBJECTS) $(qcn_LDADD) $(LIBS)
  61918. + $(LINK) $(qcn_OBJECTS) $(qcn_LDADD) $(LIBS)
  61919. mostlyclean-compile:
  61920. -rm -f *.$(OBJEXT)
  61921. @@ -317,7 +366,7 @@
  61922. distclean-compile:
  61923. -rm -f *.tab.c
  61924. $(top_builddir)/ansi2knr:
  61925. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  61926. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  61927. mostlyclean-kr:
  61928. -test "$U" = "" || rm -f *_.c
  61929. @@ -350,10 +399,6 @@
  61930. clean-libtool:
  61931. -rm -rf .libs _libs
  61932. -distclean-libtool:
  61933. - -rm -f libtool
  61934. -uninstall-info-am:
  61935. -
  61936. # This directory's subdirectories are mostly independent; you can cd
  61937. # into them and run `make' without going through this Makefile.
  61938. # To change the values of `make' variables: instead of editing Makefiles,
  61939. @@ -361,7 +406,13 @@
  61940. # (which will cause the Makefiles to be regenerated when you run `make');
  61941. # (2) otherwise, pass the desired values on the `make' command line.
  61942. $(RECURSIVE_TARGETS):
  61943. - @set fnord $$MAKEFLAGS; amf=$$2; \
  61944. + @fail= failcom='exit 1'; \
  61945. + for f in x $$MAKEFLAGS; do \
  61946. + case $$f in \
  61947. + *=* | --[!k]*);; \
  61948. + *k*) failcom='fail=yes';; \
  61949. + esac; \
  61950. + done; \
  61951. dot_seen=no; \
  61952. target=`echo $@ | sed s/-recursive//`; \
  61953. list='$(SUBDIRS)'; for subdir in $$list; do \
  61954. @@ -372,16 +423,21 @@
  61955. else \
  61956. local_target="$$target"; \
  61957. fi; \
  61958. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61959. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  61960. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61961. + || eval $$failcom; \
  61962. done; \
  61963. if test "$$dot_seen" = "no"; then \
  61964. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  61965. fi; test -z "$$fail"
  61966. -mostlyclean-recursive clean-recursive distclean-recursive \
  61967. -maintainer-clean-recursive:
  61968. - @set fnord $$MAKEFLAGS; amf=$$2; \
  61969. +$(RECURSIVE_CLEAN_TARGETS):
  61970. + @fail= failcom='exit 1'; \
  61971. + for f in x $$MAKEFLAGS; do \
  61972. + case $$f in \
  61973. + *=* | --[!k]*);; \
  61974. + *k*) failcom='fail=yes';; \
  61975. + esac; \
  61976. + done; \
  61977. dot_seen=no; \
  61978. case "$@" in \
  61979. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  61980. @@ -401,16 +457,16 @@
  61981. else \
  61982. local_target="$$target"; \
  61983. fi; \
  61984. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61985. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  61986. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61987. + || eval $$failcom; \
  61988. done && test -z "$$fail"
  61989. tags-recursive:
  61990. list='$(SUBDIRS)'; for subdir in $$list; do \
  61991. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61992. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61993. done
  61994. ctags-recursive:
  61995. list='$(SUBDIRS)'; for subdir in $$list; do \
  61996. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61997. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61998. done
  61999. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  62000. @@ -418,14 +474,14 @@
  62001. unique=`for i in $$list; do \
  62002. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62003. done | \
  62004. - $(AWK) ' { files[$$0] = 1; } \
  62005. - END { for (i in files) print i; }'`; \
  62006. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62007. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62008. mkid -fID $$unique
  62009. tags: TAGS
  62010. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62011. $(TAGS_FILES) $(LISP)
  62012. - tags=; \
  62013. + set x; \
  62014. here=`pwd`; \
  62015. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  62016. include_option=--etags-include; \
  62017. @@ -436,80 +492,102 @@
  62018. fi; \
  62019. list='$(SUBDIRS)'; for subdir in $$list; do \
  62020. if test "$$subdir" = .; then :; else \
  62021. - test -f $$subdir/TAGS && \
  62022. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  62023. + test ! -f $$subdir/TAGS || \
  62024. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  62025. fi; \
  62026. done; \
  62027. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62028. unique=`for i in $$list; do \
  62029. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62030. done | \
  62031. - $(AWK) ' { files[$$0] = 1; } \
  62032. - END { for (i in files) print i; }'`; \
  62033. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62034. - test -z "$$unique" && unique=$$empty_fix; \
  62035. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62036. - $$tags $$unique; \
  62037. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62038. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62039. + shift; \
  62040. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62041. + test -n "$$unique" || unique=$$empty_fix; \
  62042. + if test $$# -gt 0; then \
  62043. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62044. + "$$@" $$unique; \
  62045. + else \
  62046. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62047. + $$unique; \
  62048. + fi; \
  62049. fi
  62050. ctags: CTAGS
  62051. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62052. $(TAGS_FILES) $(LISP)
  62053. - tags=; \
  62054. - here=`pwd`; \
  62055. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62056. unique=`for i in $$list; do \
  62057. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62058. done | \
  62059. - $(AWK) ' { files[$$0] = 1; } \
  62060. - END { for (i in files) print i; }'`; \
  62061. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62062. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62063. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62064. + test -z "$(CTAGS_ARGS)$$unique" \
  62065. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62066. - $$tags $$unique
  62067. + $$unique
  62068. GTAGS:
  62069. here=`$(am__cd) $(top_builddir) && pwd` \
  62070. - && cd $(top_srcdir) \
  62071. - && gtags -i $(GTAGS_ARGS) $$here
  62072. + && $(am__cd) $(top_srcdir) \
  62073. + && gtags -i $(GTAGS_ARGS) "$$here"
  62074. distclean-tags:
  62075. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62076. distdir: $(DISTFILES)
  62077. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62078. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62079. - list='$(DISTFILES)'; for file in $$list; do \
  62080. - case $$file in \
  62081. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62082. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62083. - esac; \
  62084. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62085. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62086. + list='$(DISTFILES)'; \
  62087. + dist_files=`for file in $$list; do echo $$file; done | \
  62088. + sed -e "s|^$$srcdirstrip/||;t" \
  62089. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62090. + case $$dist_files in \
  62091. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62092. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62093. + sort -u` ;; \
  62094. + esac; \
  62095. + for file in $$dist_files; do \
  62096. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62097. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62098. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62099. - dir="/$$dir"; \
  62100. - $(mkdir_p) "$(distdir)$$dir"; \
  62101. - else \
  62102. - dir=''; \
  62103. - fi; \
  62104. if test -d $$d/$$file; then \
  62105. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62106. + if test -d "$(distdir)/$$file"; then \
  62107. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62108. + fi; \
  62109. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62110. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62111. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62112. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62113. fi; \
  62114. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62115. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62116. else \
  62117. - test -f $(distdir)/$$file \
  62118. - || cp -p $$d/$$file $(distdir)/$$file \
  62119. + test -f "$(distdir)/$$file" \
  62120. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62121. || exit 1; \
  62122. fi; \
  62123. done
  62124. - list='$(SUBDIRS)'; for subdir in $$list; do \
  62125. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  62126. if test "$$subdir" = .; then :; else \
  62127. test -d "$(distdir)/$$subdir" \
  62128. - || mkdir "$(distdir)/$$subdir" \
  62129. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  62130. || exit 1; \
  62131. - (cd $$subdir && \
  62132. + fi; \
  62133. + done
  62134. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  62135. + if test "$$subdir" = .; then :; else \
  62136. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  62137. + $(am__relativize); \
  62138. + new_distdir=$$reldir; \
  62139. + dir1=$$subdir; dir2="$(top_distdir)"; \
  62140. + $(am__relativize); \
  62141. + new_top_distdir=$$reldir; \
  62142. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  62143. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  62144. + ($(am__cd) $$subdir && \
  62145. $(MAKE) $(AM_MAKEFLAGS) \
  62146. - top_distdir="../$(top_distdir)" \
  62147. - distdir="../$(distdir)/$$subdir" \
  62148. + top_distdir="$$new_top_distdir" \
  62149. + distdir="$$new_distdir" \
  62150. + am__remove_distdir=: \
  62151. + am__skip_length_check=: \
  62152. + am__skip_mode_fix=: \
  62153. distdir) \
  62154. || exit 1; \
  62155. fi; \
  62156. @@ -539,7 +617,8 @@
  62157. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  62158. distclean-generic:
  62159. - -rm -f $(CONFIG_CLEAN_FILES)
  62160. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62161. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62162. maintainer-clean-generic:
  62163. @echo "This command is intended for maintainers to use"
  62164. @@ -551,7 +630,7 @@
  62165. distclean: distclean-recursive
  62166. -rm -f Makefile
  62167. distclean-am: clean-am distclean-compile distclean-generic \
  62168. - distclean-libtool distclean-tags
  62169. + distclean-tags
  62170. dvi: dvi-recursive
  62171. @@ -559,18 +638,38 @@
  62172. html: html-recursive
  62173. +html-am:
  62174. +
  62175. info: info-recursive
  62176. info-am:
  62177. install-data-am:
  62178. +install-dvi: install-dvi-recursive
  62179. +
  62180. +install-dvi-am:
  62181. +
  62182. install-exec-am:
  62183. +install-html: install-html-recursive
  62184. +
  62185. +install-html-am:
  62186. +
  62187. install-info: install-info-recursive
  62188. +install-info-am:
  62189. +
  62190. install-man:
  62191. +install-pdf: install-pdf-recursive
  62192. +
  62193. +install-pdf-am:
  62194. +
  62195. +install-ps: install-ps-recursive
  62196. +
  62197. +install-ps-am:
  62198. +
  62199. installcheck-am:
  62200. maintainer-clean: maintainer-clean-recursive
  62201. @@ -590,28 +689,32 @@
  62202. ps-am:
  62203. -uninstall-am: uninstall-info-am
  62204. +uninstall-am:
  62205. -uninstall-info: uninstall-info-recursive
  62206. -
  62207. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  62208. - clean clean-generic clean-libtool clean-recursive ctags \
  62209. - ctags-recursive distclean distclean-compile distclean-generic \
  62210. - distclean-libtool distclean-recursive distclean-tags distdir \
  62211. - dvi dvi-am html html-am info info-am install install-am \
  62212. - install-data install-data-am install-exec install-exec-am \
  62213. - install-info install-info-am install-man install-strip \
  62214. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
  62215. + $(top_builddir)/ansi2knr ctags-recursive install-am \
  62216. + install-strip tags-recursive
  62217. +
  62218. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  62219. + all all-am check check-am clean clean-generic clean-libtool \
  62220. + ctags ctags-recursive distclean distclean-compile \
  62221. + distclean-generic distclean-libtool distclean-tags distdir dvi \
  62222. + dvi-am html html-am info info-am install install-am \
  62223. + install-data install-data-am install-dvi install-dvi-am \
  62224. + install-exec install-exec-am install-html install-html-am \
  62225. + install-info install-info-am install-man install-pdf \
  62226. + install-pdf-am install-ps install-ps-am install-strip \
  62227. installcheck installcheck-am installdirs installdirs-am \
  62228. - maintainer-clean maintainer-clean-generic \
  62229. - maintainer-clean-recursive mostlyclean mostlyclean-compile \
  62230. - mostlyclean-generic mostlyclean-kr mostlyclean-libtool \
  62231. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  62232. - uninstall uninstall-am uninstall-info-am
  62233. + maintainer-clean maintainer-clean-generic mostlyclean \
  62234. + mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  62235. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  62236. + uninstall uninstall-am
  62237. allprogs: $(EXTRA_PROGRAMS)
  62238. cd calc; $(MAKE) $(AM_MAKEFLAGS) allprogs
  62239. cd expr; $(MAKE) $(AM_MAKEFLAGS) allprogs
  62240. +
  62241. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62242. # Otherwise a system limit (for SysV at least) may be exceeded.
  62243. .NOEXPORT:
  62244. diff -Nur gmp-4.3.2.orig/doc/Makefile.in gmp-4.3.2/doc/Makefile.in
  62245. --- gmp-4.3.2.orig/doc/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  62246. +++ gmp-4.3.2/doc/Makefile.in 2011-02-16 19:23:19.934813017 +0100
  62247. @@ -1,8 +1,9 @@
  62248. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  62249. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62250. # @configure_input@
  62251. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62252. -# 2003, 2004 Free Software Foundation, Inc.
  62253. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62254. +# Inc.
  62255. # This Makefile.in is free software; the Free Software Foundation
  62256. # gives unlimited permission to copy and/or distribute it,
  62257. # with or without modifications, as long as this notice is preserved.
  62258. @@ -30,15 +31,12 @@
  62259. #
  62260. # You should have received a copy of the GNU Lesser General Public License
  62261. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  62262. -srcdir = @srcdir@
  62263. -top_srcdir = @top_srcdir@
  62264. VPATH = @srcdir@
  62265. pkgdatadir = $(datadir)/@PACKAGE@
  62266. -pkglibdir = $(libdir)/@PACKAGE@
  62267. pkgincludedir = $(includedir)/@PACKAGE@
  62268. -top_builddir = ..
  62269. +pkglibdir = $(libdir)/@PACKAGE@
  62270. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62271. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62272. -INSTALL = @INSTALL@
  62273. install_sh_DATA = $(install_sh) -c -m 644
  62274. install_sh_PROGRAM = $(install_sh) -c
  62275. install_sh_SCRIPT = $(install_sh) -c
  62276. @@ -50,6 +48,7 @@
  62277. NORMAL_UNINSTALL = :
  62278. PRE_UNINSTALL = :
  62279. POST_UNINSTALL = :
  62280. +build_triplet = @build@
  62281. host_triplet = @host@
  62282. subdir = doc
  62283. DIST_COMMON = $(gmp_TEXINFOS) $(srcdir)/Makefile.am \
  62284. @@ -60,9 +59,10 @@
  62285. $(top_srcdir)/configure.in
  62286. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  62287. $(ACLOCAL_M4)
  62288. -mkinstalldirs = $(mkdir_p)
  62289. +mkinstalldirs = $(install_sh) -d
  62290. CONFIG_HEADER = $(top_builddir)/config.h
  62291. CONFIG_CLEAN_FILES =
  62292. +CONFIG_CLEAN_VPATH_FILES =
  62293. depcomp =
  62294. am__depfiles_maybe =
  62295. SOURCES =
  62296. @@ -80,6 +80,27 @@
  62297. AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
  62298. DVIPS = dvips
  62299. am__installdirs = "$(DESTDIR)$(infodir)"
  62300. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  62301. +am__vpath_adj = case $$p in \
  62302. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  62303. + *) f=$$p;; \
  62304. + esac;
  62305. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  62306. +am__install_max = 40
  62307. +am__nobase_strip_setup = \
  62308. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  62309. +am__nobase_strip = \
  62310. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  62311. +am__nobase_list = $(am__nobase_strip_setup); \
  62312. + for p in $$list; do echo "$$p $$p"; done | \
  62313. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  62314. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62315. + if (++n[$$2] == $(am__install_max)) \
  62316. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  62317. + END { for (dir in files) print dir, files[dir] }'
  62318. +am__base_list = \
  62319. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  62320. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  62321. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62322. ABI = @ABI@
  62323. ACLOCAL = @ACLOCAL@
  62324. @@ -107,15 +128,17 @@
  62325. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  62326. DEFS = @DEFS@
  62327. DLLTOOL = @DLLTOOL@
  62328. -ECHO = @ECHO@
  62329. +DSYMUTIL = @DSYMUTIL@
  62330. +DUMPBIN = @DUMPBIN@
  62331. ECHO_C = @ECHO_C@
  62332. ECHO_N = @ECHO_N@
  62333. ECHO_T = @ECHO_T@
  62334. EGREP = @EGREP@
  62335. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  62336. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  62337. EXEEXT = @EXEEXT@
  62338. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  62339. +F77 = @F77@
  62340. +FFLAGS = @FFLAGS@
  62341. +FGREP = @FGREP@
  62342. GMP_LDFLAGS = @GMP_LDFLAGS@
  62343. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  62344. GREP = @GREP@
  62345. @@ -130,10 +153,12 @@
  62346. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  62347. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  62348. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  62349. +INSTALL = @INSTALL@
  62350. INSTALL_DATA = @INSTALL_DATA@
  62351. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62352. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62353. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62354. +LD = @LD@
  62355. LDFLAGS = @LDFLAGS@
  62356. LEX = @LEX@
  62357. LEXLIB = @LEXLIB@
  62358. @@ -148,20 +173,25 @@
  62359. LIBREADLINE = @LIBREADLINE@
  62360. LIBS = @LIBS@
  62361. LIBTOOL = @LIBTOOL@
  62362. +LIPO = @LIPO@
  62363. LN_S = @LN_S@
  62364. LTLIBOBJS = @LTLIBOBJS@
  62365. M4 = @M4@
  62366. MAINT = @MAINT@
  62367. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  62368. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  62369. MAKEINFO = @MAKEINFO@
  62370. +MKDIR_P = @MKDIR_P@
  62371. +NM = @NM@
  62372. +NMEDIT = @NMEDIT@
  62373. OBJDUMP = @OBJDUMP@
  62374. OBJEXT = @OBJEXT@
  62375. +OTOOL = @OTOOL@
  62376. +OTOOL64 = @OTOOL64@
  62377. PACKAGE = @PACKAGE@
  62378. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62379. PACKAGE_NAME = @PACKAGE_NAME@
  62380. PACKAGE_STRING = @PACKAGE_STRING@
  62381. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62382. +PACKAGE_URL = @PACKAGE_URL@
  62383. PACKAGE_VERSION = @PACKAGE_VERSION@
  62384. PATH_SEPARATOR = @PATH_SEPARATOR@
  62385. RANLIB = @RANLIB@
  62386. @@ -175,22 +205,27 @@
  62387. U = @U@
  62388. U_FOR_BUILD = @U_FOR_BUILD@
  62389. VERSION = @VERSION@
  62390. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  62391. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  62392. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  62393. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  62394. WITH_READLINE_01 = @WITH_READLINE_01@
  62395. YACC = @YACC@
  62396. YFLAGS = @YFLAGS@
  62397. +abs_builddir = @abs_builddir@
  62398. +abs_srcdir = @abs_srcdir@
  62399. +abs_top_builddir = @abs_top_builddir@
  62400. +abs_top_srcdir = @abs_top_srcdir@
  62401. ac_ct_CC = @ac_ct_CC@
  62402. ac_ct_CXX = @ac_ct_CXX@
  62403. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62404. +ac_ct_F77 = @ac_ct_F77@
  62405. am__leading_dot = @am__leading_dot@
  62406. +am__tar = @am__tar@
  62407. +am__untar = @am__untar@
  62408. bindir = @bindir@
  62409. build = @build@
  62410. build_alias = @build_alias@
  62411. build_cpu = @build_cpu@
  62412. build_os = @build_os@
  62413. build_vendor = @build_vendor@
  62414. +builddir = @builddir@
  62415. datadir = @datadir@
  62416. datarootdir = @datarootdir@
  62417. docdir = @docdir@
  62418. @@ -210,6 +245,7 @@
  62419. libexecdir = @libexecdir@
  62420. localedir = @localedir@
  62421. localstatedir = @localstatedir@
  62422. +lt_ECHO = @lt_ECHO@
  62423. mandir = @mandir@
  62424. mkdir_p = @mkdir_p@
  62425. mpn_objects = @mpn_objects@
  62426. @@ -222,8 +258,12 @@
  62427. psdir = @psdir@
  62428. sbindir = @sbindir@
  62429. sharedstatedir = @sharedstatedir@
  62430. +srcdir = @srcdir@
  62431. sysconfdir = @sysconfdir@
  62432. target_alias = @target_alias@
  62433. +top_build_prefix = @top_build_prefix@
  62434. +top_builddir = @top_builddir@
  62435. +top_srcdir = @top_srcdir@
  62436. EXTRA_DIST = configuration isa_abi_headache projects.html tasks.html
  62437. info_TEXINFOS = gmp.texi
  62438. gmp_TEXINFOS = fdl-1.3.texi
  62439. @@ -235,14 +275,14 @@
  62440. @for dep in $?; do \
  62441. case '$(am__configure_deps)' in \
  62442. *$$dep*) \
  62443. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62444. - && exit 0; \
  62445. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62446. + && { if test -f $@; then exit 0; else break; fi; }; \
  62447. exit 1;; \
  62448. esac; \
  62449. done; \
  62450. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps doc/Makefile'; \
  62451. - cd $(top_srcdir) && \
  62452. - $(AUTOMAKE) --gnu --ignore-deps doc/Makefile
  62453. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps doc/Makefile'; \
  62454. + $(am__cd) $(top_srcdir) && \
  62455. + $(AUTOMAKE) --gnu --ignore-deps doc/Makefile
  62456. .PRECIOUS: Makefile
  62457. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62458. @case '$?' in \
  62459. @@ -260,6 +300,7 @@
  62460. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62461. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62462. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62463. +$(am__aclocal_m4_deps):
  62464. mostlyclean-libtool:
  62465. -rm -f *.lo
  62466. @@ -267,33 +308,27 @@
  62467. clean-libtool:
  62468. -rm -rf .libs _libs
  62469. -distclean-libtool:
  62470. - -rm -f libtool
  62471. -
  62472. .texi.info:
  62473. - restore=: && \
  62474. - backupdir="$(am__leading_dot)am$$$$" && \
  62475. - am__cwd=`pwd` && cd $(srcdir) && \
  62476. + restore=: && backupdir="$(am__leading_dot)am$$$$" && \
  62477. + am__cwd=`pwd` && $(am__cd) $(srcdir) && \
  62478. rm -rf $$backupdir && mkdir $$backupdir && \
  62479. - for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
  62480. - if test -f $$f; then \
  62481. - mv $$f $$backupdir; \
  62482. - restore=mv; \
  62483. - fi; \
  62484. - done; \
  62485. + if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
  62486. + for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
  62487. + if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
  62488. + done; \
  62489. + else :; fi && \
  62490. cd "$$am__cwd"; \
  62491. if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  62492. -o $@ $<; \
  62493. then \
  62494. rc=0; \
  62495. - cd $(srcdir); \
  62496. + $(am__cd) $(srcdir); \
  62497. else \
  62498. rc=$$?; \
  62499. - cd $(srcdir) && \
  62500. + $(am__cd) $(srcdir) && \
  62501. $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
  62502. fi; \
  62503. - rm -rf $$backupdir; \
  62504. - exit $$rc
  62505. + rm -rf $$backupdir; exit $$rc
  62506. .texi.dvi:
  62507. TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
  62508. @@ -306,10 +341,18 @@
  62509. $(TEXI2PDF) $<
  62510. .texi.html:
  62511. - $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  62512. - -o $@ $<
  62513. - if test ! -d $@ && test -d $(@:.html=); then \
  62514. - mv $(@:.html=) $@; else :; fi
  62515. + rm -rf $(@:.html=.htp)
  62516. + if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  62517. + -o $(@:.html=.htp) $<; \
  62518. + then \
  62519. + rm -rf $@; \
  62520. + if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
  62521. + mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
  62522. + else \
  62523. + if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
  62524. + rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
  62525. + exit 1; \
  62526. + fi
  62527. $(srcdir)/gmp.info: gmp.texi $(srcdir)/version.texi $(gmp_TEXINFOS)
  62528. gmp.dvi: gmp.texi $(srcdir)/version.texi $(gmp_TEXINFOS)
  62529. gmp.pdf: gmp.texi $(srcdir)/version.texi $(gmp_TEXINFOS)
  62530. @@ -334,17 +377,38 @@
  62531. maintainer-clean-vti:
  62532. @MAINTAINER_MODE_TRUE@ -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
  62533. .dvi.ps:
  62534. + TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
  62535. $(DVIPS) -o $@ $<
  62536. +uninstall-dvi-am:
  62537. + @$(NORMAL_UNINSTALL)
  62538. + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
  62539. + for p in $$list; do \
  62540. + $(am__strip_dir) \
  62541. + echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
  62542. + rm -f "$(DESTDIR)$(dvidir)/$$f"; \
  62543. + done
  62544. +
  62545. +uninstall-html-am:
  62546. + @$(NORMAL_UNINSTALL)
  62547. + @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \
  62548. + for p in $$list; do \
  62549. + $(am__strip_dir) \
  62550. + echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
  62551. + rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
  62552. + done
  62553. +
  62554. uninstall-info-am:
  62555. - $(PRE_UNINSTALL)
  62556. - @if (install-info --version && \
  62557. + @$(PRE_UNINSTALL)
  62558. + @if test -d '$(DESTDIR)$(infodir)' && \
  62559. + (install-info --version && \
  62560. install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
  62561. list='$(INFO_DEPS)'; \
  62562. for file in $$list; do \
  62563. relfile=`echo "$$file" | sed 's|^.*/||'`; \
  62564. echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
  62565. - install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
  62566. + if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
  62567. + then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
  62568. done; \
  62569. else :; fi
  62570. @$(NORMAL_UNINSTALL)
  62571. @@ -352,12 +416,30 @@
  62572. for file in $$list; do \
  62573. relfile=`echo "$$file" | sed 's|^.*/||'`; \
  62574. relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
  62575. - (if cd "$(DESTDIR)$(infodir)"; then \
  62576. - echo " rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9])"; \
  62577. + (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \
  62578. + echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
  62579. rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
  62580. else :; fi); \
  62581. done
  62582. +uninstall-pdf-am:
  62583. + @$(NORMAL_UNINSTALL)
  62584. + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
  62585. + for p in $$list; do \
  62586. + $(am__strip_dir) \
  62587. + echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
  62588. + rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
  62589. + done
  62590. +
  62591. +uninstall-ps-am:
  62592. + @$(NORMAL_UNINSTALL)
  62593. + @list='$(PSS)'; test -n "$(psdir)" || list=; \
  62594. + for p in $$list; do \
  62595. + $(am__strip_dir) \
  62596. + echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
  62597. + rm -f "$(DESTDIR)$(psdir)/$$f"; \
  62598. + done
  62599. +
  62600. dist-info: $(INFO_DEPS)
  62601. @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62602. list='$(INFO_DEPS)'; \
  62603. @@ -366,17 +448,23 @@
  62604. $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
  62605. esac; \
  62606. if test -f $$base; then d=.; else d=$(srcdir); fi; \
  62607. - for file in $$d/$$base*; do \
  62608. - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
  62609. - test -f $(distdir)/$$relfile || \
  62610. - cp -p $$file $(distdir)/$$relfile; \
  62611. + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
  62612. + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
  62613. + if test -f $$file; then \
  62614. + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
  62615. + test -f "$(distdir)/$$relfile" || \
  62616. + cp -p $$file "$(distdir)/$$relfile"; \
  62617. + else :; fi; \
  62618. done; \
  62619. done
  62620. mostlyclean-aminfo:
  62621. -rm -rf gmp.aux gmp.cp gmp.cps gmp.fn gmp.fns gmp.ky gmp.kys gmp.log gmp.pg \
  62622. - gmp.pgs gmp.tmp gmp.toc gmp.tp gmp.vr gmp.vrs gmp.dvi \
  62623. - gmp.pdf gmp.ps gmp.html
  62624. + gmp.pgs gmp.tmp gmp.toc gmp.tp gmp.vr gmp.vrs
  62625. +
  62626. +clean-aminfo:
  62627. + -test -z "gmp.dvi gmp.pdf gmp.ps gmp.html" \
  62628. + || rm -rf gmp.dvi gmp.pdf gmp.ps gmp.html
  62629. maintainer-clean-aminfo:
  62630. @list='$(INFO_DEPS)'; for i in $$list; do \
  62631. @@ -392,29 +480,32 @@
  62632. distdir: $(DISTFILES)
  62633. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62634. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62635. - list='$(DISTFILES)'; for file in $$list; do \
  62636. - case $$file in \
  62637. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62638. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62639. - esac; \
  62640. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62641. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62642. + list='$(DISTFILES)'; \
  62643. + dist_files=`for file in $$list; do echo $$file; done | \
  62644. + sed -e "s|^$$srcdirstrip/||;t" \
  62645. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62646. + case $$dist_files in \
  62647. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62648. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62649. + sort -u` ;; \
  62650. + esac; \
  62651. + for file in $$dist_files; do \
  62652. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62653. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62654. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62655. - dir="/$$dir"; \
  62656. - $(mkdir_p) "$(distdir)$$dir"; \
  62657. - else \
  62658. - dir=''; \
  62659. - fi; \
  62660. if test -d $$d/$$file; then \
  62661. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62662. + if test -d "$(distdir)/$$file"; then \
  62663. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62664. + fi; \
  62665. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62666. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62667. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62668. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62669. fi; \
  62670. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62671. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62672. else \
  62673. - test -f $(distdir)/$$file \
  62674. - || cp -p $$d/$$file $(distdir)/$$file \
  62675. + test -f "$(distdir)/$$file" \
  62676. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62677. || exit 1; \
  62678. fi; \
  62679. done
  62680. @@ -426,7 +517,7 @@
  62681. all-am: Makefile $(INFO_DEPS)
  62682. installdirs:
  62683. for dir in "$(DESTDIR)$(infodir)"; do \
  62684. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  62685. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  62686. done
  62687. install: install-am
  62688. install-exec: install-exec-am
  62689. @@ -447,18 +538,19 @@
  62690. clean-generic:
  62691. distclean-generic:
  62692. - -rm -f $(CONFIG_CLEAN_FILES)
  62693. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62694. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62695. maintainer-clean-generic:
  62696. @echo "This command is intended for maintainers to use"
  62697. @echo "it deletes files that may require special tools to rebuild."
  62698. clean: clean-am
  62699. -clean-am: clean-generic clean-libtool mostlyclean-am
  62700. +clean-am: clean-aminfo clean-generic clean-libtool mostlyclean-am
  62701. distclean: distclean-am
  62702. -rm -f Makefile
  62703. -distclean-am: clean-am distclean-generic distclean-libtool
  62704. +distclean-am: clean-am distclean-generic
  62705. dvi: dvi-am
  62706. @@ -474,15 +566,52 @@
  62707. install-data-am: install-info-am
  62708. +install-dvi: install-dvi-am
  62709. +
  62710. +install-dvi-am: $(DVIS)
  62711. + @$(NORMAL_INSTALL)
  62712. + test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)"
  62713. + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
  62714. + for p in $$list; do \
  62715. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62716. + echo "$$d$$p"; \
  62717. + done | $(am__base_list) | \
  62718. + while read files; do \
  62719. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \
  62720. + $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \
  62721. + done
  62722. install-exec-am:
  62723. +install-html: install-html-am
  62724. +
  62725. +install-html-am: $(HTMLS)
  62726. + @$(NORMAL_INSTALL)
  62727. + test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
  62728. + @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \
  62729. + for p in $$list; do \
  62730. + if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62731. + $(am__strip_dir) \
  62732. + if test -d "$$d$$p"; then \
  62733. + echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
  62734. + $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
  62735. + echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
  62736. + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
  62737. + else \
  62738. + list2="$$list2 $$d$$p"; \
  62739. + fi; \
  62740. + done; \
  62741. + test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \
  62742. + while read files; do \
  62743. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \
  62744. + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \
  62745. + done; }
  62746. install-info: install-info-am
  62747. install-info-am: $(INFO_DEPS)
  62748. @$(NORMAL_INSTALL)
  62749. - test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)"
  62750. + test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)"
  62751. @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62752. - list='$(INFO_DEPS)'; \
  62753. + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
  62754. for file in $$list; do \
  62755. case $$file in \
  62756. $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62757. @@ -490,18 +619,19 @@
  62758. if test -f $$file; then d=.; else d=$(srcdir); fi; \
  62759. file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
  62760. for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
  62761. - $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
  62762. + $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
  62763. if test -f $$ifile; then \
  62764. - relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
  62765. - echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
  62766. - $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
  62767. + echo "$$ifile"; \
  62768. else : ; fi; \
  62769. done; \
  62770. - done
  62771. + done | $(am__base_list) | \
  62772. + while read files; do \
  62773. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \
  62774. + $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done
  62775. @$(POST_INSTALL)
  62776. @if (install-info --version && \
  62777. install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
  62778. - list='$(INFO_DEPS)'; \
  62779. + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
  62780. for file in $$list; do \
  62781. relfile=`echo "$$file" | sed 's|^.*/||'`; \
  62782. echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
  62783. @@ -510,6 +640,32 @@
  62784. else : ; fi
  62785. install-man:
  62786. +install-pdf: install-pdf-am
  62787. +
  62788. +install-pdf-am: $(PDFS)
  62789. + @$(NORMAL_INSTALL)
  62790. + test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
  62791. + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
  62792. + for p in $$list; do \
  62793. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62794. + echo "$$d$$p"; \
  62795. + done | $(am__base_list) | \
  62796. + while read files; do \
  62797. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \
  62798. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done
  62799. +install-ps: install-ps-am
  62800. +
  62801. +install-ps-am: $(PSS)
  62802. + @$(NORMAL_INSTALL)
  62803. + test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)"
  62804. + @list='$(PSS)'; test -n "$(psdir)" || list=; \
  62805. + for p in $$list; do \
  62806. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62807. + echo "$$d$$p"; \
  62808. + done | $(am__base_list) | \
  62809. + while read files; do \
  62810. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \
  62811. + $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done
  62812. installcheck-am:
  62813. maintainer-clean: maintainer-clean-am
  62814. @@ -530,19 +686,26 @@
  62815. ps-am: $(PSS)
  62816. -uninstall-am: uninstall-info-am
  62817. +uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \
  62818. + uninstall-pdf-am uninstall-ps-am
  62819. +
  62820. +.MAKE: install-am install-strip
  62821. -.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  62822. - dist-info distclean distclean-generic distclean-libtool \
  62823. - distdir dvi dvi-am html html-am info info-am install \
  62824. - install-am install-data install-data-am install-exec \
  62825. - install-exec-am install-info install-info-am install-man \
  62826. +.PHONY: all all-am check check-am clean clean-aminfo clean-generic \
  62827. + clean-libtool dist-info distclean distclean-generic \
  62828. + distclean-libtool distdir dvi dvi-am html html-am info info-am \
  62829. + install install-am install-data install-data-am install-dvi \
  62830. + install-dvi-am install-exec install-exec-am install-html \
  62831. + install-html-am install-info install-info-am install-man \
  62832. + install-pdf install-pdf-am install-ps install-ps-am \
  62833. install-strip installcheck installcheck-am installdirs \
  62834. maintainer-clean maintainer-clean-aminfo \
  62835. maintainer-clean-generic maintainer-clean-vti mostlyclean \
  62836. mostlyclean-aminfo mostlyclean-generic mostlyclean-libtool \
  62837. mostlyclean-vti pdf pdf-am ps ps-am uninstall uninstall-am \
  62838. - uninstall-info-am
  62839. + uninstall-dvi-am uninstall-html-am uninstall-info-am \
  62840. + uninstall-pdf-am uninstall-ps-am
  62841. +
  62842. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62843. # Otherwise a system limit (for SysV at least) may be exceeded.
  62844. diff -Nur gmp-4.3.2.orig/doc/mdate-sh gmp-4.3.2/doc/mdate-sh
  62845. --- gmp-4.3.2.orig/doc/mdate-sh 2010-01-07 21:09:02.000000000 +0100
  62846. +++ gmp-4.3.2/doc/mdate-sh 2011-02-16 19:23:19.893561818 +0100
  62847. @@ -1,9 +1,10 @@
  62848. #!/bin/sh
  62849. # Get modification time of a file or directory and pretty-print it.
  62850. -scriptversion=2003-11-09.00
  62851. +scriptversion=2009-04-28.21; # UTC
  62852. -# Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
  62853. +# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009 Free
  62854. +# Software Foundation, Inc.
  62855. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
  62856. #
  62857. # This program is free software; you can redistribute it and/or modify
  62858. @@ -17,8 +18,7 @@
  62859. # GNU General Public License for more details.
  62860. #
  62861. # You should have received a copy of the GNU General Public License
  62862. -# along with this program; if not, write to the Free Software Foundation,
  62863. -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  62864. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  62865. # As a special exception to the GNU General Public License, if you
  62866. # distribute this file as part of a program that contains a
  62867. @@ -42,11 +42,11 @@
  62868. Report bugs to <bug-automake@gnu.org>.
  62869. EOF
  62870. - exit 0
  62871. + exit $?
  62872. ;;
  62873. -v | --v*)
  62874. echo "mdate-sh $scriptversion"
  62875. - exit 0
  62876. + exit $?
  62877. ;;
  62878. esac
  62879. @@ -58,13 +58,15 @@
  62880. LC_TIME=C
  62881. export LC_TIME
  62882. -# GNU ls changes its time format in response to the TIME_STYLE variable, but
  62883. -# we cannot unset it since the V7 shell did not have an "unset" command.
  62884. -# The documentation says that the default is "posix-long-iso".
  62885. -#
  62886. -test "${TIME_STYLE+set}" = set && TIME_STYLE=posix-long-iso
  62887. +# GNU ls changes its time format in response to the TIME_STYLE
  62888. +# variable. Since we cannot assume `unset' works, revert this
  62889. +# variable to its documented default.
  62890. +if test "${TIME_STYLE+set}" = set; then
  62891. + TIME_STYLE=posix-long-iso
  62892. + export TIME_STYLE
  62893. +fi
  62894. -save_arg1="$1"
  62895. +save_arg1=$1
  62896. # Find out how to get the extended ls output of a file or directory.
  62897. if ls -L /dev/null 1>/dev/null 2>&1; then
  62898. @@ -72,6 +74,10 @@
  62899. else
  62900. ls_command='ls -l -d'
  62901. fi
  62902. +# Avoid user/group names that might have spaces, when possible.
  62903. +if ls -n /dev/null 1>/dev/null 2>&1; then
  62904. + ls_command="$ls_command -n"
  62905. +fi
  62906. # A `ls -l' line looks as follows on OS/2.
  62907. # drwxrwx--- 0 Aug 11 2001 foo
  62908. @@ -86,7 +92,7 @@
  62909. # words should be skipped to get the date.
  62910. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
  62911. -set - x`$ls_command /`
  62912. +set x`$ls_command /`
  62913. # Find which argument is the month.
  62914. month=
  62915. @@ -113,13 +119,32 @@
  62916. done
  62917. # Get the extended ls output of the file or directory.
  62918. -set - x`eval "$ls_command \"\$save_arg1\""`
  62919. +set dummy x`eval "$ls_command \"\$save_arg1\""`
  62920. # Remove all preceding arguments
  62921. eval $command
  62922. -# Get the month. Next argument is day, followed by the year or time.
  62923. -case $1 in
  62924. +# Because of the dummy argument above, month is in $2.
  62925. +#
  62926. +# On a POSIX system, we should have
  62927. +#
  62928. +# $# = 5
  62929. +# $1 = file size
  62930. +# $2 = month
  62931. +# $3 = day
  62932. +# $4 = year or time
  62933. +# $5 = filename
  62934. +#
  62935. +# On Darwin 7.7.0 and 7.6.0, we have
  62936. +#
  62937. +# $# = 4
  62938. +# $1 = day
  62939. +# $2 = month
  62940. +# $3 = year or time
  62941. +# $4 = filename
  62942. +
  62943. +# Get the month.
  62944. +case $2 in
  62945. Jan) month=January; nummonth=1;;
  62946. Feb) month=February; nummonth=2;;
  62947. Mar) month=March; nummonth=3;;
  62948. @@ -134,7 +159,10 @@
  62949. Dec) month=December; nummonth=12;;
  62950. esac
  62951. -day=$2
  62952. +case $3 in
  62953. + ???*) day=$1;;
  62954. + *) day=$3; shift;;
  62955. +esac
  62956. # Here we have to deal with the problem that the ls output gives either
  62957. # the time of day or the year.
  62958. @@ -172,5 +200,6 @@
  62959. # eval: (add-hook 'write-file-hooks 'time-stamp)
  62960. # time-stamp-start: "scriptversion="
  62961. # time-stamp-format: "%:y-%02m-%02d.%02H"
  62962. -# time-stamp-end: "$"
  62963. +# time-stamp-time-zone: "UTC"
  62964. +# time-stamp-end: "; # UTC"
  62965. # End:
  62966. diff -Nur gmp-4.3.2.orig/doc/texinfo.tex gmp-4.3.2/doc/texinfo.tex
  62967. --- gmp-4.3.2.orig/doc/texinfo.tex 2010-01-07 21:09:02.000000000 +0100
  62968. +++ gmp-4.3.2/doc/texinfo.tex 2011-02-16 19:23:19.904808248 +0100
  62969. @@ -1,13 +1,13 @@
  62970. % texinfo.tex -- TeX macros to handle Texinfo files.
  62971. -%
  62972. +%
  62973. % Load plain if necessary, i.e., if running under initex.
  62974. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
  62975. %
  62976. -\def\texinfoversion{2008-04-18.10}
  62977. +\def\texinfoversion{2009-08-14.15}
  62978. %
  62979. -% Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
  62980. +% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
  62981. % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
  62982. -% 2007, 2008 Free Software Foundation, Inc.
  62983. +% 2007, 2008, 2009 Free Software Foundation, Inc.
  62984. %
  62985. % This texinfo.tex file is free software: you can redistribute it and/or
  62986. % modify it under the terms of the GNU General Public License as
  62987. @@ -98,6 +98,9 @@
  62988. \let\ptexstar=\*
  62989. \let\ptext=\t
  62990. \let\ptextop=\top
  62991. +{\catcode`\'=\active
  62992. +\global\let\ptexquoteright'}% Math-mode def from plain.tex.
  62993. +\let\ptexraggedright=\raggedright
  62994. % If this character appears in an error message or help string, it
  62995. % starts a new line in the output.
  62996. @@ -355,7 +358,7 @@
  62997. % We don't want .vr (or whatever) entries like this:
  62998. % \entry{{\tt \indexbackslash }acronym}{32}{\code {\acronym}}
  62999. % "\acronym" won't work when it's read back in;
  63000. - % it needs to be
  63001. + % it needs to be
  63002. % {\code {{\tt \backslashcurfont }acronym}
  63003. \shipout\vbox{%
  63004. % Do this early so pdf references go to the beginning of the page.
  63005. @@ -706,7 +709,7 @@
  63006. \def\?{?\spacefactor=\endofsentencespacefactor\space}
  63007. % @frenchspacing on|off says whether to put extra space after punctuation.
  63008. -%
  63009. +%
  63010. \def\onword{on}
  63011. \def\offword{off}
  63012. %
  63013. @@ -926,6 +929,7 @@
  63014. {%
  63015. \makevalueexpandable % we want to expand any @value in FILE.
  63016. \turnoffactive % and allow special characters in the expansion
  63017. + \indexnofonts % Allow `@@' and other weird things in file names.
  63018. \edef\temp{\noexpand\input #1 }%
  63019. %
  63020. % This trickery is to read FILE outside of a group, in case it makes
  63021. @@ -944,6 +948,8 @@
  63022. \catcode`>=\other
  63023. \catcode`+=\other
  63024. \catcode`-=\other
  63025. + \catcode`\`=\other
  63026. + \catcode`\'=\other
  63027. }
  63028. \def\pushthisfilestack{%
  63029. @@ -1142,11 +1148,13 @@
  63030. \catcode`< = \active
  63031. \catcode`> = \active
  63032. \catcode`+ = \active
  63033. + \catcode`' = \active
  63034. \gdef\mathactive{%
  63035. \let^ = \ptexhat
  63036. \let< = \ptexless
  63037. \let> = \ptexgtr
  63038. \let+ = \ptexplus
  63039. + \let' = \ptexquoteright
  63040. }
  63041. }
  63042. @@ -1277,7 +1285,7 @@
  63043. % that's what we do).
  63044. % double active backslashes.
  63045. -%
  63046. +%
  63047. {\catcode`\@=0 \catcode`\\=\active
  63048. @gdef@activebackslashdouble{%
  63049. @catcode`@\=@active
  63050. @@ -1289,11 +1297,11 @@
  63051. % us) handles it with this amazing macro to replace tokens, with minor
  63052. % changes for Texinfo. It is included here under the GPL by permission
  63053. % from the author, Heiko Oberdiek.
  63054. -%
  63055. +%
  63056. % #1 is the tokens to replace.
  63057. % #2 is the replacement.
  63058. % #3 is the control sequence with the string.
  63059. -%
  63060. +%
  63061. \def\HyPsdSubst#1#2#3{%
  63062. \def\HyPsdReplace##1#1##2\END{%
  63063. ##1%
  63064. @@ -1324,11 +1332,17 @@
  63065. \ifpdf
  63066. %
  63067. - % Color manipulation macros based on pdfcolor.tex.
  63068. - \def\cmykDarkRed{0.28 1 1 0.35}
  63069. - \def\cmykBlack{0 0 0 1}
  63070. + % Color manipulation macros based on pdfcolor.tex,
  63071. + % except using rgb instead of cmyk; the latter is said to render as a
  63072. + % very dark gray on-screen and a very dark halftone in print, instead
  63073. + % of actual black.
  63074. + \def\rgbDarkRed{0.50 0.09 0.12}
  63075. + \def\rgbBlack{0 0 0}
  63076. + %
  63077. + % k sets the color for filling (usual text, etc.);
  63078. + % K sets the color for stroking (thin rules, e.g., normal _'s).
  63079. + \def\pdfsetcolor#1{\pdfliteral{#1 rg #1 RG}}
  63080. %
  63081. - \def\pdfsetcolor#1{\pdfliteral{#1 k}}
  63082. % Set color, and create a mark which defines \thiscolor accordingly,
  63083. % so that \makeheadline knows which color to restore.
  63084. \def\setcolor#1{%
  63085. @@ -1337,7 +1351,7 @@
  63086. \pdfsetcolor{#1}%
  63087. }
  63088. %
  63089. - \def\maincolor{\cmykBlack}
  63090. + \def\maincolor{\rgbBlack}
  63091. \pdfsetcolor{\maincolor}
  63092. \edef\thiscolor{\maincolor}
  63093. \def\lastcolordefs{}
  63094. @@ -1432,8 +1446,8 @@
  63095. %
  63096. % by default, use a color that is dark enough to print on paper as
  63097. % nearly black, but still distinguishable for online viewing.
  63098. - \def\urlcolor{\cmykDarkRed}
  63099. - \def\linkcolor{\cmykDarkRed}
  63100. + \def\urlcolor{\rgbDarkRed}
  63101. + \def\linkcolor{\rgbDarkRed}
  63102. \def\endlink{\setcolor{\maincolor}\pdfendlink}
  63103. %
  63104. % Adding outlines to PDF; macros for calculating structure of outlines
  63105. @@ -1562,11 +1576,15 @@
  63106. % tried to figure out what each command should do in the context
  63107. % of @url. for now, just make @/ a no-op, that's the only one
  63108. % people have actually reported a problem with.
  63109. - %
  63110. + %
  63111. \normalturnoffactive
  63112. \def\@{@}%
  63113. \let\/=\empty
  63114. \makevalueexpandable
  63115. + % do we want to go so far as to use \indexnofonts instead of just
  63116. + % special-casing \var here?
  63117. + \def\var##1{##1}%
  63118. + %
  63119. \leavevmode\setcolor{\urlcolor}%
  63120. \startlink attr{/Border [0 0 0]}%
  63121. user{/Subtype /Link /A << /S /URI /URI (#1) >>}%
  63122. @@ -1597,6 +1615,7 @@
  63123. \setcolor{\linkcolor}#1\endlink}
  63124. \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st}
  63125. \else
  63126. + % non-pdf mode
  63127. \let\pdfmkdest = \gobble
  63128. \let\pdfurl = \gobble
  63129. \let\endlink = \relax
  63130. @@ -1627,6 +1646,10 @@
  63131. \def\bf{\fam=\bffam \setfontstyle{bf}}\def\bfstylename{bf}
  63132. \def\tt{\fam=\ttfam \setfontstyle{tt}}
  63133. +% Unfortunately, we have to override this for titles and the like, since
  63134. +% in those cases "rm" is bold. Sigh.
  63135. +\def\rmisbold{\rm\def\curfontstyle{bf}}
  63136. +
  63137. % Texinfo sort of supports the sans serif font style, which plain TeX does not.
  63138. % So we set up a \sf.
  63139. \newfam\sffam
  63140. @@ -1961,7 +1984,7 @@
  63141. % Definitions for a main text size of 11pt. This is the default in
  63142. % Texinfo.
  63143. -%
  63144. +%
  63145. \def\definetextfontsizexi{%
  63146. % Text fonts (11.2pt, magstep1).
  63147. \def\textnominalsize{11pt}
  63148. @@ -2024,8 +2047,6 @@
  63149. \setfont\titlesc\scbshape{10}{\magstep4}{OT1}
  63150. \font\titlei=cmmi12 scaled \magstep3
  63151. \font\titlesy=cmsy10 scaled \magstep4
  63152. -\def\authorrm{\secrm}
  63153. -\def\authortt{\sectt}
  63154. \def\titleecsize{2074}
  63155. % Chapter (and unnumbered) fonts (17.28pt).
  63156. @@ -2094,7 +2115,7 @@
  63157. % section, chapter, etc., sizes following suit. This is for the GNU
  63158. % Press printing of the Emacs 22 manual. Maybe other manuals in the
  63159. % future. Used with @smallbook, which sets the leading to 12pt.
  63160. -%
  63161. +%
  63162. \def\definetextfontsizex{%
  63163. % Text fonts (10pt).
  63164. \def\textnominalsize{10pt}
  63165. @@ -2157,8 +2178,6 @@
  63166. \setfont\titlesc\scbshape{10}{\magstep4}{OT1}
  63167. \font\titlei=cmmi12 scaled \magstep3
  63168. \font\titlesy=cmsy10 scaled \magstep4
  63169. -\def\authorrm{\secrm}
  63170. -\def\authortt{\sectt}
  63171. \def\titleecsize{2074}
  63172. % Chapter fonts (14.4pt).
  63173. @@ -2185,7 +2204,7 @@
  63174. \setfont\secsf\sfbshape{12}{1000}{OT1}
  63175. \let\secbf\secrm
  63176. \setfont\secsc\scbshape{10}{\magstep1}{OT1}
  63177. -\font\seci=cmmi12
  63178. +\font\seci=cmmi12
  63179. \font\secsy=cmsy10 scaled \magstep1
  63180. \def\sececsize{1200}
  63181. @@ -2229,7 +2248,7 @@
  63182. % We provide the user-level command
  63183. % @fonttextsize 10
  63184. % (or 11) to redefine the text font size. pt is assumed.
  63185. -%
  63186. +%
  63187. \def\xword{10}
  63188. \def\xiword{11}
  63189. %
  63190. @@ -2239,7 +2258,7 @@
  63191. %
  63192. % Set \globaldefs so that documents can use this inside @tex, since
  63193. % makeinfo 4.8 does not support it, but we need it nonetheless.
  63194. - %
  63195. + %
  63196. \begingroup \globaldefs=1
  63197. \ifx\textsizearg\xword \definetextfontsizex
  63198. \else \ifx\textsizearg\xiword \definetextfontsizexi
  63199. @@ -2290,7 +2309,7 @@
  63200. \def\curfontsize{title}%
  63201. \def\lsize{chap}\def\lllsize{subsec}%
  63202. \resetmathfonts \setleading{25pt}}
  63203. -\def\titlefont#1{{\titlefonts\rm #1}}
  63204. +\def\titlefont#1{{\titlefonts\rmisbold #1}}
  63205. \def\chapfonts{%
  63206. \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl
  63207. \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc
  63208. @@ -2341,6 +2360,16 @@
  63209. \def\lsize{smaller}\def\lllsize{smaller}%
  63210. \resetmathfonts \setleading{9.5pt}}
  63211. +% Fonts for short table of contents.
  63212. +\setfont\shortcontrm\rmshape{12}{1000}{OT1}
  63213. +\setfont\shortcontbf\bfshape{10}{\magstep1}{OT1} % no cmb12
  63214. +\setfont\shortcontsl\slshape{12}{1000}{OT1}
  63215. +\setfont\shortconttt\ttshape{12}{1000}{OT1TT}
  63216. +
  63217. +% Define these just so they can be easily changed for other fonts.
  63218. +\def\angleleft{$\langle$}
  63219. +\def\angleright{$\rangle$}
  63220. +
  63221. % Set the fonts to use with the @small... environments.
  63222. \let\smallexamplefonts = \smallfonts
  63223. @@ -2354,28 +2383,128 @@
  63224. %
  63225. % By the way, for comparison, here's what fits with @example (10pt):
  63226. % 8.5x11=71 smallbook=60 a4=75 a5=58
  63227. -%
  63228. -% I wish the USA used A4 paper.
  63229. % --karl, 24jan03.
  63230. -
  63231. % Set up the default fonts, so we can use them for creating boxes.
  63232. %
  63233. \definetextfontsizexi
  63234. -% Define these so they can be easily changed for other fonts.
  63235. -\def\angleleft{$\langle$}
  63236. -\def\angleright{$\rangle$}
  63237. +
  63238. +\message{markup,}
  63239. +
  63240. +% Check if we are currently using a typewriter font. Since all the
  63241. +% Computer Modern typewriter fonts have zero interword stretch (and
  63242. +% shrink), and it is reasonable to expect all typewriter fonts to have
  63243. +% this property, we can check that font parameter.
  63244. +%
  63245. +\def\ifmonospace{\ifdim\fontdimen3\font=0pt }
  63246. +
  63247. +% Markup style infrastructure. \defmarkupstylesetup\INITMACRO will
  63248. +% define and register \INITMACRO to be called on markup style changes.
  63249. +% \INITMACRO can check \currentmarkupstyle for the innermost
  63250. +% style and the set of \ifmarkupSTYLE switches for all styles
  63251. +% currently in effect.
  63252. +\newif\ifmarkupvar
  63253. +\newif\ifmarkupsamp
  63254. +\newif\ifmarkupkey
  63255. +%\newif\ifmarkupfile % @file == @samp.
  63256. +%\newif\ifmarkupoption % @option == @samp.
  63257. +\newif\ifmarkupcode
  63258. +\newif\ifmarkupkbd
  63259. +%\newif\ifmarkupenv % @env == @code.
  63260. +%\newif\ifmarkupcommand % @command == @code.
  63261. +\newif\ifmarkuptex % @tex (and part of @math, for now).
  63262. +\newif\ifmarkupexample
  63263. +\newif\ifmarkupverb
  63264. +\newif\ifmarkupverbatim
  63265. +
  63266. +\let\currentmarkupstyle\empty
  63267. +
  63268. +\def\setupmarkupstyle#1{%
  63269. + \csname markup#1true\endcsname
  63270. + \def\currentmarkupstyle{#1}%
  63271. + \markupstylesetup
  63272. +}
  63273. +
  63274. +\let\markupstylesetup\empty
  63275. +
  63276. +\def\defmarkupstylesetup#1{%
  63277. + \expandafter\def\expandafter\markupstylesetup
  63278. + \expandafter{\markupstylesetup #1}%
  63279. + \def#1%
  63280. +}
  63281. +
  63282. +% Markup style setup for left and right quotes.
  63283. +\defmarkupstylesetup\markupsetuplq{%
  63284. + \expandafter\let\expandafter \temp \csname markupsetuplq\currentmarkupstyle\endcsname
  63285. + \ifx\temp\relax \markupsetuplqdefault \else \temp \fi
  63286. +}
  63287. +
  63288. +\defmarkupstylesetup\markupsetuprq{%
  63289. + \expandafter\let\expandafter \temp \csname markupsetuprq\currentmarkupstyle\endcsname
  63290. + \ifx\temp\relax \markupsetuprqdefault \else \temp \fi
  63291. +}
  63292. +
  63293. +{
  63294. +\catcode`\'=\active
  63295. +\catcode`\`=\active
  63296. +
  63297. +\gdef\markupsetuplqdefault{\let`\lq}
  63298. +\gdef\markupsetuprqdefault{\let'\rq}
  63299. +
  63300. +\gdef\markupsetcodequoteleft{\let`\codequoteleft}
  63301. +\gdef\markupsetcodequoteright{\let'\codequoteright}
  63302. +
  63303. +\gdef\markupsetnoligaturesquoteleft{\let`\noligaturesquoteleft}
  63304. +}
  63305. +
  63306. +\let\markupsetuplqcode \markupsetcodequoteleft
  63307. +\let\markupsetuprqcode \markupsetcodequoteright
  63308. +\let\markupsetuplqexample \markupsetcodequoteleft
  63309. +\let\markupsetuprqexample \markupsetcodequoteright
  63310. +\let\markupsetuplqverb \markupsetcodequoteleft
  63311. +\let\markupsetuprqverb \markupsetcodequoteright
  63312. +\let\markupsetuplqverbatim \markupsetcodequoteleft
  63313. +\let\markupsetuprqverbatim \markupsetcodequoteright
  63314. +
  63315. +\let\markupsetuplqsamp \markupsetnoligaturesquoteleft
  63316. +\let\markupsetuplqkbd \markupsetnoligaturesquoteleft
  63317. +
  63318. +% Allow an option to not replace quotes with a regular directed right
  63319. +% quote/apostrophe (char 0x27), but instead use the undirected quote
  63320. +% from cmtt (char 0x0d). The undirected quote is ugly, so don't make it
  63321. +% the default, but it works for pasting with more pdf viewers (at least
  63322. +% evince), the lilypond developers report. xpdf does work with the
  63323. +% regular 0x27.
  63324. +%
  63325. +\def\codequoteright{%
  63326. + \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
  63327. + \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
  63328. + '%
  63329. + \else \char'15 \fi
  63330. + \else \char'15 \fi
  63331. +}
  63332. +%
  63333. +% and a similar option for the left quote char vs. a grave accent.
  63334. +% Modern fonts display ASCII 0x60 as a grave accent, so some people like
  63335. +% the code environments to do likewise.
  63336. +%
  63337. +\def\codequoteleft{%
  63338. + \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
  63339. + \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
  63340. + % [Knuth] pp. 380,381,391
  63341. + % \relax disables Spanish ligatures ?` and !` of \tt font.
  63342. + \relax`%
  63343. + \else \char'22 \fi
  63344. + \else \char'22 \fi
  63345. +}
  63346. +
  63347. +% [Knuth] pp. 380,381,391, disable Spanish ligatures ?` and !` of \tt font.
  63348. +\def\noligaturesquoteleft{\relax\lq}
  63349. % Count depth in font-changes, for error checks
  63350. \newcount\fontdepth \fontdepth=0
  63351. -% Fonts for short table of contents.
  63352. -\setfont\shortcontrm\rmshape{12}{1000}{OT1}
  63353. -\setfont\shortcontbf\bfshape{10}{\magstep1}{OT1} % no cmb12
  63354. -\setfont\shortcontsl\slshape{12}{1000}{OT1}
  63355. -\setfont\shortconttt\ttshape{12}{1000}{OT1TT}
  63356. -
  63357. %% Add scribe-like font environments, plus @l for inline lisp (usually sans
  63358. %% serif) and @ii for TeX italic
  63359. @@ -2390,17 +2519,22 @@
  63360. % @var is set to this for defun arguments.
  63361. \def\ttslanted#1{{\ttsl #1}\futurelet\next\smartitalicx}
  63362. -% like \smartslanted except unconditionally use \sl. We never want
  63363. +% @cite is like \smartslanted except unconditionally use \sl. We never want
  63364. % ttsl for book titles, do we?
  63365. \def\cite#1{{\sl #1}\futurelet\next\smartitalicx}
  63366. \let\i=\smartitalic
  63367. \let\slanted=\smartslanted
  63368. -\let\var=\smartslanted
  63369. +\def\var#1{{\setupmarkupstyle{var}\smartslanted{#1}}}
  63370. \let\dfn=\smartslanted
  63371. \let\emph=\smartitalic
  63372. -% @b, explicit bold.
  63373. +% Explicit font changes: @r, @sc, undocumented @ii.
  63374. +\def\r#1{{\rm #1}} % roman font
  63375. +\def\sc#1{{\smallcaps#1}} % smallcaps font
  63376. +\def\ii#1{{\it #1}} % italic font
  63377. +
  63378. +% @b, explicit bold. Also @strong.
  63379. \def\b#1{{\bf #1}}
  63380. \let\strong=\b
  63381. @@ -2432,22 +2566,35 @@
  63382. \catcode`@=\other
  63383. \def\endofsentencespacefactor{3000}% default
  63384. +% @t, explicit typewriter.
  63385. \def\t#1{%
  63386. {\tt \rawbackslash \plainfrenchspacing #1}%
  63387. \null
  63388. }
  63389. -\def\samp#1{`\tclose{#1}'\null}
  63390. -\setfont\keyrm\rmshape{8}{1000}{OT1}
  63391. -\font\keysy=cmsy9
  63392. -\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
  63393. - \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
  63394. - \vbox{\hrule\kern-0.4pt
  63395. - \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}%
  63396. - \kern-0.4pt\hrule}%
  63397. - \kern-.06em\raise0.4pt\hbox{\angleright}}}}
  63398. -\def\key #1{{\nohyphenation \uppercase{#1}}\null}
  63399. -% The old definition, with no lozenge:
  63400. -%\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null}
  63401. +
  63402. +% @samp.
  63403. +\def\samp#1{{\setupmarkupstyle{samp}\lq\tclose{#1}\rq\null}}
  63404. +
  63405. +% definition of @key that produces a lozenge. Doesn't adjust to text size.
  63406. +%\setfont\keyrm\rmshape{8}{1000}{OT1}
  63407. +%\font\keysy=cmsy9
  63408. +%\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
  63409. +% \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
  63410. +% \vbox{\hrule\kern-0.4pt
  63411. +% \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}%
  63412. +% \kern-0.4pt\hrule}%
  63413. +% \kern-.06em\raise0.4pt\hbox{\angleright}}}}
  63414. +
  63415. +% definition of @key with no lozenge. If the current font is already
  63416. +% monospace, don't change it; that way, we respect @kbdinputstyle. But
  63417. +% if it isn't monospace, then use \tt.
  63418. +%
  63419. +\def\key#1{{\setupmarkupstyle{key}%
  63420. + \nohyphenation
  63421. + \ifmonospace\else\tt\fi
  63422. + #1}\null}
  63423. +
  63424. +% ctrl is no longer a Texinfo command.
  63425. \def\ctrl #1{{\tt \rawbackslash \hat}#1}
  63426. % @file, @option are the same as @samp.
  63427. @@ -2489,11 +2636,11 @@
  63428. {
  63429. \catcode`\-=\active \catcode`\_=\active
  63430. \catcode`\'=\active \catcode`\`=\active
  63431. + \global\let'=\rq \global\let`=\lq % default definitions
  63432. %
  63433. \global\def\code{\begingroup
  63434. - \catcode\rquoteChar=\active \catcode\lquoteChar=\active
  63435. - \let'\codequoteright \let`\codequoteleft
  63436. - %
  63437. + \setupmarkupstyle{code}%
  63438. + % The following should really be moved into \setupmarkupstyle handlers.
  63439. \catcode\dashChar=\active \catcode\underChar=\active
  63440. \ifallowcodebreaks
  63441. \let-\codedash
  63442. @@ -2525,7 +2672,7 @@
  63443. % each of the four underscores in __typeof__. This is undesirable in
  63444. % some manuals, especially if they don't have long identifiers in
  63445. % general. @allowcodebreaks provides a way to control this.
  63446. -%
  63447. +%
  63448. \newif\ifallowcodebreaks \allowcodebreakstrue
  63449. \def\keywordtrue{true}
  63450. @@ -2545,6 +2692,7 @@
  63451. % @kbd is like @code, except that if the argument is just one @key command,
  63452. % then @kbd has no effect.
  63453. +\def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}}
  63454. % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always),
  63455. % `example' (@kbd uses ttsl only inside of @example and friends),
  63456. @@ -2566,14 +2714,14 @@
  63457. \def\wordexample{example}
  63458. \def\wordcode{code}
  63459. -% Default is `distinct.'
  63460. +% Default is `distinct'.
  63461. \kbdinputstyle distinct
  63462. \def\xkey{\key}
  63463. \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}%
  63464. \ifx\one\xkey\ifx\threex\three \key{#2}%
  63465. -\else{\tclose{\kbdfont\look}}\fi
  63466. -\else{\tclose{\kbdfont\look}}\fi}
  63467. +\else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi
  63468. +\else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi}
  63469. % For @indicateurl, @env, @command quotes seem unnecessary, so use \code.
  63470. \let\indicateurl=\code
  63471. @@ -2636,34 +2784,20 @@
  63472. \let\email=\uref
  63473. \fi
  63474. -% Check if we are currently using a typewriter font. Since all the
  63475. -% Computer Modern typewriter fonts have zero interword stretch (and
  63476. -% shrink), and it is reasonable to expect all typewriter fonts to have
  63477. -% this property, we can check that font parameter.
  63478. -%
  63479. -\def\ifmonospace{\ifdim\fontdimen3\font=0pt }
  63480. -
  63481. % Typeset a dimension, e.g., `in' or `pt'. The only reason for the
  63482. % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt.
  63483. %
  63484. \def\dmn#1{\thinspace #1}
  63485. -\def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par}
  63486. -
  63487. % @l was never documented to mean ``switch to the Lisp font'',
  63488. % and it is not used as such in any manual I can find. We need it for
  63489. % Polish suppressed-l. --karl, 22sep96.
  63490. %\def\l#1{{\li #1}\null}
  63491. -% Explicit font changes: @r, @sc, undocumented @ii.
  63492. -\def\r#1{{\rm #1}} % roman font
  63493. -\def\sc#1{{\smallcaps#1}} % smallcaps font
  63494. -\def\ii#1{{\it #1}} % italic font
  63495. -
  63496. % @acronym for "FBI", "NATO", and the like.
  63497. % We print this one point size smaller, since it's intended for
  63498. % all-uppercase.
  63499. -%
  63500. +%
  63501. \def\acronym#1{\doacronym #1,,\finish}
  63502. \def\doacronym#1,#2,#3\finish{%
  63503. {\selectfonts\lsize #1}%
  63504. @@ -2675,7 +2809,7 @@
  63505. % @abbr for "Comput. J." and the like.
  63506. % No font change, but don't do end-of-sentence spacing.
  63507. -%
  63508. +%
  63509. \def\abbr#1{\doabbr #1,,\finish}
  63510. \def\doabbr#1,#2,#3\finish{%
  63511. {\plainfrenchspacing #1}%
  63512. @@ -2685,6 +2819,44 @@
  63513. \fi
  63514. }
  63515. +
  63516. +\message{glyphs,}
  63517. +
  63518. +% @point{}, @result{}, @expansion{}, @print{}, @equiv{}.
  63519. +%
  63520. +% Since these characters are used in examples, they should be an even number of
  63521. +% \tt widths. Each \tt character is 1en, so two makes it 1em.
  63522. +%
  63523. +\def\point{$\star$}
  63524. +\def\arrow{\leavevmode\raise.05ex\hbox to 1em{\hfil$\rightarrow$\hfil}}
  63525. +\def\result{\leavevmode\raise.05ex\hbox to 1em{\hfil$\Rightarrow$\hfil}}
  63526. +\def\expansion{\leavevmode\hbox to 1em{\hfil$\mapsto$\hfil}}
  63527. +\def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}}
  63528. +\def\equiv{\leavevmode\hbox to 1em{\hfil$\ptexequiv$\hfil}}
  63529. +
  63530. +% The @error{} command.
  63531. +% Adapted from the TeXbook's \boxit.
  63532. +%
  63533. +\newbox\errorbox
  63534. +%
  63535. +{\tentt \global\dimen0 = 3em}% Width of the box.
  63536. +\dimen2 = .55pt % Thickness of rules
  63537. +% The text. (`r' is open on the right, `e' somewhat less so on the left.)
  63538. +\setbox0 = \hbox{\kern-.75pt \reducedsf error\kern-1.5pt}
  63539. +%
  63540. +\setbox\errorbox=\hbox to \dimen0{\hfil
  63541. + \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
  63542. + \advance\hsize by -2\dimen2 % Rules.
  63543. + \vbox{%
  63544. + \hrule height\dimen2
  63545. + \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
  63546. + \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below.
  63547. + \kern3pt\vrule width\dimen2}% Space to right.
  63548. + \hrule height\dimen2}
  63549. + \hfil}
  63550. +%
  63551. +\def\error{\leavevmode\lower.7ex\copy\errorbox}
  63552. +
  63553. % @pounds{} is a sterling sign, which Knuth put in the CM italic font.
  63554. %
  63555. \def\pounds{{\it\$}}
  63556. @@ -2694,52 +2866,59 @@
  63557. % Theiling, which support regular, slanted, bold and bold slanted (and
  63558. % "outlined" (blackboard board, sort of) versions, which we don't need).
  63559. % It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
  63560. -%
  63561. +%
  63562. % Although only regular is the truly official Euro symbol, we ignore
  63563. % that. The Euro is designed to be slightly taller than the regular
  63564. % font height.
  63565. -%
  63566. +%
  63567. % feymr - regular
  63568. % feymo - slanted
  63569. % feybr - bold
  63570. % feybo - bold slanted
  63571. -%
  63572. +%
  63573. % There is no good (free) typewriter version, to my knowledge.
  63574. % A feymr10 euro is ~7.3pt wide, while a normal cmtt10 char is ~5.25pt wide.
  63575. % Hmm.
  63576. -%
  63577. +%
  63578. % Also doesn't work in math. Do we need to do math with euro symbols?
  63579. % Hope not.
  63580. -%
  63581. -%
  63582. +%
  63583. +%
  63584. \def\euro{{\eurofont e}}
  63585. \def\eurofont{%
  63586. % We set the font at each command, rather than predefining it in
  63587. % \textfonts and the other font-switching commands, so that
  63588. % installations which never need the symbol don't have to have the
  63589. % font installed.
  63590. - %
  63591. + %
  63592. % There is only one designed size (nominal 10pt), so we always scale
  63593. % that to the current nominal size.
  63594. - %
  63595. + %
  63596. % By the way, simply using "at 1em" works for cmr10 and the like, but
  63597. % does not work for cmbx10 and other extended/shrunken fonts.
  63598. - %
  63599. + %
  63600. \def\eurosize{\csname\curfontsize nominalsize\endcsname}%
  63601. %
  63602. - \ifx\curfontstyle\bfstylename
  63603. + \ifx\curfontstyle\bfstylename
  63604. % bold:
  63605. \font\thiseurofont = \ifusingit{feybo10}{feybr10} at \eurosize
  63606. - \else
  63607. + \else
  63608. % regular:
  63609. \font\thiseurofont = \ifusingit{feymo10}{feymr10} at \eurosize
  63610. \fi
  63611. \thiseurofont
  63612. }
  63613. -% Hacks for glyphs from the EC fonts similar to \euro. We don't
  63614. -% use \let for the aliases, because sometimes we redefine the original
  63615. -% macro, and the alias should reflect the redefinition.
  63616. +% Glyphs from the EC fonts. We don't use \let for the aliases, because
  63617. +% sometimes we redefine the original macro, and the alias should reflect
  63618. +% the redefinition.
  63619. +%
  63620. +% Use LaTeX names for the Icelandic letters.
  63621. +\def\DH{{\ecfont \char"D0}} % Eth
  63622. +\def\dh{{\ecfont \char"F0}} % eth
  63623. +\def\TH{{\ecfont \char"DE}} % Thorn
  63624. +\def\th{{\ecfont \char"FE}} % thorn
  63625. +%
  63626. \def\guillemetleft{{\ecfont \char"13}}
  63627. \def\guillemotleft{\guillemetleft}
  63628. \def\guillemetright{{\ecfont \char"14}}
  63629. @@ -2749,8 +2928,36 @@
  63630. \def\quotedblbase{{\ecfont \char"12}}
  63631. \def\quotesinglbase{{\ecfont \char"0D}}
  63632. %
  63633. +% This positioning is not perfect (see the ogonek LaTeX package), but
  63634. +% we have the precomposed glyphs for the most common cases. We put the
  63635. +% tests to use those glyphs in the single \ogonek macro so we have fewer
  63636. +% dummy definitions to worry about for index entries, etc.
  63637. +%
  63638. +% ogonek is also used with other letters in Lithuanian (IOU), but using
  63639. +% the precomposed glyphs for those is not so easy since they aren't in
  63640. +% the same EC font.
  63641. +\def\ogonek#1{{%
  63642. + \def\temp{#1}%
  63643. + \ifx\temp\macrocharA\Aogonek
  63644. + \else\ifx\temp\macrochara\aogonek
  63645. + \else\ifx\temp\macrocharE\Eogonek
  63646. + \else\ifx\temp\macrochare\eogonek
  63647. + \else
  63648. + \ecfont \setbox0=\hbox{#1}%
  63649. + \ifdim\ht0=1ex\accent"0C #1%
  63650. + \else\ooalign{\unhbox0\crcr\hidewidth\char"0C \hidewidth}%
  63651. + \fi
  63652. + \fi\fi\fi\fi
  63653. + }%
  63654. +}
  63655. +\def\Aogonek{{\ecfont \char"81}}\def\macrocharA{A}
  63656. +\def\aogonek{{\ecfont \char"A1}}\def\macrochara{a}
  63657. +\def\Eogonek{{\ecfont \char"86}}\def\macrocharE{E}
  63658. +\def\eogonek{{\ecfont \char"A6}}\def\macrochare{e}
  63659. +%
  63660. +% Use the ec* fonts (cm-super in outline format) for non-CM glyphs.
  63661. \def\ecfont{%
  63662. - % We can't distinguish serif/sanserif and italic/slanted, but this
  63663. + % We can't distinguish serif/sans and italic/slanted, but this
  63664. % is used for crude hacks anyway (like adding French and German
  63665. % quotes to documents typeset with CM, where we lose kerning), so
  63666. % hopefully nobody will notice/care.
  63667. @@ -2783,7 +2990,7 @@
  63668. % Laurent Siebenmann reports \Orb undefined with:
  63669. % Textures 1.7.7 (preloaded format=plain 93.10.14) (68K) 16 APR 2004 02:38
  63670. % so we'll define it if necessary.
  63671. -%
  63672. +%
  63673. \ifx\Orb\undefined
  63674. \def\Orb{\mathhexbox20D}
  63675. \fi
  63676. @@ -2878,12 +3085,9 @@
  63677. \let\subtitlerm=\tenrm
  63678. \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}
  63679. -\def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines
  63680. - \let\tt=\authortt}
  63681. -
  63682. \parseargdef\title{%
  63683. \checkenv\titlepage
  63684. - \leftline{\titlefonts\rm #1}
  63685. + \leftline{\titlefonts\rmisbold #1}
  63686. % print a rule at the page bottom also.
  63687. \finishedtitlepagefalse
  63688. \vskip4pt \hrule height 4pt width \hsize \vskip4pt
  63689. @@ -2904,7 +3108,7 @@
  63690. \else
  63691. \checkenv\titlepage
  63692. \ifseenauthor\else \vskip 0pt plus 1filll \seenauthortrue \fi
  63693. - {\authorfont \leftline{#1}}%
  63694. + {\secfonts\rmisbold \leftline{#1}}%
  63695. \fi
  63696. }
  63697. @@ -3132,7 +3336,7 @@
  63698. % cause the example and the item to crash together. So we use this
  63699. % bizarre value of 10001 as a signal to \aboveenvbreak to insert
  63700. % \parskip glue after all. Section titles are handled this way also.
  63701. - %
  63702. + %
  63703. \penalty 10001
  63704. \endgroup
  63705. \itemxneedsnegativevskipfalse
  63706. @@ -3226,9 +3430,18 @@
  63707. \parindent=0pt
  63708. \parskip=\smallskipamount
  63709. \ifdim\parskip=0pt \parskip=2pt \fi
  63710. + %
  63711. + % Try typesetting the item mark that if the document erroneously says
  63712. + % something like @itemize @samp (intending @table), there's an error
  63713. + % right away at the @itemize. It's not the best error message in the
  63714. + % world, but it's better than leaving it to the @item. This means if
  63715. + % the user wants an empty mark, they have to say @w{} not just @w.
  63716. \def\itemcontents{#1}%
  63717. + \setbox0 = \hbox{\itemcontents}%
  63718. + %
  63719. % @itemize with no arg is equivalent to @itemize @bullet.
  63720. \ifx\itemcontents\empty\def\itemcontents{\bullet}\fi
  63721. + %
  63722. \let\item=\itemizeitem
  63723. }
  63724. @@ -3249,6 +3462,7 @@
  63725. \ifnum\lastpenalty<10000 \parskip=0in \fi
  63726. \noindent
  63727. \hbox to 0pt{\hss \itemcontents \kern\itemmargin}%
  63728. + %
  63729. \vadjust{\penalty 1200}}% not good to break after first line of item.
  63730. \flushcr
  63731. }
  63732. @@ -3470,12 +3684,19 @@
  63733. %
  63734. % @headitem starts a heading row, which we typeset in bold.
  63735. % Assignments have to be global since we are inside the implicit group
  63736. -% of an alignment entry. Note that \everycr resets \everytab.
  63737. -\def\headitem{\checkenv\multitable \crcr \global\everytab={\bf}\the\everytab}%
  63738. +% of an alignment entry. \everycr resets \everytab so we don't have to
  63739. +% undo it ourselves.
  63740. +\def\headitemfont{\b}% for people to use in the template row; not changeable
  63741. +\def\headitem{%
  63742. + \checkenv\multitable
  63743. + \crcr
  63744. + \global\everytab={\bf}% can't use \headitemfont since the parsing differs
  63745. + \the\everytab % for the first item
  63746. +}%
  63747. %
  63748. % A \tab used to include \hskip1sp. But then the space in a template
  63749. % line is not enough. That is bad. So let's go back to just `&' until
  63750. -% we encounter the problem it was intended to solve again.
  63751. +% we again encounter the problem the 1sp was intended to solve.
  63752. % --karl, nathan@acm.org, 20apr99.
  63753. \def\tab{\checkenv\multitable &\the\everytab}%
  63754. @@ -3874,11 +4095,11 @@
  63755. \def\dosynindex#1#2#3{%
  63756. % Only do \closeout if we haven't already done it, else we'll end up
  63757. % closing the target index.
  63758. - \expandafter \ifx\csname donesynindex#2\endcsname \undefined
  63759. + \expandafter \ifx\csname donesynindex#2\endcsname \relax
  63760. % The \closeout helps reduce unnecessary open files; the limit on the
  63761. % Acorn RISC OS is a mere 16 files.
  63762. \expandafter\closeout\csname#2indfile\endcsname
  63763. - \expandafter\let\csname\donesynindex#2\endcsname = 1
  63764. + \expandafter\let\csname donesynindex#2\endcsname = 1
  63765. \fi
  63766. % redefine \fooindfile:
  63767. \expandafter\let\expandafter\temp\expandafter=\csname#3indfile\endcsname
  63768. @@ -3928,7 +4149,7 @@
  63769. % processing continues to some further point. On the other hand, it
  63770. % seems \endinput does not hurt in the printed index arg, since that
  63771. % is still getting written without apparent harm.
  63772. - %
  63773. + %
  63774. % Sample source (mac-idx3.tex, reported by Graham Percival to
  63775. % help-texinfo, 22may06):
  63776. % @macro funindex {WORD}
  63777. @@ -3936,12 +4157,12 @@
  63778. % @end macro
  63779. % ...
  63780. % @funindex commtest
  63781. - %
  63782. + %
  63783. % The above is not enough to reproduce the bug, but it gives the flavor.
  63784. - %
  63785. + %
  63786. % Sample whatsit resulting:
  63787. % .@write3{\entry{xyz}{@folio }{@code {xyz@endinput }}}
  63788. - %
  63789. + %
  63790. % So:
  63791. \let\endinput = \empty
  63792. %
  63793. @@ -3993,19 +4214,23 @@
  63794. % Non-English letters.
  63795. \definedummyword\AA
  63796. \definedummyword\AE
  63797. + \definedummyword\DH
  63798. \definedummyword\L
  63799. - \definedummyword\OE
  63800. \definedummyword\O
  63801. + \definedummyword\OE
  63802. + \definedummyword\TH
  63803. \definedummyword\aa
  63804. \definedummyword\ae
  63805. + \definedummyword\dh
  63806. + \definedummyword\exclamdown
  63807. \definedummyword\l
  63808. - \definedummyword\oe
  63809. \definedummyword\o
  63810. - \definedummyword\ss
  63811. - \definedummyword\exclamdown
  63812. - \definedummyword\questiondown
  63813. + \definedummyword\oe
  63814. \definedummyword\ordf
  63815. \definedummyword\ordm
  63816. + \definedummyword\questiondown
  63817. + \definedummyword\ss
  63818. + \definedummyword\th
  63819. %
  63820. % Although these internal commands shouldn't show up, sometimes they do.
  63821. \definedummyword\bf
  63822. @@ -4036,6 +4261,7 @@
  63823. \definedummyword\guilsinglright
  63824. \definedummyword\expansion
  63825. \definedummyword\minus
  63826. + \definedummyword\ogonek
  63827. \definedummyword\pounds
  63828. \definedummyword\point
  63829. \definedummyword\print
  63830. @@ -4079,6 +4305,7 @@
  63831. \definedummyword\v
  63832. \definedummyword\H
  63833. \definedummyword\dotaccent
  63834. + \definedummyword\ogonek
  63835. \definedummyword\ringaccent
  63836. \definedummyword\tieaccent
  63837. \definedummyword\ubaraccent
  63838. @@ -4098,6 +4325,7 @@
  63839. \definedummyword\code
  63840. \definedummyword\command
  63841. \definedummyword\dfn
  63842. + \definedummyword\email
  63843. \definedummyword\emph
  63844. \definedummyword\env
  63845. \definedummyword\file
  63846. @@ -4146,19 +4374,23 @@
  63847. % Non-English letters.
  63848. \def\AA{AA}%
  63849. \def\AE{AE}%
  63850. + \def\DH{DZZ}%
  63851. \def\L{L}%
  63852. \def\OE{OE}%
  63853. \def\O{O}%
  63854. + \def\TH{ZZZ}%
  63855. \def\aa{aa}%
  63856. \def\ae{ae}%
  63857. + \def\dh{dzz}%
  63858. + \def\exclamdown{!}%
  63859. \def\l{l}%
  63860. \def\oe{oe}%
  63861. - \def\o{o}%
  63862. - \def\ss{ss}%
  63863. - \def\exclamdown{!}%
  63864. - \def\questiondown{?}%
  63865. \def\ordf{a}%
  63866. \def\ordm{o}%
  63867. + \def\o{o}%
  63868. + \def\questiondown{?}%
  63869. + \def\ss{ss}%
  63870. + \def\th{zzz}%
  63871. %
  63872. \def\LaTeX{LaTeX}%
  63873. \def\TeX{TeX}%
  63874. @@ -4168,20 +4400,19 @@
  63875. \def\bullet{bullet}%
  63876. \def\comma{,}%
  63877. \def\copyright{copyright}%
  63878. - \def\registeredsymbol{R}%
  63879. \def\dots{...}%
  63880. \def\enddots{...}%
  63881. \def\equiv{==}%
  63882. \def\error{error}%
  63883. \def\euro{euro}%
  63884. + \def\expansion{==>}%
  63885. \def\guillemetleft{<<}%
  63886. \def\guillemetright{>>}%
  63887. \def\guilsinglleft{<}%
  63888. \def\guilsinglright{>}%
  63889. - \def\expansion{==>}%
  63890. \def\minus{-}%
  63891. - \def\pounds{pounds}%
  63892. \def\point{.}%
  63893. + \def\pounds{pounds}%
  63894. \def\print{-|}%
  63895. \def\quotedblbase{"}%
  63896. \def\quotedblleft{"}%
  63897. @@ -4189,19 +4420,20 @@
  63898. \def\quoteleft{`}%
  63899. \def\quoteright{'}%
  63900. \def\quotesinglbase{,}%
  63901. + \def\registeredsymbol{R}%
  63902. \def\result{=>}%
  63903. - \def\textdegree{degrees}%
  63904. + \def\textdegree{o}%
  63905. %
  63906. % We need to get rid of all macros, leaving only the arguments (if present).
  63907. % Of course this is not nearly correct, but it is the best we can do for now.
  63908. % makeinfo does not expand macros in the argument to @deffn, which ends up
  63909. % writing an index entry, and texindex isn't prepared for an index sort entry
  63910. % that starts with \.
  63911. - %
  63912. + %
  63913. % Since macro invocations are followed by braces, we can just redefine them
  63914. % to take a single TeX argument. The case of a macro invocation that
  63915. % goes to end-of-line is not handled.
  63916. - %
  63917. + %
  63918. \macrolist
  63919. }
  63920. @@ -4329,7 +4561,7 @@
  63921. % to re-insert the same penalty (values >10000 are used for various
  63922. % signals); since we just inserted a non-discardable item, any
  63923. % following glue (such as a \parskip) would be a breakpoint. For example:
  63924. - %
  63925. + %
  63926. % @deffn deffn-whatever
  63927. % @vindex index-whatever
  63928. % Description.
  63929. @@ -4910,7 +5142,9 @@
  63930. \gdef\chaplevelprefix{\the\chapno.}%
  63931. \resetallfloatnos
  63932. %
  63933. - \message{\putwordChapter\space \the\chapno}%
  63934. + % \putwordChapter can contain complex things in translations.
  63935. + \toks0=\expandafter{\putwordChapter}%
  63936. + \message{\the\toks0 \space \the\chapno}%
  63937. %
  63938. % Write the actual heading.
  63939. \chapmacro{#1}{Ynumbered}{\the\chapno}%
  63940. @@ -4921,15 +5155,17 @@
  63941. \global\let\subsubsection = \numberedsubsubsec
  63942. }
  63943. -\outer\parseargdef\appendix{\apphead0{#1}} % normally apphead0 calls appendixzzz
  63944. +\outer\parseargdef\appendix{\apphead0{#1}} % normally calls appendixzzz
  63945. +%
  63946. \def\appendixzzz#1{%
  63947. \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
  63948. \global\advance\appendixno by 1
  63949. \gdef\chaplevelprefix{\appendixletter.}%
  63950. \resetallfloatnos
  63951. %
  63952. - \def\appendixnum{\putwordAppendix\space \appendixletter}%
  63953. - \message{\appendixnum}%
  63954. + % \putwordAppendix can contain complex things in translations.
  63955. + \toks0=\expandafter{\putwordAppendix}%
  63956. + \message{\the\toks0 \space \appendixletter}%
  63957. %
  63958. \chapmacro{#1}{Yappendix}{\appendixletter}%
  63959. %
  63960. @@ -5061,7 +5297,6 @@
  63961. % 3) Likewise, headings look best if no \parindent is used, and
  63962. % if justification is not attempted. Hence \raggedright.
  63963. -
  63964. \def\majorheading{%
  63965. {\advance\chapheadingskip by 10pt \chapbreak }%
  63966. \parsearg\chapheadingzzz
  63967. @@ -5070,8 +5305,8 @@
  63968. \def\chapheading{\chapbreak \parsearg\chapheadingzzz}
  63969. \def\chapheadingzzz#1{%
  63970. {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  63971. - \parindent=0pt\raggedright
  63972. - \rm #1\hfill}}%
  63973. + \parindent=0pt\ptexraggedright
  63974. + \rmisbold #1\hfill}}%
  63975. \bigskip \par\penalty 200\relax
  63976. \suppressfirstparagraphindent
  63977. }
  63978. @@ -5163,7 +5398,10 @@
  63979. \xdef\lastchapterdefs{%
  63980. \gdef\noexpand\thischaptername{\the\toks0}%
  63981. \gdef\noexpand\thischapternum{\appendixletter}%
  63982. - \gdef\noexpand\thischapter{\putwordAppendix{} \noexpand\thischapternum:
  63983. + % \noexpand\putwordAppendix avoids expanding indigestible
  63984. + % commands in some of the translations.
  63985. + \gdef\noexpand\thischapter{\noexpand\putwordAppendix{}
  63986. + \noexpand\thischapternum:
  63987. \noexpand\thischaptername}%
  63988. }%
  63989. \else
  63990. @@ -5171,7 +5409,10 @@
  63991. \xdef\lastchapterdefs{%
  63992. \gdef\noexpand\thischaptername{\the\toks0}%
  63993. \gdef\noexpand\thischapternum{\the\chapno}%
  63994. - \gdef\noexpand\thischapter{\putwordChapter{} \noexpand\thischapternum:
  63995. + % \noexpand\putwordChapter avoids expanding indigestible
  63996. + % commands in some of the translations.
  63997. + \gdef\noexpand\thischapter{\noexpand\putwordChapter{}
  63998. + \noexpand\thischapternum:
  63999. \noexpand\thischaptername}%
  64000. }%
  64001. \fi\fi\fi
  64002. @@ -5190,7 +5431,7 @@
  64003. \domark
  64004. %
  64005. {%
  64006. - \chapfonts \rm
  64007. + \chapfonts \rmisbold
  64008. %
  64009. % Have to define \lastsection before calling \donoderef, because the
  64010. % xref code eventually uses it. On the other hand, it has to be called
  64011. @@ -5227,7 +5468,7 @@
  64012. %
  64013. % Typeset the actual heading.
  64014. \nobreak % Avoid page breaks at the interline glue.
  64015. - \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
  64016. + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright
  64017. \hangindent=\wd0 \centerparametersmaybe
  64018. \unhbox0 #1\par}%
  64019. }%
  64020. @@ -5251,8 +5492,8 @@
  64021. %
  64022. \def\unnchfopen #1{%
  64023. \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  64024. - \parindent=0pt\raggedright
  64025. - \rm #1\hfill}}\bigskip \par\nobreak
  64026. + \parindent=0pt\ptexraggedright
  64027. + \rmisbold #1\hfill}}\bigskip \par\nobreak
  64028. }
  64029. \def\chfopen #1#2{\chapoddpage {\chapfonts
  64030. \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
  64031. @@ -5261,7 +5502,7 @@
  64032. \def\centerchfopen #1{%
  64033. \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  64034. \parindent=0pt
  64035. - \hfill {\rm #1}\hfill}}\bigskip \par\nobreak
  64036. + \hfill {\rmisbold #1}\hfill}}\bigskip \par\nobreak
  64037. }
  64038. \def\CHAPFopen{%
  64039. \global\let\chapmacro=\chfopen
  64040. @@ -5294,7 +5535,7 @@
  64041. \def\sectionheading#1#2#3#4{%
  64042. {%
  64043. % Switch to the right set of fonts.
  64044. - \csname #2fonts\endcsname \rm
  64045. + \csname #2fonts\endcsname \rmisbold
  64046. %
  64047. \def\sectionlevel{#2}%
  64048. \def\temptype{#3}%
  64049. @@ -5314,7 +5555,10 @@
  64050. \xdef\lastsectiondefs{%
  64051. \gdef\noexpand\thissectionname{\the\toks0}%
  64052. \gdef\noexpand\thissectionnum{#4}%
  64053. - \gdef\noexpand\thissection{\putwordSection{} \noexpand\thissectionnum:
  64054. + % \noexpand\putwordSection avoids expanding indigestible
  64055. + % commands in some of the translations.
  64056. + \gdef\noexpand\thissection{\noexpand\putwordSection{}
  64057. + \noexpand\thissectionnum:
  64058. \noexpand\thissectionname}%
  64059. }%
  64060. \fi
  64061. @@ -5324,12 +5568,20 @@
  64062. \xdef\lastsectiondefs{%
  64063. \gdef\noexpand\thissectionname{\the\toks0}%
  64064. \gdef\noexpand\thissectionnum{#4}%
  64065. - \gdef\noexpand\thissection{\putwordSection{} \noexpand\thissectionnum:
  64066. + % \noexpand\putwordSection avoids expanding indigestible
  64067. + % commands in some of the translations.
  64068. + \gdef\noexpand\thissection{\noexpand\putwordSection{}
  64069. + \noexpand\thissectionnum:
  64070. \noexpand\thissectionname}%
  64071. }%
  64072. \fi
  64073. \fi\fi\fi
  64074. %
  64075. + % Go into vertical mode. Usually we'll already be there, but we
  64076. + % don't want the following whatsit to end up in a preceding paragraph
  64077. + % if the document didn't happen to have a blank line.
  64078. + \par
  64079. + %
  64080. % Output the mark. Pass it through \safewhatsit, to take care of
  64081. % the preceding space.
  64082. \safewhatsit\domark
  64083. @@ -5379,7 +5631,7 @@
  64084. \nobreak
  64085. %
  64086. % Output the actual section heading.
  64087. - \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
  64088. + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright
  64089. \hangindent=\wd0 % zero if no section number
  64090. \unhbox0 #1}%
  64091. }%
  64092. @@ -5395,11 +5647,11 @@
  64093. % glue accumulate. (Not a breakpoint because it's preceded by a
  64094. % discardable item.)
  64095. \vskip-\parskip
  64096. - %
  64097. + %
  64098. % This is purely so the last item on the list is a known \penalty >
  64099. % 10000. This is so \startdefun can avoid allowing breakpoints after
  64100. % section headings. Otherwise, it would insert a valid breakpoint between:
  64101. - %
  64102. + %
  64103. % @section sec-whatever
  64104. % @deffn def-whatever
  64105. \penalty 10001
  64106. @@ -5457,7 +5709,7 @@
  64107. % These characters do not print properly in the Computer Modern roman
  64108. % fonts, so we must take special care. This is more or less redundant
  64109. % with the Texinfo input format setup at the end of this file.
  64110. -%
  64111. +%
  64112. \def\activecatcodes{%
  64113. \catcode`\"=\active
  64114. \catcode`\$=\active
  64115. @@ -5507,7 +5759,7 @@
  64116. % redefined for the two-volume lispref. We always output on
  64117. % \jobname.toc even if this is redefined.
  64118. -%
  64119. +%
  64120. \def\tocreadfilename{\jobname.toc}
  64121. % Normal (long) toc.
  64122. @@ -5677,46 +5929,12 @@
  64123. \message{environments,}
  64124. % @foo ... @end foo.
  64125. -% @point{}, @result{}, @expansion{}, @print{}, @equiv{}.
  64126. -%
  64127. -% Since these characters are used in examples, they should be an even number of
  64128. -% \tt widths. Each \tt character is 1en, so two makes it 1em.
  64129. -%
  64130. -\def\point{$\star$}
  64131. -\def\arrow{\leavevmode\raise.05ex\hbox to 1em{\hfil$\rightarrow$\hfil}}
  64132. -\def\result{\leavevmode\raise.05ex\hbox to 1em{\hfil$\Rightarrow$\hfil}}
  64133. -\def\expansion{\leavevmode\hbox to 1em{\hfil$\mapsto$\hfil}}
  64134. -\def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}}
  64135. -\def\equiv{\leavevmode\hbox to 1em{\hfil$\ptexequiv$\hfil}}
  64136. -
  64137. -% The @error{} command.
  64138. -% Adapted from the TeXbook's \boxit.
  64139. -%
  64140. -\newbox\errorbox
  64141. -%
  64142. -{\tentt \global\dimen0 = 3em}% Width of the box.
  64143. -\dimen2 = .55pt % Thickness of rules
  64144. -% The text. (`r' is open on the right, `e' somewhat less so on the left.)
  64145. -\setbox0 = \hbox{\kern-.75pt \reducedsf error\kern-1.5pt}
  64146. -%
  64147. -\setbox\errorbox=\hbox to \dimen0{\hfil
  64148. - \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
  64149. - \advance\hsize by -2\dimen2 % Rules.
  64150. - \vbox{%
  64151. - \hrule height\dimen2
  64152. - \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
  64153. - \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below.
  64154. - \kern3pt\vrule width\dimen2}% Space to right.
  64155. - \hrule height\dimen2}
  64156. - \hfil}
  64157. -%
  64158. -\def\error{\leavevmode\lower.7ex\copy\errorbox}
  64159. -
  64160. % @tex ... @end tex escapes into raw Tex temporarily.
  64161. % One exception: @ is still an escape character, so that @end tex works.
  64162. % But \@ or @@ will get a plain tex @ character.
  64163. \envdef\tex{%
  64164. + \setupmarkupstyle{tex}%
  64165. \catcode `\\=0 \catcode `\{=1 \catcode `\}=2
  64166. \catcode `\$=3 \catcode `\&=4 \catcode `\#=6
  64167. \catcode `\^=7 \catcode `\_=8 \catcode `\~=\active \let~=\tie
  64168. @@ -5726,6 +5944,8 @@
  64169. \catcode `\|=\other
  64170. \catcode `\<=\other
  64171. \catcode `\>=\other
  64172. + \catcode`\`=\other
  64173. + \catcode`\'=\other
  64174. \escapechar=`\\
  64175. %
  64176. \let\b=\ptexb
  64177. @@ -5861,6 +6081,7 @@
  64178. % This macro is called at the beginning of all the @example variants,
  64179. % inside a group.
  64180. +\newdimen\nonfillparindent
  64181. \def\nonfillstart{%
  64182. \aboveenvbreak
  64183. \hfuzz = 12pt % Don't be fussy
  64184. @@ -5868,7 +6089,12 @@
  64185. \let\par = \lisppar % don't ignore blank lines
  64186. \obeylines % each line of input is a line of output
  64187. \parskip = 0pt
  64188. + % Turn off paragraph indentation but redefine \indent to emulate
  64189. + % the normal \indent.
  64190. + \nonfillparindent=\parindent
  64191. \parindent = 0pt
  64192. + \let\indent\nonfillindent
  64193. + %
  64194. \emergencystretch = 0pt % don't try to avoid overfull boxes
  64195. \ifx\nonarrowing\relax
  64196. \advance \leftskip by \lispnarrowing
  64197. @@ -5879,6 +6105,24 @@
  64198. \let\exdent=\nofillexdent
  64199. }
  64200. +\begingroup
  64201. +\obeyspaces
  64202. +% We want to swallow spaces (but not other tokens) after the fake
  64203. +% @indent in our nonfill-environments, where spaces are normally
  64204. +% active and set to @tie, resulting in them not being ignored after
  64205. +% @indent.
  64206. +\gdef\nonfillindent{\futurelet\temp\nonfillindentcheck}%
  64207. +\gdef\nonfillindentcheck{%
  64208. +\ifx\temp %
  64209. +\expandafter\nonfillindentgobble%
  64210. +\else%
  64211. +\leavevmode\nonfillindentbox%
  64212. +\fi%
  64213. +}%
  64214. +\endgroup
  64215. +\def\nonfillindentgobble#1{\nonfillindent}
  64216. +\def\nonfillindentbox{\hbox to \nonfillparindent{\hss}}
  64217. +
  64218. % If you want all examples etc. small: @set dispenvsize small.
  64219. % If you want even small examples the full size: @set dispenvsize nosmall.
  64220. % This affects the following displayed environments:
  64221. @@ -5927,7 +6171,7 @@
  64222. %
  64223. \maketwodispenvs {lisp}{example}{%
  64224. \nonfillstart
  64225. - \tt\quoteexpand
  64226. + \tt\setupmarkupstyle{example}%
  64227. \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special.
  64228. \gobble % eat return
  64229. }
  64230. @@ -5965,12 +6209,36 @@
  64231. \let\Eflushright = \afterenvbreak
  64232. +% @raggedright does more-or-less normal line breaking but no right
  64233. +% justification. From plain.tex.
  64234. +\envdef\raggedright{%
  64235. + \rightskip0pt plus2em \spaceskip.3333em \xspaceskip.5em\relax
  64236. +}
  64237. +\let\Eraggedright\par
  64238. +
  64239. +\envdef\raggedleft{%
  64240. + \parindent=0pt \leftskip0pt plus2em
  64241. + \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt
  64242. + \hbadness=10000 % Last line will usually be underfull, so turn off
  64243. + % badness reporting.
  64244. +}
  64245. +\let\Eraggedleft\par
  64246. +
  64247. +\envdef\raggedcenter{%
  64248. + \parindent=0pt \rightskip0pt plus1em \leftskip0pt plus1em
  64249. + \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt
  64250. + \hbadness=10000 % Last line will usually be underfull, so turn off
  64251. + % badness reporting.
  64252. +}
  64253. +\let\Eraggedcenter\par
  64254. +
  64255. +
  64256. % @quotation does normal linebreaking (hence we can't use \nonfillstart)
  64257. % and narrows the margins. We keep \parskip nonzero in general, since
  64258. % we're doing normal filling. So, when using \aboveenvbreak and
  64259. % \afterenvbreak, temporarily make \parskip 0.
  64260. %
  64261. -\envdef\quotation{%
  64262. +\def\quotationstart{%
  64263. {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip
  64264. \parindent=0pt
  64265. %
  64266. @@ -5985,6 +6253,17 @@
  64267. \parsearg\quotationlabel
  64268. }
  64269. +\envdef\quotation{%
  64270. + \setnormaldispenv
  64271. + \quotationstart
  64272. +}
  64273. +
  64274. +\envdef\smallquotation{%
  64275. + \setsmalldispenv
  64276. + \quotationstart
  64277. +}
  64278. +\let\Esmallquotation = \Equotation
  64279. +
  64280. % We have retained a nonzero parskip for the environment, since we're
  64281. % doing normal filling.
  64282. %
  64283. @@ -6020,18 +6299,16 @@
  64284. \do\ \do\\\do\{\do\}\do\$\do\&%
  64285. \do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~%
  64286. \do\<\do\>\do\|\do\@\do+\do\"%
  64287. + % Don't do the quotes -- if we do, @set txicodequoteundirected and
  64288. + % @set txicodequotebacktick will not have effect on @verb and
  64289. + % @verbatim, and ?` and !` ligatures won't get disabled.
  64290. + %\do\`\do\'%
  64291. }
  64292. %
  64293. % [Knuth] p. 380
  64294. \def\uncatcodespecials{%
  64295. \def\do##1{\catcode`##1=\other}\dospecials}
  64296. %
  64297. -% [Knuth] pp. 380,381,391
  64298. -% Disable Spanish ligatures ?` and !` of \tt font
  64299. -\begingroup
  64300. - \catcode`\`=\active\gdef`{\relax\lq}
  64301. -\endgroup
  64302. -%
  64303. % Setup for the @verb command.
  64304. %
  64305. % Eight spaces for a tab
  64306. @@ -6043,7 +6320,7 @@
  64307. \def\setupverb{%
  64308. \tt % easiest (and conventionally used) font for verbatim
  64309. \def\par{\leavevmode\endgraf}%
  64310. - \catcode`\`=\active
  64311. + \setupmarkupstyle{verb}%
  64312. \tabeightspaces
  64313. % Respect line breaks,
  64314. % print special symbols as themselves, and
  64315. @@ -6058,33 +6335,6 @@
  64316. \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
  64317. %
  64318. \def\starttabbox{\setbox0=\hbox\bgroup}
  64319. -
  64320. -% Allow an option to not replace quotes with a regular directed right
  64321. -% quote/apostrophe (char 0x27), but instead use the undirected quote
  64322. -% from cmtt (char 0x0d). The undirected quote is ugly, so don't make it
  64323. -% the default, but it works for pasting with more pdf viewers (at least
  64324. -% evince), the lilypond developers report. xpdf does work with the
  64325. -% regular 0x27.
  64326. -%
  64327. -\def\codequoteright{%
  64328. - \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
  64329. - \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
  64330. - '%
  64331. - \else \char'15 \fi
  64332. - \else \char'15 \fi
  64333. -}
  64334. -%
  64335. -% and a similar option for the left quote char vs. a grave accent.
  64336. -% Modern fonts display ASCII 0x60 as a grave accent, so some people like
  64337. -% the code environments to do likewise.
  64338. -%
  64339. -\def\codequoteleft{%
  64340. - \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
  64341. - \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
  64342. - `%
  64343. - \else \char'22 \fi
  64344. - \else \char'22 \fi
  64345. -}
  64346. %
  64347. \begingroup
  64348. \catcode`\^^I=\active
  64349. @@ -6098,13 +6348,6 @@
  64350. \wd0=\dimen0 \box0 \starttabbox
  64351. }%
  64352. }
  64353. - \catcode`\'=\active
  64354. - \gdef\rquoteexpand{\catcode\rquoteChar=\active \def'{\codequoteright}}%
  64355. - %
  64356. - \catcode`\`=\active
  64357. - \gdef\lquoteexpand{\catcode\lquoteChar=\active \def`{\codequoteleft}}%
  64358. - %
  64359. - \gdef\quoteexpand{\rquoteexpand \lquoteexpand}%
  64360. \endgroup
  64361. % start the verbatim environment.
  64362. @@ -6114,9 +6357,8 @@
  64363. % Easiest (and conventionally used) font for verbatim
  64364. \tt
  64365. \def\par{\leavevmode\egroup\box0\endgraf}%
  64366. - \catcode`\`=\active
  64367. \tabexpand
  64368. - \quoteexpand
  64369. + \setupmarkupstyle{verbatim}%
  64370. % Respect line breaks,
  64371. % print special symbols as themselves, and
  64372. % make each space count
  64373. @@ -6176,6 +6418,7 @@
  64374. {%
  64375. \makevalueexpandable
  64376. \setupverbatim
  64377. + \indexnofonts % Allow `@@' and other weird things in file names.
  64378. \input #1
  64379. \afterenvbreak
  64380. }%
  64381. @@ -6454,7 +6697,7 @@
  64382. %
  64383. % On the other hand, if an argument has two dashes (for instance), we
  64384. % want a way to get ttsl. Let's try @var for that.
  64385. - \let\var=\ttslanted
  64386. + \def\var##1{{\setupmarkupstyle{var}\ttslanted{##1}}}%
  64387. #1%
  64388. \sl\hyphenchar\font=45
  64389. }
  64390. @@ -6608,7 +6851,7 @@
  64391. % This does \let #1 = #2, with \csnames; that is,
  64392. % \let \csname#1\endcsname = \csname#2\endcsname
  64393. % (except of course we have to play expansion games).
  64394. -%
  64395. +%
  64396. \def\cslet#1#2{%
  64397. \expandafter\let
  64398. \csname#1\expandafter\endcsname
  64399. @@ -7747,10 +7990,9 @@
  64400. \message{localization,}
  64401. -% @documentlanguage is usually given very early, just after
  64402. -% @setfilename. If done too late, it may not override everything
  64403. -% properly. Single argument is the language (de) or locale (de_DE)
  64404. -% abbreviation. It would be nice if we could set up a hyphenation file.
  64405. +% For single-language documents, @documentlanguage is usually given very
  64406. +% early, just after @documentencoding. Single argument is the language
  64407. +% (de) or locale (de_DE) abbreviation.
  64408. %
  64409. {
  64410. \catcode`\_ = \active
  64411. @@ -7763,31 +8005,60 @@
  64412. \ifeof 1
  64413. \documentlanguagetrywithoutunderscore{#1_\finish}%
  64414. \else
  64415. + \globaldefs = 1 % everything in the txi-LL files needs to persist
  64416. \input txi-#1.tex
  64417. \fi
  64418. \closein 1
  64419. - \endgroup
  64420. + \endgroup % end raw TeX
  64421. \endgroup}
  64422. -}
  64423. %
  64424. % If they passed de_DE, and txi-de_DE.tex doesn't exist,
  64425. % try txi-de.tex.
  64426. -%
  64427. -\def\documentlanguagetrywithoutunderscore#1_#2\finish{%
  64428. +%
  64429. +\gdef\documentlanguagetrywithoutunderscore#1_#2\finish{%
  64430. \openin 1 txi-#1.tex
  64431. \ifeof 1
  64432. \errhelp = \nolanghelp
  64433. \errmessage{Cannot read language file txi-#1.tex}%
  64434. \else
  64435. + \globaldefs = 1 % everything in the txi-LL files needs to persist
  64436. \input txi-#1.tex
  64437. \fi
  64438. \closein 1
  64439. }
  64440. +}% end of special _ catcode
  64441. %
  64442. \newhelp\nolanghelp{The given language definition file cannot be found or
  64443. -is empty. Maybe you need to install it? In the current directory
  64444. -should work if nowhere else does.}
  64445. +is empty. Maybe you need to install it? Putting it in the current
  64446. +directory should work if nowhere else does.}
  64447. +% This macro is called from txi-??.tex files; the first argument is the
  64448. +% \language name to set (without the "\lang@" prefix), the second and
  64449. +% third args are \{left,right}hyphenmin.
  64450. +%
  64451. +% The language names to pass are determined when the format is built.
  64452. +% See the etex.log file created at that time, e.g.,
  64453. +% /usr/local/texlive/2008/texmf-var/web2c/pdftex/etex.log.
  64454. +%
  64455. +% With TeX Live 2008, etex now includes hyphenation patterns for all
  64456. +% available languages. This means we can support hyphenation in
  64457. +% Texinfo, at least to some extent. (This still doesn't solve the
  64458. +% accented characters problem.)
  64459. +%
  64460. +\catcode`@=11
  64461. +\def\txisetlanguage#1#2#3{%
  64462. + % do not set the language if the name is undefined in the current TeX.
  64463. + \expandafter\ifx\csname lang@#1\endcsname \relax
  64464. + \message{no patterns for #1}%
  64465. + \else
  64466. + \global\language = \csname lang@#1\endcsname
  64467. + \fi
  64468. + % but there is no harm in adjusting the hyphenmin values regardless.
  64469. + \global\lefthyphenmin = #2\relax
  64470. + \global\righthyphenmin = #3\relax
  64471. +}
  64472. +
  64473. +% Helpers for encodings.
  64474. % Set the catcode of characters 128 through 255 to the specified number.
  64475. %
  64476. \def\setnonasciicharscatcode#1{%
  64477. @@ -7828,7 +8099,7 @@
  64478. \setnonasciicharscatcode\active
  64479. \lattwochardefs
  64480. %
  64481. - \else \ifx \declaredencoding \latone
  64482. + \else \ifx \declaredencoding \latone
  64483. \setnonasciicharscatcode\active
  64484. \latonechardefs
  64485. %
  64486. @@ -7840,7 +8111,7 @@
  64487. \setnonasciicharscatcode\active
  64488. \utfeightchardefs
  64489. %
  64490. - \else
  64491. + \else
  64492. \message{Unknown document encoding #1, ignoring.}%
  64493. %
  64494. \fi % utfeight
  64495. @@ -7852,7 +8123,7 @@
  64496. % A message to be logged when using a character that isn't available
  64497. % the default font encoding (OT1).
  64498. -%
  64499. +%
  64500. \def\missingcharmsg#1{\message{Character missing in OT1 encoding: #1.}}
  64501. % Take account of \c (plain) vs. \, (Texinfo) difference.
  64502. @@ -7865,21 +8136,21 @@
  64503. %
  64504. % Latin1 (ISO-8859-1) character definitions.
  64505. \def\latonechardefs{%
  64506. - \gdef^^a0{~}
  64507. + \gdef^^a0{~}
  64508. \gdef^^a1{\exclamdown}
  64509. - \gdef^^a2{\missingcharmsg{CENT SIGN}}
  64510. + \gdef^^a2{\missingcharmsg{CENT SIGN}}
  64511. \gdef^^a3{{\pounds}}
  64512. \gdef^^a4{\missingcharmsg{CURRENCY SIGN}}
  64513. \gdef^^a5{\missingcharmsg{YEN SIGN}}
  64514. - \gdef^^a6{\missingcharmsg{BROKEN BAR}}
  64515. + \gdef^^a6{\missingcharmsg{BROKEN BAR}}
  64516. \gdef^^a7{\S}
  64517. - \gdef^^a8{\"{}}
  64518. - \gdef^^a9{\copyright}
  64519. + \gdef^^a8{\"{}}
  64520. + \gdef^^a9{\copyright}
  64521. \gdef^^aa{\ordf}
  64522. - \gdef^^ab{\missingcharmsg{LEFT-POINTING DOUBLE ANGLE QUOTATION MARK}}
  64523. + \gdef^^ab{\guillemetleft}
  64524. \gdef^^ac{$\lnot$}
  64525. - \gdef^^ad{\-}
  64526. - \gdef^^ae{\registeredsymbol}
  64527. + \gdef^^ad{\-}
  64528. + \gdef^^ae{\registeredsymbol}
  64529. \gdef^^af{\={}}
  64530. %
  64531. \gdef^^b0{\textdegree}
  64532. @@ -7895,7 +8166,7 @@
  64533. \gdef^^b9{$^1$}
  64534. \gdef^^ba{\ordm}
  64535. %
  64536. - \gdef^^bb{\missingcharmsg{RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK}}
  64537. + \gdef^^bb{\guilletright}
  64538. \gdef^^bc{$1\over4$}
  64539. \gdef^^bd{$1\over2$}
  64540. \gdef^^be{$3\over4$}
  64541. @@ -7906,7 +8177,7 @@
  64542. \gdef^^c2{\^A}
  64543. \gdef^^c3{\~A}
  64544. \gdef^^c4{\"A}
  64545. - \gdef^^c5{\ringaccent A}
  64546. + \gdef^^c5{\ringaccent A}
  64547. \gdef^^c6{\AE}
  64548. \gdef^^c7{\cedilla C}
  64549. \gdef^^c8{\`E}
  64550. @@ -7918,7 +8189,7 @@
  64551. \gdef^^ce{\^I}
  64552. \gdef^^cf{\"I}
  64553. %
  64554. - \gdef^^d0{\missingcharmsg{LATIN CAPITAL LETTER ETH}}
  64555. + \gdef^^d0{\DH}
  64556. \gdef^^d1{\~N}
  64557. \gdef^^d2{\`O}
  64558. \gdef^^d3{\'O}
  64559. @@ -7932,7 +8203,7 @@
  64560. \gdef^^db{\^U}
  64561. \gdef^^dc{\"U}
  64562. \gdef^^dd{\'Y}
  64563. - \gdef^^de{\missingcharmsg{LATIN CAPITAL LETTER THORN}}
  64564. + \gdef^^de{\TH}
  64565. \gdef^^df{\ss}
  64566. %
  64567. \gdef^^e0{\`a}
  64568. @@ -7952,7 +8223,7 @@
  64569. \gdef^^ee{\^{\dotless i}}
  64570. \gdef^^ef{\"{\dotless i}}
  64571. %
  64572. - \gdef^^f0{\missingcharmsg{LATIN SMALL LETTER ETH}}
  64573. + \gdef^^f0{\dh}
  64574. \gdef^^f1{\~n}
  64575. \gdef^^f2{\`o}
  64576. \gdef^^f3{\'o}
  64577. @@ -7966,7 +8237,7 @@
  64578. \gdef^^fb{\^u}
  64579. \gdef^^fc{\"u}
  64580. \gdef^^fd{\'y}
  64581. - \gdef^^fe{\missingcharmsg{LATIN SMALL LETTER THORN}}
  64582. + \gdef^^fe{\th}
  64583. \gdef^^ff{\"y}
  64584. }
  64585. @@ -7988,7 +8259,7 @@
  64586. % Latin2 (ISO-8859-2) character definitions.
  64587. \def\lattwochardefs{%
  64588. \gdef^^a0{~}
  64589. - \gdef^^a1{\missingcharmsg{LATIN CAPITAL LETTER A WITH OGONEK}}
  64590. + \gdef^^a1{\ogonek{A}}
  64591. \gdef^^a2{\u{}}
  64592. \gdef^^a3{\L}
  64593. \gdef^^a4{\missingcharmsg{CURRENCY SIGN}}
  64594. @@ -8005,8 +8276,8 @@
  64595. \gdef^^af{\dotaccent Z}
  64596. %
  64597. \gdef^^b0{\textdegree}
  64598. - \gdef^^b1{\missingcharmsg{LATIN SMALL LETTER A WITH OGONEK}}
  64599. - \gdef^^b2{\missingcharmsg{OGONEK}}
  64600. + \gdef^^b1{\ogonek{a}}
  64601. + \gdef^^b2{\ogonek{ }}
  64602. \gdef^^b3{\l}
  64603. \gdef^^b4{\'{}}
  64604. \gdef^^b5{\v l}
  64605. @@ -8031,14 +8302,14 @@
  64606. \gdef^^c7{\cedilla C}
  64607. \gdef^^c8{\v C}
  64608. \gdef^^c9{\'E}
  64609. - \gdef^^ca{\missingcharmsg{LATIN CAPITAL LETTER E WITH OGONEK}}
  64610. + \gdef^^ca{\ogonek{E}}
  64611. \gdef^^cb{\"E}
  64612. \gdef^^cc{\v E}
  64613. \gdef^^cd{\'I}
  64614. \gdef^^ce{\^I}
  64615. \gdef^^cf{\v D}
  64616. %
  64617. - \gdef^^d0{\missingcharmsg{LATIN CAPITAL LETTER D WITH STROKE}}
  64618. + \gdef^^d0{\DH}
  64619. \gdef^^d1{\'N}
  64620. \gdef^^d2{\v N}
  64621. \gdef^^d3{\'O}
  64622. @@ -8047,7 +8318,7 @@
  64623. \gdef^^d6{\"O}
  64624. \gdef^^d7{$\times$}
  64625. \gdef^^d8{\v R}
  64626. - \gdef^^d9{\ringaccent U}
  64627. + \gdef^^d9{\ringaccent U}
  64628. \gdef^^da{\'U}
  64629. \gdef^^db{\H U}
  64630. \gdef^^dc{\"U}
  64631. @@ -8065,14 +8336,14 @@
  64632. \gdef^^e7{\cedilla c}
  64633. \gdef^^e8{\v c}
  64634. \gdef^^e9{\'e}
  64635. - \gdef^^ea{\missingcharmsg{LATIN SMALL LETTER E WITH OGONEK}}
  64636. + \gdef^^ea{\ogonek{e}}
  64637. \gdef^^eb{\"e}
  64638. \gdef^^ec{\v e}
  64639. \gdef^^ed{\'\i}
  64640. \gdef^^ee{\^\i}
  64641. \gdef^^ef{\v d}
  64642. %
  64643. - \gdef^^f0{\missingcharmsg{LATIN SMALL LETTER D WITH STROKE}}
  64644. + \gdef^^f0{\dh}
  64645. \gdef^^f1{\'n}
  64646. \gdef^^f2{\v n}
  64647. \gdef^^f3{\'o}
  64648. @@ -8091,11 +8362,11 @@
  64649. }
  64650. % UTF-8 character definitions.
  64651. -%
  64652. +%
  64653. % This code to support UTF-8 is based on LaTeX's utf8.def, with some
  64654. % changes for Texinfo conventions. It is included here under the GPL by
  64655. % permission from Frank Mittelbach and the LaTeX team.
  64656. -%
  64657. +%
  64658. \newcount\countUTFx
  64659. \newcount\countUTFy
  64660. \newcount\countUTFz
  64661. @@ -8245,6 +8516,7 @@
  64662. \DeclareUnicodeCharacter{00CE}{\^I}
  64663. \DeclareUnicodeCharacter{00CF}{\"I}
  64664. + \DeclareUnicodeCharacter{00D0}{\DH}
  64665. \DeclareUnicodeCharacter{00D1}{\~N}
  64666. \DeclareUnicodeCharacter{00D2}{\`O}
  64667. \DeclareUnicodeCharacter{00D3}{\'O}
  64668. @@ -8257,6 +8529,7 @@
  64669. \DeclareUnicodeCharacter{00DB}{\^U}
  64670. \DeclareUnicodeCharacter{00DC}{\"U}
  64671. \DeclareUnicodeCharacter{00DD}{\'Y}
  64672. + \DeclareUnicodeCharacter{00DE}{\TH}
  64673. \DeclareUnicodeCharacter{00DF}{\ss}
  64674. \DeclareUnicodeCharacter{00E0}{\`a}
  64675. @@ -8276,6 +8549,7 @@
  64676. \DeclareUnicodeCharacter{00EE}{\^{\dotless{i}}}
  64677. \DeclareUnicodeCharacter{00EF}{\"{\dotless{i}}}
  64678. + \DeclareUnicodeCharacter{00F0}{\dh}
  64679. \DeclareUnicodeCharacter{00F1}{\~n}
  64680. \DeclareUnicodeCharacter{00F2}{\`o}
  64681. \DeclareUnicodeCharacter{00F3}{\'o}
  64682. @@ -8288,16 +8562,21 @@
  64683. \DeclareUnicodeCharacter{00FB}{\^u}
  64684. \DeclareUnicodeCharacter{00FC}{\"u}
  64685. \DeclareUnicodeCharacter{00FD}{\'y}
  64686. + \DeclareUnicodeCharacter{00FE}{\th}
  64687. \DeclareUnicodeCharacter{00FF}{\"y}
  64688. \DeclareUnicodeCharacter{0100}{\=A}
  64689. \DeclareUnicodeCharacter{0101}{\=a}
  64690. \DeclareUnicodeCharacter{0102}{\u{A}}
  64691. \DeclareUnicodeCharacter{0103}{\u{a}}
  64692. + \DeclareUnicodeCharacter{0104}{\ogonek{A}}
  64693. + \DeclareUnicodeCharacter{0105}{\ogonek{a}}
  64694. \DeclareUnicodeCharacter{0106}{\'C}
  64695. \DeclareUnicodeCharacter{0107}{\'c}
  64696. \DeclareUnicodeCharacter{0108}{\^C}
  64697. \DeclareUnicodeCharacter{0109}{\^c}
  64698. + \DeclareUnicodeCharacter{0118}{\ogonek{E}}
  64699. + \DeclareUnicodeCharacter{0119}{\ogonek{e}}
  64700. \DeclareUnicodeCharacter{010A}{\dotaccent{C}}
  64701. \DeclareUnicodeCharacter{010B}{\dotaccent{c}}
  64702. \DeclareUnicodeCharacter{010C}{\v{C}}
  64703. @@ -8445,6 +8724,8 @@
  64704. \DeclareUnicodeCharacter{0233}{\=y}
  64705. \DeclareUnicodeCharacter{0237}{\dotless{j}}
  64706. + \DeclareUnicodeCharacter{02DB}{\ogonek{ }}
  64707. +
  64708. \DeclareUnicodeCharacter{1E02}{\dotaccent{B}}
  64709. \DeclareUnicodeCharacter{1E03}{\dotaccent{b}}
  64710. \DeclareUnicodeCharacter{1E04}{\udotaccent{B}}
  64711. @@ -8826,6 +9107,9 @@
  64712. \message{and turning on texinfo input format.}
  64713. +% DEL is a comment character, in case @c does not suffice.
  64714. +\catcode`\^^? = 14
  64715. +
  64716. % Define macros to output various characters with catcode for normal text.
  64717. \catcode`\"=\other
  64718. \catcode`\~=\other
  64719. @@ -8935,7 +9219,7 @@
  64720. % Same as @turnoffactive except outputs \ as {\tt\char`\\} instead of
  64721. % the literal character `\'.
  64722. -%
  64723. +%
  64724. @def@normalturnoffactive{%
  64725. @let\=@normalbackslash
  64726. @let"=@normaldoublequote
  64727. @@ -8947,6 +9231,8 @@
  64728. @let>=@normalgreater
  64729. @let+=@normalplus
  64730. @let$=@normaldollar %$ font-lock fix
  64731. + @markupsetuplqdefault
  64732. + @markupsetuprqdefault
  64733. @unsepspaces
  64734. }
  64735. @@ -8981,6 +9267,14 @@
  64736. @catcode`@# = @other
  64737. @catcode`@% = @other
  64738. +@c Finally, make ` and ' active, so that txicodequoteundirected and
  64739. +@c txicodequotebacktick work right in, e.g., @w{@code{`foo'}}. If we
  64740. +@c don't make ` and ' active, @code will not get them as active chars.
  64741. +@c Do this last of all since we use ` in the previous @catcode assignments.
  64742. +@catcode`@'=@active
  64743. +@catcode`@`=@active
  64744. +@markupsetuplqdefault
  64745. +@markupsetuprqdefault
  64746. @c Local variables:
  64747. @c eval: (add-hook 'write-file-hooks 'time-stamp)
  64748. diff -Nur gmp-4.3.2.orig/INSTALL gmp-4.3.2/INSTALL
  64749. --- gmp-4.3.2.orig/INSTALL 2010-01-07 21:09:02.000000000 +0100
  64750. +++ gmp-4.3.2/INSTALL 2011-02-16 19:23:20.993552556 +0100
  64751. @@ -1,73 +1,365 @@
  64752. -Copyright 1996, 1997, 1999, 2000, 2001, 2002, 2006 Free Software Foundation,
  64753. -Inc.
  64754. +Installation Instructions
  64755. +*************************
  64756. -This file is part of the GNU MP Library.
  64757. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  64758. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  64759. -The GNU MP Library is free software; you can redistribute it and/or modify
  64760. -it under the terms of the GNU Lesser General Public License as published by
  64761. -the Free Software Foundation; either version 3 of the License, or (at your
  64762. -option) any later version.
  64763. + Copying and distribution of this file, with or without modification,
  64764. +are permitted in any medium without royalty provided the copyright
  64765. +notice and this notice are preserved. This file is offered as-is,
  64766. +without warranty of any kind.
  64767. +
  64768. +Basic Installation
  64769. +==================
  64770. +
  64771. + Briefly, the shell commands `./configure; make; make install' should
  64772. +configure, build, and install this package. The following
  64773. +more-detailed instructions are generic; see the `README' file for
  64774. +instructions specific to this package. Some packages provide this
  64775. +`INSTALL' file but do not implement all of the features documented
  64776. +below. The lack of an optional feature in a given package is not
  64777. +necessarily a bug. More recommendations for GNU packages can be found
  64778. +in *note Makefile Conventions: (standards)Makefile Conventions.
  64779. +
  64780. + The `configure' shell script attempts to guess correct values for
  64781. +various system-dependent variables used during compilation. It uses
  64782. +those values to create a `Makefile' in each directory of the package.
  64783. +It may also create one or more `.h' files containing system-dependent
  64784. +definitions. Finally, it creates a shell script `config.status' that
  64785. +you can run in the future to recreate the current configuration, and a
  64786. +file `config.log' containing compiler output (useful mainly for
  64787. +debugging `configure').
  64788. +
  64789. + It can also use an optional file (typically called `config.cache'
  64790. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  64791. +the results of its tests to speed up reconfiguring. Caching is
  64792. +disabled by default to prevent problems with accidental use of stale
  64793. +cache files.
  64794. +
  64795. + If you need to do unusual things to compile the package, please try
  64796. +to figure out how `configure' could check whether to do them, and mail
  64797. +diffs or instructions to the address given in the `README' so they can
  64798. +be considered for the next release. If you are using the cache, and at
  64799. +some point `config.cache' contains results you don't want to keep, you
  64800. +may remove or edit it.
  64801. +
  64802. + The file `configure.ac' (or `configure.in') is used to create
  64803. +`configure' by a program called `autoconf'. You need `configure.ac' if
  64804. +you want to change it or regenerate `configure' using a newer version
  64805. +of `autoconf'.
  64806. +
  64807. + The simplest way to compile this package is:
  64808. +
  64809. + 1. `cd' to the directory containing the package's source code and type
  64810. + `./configure' to configure the package for your system.
  64811. +
  64812. + Running `configure' might take a while. While running, it prints
  64813. + some messages telling which features it is checking for.
  64814. +
  64815. + 2. Type `make' to compile the package.
  64816. +
  64817. + 3. Optionally, type `make check' to run any self-tests that come with
  64818. + the package, generally using the just-built uninstalled binaries.
  64819. +
  64820. + 4. Type `make install' to install the programs and any data files and
  64821. + documentation. When installing into a prefix owned by root, it is
  64822. + recommended that the package be configured and built as a regular
  64823. + user, and only the `make install' phase executed with root
  64824. + privileges.
  64825. +
  64826. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  64827. + this time using the binaries in their final installed location.
  64828. + This target does not install anything. Running this target as a
  64829. + regular user, particularly if the prior `make install' required
  64830. + root privileges, verifies that the installation completed
  64831. + correctly.
  64832. +
  64833. + 6. You can remove the program binaries and object files from the
  64834. + source code directory by typing `make clean'. To also remove the
  64835. + files that `configure' created (so you can compile the package for
  64836. + a different kind of computer), type `make distclean'. There is
  64837. + also a `make maintainer-clean' target, but that is intended mainly
  64838. + for the package's developers. If you use it, you may have to get
  64839. + all sorts of other programs in order to regenerate files that came
  64840. + with the distribution.
  64841. +
  64842. + 7. Often, you can also type `make uninstall' to remove the installed
  64843. + files again. In practice, not all packages have tested that
  64844. + uninstallation works correctly, even though it is required by the
  64845. + GNU Coding Standards.
  64846. +
  64847. + 8. Some packages, particularly those that use Automake, provide `make
  64848. + distcheck', which can by used by developers to test that all other
  64849. + targets like `make install' and `make uninstall' work correctly.
  64850. + This target is generally not run by end users.
  64851. +
  64852. +Compilers and Options
  64853. +=====================
  64854. +
  64855. + Some systems require unusual options for compilation or linking that
  64856. +the `configure' script does not know about. Run `./configure --help'
  64857. +for details on some of the pertinent environment variables.
  64858. +
  64859. + You can give `configure' initial values for configuration parameters
  64860. +by setting variables in the command line or in the environment. Here
  64861. +is an example:
  64862. +
  64863. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  64864. +
  64865. + *Note Defining Variables::, for more details.
  64866. +
  64867. +Compiling For Multiple Architectures
  64868. +====================================
  64869. +
  64870. + You can compile the package for more than one kind of computer at the
  64871. +same time, by placing the object files for each architecture in their
  64872. +own directory. To do this, you can use GNU `make'. `cd' to the
  64873. +directory where you want the object files and executables to go and run
  64874. +the `configure' script. `configure' automatically checks for the
  64875. +source code in the directory that `configure' is in and in `..'. This
  64876. +is known as a "VPATH" build.
  64877. +
  64878. + With a non-GNU `make', it is safer to compile the package for one
  64879. +architecture at a time in the source code directory. After you have
  64880. +installed the package for one architecture, use `make distclean' before
  64881. +reconfiguring for another architecture.
  64882. +
  64883. + On MacOS X 10.5 and later systems, you can create libraries and
  64884. +executables that work on multiple system types--known as "fat" or
  64885. +"universal" binaries--by specifying multiple `-arch' options to the
  64886. +compiler but only a single `-arch' option to the preprocessor. Like
  64887. +this:
  64888. +
  64889. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  64890. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  64891. + CPP="gcc -E" CXXCPP="g++ -E"
  64892. +
  64893. + This is not guaranteed to produce working output in all cases, you
  64894. +may have to build one architecture at a time and combine the results
  64895. +using the `lipo' tool if you have problems.
  64896. +
  64897. +Installation Names
  64898. +==================
  64899. +
  64900. + By default, `make install' installs the package's commands under
  64901. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  64902. +can specify an installation prefix other than `/usr/local' by giving
  64903. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  64904. +absolute file name.
  64905. +
  64906. + You can specify separate installation prefixes for
  64907. +architecture-specific files and architecture-independent files. If you
  64908. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  64909. +PREFIX as the prefix for installing programs and libraries.
  64910. +Documentation and other data files still use the regular prefix.
  64911. +
  64912. + In addition, if you use an unusual directory layout you can give
  64913. +options like `--bindir=DIR' to specify different values for particular
  64914. +kinds of files. Run `configure --help' for a list of the directories
  64915. +you can set and what kinds of files go in them. In general, the
  64916. +default for these options is expressed in terms of `${prefix}', so that
  64917. +specifying just `--prefix' will affect all of the other directory
  64918. +specifications that were not explicitly provided.
  64919. +
  64920. + The most portable way to affect installation locations is to pass the
  64921. +correct locations to `configure'; however, many packages provide one or
  64922. +both of the following shortcuts of passing variable assignments to the
  64923. +`make install' command line to change installation locations without
  64924. +having to reconfigure or recompile.
  64925. +
  64926. + The first method involves providing an override variable for each
  64927. +affected directory. For example, `make install
  64928. +prefix=/alternate/directory' will choose an alternate location for all
  64929. +directory configuration variables that were expressed in terms of
  64930. +`${prefix}'. Any directories that were specified during `configure',
  64931. +but not in terms of `${prefix}', must each be overridden at install
  64932. +time for the entire installation to be relocated. The approach of
  64933. +makefile variable overrides for each directory variable is required by
  64934. +the GNU Coding Standards, and ideally causes no recompilation.
  64935. +However, some platforms have known limitations with the semantics of
  64936. +shared libraries that end up requiring recompilation when using this
  64937. +method, particularly noticeable in packages that use GNU Libtool.
  64938. +
  64939. + The second method involves providing the `DESTDIR' variable. For
  64940. +example, `make install DESTDIR=/alternate/directory' will prepend
  64941. +`/alternate/directory' before all installation names. The approach of
  64942. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  64943. +does not work on platforms that have drive letters. On the other hand,
  64944. +it does better at avoiding recompilation issues, and works well even
  64945. +when some directory options were not specified in terms of `${prefix}'
  64946. +at `configure' time.
  64947. +
  64948. +Optional Features
  64949. +=================
  64950. +
  64951. + If the package supports it, you can cause programs to be installed
  64952. +with an extra prefix or suffix on their names by giving `configure' the
  64953. +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  64954. +
  64955. + Some packages pay attention to `--enable-FEATURE' options to
  64956. +`configure', where FEATURE indicates an optional part of the package.
  64957. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  64958. +is something like `gnu-as' or `x' (for the X Window System). The
  64959. +`README' should mention any `--enable-' and `--with-' options that the
  64960. +package recognizes.
  64961. +
  64962. + For packages that use the X Window System, `configure' can usually
  64963. +find the X include and library files automatically, but if it doesn't,
  64964. +you can use the `configure' options `--x-includes=DIR' and
  64965. +`--x-libraries=DIR' to specify their locations.
  64966. +
  64967. + Some packages offer the ability to configure how verbose the
  64968. +execution of `make' will be. For these packages, running `./configure
  64969. +--enable-silent-rules' sets the default to minimal output, which can be
  64970. +overridden with `make V=1'; while running `./configure
  64971. +--disable-silent-rules' sets the default to verbose, which can be
  64972. +overridden with `make V=0'.
  64973. +
  64974. +Particular systems
  64975. +==================
  64976. +
  64977. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  64978. +CC is not installed, it is recommended to use the following options in
  64979. +order to use an ANSI C compiler:
  64980. +
  64981. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  64982. +
  64983. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  64984. +
  64985. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  64986. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  64987. +a workaround. If GNU CC is not installed, it is therefore recommended
  64988. +to try
  64989. +
  64990. + ./configure CC="cc"
  64991. +
  64992. +and if that doesn't work, try
  64993. +
  64994. + ./configure CC="cc -nodtk"
  64995. +
  64996. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  64997. +directory contains several dysfunctional programs; working variants of
  64998. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  64999. +in your `PATH', put it _after_ `/usr/bin'.
  65000. +
  65001. + On Haiku, software installed for all users goes in `/boot/common',
  65002. +not `/usr/local'. It is recommended to use the following options:
  65003. +
  65004. + ./configure --prefix=/boot/common
  65005. +
  65006. +Specifying the System Type
  65007. +==========================
  65008. +
  65009. + There may be some features `configure' cannot figure out
  65010. +automatically, but needs to determine by the type of machine the package
  65011. +will run on. Usually, assuming the package is built to be run on the
  65012. +_same_ architectures, `configure' can figure that out, but if it prints
  65013. +a message saying it cannot guess the machine type, give it the
  65014. +`--build=TYPE' option. TYPE can either be a short name for the system
  65015. +type, such as `sun4', or a canonical name which has the form:
  65016. +
  65017. + CPU-COMPANY-SYSTEM
  65018. +
  65019. +where SYSTEM can have one of these forms:
  65020. +
  65021. + OS
  65022. + KERNEL-OS
  65023. +
  65024. + See the file `config.sub' for the possible values of each field. If
  65025. +`config.sub' isn't included in this package, then this package doesn't
  65026. +need to know the machine type.
  65027. +
  65028. + If you are _building_ compiler tools for cross-compiling, you should
  65029. +use the option `--target=TYPE' to select the type of system they will
  65030. +produce code for.
  65031. +
  65032. + If you want to _use_ a cross compiler, that generates code for a
  65033. +platform different from the build platform, you should specify the
  65034. +"host" platform (i.e., that on which the generated programs will
  65035. +eventually be run) with `--host=TYPE'.
  65036. +
  65037. +Sharing Defaults
  65038. +================
  65039. +
  65040. + If you want to set default values for `configure' scripts to share,
  65041. +you can create a site shell script called `config.site' that gives
  65042. +default values for variables like `CC', `cache_file', and `prefix'.
  65043. +`configure' looks for `PREFIX/share/config.site' if it exists, then
  65044. +`PREFIX/etc/config.site' if it exists. Or, you can set the
  65045. +`CONFIG_SITE' environment variable to the location of the site script.
  65046. +A warning: not all `configure' scripts look for a site script.
  65047. +
  65048. +Defining Variables
  65049. +==================
  65050. +
  65051. + Variables not defined in a site shell script can be set in the
  65052. +environment passed to `configure'. However, some packages may run
  65053. +configure again during the build, and the customized values of these
  65054. +variables may be lost. In order to avoid this problem, you should set
  65055. +them in the `configure' command line, using `VAR=value'. For example:
  65056. +
  65057. + ./configure CC=/usr/local2/bin/gcc
  65058. +
  65059. +causes the specified `gcc' to be used as the C compiler (unless it is
  65060. +overridden in the site shell script).
  65061. +
  65062. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  65063. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  65064. +
  65065. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  65066. +
  65067. +`configure' Invocation
  65068. +======================
  65069. +
  65070. + `configure' recognizes the following options to control how it
  65071. +operates.
  65072. +
  65073. +`--help'
  65074. +`-h'
  65075. + Print a summary of all of the options to `configure', and exit.
  65076. +
  65077. +`--help=short'
  65078. +`--help=recursive'
  65079. + Print a summary of the options unique to this package's
  65080. + `configure', and exit. The `short' variant lists options used
  65081. + only in the top level, while the `recursive' variant lists options
  65082. + also present in any nested packages.
  65083. +
  65084. +`--version'
  65085. +`-V'
  65086. + Print the version of Autoconf used to generate the `configure'
  65087. + script, and exit.
  65088. +
  65089. +`--cache-file=FILE'
  65090. + Enable the cache: use and save the results of the tests in FILE,
  65091. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  65092. + disable caching.
  65093. +
  65094. +`--config-cache'
  65095. +`-C'
  65096. + Alias for `--cache-file=config.cache'.
  65097. +
  65098. +`--quiet'
  65099. +`--silent'
  65100. +`-q'
  65101. + Do not print messages saying which checks are being made. To
  65102. + suppress all normal output, redirect it to `/dev/null' (any error
  65103. + messages will still be shown).
  65104. +
  65105. +`--srcdir=DIR'
  65106. + Look for the package's source code in directory DIR. Usually
  65107. + `configure' can determine that directory automatically.
  65108. +
  65109. +`--prefix=DIR'
  65110. + Use DIR as the installation prefix. *note Installation Names::
  65111. + for more details, including other options available for fine-tuning
  65112. + the installation locations.
  65113. +
  65114. +`--no-create'
  65115. +`-n'
  65116. + Run the configure checks, but stop before creating any output
  65117. + files.
  65118. -The GNU MP Library is distributed in the hope that it will be useful, but
  65119. -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  65120. -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  65121. -License for more details.
  65122. +`configure' also accepts some other, not widely useful, options. Run
  65123. +`configure --help' for more details.
  65124. -You should have received a copy of the GNU Lesser General Public License
  65125. -along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  65126. -
  65127. -
  65128. -
  65129. -
  65130. -
  65131. - INSTALLING GNU MP
  65132. - =================
  65133. -
  65134. -
  65135. -These instructions are only for the impatient. Others should read the install
  65136. -instructions in gmp.info. Use
  65137. -
  65138. - info -f ./gmp.info
  65139. -
  65140. -or in emacs
  65141. -
  65142. - C-u C-h i gmp.info
  65143. -
  65144. -
  65145. -Here are some brief instructions on how to install GMP. First you need to
  65146. -compile. Since you're impatient, try this
  65147. -
  65148. - ./configure
  65149. - make
  65150. - make check <= VERY IMPORTANT!!
  65151. -
  65152. -If that fails, or you care about the performance of GMP, you need to read the
  65153. -full instructions in the chapter "Installing GMP" in the manual.
  65154. -
  65155. -You should not skip the "make check" part; the risk that the GMP sources are
  65156. -miscompiled are unfortunately quite high. And if they indeed are, "make check"
  65157. -is very likely to trigger the compiler-introduced bug.
  65158. -
  65159. -Optionally, you can install the library with the following command. This will
  65160. -be to /usr/local by default, and you'll probably need to be "root" to be able
  65161. -to write there.
  65162. -
  65163. - make install
  65164. -
  65165. -To create the printable documentation from the texinfo source, type "make
  65166. -gmp.dvi" or "make gmp.ps". This requires various "tex" commands.
  65167. -
  65168. -If you are new to GMP, it is a good idea you at least read the chapter "GMP
  65169. -Basics" in the manual.
  65170. -
  65171. -Some known build problems are noted in the "Installing GMP" chapter of
  65172. -the manual. Please report other problems to gmp-bugs@gmplib.org.
  65173. -
  65174. -The GMP web site is located here: http://gmplib.org/.
  65175. -
  65176. -
  65177. -----------------
  65178. -Local variables:
  65179. -mode: text
  65180. -fill-column: 78
  65181. -End:
  65182. diff -Nur gmp-4.3.2.orig/install-sh gmp-4.3.2/install-sh
  65183. --- gmp-4.3.2.orig/install-sh 2010-01-07 21:09:02.000000000 +0100
  65184. +++ gmp-4.3.2/install-sh 2011-02-16 19:23:19.553562096 +0100
  65185. @@ -1,7 +1,7 @@
  65186. #!/bin/sh
  65187. # install - install a program, script, or datafile
  65188. -scriptversion=2004-04-01.17
  65189. +scriptversion=2009-04-28.21; # UTC
  65190. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  65191. # later released in X11R6 (xc/config/util/install.sh) with the
  65192. @@ -39,120 +39,157 @@
  65193. # when there is no Makefile.
  65194. #
  65195. # This script is compatible with the BSD install script, but was written
  65196. -# from scratch. It can only install one file at a time, a restriction
  65197. -# shared with many OS's install programs.
  65198. +# from scratch.
  65199. +
  65200. +nl='
  65201. +'
  65202. +IFS=" "" $nl"
  65203. # set DOITPROG to echo to test this script
  65204. # Don't use :- since 4.3BSD and earlier shells don't like it.
  65205. -doit="${DOITPROG-}"
  65206. +doit=${DOITPROG-}
  65207. +if test -z "$doit"; then
  65208. + doit_exec=exec
  65209. +else
  65210. + doit_exec=$doit
  65211. +fi
  65212. -# put in absolute paths if you don't have them in your path; or use env. vars.
  65213. +# Put in absolute file names if you don't have them in your path;
  65214. +# or use environment vars.
  65215. +
  65216. +chgrpprog=${CHGRPPROG-chgrp}
  65217. +chmodprog=${CHMODPROG-chmod}
  65218. +chownprog=${CHOWNPROG-chown}
  65219. +cmpprog=${CMPPROG-cmp}
  65220. +cpprog=${CPPROG-cp}
  65221. +mkdirprog=${MKDIRPROG-mkdir}
  65222. +mvprog=${MVPROG-mv}
  65223. +rmprog=${RMPROG-rm}
  65224. +stripprog=${STRIPPROG-strip}
  65225. +
  65226. +posix_glob='?'
  65227. +initialize_posix_glob='
  65228. + test "$posix_glob" != "?" || {
  65229. + if (set -f) 2>/dev/null; then
  65230. + posix_glob=
  65231. + else
  65232. + posix_glob=:
  65233. + fi
  65234. + }
  65235. +'
  65236. +
  65237. +posix_mkdir=
  65238. +
  65239. +# Desired mode of installed file.
  65240. +mode=0755
  65241. -mvprog="${MVPROG-mv}"
  65242. -cpprog="${CPPROG-cp}"
  65243. -chmodprog="${CHMODPROG-chmod}"
  65244. -chownprog="${CHOWNPROG-chown}"
  65245. -chgrpprog="${CHGRPPROG-chgrp}"
  65246. -stripprog="${STRIPPROG-strip}"
  65247. -rmprog="${RMPROG-rm}"
  65248. -mkdirprog="${MKDIRPROG-mkdir}"
  65249. -
  65250. -transformbasename=
  65251. -transform_arg=
  65252. -instcmd="$mvprog"
  65253. -chmodcmd="$chmodprog 0755"
  65254. -chowncmd=
  65255. chgrpcmd=
  65256. -stripcmd=
  65257. +chmodcmd=$chmodprog
  65258. +chowncmd=
  65259. +mvcmd=$mvprog
  65260. rmcmd="$rmprog -f"
  65261. -mvcmd="$mvprog"
  65262. +stripcmd=
  65263. +
  65264. src=
  65265. dst=
  65266. dir_arg=
  65267. +dst_arg=
  65268. -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE
  65269. +copy_on_change=false
  65270. +no_target_directory=
  65271. +
  65272. +usage="\
  65273. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  65274. or: $0 [OPTION]... SRCFILES... DIRECTORY
  65275. - or: $0 -d DIRECTORIES...
  65276. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  65277. + or: $0 [OPTION]... -d DIRECTORIES...
  65278. -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default.
  65279. -In the second, create the directory path DIR.
  65280. +In the 1st form, copy SRCFILE to DSTFILE.
  65281. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  65282. +In the 4th, create DIRECTORIES.
  65283. Options:
  65284. --b=TRANSFORMBASENAME
  65285. --c copy source (using $cpprog) instead of moving (using $mvprog).
  65286. --d create directories instead of installing files.
  65287. --g GROUP $chgrp installed files to GROUP.
  65288. --m MODE $chmod installed files to MODE.
  65289. --o USER $chown installed files to USER.
  65290. --s strip installed files (using $stripprog).
  65291. --t=TRANSFORM
  65292. ---help display this help and exit.
  65293. ---version display version info and exit.
  65294. + --help display this help and exit.
  65295. + --version display version info and exit.
  65296. +
  65297. + -c (ignored)
  65298. + -C install only if different (preserve the last data modification time)
  65299. + -d create directories instead of installing files.
  65300. + -g GROUP $chgrpprog installed files to GROUP.
  65301. + -m MODE $chmodprog installed files to MODE.
  65302. + -o USER $chownprog installed files to USER.
  65303. + -s $stripprog installed files.
  65304. + -t DIRECTORY install into DIRECTORY.
  65305. + -T report an error if DSTFILE is a directory.
  65306. Environment variables override the default commands:
  65307. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  65308. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  65309. + RMPROG STRIPPROG
  65310. "
  65311. -while test -n "$1"; do
  65312. +while test $# -ne 0; do
  65313. case $1 in
  65314. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  65315. - shift
  65316. - continue;;
  65317. -
  65318. - -c) instcmd=$cpprog
  65319. - shift
  65320. - continue;;
  65321. -
  65322. - -d) dir_arg=true
  65323. - shift
  65324. - continue;;
  65325. + -c) ;;
  65326. +
  65327. + -C) copy_on_change=true;;
  65328. +
  65329. + -d) dir_arg=true;;
  65330. -g) chgrpcmd="$chgrpprog $2"
  65331. - shift
  65332. - shift
  65333. - continue;;
  65334. -
  65335. - --help) echo "$usage"; exit 0;;
  65336. -
  65337. - -m) chmodcmd="$chmodprog $2"
  65338. - shift
  65339. - shift
  65340. - continue;;
  65341. + shift;;
  65342. +
  65343. + --help) echo "$usage"; exit $?;;
  65344. +
  65345. + -m) mode=$2
  65346. + case $mode in
  65347. + *' '* | *' '* | *'
  65348. +'* | *'*'* | *'?'* | *'['*)
  65349. + echo "$0: invalid mode: $mode" >&2
  65350. + exit 1;;
  65351. + esac
  65352. + shift;;
  65353. -o) chowncmd="$chownprog $2"
  65354. - shift
  65355. - shift
  65356. - continue;;
  65357. -
  65358. - -s) stripcmd=$stripprog
  65359. - shift
  65360. - continue;;
  65361. -
  65362. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  65363. - shift
  65364. - continue;;
  65365. -
  65366. - --version) echo "$0 $scriptversion"; exit 0;;
  65367. -
  65368. - *) # When -d is used, all remaining arguments are directories to create.
  65369. - test -n "$dir_arg" && break
  65370. - # Otherwise, the last argument is the destination. Remove it from $@.
  65371. - for arg
  65372. - do
  65373. - if test -n "$dstarg"; then
  65374. - # $@ is not empty: it contains at least $arg.
  65375. - set fnord "$@" "$dstarg"
  65376. - shift # fnord
  65377. - fi
  65378. - shift # arg
  65379. - dstarg=$arg
  65380. - done
  65381. + shift;;
  65382. +
  65383. + -s) stripcmd=$stripprog;;
  65384. +
  65385. + -t) dst_arg=$2
  65386. + shift;;
  65387. +
  65388. + -T) no_target_directory=true;;
  65389. +
  65390. + --version) echo "$0 $scriptversion"; exit $?;;
  65391. +
  65392. + --) shift
  65393. break;;
  65394. +
  65395. + -*) echo "$0: invalid option: $1" >&2
  65396. + exit 1;;
  65397. +
  65398. + *) break;;
  65399. esac
  65400. + shift
  65401. done
  65402. -if test -z "$1"; then
  65403. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  65404. + # When -d is used, all remaining arguments are directories to create.
  65405. + # When -t is used, the destination is already specified.
  65406. + # Otherwise, the last argument is the destination. Remove it from $@.
  65407. + for arg
  65408. + do
  65409. + if test -n "$dst_arg"; then
  65410. + # $@ is not empty: it contains at least $arg.
  65411. + set fnord "$@" "$dst_arg"
  65412. + shift # fnord
  65413. + fi
  65414. + shift # arg
  65415. + dst_arg=$arg
  65416. + done
  65417. +fi
  65418. +
  65419. +if test $# -eq 0; then
  65420. if test -z "$dir_arg"; then
  65421. echo "$0: no input file specified." >&2
  65422. exit 1
  65423. @@ -162,25 +199,48 @@
  65424. exit 0
  65425. fi
  65426. +if test -z "$dir_arg"; then
  65427. + trap '(exit $?); exit' 1 2 13 15
  65428. +
  65429. + # Set umask so as not to create temps with too-generous modes.
  65430. + # However, 'strip' requires both read and write access to temps.
  65431. + case $mode in
  65432. + # Optimize common cases.
  65433. + *644) cp_umask=133;;
  65434. + *755) cp_umask=22;;
  65435. +
  65436. + *[0-7])
  65437. + if test -z "$stripcmd"; then
  65438. + u_plus_rw=
  65439. + else
  65440. + u_plus_rw='% 200'
  65441. + fi
  65442. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  65443. + *)
  65444. + if test -z "$stripcmd"; then
  65445. + u_plus_rw=
  65446. + else
  65447. + u_plus_rw=,u+rw
  65448. + fi
  65449. + cp_umask=$mode$u_plus_rw;;
  65450. + esac
  65451. +fi
  65452. +
  65453. for src
  65454. do
  65455. # Protect names starting with `-'.
  65456. case $src in
  65457. - -*) src=./$src ;;
  65458. + -*) src=./$src;;
  65459. esac
  65460. if test -n "$dir_arg"; then
  65461. dst=$src
  65462. - src=
  65463. -
  65464. - if test -d "$dst"; then
  65465. - instcmd=:
  65466. - chmodcmd=
  65467. - else
  65468. - instcmd=$mkdirprog
  65469. - fi
  65470. + dstdir=$dst
  65471. + test -d "$dstdir"
  65472. + dstdir_status=$?
  65473. else
  65474. - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  65475. +
  65476. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  65477. # might cause directories to be created, which would be especially bad
  65478. # if $src (and thus $dsttmp) contains '*'.
  65479. if test ! -f "$src" && test ! -d "$src"; then
  65480. @@ -188,138 +248,273 @@
  65481. exit 1
  65482. fi
  65483. - if test -z "$dstarg"; then
  65484. + if test -z "$dst_arg"; then
  65485. echo "$0: no destination specified." >&2
  65486. exit 1
  65487. fi
  65488. - dst=$dstarg
  65489. + dst=$dst_arg
  65490. # Protect names starting with `-'.
  65491. case $dst in
  65492. - -*) dst=./$dst ;;
  65493. + -*) dst=./$dst;;
  65494. esac
  65495. # If destination is a directory, append the input filename; won't work
  65496. # if double slashes aren't ignored.
  65497. if test -d "$dst"; then
  65498. - dst=$dst/`basename "$src"`
  65499. + if test -n "$no_target_directory"; then
  65500. + echo "$0: $dst_arg: Is a directory" >&2
  65501. + exit 1
  65502. + fi
  65503. + dstdir=$dst
  65504. + dst=$dstdir/`basename "$src"`
  65505. + dstdir_status=0
  65506. + else
  65507. + # Prefer dirname, but fall back on a substitute if dirname fails.
  65508. + dstdir=`
  65509. + (dirname "$dst") 2>/dev/null ||
  65510. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  65511. + X"$dst" : 'X\(//\)[^/]' \| \
  65512. + X"$dst" : 'X\(//\)$' \| \
  65513. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  65514. + echo X"$dst" |
  65515. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  65516. + s//\1/
  65517. + q
  65518. + }
  65519. + /^X\(\/\/\)[^/].*/{
  65520. + s//\1/
  65521. + q
  65522. + }
  65523. + /^X\(\/\/\)$/{
  65524. + s//\1/
  65525. + q
  65526. + }
  65527. + /^X\(\/\).*/{
  65528. + s//\1/
  65529. + q
  65530. + }
  65531. + s/.*/./; q'
  65532. + `
  65533. +
  65534. + test -d "$dstdir"
  65535. + dstdir_status=$?
  65536. fi
  65537. fi
  65538. - # This sed command emulates the dirname command.
  65539. - dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  65540. -
  65541. - # Make sure that the destination directory exists.
  65542. + obsolete_mkdir_used=false
  65543. - # Skip lots of stat calls in the usual case.
  65544. - if test ! -d "$dstdir"; then
  65545. - defaultIFS='
  65546. - '
  65547. - IFS="${IFS-$defaultIFS}"
  65548. -
  65549. - oIFS=$IFS
  65550. - # Some sh's can't handle IFS=/ for some reason.
  65551. - IFS='%'
  65552. - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  65553. - IFS=$oIFS
  65554. + if test $dstdir_status != 0; then
  65555. + case $posix_mkdir in
  65556. + '')
  65557. + # Create intermediate dirs using mode 755 as modified by the umask.
  65558. + # This is like FreeBSD 'install' as of 1997-10-28.
  65559. + umask=`umask`
  65560. + case $stripcmd.$umask in
  65561. + # Optimize common cases.
  65562. + *[2367][2367]) mkdir_umask=$umask;;
  65563. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  65564. +
  65565. + *[0-7])
  65566. + mkdir_umask=`expr $umask + 22 \
  65567. + - $umask % 100 % 40 + $umask % 20 \
  65568. + - $umask % 10 % 4 + $umask % 2
  65569. + `;;
  65570. + *) mkdir_umask=$umask,go-w;;
  65571. + esac
  65572. +
  65573. + # With -d, create the new directory with the user-specified mode.
  65574. + # Otherwise, rely on $mkdir_umask.
  65575. + if test -n "$dir_arg"; then
  65576. + mkdir_mode=-m$mode
  65577. + else
  65578. + mkdir_mode=
  65579. + fi
  65580. +
  65581. + posix_mkdir=false
  65582. + case $umask in
  65583. + *[123567][0-7][0-7])
  65584. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  65585. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  65586. + ;;
  65587. + *)
  65588. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  65589. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  65590. +
  65591. + if (umask $mkdir_umask &&
  65592. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  65593. + then
  65594. + if test -z "$dir_arg" || {
  65595. + # Check for POSIX incompatibilities with -m.
  65596. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  65597. + # other-writeable bit of parent directory when it shouldn't.
  65598. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  65599. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  65600. + case $ls_ld_tmpdir in
  65601. + d????-?r-*) different_mode=700;;
  65602. + d????-?--*) different_mode=755;;
  65603. + *) false;;
  65604. + esac &&
  65605. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  65606. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  65607. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  65608. + }
  65609. + }
  65610. + then posix_mkdir=:
  65611. + fi
  65612. + rmdir "$tmpdir/d" "$tmpdir"
  65613. + else
  65614. + # Remove any dirs left behind by ancient mkdir implementations.
  65615. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  65616. + fi
  65617. + trap '' 0;;
  65618. + esac;;
  65619. + esac
  65620. - pathcomp=
  65621. + if
  65622. + $posix_mkdir && (
  65623. + umask $mkdir_umask &&
  65624. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  65625. + )
  65626. + then :
  65627. + else
  65628. - while test $# -ne 0 ; do
  65629. - pathcomp=$pathcomp$1
  65630. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  65631. + # or it failed possibly due to a race condition. Create the
  65632. + # directory the slow way, step by step, checking for races as we go.
  65633. +
  65634. + case $dstdir in
  65635. + /*) prefix='/';;
  65636. + -*) prefix='./';;
  65637. + *) prefix='';;
  65638. + esac
  65639. +
  65640. + eval "$initialize_posix_glob"
  65641. +
  65642. + oIFS=$IFS
  65643. + IFS=/
  65644. + $posix_glob set -f
  65645. + set fnord $dstdir
  65646. shift
  65647. - if test ! -d "$pathcomp"; then
  65648. - $mkdirprog "$pathcomp" || lasterr=$?
  65649. - # mkdir can fail with a `File exist' error in case several
  65650. - # install-sh are creating the directory concurrently. This
  65651. - # is OK.
  65652. - test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; }
  65653. + $posix_glob set +f
  65654. + IFS=$oIFS
  65655. +
  65656. + prefixes=
  65657. +
  65658. + for d
  65659. + do
  65660. + test -z "$d" && continue
  65661. +
  65662. + prefix=$prefix$d
  65663. + if test -d "$prefix"; then
  65664. + prefixes=
  65665. + else
  65666. + if $posix_mkdir; then
  65667. + (umask=$mkdir_umask &&
  65668. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  65669. + # Don't fail if two instances are running concurrently.
  65670. + test -d "$prefix" || exit 1
  65671. + else
  65672. + case $prefix in
  65673. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  65674. + *) qprefix=$prefix;;
  65675. + esac
  65676. + prefixes="$prefixes '$qprefix'"
  65677. + fi
  65678. + fi
  65679. + prefix=$prefix/
  65680. + done
  65681. +
  65682. + if test -n "$prefixes"; then
  65683. + # Don't fail if two instances are running concurrently.
  65684. + (umask $mkdir_umask &&
  65685. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  65686. + test -d "$dstdir" || exit 1
  65687. + obsolete_mkdir_used=true
  65688. fi
  65689. - pathcomp=$pathcomp/
  65690. - done
  65691. + fi
  65692. fi
  65693. if test -n "$dir_arg"; then
  65694. - $doit $instcmd "$dst" \
  65695. - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  65696. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  65697. - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  65698. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  65699. -
  65700. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  65701. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  65702. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  65703. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  65704. else
  65705. - # If we're going to rename the final executable, determine the name now.
  65706. - if test -z "$transformarg"; then
  65707. - dstfile=`basename "$dst"`
  65708. - else
  65709. - dstfile=`basename "$dst" $transformbasename \
  65710. - | sed $transformarg`$transformbasename
  65711. - fi
  65712. -
  65713. - # don't allow the sed command to completely eliminate the filename.
  65714. - test -z "$dstfile" && dstfile=`basename "$dst"`
  65715. # Make a couple of temp file names in the proper directory.
  65716. dsttmp=$dstdir/_inst.$$_
  65717. rmtmp=$dstdir/_rm.$$_
  65718. # Trap to clean up those temp files at exit.
  65719. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
  65720. - trap '(exit $?); exit' 1 2 13 15
  65721. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  65722. - # Move or copy the file name to the temp name
  65723. - $doit $instcmd "$src" "$dsttmp" &&
  65724. + # Copy the file name to the temp name.
  65725. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  65726. # and set any options; do chmod last to preserve setuid bits.
  65727. #
  65728. # If any of these fail, we abort the whole thing. If we want to
  65729. # ignore errors from any of these, just make sure not to ignore
  65730. - # errors from the above "$doit $instcmd $src $dsttmp" command.
  65731. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  65732. #
  65733. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  65734. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  65735. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  65736. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  65737. -
  65738. - # Now rename the file to the real destination.
  65739. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  65740. - || {
  65741. - # The rename failed, perhaps because mv can't rename something else
  65742. - # to itself, or perhaps because mv is so ancient that it does not
  65743. - # support -f.
  65744. -
  65745. - # Now remove or move aside any old file at destination location.
  65746. - # We try this two ways since rm can't unlink itself on some
  65747. - # systems and the destination file might be busy for other
  65748. - # reasons. In this case, the final cleanup might fail but the new
  65749. - # file should still install successfully.
  65750. - {
  65751. - if test -f "$dstdir/$dstfile"; then
  65752. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  65753. - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  65754. - || {
  65755. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  65756. - (exit 1); exit
  65757. - }
  65758. - else
  65759. - :
  65760. - fi
  65761. - } &&
  65762. -
  65763. - # Now rename the file to the real destination.
  65764. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  65765. - }
  65766. - }
  65767. - fi || { (exit 1); exit; }
  65768. -done
  65769. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  65770. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  65771. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  65772. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  65773. +
  65774. + # If -C, don't bother to copy if it wouldn't change the file.
  65775. + if $copy_on_change &&
  65776. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  65777. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  65778. +
  65779. + eval "$initialize_posix_glob" &&
  65780. + $posix_glob set -f &&
  65781. + set X $old && old=:$2:$4:$5:$6 &&
  65782. + set X $new && new=:$2:$4:$5:$6 &&
  65783. + $posix_glob set +f &&
  65784. +
  65785. + test "$old" = "$new" &&
  65786. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  65787. + then
  65788. + rm -f "$dsttmp"
  65789. + else
  65790. + # Rename the file to the real destination.
  65791. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  65792. -# The final little trick to "correctly" pass the exit status to the exit trap.
  65793. -{
  65794. - (exit 0); exit
  65795. -}
  65796. + # The rename failed, perhaps because mv can't rename something else
  65797. + # to itself, or perhaps because mv is so ancient that it does not
  65798. + # support -f.
  65799. + {
  65800. + # Now remove or move aside any old file at destination location.
  65801. + # We try this two ways since rm can't unlink itself on some
  65802. + # systems and the destination file might be busy for other
  65803. + # reasons. In this case, the final cleanup might fail but the new
  65804. + # file should still install successfully.
  65805. + {
  65806. + test ! -f "$dst" ||
  65807. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  65808. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  65809. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  65810. + } ||
  65811. + { echo "$0: cannot unlink or rename $dst" >&2
  65812. + (exit 1); exit 1
  65813. + }
  65814. + } &&
  65815. +
  65816. + # Now rename the file to the real destination.
  65817. + $doit $mvcmd "$dsttmp" "$dst"
  65818. + }
  65819. + fi || exit 1
  65820. +
  65821. + trap '' 0
  65822. + fi
  65823. +done
  65824. # Local variables:
  65825. # eval: (add-hook 'write-file-hooks 'time-stamp)
  65826. # time-stamp-start: "scriptversion="
  65827. # time-stamp-format: "%:y-%02m-%02d.%02H"
  65828. -# time-stamp-end: "$"
  65829. +# time-stamp-time-zone: "UTC"
  65830. +# time-stamp-end: "; # UTC"
  65831. # End:
  65832. diff -Nur gmp-4.3.2.orig/ltmain.sh gmp-4.3.2/ltmain.sh
  65833. --- gmp-4.3.2.orig/ltmain.sh 2010-01-07 21:09:02.000000000 +0100
  65834. +++ gmp-4.3.2/ltmain.sh 2011-02-16 19:23:13.883552653 +0100
  65835. @@ -1,52 +1,83 @@
  65836. -# ltmain.sh - Provide generalized library-building support services.
  65837. -# NOTE: Changing this file will not affect anything until you rerun configure.
  65838. -#
  65839. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  65840. -# 2007 Free Software Foundation, Inc.
  65841. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  65842. -#
  65843. -# This program is free software; you can redistribute it and/or modify
  65844. +# Generated from ltmain.m4sh.
  65845. +
  65846. +# ltmain.sh (GNU libtool) 2.2.6b
  65847. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  65848. +
  65849. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  65850. +# This is free software; see the source for copying conditions. There is NO
  65851. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  65852. +
  65853. +# GNU Libtool is free software; you can redistribute it and/or modify
  65854. # it under the terms of the GNU General Public License as published by
  65855. # the Free Software Foundation; either version 2 of the License, or
  65856. # (at your option) any later version.
  65857. #
  65858. -# This program is distributed in the hope that it will be useful, but
  65859. +# As a special exception to the GNU General Public License,
  65860. +# if you distribute this file as part of a program or library that
  65861. +# is built using GNU Libtool, you may include this file under the
  65862. +# same distribution terms that you use for the rest of that program.
  65863. +#
  65864. +# GNU Libtool is distributed in the hope that it will be useful, but
  65865. # WITHOUT ANY WARRANTY; without even the implied warranty of
  65866. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  65867. # General Public License for more details.
  65868. #
  65869. # You should have received a copy of the GNU General Public License
  65870. -# along with this program; if not, write to the Free Software
  65871. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65872. -#
  65873. -# As a special exception to the GNU General Public License, if you
  65874. -# distribute this file as part of a program that contains a
  65875. -# configuration script generated by Autoconf, you may include it under
  65876. -# the same distribution terms that you use for the rest of that program.
  65877. -
  65878. -basename="s,^.*/,,g"
  65879. -
  65880. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  65881. -# is ksh but when the shell is invoked as "sh" and the current value of
  65882. -# the _XPG environment variable is not equal to 1 (one), the special
  65883. -# positional parameter $0, within a function call, is the name of the
  65884. -# function.
  65885. -progpath="$0"
  65886. -
  65887. -# The name of this program:
  65888. -progname=`echo "$progpath" | $SED $basename`
  65889. -modename="$progname"
  65890. +# along with GNU Libtool; see the file COPYING. If not, a copy
  65891. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  65892. +# or obtained by writing to the Free Software Foundation, Inc.,
  65893. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65894. -# Global variables:
  65895. -EXIT_SUCCESS=0
  65896. -EXIT_FAILURE=1
  65897. +# Usage: $progname [OPTION]... [MODE-ARG]...
  65898. +#
  65899. +# Provide generalized library-building support services.
  65900. +#
  65901. +# --config show all configuration variables
  65902. +# --debug enable verbose shell tracing
  65903. +# -n, --dry-run display commands without modifying any files
  65904. +# --features display basic configuration information and exit
  65905. +# --mode=MODE use operation mode MODE
  65906. +# --preserve-dup-deps don't remove duplicate dependency libraries
  65907. +# --quiet, --silent don't print informational messages
  65908. +# --tag=TAG use configuration variables from tag TAG
  65909. +# -v, --verbose print informational messages (default)
  65910. +# --version print version information
  65911. +# -h, --help print short or long help message
  65912. +#
  65913. +# MODE must be one of the following:
  65914. +#
  65915. +# clean remove files from the build directory
  65916. +# compile compile a source file into a libtool object
  65917. +# execute automatically set library path, then run a program
  65918. +# finish complete the installation of libtool libraries
  65919. +# install install libraries or executables
  65920. +# link create a library or an executable
  65921. +# uninstall remove libraries from an installed directory
  65922. +#
  65923. +# MODE-ARGS vary depending on the MODE.
  65924. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  65925. +#
  65926. +# When reporting a bug, please describe a test case to reproduce it and
  65927. +# include the following information:
  65928. +#
  65929. +# host-triplet: $host
  65930. +# shell: $SHELL
  65931. +# compiler: $LTCC
  65932. +# compiler flags: $LTCFLAGS
  65933. +# linker: $LD (gnu? $with_gnu_ld)
  65934. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  65935. +# automake: $automake_version
  65936. +# autoconf: $autoconf_version
  65937. +#
  65938. +# Report bugs to <bug-libtool@gnu.org>.
  65939. PROGRAM=ltmain.sh
  65940. PACKAGE=libtool
  65941. -VERSION=1.5.24
  65942. -TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)"
  65943. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  65944. +TIMESTAMP=""
  65945. +package_revision=1.3017
  65946. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  65947. +# Be Bourne compatible
  65948. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  65949. emulate sh
  65950. NULLCMD=:
  65951. @@ -60,98 +91,261 @@
  65952. BIN_SH=xpg4; export BIN_SH # for Tru64
  65953. DUALCASE=1; export DUALCASE # for MKS sh
  65954. -# Check that we have a working $echo.
  65955. -if test "X$1" = X--no-reexec; then
  65956. - # Discard the --no-reexec flag, and continue.
  65957. - shift
  65958. -elif test "X$1" = X--fallback-echo; then
  65959. - # Avoid inline document here, it may be left over
  65960. - :
  65961. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  65962. - # Yippee, $echo works!
  65963. - :
  65964. -else
  65965. - # Restart under the correct shell, and then maybe $echo will work.
  65966. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  65967. -fi
  65968. -
  65969. -if test "X$1" = X--fallback-echo; then
  65970. - # used as fallback echo
  65971. - shift
  65972. - cat <<EOF
  65973. -$*
  65974. -EOF
  65975. - exit $EXIT_SUCCESS
  65976. -fi
  65977. -
  65978. -default_mode=
  65979. -help="Try \`$progname --help' for more information."
  65980. -magic="%%%MAGIC variable%%%"
  65981. -mkdir="mkdir"
  65982. -mv="mv -f"
  65983. -rm="rm -f"
  65984. -
  65985. -# Sed substitution that helps us do robust quoting. It backslashifies
  65986. -# metacharacters that are still active within double-quoted strings.
  65987. -Xsed="${SED}"' -e 1s/^X//'
  65988. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  65989. -# test EBCDIC or ASCII
  65990. -case `echo X|tr X '\101'` in
  65991. - A) # ASCII based system
  65992. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  65993. - SP2NL='tr \040 \012'
  65994. - NL2SP='tr \015\012 \040\040'
  65995. - ;;
  65996. - *) # EBCDIC based system
  65997. - SP2NL='tr \100 \n'
  65998. - NL2SP='tr \r\n \100\100'
  65999. - ;;
  66000. -esac
  66001. -
  66002. -# NLS nuisances.
  66003. +# NLS nuisances: We save the old values to restore during execute mode.
  66004. # Only set LANG and LC_ALL to C if already set.
  66005. # These must not be set unconditionally because not all systems understand
  66006. # e.g. LANG=C (notably SCO).
  66007. -# We save the old values to restore during execute mode.
  66008. -for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  66009. +lt_user_locale=
  66010. +lt_safe_locale=
  66011. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  66012. do
  66013. eval "if test \"\${$lt_var+set}\" = set; then
  66014. - save_$lt_var=\$$lt_var
  66015. - $lt_var=C
  66016. + save_$lt_var=\$$lt_var
  66017. + $lt_var=C
  66018. export $lt_var
  66019. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  66020. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  66021. fi"
  66022. done
  66023. +$lt_unset CDPATH
  66024. +
  66025. +
  66026. +
  66027. +
  66028. +
  66029. +: ${CP="cp -f"}
  66030. +: ${ECHO="echo"}
  66031. +: ${EGREP="/bin/grep -E"}
  66032. +: ${FGREP="/bin/grep -F"}
  66033. +: ${GREP="/bin/grep"}
  66034. +: ${LN_S="ln -s"}
  66035. +: ${MAKE="make"}
  66036. +: ${MKDIR="mkdir"}
  66037. +: ${MV="mv -f"}
  66038. +: ${RM="rm -f"}
  66039. +: ${SED="/bin/sed"}
  66040. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  66041. +: ${Xsed="$SED -e 1s/^X//"}
  66042. +
  66043. +# Global variables:
  66044. +EXIT_SUCCESS=0
  66045. +EXIT_FAILURE=1
  66046. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  66047. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  66048. +
  66049. +exit_status=$EXIT_SUCCESS
  66050. +
  66051. # Make sure IFS has a sensible default
  66052. lt_nl='
  66053. '
  66054. IFS=" $lt_nl"
  66055. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  66056. - $echo "$modename: not configured to build any kind of library" 1>&2
  66057. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  66058. - exit $EXIT_FAILURE
  66059. -fi
  66060. +dirname="s,/[^/]*$,,"
  66061. +basename="s,^.*/,,"
  66062. -# Global variables.
  66063. -mode=$default_mode
  66064. -nonopt=
  66065. -prev=
  66066. -prevopt=
  66067. -run=
  66068. -show="$echo"
  66069. -show_help=
  66070. -execute_dlfiles=
  66071. -duplicate_deps=no
  66072. -preserve_args=
  66073. -lo2o="s/\\.lo\$/.${objext}/"
  66074. -o2lo="s/\\.${objext}\$/.lo/"
  66075. -extracted_archives=
  66076. -extracted_serial=0
  66077. +# func_dirname_and_basename file append nondir_replacement
  66078. +# perform func_basename and func_dirname in a single function
  66079. +# call:
  66080. +# dirname: Compute the dirname of FILE. If nonempty,
  66081. +# add APPEND to the result, otherwise set result
  66082. +# to NONDIR_REPLACEMENT.
  66083. +# value returned in "$func_dirname_result"
  66084. +# basename: Compute filename of FILE.
  66085. +# value retuned in "$func_basename_result"
  66086. +# Implementation must be kept synchronized with func_dirname
  66087. +# and func_basename. For efficiency, we do not delegate to
  66088. +# those functions but instead duplicate the functionality here.
  66089. +func_dirname_and_basename ()
  66090. +{
  66091. + # Extract subdirectory from the argument.
  66092. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  66093. + if test "X$func_dirname_result" = "X${1}"; then
  66094. + func_dirname_result="${3}"
  66095. + else
  66096. + func_dirname_result="$func_dirname_result${2}"
  66097. + fi
  66098. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  66099. +}
  66100. +
  66101. +# Generated shell functions inserted here.
  66102. +
  66103. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  66104. +# is ksh but when the shell is invoked as "sh" and the current value of
  66105. +# the _XPG environment variable is not equal to 1 (one), the special
  66106. +# positional parameter $0, within a function call, is the name of the
  66107. +# function.
  66108. +progpath="$0"
  66109. +
  66110. +# The name of this program:
  66111. +# In the unlikely event $progname began with a '-', it would play havoc with
  66112. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  66113. +func_dirname_and_basename "$progpath"
  66114. +progname=$func_basename_result
  66115. +case $progname in
  66116. + -*) progname=./$progname ;;
  66117. +esac
  66118. +
  66119. +# Make sure we have an absolute path for reexecution:
  66120. +case $progpath in
  66121. + [\\/]*|[A-Za-z]:\\*) ;;
  66122. + *[\\/]*)
  66123. + progdir=$func_dirname_result
  66124. + progdir=`cd "$progdir" && pwd`
  66125. + progpath="$progdir/$progname"
  66126. + ;;
  66127. + *)
  66128. + save_IFS="$IFS"
  66129. + IFS=:
  66130. + for progdir in $PATH; do
  66131. + IFS="$save_IFS"
  66132. + test -x "$progdir/$progname" && break
  66133. + done
  66134. + IFS="$save_IFS"
  66135. + test -n "$progdir" || progdir=`pwd`
  66136. + progpath="$progdir/$progname"
  66137. + ;;
  66138. +esac
  66139. +
  66140. +# Sed substitution that helps us do robust quoting. It backslashifies
  66141. +# metacharacters that are still active within double-quoted strings.
  66142. +Xsed="${SED}"' -e 1s/^X//'
  66143. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  66144. +
  66145. +# Same as above, but do not quote variable references.
  66146. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  66147. +
  66148. +# Re-`\' parameter expansions in output of double_quote_subst that were
  66149. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  66150. +# in input to double_quote_subst, that '$' was protected from expansion.
  66151. +# Since each input `\' is now two `\'s, look for any number of runs of
  66152. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  66153. +bs='\\'
  66154. +bs2='\\\\'
  66155. +bs4='\\\\\\\\'
  66156. +dollar='\$'
  66157. +sed_double_backslash="\
  66158. + s/$bs4/&\\
  66159. +/g
  66160. + s/^$bs2$dollar/$bs&/
  66161. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  66162. + s/\n//g"
  66163. +
  66164. +# Standard options:
  66165. +opt_dry_run=false
  66166. +opt_help=false
  66167. +opt_quiet=false
  66168. +opt_verbose=false
  66169. +opt_warning=:
  66170. +
  66171. +# func_echo arg...
  66172. +# Echo program name prefixed message, along with the current mode
  66173. +# name if it has been set yet.
  66174. +func_echo ()
  66175. +{
  66176. + $ECHO "$progname${mode+: }$mode: $*"
  66177. +}
  66178. +
  66179. +# func_verbose arg...
  66180. +# Echo program name prefixed message in verbose mode only.
  66181. +func_verbose ()
  66182. +{
  66183. + $opt_verbose && func_echo ${1+"$@"}
  66184. +
  66185. + # A bug in bash halts the script if the last line of a function
  66186. + # fails when set -e is in force, so we need another command to
  66187. + # work around that:
  66188. + :
  66189. +}
  66190. +
  66191. +# func_error arg...
  66192. +# Echo program name prefixed message to standard error.
  66193. +func_error ()
  66194. +{
  66195. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  66196. +}
  66197. +
  66198. +# func_warning arg...
  66199. +# Echo program name prefixed warning message to standard error.
  66200. +func_warning ()
  66201. +{
  66202. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  66203. +
  66204. + # bash bug again:
  66205. + :
  66206. +}
  66207. +
  66208. +# func_fatal_error arg...
  66209. +# Echo program name prefixed message to standard error, and exit.
  66210. +func_fatal_error ()
  66211. +{
  66212. + func_error ${1+"$@"}
  66213. + exit $EXIT_FAILURE
  66214. +}
  66215. +
  66216. +# func_fatal_help arg...
  66217. +# Echo program name prefixed message to standard error, followed by
  66218. +# a help hint, and exit.
  66219. +func_fatal_help ()
  66220. +{
  66221. + func_error ${1+"$@"}
  66222. + func_fatal_error "$help"
  66223. +}
  66224. +help="Try \`$progname --help' for more information." ## default
  66225. +
  66226. +
  66227. +# func_grep expression filename
  66228. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  66229. +func_grep ()
  66230. +{
  66231. + $GREP "$1" "$2" >/dev/null 2>&1
  66232. +}
  66233. +
  66234. +
  66235. +# func_mkdir_p directory-path
  66236. +# Make sure the entire path to DIRECTORY-PATH is available.
  66237. +func_mkdir_p ()
  66238. +{
  66239. + my_directory_path="$1"
  66240. + my_dir_list=
  66241. +
  66242. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  66243. +
  66244. + # Protect directory names starting with `-'
  66245. + case $my_directory_path in
  66246. + -*) my_directory_path="./$my_directory_path" ;;
  66247. + esac
  66248. +
  66249. + # While some portion of DIR does not yet exist...
  66250. + while test ! -d "$my_directory_path"; do
  66251. + # ...make a list in topmost first order. Use a colon delimited
  66252. + # list incase some portion of path contains whitespace.
  66253. + my_dir_list="$my_directory_path:$my_dir_list"
  66254. +
  66255. + # If the last portion added has no slash in it, the list is done
  66256. + case $my_directory_path in */*) ;; *) break ;; esac
  66257. +
  66258. + # ...otherwise throw away the child directory and loop
  66259. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  66260. + done
  66261. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  66262. +
  66263. + save_mkdir_p_IFS="$IFS"; IFS=':'
  66264. + for my_dir in $my_dir_list; do
  66265. + IFS="$save_mkdir_p_IFS"
  66266. + # mkdir can fail with a `File exist' error if two processes
  66267. + # try to create one of the directories concurrently. Don't
  66268. + # stop in that case!
  66269. + $MKDIR "$my_dir" 2>/dev/null || :
  66270. + done
  66271. + IFS="$save_mkdir_p_IFS"
  66272. +
  66273. + # Bail out if we (or some other process) failed to create a directory.
  66274. + test -d "$my_directory_path" || \
  66275. + func_fatal_error "Failed to create \`$1'"
  66276. + fi
  66277. +}
  66278. -#####################################
  66279. -# Shell function definitions:
  66280. -# This seems to be the best place for them
  66281. # func_mktempdir [string]
  66282. # Make a temporary directory that won't clash with other running
  66283. @@ -161,7 +355,7 @@
  66284. {
  66285. my_template="${TMPDIR-/tmp}/${1-$progname}"
  66286. - if test "$run" = ":"; then
  66287. + if test "$opt_dry_run" = ":"; then
  66288. # Return a directory name, but don't create it in dry-run mode
  66289. my_tmpdir="${my_template}-$$"
  66290. else
  66291. @@ -170,526 +364,787 @@
  66292. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  66293. if test ! -d "$my_tmpdir"; then
  66294. - # Failing that, at least try and use $RANDOM to avoid a race
  66295. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  66296. + # Failing that, at least try and use $RANDOM to avoid a race
  66297. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  66298. - save_mktempdir_umask=`umask`
  66299. - umask 0077
  66300. - $mkdir "$my_tmpdir"
  66301. - umask $save_mktempdir_umask
  66302. + save_mktempdir_umask=`umask`
  66303. + umask 0077
  66304. + $MKDIR "$my_tmpdir"
  66305. + umask $save_mktempdir_umask
  66306. fi
  66307. # If we're not in dry-run mode, bomb out on failure
  66308. - test -d "$my_tmpdir" || {
  66309. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  66310. - exit $EXIT_FAILURE
  66311. - }
  66312. + test -d "$my_tmpdir" || \
  66313. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  66314. fi
  66315. - $echo "X$my_tmpdir" | $Xsed
  66316. + $ECHO "X$my_tmpdir" | $Xsed
  66317. }
  66318. -# func_win32_libid arg
  66319. -# return the library type of file 'arg'
  66320. -#
  66321. -# Need a lot of goo to handle *both* DLLs and import libs
  66322. -# Has to be a shell function in order to 'eat' the argument
  66323. -# that is supplied when $file_magic_command is called.
  66324. -func_win32_libid ()
  66325. +# func_quote_for_eval arg
  66326. +# Aesthetically quote ARG to be evaled later.
  66327. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  66328. +# is double-quoted, suitable for a subsequent eval, whereas
  66329. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  66330. +# which are still active within double quotes backslashified.
  66331. +func_quote_for_eval ()
  66332. {
  66333. - win32_libid_type="unknown"
  66334. - win32_fileres=`file -L $1 2>/dev/null`
  66335. - case $win32_fileres in
  66336. - *ar\ archive\ import\ library*) # definitely import
  66337. - win32_libid_type="x86 archive import"
  66338. - ;;
  66339. - *ar\ archive*) # could be an import, or static
  66340. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  66341. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  66342. - win32_nmres=`eval $NM -f posix -A $1 | \
  66343. - $SED -n -e '1,100{
  66344. - / I /{
  66345. - s,.*,import,
  66346. - p
  66347. - q
  66348. - }
  66349. - }'`
  66350. - case $win32_nmres in
  66351. - import*) win32_libid_type="x86 archive import";;
  66352. - *) win32_libid_type="x86 archive static";;
  66353. - esac
  66354. - fi
  66355. - ;;
  66356. - *DLL*)
  66357. - win32_libid_type="x86 DLL"
  66358. - ;;
  66359. - *executable*) # but shell scripts are "executable" too...
  66360. - case $win32_fileres in
  66361. - *MS\ Windows\ PE\ Intel*)
  66362. - win32_libid_type="x86 DLL"
  66363. - ;;
  66364. + case $1 in
  66365. + *[\\\`\"\$]*)
  66366. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  66367. + *)
  66368. + func_quote_for_eval_unquoted_result="$1" ;;
  66369. + esac
  66370. +
  66371. + case $func_quote_for_eval_unquoted_result in
  66372. + # Double-quote args containing shell metacharacters to delay
  66373. + # word splitting, command substitution and and variable
  66374. + # expansion for a subsequent eval.
  66375. + # Many Bourne shells cannot handle close brackets correctly
  66376. + # in scan sets, so we specify it separately.
  66377. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  66378. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  66379. + ;;
  66380. + *)
  66381. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  66382. esac
  66383. - ;;
  66384. - esac
  66385. - $echo $win32_libid_type
  66386. }
  66387. -# func_infer_tag arg
  66388. -# Infer tagged configuration to use if any are available and
  66389. -# if one wasn't chosen via the "--tag" command line option.
  66390. -# Only attempt this if the compiler in the base compile
  66391. -# command doesn't match the default compiler.
  66392. -# arg is usually of the form 'gcc ...'
  66393. -func_infer_tag ()
  66394. +# func_quote_for_expand arg
  66395. +# Aesthetically quote ARG to be evaled later; same as above,
  66396. +# but do not quote variable references.
  66397. +func_quote_for_expand ()
  66398. {
  66399. - if test -n "$available_tags" && test -z "$tagname"; then
  66400. - CC_quoted=
  66401. - for arg in $CC; do
  66402. - case $arg in
  66403. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  66404. - arg="\"$arg\""
  66405. - ;;
  66406. - esac
  66407. - CC_quoted="$CC_quoted $arg"
  66408. - done
  66409. - case $@ in
  66410. - # Blanks in the command may have been stripped by the calling shell,
  66411. - # but not from the CC environment variable when configure was run.
  66412. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  66413. - # Blanks at the start of $base_compile will cause this to fail
  66414. - # if we don't check for them as well.
  66415. + case $1 in
  66416. + *[\\\`\"]*)
  66417. + my_arg=`$ECHO "X$1" | $Xsed \
  66418. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  66419. *)
  66420. - for z in $available_tags; do
  66421. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  66422. - # Evaluate the configuration.
  66423. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  66424. - CC_quoted=
  66425. - for arg in $CC; do
  66426. - # Double-quote args containing other shell metacharacters.
  66427. - case $arg in
  66428. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  66429. - arg="\"$arg\""
  66430. - ;;
  66431. - esac
  66432. - CC_quoted="$CC_quoted $arg"
  66433. - done
  66434. - case "$@ " in
  66435. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  66436. - # The compiler in the base compile command matches
  66437. - # the one in the tagged configuration.
  66438. - # Assume this is the tagged configuration we want.
  66439. - tagname=$z
  66440. - break
  66441. - ;;
  66442. - esac
  66443. - fi
  66444. - done
  66445. - # If $tagname still isn't set, then no tagged configuration
  66446. - # was found and let the user know that the "--tag" command
  66447. - # line option must be used.
  66448. - if test -z "$tagname"; then
  66449. - $echo "$modename: unable to infer tagged configuration"
  66450. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  66451. - exit $EXIT_FAILURE
  66452. -# else
  66453. -# $echo "$modename: using $tagname tagged configuration"
  66454. - fi
  66455. - ;;
  66456. - esac
  66457. - fi
  66458. + my_arg="$1" ;;
  66459. + esac
  66460. +
  66461. + case $my_arg in
  66462. + # Double-quote args containing shell metacharacters to delay
  66463. + # word splitting and command substitution for a subsequent eval.
  66464. + # Many Bourne shells cannot handle close brackets correctly
  66465. + # in scan sets, so we specify it separately.
  66466. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  66467. + my_arg="\"$my_arg\""
  66468. + ;;
  66469. + esac
  66470. +
  66471. + func_quote_for_expand_result="$my_arg"
  66472. }
  66473. -# func_extract_an_archive dir oldlib
  66474. -func_extract_an_archive ()
  66475. +# func_show_eval cmd [fail_exp]
  66476. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  66477. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  66478. +# is given, then evaluate it.
  66479. +func_show_eval ()
  66480. {
  66481. - f_ex_an_ar_dir="$1"; shift
  66482. - f_ex_an_ar_oldlib="$1"
  66483. + my_cmd="$1"
  66484. + my_fail_exp="${2-:}"
  66485. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  66486. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  66487. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  66488. - :
  66489. - else
  66490. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  66491. - exit $EXIT_FAILURE
  66492. + ${opt_silent-false} || {
  66493. + func_quote_for_expand "$my_cmd"
  66494. + eval "func_echo $func_quote_for_expand_result"
  66495. + }
  66496. +
  66497. + if ${opt_dry_run-false}; then :; else
  66498. + eval "$my_cmd"
  66499. + my_status=$?
  66500. + if test "$my_status" -eq 0; then :; else
  66501. + eval "(exit $my_status); $my_fail_exp"
  66502. + fi
  66503. fi
  66504. }
  66505. -# func_extract_archives gentop oldlib ...
  66506. -func_extract_archives ()
  66507. +
  66508. +# func_show_eval_locale cmd [fail_exp]
  66509. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  66510. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  66511. +# is given, then evaluate it. Use the saved locale for evaluation.
  66512. +func_show_eval_locale ()
  66513. {
  66514. - my_gentop="$1"; shift
  66515. - my_oldlibs=${1+"$@"}
  66516. - my_oldobjs=""
  66517. - my_xlib=""
  66518. - my_xabs=""
  66519. - my_xdir=""
  66520. - my_status=""
  66521. + my_cmd="$1"
  66522. + my_fail_exp="${2-:}"
  66523. +
  66524. + ${opt_silent-false} || {
  66525. + func_quote_for_expand "$my_cmd"
  66526. + eval "func_echo $func_quote_for_expand_result"
  66527. + }
  66528. - $show "${rm}r $my_gentop"
  66529. - $run ${rm}r "$my_gentop"
  66530. - $show "$mkdir $my_gentop"
  66531. - $run $mkdir "$my_gentop"
  66532. - my_status=$?
  66533. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  66534. - exit $my_status
  66535. + if ${opt_dry_run-false}; then :; else
  66536. + eval "$lt_user_locale
  66537. + $my_cmd"
  66538. + my_status=$?
  66539. + eval "$lt_safe_locale"
  66540. + if test "$my_status" -eq 0; then :; else
  66541. + eval "(exit $my_status); $my_fail_exp"
  66542. + fi
  66543. fi
  66544. +}
  66545. - for my_xlib in $my_oldlibs; do
  66546. - # Extract the objects.
  66547. - case $my_xlib in
  66548. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  66549. - *) my_xabs=`pwd`"/$my_xlib" ;;
  66550. - esac
  66551. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  66552. - my_xlib_u=$my_xlib
  66553. - while :; do
  66554. - case " $extracted_archives " in
  66555. - *" $my_xlib_u "*)
  66556. - extracted_serial=`expr $extracted_serial + 1`
  66557. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  66558. - *) break ;;
  66559. - esac
  66560. - done
  66561. - extracted_archives="$extracted_archives $my_xlib_u"
  66562. - my_xdir="$my_gentop/$my_xlib_u"
  66563. - $show "${rm}r $my_xdir"
  66564. - $run ${rm}r "$my_xdir"
  66565. - $show "$mkdir $my_xdir"
  66566. - $run $mkdir "$my_xdir"
  66567. - exit_status=$?
  66568. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  66569. - exit $exit_status
  66570. - fi
  66571. - case $host in
  66572. - *-darwin*)
  66573. - $show "Extracting $my_xabs"
  66574. - # Do not bother doing anything if just a dry run
  66575. - if test -z "$run"; then
  66576. - darwin_orig_dir=`pwd`
  66577. - cd $my_xdir || exit $?
  66578. - darwin_archive=$my_xabs
  66579. - darwin_curdir=`pwd`
  66580. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  66581. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  66582. - if test -n "$darwin_arches"; then
  66583. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  66584. - darwin_arch=
  66585. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  66586. - for darwin_arch in $darwin_arches ; do
  66587. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  66588. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  66589. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  66590. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  66591. - cd "$darwin_curdir"
  66592. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  66593. - done # $darwin_arches
  66594. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  66595. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  66596. - darwin_file=
  66597. - darwin_files=
  66598. - for darwin_file in $darwin_filelist; do
  66599. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  66600. - lipo -create -output "$darwin_file" $darwin_files
  66601. - done # $darwin_filelist
  66602. - ${rm}r unfat-$$
  66603. - cd "$darwin_orig_dir"
  66604. - else
  66605. - cd "$darwin_orig_dir"
  66606. - func_extract_an_archive "$my_xdir" "$my_xabs"
  66607. - fi # $darwin_arches
  66608. - fi # $run
  66609. - ;;
  66610. - *)
  66611. - func_extract_an_archive "$my_xdir" "$my_xabs"
  66612. - ;;
  66613. - esac
  66614. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  66615. - done
  66616. - func_extract_archives_result="$my_oldobjs"
  66617. +
  66618. +
  66619. +
  66620. +# func_version
  66621. +# Echo version message to standard output and exit.
  66622. +func_version ()
  66623. +{
  66624. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  66625. + s/^# //
  66626. + s/^# *$//
  66627. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  66628. + p
  66629. + }' < "$progpath"
  66630. + exit $?
  66631. +}
  66632. +
  66633. +# func_usage
  66634. +# Echo short help message to standard output and exit.
  66635. +func_usage ()
  66636. +{
  66637. + $SED -n '/^# Usage:/,/# -h/ {
  66638. + s/^# //
  66639. + s/^# *$//
  66640. + s/\$progname/'$progname'/
  66641. + p
  66642. + }' < "$progpath"
  66643. + $ECHO
  66644. + $ECHO "run \`$progname --help | more' for full usage"
  66645. + exit $?
  66646. +}
  66647. +
  66648. +# func_help
  66649. +# Echo long help message to standard output and exit.
  66650. +func_help ()
  66651. +{
  66652. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  66653. + s/^# //
  66654. + s/^# *$//
  66655. + s*\$progname*'$progname'*
  66656. + s*\$host*'"$host"'*
  66657. + s*\$SHELL*'"$SHELL"'*
  66658. + s*\$LTCC*'"$LTCC"'*
  66659. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  66660. + s*\$LD*'"$LD"'*
  66661. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  66662. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  66663. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  66664. + p
  66665. + }' < "$progpath"
  66666. + exit $?
  66667. +}
  66668. +
  66669. +# func_missing_arg argname
  66670. +# Echo program name prefixed message to standard error and set global
  66671. +# exit_cmd.
  66672. +func_missing_arg ()
  66673. +{
  66674. + func_error "missing argument for $1"
  66675. + exit_cmd=exit
  66676. }
  66677. -# End of Shell function definitions
  66678. -#####################################
  66679. -# Darwin sucks
  66680. -eval std_shrext=\"$shrext_cmds\"
  66681. +exit_cmd=:
  66682. -disable_libs=no
  66683. -# Parse our command line options once, thoroughly.
  66684. -while test "$#" -gt 0
  66685. -do
  66686. - arg="$1"
  66687. +
  66688. +
  66689. +
  66690. +# Check that we have a working $ECHO.
  66691. +if test "X$1" = X--no-reexec; then
  66692. + # Discard the --no-reexec flag, and continue.
  66693. shift
  66694. +elif test "X$1" = X--fallback-echo; then
  66695. + # Avoid inline document here, it may be left over
  66696. + :
  66697. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  66698. + # Yippee, $ECHO works!
  66699. + :
  66700. +else
  66701. + # Restart under the correct shell, and then maybe $ECHO will work.
  66702. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  66703. +fi
  66704. - case $arg in
  66705. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  66706. - *) optarg= ;;
  66707. - esac
  66708. +if test "X$1" = X--fallback-echo; then
  66709. + # used as fallback echo
  66710. + shift
  66711. + cat <<EOF
  66712. +$*
  66713. +EOF
  66714. + exit $EXIT_SUCCESS
  66715. +fi
  66716. - # If the previous option needs an argument, assign it.
  66717. - if test -n "$prev"; then
  66718. - case $prev in
  66719. - execute_dlfiles)
  66720. - execute_dlfiles="$execute_dlfiles $arg"
  66721. - ;;
  66722. - tag)
  66723. - tagname="$arg"
  66724. - preserve_args="${preserve_args}=$arg"
  66725. -
  66726. - # Check whether tagname contains only valid characters
  66727. - case $tagname in
  66728. - *[!-_A-Za-z0-9,/]*)
  66729. - $echo "$progname: invalid tag name: $tagname" 1>&2
  66730. - exit $EXIT_FAILURE
  66731. - ;;
  66732. - esac
  66733. +magic="%%%MAGIC variable%%%"
  66734. +magic_exe="%%%MAGIC EXE variable%%%"
  66735. - case $tagname in
  66736. - CC)
  66737. - # Don't test for the "default" C tag, as we know, it's there, but
  66738. - # not specially marked.
  66739. - ;;
  66740. - *)
  66741. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  66742. - taglist="$taglist $tagname"
  66743. - # Evaluate the configuration.
  66744. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  66745. - else
  66746. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  66747. - fi
  66748. - ;;
  66749. - esac
  66750. - ;;
  66751. - *)
  66752. - eval "$prev=\$arg"
  66753. - ;;
  66754. - esac
  66755. +# Global variables.
  66756. +# $mode is unset
  66757. +nonopt=
  66758. +execute_dlfiles=
  66759. +preserve_args=
  66760. +lo2o="s/\\.lo\$/.${objext}/"
  66761. +o2lo="s/\\.${objext}\$/.lo/"
  66762. +extracted_archives=
  66763. +extracted_serial=0
  66764. - prev=
  66765. - prevopt=
  66766. - continue
  66767. - fi
  66768. +opt_dry_run=false
  66769. +opt_duplicate_deps=false
  66770. +opt_silent=false
  66771. +opt_debug=:
  66772. - # Have we seen a non-optional argument yet?
  66773. - case $arg in
  66774. - --help)
  66775. - show_help=yes
  66776. - ;;
  66777. +# If this variable is set in any of the actions, the command in it
  66778. +# will be execed at the end. This prevents here-documents from being
  66779. +# left over by shells.
  66780. +exec_cmd=
  66781. - --version)
  66782. - echo "\
  66783. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  66784. -
  66785. -Copyright (C) 2007 Free Software Foundation, Inc.
  66786. -This is free software; see the source for copying conditions. There is NO
  66787. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  66788. - exit $?
  66789. - ;;
  66790. +# func_fatal_configuration arg...
  66791. +# Echo program name prefixed message to standard error, followed by
  66792. +# a configuration failure hint, and exit.
  66793. +func_fatal_configuration ()
  66794. +{
  66795. + func_error ${1+"$@"}
  66796. + func_error "See the $PACKAGE documentation for more information."
  66797. + func_fatal_error "Fatal configuration error."
  66798. +}
  66799. +
  66800. +
  66801. +# func_config
  66802. +# Display the configuration for all the tags in this script.
  66803. +func_config ()
  66804. +{
  66805. + re_begincf='^# ### BEGIN LIBTOOL'
  66806. + re_endcf='^# ### END LIBTOOL'
  66807. +
  66808. + # Default configuration.
  66809. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  66810. - --config)
  66811. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  66812. # Now print the configurations for the tags.
  66813. for tagname in $taglist; do
  66814. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  66815. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  66816. done
  66817. - exit $?
  66818. - ;;
  66819. -
  66820. - --debug)
  66821. - $echo "$progname: enabling shell trace mode"
  66822. - set -x
  66823. - preserve_args="$preserve_args $arg"
  66824. - ;;
  66825. - --dry-run | -n)
  66826. - run=:
  66827. - ;;
  66828. + exit $?
  66829. +}
  66830. - --features)
  66831. - $echo "host: $host"
  66832. +# func_features
  66833. +# Display the features supported by this script.
  66834. +func_features ()
  66835. +{
  66836. + $ECHO "host: $host"
  66837. if test "$build_libtool_libs" = yes; then
  66838. - $echo "enable shared libraries"
  66839. + $ECHO "enable shared libraries"
  66840. else
  66841. - $echo "disable shared libraries"
  66842. + $ECHO "disable shared libraries"
  66843. fi
  66844. if test "$build_old_libs" = yes; then
  66845. - $echo "enable static libraries"
  66846. + $ECHO "enable static libraries"
  66847. else
  66848. - $echo "disable static libraries"
  66849. + $ECHO "disable static libraries"
  66850. fi
  66851. +
  66852. exit $?
  66853. - ;;
  66854. +}
  66855. - --finish) mode="finish" ;;
  66856. +# func_enable_tag tagname
  66857. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  66858. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  66859. +# variable here.
  66860. +func_enable_tag ()
  66861. +{
  66862. + # Global variable:
  66863. + tagname="$1"
  66864. +
  66865. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  66866. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  66867. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  66868. +
  66869. + # Validate tagname.
  66870. + case $tagname in
  66871. + *[!-_A-Za-z0-9,/]*)
  66872. + func_fatal_error "invalid tag name: $tagname"
  66873. + ;;
  66874. + esac
  66875. - --mode) prevopt="--mode" prev=mode ;;
  66876. - --mode=*) mode="$optarg" ;;
  66877. + # Don't test for the "default" C tag, as we know it's
  66878. + # there but not specially marked.
  66879. + case $tagname in
  66880. + CC) ;;
  66881. + *)
  66882. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  66883. + taglist="$taglist $tagname"
  66884. - --preserve-dup-deps) duplicate_deps="yes" ;;
  66885. + # Evaluate the configuration. Be careful to quote the path
  66886. + # and the sed script, to avoid splitting on whitespace, but
  66887. + # also don't use non-portable quotes within backquotes within
  66888. + # quotes we have to do it in 2 steps:
  66889. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  66890. + eval "$extractedcf"
  66891. + else
  66892. + func_error "ignoring unknown tag $tagname"
  66893. + fi
  66894. + ;;
  66895. + esac
  66896. +}
  66897. - --quiet | --silent)
  66898. - show=:
  66899. - preserve_args="$preserve_args $arg"
  66900. - ;;
  66901. +# Parse options once, thoroughly. This comes as soon as possible in
  66902. +# the script to make things like `libtool --version' happen quickly.
  66903. +{
  66904. - --tag)
  66905. - prevopt="--tag"
  66906. - prev=tag
  66907. - preserve_args="$preserve_args --tag"
  66908. + # Shorthand for --mode=foo, only valid as the first argument
  66909. + case $1 in
  66910. + clean|clea|cle|cl)
  66911. + shift; set dummy --mode clean ${1+"$@"}; shift
  66912. ;;
  66913. - --tag=*)
  66914. - set tag "$optarg" ${1+"$@"}
  66915. - shift
  66916. - prev=tag
  66917. - preserve_args="$preserve_args --tag"
  66918. + compile|compil|compi|comp|com|co|c)
  66919. + shift; set dummy --mode compile ${1+"$@"}; shift
  66920. ;;
  66921. -
  66922. - -dlopen)
  66923. - prevopt="-dlopen"
  66924. - prev=execute_dlfiles
  66925. + execute|execut|execu|exec|exe|ex|e)
  66926. + shift; set dummy --mode execute ${1+"$@"}; shift
  66927. ;;
  66928. -
  66929. - -*)
  66930. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  66931. - $echo "$help" 1>&2
  66932. - exit $EXIT_FAILURE
  66933. + finish|finis|fini|fin|fi|f)
  66934. + shift; set dummy --mode finish ${1+"$@"}; shift
  66935. ;;
  66936. -
  66937. - *)
  66938. - nonopt="$arg"
  66939. - break
  66940. + install|instal|insta|inst|ins|in|i)
  66941. + shift; set dummy --mode install ${1+"$@"}; shift
  66942. + ;;
  66943. + link|lin|li|l)
  66944. + shift; set dummy --mode link ${1+"$@"}; shift
  66945. + ;;
  66946. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  66947. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  66948. ;;
  66949. esac
  66950. -done
  66951. -if test -n "$prevopt"; then
  66952. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  66953. - $echo "$help" 1>&2
  66954. - exit $EXIT_FAILURE
  66955. -fi
  66956. + # Parse non-mode specific arguments:
  66957. + while test "$#" -gt 0; do
  66958. + opt="$1"
  66959. + shift
  66960. -case $disable_libs in
  66961. -no)
  66962. - ;;
  66963. -shared)
  66964. - build_libtool_libs=no
  66965. - build_old_libs=yes
  66966. - ;;
  66967. -static)
  66968. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  66969. - ;;
  66970. -esac
  66971. + case $opt in
  66972. + --config) func_config ;;
  66973. -# If this variable is set in any of the actions, the command in it
  66974. -# will be execed at the end. This prevents here-documents from being
  66975. -# left over by shells.
  66976. -exec_cmd=
  66977. + --debug) preserve_args="$preserve_args $opt"
  66978. + func_echo "enabling shell trace mode"
  66979. + opt_debug='set -x'
  66980. + $opt_debug
  66981. + ;;
  66982. -if test -z "$show_help"; then
  66983. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  66984. + execute_dlfiles="$execute_dlfiles $1"
  66985. + shift
  66986. + ;;
  66987. - # Infer the operation mode.
  66988. - if test -z "$mode"; then
  66989. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  66990. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  66991. - case $nonopt in
  66992. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  66993. - mode=link
  66994. - for arg
  66995. - do
  66996. - case $arg in
  66997. - -c)
  66998. - mode=compile
  66999. - break
  67000. - ;;
  67001. - esac
  67002. - done
  67003. - ;;
  67004. - *db | *dbx | *strace | *truss)
  67005. - mode=execute
  67006. - ;;
  67007. - *install*|cp|mv)
  67008. - mode=install
  67009. - ;;
  67010. - *rm)
  67011. - mode=uninstall
  67012. + --dry-run | -n) opt_dry_run=: ;;
  67013. + --features) func_features ;;
  67014. + --finish) mode="finish" ;;
  67015. +
  67016. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  67017. + case $1 in
  67018. + # Valid mode arguments:
  67019. + clean) ;;
  67020. + compile) ;;
  67021. + execute) ;;
  67022. + finish) ;;
  67023. + install) ;;
  67024. + link) ;;
  67025. + relink) ;;
  67026. + uninstall) ;;
  67027. +
  67028. + # Catch anything else as an error
  67029. + *) func_error "invalid argument for $opt"
  67030. + exit_cmd=exit
  67031. + break
  67032. + ;;
  67033. + esac
  67034. +
  67035. + mode="$1"
  67036. + shift
  67037. + ;;
  67038. +
  67039. + --preserve-dup-deps)
  67040. + opt_duplicate_deps=: ;;
  67041. +
  67042. + --quiet|--silent) preserve_args="$preserve_args $opt"
  67043. + opt_silent=:
  67044. + ;;
  67045. +
  67046. + --verbose| -v) preserve_args="$preserve_args $opt"
  67047. + opt_silent=false
  67048. + ;;
  67049. +
  67050. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  67051. + preserve_args="$preserve_args $opt $1"
  67052. + func_enable_tag "$1" # tagname is set here
  67053. + shift
  67054. + ;;
  67055. +
  67056. + # Separate optargs to long options:
  67057. + -dlopen=*|--mode=*|--tag=*)
  67058. + func_opt_split "$opt"
  67059. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  67060. + shift
  67061. + ;;
  67062. +
  67063. + -\?|-h) func_usage ;;
  67064. + --help) opt_help=: ;;
  67065. + --version) func_version ;;
  67066. +
  67067. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  67068. +
  67069. + *) nonopt="$opt"
  67070. + break
  67071. + ;;
  67072. + esac
  67073. + done
  67074. +
  67075. +
  67076. + case $host in
  67077. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  67078. + # don't eliminate duplications in $postdeps and $predeps
  67079. + opt_duplicate_compiler_generated_deps=:
  67080. ;;
  67081. *)
  67082. - # If we have no mode, but dlfiles were specified, then do execute mode.
  67083. - test -n "$execute_dlfiles" && mode=execute
  67084. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  67085. + ;;
  67086. + esac
  67087. - # Just use the default operation mode.
  67088. - if test -z "$mode"; then
  67089. - if test -n "$nonopt"; then
  67090. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  67091. - else
  67092. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  67093. - fi
  67094. + # Having warned about all mis-specified options, bail out if
  67095. + # anything was wrong.
  67096. + $exit_cmd $EXIT_FAILURE
  67097. +}
  67098. +
  67099. +# func_check_version_match
  67100. +# Ensure that we are using m4 macros, and libtool script from the same
  67101. +# release of libtool.
  67102. +func_check_version_match ()
  67103. +{
  67104. + if test "$package_revision" != "$macro_revision"; then
  67105. + if test "$VERSION" != "$macro_version"; then
  67106. + if test -z "$macro_version"; then
  67107. + cat >&2 <<_LT_EOF
  67108. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  67109. +$progname: definition of this LT_INIT comes from an older release.
  67110. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  67111. +$progname: and run autoconf again.
  67112. +_LT_EOF
  67113. + else
  67114. + cat >&2 <<_LT_EOF
  67115. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  67116. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  67117. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  67118. +$progname: and run autoconf again.
  67119. +_LT_EOF
  67120. fi
  67121. - ;;
  67122. - esac
  67123. + else
  67124. + cat >&2 <<_LT_EOF
  67125. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  67126. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  67127. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  67128. +$progname: of $PACKAGE $VERSION and run autoconf again.
  67129. +_LT_EOF
  67130. + fi
  67131. +
  67132. + exit $EXIT_MISMATCH
  67133. + fi
  67134. +}
  67135. +
  67136. +
  67137. +## ----------- ##
  67138. +## Main. ##
  67139. +## ----------- ##
  67140. +
  67141. +$opt_help || {
  67142. + # Sanity checks first:
  67143. + func_check_version_match
  67144. +
  67145. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  67146. + func_fatal_configuration "not configured to build any kind of library"
  67147. fi
  67148. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  67149. +
  67150. +
  67151. + # Darwin sucks
  67152. + eval std_shrext=\"$shrext_cmds\"
  67153. +
  67154. +
  67155. # Only execute mode is allowed to have -dlopen flags.
  67156. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  67157. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  67158. - $echo "$help" 1>&2
  67159. + func_error "unrecognized option \`-dlopen'"
  67160. + $ECHO "$help" 1>&2
  67161. exit $EXIT_FAILURE
  67162. fi
  67163. # Change the help message to a mode-specific one.
  67164. generic_help="$help"
  67165. - help="Try \`$modename --help --mode=$mode' for more information."
  67166. + help="Try \`$progname --help --mode=$mode' for more information."
  67167. +}
  67168. - # These modes are in order of execution frequency so that they run quickly.
  67169. - case $mode in
  67170. - # libtool compile mode
  67171. - compile)
  67172. - modename="$modename: compile"
  67173. - # Get the compilation command and the source file.
  67174. - base_compile=
  67175. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  67176. - suppress_opt=yes
  67177. - suppress_output=
  67178. - arg_mode=normal
  67179. - libobj=
  67180. - later=
  67181. - for arg
  67182. - do
  67183. - case $arg_mode in
  67184. - arg )
  67185. - # do not "continue". Instead, add this to base_compile
  67186. - lastarg="$arg"
  67187. - arg_mode=normal
  67188. - ;;
  67189. +# func_lalib_p file
  67190. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  67191. +# This function is only a basic sanity check; it will hardly flush out
  67192. +# determined imposters.
  67193. +func_lalib_p ()
  67194. +{
  67195. + test -f "$1" &&
  67196. + $SED -e 4q "$1" 2>/dev/null \
  67197. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  67198. +}
  67199. - target )
  67200. - libobj="$arg"
  67201. - arg_mode=normal
  67202. - continue
  67203. - ;;
  67204. +# func_lalib_unsafe_p file
  67205. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  67206. +# This function implements the same check as func_lalib_p without
  67207. +# resorting to external programs. To this end, it redirects stdin and
  67208. +# closes it afterwards, without saving the original file descriptor.
  67209. +# As a safety measure, use it only where a negative result would be
  67210. +# fatal anyway. Works if `file' does not exist.
  67211. +func_lalib_unsafe_p ()
  67212. +{
  67213. + lalib_p=no
  67214. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  67215. + for lalib_p_l in 1 2 3 4
  67216. + do
  67217. + read lalib_p_line
  67218. + case "$lalib_p_line" in
  67219. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  67220. + esac
  67221. + done
  67222. + exec 0<&5 5<&-
  67223. + fi
  67224. + test "$lalib_p" = yes
  67225. +}
  67226. - normal )
  67227. - # Accept any command-line options.
  67228. - case $arg in
  67229. - -o)
  67230. - if test -n "$libobj" ; then
  67231. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  67232. - exit $EXIT_FAILURE
  67233. - fi
  67234. - arg_mode=target
  67235. - continue
  67236. - ;;
  67237. +# func_ltwrapper_script_p file
  67238. +# True iff FILE is a libtool wrapper script
  67239. +# This function is only a basic sanity check; it will hardly flush out
  67240. +# determined imposters.
  67241. +func_ltwrapper_script_p ()
  67242. +{
  67243. + func_lalib_p "$1"
  67244. +}
  67245. - -static | -prefer-pic | -prefer-non-pic)
  67246. - later="$later $arg"
  67247. - continue
  67248. - ;;
  67249. +# func_ltwrapper_executable_p file
  67250. +# True iff FILE is a libtool wrapper executable
  67251. +# This function is only a basic sanity check; it will hardly flush out
  67252. +# determined imposters.
  67253. +func_ltwrapper_executable_p ()
  67254. +{
  67255. + func_ltwrapper_exec_suffix=
  67256. + case $1 in
  67257. + *.exe) ;;
  67258. + *) func_ltwrapper_exec_suffix=.exe ;;
  67259. + esac
  67260. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  67261. +}
  67262. +
  67263. +# func_ltwrapper_scriptname file
  67264. +# Assumes file is an ltwrapper_executable
  67265. +# uses $file to determine the appropriate filename for a
  67266. +# temporary ltwrapper_script.
  67267. +func_ltwrapper_scriptname ()
  67268. +{
  67269. + func_ltwrapper_scriptname_result=""
  67270. + if func_ltwrapper_executable_p "$1"; then
  67271. + func_dirname_and_basename "$1" "" "."
  67272. + func_stripname '' '.exe' "$func_basename_result"
  67273. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  67274. + fi
  67275. +}
  67276. +
  67277. +# func_ltwrapper_p file
  67278. +# True iff FILE is a libtool wrapper script or wrapper executable
  67279. +# This function is only a basic sanity check; it will hardly flush out
  67280. +# determined imposters.
  67281. +func_ltwrapper_p ()
  67282. +{
  67283. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  67284. +}
  67285. +
  67286. +
  67287. +# func_execute_cmds commands fail_cmd
  67288. +# Execute tilde-delimited COMMANDS.
  67289. +# If FAIL_CMD is given, eval that upon failure.
  67290. +# FAIL_CMD may read-access the current command in variable CMD!
  67291. +func_execute_cmds ()
  67292. +{
  67293. + $opt_debug
  67294. + save_ifs=$IFS; IFS='~'
  67295. + for cmd in $1; do
  67296. + IFS=$save_ifs
  67297. + eval cmd=\"$cmd\"
  67298. + func_show_eval "$cmd" "${2-:}"
  67299. + done
  67300. + IFS=$save_ifs
  67301. +}
  67302. +
  67303. +
  67304. +# func_source file
  67305. +# Source FILE, adding directory component if necessary.
  67306. +# Note that it is not necessary on cygwin/mingw to append a dot to
  67307. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  67308. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  67309. +# `FILE.' does not work on cygwin managed mounts.
  67310. +func_source ()
  67311. +{
  67312. + $opt_debug
  67313. + case $1 in
  67314. + */* | *\\*) . "$1" ;;
  67315. + *) . "./$1" ;;
  67316. + esac
  67317. +}
  67318. +
  67319. +
  67320. +# func_infer_tag arg
  67321. +# Infer tagged configuration to use if any are available and
  67322. +# if one wasn't chosen via the "--tag" command line option.
  67323. +# Only attempt this if the compiler in the base compile
  67324. +# command doesn't match the default compiler.
  67325. +# arg is usually of the form 'gcc ...'
  67326. +func_infer_tag ()
  67327. +{
  67328. + $opt_debug
  67329. + if test -n "$available_tags" && test -z "$tagname"; then
  67330. + CC_quoted=
  67331. + for arg in $CC; do
  67332. + func_quote_for_eval "$arg"
  67333. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  67334. + done
  67335. + case $@ in
  67336. + # Blanks in the command may have been stripped by the calling shell,
  67337. + # but not from the CC environment variable when configure was run.
  67338. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  67339. + # Blanks at the start of $base_compile will cause this to fail
  67340. + # if we don't check for them as well.
  67341. + *)
  67342. + for z in $available_tags; do
  67343. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  67344. + # Evaluate the configuration.
  67345. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  67346. + CC_quoted=
  67347. + for arg in $CC; do
  67348. + # Double-quote args containing other shell metacharacters.
  67349. + func_quote_for_eval "$arg"
  67350. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  67351. + done
  67352. + case "$@ " in
  67353. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  67354. + # The compiler in the base compile command matches
  67355. + # the one in the tagged configuration.
  67356. + # Assume this is the tagged configuration we want.
  67357. + tagname=$z
  67358. + break
  67359. + ;;
  67360. + esac
  67361. + fi
  67362. + done
  67363. + # If $tagname still isn't set, then no tagged configuration
  67364. + # was found and let the user know that the "--tag" command
  67365. + # line option must be used.
  67366. + if test -z "$tagname"; then
  67367. + func_echo "unable to infer tagged configuration"
  67368. + func_fatal_error "specify a tag with \`--tag'"
  67369. +# else
  67370. +# func_verbose "using $tagname tagged configuration"
  67371. + fi
  67372. + ;;
  67373. + esac
  67374. + fi
  67375. +}
  67376. +
  67377. +
  67378. +
  67379. +# func_write_libtool_object output_name pic_name nonpic_name
  67380. +# Create a libtool object file (analogous to a ".la" file),
  67381. +# but don't create it if we're doing a dry run.
  67382. +func_write_libtool_object ()
  67383. +{
  67384. + write_libobj=${1}
  67385. + if test "$build_libtool_libs" = yes; then
  67386. + write_lobj=\'${2}\'
  67387. + else
  67388. + write_lobj=none
  67389. + fi
  67390. +
  67391. + if test "$build_old_libs" = yes; then
  67392. + write_oldobj=\'${3}\'
  67393. + else
  67394. + write_oldobj=none
  67395. + fi
  67396. +
  67397. + $opt_dry_run || {
  67398. + cat >${write_libobj}T <<EOF
  67399. +# $write_libobj - a libtool object file
  67400. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  67401. +#
  67402. +# Please DO NOT delete this file!
  67403. +# It is necessary for linking the library.
  67404. +
  67405. +# Name of the PIC object.
  67406. +pic_object=$write_lobj
  67407. +
  67408. +# Name of the non-PIC object
  67409. +non_pic_object=$write_oldobj
  67410. +
  67411. +EOF
  67412. + $MV "${write_libobj}T" "${write_libobj}"
  67413. + }
  67414. +}
  67415. +
  67416. +# func_mode_compile arg...
  67417. +func_mode_compile ()
  67418. +{
  67419. + $opt_debug
  67420. + # Get the compilation command and the source file.
  67421. + base_compile=
  67422. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  67423. + suppress_opt=yes
  67424. + suppress_output=
  67425. + arg_mode=normal
  67426. + libobj=
  67427. + later=
  67428. + pie_flag=
  67429. +
  67430. + for arg
  67431. + do
  67432. + case $arg_mode in
  67433. + arg )
  67434. + # do not "continue". Instead, add this to base_compile
  67435. + lastarg="$arg"
  67436. + arg_mode=normal
  67437. + ;;
  67438. +
  67439. + target )
  67440. + libobj="$arg"
  67441. + arg_mode=normal
  67442. + continue
  67443. + ;;
  67444. +
  67445. + normal )
  67446. + # Accept any command-line options.
  67447. + case $arg in
  67448. + -o)
  67449. + test -n "$libobj" && \
  67450. + func_fatal_error "you cannot specify \`-o' more than once"
  67451. + arg_mode=target
  67452. + continue
  67453. + ;;
  67454. +
  67455. + -pie | -fpie | -fPIE)
  67456. + pie_flag="$pie_flag $arg"
  67457. + continue
  67458. + ;;
  67459. +
  67460. + -shared | -static | -prefer-pic | -prefer-non-pic)
  67461. + later="$later $arg"
  67462. + continue
  67463. + ;;
  67464. -no-suppress)
  67465. suppress_opt=no
  67466. @@ -702,31 +1157,25 @@
  67467. ;; # replaced later. I would guess that would be a bug.
  67468. -Wc,*)
  67469. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  67470. + func_stripname '-Wc,' '' "$arg"
  67471. + args=$func_stripname_result
  67472. lastarg=
  67473. save_ifs="$IFS"; IFS=','
  67474. - for arg in $args; do
  67475. + for arg in $args; do
  67476. IFS="$save_ifs"
  67477. -
  67478. - # Double-quote args containing other shell metacharacters.
  67479. - # Many Bourne shells cannot handle close brackets correctly
  67480. - # in scan sets, so we specify it separately.
  67481. - case $arg in
  67482. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  67483. - arg="\"$arg\""
  67484. - ;;
  67485. - esac
  67486. - lastarg="$lastarg $arg"
  67487. + func_quote_for_eval "$arg"
  67488. + lastarg="$lastarg $func_quote_for_eval_result"
  67489. done
  67490. IFS="$save_ifs"
  67491. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  67492. + func_stripname ' ' '' "$lastarg"
  67493. + lastarg=$func_stripname_result
  67494. # Add the arguments to base_compile.
  67495. base_compile="$base_compile $lastarg"
  67496. continue
  67497. ;;
  67498. - * )
  67499. + *)
  67500. # Accept the current argument as the source file.
  67501. # The previous "srcfile" becomes the current argument.
  67502. #
  67503. @@ -738,65 +1187,42 @@
  67504. esac # case $arg_mode
  67505. # Aesthetically quote the previous argument.
  67506. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  67507. -
  67508. - case $lastarg in
  67509. - # Double-quote args containing other shell metacharacters.
  67510. - # Many Bourne shells cannot handle close brackets correctly
  67511. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  67512. - # in scan sets (worked around with variable expansion),
  67513. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  67514. - # at all, so we specify them separately.
  67515. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  67516. - lastarg="\"$lastarg\""
  67517. - ;;
  67518. - esac
  67519. -
  67520. - base_compile="$base_compile $lastarg"
  67521. + func_quote_for_eval "$lastarg"
  67522. + base_compile="$base_compile $func_quote_for_eval_result"
  67523. done # for arg
  67524. case $arg_mode in
  67525. arg)
  67526. - $echo "$modename: you must specify an argument for -Xcompile"
  67527. - exit $EXIT_FAILURE
  67528. + func_fatal_error "you must specify an argument for -Xcompile"
  67529. ;;
  67530. target)
  67531. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  67532. - exit $EXIT_FAILURE
  67533. + func_fatal_error "you must specify a target with \`-o'"
  67534. ;;
  67535. *)
  67536. # Get the name of the library object.
  67537. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  67538. + test -z "$libobj" && {
  67539. + func_basename "$srcfile"
  67540. + libobj="$func_basename_result"
  67541. + }
  67542. ;;
  67543. esac
  67544. # Recognize several different file suffixes.
  67545. # If the user specifies -o file.o, it is replaced with file.lo
  67546. - xform='[cCFSifmso]'
  67547. case $libobj in
  67548. - *.ada) xform=ada ;;
  67549. - *.adb) xform=adb ;;
  67550. - *.ads) xform=ads ;;
  67551. - *.asm) xform=asm ;;
  67552. - *.c++) xform=c++ ;;
  67553. - *.cc) xform=cc ;;
  67554. - *.ii) xform=ii ;;
  67555. - *.class) xform=class ;;
  67556. - *.cpp) xform=cpp ;;
  67557. - *.cxx) xform=cxx ;;
  67558. - *.[fF][09]?) xform=[fF][09]. ;;
  67559. - *.for) xform=for ;;
  67560. - *.java) xform=java ;;
  67561. - *.obj) xform=obj ;;
  67562. + *.[cCFSifmso] | \
  67563. + *.ada | *.adb | *.ads | *.asm | \
  67564. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  67565. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  67566. + func_xform "$libobj"
  67567. + libobj=$func_xform_result
  67568. + ;;
  67569. esac
  67570. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  67571. -
  67572. case $libobj in
  67573. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  67574. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  67575. *)
  67576. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  67577. - exit $EXIT_FAILURE
  67578. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  67579. ;;
  67580. esac
  67581. @@ -804,7 +1230,15 @@
  67582. for arg in $later; do
  67583. case $arg in
  67584. + -shared)
  67585. + test "$build_libtool_libs" != yes && \
  67586. + func_fatal_configuration "can not build a shared library"
  67587. + build_old_libs=no
  67588. + continue
  67589. + ;;
  67590. +
  67591. -static)
  67592. + build_libtool_libs=no
  67593. build_old_libs=yes
  67594. continue
  67595. ;;
  67596. @@ -821,28 +1255,17 @@
  67597. esac
  67598. done
  67599. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  67600. - case $qlibobj in
  67601. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  67602. - qlibobj="\"$qlibobj\"" ;;
  67603. - esac
  67604. - test "X$libobj" != "X$qlibobj" \
  67605. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  67606. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  67607. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  67608. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  67609. - if test "X$xdir" = "X$obj"; then
  67610. - xdir=
  67611. - else
  67612. - xdir=$xdir/
  67613. - fi
  67614. + func_quote_for_eval "$libobj"
  67615. + test "X$libobj" != "X$func_quote_for_eval_result" \
  67616. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  67617. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  67618. + func_dirname_and_basename "$obj" "/" ""
  67619. + objname="$func_basename_result"
  67620. + xdir="$func_dirname_result"
  67621. lobj=${xdir}$objdir/$objname
  67622. - if test -z "$base_compile"; then
  67623. - $echo "$modename: you must specify a compilation command" 1>&2
  67624. - $echo "$help" 1>&2
  67625. - exit $EXIT_FAILURE
  67626. - fi
  67627. + test -z "$base_compile" && \
  67628. + func_fatal_help "you must specify a compilation command"
  67629. # Delete any leftover library objects.
  67630. if test "$build_old_libs" = yes; then
  67631. @@ -851,12 +1274,9 @@
  67632. removelist="$lobj $libobj ${libobj}T"
  67633. fi
  67634. - $run $rm $removelist
  67635. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  67636. -
  67637. # On Cygwin there's no "real" PIC flag so we must build both object types
  67638. case $host_os in
  67639. - cygwin* | mingw* | pw32* | os2*)
  67640. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  67641. pic_mode=default
  67642. ;;
  67643. esac
  67644. @@ -868,10 +1288,8 @@
  67645. # Calculate the filename of the output object if compiler does
  67646. # not support -o with -c
  67647. if test "$compiler_c_o" = no; then
  67648. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  67649. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  67650. lockfile="$output_obj.lock"
  67651. - removelist="$removelist $output_obj $lockfile"
  67652. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  67653. else
  67654. output_obj=
  67655. need_locks=no
  67656. @@ -881,13 +1299,13 @@
  67657. # Lock this critical section if it is needed
  67658. # We use this script file to make the link, it avoids creating a new file
  67659. if test "$need_locks" = yes; then
  67660. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  67661. - $show "Waiting for $lockfile to be removed"
  67662. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  67663. + func_echo "Waiting for $lockfile to be removed"
  67664. sleep 2
  67665. done
  67666. elif test "$need_locks" = warn; then
  67667. if test -f "$lockfile"; then
  67668. - $echo "\
  67669. + $ECHO "\
  67670. *** ERROR, $lockfile exists and contains:
  67671. `cat $lockfile 2>/dev/null`
  67672. @@ -898,34 +1316,22 @@
  67673. avoid parallel builds (make -j) in this platform, or get a better
  67674. compiler."
  67675. - $run $rm $removelist
  67676. + $opt_dry_run || $RM $removelist
  67677. exit $EXIT_FAILURE
  67678. fi
  67679. - $echo "$srcfile" > "$lockfile"
  67680. + removelist="$removelist $output_obj"
  67681. + $ECHO "$srcfile" > "$lockfile"
  67682. fi
  67683. + $opt_dry_run || $RM $removelist
  67684. + removelist="$removelist $lockfile"
  67685. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  67686. +
  67687. if test -n "$fix_srcfile_path"; then
  67688. eval srcfile=\"$fix_srcfile_path\"
  67689. fi
  67690. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  67691. - case $qsrcfile in
  67692. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  67693. - qsrcfile="\"$qsrcfile\"" ;;
  67694. - esac
  67695. -
  67696. - $run $rm "$libobj" "${libobj}T"
  67697. -
  67698. - # Create a libtool object file (analogous to a ".la" file),
  67699. - # but don't create it if we're doing a dry run.
  67700. - test -z "$run" && cat > ${libobj}T <<EOF
  67701. -# $libobj - a libtool object file
  67702. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  67703. -#
  67704. -# Please DO NOT delete this file!
  67705. -# It is necessary for linking the library.
  67706. -
  67707. -# Name of the PIC object.
  67708. -EOF
  67709. + func_quote_for_eval "$srcfile"
  67710. + qsrcfile=$func_quote_for_eval_result
  67711. # Only build a PIC object if we are building libtool libraries.
  67712. if test "$build_libtool_libs" = yes; then
  67713. @@ -939,32 +1345,19 @@
  67714. command="$base_compile $qsrcfile"
  67715. fi
  67716. - if test ! -d "${xdir}$objdir"; then
  67717. - $show "$mkdir ${xdir}$objdir"
  67718. - $run $mkdir ${xdir}$objdir
  67719. - exit_status=$?
  67720. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  67721. - exit $exit_status
  67722. - fi
  67723. - fi
  67724. + func_mkdir_p "$xdir$objdir"
  67725. if test -z "$output_obj"; then
  67726. # Place PIC objects in $objdir
  67727. command="$command -o $lobj"
  67728. fi
  67729. - $run $rm "$lobj" "$output_obj"
  67730. -
  67731. - $show "$command"
  67732. - if $run eval "$command"; then :
  67733. - else
  67734. - test -n "$output_obj" && $run $rm $removelist
  67735. - exit $EXIT_FAILURE
  67736. - fi
  67737. + func_show_eval_locale "$command" \
  67738. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  67739. if test "$need_locks" = warn &&
  67740. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  67741. - $echo "\
  67742. + $ECHO "\
  67743. *** ERROR, $lockfile contains:
  67744. `cat $lockfile 2>/dev/null`
  67745. @@ -978,45 +1371,27 @@
  67746. avoid parallel builds (make -j) in this platform, or get a better
  67747. compiler."
  67748. - $run $rm $removelist
  67749. + $opt_dry_run || $RM $removelist
  67750. exit $EXIT_FAILURE
  67751. fi
  67752. # Just move the object if needed, then go on to compile the next one
  67753. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  67754. - $show "$mv $output_obj $lobj"
  67755. - if $run $mv $output_obj $lobj; then :
  67756. - else
  67757. - error=$?
  67758. - $run $rm $removelist
  67759. - exit $error
  67760. - fi
  67761. + func_show_eval '$MV "$output_obj" "$lobj"' \
  67762. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  67763. fi
  67764. - # Append the name of the PIC object to the libtool object file.
  67765. - test -z "$run" && cat >> ${libobj}T <<EOF
  67766. -pic_object='$objdir/$objname'
  67767. -
  67768. -EOF
  67769. -
  67770. # Allow error messages only from the first compilation.
  67771. if test "$suppress_opt" = yes; then
  67772. - suppress_output=' >/dev/null 2>&1'
  67773. + suppress_output=' >/dev/null 2>&1'
  67774. fi
  67775. - else
  67776. - # No PIC object so indicate it doesn't exist in the libtool
  67777. - # object file.
  67778. - test -z "$run" && cat >> ${libobj}T <<EOF
  67779. -pic_object=none
  67780. -
  67781. -EOF
  67782. fi
  67783. # Only build a position-dependent object if we build old libraries.
  67784. if test "$build_old_libs" = yes; then
  67785. if test "$pic_mode" != yes; then
  67786. # Don't build PIC code
  67787. - command="$base_compile $qsrcfile"
  67788. + command="$base_compile $qsrcfile$pie_flag"
  67789. else
  67790. command="$base_compile $qsrcfile $pic_flag"
  67791. fi
  67792. @@ -1026,17 +1401,12 @@
  67793. # Suppress compiler output if we already did a PIC compilation.
  67794. command="$command$suppress_output"
  67795. - $run $rm "$obj" "$output_obj"
  67796. - $show "$command"
  67797. - if $run eval "$command"; then :
  67798. - else
  67799. - $run $rm $removelist
  67800. - exit $EXIT_FAILURE
  67801. - fi
  67802. + func_show_eval_locale "$command" \
  67803. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  67804. if test "$need_locks" = warn &&
  67805. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  67806. - $echo "\
  67807. + $ECHO "\
  67808. *** ERROR, $lockfile contains:
  67809. `cat $lockfile 2>/dev/null`
  67810. @@ -1050,5458 +1420,6784 @@
  67811. avoid parallel builds (make -j) in this platform, or get a better
  67812. compiler."
  67813. - $run $rm $removelist
  67814. + $opt_dry_run || $RM $removelist
  67815. exit $EXIT_FAILURE
  67816. fi
  67817. # Just move the object if needed
  67818. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  67819. - $show "$mv $output_obj $obj"
  67820. - if $run $mv $output_obj $obj; then :
  67821. - else
  67822. - error=$?
  67823. - $run $rm $removelist
  67824. - exit $error
  67825. - fi
  67826. + func_show_eval '$MV "$output_obj" "$obj"' \
  67827. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  67828. fi
  67829. -
  67830. - # Append the name of the non-PIC object the libtool object file.
  67831. - # Only append if the libtool object file exists.
  67832. - test -z "$run" && cat >> ${libobj}T <<EOF
  67833. -# Name of the non-PIC object.
  67834. -non_pic_object='$objname'
  67835. -
  67836. -EOF
  67837. - else
  67838. - # Append the name of the non-PIC object the libtool object file.
  67839. - # Only append if the libtool object file exists.
  67840. - test -z "$run" && cat >> ${libobj}T <<EOF
  67841. -# Name of the non-PIC object.
  67842. -non_pic_object=none
  67843. -
  67844. -EOF
  67845. fi
  67846. - $run $mv "${libobj}T" "${libobj}"
  67847. + $opt_dry_run || {
  67848. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  67849. - # Unlock the critical section if it was locked
  67850. - if test "$need_locks" != no; then
  67851. - $run $rm "$lockfile"
  67852. - fi
  67853. + # Unlock the critical section if it was locked
  67854. + if test "$need_locks" != no; then
  67855. + removelist=$lockfile
  67856. + $RM "$lockfile"
  67857. + fi
  67858. + }
  67859. exit $EXIT_SUCCESS
  67860. - ;;
  67861. +}
  67862. - # libtool link mode
  67863. - link | relink)
  67864. - modename="$modename: link"
  67865. - case $host in
  67866. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  67867. - # It is impossible to link a dll without this setting, and
  67868. - # we shouldn't force the makefile maintainer to figure out
  67869. - # which system we are compiling for in order to pass an extra
  67870. - # flag for every libtool invocation.
  67871. - # allow_undefined=no
  67872. +$opt_help || {
  67873. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  67874. +}
  67875. - # FIXME: Unfortunately, there are problems with the above when trying
  67876. - # to make a dll which has undefined symbols, in which case not
  67877. - # even a static library is built. For now, we need to specify
  67878. - # -no-undefined on the libtool link line when we can be certain
  67879. - # that all symbols are satisfied, otherwise we get a static library.
  67880. - allow_undefined=yes
  67881. - ;;
  67882. - *)
  67883. - allow_undefined=yes
  67884. - ;;
  67885. - esac
  67886. - libtool_args="$nonopt"
  67887. - base_compile="$nonopt $@"
  67888. - compile_command="$nonopt"
  67889. - finalize_command="$nonopt"
  67890. +func_mode_help ()
  67891. +{
  67892. + # We need to display help for each of the modes.
  67893. + case $mode in
  67894. + "")
  67895. + # Generic help is extracted from the usage comments
  67896. + # at the start of this file.
  67897. + func_help
  67898. + ;;
  67899. - compile_rpath=
  67900. - finalize_rpath=
  67901. - compile_shlibpath=
  67902. - finalize_shlibpath=
  67903. - convenience=
  67904. - old_convenience=
  67905. - deplibs=
  67906. - old_deplibs=
  67907. - compiler_flags=
  67908. - linker_flags=
  67909. - dllsearchpath=
  67910. - lib_search_path=`pwd`
  67911. - inst_prefix_dir=
  67912. + clean)
  67913. + $ECHO \
  67914. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  67915. - avoid_version=no
  67916. - dlfiles=
  67917. - dlprefiles=
  67918. - dlself=no
  67919. - export_dynamic=no
  67920. - export_symbols=
  67921. - export_symbols_regex=
  67922. - generated=
  67923. - libobjs=
  67924. - ltlibs=
  67925. - module=no
  67926. - no_install=no
  67927. - objs=
  67928. - non_pic_objects=
  67929. - notinst_path= # paths that contain not-installed libtool libraries
  67930. - precious_files_regex=
  67931. - prefer_static_libs=no
  67932. - preload=no
  67933. - prev=
  67934. - prevarg=
  67935. - release=
  67936. - rpath=
  67937. - xrpath=
  67938. - perm_rpath=
  67939. - temp_rpath=
  67940. - thread_safe=no
  67941. - vinfo=
  67942. - vinfo_number=no
  67943. +Remove files from the build directory.
  67944. - func_infer_tag $base_compile
  67945. +RM is the name of the program to use to delete files associated with each FILE
  67946. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  67947. +to RM.
  67948. - # We need to know -static, to get the right output filenames.
  67949. - for arg
  67950. - do
  67951. - case $arg in
  67952. - -all-static | -static | -static-libtool-libs)
  67953. - case $arg in
  67954. - -all-static)
  67955. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  67956. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  67957. - fi
  67958. - if test -n "$link_static_flag"; then
  67959. - dlopen_self=$dlopen_self_static
  67960. - fi
  67961. - prefer_static_libs=yes
  67962. - ;;
  67963. - -static)
  67964. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  67965. - dlopen_self=$dlopen_self_static
  67966. - fi
  67967. - prefer_static_libs=built
  67968. - ;;
  67969. - -static-libtool-libs)
  67970. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  67971. - dlopen_self=$dlopen_self_static
  67972. - fi
  67973. - prefer_static_libs=yes
  67974. - ;;
  67975. - esac
  67976. - build_libtool_libs=no
  67977. - build_old_libs=yes
  67978. - break
  67979. - ;;
  67980. - esac
  67981. - done
  67982. +If FILE is a libtool library, object or program, all the files associated
  67983. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  67984. + ;;
  67985. - # See if our shared archives depend on static archives.
  67986. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  67987. + compile)
  67988. + $ECHO \
  67989. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  67990. - # Go through the arguments, transforming them on the way.
  67991. - while test "$#" -gt 0; do
  67992. - arg="$1"
  67993. - shift
  67994. - case $arg in
  67995. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  67996. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  67997. - ;;
  67998. - *) qarg=$arg ;;
  67999. - esac
  68000. - libtool_args="$libtool_args $qarg"
  68001. +Compile a source file into a libtool library object.
  68002. - # If the previous option needs an argument, assign it.
  68003. - if test -n "$prev"; then
  68004. - case $prev in
  68005. - output)
  68006. - compile_command="$compile_command @OUTPUT@"
  68007. - finalize_command="$finalize_command @OUTPUT@"
  68008. - ;;
  68009. - esac
  68010. +This mode accepts the following additional options:
  68011. - case $prev in
  68012. - dlfiles|dlprefiles)
  68013. - if test "$preload" = no; then
  68014. - # Add the symbol object into the linking commands.
  68015. - compile_command="$compile_command @SYMFILE@"
  68016. - finalize_command="$finalize_command @SYMFILE@"
  68017. - preload=yes
  68018. - fi
  68019. - case $arg in
  68020. - *.la | *.lo) ;; # We handle these cases below.
  68021. - force)
  68022. - if test "$dlself" = no; then
  68023. - dlself=needless
  68024. - export_dynamic=yes
  68025. - fi
  68026. - prev=
  68027. - continue
  68028. - ;;
  68029. - self)
  68030. - if test "$prev" = dlprefiles; then
  68031. - dlself=yes
  68032. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  68033. - dlself=yes
  68034. - else
  68035. - dlself=needless
  68036. - export_dynamic=yes
  68037. - fi
  68038. - prev=
  68039. - continue
  68040. - ;;
  68041. - *)
  68042. - if test "$prev" = dlfiles; then
  68043. - dlfiles="$dlfiles $arg"
  68044. - else
  68045. - dlprefiles="$dlprefiles $arg"
  68046. - fi
  68047. - prev=
  68048. - continue
  68049. - ;;
  68050. - esac
  68051. - ;;
  68052. - expsyms)
  68053. - export_symbols="$arg"
  68054. - if test ! -f "$arg"; then
  68055. - $echo "$modename: symbol file \`$arg' does not exist"
  68056. - exit $EXIT_FAILURE
  68057. - fi
  68058. - prev=
  68059. - continue
  68060. - ;;
  68061. - expsyms_regex)
  68062. - export_symbols_regex="$arg"
  68063. - prev=
  68064. - continue
  68065. - ;;
  68066. - inst_prefix)
  68067. - inst_prefix_dir="$arg"
  68068. - prev=
  68069. - continue
  68070. - ;;
  68071. - precious_regex)
  68072. - precious_files_regex="$arg"
  68073. - prev=
  68074. - continue
  68075. - ;;
  68076. - release)
  68077. - release="-$arg"
  68078. - prev=
  68079. - continue
  68080. - ;;
  68081. - objectlist)
  68082. - if test -f "$arg"; then
  68083. - save_arg=$arg
  68084. - moreargs=
  68085. - for fil in `cat $save_arg`
  68086. - do
  68087. -# moreargs="$moreargs $fil"
  68088. - arg=$fil
  68089. - # A libtool-controlled object.
  68090. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  68091. + -no-suppress do not suppress compiler output for multiple passes
  68092. + -prefer-pic try to building PIC objects only
  68093. + -prefer-non-pic try to building non-PIC objects only
  68094. + -shared do not build a \`.o' file suitable for static linking
  68095. + -static only build a \`.o' file suitable for static linking
  68096. - # Check to see that this really is a libtool object.
  68097. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  68098. - pic_object=
  68099. - non_pic_object=
  68100. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  68101. +from the given SOURCEFILE.
  68102. - # Read the .lo file
  68103. - # If there is no directory component, then add one.
  68104. - case $arg in
  68105. - */* | *\\*) . $arg ;;
  68106. - *) . ./$arg ;;
  68107. - esac
  68108. +The output file name is determined by removing the directory component from
  68109. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  68110. +library object suffix, \`.lo'."
  68111. + ;;
  68112. - if test -z "$pic_object" || \
  68113. - test -z "$non_pic_object" ||
  68114. - test "$pic_object" = none && \
  68115. - test "$non_pic_object" = none; then
  68116. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  68117. - exit $EXIT_FAILURE
  68118. - fi
  68119. + execute)
  68120. + $ECHO \
  68121. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  68122. - # Extract subdirectory from the argument.
  68123. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  68124. - if test "X$xdir" = "X$arg"; then
  68125. - xdir=
  68126. - else
  68127. - xdir="$xdir/"
  68128. - fi
  68129. +Automatically set library path, then run a program.
  68130. - if test "$pic_object" != none; then
  68131. - # Prepend the subdirectory the object is found in.
  68132. - pic_object="$xdir$pic_object"
  68133. +This mode accepts the following additional options:
  68134. - if test "$prev" = dlfiles; then
  68135. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  68136. - dlfiles="$dlfiles $pic_object"
  68137. - prev=
  68138. - continue
  68139. - else
  68140. - # If libtool objects are unsupported, then we need to preload.
  68141. - prev=dlprefiles
  68142. - fi
  68143. - fi
  68144. + -dlopen FILE add the directory containing FILE to the library path
  68145. - # CHECK ME: I think I busted this. -Ossama
  68146. - if test "$prev" = dlprefiles; then
  68147. - # Preload the old-style object.
  68148. - dlprefiles="$dlprefiles $pic_object"
  68149. - prev=
  68150. - fi
  68151. +This mode sets the library path environment variable according to \`-dlopen'
  68152. +flags.
  68153. - # A PIC object.
  68154. - libobjs="$libobjs $pic_object"
  68155. - arg="$pic_object"
  68156. - fi
  68157. +If any of the ARGS are libtool executable wrappers, then they are translated
  68158. +into their corresponding uninstalled binary, and any of their required library
  68159. +directories are added to the library path.
  68160. - # Non-PIC object.
  68161. - if test "$non_pic_object" != none; then
  68162. - # Prepend the subdirectory the object is found in.
  68163. - non_pic_object="$xdir$non_pic_object"
  68164. +Then, COMMAND is executed, with ARGS as arguments."
  68165. + ;;
  68166. - # A standard non-PIC object
  68167. - non_pic_objects="$non_pic_objects $non_pic_object"
  68168. - if test -z "$pic_object" || test "$pic_object" = none ; then
  68169. - arg="$non_pic_object"
  68170. - fi
  68171. - else
  68172. - # If the PIC object exists, use it instead.
  68173. - # $xdir was prepended to $pic_object above.
  68174. - non_pic_object="$pic_object"
  68175. - non_pic_objects="$non_pic_objects $non_pic_object"
  68176. - fi
  68177. - else
  68178. - # Only an error if not doing a dry-run.
  68179. - if test -z "$run"; then
  68180. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  68181. - exit $EXIT_FAILURE
  68182. - else
  68183. - # Dry-run case.
  68184. + finish)
  68185. + $ECHO \
  68186. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  68187. - # Extract subdirectory from the argument.
  68188. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  68189. - if test "X$xdir" = "X$arg"; then
  68190. - xdir=
  68191. - else
  68192. - xdir="$xdir/"
  68193. - fi
  68194. +Complete the installation of libtool libraries.
  68195. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  68196. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  68197. - libobjs="$libobjs $pic_object"
  68198. - non_pic_objects="$non_pic_objects $non_pic_object"
  68199. - fi
  68200. - fi
  68201. - done
  68202. - else
  68203. - $echo "$modename: link input file \`$save_arg' does not exist"
  68204. - exit $EXIT_FAILURE
  68205. - fi
  68206. - arg=$save_arg
  68207. - prev=
  68208. - continue
  68209. - ;;
  68210. - rpath | xrpath)
  68211. - # We need an absolute path.
  68212. - case $arg in
  68213. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  68214. - *)
  68215. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  68216. - exit $EXIT_FAILURE
  68217. - ;;
  68218. - esac
  68219. - if test "$prev" = rpath; then
  68220. - case "$rpath " in
  68221. - *" $arg "*) ;;
  68222. - *) rpath="$rpath $arg" ;;
  68223. - esac
  68224. - else
  68225. - case "$xrpath " in
  68226. - *" $arg "*) ;;
  68227. - *) xrpath="$xrpath $arg" ;;
  68228. - esac
  68229. - fi
  68230. - prev=
  68231. - continue
  68232. - ;;
  68233. - xcompiler)
  68234. - compiler_flags="$compiler_flags $qarg"
  68235. - prev=
  68236. - compile_command="$compile_command $qarg"
  68237. - finalize_command="$finalize_command $qarg"
  68238. - continue
  68239. - ;;
  68240. - xlinker)
  68241. - linker_flags="$linker_flags $qarg"
  68242. - compiler_flags="$compiler_flags $wl$qarg"
  68243. - prev=
  68244. - compile_command="$compile_command $wl$qarg"
  68245. - finalize_command="$finalize_command $wl$qarg"
  68246. - continue
  68247. - ;;
  68248. - xcclinker)
  68249. - linker_flags="$linker_flags $qarg"
  68250. - compiler_flags="$compiler_flags $qarg"
  68251. - prev=
  68252. - compile_command="$compile_command $qarg"
  68253. - finalize_command="$finalize_command $qarg"
  68254. - continue
  68255. - ;;
  68256. - shrext)
  68257. - shrext_cmds="$arg"
  68258. - prev=
  68259. - continue
  68260. - ;;
  68261. - darwin_framework|darwin_framework_skip)
  68262. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  68263. - compile_command="$compile_command $arg"
  68264. - finalize_command="$finalize_command $arg"
  68265. - prev=
  68266. - continue
  68267. - ;;
  68268. - *)
  68269. - eval "$prev=\"\$arg\""
  68270. - prev=
  68271. - continue
  68272. - ;;
  68273. - esac
  68274. - fi # test -n "$prev"
  68275. -
  68276. - prevarg="$arg"
  68277. +Each LIBDIR is a directory that contains libtool libraries.
  68278. - case $arg in
  68279. - -all-static)
  68280. - if test -n "$link_static_flag"; then
  68281. - compile_command="$compile_command $link_static_flag"
  68282. - finalize_command="$finalize_command $link_static_flag"
  68283. - fi
  68284. - continue
  68285. - ;;
  68286. +The commands that this mode executes may require superuser privileges. Use
  68287. +the \`--dry-run' option if you just want to see what would be executed."
  68288. + ;;
  68289. - -allow-undefined)
  68290. - # FIXME: remove this flag sometime in the future.
  68291. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  68292. - continue
  68293. - ;;
  68294. + install)
  68295. + $ECHO \
  68296. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  68297. - -avoid-version)
  68298. - avoid_version=yes
  68299. - continue
  68300. - ;;
  68301. +Install executables or libraries.
  68302. - -dlopen)
  68303. - prev=dlfiles
  68304. - continue
  68305. - ;;
  68306. +INSTALL-COMMAND is the installation command. The first component should be
  68307. +either the \`install' or \`cp' program.
  68308. - -dlpreopen)
  68309. - prev=dlprefiles
  68310. - continue
  68311. - ;;
  68312. +The following components of INSTALL-COMMAND are treated specially:
  68313. - -export-dynamic)
  68314. - export_dynamic=yes
  68315. - continue
  68316. - ;;
  68317. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  68318. - -export-symbols | -export-symbols-regex)
  68319. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  68320. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  68321. - exit $EXIT_FAILURE
  68322. - fi
  68323. - if test "X$arg" = "X-export-symbols"; then
  68324. - prev=expsyms
  68325. - else
  68326. - prev=expsyms_regex
  68327. - fi
  68328. - continue
  68329. - ;;
  68330. +The rest of the components are interpreted as arguments to that command (only
  68331. +BSD-compatible install options are recognized)."
  68332. + ;;
  68333. - -framework|-arch|-isysroot)
  68334. - case " $CC " in
  68335. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  68336. - prev=darwin_framework_skip ;;
  68337. - *) compiler_flags="$compiler_flags $arg"
  68338. - prev=darwin_framework ;;
  68339. - esac
  68340. - compile_command="$compile_command $arg"
  68341. - finalize_command="$finalize_command $arg"
  68342. - continue
  68343. - ;;
  68344. + link)
  68345. + $ECHO \
  68346. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  68347. - -inst-prefix-dir)
  68348. - prev=inst_prefix
  68349. - continue
  68350. - ;;
  68351. +Link object files or libraries together to form another library, or to
  68352. +create an executable program.
  68353. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  68354. - # so, if we see these flags be careful not to treat them like -L
  68355. - -L[A-Z][A-Z]*:*)
  68356. - case $with_gcc/$host in
  68357. - no/*-*-irix* | /*-*-irix*)
  68358. - compile_command="$compile_command $arg"
  68359. - finalize_command="$finalize_command $arg"
  68360. - ;;
  68361. - esac
  68362. - continue
  68363. - ;;
  68364. +LINK-COMMAND is a command using the C compiler that you would use to create
  68365. +a program from several object files.
  68366. - -L*)
  68367. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  68368. - # We need an absolute path.
  68369. - case $dir in
  68370. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  68371. - *)
  68372. - absdir=`cd "$dir" && pwd`
  68373. - if test -z "$absdir"; then
  68374. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  68375. - absdir="$dir"
  68376. - notinst_path="$notinst_path $dir"
  68377. - fi
  68378. - dir="$absdir"
  68379. - ;;
  68380. - esac
  68381. - case "$deplibs " in
  68382. - *" -L$dir "*) ;;
  68383. - *)
  68384. - deplibs="$deplibs -L$dir"
  68385. - lib_search_path="$lib_search_path $dir"
  68386. - ;;
  68387. - esac
  68388. - case $host in
  68389. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  68390. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  68391. - case :$dllsearchpath: in
  68392. - *":$dir:"*) ;;
  68393. - *) dllsearchpath="$dllsearchpath:$dir";;
  68394. - esac
  68395. - case :$dllsearchpath: in
  68396. - *":$testbindir:"*) ;;
  68397. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  68398. - esac
  68399. - ;;
  68400. - esac
  68401. - continue
  68402. - ;;
  68403. +The following components of LINK-COMMAND are treated specially:
  68404. - -l*)
  68405. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  68406. - case $host in
  68407. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  68408. - # These systems don't actually have a C or math library (as such)
  68409. - continue
  68410. - ;;
  68411. - *-*-os2*)
  68412. - # These systems don't actually have a C library (as such)
  68413. - test "X$arg" = "X-lc" && continue
  68414. - ;;
  68415. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  68416. - # Do not include libc due to us having libc/libc_r.
  68417. - test "X$arg" = "X-lc" && continue
  68418. - ;;
  68419. - *-*-rhapsody* | *-*-darwin1.[012])
  68420. - # Rhapsody C and math libraries are in the System framework
  68421. - deplibs="$deplibs -framework System"
  68422. - continue
  68423. - ;;
  68424. - *-*-sco3.2v5* | *-*-sco5v6*)
  68425. - # Causes problems with __ctype
  68426. - test "X$arg" = "X-lc" && continue
  68427. - ;;
  68428. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  68429. - # Compiler inserts libc in the correct place for threads to work
  68430. - test "X$arg" = "X-lc" && continue
  68431. - ;;
  68432. - esac
  68433. - elif test "X$arg" = "X-lc_r"; then
  68434. - case $host in
  68435. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  68436. - # Do not include libc_r directly, use -pthread flag.
  68437. - continue
  68438. - ;;
  68439. - esac
  68440. - fi
  68441. - deplibs="$deplibs $arg"
  68442. - continue
  68443. - ;;
  68444. + -all-static do not do any dynamic linking at all
  68445. + -avoid-version do not add a version suffix if possible
  68446. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  68447. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  68448. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  68449. + -export-symbols SYMFILE
  68450. + try to export only the symbols listed in SYMFILE
  68451. + -export-symbols-regex REGEX
  68452. + try to export only the symbols matching REGEX
  68453. + -LLIBDIR search LIBDIR for required installed libraries
  68454. + -lNAME OUTPUT-FILE requires the installed library libNAME
  68455. + -module build a library that can dlopened
  68456. + -no-fast-install disable the fast-install mode
  68457. + -no-install link a not-installable executable
  68458. + -no-undefined declare that a library does not refer to external symbols
  68459. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  68460. + -objectlist FILE Use a list of object files found in FILE to specify objects
  68461. + -precious-files-regex REGEX
  68462. + don't remove output files matching REGEX
  68463. + -release RELEASE specify package release information
  68464. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  68465. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  68466. + -shared only do dynamic linking of libtool libraries
  68467. + -shrext SUFFIX override the standard shared library file extension
  68468. + -static do not do any dynamic linking of uninstalled libtool libraries
  68469. + -static-libtool-libs
  68470. + do not do any dynamic linking of libtool libraries
  68471. + -version-info CURRENT[:REVISION[:AGE]]
  68472. + specify library version info [each variable defaults to 0]
  68473. + -weak LIBNAME declare that the target provides the LIBNAME interface
  68474. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  68475. - # classes, name mangling, and exception handling.
  68476. - -model)
  68477. - compile_command="$compile_command $arg"
  68478. - compiler_flags="$compiler_flags $arg"
  68479. - finalize_command="$finalize_command $arg"
  68480. - prev=xcompiler
  68481. - continue
  68482. - ;;
  68483. +All other options (arguments beginning with \`-') are ignored.
  68484. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  68485. - compiler_flags="$compiler_flags $arg"
  68486. - compile_command="$compile_command $arg"
  68487. - finalize_command="$finalize_command $arg"
  68488. - continue
  68489. - ;;
  68490. +Every other argument is treated as a filename. Files ending in \`.la' are
  68491. +treated as uninstalled libtool libraries, other files are standard or library
  68492. +object files.
  68493. - -module)
  68494. - module=yes
  68495. - continue
  68496. - ;;
  68497. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  68498. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  68499. +required, except when creating a convenience library.
  68500. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  68501. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  68502. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  68503. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  68504. - # -q* pass through compiler args for the IBM compiler
  68505. - # -m* pass through architecture-specific compiler args for GCC
  68506. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  68507. - # compiler args for GCC
  68508. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  68509. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  68510. - # @file GCC response files
  68511. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  68512. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  68513. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  68514. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  68515. - # Unknown arguments in both finalize_command and compile_command need
  68516. - # to be aesthetically quoted because they are evaled later.
  68517. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  68518. - case $arg in
  68519. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  68520. - arg="\"$arg\""
  68521. - ;;
  68522. - esac
  68523. - compile_command="$compile_command $arg"
  68524. - finalize_command="$finalize_command $arg"
  68525. - compiler_flags="$compiler_flags $arg"
  68526. - continue
  68527. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  68528. +is created, otherwise an executable program is created."
  68529. ;;
  68530. - -shrext)
  68531. - prev=shrext
  68532. - continue
  68533. - ;;
  68534. -
  68535. - -no-fast-install)
  68536. - fast_install=no
  68537. - continue
  68538. - ;;
  68539. + uninstall)
  68540. + $ECHO \
  68541. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  68542. - -no-install)
  68543. - case $host in
  68544. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  68545. - # The PATH hackery in wrapper scripts is required on Windows
  68546. - # and Darwin in order for the loader to find any dlls it needs.
  68547. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  68548. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  68549. - fast_install=no
  68550. - ;;
  68551. - *) no_install=yes ;;
  68552. - esac
  68553. - continue
  68554. - ;;
  68555. +Remove libraries from an installation directory.
  68556. - -no-undefined)
  68557. - allow_undefined=no
  68558. - continue
  68559. - ;;
  68560. +RM is the name of the program to use to delete files associated with each FILE
  68561. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  68562. +to RM.
  68563. - -objectlist)
  68564. - prev=objectlist
  68565. - continue
  68566. - ;;
  68567. +If FILE is a libtool library, all the files associated with it are deleted.
  68568. +Otherwise, only FILE itself is deleted using RM."
  68569. + ;;
  68570. - -o) prev=output ;;
  68571. + *)
  68572. + func_fatal_help "invalid operation mode \`$mode'"
  68573. + ;;
  68574. + esac
  68575. - -precious-files-regex)
  68576. - prev=precious_regex
  68577. - continue
  68578. - ;;
  68579. + $ECHO
  68580. + $ECHO "Try \`$progname --help' for more information about other modes."
  68581. - -release)
  68582. - prev=release
  68583. - continue
  68584. - ;;
  68585. + exit $?
  68586. +}
  68587. - -rpath)
  68588. - prev=rpath
  68589. - continue
  68590. - ;;
  68591. + # Now that we've collected a possible --mode arg, show help if necessary
  68592. + $opt_help && func_mode_help
  68593. - -R)
  68594. - prev=xrpath
  68595. - continue
  68596. - ;;
  68597. - -R*)
  68598. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  68599. - # We need an absolute path.
  68600. - case $dir in
  68601. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  68602. - *)
  68603. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  68604. - exit $EXIT_FAILURE
  68605. - ;;
  68606. - esac
  68607. - case "$xrpath " in
  68608. - *" $dir "*) ;;
  68609. - *) xrpath="$xrpath $dir" ;;
  68610. - esac
  68611. - continue
  68612. - ;;
  68613. +# func_mode_execute arg...
  68614. +func_mode_execute ()
  68615. +{
  68616. + $opt_debug
  68617. + # The first argument is the command name.
  68618. + cmd="$nonopt"
  68619. + test -z "$cmd" && \
  68620. + func_fatal_help "you must specify a COMMAND"
  68621. - -static | -static-libtool-libs)
  68622. - # The effects of -static are defined in a previous loop.
  68623. - # We used to do the same as -all-static on platforms that
  68624. - # didn't have a PIC flag, but the assumption that the effects
  68625. - # would be equivalent was wrong. It would break on at least
  68626. - # Digital Unix and AIX.
  68627. - continue
  68628. - ;;
  68629. + # Handle -dlopen flags immediately.
  68630. + for file in $execute_dlfiles; do
  68631. + test -f "$file" \
  68632. + || func_fatal_help "\`$file' is not a file"
  68633. - -thread-safe)
  68634. - thread_safe=yes
  68635. - continue
  68636. - ;;
  68637. + dir=
  68638. + case $file in
  68639. + *.la)
  68640. + # Check to see that this really is a libtool archive.
  68641. + func_lalib_unsafe_p "$file" \
  68642. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  68643. - -version-info)
  68644. - prev=vinfo
  68645. - continue
  68646. - ;;
  68647. - -version-number)
  68648. - prev=vinfo
  68649. - vinfo_number=yes
  68650. - continue
  68651. - ;;
  68652. + # Read the libtool library.
  68653. + dlname=
  68654. + library_names=
  68655. + func_source "$file"
  68656. - -Wc,*)
  68657. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  68658. - arg=
  68659. - save_ifs="$IFS"; IFS=','
  68660. - for flag in $args; do
  68661. - IFS="$save_ifs"
  68662. - case $flag in
  68663. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  68664. - flag="\"$flag\""
  68665. - ;;
  68666. - esac
  68667. - arg="$arg $wl$flag"
  68668. - compiler_flags="$compiler_flags $flag"
  68669. - done
  68670. - IFS="$save_ifs"
  68671. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  68672. - ;;
  68673. + # Skip this library if it cannot be dlopened.
  68674. + if test -z "$dlname"; then
  68675. + # Warn if it was a shared library.
  68676. + test -n "$library_names" && \
  68677. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  68678. + continue
  68679. + fi
  68680. - -Wl,*)
  68681. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  68682. - arg=
  68683. - save_ifs="$IFS"; IFS=','
  68684. - for flag in $args; do
  68685. - IFS="$save_ifs"
  68686. - case $flag in
  68687. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  68688. - flag="\"$flag\""
  68689. - ;;
  68690. - esac
  68691. - arg="$arg $wl$flag"
  68692. - compiler_flags="$compiler_flags $wl$flag"
  68693. - linker_flags="$linker_flags $flag"
  68694. - done
  68695. - IFS="$save_ifs"
  68696. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  68697. - ;;
  68698. + func_dirname "$file" "" "."
  68699. + dir="$func_dirname_result"
  68700. - -Xcompiler)
  68701. - prev=xcompiler
  68702. - continue
  68703. + if test -f "$dir/$objdir/$dlname"; then
  68704. + dir="$dir/$objdir"
  68705. + else
  68706. + if test ! -f "$dir/$dlname"; then
  68707. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  68708. + fi
  68709. + fi
  68710. ;;
  68711. - -Xlinker)
  68712. - prev=xlinker
  68713. - continue
  68714. + *.lo)
  68715. + # Just add the directory containing the .lo file.
  68716. + func_dirname "$file" "" "."
  68717. + dir="$func_dirname_result"
  68718. ;;
  68719. - -XCClinker)
  68720. - prev=xcclinker
  68721. + *)
  68722. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  68723. continue
  68724. ;;
  68725. + esac
  68726. - # Some other compiler flag.
  68727. - -* | +*)
  68728. - # Unknown arguments in both finalize_command and compile_command need
  68729. - # to be aesthetically quoted because they are evaled later.
  68730. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  68731. - case $arg in
  68732. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  68733. - arg="\"$arg\""
  68734. - ;;
  68735. - esac
  68736. - ;;
  68737. -
  68738. - *.$objext)
  68739. - # A standard object.
  68740. - objs="$objs $arg"
  68741. - ;;
  68742. -
  68743. - *.lo)
  68744. - # A libtool-controlled object.
  68745. -
  68746. - # Check to see that this really is a libtool object.
  68747. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  68748. - pic_object=
  68749. - non_pic_object=
  68750. + # Get the absolute pathname.
  68751. + absdir=`cd "$dir" && pwd`
  68752. + test -n "$absdir" && dir="$absdir"
  68753. - # Read the .lo file
  68754. - # If there is no directory component, then add one.
  68755. - case $arg in
  68756. - */* | *\\*) . $arg ;;
  68757. - *) . ./$arg ;;
  68758. - esac
  68759. + # Now add the directory to shlibpath_var.
  68760. + if eval "test -z \"\$$shlibpath_var\""; then
  68761. + eval "$shlibpath_var=\"\$dir\""
  68762. + else
  68763. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  68764. + fi
  68765. + done
  68766. - if test -z "$pic_object" || \
  68767. - test -z "$non_pic_object" ||
  68768. - test "$pic_object" = none && \
  68769. - test "$non_pic_object" = none; then
  68770. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  68771. - exit $EXIT_FAILURE
  68772. - fi
  68773. + # This variable tells wrapper scripts just to set shlibpath_var
  68774. + # rather than running their programs.
  68775. + libtool_execute_magic="$magic"
  68776. - # Extract subdirectory from the argument.
  68777. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  68778. - if test "X$xdir" = "X$arg"; then
  68779. - xdir=
  68780. - else
  68781. - xdir="$xdir/"
  68782. - fi
  68783. + # Check if any of the arguments is a wrapper script.
  68784. + args=
  68785. + for file
  68786. + do
  68787. + case $file in
  68788. + -*) ;;
  68789. + *)
  68790. + # Do a test to see if this is really a libtool program.
  68791. + if func_ltwrapper_script_p "$file"; then
  68792. + func_source "$file"
  68793. + # Transform arg to wrapped name.
  68794. + file="$progdir/$program"
  68795. + elif func_ltwrapper_executable_p "$file"; then
  68796. + func_ltwrapper_scriptname "$file"
  68797. + func_source "$func_ltwrapper_scriptname_result"
  68798. + # Transform arg to wrapped name.
  68799. + file="$progdir/$program"
  68800. + fi
  68801. + ;;
  68802. + esac
  68803. + # Quote arguments (to preserve shell metacharacters).
  68804. + func_quote_for_eval "$file"
  68805. + args="$args $func_quote_for_eval_result"
  68806. + done
  68807. - if test "$pic_object" != none; then
  68808. - # Prepend the subdirectory the object is found in.
  68809. - pic_object="$xdir$pic_object"
  68810. + if test "X$opt_dry_run" = Xfalse; then
  68811. + if test -n "$shlibpath_var"; then
  68812. + # Export the shlibpath_var.
  68813. + eval "export $shlibpath_var"
  68814. + fi
  68815. - if test "$prev" = dlfiles; then
  68816. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  68817. - dlfiles="$dlfiles $pic_object"
  68818. - prev=
  68819. - continue
  68820. + # Restore saved environment variables
  68821. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  68822. + do
  68823. + eval "if test \"\${save_$lt_var+set}\" = set; then
  68824. + $lt_var=\$save_$lt_var; export $lt_var
  68825. else
  68826. - # If libtool objects are unsupported, then we need to preload.
  68827. - prev=dlprefiles
  68828. - fi
  68829. - fi
  68830. + $lt_unset $lt_var
  68831. + fi"
  68832. + done
  68833. - # CHECK ME: I think I busted this. -Ossama
  68834. - if test "$prev" = dlprefiles; then
  68835. - # Preload the old-style object.
  68836. - dlprefiles="$dlprefiles $pic_object"
  68837. - prev=
  68838. - fi
  68839. + # Now prepare to actually exec the command.
  68840. + exec_cmd="\$cmd$args"
  68841. + else
  68842. + # Display what would be done.
  68843. + if test -n "$shlibpath_var"; then
  68844. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  68845. + $ECHO "export $shlibpath_var"
  68846. + fi
  68847. + $ECHO "$cmd$args"
  68848. + exit $EXIT_SUCCESS
  68849. + fi
  68850. +}
  68851. - # A PIC object.
  68852. - libobjs="$libobjs $pic_object"
  68853. - arg="$pic_object"
  68854. - fi
  68855. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  68856. - # Non-PIC object.
  68857. - if test "$non_pic_object" != none; then
  68858. - # Prepend the subdirectory the object is found in.
  68859. - non_pic_object="$xdir$non_pic_object"
  68860. - # A standard non-PIC object
  68861. - non_pic_objects="$non_pic_objects $non_pic_object"
  68862. - if test -z "$pic_object" || test "$pic_object" = none ; then
  68863. - arg="$non_pic_object"
  68864. - fi
  68865. - else
  68866. - # If the PIC object exists, use it instead.
  68867. - # $xdir was prepended to $pic_object above.
  68868. - non_pic_object="$pic_object"
  68869. - non_pic_objects="$non_pic_objects $non_pic_object"
  68870. - fi
  68871. - else
  68872. - # Only an error if not doing a dry-run.
  68873. - if test -z "$run"; then
  68874. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  68875. - exit $EXIT_FAILURE
  68876. - else
  68877. - # Dry-run case.
  68878. +# func_mode_finish arg...
  68879. +func_mode_finish ()
  68880. +{
  68881. + $opt_debug
  68882. + libdirs="$nonopt"
  68883. + admincmds=
  68884. - # Extract subdirectory from the argument.
  68885. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  68886. - if test "X$xdir" = "X$arg"; then
  68887. - xdir=
  68888. - else
  68889. - xdir="$xdir/"
  68890. - fi
  68891. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  68892. + for dir
  68893. + do
  68894. + libdirs="$libdirs $dir"
  68895. + done
  68896. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  68897. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  68898. - libobjs="$libobjs $pic_object"
  68899. - non_pic_objects="$non_pic_objects $non_pic_object"
  68900. - fi
  68901. + for libdir in $libdirs; do
  68902. + if test -n "$finish_cmds"; then
  68903. + # Do each command in the finish commands.
  68904. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  68905. +'"$cmd"'"'
  68906. fi
  68907. - ;;
  68908. -
  68909. - *.$libext)
  68910. - # An archive.
  68911. - deplibs="$deplibs $arg"
  68912. - old_deplibs="$old_deplibs $arg"
  68913. - continue
  68914. - ;;
  68915. + if test -n "$finish_eval"; then
  68916. + # Do the single finish_eval.
  68917. + eval cmds=\"$finish_eval\"
  68918. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  68919. + $cmds"
  68920. + fi
  68921. + done
  68922. + fi
  68923. - *.la)
  68924. - # A libtool-controlled library.
  68925. + # Exit here if they wanted silent mode.
  68926. + $opt_silent && exit $EXIT_SUCCESS
  68927. - if test "$prev" = dlfiles; then
  68928. - # This library was specified with -dlopen.
  68929. - dlfiles="$dlfiles $arg"
  68930. - prev=
  68931. - elif test "$prev" = dlprefiles; then
  68932. - # The library was specified with -dlpreopen.
  68933. - dlprefiles="$dlprefiles $arg"
  68934. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  68935. + $ECHO "Libraries have been installed in:"
  68936. + for libdir in $libdirs; do
  68937. + $ECHO " $libdir"
  68938. + done
  68939. + $ECHO
  68940. + $ECHO "If you ever happen to want to link against installed libraries"
  68941. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  68942. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  68943. + $ECHO "flag during linking and do at least one of the following:"
  68944. + if test -n "$shlibpath_var"; then
  68945. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  68946. + $ECHO " during execution"
  68947. + fi
  68948. + if test -n "$runpath_var"; then
  68949. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  68950. + $ECHO " during linking"
  68951. + fi
  68952. + if test -n "$hardcode_libdir_flag_spec"; then
  68953. + libdir=LIBDIR
  68954. + eval flag=\"$hardcode_libdir_flag_spec\"
  68955. +
  68956. + $ECHO " - use the \`$flag' linker flag"
  68957. + fi
  68958. + if test -n "$admincmds"; then
  68959. + $ECHO " - have your system administrator run these commands:$admincmds"
  68960. + fi
  68961. + if test -f /etc/ld.so.conf; then
  68962. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  68963. + fi
  68964. + $ECHO
  68965. +
  68966. + $ECHO "See any operating system documentation about shared libraries for"
  68967. + case $host in
  68968. + solaris2.[6789]|solaris2.1[0-9])
  68969. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  68970. + $ECHO "pages."
  68971. + ;;
  68972. + *)
  68973. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  68974. + ;;
  68975. + esac
  68976. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  68977. + exit $EXIT_SUCCESS
  68978. +}
  68979. +
  68980. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  68981. +
  68982. +
  68983. +# func_mode_install arg...
  68984. +func_mode_install ()
  68985. +{
  68986. + $opt_debug
  68987. + # There may be an optional sh(1) argument at the beginning of
  68988. + # install_prog (especially on Windows NT).
  68989. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  68990. + # Allow the use of GNU shtool's install command.
  68991. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  68992. + # Aesthetically quote it.
  68993. + func_quote_for_eval "$nonopt"
  68994. + install_prog="$func_quote_for_eval_result "
  68995. + arg=$1
  68996. + shift
  68997. + else
  68998. + install_prog=
  68999. + arg=$nonopt
  69000. + fi
  69001. +
  69002. + # The real first argument should be the name of the installation program.
  69003. + # Aesthetically quote it.
  69004. + func_quote_for_eval "$arg"
  69005. + install_prog="$install_prog$func_quote_for_eval_result"
  69006. +
  69007. + # We need to accept at least all the BSD install flags.
  69008. + dest=
  69009. + files=
  69010. + opts=
  69011. + prev=
  69012. + install_type=
  69013. + isdir=no
  69014. + stripme=
  69015. + for arg
  69016. + do
  69017. + if test -n "$dest"; then
  69018. + files="$files $dest"
  69019. + dest=$arg
  69020. + continue
  69021. + fi
  69022. +
  69023. + case $arg in
  69024. + -d) isdir=yes ;;
  69025. + -f)
  69026. + case " $install_prog " in
  69027. + *[\\\ /]cp\ *) ;;
  69028. + *) prev=$arg ;;
  69029. + esac
  69030. + ;;
  69031. + -g | -m | -o)
  69032. + prev=$arg
  69033. + ;;
  69034. + -s)
  69035. + stripme=" -s"
  69036. + continue
  69037. + ;;
  69038. + -*)
  69039. + ;;
  69040. + *)
  69041. + # If the previous option needed an argument, then skip it.
  69042. + if test -n "$prev"; then
  69043. prev=
  69044. else
  69045. - deplibs="$deplibs $arg"
  69046. + dest=$arg
  69047. + continue
  69048. fi
  69049. - continue
  69050. ;;
  69051. + esac
  69052. - # Some other compiler argument.
  69053. - *)
  69054. - # Unknown arguments in both finalize_command and compile_command need
  69055. - # to be aesthetically quoted because they are evaled later.
  69056. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  69057. - case $arg in
  69058. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  69059. - arg="\"$arg\""
  69060. - ;;
  69061. - esac
  69062. - ;;
  69063. - esac # arg
  69064. + # Aesthetically quote the argument.
  69065. + func_quote_for_eval "$arg"
  69066. + install_prog="$install_prog $func_quote_for_eval_result"
  69067. + done
  69068. - # Now actually substitute the argument into the commands.
  69069. - if test -n "$arg"; then
  69070. - compile_command="$compile_command $arg"
  69071. - finalize_command="$finalize_command $arg"
  69072. - fi
  69073. - done # argument parsing loop
  69074. + test -z "$install_prog" && \
  69075. + func_fatal_help "you must specify an install program"
  69076. - if test -n "$prev"; then
  69077. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  69078. - $echo "$help" 1>&2
  69079. - exit $EXIT_FAILURE
  69080. - fi
  69081. + test -n "$prev" && \
  69082. + func_fatal_help "the \`$prev' option requires an argument"
  69083. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  69084. - eval arg=\"$export_dynamic_flag_spec\"
  69085. - compile_command="$compile_command $arg"
  69086. - finalize_command="$finalize_command $arg"
  69087. + if test -z "$files"; then
  69088. + if test -z "$dest"; then
  69089. + func_fatal_help "no file or destination specified"
  69090. + else
  69091. + func_fatal_help "you must specify a destination"
  69092. + fi
  69093. fi
  69094. - oldlibs=
  69095. - # calculate the name of the file, without its directory
  69096. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  69097. - libobjs_save="$libobjs"
  69098. + # Strip any trailing slash from the destination.
  69099. + func_stripname '' '/' "$dest"
  69100. + dest=$func_stripname_result
  69101. - if test -n "$shlibpath_var"; then
  69102. - # get the directories listed in $shlibpath_var
  69103. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  69104. + # Check to see that the destination is a directory.
  69105. + test -d "$dest" && isdir=yes
  69106. + if test "$isdir" = yes; then
  69107. + destdir="$dest"
  69108. + destname=
  69109. else
  69110. - shlib_search_path=
  69111. - fi
  69112. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  69113. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  69114. + func_dirname_and_basename "$dest" "" "."
  69115. + destdir="$func_dirname_result"
  69116. + destname="$func_basename_result"
  69117. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  69118. - if test "X$output_objdir" = "X$output"; then
  69119. - output_objdir="$objdir"
  69120. - else
  69121. - output_objdir="$output_objdir/$objdir"
  69122. - fi
  69123. - # Create the object directory.
  69124. - if test ! -d "$output_objdir"; then
  69125. - $show "$mkdir $output_objdir"
  69126. - $run $mkdir $output_objdir
  69127. - exit_status=$?
  69128. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  69129. - exit $exit_status
  69130. - fi
  69131. + # Not a directory, so check to see that there is only one file specified.
  69132. + set dummy $files; shift
  69133. + test "$#" -gt 1 && \
  69134. + func_fatal_help "\`$dest' is not a directory"
  69135. fi
  69136. -
  69137. - # Determine the type of output
  69138. - case $output in
  69139. - "")
  69140. - $echo "$modename: you must specify an output file" 1>&2
  69141. - $echo "$help" 1>&2
  69142. - exit $EXIT_FAILURE
  69143. - ;;
  69144. - *.$libext) linkmode=oldlib ;;
  69145. - *.lo | *.$objext) linkmode=obj ;;
  69146. - *.la) linkmode=lib ;;
  69147. - *) linkmode=prog ;; # Anything else should be a program.
  69148. - esac
  69149. -
  69150. - case $host in
  69151. - *cygwin* | *mingw* | *pw32*)
  69152. - # don't eliminate duplications in $postdeps and $predeps
  69153. - duplicate_compiler_generated_deps=yes
  69154. - ;;
  69155. + case $destdir in
  69156. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  69157. *)
  69158. - duplicate_compiler_generated_deps=$duplicate_deps
  69159. + for file in $files; do
  69160. + case $file in
  69161. + *.lo) ;;
  69162. + *)
  69163. + func_fatal_help "\`$destdir' must be an absolute directory name"
  69164. + ;;
  69165. + esac
  69166. + done
  69167. ;;
  69168. esac
  69169. - specialdeplibs=
  69170. - libs=
  69171. - # Find all interdependent deplibs by searching for libraries
  69172. - # that are linked more than once (e.g. -la -lb -la)
  69173. - for deplib in $deplibs; do
  69174. - if test "X$duplicate_deps" = "Xyes" ; then
  69175. - case "$libs " in
  69176. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  69177. - esac
  69178. - fi
  69179. - libs="$libs $deplib"
  69180. - done
  69181. + # This variable tells wrapper scripts just to set variables rather
  69182. + # than running their programs.
  69183. + libtool_install_magic="$magic"
  69184. - if test "$linkmode" = lib; then
  69185. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  69186. + staticlibs=
  69187. + future_libdirs=
  69188. + current_libdirs=
  69189. + for file in $files; do
  69190. - # Compute libraries that are listed more than once in $predeps
  69191. - # $postdeps and mark them as special (i.e., whose duplicates are
  69192. - # not to be eliminated).
  69193. - pre_post_deps=
  69194. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  69195. - for pre_post_dep in $predeps $postdeps; do
  69196. - case "$pre_post_deps " in
  69197. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  69198. + # Do each installation.
  69199. + case $file in
  69200. + *.$libext)
  69201. + # Do the static libraries later.
  69202. + staticlibs="$staticlibs $file"
  69203. + ;;
  69204. +
  69205. + *.la)
  69206. + # Check to see that this really is a libtool archive.
  69207. + func_lalib_unsafe_p "$file" \
  69208. + || func_fatal_help "\`$file' is not a valid libtool archive"
  69209. +
  69210. + library_names=
  69211. + old_library=
  69212. + relink_command=
  69213. + func_source "$file"
  69214. +
  69215. + # Add the libdir to current_libdirs if it is the destination.
  69216. + if test "X$destdir" = "X$libdir"; then
  69217. + case "$current_libdirs " in
  69218. + *" $libdir "*) ;;
  69219. + *) current_libdirs="$current_libdirs $libdir" ;;
  69220. esac
  69221. - pre_post_deps="$pre_post_deps $pre_post_dep"
  69222. - done
  69223. - fi
  69224. - pre_post_deps=
  69225. - fi
  69226. + else
  69227. + # Note the libdir as a future libdir.
  69228. + case "$future_libdirs " in
  69229. + *" $libdir "*) ;;
  69230. + *) future_libdirs="$future_libdirs $libdir" ;;
  69231. + esac
  69232. + fi
  69233. - deplibs=
  69234. - newdependency_libs=
  69235. - newlib_search_path=
  69236. - need_relink=no # whether we're linking any uninstalled libtool libraries
  69237. - notinst_deplibs= # not-installed libtool libraries
  69238. - case $linkmode in
  69239. - lib)
  69240. - passes="conv link"
  69241. - for file in $dlfiles $dlprefiles; do
  69242. - case $file in
  69243. - *.la) ;;
  69244. - *)
  69245. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  69246. - exit $EXIT_FAILURE
  69247. + func_dirname "$file" "/" ""
  69248. + dir="$func_dirname_result"
  69249. + dir="$dir$objdir"
  69250. +
  69251. + if test -n "$relink_command"; then
  69252. + # Determine the prefix the user has applied to our future dir.
  69253. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  69254. +
  69255. + # Don't allow the user to place us outside of our expected
  69256. + # location b/c this prevents finding dependent libraries that
  69257. + # are installed to the same prefix.
  69258. + # At present, this check doesn't affect windows .dll's that
  69259. + # are installed into $libdir/../bin (currently, that works fine)
  69260. + # but it's something to keep an eye on.
  69261. + test "$inst_prefix_dir" = "$destdir" && \
  69262. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  69263. +
  69264. + if test -n "$inst_prefix_dir"; then
  69265. + # Stick the inst_prefix_dir data into the link command.
  69266. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  69267. + else
  69268. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  69269. + fi
  69270. +
  69271. + func_warning "relinking \`$file'"
  69272. + func_show_eval "$relink_command" \
  69273. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  69274. + fi
  69275. +
  69276. + # See the names of the shared library.
  69277. + set dummy $library_names; shift
  69278. + if test -n "$1"; then
  69279. + realname="$1"
  69280. + shift
  69281. +
  69282. + srcname="$realname"
  69283. + test -n "$relink_command" && srcname="$realname"T
  69284. +
  69285. + # Install the shared library and build the symlinks.
  69286. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  69287. + 'exit $?'
  69288. + tstripme="$stripme"
  69289. + case $host_os in
  69290. + cygwin* | mingw* | pw32* | cegcc*)
  69291. + case $realname in
  69292. + *.dll.a)
  69293. + tstripme=""
  69294. + ;;
  69295. + esac
  69296. ;;
  69297. esac
  69298. - done
  69299. - ;;
  69300. - prog)
  69301. - compile_deplibs=
  69302. - finalize_deplibs=
  69303. - alldeplibs=no
  69304. - newdlfiles=
  69305. - newdlprefiles=
  69306. - passes="conv scan dlopen dlpreopen link"
  69307. - ;;
  69308. - *) passes="conv"
  69309. - ;;
  69310. - esac
  69311. - for pass in $passes; do
  69312. - if test "$linkmode,$pass" = "lib,link" ||
  69313. - test "$linkmode,$pass" = "prog,scan"; then
  69314. - libs="$deplibs"
  69315. - deplibs=
  69316. - fi
  69317. - if test "$linkmode" = prog; then
  69318. - case $pass in
  69319. - dlopen) libs="$dlfiles" ;;
  69320. - dlpreopen) libs="$dlprefiles" ;;
  69321. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  69322. - esac
  69323. - fi
  69324. - if test "$pass" = dlopen; then
  69325. - # Collect dlpreopened libraries
  69326. - save_deplibs="$deplibs"
  69327. - deplibs=
  69328. - fi
  69329. - for deplib in $libs; do
  69330. - lib=
  69331. - found=no
  69332. - case $deplib in
  69333. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  69334. - if test "$linkmode,$pass" = "prog,link"; then
  69335. - compile_deplibs="$deplib $compile_deplibs"
  69336. - finalize_deplibs="$deplib $finalize_deplibs"
  69337. - else
  69338. - compiler_flags="$compiler_flags $deplib"
  69339. - fi
  69340. - continue
  69341. - ;;
  69342. - -l*)
  69343. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  69344. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  69345. - continue
  69346. + if test -n "$tstripme" && test -n "$striplib"; then
  69347. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  69348. fi
  69349. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  69350. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  69351. - for search_ext in .la $std_shrext .so .a; do
  69352. - # Search the libtool library
  69353. - lib="$searchdir/lib${name}${search_ext}"
  69354. - if test -f "$lib"; then
  69355. - if test "$search_ext" = ".la"; then
  69356. - found=yes
  69357. - else
  69358. - found=no
  69359. - fi
  69360. - break 2
  69361. - fi
  69362. +
  69363. + if test "$#" -gt 0; then
  69364. + # Delete the old symlinks, and create new ones.
  69365. + # Try `ln -sf' first, because the `ln' binary might depend on
  69366. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  69367. + # so we also need to try rm && ln -s.
  69368. + for linkname
  69369. + do
  69370. + test "$linkname" != "$realname" \
  69371. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  69372. done
  69373. - done
  69374. - if test "$found" != yes; then
  69375. - # deplib doesn't seem to be a libtool library
  69376. - if test "$linkmode,$pass" = "prog,link"; then
  69377. - compile_deplibs="$deplib $compile_deplibs"
  69378. - finalize_deplibs="$deplib $finalize_deplibs"
  69379. - else
  69380. - deplibs="$deplib $deplibs"
  69381. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  69382. - fi
  69383. - continue
  69384. - else # deplib is a libtool library
  69385. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  69386. - # We need to do some special things here, and not later.
  69387. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  69388. - case " $predeps $postdeps " in
  69389. - *" $deplib "*)
  69390. - if (${SED} -e '2q' $lib |
  69391. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  69392. - library_names=
  69393. - old_library=
  69394. - case $lib in
  69395. - */* | *\\*) . $lib ;;
  69396. - *) . ./$lib ;;
  69397. - esac
  69398. - for l in $old_library $library_names; do
  69399. - ll="$l"
  69400. - done
  69401. - if test "X$ll" = "X$old_library" ; then # only static version available
  69402. - found=no
  69403. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  69404. - test "X$ladir" = "X$lib" && ladir="."
  69405. - lib=$ladir/$old_library
  69406. - if test "$linkmode,$pass" = "prog,link"; then
  69407. - compile_deplibs="$deplib $compile_deplibs"
  69408. - finalize_deplibs="$deplib $finalize_deplibs"
  69409. - else
  69410. - deplibs="$deplib $deplibs"
  69411. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  69412. - fi
  69413. - continue
  69414. - fi
  69415. - fi
  69416. - ;;
  69417. - *) ;;
  69418. - esac
  69419. - fi
  69420. - fi
  69421. - ;; # -l
  69422. - -L*)
  69423. - case $linkmode in
  69424. - lib)
  69425. - deplibs="$deplib $deplibs"
  69426. - test "$pass" = conv && continue
  69427. - newdependency_libs="$deplib $newdependency_libs"
  69428. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  69429. - ;;
  69430. - prog)
  69431. - if test "$pass" = conv; then
  69432. - deplibs="$deplib $deplibs"
  69433. - continue
  69434. - fi
  69435. - if test "$pass" = scan; then
  69436. - deplibs="$deplib $deplibs"
  69437. - else
  69438. - compile_deplibs="$deplib $compile_deplibs"
  69439. - finalize_deplibs="$deplib $finalize_deplibs"
  69440. - fi
  69441. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  69442. - ;;
  69443. - *)
  69444. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  69445. - ;;
  69446. - esac # linkmode
  69447. - continue
  69448. - ;; # -L
  69449. - -R*)
  69450. - if test "$pass" = link; then
  69451. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  69452. - # Make sure the xrpath contains only unique directories.
  69453. - case "$xrpath " in
  69454. - *" $dir "*) ;;
  69455. - *) xrpath="$xrpath $dir" ;;
  69456. - esac
  69457. fi
  69458. - deplibs="$deplib $deplibs"
  69459. - continue
  69460. +
  69461. + # Do each command in the postinstall commands.
  69462. + lib="$destdir/$realname"
  69463. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  69464. + fi
  69465. +
  69466. + # Install the pseudo-library for information purposes.
  69467. + func_basename "$file"
  69468. + name="$func_basename_result"
  69469. + instname="$dir/$name"i
  69470. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  69471. +
  69472. + # Maybe install the static library, too.
  69473. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  69474. + ;;
  69475. +
  69476. + *.lo)
  69477. + # Install (i.e. copy) a libtool object.
  69478. +
  69479. + # Figure out destination file name, if it wasn't already specified.
  69480. + if test -n "$destname"; then
  69481. + destfile="$destdir/$destname"
  69482. + else
  69483. + func_basename "$file"
  69484. + destfile="$func_basename_result"
  69485. + destfile="$destdir/$destfile"
  69486. + fi
  69487. +
  69488. + # Deduce the name of the destination old-style object file.
  69489. + case $destfile in
  69490. + *.lo)
  69491. + func_lo2o "$destfile"
  69492. + staticdest=$func_lo2o_result
  69493. ;;
  69494. - *.la) lib="$deplib" ;;
  69495. - *.$libext)
  69496. - if test "$pass" = conv; then
  69497. - deplibs="$deplib $deplibs"
  69498. - continue
  69499. - fi
  69500. - case $linkmode in
  69501. - lib)
  69502. - valid_a_lib=no
  69503. - case $deplibs_check_method in
  69504. - match_pattern*)
  69505. - set dummy $deplibs_check_method
  69506. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  69507. - if eval $echo \"$deplib\" 2>/dev/null \
  69508. - | $SED 10q \
  69509. - | $EGREP "$match_pattern_regex" > /dev/null; then
  69510. - valid_a_lib=yes
  69511. - fi
  69512. - ;;
  69513. - pass_all)
  69514. - valid_a_lib=yes
  69515. - ;;
  69516. - esac
  69517. - if test "$valid_a_lib" != yes; then
  69518. - $echo
  69519. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  69520. - $echo "*** I have the capability to make that library automatically link in when"
  69521. - $echo "*** you link to this library. But I can only do this if you have a"
  69522. - $echo "*** shared version of the library, which you do not appear to have"
  69523. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  69524. - $echo "*** that it is just a static archive that I should not used here."
  69525. - else
  69526. - $echo
  69527. - $echo "*** Warning: Linking the shared library $output against the"
  69528. - $echo "*** static library $deplib is not portable!"
  69529. - deplibs="$deplib $deplibs"
  69530. - fi
  69531. - continue
  69532. - ;;
  69533. - prog)
  69534. - if test "$pass" != link; then
  69535. - deplibs="$deplib $deplibs"
  69536. - else
  69537. - compile_deplibs="$deplib $compile_deplibs"
  69538. - finalize_deplibs="$deplib $finalize_deplibs"
  69539. - fi
  69540. - continue
  69541. - ;;
  69542. - esac # linkmode
  69543. - ;; # *.$libext
  69544. - *.lo | *.$objext)
  69545. - if test "$pass" = conv; then
  69546. - deplibs="$deplib $deplibs"
  69547. - elif test "$linkmode" = prog; then
  69548. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  69549. - # If there is no dlopen support or we're linking statically,
  69550. - # we need to preload.
  69551. - newdlprefiles="$newdlprefiles $deplib"
  69552. - compile_deplibs="$deplib $compile_deplibs"
  69553. - finalize_deplibs="$deplib $finalize_deplibs"
  69554. - else
  69555. - newdlfiles="$newdlfiles $deplib"
  69556. - fi
  69557. - fi
  69558. - continue
  69559. + *.$objext)
  69560. + staticdest="$destfile"
  69561. + destfile=
  69562. ;;
  69563. - %DEPLIBS%)
  69564. - alldeplibs=yes
  69565. - continue
  69566. + *)
  69567. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  69568. ;;
  69569. - esac # case $deplib
  69570. - if test "$found" = yes || test -f "$lib"; then :
  69571. - else
  69572. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  69573. - exit $EXIT_FAILURE
  69574. + esac
  69575. +
  69576. + # Install the libtool object if requested.
  69577. + test -n "$destfile" && \
  69578. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  69579. +
  69580. + # Install the old object if enabled.
  69581. + if test "$build_old_libs" = yes; then
  69582. + # Deduce the name of the old-style object file.
  69583. + func_lo2o "$file"
  69584. + staticobj=$func_lo2o_result
  69585. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  69586. fi
  69587. + exit $EXIT_SUCCESS
  69588. + ;;
  69589. - # Check to see that this really is a libtool archive.
  69590. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  69591. + *)
  69592. + # Figure out destination file name, if it wasn't already specified.
  69593. + if test -n "$destname"; then
  69594. + destfile="$destdir/$destname"
  69595. else
  69596. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  69597. - exit $EXIT_FAILURE
  69598. + func_basename "$file"
  69599. + destfile="$func_basename_result"
  69600. + destfile="$destdir/$destfile"
  69601. fi
  69602. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  69603. - test "X$ladir" = "X$lib" && ladir="."
  69604. + # If the file is missing, and there is a .exe on the end, strip it
  69605. + # because it is most likely a libtool script we actually want to
  69606. + # install
  69607. + stripped_ext=""
  69608. + case $file in
  69609. + *.exe)
  69610. + if test ! -f "$file"; then
  69611. + func_stripname '' '.exe' "$file"
  69612. + file=$func_stripname_result
  69613. + stripped_ext=".exe"
  69614. + fi
  69615. + ;;
  69616. + esac
  69617. - dlname=
  69618. - dlopen=
  69619. - dlpreopen=
  69620. - libdir=
  69621. - library_names=
  69622. - old_library=
  69623. - # If the library was installed with an old release of libtool,
  69624. - # it will not redefine variables installed, or shouldnotlink
  69625. - installed=yes
  69626. - shouldnotlink=no
  69627. - avoidtemprpath=
  69628. + # Do a test to see if this is really a libtool program.
  69629. + case $host in
  69630. + *cygwin* | *mingw*)
  69631. + if func_ltwrapper_executable_p "$file"; then
  69632. + func_ltwrapper_scriptname "$file"
  69633. + wrapper=$func_ltwrapper_scriptname_result
  69634. + else
  69635. + func_stripname '' '.exe' "$file"
  69636. + wrapper=$func_stripname_result
  69637. + fi
  69638. + ;;
  69639. + *)
  69640. + wrapper=$file
  69641. + ;;
  69642. + esac
  69643. + if func_ltwrapper_script_p "$wrapper"; then
  69644. + notinst_deplibs=
  69645. + relink_command=
  69646. + func_source "$wrapper"
  69647. - # Read the .la file
  69648. - case $lib in
  69649. - */* | *\\*) . $lib ;;
  69650. - *) . ./$lib ;;
  69651. - esac
  69652. + # Check the variables that should have been set.
  69653. + test -z "$generated_by_libtool_version" && \
  69654. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  69655. - if test "$linkmode,$pass" = "lib,link" ||
  69656. - test "$linkmode,$pass" = "prog,scan" ||
  69657. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  69658. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  69659. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  69660. - fi
  69661. -
  69662. - if test "$pass" = conv; then
  69663. - # Only check for convenience libraries
  69664. - deplibs="$lib $deplibs"
  69665. - if test -z "$libdir"; then
  69666. - if test -z "$old_library"; then
  69667. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  69668. - exit $EXIT_FAILURE
  69669. + finalize=yes
  69670. + for lib in $notinst_deplibs; do
  69671. + # Check to see that each library is installed.
  69672. + libdir=
  69673. + if test -f "$lib"; then
  69674. + func_source "$lib"
  69675. fi
  69676. - # It is a libtool convenience library, so add in its objects.
  69677. - convenience="$convenience $ladir/$objdir/$old_library"
  69678. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  69679. - tmp_libs=
  69680. - for deplib in $dependency_libs; do
  69681. - deplibs="$deplib $deplibs"
  69682. - if test "X$duplicate_deps" = "Xyes" ; then
  69683. - case "$tmp_libs " in
  69684. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  69685. - esac
  69686. - fi
  69687. - tmp_libs="$tmp_libs $deplib"
  69688. - done
  69689. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  69690. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  69691. - exit $EXIT_FAILURE
  69692. - fi
  69693. - continue
  69694. - fi # $pass = conv
  69695. -
  69696. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  69697. + if test -n "$libdir" && test ! -f "$libfile"; then
  69698. + func_warning "\`$lib' has not been installed in \`$libdir'"
  69699. + finalize=no
  69700. + fi
  69701. + done
  69702. - # Get the name of the library we link against.
  69703. - linklib=
  69704. - for l in $old_library $library_names; do
  69705. - linklib="$l"
  69706. - done
  69707. - if test -z "$linklib"; then
  69708. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  69709. - exit $EXIT_FAILURE
  69710. - fi
  69711. + relink_command=
  69712. + func_source "$wrapper"
  69713. - # This library was specified with -dlopen.
  69714. - if test "$pass" = dlopen; then
  69715. - if test -z "$libdir"; then
  69716. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  69717. - exit $EXIT_FAILURE
  69718. - fi
  69719. - if test -z "$dlname" ||
  69720. - test "$dlopen_support" != yes ||
  69721. - test "$build_libtool_libs" = no; then
  69722. - # If there is no dlname, no dlopen support or we're linking
  69723. - # statically, we need to preload. We also need to preload any
  69724. - # dependent libraries so libltdl's deplib preloader doesn't
  69725. - # bomb out in the load deplibs phase.
  69726. - dlprefiles="$dlprefiles $lib $dependency_libs"
  69727. + outputname=
  69728. + if test "$fast_install" = no && test -n "$relink_command"; then
  69729. + $opt_dry_run || {
  69730. + if test "$finalize" = yes; then
  69731. + tmpdir=`func_mktempdir`
  69732. + func_basename "$file$stripped_ext"
  69733. + file="$func_basename_result"
  69734. + outputname="$tmpdir/$file"
  69735. + # Replace the output file specification.
  69736. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  69737. +
  69738. + $opt_silent || {
  69739. + func_quote_for_expand "$relink_command"
  69740. + eval "func_echo $func_quote_for_expand_result"
  69741. + }
  69742. + if eval "$relink_command"; then :
  69743. + else
  69744. + func_error "error: relink \`$file' with the above command before installing it"
  69745. + $opt_dry_run || ${RM}r "$tmpdir"
  69746. + continue
  69747. + fi
  69748. + file="$outputname"
  69749. + else
  69750. + func_warning "cannot relink \`$file'"
  69751. + fi
  69752. + }
  69753. else
  69754. - newdlfiles="$newdlfiles $lib"
  69755. + # Install the binary that we compiled earlier.
  69756. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  69757. fi
  69758. - continue
  69759. - fi # $pass = dlopen
  69760. + fi
  69761. - # We need an absolute path.
  69762. - case $ladir in
  69763. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  69764. - *)
  69765. - abs_ladir=`cd "$ladir" && pwd`
  69766. - if test -z "$abs_ladir"; then
  69767. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  69768. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  69769. - abs_ladir="$ladir"
  69770. - fi
  69771. + # remove .exe since cygwin /usr/bin/install will append another
  69772. + # one anyway
  69773. + case $install_prog,$host in
  69774. + */usr/bin/install*,*cygwin*)
  69775. + case $file:$destfile in
  69776. + *.exe:*.exe)
  69777. + # this is ok
  69778. + ;;
  69779. + *.exe:*)
  69780. + destfile=$destfile.exe
  69781. + ;;
  69782. + *:*.exe)
  69783. + func_stripname '' '.exe' "$destfile"
  69784. + destfile=$func_stripname_result
  69785. + ;;
  69786. + esac
  69787. ;;
  69788. esac
  69789. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  69790. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  69791. + $opt_dry_run || if test -n "$outputname"; then
  69792. + ${RM}r "$tmpdir"
  69793. + fi
  69794. + ;;
  69795. + esac
  69796. + done
  69797. - # Find the relevant object directory and library name.
  69798. - if test "X$installed" = Xyes; then
  69799. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  69800. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  69801. - dir="$ladir"
  69802. - absdir="$abs_ladir"
  69803. - libdir="$abs_ladir"
  69804. - else
  69805. - dir="$libdir"
  69806. - absdir="$libdir"
  69807. + for file in $staticlibs; do
  69808. + func_basename "$file"
  69809. + name="$func_basename_result"
  69810. +
  69811. + # Set up the ranlib parameters.
  69812. + oldlib="$destdir/$name"
  69813. +
  69814. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  69815. +
  69816. + if test -n "$stripme" && test -n "$old_striplib"; then
  69817. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  69818. + fi
  69819. +
  69820. + # Do each command in the postinstall commands.
  69821. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  69822. + done
  69823. +
  69824. + test -n "$future_libdirs" && \
  69825. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  69826. +
  69827. + if test -n "$current_libdirs"; then
  69828. + # Maybe just do a dry run.
  69829. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  69830. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  69831. + else
  69832. + exit $EXIT_SUCCESS
  69833. + fi
  69834. +}
  69835. +
  69836. +test "$mode" = install && func_mode_install ${1+"$@"}
  69837. +
  69838. +
  69839. +# func_generate_dlsyms outputname originator pic_p
  69840. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  69841. +# a dlpreopen symbol table.
  69842. +func_generate_dlsyms ()
  69843. +{
  69844. + $opt_debug
  69845. + my_outputname="$1"
  69846. + my_originator="$2"
  69847. + my_pic_p="${3-no}"
  69848. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  69849. + my_dlsyms=
  69850. +
  69851. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  69852. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  69853. + my_dlsyms="${my_outputname}S.c"
  69854. + else
  69855. + func_error "not configured to extract global symbols from dlpreopened files"
  69856. + fi
  69857. + fi
  69858. +
  69859. + if test -n "$my_dlsyms"; then
  69860. + case $my_dlsyms in
  69861. + "") ;;
  69862. + *.c)
  69863. + # Discover the nlist of each of the dlfiles.
  69864. + nlist="$output_objdir/${my_outputname}.nm"
  69865. +
  69866. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  69867. +
  69868. + # Parse the name list into a source file.
  69869. + func_verbose "creating $output_objdir/$my_dlsyms"
  69870. +
  69871. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  69872. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  69873. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  69874. +
  69875. +#ifdef __cplusplus
  69876. +extern \"C\" {
  69877. +#endif
  69878. +
  69879. +/* External symbol declarations for the compiler. */\
  69880. +"
  69881. +
  69882. + if test "$dlself" = yes; then
  69883. + func_verbose "generating symbol list for \`$output'"
  69884. +
  69885. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  69886. +
  69887. + # Add our own program objects to the symbol list.
  69888. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  69889. + for progfile in $progfiles; do
  69890. + func_verbose "extracting global C symbols from \`$progfile'"
  69891. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  69892. + done
  69893. +
  69894. + if test -n "$exclude_expsyms"; then
  69895. + $opt_dry_run || {
  69896. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  69897. + eval '$MV "$nlist"T "$nlist"'
  69898. + }
  69899. fi
  69900. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  69901. - else
  69902. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  69903. - dir="$ladir"
  69904. - absdir="$abs_ladir"
  69905. - # Remove this search path later
  69906. - notinst_path="$notinst_path $abs_ladir"
  69907. +
  69908. + if test -n "$export_symbols_regex"; then
  69909. + $opt_dry_run || {
  69910. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  69911. + eval '$MV "$nlist"T "$nlist"'
  69912. + }
  69913. + fi
  69914. +
  69915. + # Prepare the list of exported symbols
  69916. + if test -z "$export_symbols"; then
  69917. + export_symbols="$output_objdir/$outputname.exp"
  69918. + $opt_dry_run || {
  69919. + $RM $export_symbols
  69920. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  69921. + case $host in
  69922. + *cygwin* | *mingw* | *cegcc* )
  69923. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  69924. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  69925. + ;;
  69926. + esac
  69927. + }
  69928. else
  69929. - dir="$ladir/$objdir"
  69930. - absdir="$abs_ladir/$objdir"
  69931. - # Remove this search path later
  69932. - notinst_path="$notinst_path $abs_ladir"
  69933. + $opt_dry_run || {
  69934. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  69935. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  69936. + eval '$MV "$nlist"T "$nlist"'
  69937. + case $host in
  69938. + *cygwin | *mingw* | *cegcc* )
  69939. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  69940. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  69941. + ;;
  69942. + esac
  69943. + }
  69944. fi
  69945. - fi # $installed = yes
  69946. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  69947. + fi
  69948. - # This library was specified with -dlpreopen.
  69949. - if test "$pass" = dlpreopen; then
  69950. - if test -z "$libdir"; then
  69951. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  69952. - exit $EXIT_FAILURE
  69953. + for dlprefile in $dlprefiles; do
  69954. + func_verbose "extracting global C symbols from \`$dlprefile'"
  69955. + func_basename "$dlprefile"
  69956. + name="$func_basename_result"
  69957. + $opt_dry_run || {
  69958. + eval '$ECHO ": $name " >> "$nlist"'
  69959. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  69960. + }
  69961. + done
  69962. +
  69963. + $opt_dry_run || {
  69964. + # Make sure we have at least an empty file.
  69965. + test -f "$nlist" || : > "$nlist"
  69966. +
  69967. + if test -n "$exclude_expsyms"; then
  69968. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  69969. + $MV "$nlist"T "$nlist"
  69970. fi
  69971. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  69972. - # are required to link).
  69973. - if test -n "$old_library"; then
  69974. - newdlprefiles="$newdlprefiles $dir/$old_library"
  69975. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  69976. - elif test -n "$dlname"; then
  69977. - newdlprefiles="$newdlprefiles $dir/$dlname"
  69978. +
  69979. + # Try sorting and uniquifying the output.
  69980. + if $GREP -v "^: " < "$nlist" |
  69981. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  69982. + sort -k 3
  69983. + else
  69984. + sort +2
  69985. + fi |
  69986. + uniq > "$nlist"S; then
  69987. + :
  69988. else
  69989. - newdlprefiles="$newdlprefiles $dir/$linklib"
  69990. + $GREP -v "^: " < "$nlist" > "$nlist"S
  69991. fi
  69992. - fi # $pass = dlpreopen
  69993. - if test -z "$libdir"; then
  69994. - # Link the convenience library
  69995. - if test "$linkmode" = lib; then
  69996. - deplibs="$dir/$old_library $deplibs"
  69997. - elif test "$linkmode,$pass" = "prog,link"; then
  69998. - compile_deplibs="$dir/$old_library $compile_deplibs"
  69999. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  70000. + if test -f "$nlist"S; then
  70001. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  70002. else
  70003. - deplibs="$lib $deplibs" # used for prog,scan pass
  70004. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  70005. fi
  70006. - continue
  70007. - fi
  70008. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  70009. - if test "$linkmode" = prog && test "$pass" != link; then
  70010. - newlib_search_path="$newlib_search_path $ladir"
  70011. - deplibs="$lib $deplibs"
  70012. +/* The mapping between symbol names and symbols. */
  70013. +typedef struct {
  70014. + const char *name;
  70015. + void *address;
  70016. +} lt_dlsymlist;
  70017. +"
  70018. + case $host in
  70019. + *cygwin* | *mingw* | *cegcc* )
  70020. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  70021. +/* DATA imports from DLLs on WIN32 con't be const, because
  70022. + runtime relocations are performed -- see ld's documentation
  70023. + on pseudo-relocs. */"
  70024. + lt_dlsym_const= ;;
  70025. + *osf5*)
  70026. + echo >> "$output_objdir/$my_dlsyms" "\
  70027. +/* This system does not cope well with relocations in const data */"
  70028. + lt_dlsym_const= ;;
  70029. + *)
  70030. + lt_dlsym_const=const ;;
  70031. + esac
  70032. - linkalldeplibs=no
  70033. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  70034. - test "$build_libtool_libs" = no; then
  70035. - linkalldeplibs=yes
  70036. - fi
  70037. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  70038. +extern $lt_dlsym_const lt_dlsymlist
  70039. +lt_${my_prefix}_LTX_preloaded_symbols[];
  70040. +$lt_dlsym_const lt_dlsymlist
  70041. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  70042. +{\
  70043. + { \"$my_originator\", (void *) 0 },"
  70044. - tmp_libs=
  70045. - for deplib in $dependency_libs; do
  70046. - case $deplib in
  70047. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  70048. - esac
  70049. - # Need to link against all dependency_libs?
  70050. - if test "$linkalldeplibs" = yes; then
  70051. - deplibs="$deplib $deplibs"
  70052. - else
  70053. - # Need to hardcode shared library paths
  70054. - # or/and link against static libraries
  70055. - newdependency_libs="$deplib $newdependency_libs"
  70056. - fi
  70057. - if test "X$duplicate_deps" = "Xyes" ; then
  70058. - case "$tmp_libs " in
  70059. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  70060. - esac
  70061. - fi
  70062. - tmp_libs="$tmp_libs $deplib"
  70063. - done # for deplib
  70064. - continue
  70065. - fi # $linkmode = prog...
  70066. + case $need_lib_prefix in
  70067. + no)
  70068. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  70069. + ;;
  70070. + *)
  70071. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  70072. + ;;
  70073. + esac
  70074. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  70075. + {0, (void *) 0}
  70076. +};
  70077. - if test "$linkmode,$pass" = "prog,link"; then
  70078. - if test -n "$library_names" &&
  70079. - { { test "$prefer_static_libs" = no ||
  70080. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  70081. - test -z "$old_library"; }; then
  70082. - # We need to hardcode the library path
  70083. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  70084. - # Make sure the rpath contains only unique directories.
  70085. - case "$temp_rpath " in
  70086. - *" $dir "*) ;;
  70087. - *" $absdir "*) ;;
  70088. - *) temp_rpath="$temp_rpath $absdir" ;;
  70089. - esac
  70090. - fi
  70091. +/* This works around a problem in FreeBSD linker */
  70092. +#ifdef FREEBSD_WORKAROUND
  70093. +static const void *lt_preloaded_setup() {
  70094. + return lt_${my_prefix}_LTX_preloaded_symbols;
  70095. +}
  70096. +#endif
  70097. - # Hardcode the library path.
  70098. - # Skip directories that are in the system default run-time
  70099. - # search path.
  70100. - case " $sys_lib_dlsearch_path " in
  70101. - *" $absdir "*) ;;
  70102. - *)
  70103. - case "$compile_rpath " in
  70104. - *" $absdir "*) ;;
  70105. - *) compile_rpath="$compile_rpath $absdir"
  70106. - esac
  70107. - ;;
  70108. - esac
  70109. - case " $sys_lib_dlsearch_path " in
  70110. - *" $libdir "*) ;;
  70111. - *)
  70112. - case "$finalize_rpath " in
  70113. - *" $libdir "*) ;;
  70114. - *) finalize_rpath="$finalize_rpath $libdir"
  70115. - esac
  70116. - ;;
  70117. - esac
  70118. - fi # $linkmode,$pass = prog,link...
  70119. +#ifdef __cplusplus
  70120. +}
  70121. +#endif\
  70122. +"
  70123. + } # !$opt_dry_run
  70124. - if test "$alldeplibs" = yes &&
  70125. - { test "$deplibs_check_method" = pass_all ||
  70126. - { test "$build_libtool_libs" = yes &&
  70127. - test -n "$library_names"; }; }; then
  70128. - # We only need to search for static libraries
  70129. - continue
  70130. - fi
  70131. - fi
  70132. + pic_flag_for_symtable=
  70133. + case "$compile_command " in
  70134. + *" -static "*) ;;
  70135. + *)
  70136. + case $host in
  70137. + # compiling the symbol table file with pic_flag works around
  70138. + # a FreeBSD bug that causes programs to crash when -lm is
  70139. + # linked before any other PIC object. But we must not use
  70140. + # pic_flag when linking with -static. The problem exists in
  70141. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  70142. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  70143. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  70144. + *-*-hpux*)
  70145. + pic_flag_for_symtable=" $pic_flag" ;;
  70146. + *)
  70147. + if test "X$my_pic_p" != Xno; then
  70148. + pic_flag_for_symtable=" $pic_flag"
  70149. + fi
  70150. + ;;
  70151. + esac
  70152. + ;;
  70153. + esac
  70154. + symtab_cflags=
  70155. + for arg in $LTCFLAGS; do
  70156. + case $arg in
  70157. + -pie | -fpie | -fPIE) ;;
  70158. + *) symtab_cflags="$symtab_cflags $arg" ;;
  70159. + esac
  70160. + done
  70161. - link_static=no # Whether the deplib will be linked statically
  70162. - use_static_libs=$prefer_static_libs
  70163. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  70164. - use_static_libs=no
  70165. - fi
  70166. - if test -n "$library_names" &&
  70167. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  70168. - if test "$installed" = no; then
  70169. - notinst_deplibs="$notinst_deplibs $lib"
  70170. - need_relink=yes
  70171. - fi
  70172. - # This is a shared library
  70173. + # Now compile the dynamic symbol file.
  70174. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  70175. - # Warn about portability, can't link against -module's on
  70176. - # some systems (darwin)
  70177. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  70178. - $echo
  70179. - if test "$linkmode" = prog; then
  70180. - $echo "*** Warning: Linking the executable $output against the loadable module"
  70181. - else
  70182. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  70183. - fi
  70184. - $echo "*** $linklib is not portable!"
  70185. - fi
  70186. - if test "$linkmode" = lib &&
  70187. - test "$hardcode_into_libs" = yes; then
  70188. - # Hardcode the library path.
  70189. - # Skip directories that are in the system default run-time
  70190. - # search path.
  70191. - case " $sys_lib_dlsearch_path " in
  70192. - *" $absdir "*) ;;
  70193. - *)
  70194. - case "$compile_rpath " in
  70195. - *" $absdir "*) ;;
  70196. - *) compile_rpath="$compile_rpath $absdir"
  70197. - esac
  70198. - ;;
  70199. - esac
  70200. - case " $sys_lib_dlsearch_path " in
  70201. - *" $libdir "*) ;;
  70202. - *)
  70203. - case "$finalize_rpath " in
  70204. - *" $libdir "*) ;;
  70205. - *) finalize_rpath="$finalize_rpath $libdir"
  70206. - esac
  70207. - ;;
  70208. - esac
  70209. + # Clean up the generated files.
  70210. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  70211. +
  70212. + # Transform the symbol file into the correct name.
  70213. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  70214. + case $host in
  70215. + *cygwin* | *mingw* | *cegcc* )
  70216. + if test -f "$output_objdir/$my_outputname.def"; then
  70217. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  70218. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  70219. + else
  70220. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  70221. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  70222. fi
  70223. + ;;
  70224. + *)
  70225. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  70226. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  70227. + ;;
  70228. + esac
  70229. + ;;
  70230. + *)
  70231. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  70232. + ;;
  70233. + esac
  70234. + else
  70235. + # We keep going just in case the user didn't refer to
  70236. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  70237. + # really was required.
  70238. +
  70239. + # Nullify the symbol file.
  70240. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  70241. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  70242. + fi
  70243. +}
  70244. - if test -n "$old_archive_from_expsyms_cmds"; then
  70245. - # figure out the soname
  70246. - set dummy $library_names
  70247. - realname="$2"
  70248. - shift; shift
  70249. - libname=`eval \\$echo \"$libname_spec\"`
  70250. - # use dlname if we got it. it's perfectly good, no?
  70251. - if test -n "$dlname"; then
  70252. - soname="$dlname"
  70253. - elif test -n "$soname_spec"; then
  70254. - # bleh windows
  70255. - case $host in
  70256. - *cygwin* | mingw*)
  70257. - major=`expr $current - $age`
  70258. - versuffix="-$major"
  70259. - ;;
  70260. - esac
  70261. - eval soname=\"$soname_spec\"
  70262. - else
  70263. - soname="$realname"
  70264. - fi
  70265. +# func_win32_libid arg
  70266. +# return the library type of file 'arg'
  70267. +#
  70268. +# Need a lot of goo to handle *both* DLLs and import libs
  70269. +# Has to be a shell function in order to 'eat' the argument
  70270. +# that is supplied when $file_magic_command is called.
  70271. +func_win32_libid ()
  70272. +{
  70273. + $opt_debug
  70274. + win32_libid_type="unknown"
  70275. + win32_fileres=`file -L $1 2>/dev/null`
  70276. + case $win32_fileres in
  70277. + *ar\ archive\ import\ library*) # definitely import
  70278. + win32_libid_type="x86 archive import"
  70279. + ;;
  70280. + *ar\ archive*) # could be an import, or static
  70281. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  70282. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  70283. + win32_nmres=`eval $NM -f posix -A $1 |
  70284. + $SED -n -e '
  70285. + 1,100{
  70286. + / I /{
  70287. + s,.*,import,
  70288. + p
  70289. + q
  70290. + }
  70291. + }'`
  70292. + case $win32_nmres in
  70293. + import*) win32_libid_type="x86 archive import";;
  70294. + *) win32_libid_type="x86 archive static";;
  70295. + esac
  70296. + fi
  70297. + ;;
  70298. + *DLL*)
  70299. + win32_libid_type="x86 DLL"
  70300. + ;;
  70301. + *executable*) # but shell scripts are "executable" too...
  70302. + case $win32_fileres in
  70303. + *MS\ Windows\ PE\ Intel*)
  70304. + win32_libid_type="x86 DLL"
  70305. + ;;
  70306. + esac
  70307. + ;;
  70308. + esac
  70309. + $ECHO "$win32_libid_type"
  70310. +}
  70311. - # Make a new name for the extract_expsyms_cmds to use
  70312. - soroot="$soname"
  70313. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  70314. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  70315. - # If the library has no export list, then create one now
  70316. - if test -f "$output_objdir/$soname-def"; then :
  70317. - else
  70318. - $show "extracting exported symbol list from \`$soname'"
  70319. - save_ifs="$IFS"; IFS='~'
  70320. - cmds=$extract_expsyms_cmds
  70321. - for cmd in $cmds; do
  70322. - IFS="$save_ifs"
  70323. - eval cmd=\"$cmd\"
  70324. - $show "$cmd"
  70325. - $run eval "$cmd" || exit $?
  70326. - done
  70327. - IFS="$save_ifs"
  70328. - fi
  70329. - # Create $newlib
  70330. - if test -f "$output_objdir/$newlib"; then :; else
  70331. - $show "generating import library for \`$soname'"
  70332. - save_ifs="$IFS"; IFS='~'
  70333. - cmds=$old_archive_from_expsyms_cmds
  70334. - for cmd in $cmds; do
  70335. - IFS="$save_ifs"
  70336. - eval cmd=\"$cmd\"
  70337. - $show "$cmd"
  70338. - $run eval "$cmd" || exit $?
  70339. - done
  70340. - IFS="$save_ifs"
  70341. - fi
  70342. - # make sure the library variables are pointing to the new library
  70343. - dir=$output_objdir
  70344. - linklib=$newlib
  70345. - fi # test -n "$old_archive_from_expsyms_cmds"
  70346. +# func_extract_an_archive dir oldlib
  70347. +func_extract_an_archive ()
  70348. +{
  70349. + $opt_debug
  70350. + f_ex_an_ar_dir="$1"; shift
  70351. + f_ex_an_ar_oldlib="$1"
  70352. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  70353. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  70354. + :
  70355. + else
  70356. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  70357. + fi
  70358. +}
  70359. - if test "$linkmode" = prog || test "$mode" != relink; then
  70360. - add_shlibpath=
  70361. - add_dir=
  70362. - add=
  70363. - lib_linked=yes
  70364. - case $hardcode_action in
  70365. - immediate | unsupported)
  70366. - if test "$hardcode_direct" = no; then
  70367. - add="$dir/$linklib"
  70368. - case $host in
  70369. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  70370. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  70371. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  70372. - *-*-unixware7*) add_dir="-L$dir" ;;
  70373. - *-*-darwin* )
  70374. - # if the lib is a module then we can not link against
  70375. - # it, someone is ignoring the new warnings I added
  70376. - if /usr/bin/file -L $add 2> /dev/null |
  70377. - $EGREP ": [^:]* bundle" >/dev/null ; then
  70378. - $echo "** Warning, lib $linklib is a module, not a shared library"
  70379. - if test -z "$old_library" ; then
  70380. - $echo
  70381. - $echo "** And there doesn't seem to be a static archive available"
  70382. - $echo "** The link will probably fail, sorry"
  70383. - else
  70384. - add="$dir/$old_library"
  70385. - fi
  70386. - fi
  70387. - esac
  70388. - elif test "$hardcode_minus_L" = no; then
  70389. - case $host in
  70390. - *-*-sunos*) add_shlibpath="$dir" ;;
  70391. - esac
  70392. - add_dir="-L$dir"
  70393. - add="-l$name"
  70394. - elif test "$hardcode_shlibpath_var" = no; then
  70395. - add_shlibpath="$dir"
  70396. - add="-l$name"
  70397. - else
  70398. - lib_linked=no
  70399. - fi
  70400. - ;;
  70401. - relink)
  70402. - if test "$hardcode_direct" = yes; then
  70403. - add="$dir/$linklib"
  70404. - elif test "$hardcode_minus_L" = yes; then
  70405. - add_dir="-L$dir"
  70406. - # Try looking first in the location we're being installed to.
  70407. - if test -n "$inst_prefix_dir"; then
  70408. - case $libdir in
  70409. - [\\/]*)
  70410. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  70411. - ;;
  70412. - esac
  70413. - fi
  70414. - add="-l$name"
  70415. - elif test "$hardcode_shlibpath_var" = yes; then
  70416. - add_shlibpath="$dir"
  70417. - add="-l$name"
  70418. - else
  70419. - lib_linked=no
  70420. - fi
  70421. - ;;
  70422. - *) lib_linked=no ;;
  70423. - esac
  70424. - if test "$lib_linked" != yes; then
  70425. - $echo "$modename: configuration error: unsupported hardcode properties"
  70426. - exit $EXIT_FAILURE
  70427. - fi
  70428. +# func_extract_archives gentop oldlib ...
  70429. +func_extract_archives ()
  70430. +{
  70431. + $opt_debug
  70432. + my_gentop="$1"; shift
  70433. + my_oldlibs=${1+"$@"}
  70434. + my_oldobjs=""
  70435. + my_xlib=""
  70436. + my_xabs=""
  70437. + my_xdir=""
  70438. - if test -n "$add_shlibpath"; then
  70439. - case :$compile_shlibpath: in
  70440. - *":$add_shlibpath:"*) ;;
  70441. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  70442. - esac
  70443. - fi
  70444. - if test "$linkmode" = prog; then
  70445. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  70446. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  70447. - else
  70448. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  70449. - test -n "$add" && deplibs="$add $deplibs"
  70450. - if test "$hardcode_direct" != yes && \
  70451. - test "$hardcode_minus_L" != yes && \
  70452. - test "$hardcode_shlibpath_var" = yes; then
  70453. - case :$finalize_shlibpath: in
  70454. - *":$libdir:"*) ;;
  70455. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  70456. - esac
  70457. - fi
  70458. - fi
  70459. - fi
  70460. + for my_xlib in $my_oldlibs; do
  70461. + # Extract the objects.
  70462. + case $my_xlib in
  70463. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  70464. + *) my_xabs=`pwd`"/$my_xlib" ;;
  70465. + esac
  70466. + func_basename "$my_xlib"
  70467. + my_xlib="$func_basename_result"
  70468. + my_xlib_u=$my_xlib
  70469. + while :; do
  70470. + case " $extracted_archives " in
  70471. + *" $my_xlib_u "*)
  70472. + func_arith $extracted_serial + 1
  70473. + extracted_serial=$func_arith_result
  70474. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  70475. + *) break ;;
  70476. + esac
  70477. + done
  70478. + extracted_archives="$extracted_archives $my_xlib_u"
  70479. + my_xdir="$my_gentop/$my_xlib_u"
  70480. - if test "$linkmode" = prog || test "$mode" = relink; then
  70481. - add_shlibpath=
  70482. - add_dir=
  70483. - add=
  70484. - # Finalize command for both is simple: just hardcode it.
  70485. - if test "$hardcode_direct" = yes; then
  70486. - add="$libdir/$linklib"
  70487. - elif test "$hardcode_minus_L" = yes; then
  70488. - add_dir="-L$libdir"
  70489. - add="-l$name"
  70490. - elif test "$hardcode_shlibpath_var" = yes; then
  70491. - case :$finalize_shlibpath: in
  70492. - *":$libdir:"*) ;;
  70493. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  70494. - esac
  70495. - add="-l$name"
  70496. - elif test "$hardcode_automatic" = yes; then
  70497. - if test -n "$inst_prefix_dir" &&
  70498. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  70499. - add="$inst_prefix_dir$libdir/$linklib"
  70500. - else
  70501. - add="$libdir/$linklib"
  70502. - fi
  70503. - else
  70504. - # We cannot seem to hardcode it, guess we'll fake it.
  70505. - add_dir="-L$libdir"
  70506. - # Try looking first in the location we're being installed to.
  70507. - if test -n "$inst_prefix_dir"; then
  70508. - case $libdir in
  70509. - [\\/]*)
  70510. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  70511. - ;;
  70512. - esac
  70513. - fi
  70514. - add="-l$name"
  70515. - fi
  70516. + func_mkdir_p "$my_xdir"
  70517. - if test "$linkmode" = prog; then
  70518. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  70519. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  70520. - else
  70521. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  70522. - test -n "$add" && deplibs="$add $deplibs"
  70523. - fi
  70524. - fi
  70525. - elif test "$linkmode" = prog; then
  70526. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  70527. - # is not unsupported. This is valid on all known static and
  70528. - # shared platforms.
  70529. - if test "$hardcode_direct" != unsupported; then
  70530. - test -n "$old_library" && linklib="$old_library"
  70531. - compile_deplibs="$dir/$linklib $compile_deplibs"
  70532. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  70533. + case $host in
  70534. + *-darwin*)
  70535. + func_verbose "Extracting $my_xabs"
  70536. + # Do not bother doing anything if just a dry run
  70537. + $opt_dry_run || {
  70538. + darwin_orig_dir=`pwd`
  70539. + cd $my_xdir || exit $?
  70540. + darwin_archive=$my_xabs
  70541. + darwin_curdir=`pwd`
  70542. + darwin_base_archive=`basename "$darwin_archive"`
  70543. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  70544. + if test -n "$darwin_arches"; then
  70545. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  70546. + darwin_arch=
  70547. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  70548. + for darwin_arch in $darwin_arches ; do
  70549. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  70550. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  70551. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  70552. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  70553. + cd "$darwin_curdir"
  70554. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  70555. + done # $darwin_arches
  70556. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  70557. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  70558. + darwin_file=
  70559. + darwin_files=
  70560. + for darwin_file in $darwin_filelist; do
  70561. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  70562. + $LIPO -create -output "$darwin_file" $darwin_files
  70563. + done # $darwin_filelist
  70564. + $RM -rf unfat-$$
  70565. + cd "$darwin_orig_dir"
  70566. else
  70567. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  70568. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  70569. - fi
  70570. - elif test "$build_libtool_libs" = yes; then
  70571. - # Not a shared library
  70572. - if test "$deplibs_check_method" != pass_all; then
  70573. - # We're trying link a shared library against a static one
  70574. - # but the system doesn't support it.
  70575. + cd $darwin_orig_dir
  70576. + func_extract_an_archive "$my_xdir" "$my_xabs"
  70577. + fi # $darwin_arches
  70578. + } # !$opt_dry_run
  70579. + ;;
  70580. + *)
  70581. + func_extract_an_archive "$my_xdir" "$my_xabs"
  70582. + ;;
  70583. + esac
  70584. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  70585. + done
  70586. - # Just print a warning and add the library to dependency_libs so
  70587. - # that the program can be linked against the static library.
  70588. - $echo
  70589. - $echo "*** Warning: This system can not link to static lib archive $lib."
  70590. - $echo "*** I have the capability to make that library automatically link in when"
  70591. - $echo "*** you link to this library. But I can only do this if you have a"
  70592. - $echo "*** shared version of the library, which you do not appear to have."
  70593. - if test "$module" = yes; then
  70594. - $echo "*** But as you try to build a module library, libtool will still create "
  70595. - $echo "*** a static module, that should work as long as the dlopening application"
  70596. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  70597. - if test -z "$global_symbol_pipe"; then
  70598. - $echo
  70599. - $echo "*** However, this would only work if libtool was able to extract symbol"
  70600. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  70601. - $echo "*** not find such a program. So, this module is probably useless."
  70602. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  70603. - fi
  70604. - if test "$build_old_libs" = no; then
  70605. - build_libtool_libs=module
  70606. - build_old_libs=yes
  70607. - else
  70608. - build_libtool_libs=no
  70609. - fi
  70610. - fi
  70611. - else
  70612. - deplibs="$dir/$old_library $deplibs"
  70613. - link_static=yes
  70614. - fi
  70615. - fi # link shared/static library?
  70616. + func_extract_archives_result="$my_oldobjs"
  70617. +}
  70618. - if test "$linkmode" = lib; then
  70619. - if test -n "$dependency_libs" &&
  70620. - { test "$hardcode_into_libs" != yes ||
  70621. - test "$build_old_libs" = yes ||
  70622. - test "$link_static" = yes; }; then
  70623. - # Extract -R from dependency_libs
  70624. - temp_deplibs=
  70625. - for libdir in $dependency_libs; do
  70626. - case $libdir in
  70627. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  70628. - case " $xrpath " in
  70629. - *" $temp_xrpath "*) ;;
  70630. - *) xrpath="$xrpath $temp_xrpath";;
  70631. - esac;;
  70632. - *) temp_deplibs="$temp_deplibs $libdir";;
  70633. - esac
  70634. - done
  70635. - dependency_libs="$temp_deplibs"
  70636. - fi
  70637. - newlib_search_path="$newlib_search_path $absdir"
  70638. - # Link against this library
  70639. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  70640. - # ... and its dependency_libs
  70641. - tmp_libs=
  70642. - for deplib in $dependency_libs; do
  70643. - newdependency_libs="$deplib $newdependency_libs"
  70644. - if test "X$duplicate_deps" = "Xyes" ; then
  70645. - case "$tmp_libs " in
  70646. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  70647. - esac
  70648. - fi
  70649. - tmp_libs="$tmp_libs $deplib"
  70650. - done
  70651. - if test "$link_all_deplibs" != no; then
  70652. - # Add the search paths of all dependency libraries
  70653. - for deplib in $dependency_libs; do
  70654. - case $deplib in
  70655. - -L*) path="$deplib" ;;
  70656. - *.la)
  70657. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  70658. - test "X$dir" = "X$deplib" && dir="."
  70659. - # We need an absolute path.
  70660. - case $dir in
  70661. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  70662. - *)
  70663. - absdir=`cd "$dir" && pwd`
  70664. - if test -z "$absdir"; then
  70665. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  70666. - absdir="$dir"
  70667. - fi
  70668. - ;;
  70669. - esac
  70670. - if grep "^installed=no" $deplib > /dev/null; then
  70671. - path="$absdir/$objdir"
  70672. - else
  70673. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  70674. - if test -z "$libdir"; then
  70675. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  70676. - exit $EXIT_FAILURE
  70677. - fi
  70678. - if test "$absdir" != "$libdir"; then
  70679. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  70680. - fi
  70681. - path="$absdir"
  70682. - fi
  70683. - depdepl=
  70684. - case $host in
  70685. - *-*-darwin*)
  70686. - # we do not want to link against static libs,
  70687. - # but need to link against shared
  70688. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  70689. - if test -n "$deplibrary_names" ; then
  70690. - for tmp in $deplibrary_names ; do
  70691. - depdepl=$tmp
  70692. - done
  70693. - if test -f "$path/$depdepl" ; then
  70694. - depdepl="$path/$depdepl"
  70695. - fi
  70696. - # do not add paths which are already there
  70697. - case " $newlib_search_path " in
  70698. - *" $path "*) ;;
  70699. - *) newlib_search_path="$newlib_search_path $path";;
  70700. - esac
  70701. - fi
  70702. - path=""
  70703. - ;;
  70704. - *)
  70705. - path="-L$path"
  70706. - ;;
  70707. - esac
  70708. - ;;
  70709. - -l*)
  70710. - case $host in
  70711. - *-*-darwin*)
  70712. - # Again, we only want to link against shared libraries
  70713. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  70714. - for tmp in $newlib_search_path ; do
  70715. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  70716. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  70717. - break
  70718. - fi
  70719. - done
  70720. - path=""
  70721. - ;;
  70722. - *) continue ;;
  70723. - esac
  70724. - ;;
  70725. - *) continue ;;
  70726. - esac
  70727. - case " $deplibs " in
  70728. - *" $path "*) ;;
  70729. - *) deplibs="$path $deplibs" ;;
  70730. - esac
  70731. - case " $deplibs " in
  70732. - *" $depdepl "*) ;;
  70733. - *) deplibs="$depdepl $deplibs" ;;
  70734. - esac
  70735. - done
  70736. - fi # link_all_deplibs != no
  70737. - fi # linkmode = lib
  70738. - done # for deplib in $libs
  70739. - dependency_libs="$newdependency_libs"
  70740. - if test "$pass" = dlpreopen; then
  70741. - # Link the dlpreopened libraries before other libraries
  70742. - for deplib in $save_deplibs; do
  70743. - deplibs="$deplib $deplibs"
  70744. - done
  70745. - fi
  70746. - if test "$pass" != dlopen; then
  70747. - if test "$pass" != conv; then
  70748. - # Make sure lib_search_path contains only unique directories.
  70749. - lib_search_path=
  70750. - for dir in $newlib_search_path; do
  70751. - case "$lib_search_path " in
  70752. - *" $dir "*) ;;
  70753. - *) lib_search_path="$lib_search_path $dir" ;;
  70754. - esac
  70755. - done
  70756. - newlib_search_path=
  70757. +# func_emit_wrapper_part1 [arg=no]
  70758. +#
  70759. +# Emit the first part of a libtool wrapper script on stdout.
  70760. +# For more information, see the description associated with
  70761. +# func_emit_wrapper(), below.
  70762. +func_emit_wrapper_part1 ()
  70763. +{
  70764. + func_emit_wrapper_part1_arg1=no
  70765. + if test -n "$1" ; then
  70766. + func_emit_wrapper_part1_arg1=$1
  70767. fi
  70768. - if test "$linkmode,$pass" != "prog,link"; then
  70769. - vars="deplibs"
  70770. - else
  70771. - vars="compile_deplibs finalize_deplibs"
  70772. - fi
  70773. - for var in $vars dependency_libs; do
  70774. - # Add libraries to $var in reverse order
  70775. - eval tmp_libs=\"\$$var\"
  70776. - new_libs=
  70777. - for deplib in $tmp_libs; do
  70778. - # FIXME: Pedantically, this is the right thing to do, so
  70779. - # that some nasty dependency loop isn't accidentally
  70780. - # broken:
  70781. - #new_libs="$deplib $new_libs"
  70782. - # Pragmatically, this seems to cause very few problems in
  70783. - # practice:
  70784. - case $deplib in
  70785. - -L*) new_libs="$deplib $new_libs" ;;
  70786. - -R*) ;;
  70787. - *)
  70788. - # And here is the reason: when a library appears more
  70789. - # than once as an explicit dependence of a library, or
  70790. - # is implicitly linked in more than once by the
  70791. - # compiler, it is considered special, and multiple
  70792. - # occurrences thereof are not removed. Compare this
  70793. - # with having the same library being listed as a
  70794. - # dependency of multiple other libraries: in this case,
  70795. - # we know (pedantically, we assume) the library does not
  70796. - # need to be listed more than once, so we keep only the
  70797. - # last copy. This is not always right, but it is rare
  70798. - # enough that we require users that really mean to play
  70799. - # such unportable linking tricks to link the library
  70800. - # using -Wl,-lname, so that libtool does not consider it
  70801. - # for duplicate removal.
  70802. - case " $specialdeplibs " in
  70803. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  70804. - *)
  70805. - case " $new_libs " in
  70806. - *" $deplib "*) ;;
  70807. - *) new_libs="$deplib $new_libs" ;;
  70808. - esac
  70809. - ;;
  70810. - esac
  70811. - ;;
  70812. - esac
  70813. - done
  70814. - tmp_libs=
  70815. - for deplib in $new_libs; do
  70816. - case $deplib in
  70817. - -L*)
  70818. - case " $tmp_libs " in
  70819. - *" $deplib "*) ;;
  70820. - *) tmp_libs="$tmp_libs $deplib" ;;
  70821. - esac
  70822. - ;;
  70823. - *) tmp_libs="$tmp_libs $deplib" ;;
  70824. - esac
  70825. - done
  70826. - eval $var=\"$tmp_libs\"
  70827. - done # for var
  70828. - fi
  70829. - # Last step: remove runtime libs from dependency_libs
  70830. - # (they stay in deplibs)
  70831. - tmp_libs=
  70832. - for i in $dependency_libs ; do
  70833. - case " $predeps $postdeps $compiler_lib_search_path " in
  70834. - *" $i "*)
  70835. - i=""
  70836. - ;;
  70837. - esac
  70838. - if test -n "$i" ; then
  70839. - tmp_libs="$tmp_libs $i"
  70840. - fi
  70841. - done
  70842. - dependency_libs=$tmp_libs
  70843. - done # for pass
  70844. - if test "$linkmode" = prog; then
  70845. - dlfiles="$newdlfiles"
  70846. - dlprefiles="$newdlprefiles"
  70847. - fi
  70848. + $ECHO "\
  70849. +#! $SHELL
  70850. - case $linkmode in
  70851. - oldlib)
  70852. - if test -n "$deplibs"; then
  70853. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  70854. - fi
  70855. +# $output - temporary wrapper script for $objdir/$outputname
  70856. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  70857. +#
  70858. +# The $output program cannot be directly executed until all the libtool
  70859. +# libraries that it depends on are installed.
  70860. +#
  70861. +# This wrapper script should never be moved out of the build directory.
  70862. +# If it is, it will not operate correctly.
  70863. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  70864. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  70865. - fi
  70866. +# Sed substitution that helps us do robust quoting. It backslashifies
  70867. +# metacharacters that are still active within double-quoted strings.
  70868. +Xsed='${SED} -e 1s/^X//'
  70869. +sed_quote_subst='$sed_quote_subst'
  70870. - if test -n "$rpath"; then
  70871. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  70872. - fi
  70873. +# Be Bourne compatible
  70874. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  70875. + emulate sh
  70876. + NULLCMD=:
  70877. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  70878. + # is contrary to our usage. Disable this feature.
  70879. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  70880. + setopt NO_GLOB_SUBST
  70881. +else
  70882. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  70883. +fi
  70884. +BIN_SH=xpg4; export BIN_SH # for Tru64
  70885. +DUALCASE=1; export DUALCASE # for MKS sh
  70886. - if test -n "$xrpath"; then
  70887. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  70888. - fi
  70889. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  70890. +# if CDPATH is set.
  70891. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  70892. - if test -n "$vinfo"; then
  70893. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  70894. - fi
  70895. +relink_command=\"$relink_command\"
  70896. - if test -n "$release"; then
  70897. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  70898. - fi
  70899. +# This environment variable determines our operation mode.
  70900. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  70901. + # install mode needs the following variables:
  70902. + generated_by_libtool_version='$macro_version'
  70903. + notinst_deplibs='$notinst_deplibs'
  70904. +else
  70905. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  70906. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  70907. + ECHO=\"$qecho\"
  70908. + file=\"\$0\"
  70909. + # Make sure echo works.
  70910. + if test \"X\$1\" = X--no-reexec; then
  70911. + # Discard the --no-reexec flag, and continue.
  70912. + shift
  70913. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  70914. + # Yippee, \$ECHO works!
  70915. + :
  70916. + else
  70917. + # Restart under the correct shell, and then maybe \$ECHO will work.
  70918. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  70919. + fi
  70920. + fi\
  70921. +"
  70922. + $ECHO "\
  70923. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  70924. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  70925. - fi
  70926. + # Find the directory that this script lives in.
  70927. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  70928. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  70929. - # Now set the variables for building old libraries.
  70930. - build_libtool_libs=no
  70931. - oldlibs="$output"
  70932. - objs="$objs$old_deplibs"
  70933. - ;;
  70934. + # Follow symbolic links until we get to the real thisdir.
  70935. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  70936. + while test -n \"\$file\"; do
  70937. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  70938. - lib)
  70939. - # Make sure we only generate libraries of the form `libNAME.la'.
  70940. - case $outputname in
  70941. - lib*)
  70942. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  70943. - eval shared_ext=\"$shrext_cmds\"
  70944. - eval libname=\"$libname_spec\"
  70945. - ;;
  70946. - *)
  70947. - if test "$module" = no; then
  70948. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  70949. - $echo "$help" 1>&2
  70950. - exit $EXIT_FAILURE
  70951. - fi
  70952. - if test "$need_lib_prefix" != no; then
  70953. - # Add the "lib" prefix for modules if required
  70954. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  70955. - eval shared_ext=\"$shrext_cmds\"
  70956. - eval libname=\"$libname_spec\"
  70957. - else
  70958. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  70959. - fi
  70960. - ;;
  70961. + # If there was a directory component, then change thisdir.
  70962. + if test \"x\$destdir\" != \"x\$file\"; then
  70963. + case \"\$destdir\" in
  70964. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  70965. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  70966. esac
  70967. + fi
  70968. - if test -n "$objs"; then
  70969. - if test "$deplibs_check_method" != pass_all; then
  70970. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  70971. - exit $EXIT_FAILURE
  70972. - else
  70973. - $echo
  70974. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  70975. - $echo "*** objects $objs is not portable!"
  70976. - libobjs="$libobjs $objs"
  70977. - fi
  70978. - fi
  70979. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  70980. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  70981. + done
  70982. +"
  70983. +}
  70984. +# end: func_emit_wrapper_part1
  70985. - if test "$dlself" != no; then
  70986. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  70987. - fi
  70988. +# func_emit_wrapper_part2 [arg=no]
  70989. +#
  70990. +# Emit the second part of a libtool wrapper script on stdout.
  70991. +# For more information, see the description associated with
  70992. +# func_emit_wrapper(), below.
  70993. +func_emit_wrapper_part2 ()
  70994. +{
  70995. + func_emit_wrapper_part2_arg1=no
  70996. + if test -n "$1" ; then
  70997. + func_emit_wrapper_part2_arg1=$1
  70998. + fi
  70999. +
  71000. + $ECHO "\
  71001. +
  71002. + # Usually 'no', except on cygwin/mingw when embedded into
  71003. + # the cwrapper.
  71004. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  71005. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  71006. + # special case for '.'
  71007. + if test \"\$thisdir\" = \".\"; then
  71008. + thisdir=\`pwd\`
  71009. + fi
  71010. + # remove .libs from thisdir
  71011. + case \"\$thisdir\" in
  71012. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  71013. + $objdir ) thisdir=. ;;
  71014. + esac
  71015. + fi
  71016. - set dummy $rpath
  71017. - if test "$#" -gt 2; then
  71018. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  71019. + # Try to get the absolute directory name.
  71020. + absdir=\`cd \"\$thisdir\" && pwd\`
  71021. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  71022. +"
  71023. +
  71024. + if test "$fast_install" = yes; then
  71025. + $ECHO "\
  71026. + program=lt-'$outputname'$exeext
  71027. + progdir=\"\$thisdir/$objdir\"
  71028. +
  71029. + if test ! -f \"\$progdir/\$program\" ||
  71030. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  71031. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  71032. +
  71033. + file=\"\$\$-\$program\"
  71034. +
  71035. + if test ! -d \"\$progdir\"; then
  71036. + $MKDIR \"\$progdir\"
  71037. + else
  71038. + $RM \"\$progdir/\$file\"
  71039. + fi"
  71040. +
  71041. + $ECHO "\
  71042. +
  71043. + # relink executable if necessary
  71044. + if test -n \"\$relink_command\"; then
  71045. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  71046. + else
  71047. + $ECHO \"\$relink_command_output\" >&2
  71048. + $RM \"\$progdir/\$file\"
  71049. + exit 1
  71050. fi
  71051. - install_libdir="$2"
  71052. + fi
  71053. - oldlibs=
  71054. - if test -z "$rpath"; then
  71055. - if test "$build_libtool_libs" = yes; then
  71056. - # Building a libtool convenience library.
  71057. - # Some compilers have problems with a `.al' extension so
  71058. - # convenience libraries should have the same extension an
  71059. - # archive normally would.
  71060. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  71061. - build_libtool_libs=convenience
  71062. - build_old_libs=yes
  71063. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  71064. + { $RM \"\$progdir/\$program\";
  71065. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  71066. + $RM \"\$progdir/\$file\"
  71067. + fi"
  71068. + else
  71069. + $ECHO "\
  71070. + program='$outputname'
  71071. + progdir=\"\$thisdir/$objdir\"
  71072. +"
  71073. fi
  71074. - if test -n "$vinfo"; then
  71075. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  71076. - fi
  71077. + $ECHO "\
  71078. - if test -n "$release"; then
  71079. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  71080. - fi
  71081. - else
  71082. + if test -f \"\$progdir/\$program\"; then"
  71083. - # Parse the version information argument.
  71084. - save_ifs="$IFS"; IFS=':'
  71085. - set dummy $vinfo 0 0 0
  71086. - IFS="$save_ifs"
  71087. + # Export our shlibpath_var if we have one.
  71088. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  71089. + $ECHO "\
  71090. + # Add our own library path to $shlibpath_var
  71091. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  71092. - if test -n "$8"; then
  71093. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  71094. - $echo "$help" 1>&2
  71095. - exit $EXIT_FAILURE
  71096. + # Some systems cannot cope with colon-terminated $shlibpath_var
  71097. + # The second colon is a workaround for a bug in BeOS R4 sed
  71098. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  71099. +
  71100. + export $shlibpath_var
  71101. +"
  71102. fi
  71103. - # convert absolute version numbers to libtool ages
  71104. - # this retains compatibility with .la files and attempts
  71105. - # to make the code below a bit more comprehensible
  71106. + # fixup the dll searchpath if we need to.
  71107. + if test -n "$dllsearchpath"; then
  71108. + $ECHO "\
  71109. + # Add the dll search path components to the executable PATH
  71110. + PATH=$dllsearchpath:\$PATH
  71111. +"
  71112. + fi
  71113. - case $vinfo_number in
  71114. - yes)
  71115. - number_major="$2"
  71116. - number_minor="$3"
  71117. - number_revision="$4"
  71118. - #
  71119. - # There are really only two kinds -- those that
  71120. - # use the current revision as the major version
  71121. - # and those that subtract age and use age as
  71122. - # a minor version. But, then there is irix
  71123. - # which has an extra 1 added just for fun
  71124. - #
  71125. - case $version_type in
  71126. - darwin|linux|osf|windows|none)
  71127. - current=`expr $number_major + $number_minor`
  71128. - age="$number_minor"
  71129. - revision="$number_revision"
  71130. - ;;
  71131. - freebsd-aout|freebsd-elf|sunos)
  71132. - current="$number_major"
  71133. - revision="$number_minor"
  71134. - age="0"
  71135. - ;;
  71136. - irix|nonstopux)
  71137. - current=`expr $number_major + $number_minor`
  71138. - age="$number_minor"
  71139. - revision="$number_minor"
  71140. - lt_irix_increment=no
  71141. - ;;
  71142. - esac
  71143. - ;;
  71144. - no)
  71145. - current="$2"
  71146. - revision="$3"
  71147. - age="$4"
  71148. + $ECHO "\
  71149. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  71150. + # Run the actual program with our arguments.
  71151. +"
  71152. + case $host in
  71153. + # Backslashes separate directories on plain windows
  71154. + *-*-mingw | *-*-os2* | *-cegcc*)
  71155. + $ECHO "\
  71156. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  71157. +"
  71158. ;;
  71159. - esac
  71160. - # Check that each of the things are valid numbers.
  71161. - case $current in
  71162. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  71163. *)
  71164. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  71165. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  71166. - exit $EXIT_FAILURE
  71167. - ;;
  71168. - esac
  71169. -
  71170. - case $revision in
  71171. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  71172. - *)
  71173. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  71174. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  71175. - exit $EXIT_FAILURE
  71176. + $ECHO "\
  71177. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  71178. +"
  71179. ;;
  71180. esac
  71181. + $ECHO "\
  71182. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  71183. + exit 1
  71184. + fi
  71185. + else
  71186. + # The program doesn't exist.
  71187. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  71188. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  71189. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  71190. + exit 1
  71191. + fi
  71192. +fi\
  71193. +"
  71194. +}
  71195. +# end: func_emit_wrapper_part2
  71196. - case $age in
  71197. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  71198. - *)
  71199. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  71200. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  71201. - exit $EXIT_FAILURE
  71202. - ;;
  71203. - esac
  71204. - if test "$age" -gt "$current"; then
  71205. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  71206. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  71207. - exit $EXIT_FAILURE
  71208. +# func_emit_wrapper [arg=no]
  71209. +#
  71210. +# Emit a libtool wrapper script on stdout.
  71211. +# Don't directly open a file because we may want to
  71212. +# incorporate the script contents within a cygwin/mingw
  71213. +# wrapper executable. Must ONLY be called from within
  71214. +# func_mode_link because it depends on a number of variables
  71215. +# set therein.
  71216. +#
  71217. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  71218. +# variable will take. If 'yes', then the emitted script
  71219. +# will assume that the directory in which it is stored is
  71220. +# the $objdir directory. This is a cygwin/mingw-specific
  71221. +# behavior.
  71222. +func_emit_wrapper ()
  71223. +{
  71224. + func_emit_wrapper_arg1=no
  71225. + if test -n "$1" ; then
  71226. + func_emit_wrapper_arg1=$1
  71227. fi
  71228. - # Calculate the version variables.
  71229. - major=
  71230. - versuffix=
  71231. - verstring=
  71232. - case $version_type in
  71233. - none) ;;
  71234. + # split this up so that func_emit_cwrapperexe_src
  71235. + # can call each part independently.
  71236. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  71237. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  71238. +}
  71239. - darwin)
  71240. - # Like Linux, but with the current version available in
  71241. - # verstring for coding it into the library header
  71242. - major=.`expr $current - $age`
  71243. - versuffix="$major.$age.$revision"
  71244. - # Darwin ld doesn't like 0 for these options...
  71245. - minor_current=`expr $current + 1`
  71246. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  71247. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  71248. - ;;
  71249. - freebsd-aout)
  71250. - major=".$current"
  71251. - versuffix=".$current.$revision";
  71252. - ;;
  71253. +# func_to_host_path arg
  71254. +#
  71255. +# Convert paths to host format when used with build tools.
  71256. +# Intended for use with "native" mingw (where libtool itself
  71257. +# is running under the msys shell), or in the following cross-
  71258. +# build environments:
  71259. +# $build $host
  71260. +# mingw (msys) mingw [e.g. native]
  71261. +# cygwin mingw
  71262. +# *nix + wine mingw
  71263. +# where wine is equipped with the `winepath' executable.
  71264. +# In the native mingw case, the (msys) shell automatically
  71265. +# converts paths for any non-msys applications it launches,
  71266. +# but that facility isn't available from inside the cwrapper.
  71267. +# Similar accommodations are necessary for $host mingw and
  71268. +# $build cygwin. Calling this function does no harm for other
  71269. +# $host/$build combinations not listed above.
  71270. +#
  71271. +# ARG is the path (on $build) that should be converted to
  71272. +# the proper representation for $host. The result is stored
  71273. +# in $func_to_host_path_result.
  71274. +func_to_host_path ()
  71275. +{
  71276. + func_to_host_path_result="$1"
  71277. + if test -n "$1" ; then
  71278. + case $host in
  71279. + *mingw* )
  71280. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  71281. + case $build in
  71282. + *mingw* ) # actually, msys
  71283. + # awkward: cmd appends spaces to result
  71284. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  71285. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  71286. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  71287. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  71288. + $SED -e "$lt_sed_naive_backslashify"`
  71289. + ;;
  71290. + *cygwin* )
  71291. + func_to_host_path_tmp1=`cygpath -w "$1"`
  71292. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  71293. + $SED -e "$lt_sed_naive_backslashify"`
  71294. + ;;
  71295. + * )
  71296. + # Unfortunately, winepath does not exit with a non-zero
  71297. + # error code, so we are forced to check the contents of
  71298. + # stdout. On the other hand, if the command is not
  71299. + # found, the shell will set an exit code of 127 and print
  71300. + # *an error message* to stdout. So we must check for both
  71301. + # error code of zero AND non-empty stdout, which explains
  71302. + # the odd construction:
  71303. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  71304. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  71305. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  71306. + $SED -e "$lt_sed_naive_backslashify"`
  71307. + else
  71308. + # Allow warning below.
  71309. + func_to_host_path_result=""
  71310. + fi
  71311. + ;;
  71312. + esac
  71313. + if test -z "$func_to_host_path_result" ; then
  71314. + func_error "Could not determine host path corresponding to"
  71315. + func_error " '$1'"
  71316. + func_error "Continuing, but uninstalled executables may not work."
  71317. + # Fallback:
  71318. + func_to_host_path_result="$1"
  71319. + fi
  71320. + ;;
  71321. + esac
  71322. + fi
  71323. +}
  71324. +# end: func_to_host_path
  71325. - freebsd-elf)
  71326. - major=".$current"
  71327. - versuffix=".$current";
  71328. - ;;
  71329. +# func_to_host_pathlist arg
  71330. +#
  71331. +# Convert pathlists to host format when used with build tools.
  71332. +# See func_to_host_path(), above. This function supports the
  71333. +# following $build/$host combinations (but does no harm for
  71334. +# combinations not listed here):
  71335. +# $build $host
  71336. +# mingw (msys) mingw [e.g. native]
  71337. +# cygwin mingw
  71338. +# *nix + wine mingw
  71339. +#
  71340. +# Path separators are also converted from $build format to
  71341. +# $host format. If ARG begins or ends with a path separator
  71342. +# character, it is preserved (but converted to $host format)
  71343. +# on output.
  71344. +#
  71345. +# ARG is a pathlist (on $build) that should be converted to
  71346. +# the proper representation on $host. The result is stored
  71347. +# in $func_to_host_pathlist_result.
  71348. +func_to_host_pathlist ()
  71349. +{
  71350. + func_to_host_pathlist_result="$1"
  71351. + if test -n "$1" ; then
  71352. + case $host in
  71353. + *mingw* )
  71354. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  71355. + # Remove leading and trailing path separator characters from
  71356. + # ARG. msys behavior is inconsistent here, cygpath turns them
  71357. + # into '.;' and ';.', and winepath ignores them completely.
  71358. + func_to_host_pathlist_tmp2="$1"
  71359. + # Once set for this call, this variable should not be
  71360. + # reassigned. It is used in tha fallback case.
  71361. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  71362. + $SED -e 's|^:*||' -e 's|:*$||'`
  71363. + case $build in
  71364. + *mingw* ) # Actually, msys.
  71365. + # Awkward: cmd appends spaces to result.
  71366. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  71367. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  71368. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  71369. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  71370. + $SED -e "$lt_sed_naive_backslashify"`
  71371. + ;;
  71372. + *cygwin* )
  71373. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  71374. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  71375. + $SED -e "$lt_sed_naive_backslashify"`
  71376. + ;;
  71377. + * )
  71378. + # unfortunately, winepath doesn't convert pathlists
  71379. + func_to_host_pathlist_result=""
  71380. + func_to_host_pathlist_oldIFS=$IFS
  71381. + IFS=:
  71382. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  71383. + IFS=$func_to_host_pathlist_oldIFS
  71384. + if test -n "$func_to_host_pathlist_f" ; then
  71385. + func_to_host_path "$func_to_host_pathlist_f"
  71386. + if test -n "$func_to_host_path_result" ; then
  71387. + if test -z "$func_to_host_pathlist_result" ; then
  71388. + func_to_host_pathlist_result="$func_to_host_path_result"
  71389. + else
  71390. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  71391. + fi
  71392. + fi
  71393. + fi
  71394. + IFS=:
  71395. + done
  71396. + IFS=$func_to_host_pathlist_oldIFS
  71397. + ;;
  71398. + esac
  71399. + if test -z "$func_to_host_pathlist_result" ; then
  71400. + func_error "Could not determine the host path(s) corresponding to"
  71401. + func_error " '$1'"
  71402. + func_error "Continuing, but uninstalled executables may not work."
  71403. + # Fallback. This may break if $1 contains DOS-style drive
  71404. + # specifications. The fix is not to complicate the expression
  71405. + # below, but for the user to provide a working wine installation
  71406. + # with winepath so that path translation in the cross-to-mingw
  71407. + # case works properly.
  71408. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  71409. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  71410. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  71411. + fi
  71412. + # Now, add the leading and trailing path separators back
  71413. + case "$1" in
  71414. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  71415. + ;;
  71416. + esac
  71417. + case "$1" in
  71418. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  71419. + ;;
  71420. + esac
  71421. + ;;
  71422. + esac
  71423. + fi
  71424. +}
  71425. +# end: func_to_host_pathlist
  71426. - irix | nonstopux)
  71427. - if test "X$lt_irix_increment" = "Xno"; then
  71428. - major=`expr $current - $age`
  71429. - else
  71430. - major=`expr $current - $age + 1`
  71431. - fi
  71432. - case $version_type in
  71433. - nonstopux) verstring_prefix=nonstopux ;;
  71434. - *) verstring_prefix=sgi ;;
  71435. - esac
  71436. - verstring="$verstring_prefix$major.$revision"
  71437. +# func_emit_cwrapperexe_src
  71438. +# emit the source code for a wrapper executable on stdout
  71439. +# Must ONLY be called from within func_mode_link because
  71440. +# it depends on a number of variable set therein.
  71441. +func_emit_cwrapperexe_src ()
  71442. +{
  71443. + cat <<EOF
  71444. - # Add in all the interfaces that we are compatible with.
  71445. - loop=$revision
  71446. - while test "$loop" -ne 0; do
  71447. - iface=`expr $revision - $loop`
  71448. - loop=`expr $loop - 1`
  71449. - verstring="$verstring_prefix$major.$iface:$verstring"
  71450. - done
  71451. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  71452. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  71453. - # Before this point, $major must not contain `.'.
  71454. - major=.$major
  71455. - versuffix="$major.$revision"
  71456. - ;;
  71457. + The $output program cannot be directly executed until all the libtool
  71458. + libraries that it depends on are installed.
  71459. - linux)
  71460. - major=.`expr $current - $age`
  71461. - versuffix="$major.$age.$revision"
  71462. - ;;
  71463. + This wrapper executable should never be moved out of the build directory.
  71464. + If it is, it will not operate correctly.
  71465. - osf)
  71466. - major=.`expr $current - $age`
  71467. - versuffix=".$current.$age.$revision"
  71468. - verstring="$current.$age.$revision"
  71469. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  71470. + but could eventually absorb all of the scripts functionality and
  71471. + exec $objdir/$outputname directly.
  71472. +*/
  71473. +EOF
  71474. + cat <<"EOF"
  71475. +#include <stdio.h>
  71476. +#include <stdlib.h>
  71477. +#ifdef _MSC_VER
  71478. +# include <direct.h>
  71479. +# include <process.h>
  71480. +# include <io.h>
  71481. +# define setmode _setmode
  71482. +#else
  71483. +# include <unistd.h>
  71484. +# include <stdint.h>
  71485. +# ifdef __CYGWIN__
  71486. +# include <io.h>
  71487. +# define HAVE_SETENV
  71488. +# ifdef __STRICT_ANSI__
  71489. +char *realpath (const char *, char *);
  71490. +int putenv (char *);
  71491. +int setenv (const char *, const char *, int);
  71492. +# endif
  71493. +# endif
  71494. +#endif
  71495. +#include <malloc.h>
  71496. +#include <stdarg.h>
  71497. +#include <assert.h>
  71498. +#include <string.h>
  71499. +#include <ctype.h>
  71500. +#include <errno.h>
  71501. +#include <fcntl.h>
  71502. +#include <sys/stat.h>
  71503. - # Add in all the interfaces that we are compatible with.
  71504. - loop=$age
  71505. - while test "$loop" -ne 0; do
  71506. - iface=`expr $current - $loop`
  71507. - loop=`expr $loop - 1`
  71508. - verstring="$verstring:${iface}.0"
  71509. - done
  71510. +#if defined(PATH_MAX)
  71511. +# define LT_PATHMAX PATH_MAX
  71512. +#elif defined(MAXPATHLEN)
  71513. +# define LT_PATHMAX MAXPATHLEN
  71514. +#else
  71515. +# define LT_PATHMAX 1024
  71516. +#endif
  71517. - # Make executables depend on our current version.
  71518. - verstring="$verstring:${current}.0"
  71519. - ;;
  71520. +#ifndef S_IXOTH
  71521. +# define S_IXOTH 0
  71522. +#endif
  71523. +#ifndef S_IXGRP
  71524. +# define S_IXGRP 0
  71525. +#endif
  71526. - sunos)
  71527. - major=".$current"
  71528. - versuffix=".$current.$revision"
  71529. - ;;
  71530. +#ifdef _MSC_VER
  71531. +# define S_IXUSR _S_IEXEC
  71532. +# define stat _stat
  71533. +# ifndef _INTPTR_T_DEFINED
  71534. +# define intptr_t int
  71535. +# endif
  71536. +#endif
  71537. - windows)
  71538. - # Use '-' rather than '.', since we only want one
  71539. - # extension on DOS 8.3 filesystems.
  71540. - major=`expr $current - $age`
  71541. - versuffix="-$major"
  71542. - ;;
  71543. +#ifndef DIR_SEPARATOR
  71544. +# define DIR_SEPARATOR '/'
  71545. +# define PATH_SEPARATOR ':'
  71546. +#endif
  71547. - *)
  71548. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  71549. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  71550. - exit $EXIT_FAILURE
  71551. - ;;
  71552. - esac
  71553. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  71554. + defined (__OS2__)
  71555. +# define HAVE_DOS_BASED_FILE_SYSTEM
  71556. +# define FOPEN_WB "wb"
  71557. +# ifndef DIR_SEPARATOR_2
  71558. +# define DIR_SEPARATOR_2 '\\'
  71559. +# endif
  71560. +# ifndef PATH_SEPARATOR_2
  71561. +# define PATH_SEPARATOR_2 ';'
  71562. +# endif
  71563. +#endif
  71564. - # Clear the version info if we defaulted, and they specified a release.
  71565. - if test -z "$vinfo" && test -n "$release"; then
  71566. - major=
  71567. - case $version_type in
  71568. - darwin)
  71569. - # we can't check for "0.0" in archive_cmds due to quoting
  71570. - # problems, so we reset it completely
  71571. - verstring=
  71572. - ;;
  71573. - *)
  71574. - verstring="0.0"
  71575. - ;;
  71576. - esac
  71577. - if test "$need_version" = no; then
  71578. - versuffix=
  71579. - else
  71580. - versuffix=".0.0"
  71581. - fi
  71582. - fi
  71583. +#ifndef DIR_SEPARATOR_2
  71584. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  71585. +#else /* DIR_SEPARATOR_2 */
  71586. +# define IS_DIR_SEPARATOR(ch) \
  71587. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  71588. +#endif /* DIR_SEPARATOR_2 */
  71589. - # Remove version info from name if versioning should be avoided
  71590. - if test "$avoid_version" = yes && test "$need_version" = no; then
  71591. - major=
  71592. - versuffix=
  71593. - verstring=""
  71594. - fi
  71595. +#ifndef PATH_SEPARATOR_2
  71596. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  71597. +#else /* PATH_SEPARATOR_2 */
  71598. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  71599. +#endif /* PATH_SEPARATOR_2 */
  71600. - # Check to see if the archive will have undefined symbols.
  71601. - if test "$allow_undefined" = yes; then
  71602. - if test "$allow_undefined_flag" = unsupported; then
  71603. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  71604. - build_libtool_libs=no
  71605. - build_old_libs=yes
  71606. - fi
  71607. - else
  71608. - # Don't allow undefined symbols.
  71609. - allow_undefined_flag="$no_undefined_flag"
  71610. - fi
  71611. - fi
  71612. +#ifdef __CYGWIN__
  71613. +# define FOPEN_WB "wb"
  71614. +#endif
  71615. - if test "$mode" != relink; then
  71616. - # Remove our outputs, but don't remove object files since they
  71617. - # may have been created when compiling PIC objects.
  71618. - removelist=
  71619. - tempremovelist=`$echo "$output_objdir/*"`
  71620. - for p in $tempremovelist; do
  71621. - case $p in
  71622. - *.$objext)
  71623. - ;;
  71624. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  71625. - if test "X$precious_files_regex" != "X"; then
  71626. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  71627. - then
  71628. - continue
  71629. - fi
  71630. - fi
  71631. - removelist="$removelist $p"
  71632. - ;;
  71633. - *) ;;
  71634. - esac
  71635. - done
  71636. - if test -n "$removelist"; then
  71637. - $show "${rm}r $removelist"
  71638. - $run ${rm}r $removelist
  71639. - fi
  71640. - fi
  71641. +#ifndef FOPEN_WB
  71642. +# define FOPEN_WB "w"
  71643. +#endif
  71644. +#ifndef _O_BINARY
  71645. +# define _O_BINARY 0
  71646. +#endif
  71647. - # Now set the variables for building old libraries.
  71648. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  71649. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  71650. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  71651. +#define XFREE(stale) do { \
  71652. + if (stale) { free ((void *) stale); stale = 0; } \
  71653. +} while (0)
  71654. - # Transform .lo files to .o files.
  71655. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  71656. - fi
  71657. +#undef LTWRAPPER_DEBUGPRINTF
  71658. +#if defined DEBUGWRAPPER
  71659. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  71660. +static void
  71661. +ltwrapper_debugprintf (const char *fmt, ...)
  71662. +{
  71663. + va_list args;
  71664. + va_start (args, fmt);
  71665. + (void) vfprintf (stderr, fmt, args);
  71666. + va_end (args);
  71667. +}
  71668. +#else
  71669. +# define LTWRAPPER_DEBUGPRINTF(args)
  71670. +#endif
  71671. - # Eliminate all temporary directories.
  71672. - #for path in $notinst_path; do
  71673. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  71674. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  71675. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  71676. - #done
  71677. +const char *program_name = NULL;
  71678. - if test -n "$xrpath"; then
  71679. - # If the user specified any rpath flags, then add them.
  71680. - temp_xrpath=
  71681. - for libdir in $xrpath; do
  71682. - temp_xrpath="$temp_xrpath -R$libdir"
  71683. - case "$finalize_rpath " in
  71684. - *" $libdir "*) ;;
  71685. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  71686. - esac
  71687. - done
  71688. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  71689. - dependency_libs="$temp_xrpath $dependency_libs"
  71690. - fi
  71691. - fi
  71692. +void *xmalloc (size_t num);
  71693. +char *xstrdup (const char *string);
  71694. +const char *base_name (const char *name);
  71695. +char *find_executable (const char *wrapper);
  71696. +char *chase_symlinks (const char *pathspec);
  71697. +int make_executable (const char *path);
  71698. +int check_executable (const char *path);
  71699. +char *strendzap (char *str, const char *pat);
  71700. +void lt_fatal (const char *message, ...);
  71701. +void lt_setenv (const char *name, const char *value);
  71702. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  71703. +void lt_opt_process_env_set (const char *arg);
  71704. +void lt_opt_process_env_prepend (const char *arg);
  71705. +void lt_opt_process_env_append (const char *arg);
  71706. +int lt_split_name_value (const char *arg, char** name, char** value);
  71707. +void lt_update_exe_path (const char *name, const char *value);
  71708. +void lt_update_lib_path (const char *name, const char *value);
  71709. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  71710. - old_dlfiles="$dlfiles"
  71711. - dlfiles=
  71712. - for lib in $old_dlfiles; do
  71713. - case " $dlprefiles $dlfiles " in
  71714. - *" $lib "*) ;;
  71715. - *) dlfiles="$dlfiles $lib" ;;
  71716. - esac
  71717. - done
  71718. +static const char *script_text_part1 =
  71719. +EOF
  71720. - # Make sure dlprefiles contains only unique files
  71721. - old_dlprefiles="$dlprefiles"
  71722. - dlprefiles=
  71723. - for lib in $old_dlprefiles; do
  71724. - case "$dlprefiles " in
  71725. - *" $lib "*) ;;
  71726. - *) dlprefiles="$dlprefiles $lib" ;;
  71727. - esac
  71728. - done
  71729. + func_emit_wrapper_part1 yes |
  71730. + $SED -e 's/\([\\"]\)/\\\1/g' \
  71731. + -e 's/^/ "/' -e 's/$/\\n"/'
  71732. + echo ";"
  71733. + cat <<EOF
  71734. - if test "$build_libtool_libs" = yes; then
  71735. - if test -n "$rpath"; then
  71736. - case $host in
  71737. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  71738. - # these systems don't actually have a c library (as such)!
  71739. - ;;
  71740. - *-*-rhapsody* | *-*-darwin1.[012])
  71741. - # Rhapsody C library is in the System framework
  71742. - deplibs="$deplibs -framework System"
  71743. - ;;
  71744. - *-*-netbsd*)
  71745. - # Don't link with libc until the a.out ld.so is fixed.
  71746. - ;;
  71747. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  71748. - # Do not include libc due to us having libc/libc_r.
  71749. - ;;
  71750. - *-*-sco3.2v5* | *-*-sco5v6*)
  71751. - # Causes problems with __ctype
  71752. - ;;
  71753. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  71754. - # Compiler inserts libc in the correct place for threads to work
  71755. - ;;
  71756. - *)
  71757. - # Add libc to deplibs on all other systems if necessary.
  71758. - if test "$build_libtool_need_lc" = "yes"; then
  71759. - deplibs="$deplibs -lc"
  71760. - fi
  71761. - ;;
  71762. - esac
  71763. - fi
  71764. +static const char *script_text_part2 =
  71765. +EOF
  71766. + func_emit_wrapper_part2 yes |
  71767. + $SED -e 's/\([\\"]\)/\\\1/g' \
  71768. + -e 's/^/ "/' -e 's/$/\\n"/'
  71769. + echo ";"
  71770. +
  71771. + cat <<EOF
  71772. +const char * MAGIC_EXE = "$magic_exe";
  71773. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  71774. +EOF
  71775. - # Transform deplibs into only deplibs that can be linked in shared.
  71776. - name_save=$name
  71777. - libname_save=$libname
  71778. - release_save=$release
  71779. - versuffix_save=$versuffix
  71780. - major_save=$major
  71781. - # I'm not sure if I'm treating the release correctly. I think
  71782. - # release should show up in the -l (ie -lgmp5) so we don't want to
  71783. - # add it in twice. Is that correct?
  71784. - release=""
  71785. - versuffix=""
  71786. - major=""
  71787. - newdeplibs=
  71788. - droppeddeps=no
  71789. - case $deplibs_check_method in
  71790. - pass_all)
  71791. - # Don't check for shared/static. Everything works.
  71792. - # This might be a little naive. We might want to check
  71793. - # whether the library exists or not. But this is on
  71794. - # osf3 & osf4 and I'm not really sure... Just
  71795. - # implementing what was already the behavior.
  71796. - newdeplibs=$deplibs
  71797. - ;;
  71798. - test_compile)
  71799. - # This code stresses the "libraries are programs" paradigm to its
  71800. - # limits. Maybe even breaks it. We compile a program, linking it
  71801. - # against the deplibs as a proxy for the library. Then we can check
  71802. - # whether they linked in statically or dynamically with ldd.
  71803. - $rm conftest.c
  71804. - cat > conftest.c <<EOF
  71805. - int main() { return 0; }
  71806. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  71807. + func_to_host_pathlist "$temp_rpath"
  71808. + cat <<EOF
  71809. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  71810. EOF
  71811. - $rm conftest
  71812. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  71813. - ldd_output=`ldd conftest`
  71814. - for i in $deplibs; do
  71815. - name=`expr $i : '-l\(.*\)'`
  71816. - # If $name is empty we are operating on a -L argument.
  71817. - if test "$name" != "" && test "$name" != "0"; then
  71818. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  71819. - case " $predeps $postdeps " in
  71820. - *" $i "*)
  71821. - newdeplibs="$newdeplibs $i"
  71822. - i=""
  71823. - ;;
  71824. - esac
  71825. - fi
  71826. - if test -n "$i" ; then
  71827. - libname=`eval \\$echo \"$libname_spec\"`
  71828. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  71829. - set dummy $deplib_matches
  71830. - deplib_match=$2
  71831. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  71832. - newdeplibs="$newdeplibs $i"
  71833. - else
  71834. - droppeddeps=yes
  71835. - $echo
  71836. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  71837. - $echo "*** I have the capability to make that library automatically link in when"
  71838. - $echo "*** you link to this library. But I can only do this if you have a"
  71839. - $echo "*** shared version of the library, which I believe you do not have"
  71840. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  71841. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  71842. - fi
  71843. - fi
  71844. - else
  71845. - newdeplibs="$newdeplibs $i"
  71846. - fi
  71847. - done
  71848. - else
  71849. - # Error occurred in the first compile. Let's try to salvage
  71850. - # the situation: Compile a separate program for each library.
  71851. - for i in $deplibs; do
  71852. - name=`expr $i : '-l\(.*\)'`
  71853. - # If $name is empty we are operating on a -L argument.
  71854. - if test "$name" != "" && test "$name" != "0"; then
  71855. - $rm conftest
  71856. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  71857. - ldd_output=`ldd conftest`
  71858. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  71859. - case " $predeps $postdeps " in
  71860. - *" $i "*)
  71861. - newdeplibs="$newdeplibs $i"
  71862. - i=""
  71863. - ;;
  71864. - esac
  71865. - fi
  71866. - if test -n "$i" ; then
  71867. - libname=`eval \\$echo \"$libname_spec\"`
  71868. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  71869. - set dummy $deplib_matches
  71870. - deplib_match=$2
  71871. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  71872. - newdeplibs="$newdeplibs $i"
  71873. - else
  71874. - droppeddeps=yes
  71875. - $echo
  71876. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  71877. - $echo "*** I have the capability to make that library automatically link in when"
  71878. - $echo "*** you link to this library. But I can only do this if you have a"
  71879. - $echo "*** shared version of the library, which you do not appear to have"
  71880. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  71881. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  71882. - fi
  71883. - fi
  71884. - else
  71885. - droppeddeps=yes
  71886. - $echo
  71887. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  71888. - $echo "*** make it link in! You will probably need to install it or some"
  71889. - $echo "*** library that it depends on before this library will be fully"
  71890. - $echo "*** functional. Installing it before continuing would be even better."
  71891. - fi
  71892. - else
  71893. - newdeplibs="$newdeplibs $i"
  71894. - fi
  71895. - done
  71896. - fi
  71897. - ;;
  71898. - file_magic*)
  71899. - set dummy $deplibs_check_method
  71900. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  71901. - for a_deplib in $deplibs; do
  71902. - name=`expr $a_deplib : '-l\(.*\)'`
  71903. - # If $name is empty we are operating on a -L argument.
  71904. - if test "$name" != "" && test "$name" != "0"; then
  71905. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  71906. - case " $predeps $postdeps " in
  71907. - *" $a_deplib "*)
  71908. - newdeplibs="$newdeplibs $a_deplib"
  71909. - a_deplib=""
  71910. - ;;
  71911. - esac
  71912. - fi
  71913. - if test -n "$a_deplib" ; then
  71914. - libname=`eval \\$echo \"$libname_spec\"`
  71915. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  71916. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  71917. - for potent_lib in $potential_libs; do
  71918. - # Follow soft links.
  71919. - if ls -lLd "$potent_lib" 2>/dev/null \
  71920. - | grep " -> " >/dev/null; then
  71921. - continue
  71922. - fi
  71923. - # The statement above tries to avoid entering an
  71924. - # endless loop below, in case of cyclic links.
  71925. - # We might still enter an endless loop, since a link
  71926. - # loop can be closed while we follow links,
  71927. - # but so what?
  71928. - potlib="$potent_lib"
  71929. - while test -h "$potlib" 2>/dev/null; do
  71930. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  71931. - case $potliblink in
  71932. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  71933. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  71934. - esac
  71935. - done
  71936. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  71937. - | ${SED} 10q \
  71938. - | $EGREP "$file_magic_regex" > /dev/null; then
  71939. - newdeplibs="$newdeplibs $a_deplib"
  71940. - a_deplib=""
  71941. - break 2
  71942. - fi
  71943. - done
  71944. - done
  71945. - fi
  71946. - if test -n "$a_deplib" ; then
  71947. - droppeddeps=yes
  71948. - $echo
  71949. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  71950. - $echo "*** I have the capability to make that library automatically link in when"
  71951. - $echo "*** you link to this library. But I can only do this if you have a"
  71952. - $echo "*** shared version of the library, which you do not appear to have"
  71953. - $echo "*** because I did check the linker path looking for a file starting"
  71954. - if test -z "$potlib" ; then
  71955. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  71956. - else
  71957. - $echo "*** with $libname and none of the candidates passed a file format test"
  71958. - $echo "*** using a file magic. Last file checked: $potlib"
  71959. - fi
  71960. - fi
  71961. else
  71962. - # Add a -L argument.
  71963. - newdeplibs="$newdeplibs $a_deplib"
  71964. + cat <<"EOF"
  71965. +const char * LIB_PATH_VALUE = "";
  71966. +EOF
  71967. fi
  71968. - done # Gone through all deplibs.
  71969. - ;;
  71970. - match_pattern*)
  71971. - set dummy $deplibs_check_method
  71972. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  71973. - for a_deplib in $deplibs; do
  71974. - name=`expr $a_deplib : '-l\(.*\)'`
  71975. - # If $name is empty we are operating on a -L argument.
  71976. - if test -n "$name" && test "$name" != "0"; then
  71977. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  71978. - case " $predeps $postdeps " in
  71979. - *" $a_deplib "*)
  71980. - newdeplibs="$newdeplibs $a_deplib"
  71981. - a_deplib=""
  71982. - ;;
  71983. - esac
  71984. - fi
  71985. - if test -n "$a_deplib" ; then
  71986. - libname=`eval \\$echo \"$libname_spec\"`
  71987. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  71988. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  71989. - for potent_lib in $potential_libs; do
  71990. - potlib="$potent_lib" # see symlink-check above in file_magic test
  71991. - if eval $echo \"$potent_lib\" 2>/dev/null \
  71992. - | ${SED} 10q \
  71993. - | $EGREP "$match_pattern_regex" > /dev/null; then
  71994. - newdeplibs="$newdeplibs $a_deplib"
  71995. - a_deplib=""
  71996. - break 2
  71997. - fi
  71998. - done
  71999. - done
  72000. - fi
  72001. - if test -n "$a_deplib" ; then
  72002. - droppeddeps=yes
  72003. - $echo
  72004. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  72005. - $echo "*** I have the capability to make that library automatically link in when"
  72006. - $echo "*** you link to this library. But I can only do this if you have a"
  72007. - $echo "*** shared version of the library, which you do not appear to have"
  72008. - $echo "*** because I did check the linker path looking for a file starting"
  72009. - if test -z "$potlib" ; then
  72010. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  72011. - else
  72012. - $echo "*** with $libname and none of the candidates passed a file format test"
  72013. - $echo "*** using a regex pattern. Last file checked: $potlib"
  72014. - fi
  72015. - fi
  72016. +
  72017. + if test -n "$dllsearchpath"; then
  72018. + func_to_host_pathlist "$dllsearchpath:"
  72019. + cat <<EOF
  72020. +const char * EXE_PATH_VARNAME = "PATH";
  72021. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  72022. +EOF
  72023. else
  72024. - # Add a -L argument.
  72025. - newdeplibs="$newdeplibs $a_deplib"
  72026. + cat <<"EOF"
  72027. +const char * EXE_PATH_VARNAME = "";
  72028. +const char * EXE_PATH_VALUE = "";
  72029. +EOF
  72030. fi
  72031. - done # Gone through all deplibs.
  72032. - ;;
  72033. - none | unknown | *)
  72034. - newdeplibs=""
  72035. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  72036. - -e 's/ -[LR][^ ]*//g'`
  72037. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  72038. - for i in $predeps $postdeps ; do
  72039. - # can't use Xsed below, because $i might contain '/'
  72040. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  72041. - done
  72042. - fi
  72043. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  72044. - | grep . >/dev/null; then
  72045. - $echo
  72046. - if test "X$deplibs_check_method" = "Xnone"; then
  72047. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  72048. +
  72049. + if test "$fast_install" = yes; then
  72050. + cat <<EOF
  72051. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  72052. +EOF
  72053. else
  72054. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  72055. + cat <<EOF
  72056. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  72057. +EOF
  72058. fi
  72059. - $echo "*** All declared inter-library dependencies are being dropped."
  72060. - droppeddeps=yes
  72061. - fi
  72062. - ;;
  72063. - esac
  72064. - versuffix=$versuffix_save
  72065. - major=$major_save
  72066. - release=$release_save
  72067. - libname=$libname_save
  72068. - name=$name_save
  72069. - case $host in
  72070. - *-*-rhapsody* | *-*-darwin1.[012])
  72071. - # On Rhapsody replace the C library is the System framework
  72072. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  72073. - ;;
  72074. - esac
  72075. - if test "$droppeddeps" = yes; then
  72076. - if test "$module" = yes; then
  72077. - $echo
  72078. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  72079. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  72080. - $echo "*** a static module, that should work as long as the dlopening"
  72081. - $echo "*** application is linked with the -dlopen flag."
  72082. - if test -z "$global_symbol_pipe"; then
  72083. - $echo
  72084. - $echo "*** However, this would only work if libtool was able to extract symbol"
  72085. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  72086. - $echo "*** not find such a program. So, this module is probably useless."
  72087. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  72088. - fi
  72089. - if test "$build_old_libs" = no; then
  72090. - oldlibs="$output_objdir/$libname.$libext"
  72091. - build_libtool_libs=module
  72092. - build_old_libs=yes
  72093. - else
  72094. - build_libtool_libs=no
  72095. - fi
  72096. - else
  72097. - $echo "*** The inter-library dependencies that have been dropped here will be"
  72098. - $echo "*** automatically added whenever a program is linked with this library"
  72099. - $echo "*** or is declared to -dlopen it."
  72100. + cat <<"EOF"
  72101. - if test "$allow_undefined" = no; then
  72102. - $echo
  72103. - $echo "*** Since this library must not contain undefined symbols,"
  72104. - $echo "*** because either the platform does not support them or"
  72105. - $echo "*** it was explicitly requested with -no-undefined,"
  72106. - $echo "*** libtool will only create a static version of it."
  72107. - if test "$build_old_libs" = no; then
  72108. - oldlibs="$output_objdir/$libname.$libext"
  72109. - build_libtool_libs=module
  72110. - build_old_libs=yes
  72111. - else
  72112. - build_libtool_libs=no
  72113. - fi
  72114. - fi
  72115. - fi
  72116. - fi
  72117. - # Done checking deplibs!
  72118. - deplibs=$newdeplibs
  72119. - fi
  72120. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  72121. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  72122. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  72123. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  72124. - # move library search paths that coincide with paths to not yet
  72125. - # installed libraries to the beginning of the library search list
  72126. - new_libs=
  72127. - for path in $notinst_path; do
  72128. - case " $new_libs " in
  72129. - *" -L$path/$objdir "*) ;;
  72130. - *)
  72131. - case " $deplibs " in
  72132. - *" -L$path/$objdir "*)
  72133. - new_libs="$new_libs -L$path/$objdir" ;;
  72134. - esac
  72135. - ;;
  72136. - esac
  72137. - done
  72138. - for deplib in $deplibs; do
  72139. - case $deplib in
  72140. - -L*)
  72141. - case " $new_libs " in
  72142. - *" $deplib "*) ;;
  72143. - *) new_libs="$new_libs $deplib" ;;
  72144. - esac
  72145. - ;;
  72146. - *) new_libs="$new_libs $deplib" ;;
  72147. - esac
  72148. - done
  72149. - deplibs="$new_libs"
  72150. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  72151. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  72152. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  72153. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  72154. - # All the library-specific variables (install_libdir is set above).
  72155. - library_names=
  72156. - old_library=
  72157. - dlname=
  72158. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  72159. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  72160. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  72161. - # Test again, we may have decided not to build it any more
  72162. - if test "$build_libtool_libs" = yes; then
  72163. - if test "$hardcode_into_libs" = yes; then
  72164. - # Hardcode the library paths
  72165. - hardcode_libdirs=
  72166. - dep_rpath=
  72167. - rpath="$finalize_rpath"
  72168. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  72169. - for libdir in $rpath; do
  72170. - if test -n "$hardcode_libdir_flag_spec"; then
  72171. - if test -n "$hardcode_libdir_separator"; then
  72172. - if test -z "$hardcode_libdirs"; then
  72173. - hardcode_libdirs="$libdir"
  72174. - else
  72175. - # Just accumulate the unique libdirs.
  72176. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  72177. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  72178. - ;;
  72179. - *)
  72180. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  72181. - ;;
  72182. - esac
  72183. - fi
  72184. - else
  72185. - eval flag=\"$hardcode_libdir_flag_spec\"
  72186. - dep_rpath="$dep_rpath $flag"
  72187. - fi
  72188. - elif test -n "$runpath_var"; then
  72189. - case "$perm_rpath " in
  72190. - *" $libdir "*) ;;
  72191. - *) perm_rpath="$perm_rpath $libdir" ;;
  72192. - esac
  72193. - fi
  72194. - done
  72195. - # Substitute the hardcoded libdirs into the rpath.
  72196. - if test -n "$hardcode_libdir_separator" &&
  72197. - test -n "$hardcode_libdirs"; then
  72198. - libdir="$hardcode_libdirs"
  72199. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  72200. - case $archive_cmds in
  72201. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  72202. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  72203. - esac
  72204. - else
  72205. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  72206. - fi
  72207. - fi
  72208. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  72209. - # We should set the runpath_var.
  72210. - rpath=
  72211. - for dir in $perm_rpath; do
  72212. - rpath="$rpath$dir:"
  72213. - done
  72214. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  72215. - fi
  72216. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  72217. - fi
  72218. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  72219. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  72220. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  72221. - shlibpath="$finalize_shlibpath"
  72222. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  72223. - if test -n "$shlibpath"; then
  72224. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  72225. - fi
  72226. +int
  72227. +main (int argc, char *argv[])
  72228. +{
  72229. + char **newargz;
  72230. + int newargc;
  72231. + char *tmp_pathspec;
  72232. + char *actual_cwrapper_path;
  72233. + char *actual_cwrapper_name;
  72234. + char *target_name;
  72235. + char *lt_argv_zero;
  72236. + intptr_t rval = 127;
  72237. - # Get the real and link names of the library.
  72238. - eval shared_ext=\"$shrext_cmds\"
  72239. - eval library_names=\"$library_names_spec\"
  72240. - set dummy $library_names
  72241. - realname="$2"
  72242. - shift; shift
  72243. + int i;
  72244. - if test -n "$soname_spec"; then
  72245. - eval soname=\"$soname_spec\"
  72246. - else
  72247. - soname="$realname"
  72248. - fi
  72249. - if test -z "$dlname"; then
  72250. - dlname=$soname
  72251. - fi
  72252. + program_name = (char *) xstrdup (base_name (argv[0]));
  72253. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  72254. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  72255. - lib="$output_objdir/$realname"
  72256. - linknames=
  72257. - for link
  72258. - do
  72259. - linknames="$linknames $link"
  72260. - done
  72261. + /* very simple arg parsing; don't want to rely on getopt */
  72262. + for (i = 1; i < argc; i++)
  72263. + {
  72264. + if (strcmp (argv[i], dumpscript_opt) == 0)
  72265. + {
  72266. +EOF
  72267. + case "$host" in
  72268. + *mingw* | *cygwin* )
  72269. + # make stdout use "unix" line endings
  72270. + echo " setmode(1,_O_BINARY);"
  72271. + ;;
  72272. + esac
  72273. - # Use standard objects if they are pic
  72274. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  72275. + cat <<"EOF"
  72276. + printf ("%s", script_text_part1);
  72277. + printf ("%s", script_text_part2);
  72278. + return 0;
  72279. + }
  72280. + }
  72281. - # Prepare the list of exported symbols
  72282. - if test -z "$export_symbols"; then
  72283. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  72284. - $show "generating symbol list for \`$libname.la'"
  72285. - export_symbols="$output_objdir/$libname.exp"
  72286. - $run $rm $export_symbols
  72287. - cmds=$export_symbols_cmds
  72288. - save_ifs="$IFS"; IFS='~'
  72289. - for cmd in $cmds; do
  72290. - IFS="$save_ifs"
  72291. - eval cmd=\"$cmd\"
  72292. - if len=`expr "X$cmd" : ".*"` &&
  72293. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  72294. - $show "$cmd"
  72295. - $run eval "$cmd" || exit $?
  72296. - skipped_export=false
  72297. - else
  72298. - # The command line is too long to execute in one step.
  72299. - $show "using reloadable object file for export list..."
  72300. - skipped_export=:
  72301. - # Break out early, otherwise skipped_export may be
  72302. - # set to false by a later but shorter cmd.
  72303. - break
  72304. - fi
  72305. - done
  72306. - IFS="$save_ifs"
  72307. - if test -n "$export_symbols_regex"; then
  72308. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  72309. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  72310. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  72311. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  72312. - fi
  72313. - fi
  72314. - fi
  72315. + newargz = XMALLOC (char *, argc + 1);
  72316. + tmp_pathspec = find_executable (argv[0]);
  72317. + if (tmp_pathspec == NULL)
  72318. + lt_fatal ("Couldn't find %s", argv[0]);
  72319. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  72320. + tmp_pathspec));
  72321. +
  72322. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  72323. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  72324. + actual_cwrapper_path));
  72325. + XFREE (tmp_pathspec);
  72326. +
  72327. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  72328. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  72329. +
  72330. + /* wrapper name transforms */
  72331. + strendzap (actual_cwrapper_name, ".exe");
  72332. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  72333. + XFREE (actual_cwrapper_name);
  72334. + actual_cwrapper_name = tmp_pathspec;
  72335. + tmp_pathspec = 0;
  72336. +
  72337. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  72338. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  72339. + strendzap (target_name, ".exe");
  72340. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  72341. + XFREE (target_name);
  72342. + target_name = tmp_pathspec;
  72343. + tmp_pathspec = 0;
  72344. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  72345. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  72346. - fi
  72347. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  72348. + target_name));
  72349. +EOF
  72350. - tmp_deplibs=
  72351. - for test_deplib in $deplibs; do
  72352. - case " $convenience " in
  72353. - *" $test_deplib "*) ;;
  72354. - *)
  72355. - tmp_deplibs="$tmp_deplibs $test_deplib"
  72356. - ;;
  72357. - esac
  72358. - done
  72359. - deplibs="$tmp_deplibs"
  72360. + cat <<EOF
  72361. + newargz[0] =
  72362. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  72363. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  72364. + strcpy (newargz[0], actual_cwrapper_path);
  72365. + strcat (newargz[0], "$objdir");
  72366. + strcat (newargz[0], "/");
  72367. +EOF
  72368. - if test -n "$convenience"; then
  72369. - if test -n "$whole_archive_flag_spec"; then
  72370. - save_libobjs=$libobjs
  72371. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  72372. - else
  72373. - gentop="$output_objdir/${outputname}x"
  72374. - generated="$generated $gentop"
  72375. + cat <<"EOF"
  72376. + /* stop here, and copy so we don't have to do this twice */
  72377. + tmp_pathspec = xstrdup (newargz[0]);
  72378. +
  72379. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  72380. + strcat (newargz[0], actual_cwrapper_name);
  72381. +
  72382. + /* DO want the lt- prefix here if it exists, so use target_name */
  72383. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  72384. + XFREE (tmp_pathspec);
  72385. + tmp_pathspec = NULL;
  72386. +EOF
  72387. - func_extract_archives $gentop $convenience
  72388. - libobjs="$libobjs $func_extract_archives_result"
  72389. - fi
  72390. - fi
  72391. -
  72392. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  72393. - eval flag=\"$thread_safe_flag_spec\"
  72394. - linker_flags="$linker_flags $flag"
  72395. - fi
  72396. + case $host_os in
  72397. + mingw*)
  72398. + cat <<"EOF"
  72399. + {
  72400. + char* p;
  72401. + while ((p = strchr (newargz[0], '\\')) != NULL)
  72402. + {
  72403. + *p = '/';
  72404. + }
  72405. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  72406. + {
  72407. + *p = '/';
  72408. + }
  72409. + }
  72410. +EOF
  72411. + ;;
  72412. + esac
  72413. - # Make a backup of the uninstalled library when relinking
  72414. - if test "$mode" = relink; then
  72415. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  72416. - fi
  72417. + cat <<"EOF"
  72418. + XFREE (target_name);
  72419. + XFREE (actual_cwrapper_path);
  72420. + XFREE (actual_cwrapper_name);
  72421. +
  72422. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  72423. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  72424. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  72425. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  72426. - # Do each of the archive commands.
  72427. - if test "$module" = yes && test -n "$module_cmds" ; then
  72428. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  72429. - eval test_cmds=\"$module_expsym_cmds\"
  72430. - cmds=$module_expsym_cmds
  72431. - else
  72432. - eval test_cmds=\"$module_cmds\"
  72433. - cmds=$module_cmds
  72434. - fi
  72435. - else
  72436. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  72437. - eval test_cmds=\"$archive_expsym_cmds\"
  72438. - cmds=$archive_expsym_cmds
  72439. - else
  72440. - eval test_cmds=\"$archive_cmds\"
  72441. - cmds=$archive_cmds
  72442. - fi
  72443. - fi
  72444. + newargc=0;
  72445. + for (i = 1; i < argc; i++)
  72446. + {
  72447. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  72448. + {
  72449. + if (argv[i][env_set_opt_len] == '=')
  72450. + {
  72451. + const char *p = argv[i] + env_set_opt_len + 1;
  72452. + lt_opt_process_env_set (p);
  72453. + }
  72454. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  72455. + {
  72456. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  72457. + }
  72458. + else
  72459. + lt_fatal ("%s missing required argument", env_set_opt);
  72460. + continue;
  72461. + }
  72462. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  72463. + {
  72464. + if (argv[i][env_prepend_opt_len] == '=')
  72465. + {
  72466. + const char *p = argv[i] + env_prepend_opt_len + 1;
  72467. + lt_opt_process_env_prepend (p);
  72468. + }
  72469. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  72470. + {
  72471. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  72472. + }
  72473. + else
  72474. + lt_fatal ("%s missing required argument", env_prepend_opt);
  72475. + continue;
  72476. + }
  72477. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  72478. + {
  72479. + if (argv[i][env_append_opt_len] == '=')
  72480. + {
  72481. + const char *p = argv[i] + env_append_opt_len + 1;
  72482. + lt_opt_process_env_append (p);
  72483. + }
  72484. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  72485. + {
  72486. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  72487. + }
  72488. + else
  72489. + lt_fatal ("%s missing required argument", env_append_opt);
  72490. + continue;
  72491. + }
  72492. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  72493. + {
  72494. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  72495. + namespace, but it is not one of the ones we know about and
  72496. + have already dealt with, above (inluding dump-script), then
  72497. + report an error. Otherwise, targets might begin to believe
  72498. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  72499. + namespace. The first time any user complains about this, we'll
  72500. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  72501. + or a configure.ac-settable value.
  72502. + */
  72503. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  72504. + ltwrapper_option_prefix, argv[i]);
  72505. + }
  72506. + /* otherwise ... */
  72507. + newargz[++newargc] = xstrdup (argv[i]);
  72508. + }
  72509. + newargz[++newargc] = NULL;
  72510. - if test "X$skipped_export" != "X:" &&
  72511. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  72512. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  72513. - :
  72514. - else
  72515. - # The command line is too long to link in one step, link piecewise.
  72516. - $echo "creating reloadable object files..."
  72517. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  72518. + for (i = 0; i < newargc; i++)
  72519. + {
  72520. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  72521. + }
  72522. - # Save the value of $output and $libobjs because we want to
  72523. - # use them later. If we have whole_archive_flag_spec, we
  72524. - # want to use save_libobjs as it was before
  72525. - # whole_archive_flag_spec was expanded, because we can't
  72526. - # assume the linker understands whole_archive_flag_spec.
  72527. - # This may have to be revisited, in case too many
  72528. - # convenience libraries get linked in and end up exceeding
  72529. - # the spec.
  72530. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  72531. - save_libobjs=$libobjs
  72532. - fi
  72533. - save_output=$output
  72534. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  72535. +EOF
  72536. - # Clear the reloadable object creation command queue and
  72537. - # initialize k to one.
  72538. - test_cmds=
  72539. - concat_cmds=
  72540. - objlist=
  72541. - delfiles=
  72542. - last_robj=
  72543. - k=1
  72544. - output=$output_objdir/$output_la-${k}.$objext
  72545. - # Loop over the list of objects to be linked.
  72546. - for obj in $save_libobjs
  72547. - do
  72548. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  72549. - if test "X$objlist" = X ||
  72550. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  72551. - test "$len" -le "$max_cmd_len"; }; then
  72552. - objlist="$objlist $obj"
  72553. - else
  72554. - # The command $test_cmds is almost too long, add a
  72555. - # command to the queue.
  72556. - if test "$k" -eq 1 ; then
  72557. - # The first file doesn't have a previous command to add.
  72558. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  72559. - else
  72560. - # All subsequent reloadable object files will link in
  72561. - # the last one created.
  72562. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  72563. - fi
  72564. - last_robj=$output_objdir/$output_la-${k}.$objext
  72565. - k=`expr $k + 1`
  72566. - output=$output_objdir/$output_la-${k}.$objext
  72567. - objlist=$obj
  72568. - len=1
  72569. - fi
  72570. - done
  72571. - # Handle the remaining objects by creating one last
  72572. - # reloadable object file. All subsequent reloadable object
  72573. - # files will link in the last one created.
  72574. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  72575. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  72576. + case $host_os in
  72577. + mingw*)
  72578. + cat <<"EOF"
  72579. + /* execv doesn't actually work on mingw as expected on unix */
  72580. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  72581. + if (rval == -1)
  72582. + {
  72583. + /* failed to start process */
  72584. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  72585. + return 127;
  72586. + }
  72587. + return rval;
  72588. +EOF
  72589. + ;;
  72590. + *)
  72591. + cat <<"EOF"
  72592. + execv (lt_argv_zero, newargz);
  72593. + return rval; /* =127, but avoids unused variable warning */
  72594. +EOF
  72595. + ;;
  72596. + esac
  72597. - if ${skipped_export-false}; then
  72598. - $show "generating symbol list for \`$libname.la'"
  72599. - export_symbols="$output_objdir/$libname.exp"
  72600. - $run $rm $export_symbols
  72601. - libobjs=$output
  72602. - # Append the command to create the export file.
  72603. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  72604. - fi
  72605. -
  72606. - # Set up a command to remove the reloadable object files
  72607. - # after they are used.
  72608. - i=0
  72609. - while test "$i" -lt "$k"
  72610. - do
  72611. - i=`expr $i + 1`
  72612. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  72613. - done
  72614. + cat <<"EOF"
  72615. +}
  72616. - $echo "creating a temporary reloadable object file: $output"
  72617. +void *
  72618. +xmalloc (size_t num)
  72619. +{
  72620. + void *p = (void *) malloc (num);
  72621. + if (!p)
  72622. + lt_fatal ("Memory exhausted");
  72623. - # Loop through the commands generated above and execute them.
  72624. - save_ifs="$IFS"; IFS='~'
  72625. - for cmd in $concat_cmds; do
  72626. - IFS="$save_ifs"
  72627. - $show "$cmd"
  72628. - $run eval "$cmd" || exit $?
  72629. - done
  72630. - IFS="$save_ifs"
  72631. + return p;
  72632. +}
  72633. - libobjs=$output
  72634. - # Restore the value of output.
  72635. - output=$save_output
  72636. +char *
  72637. +xstrdup (const char *string)
  72638. +{
  72639. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  72640. + string) : NULL;
  72641. +}
  72642. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  72643. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  72644. - fi
  72645. - # Expand the library linking commands again to reset the
  72646. - # value of $libobjs for piecewise linking.
  72647. +const char *
  72648. +base_name (const char *name)
  72649. +{
  72650. + const char *base;
  72651. - # Do each of the archive commands.
  72652. - if test "$module" = yes && test -n "$module_cmds" ; then
  72653. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  72654. - cmds=$module_expsym_cmds
  72655. - else
  72656. - cmds=$module_cmds
  72657. - fi
  72658. - else
  72659. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  72660. - cmds=$archive_expsym_cmds
  72661. - else
  72662. - cmds=$archive_cmds
  72663. - fi
  72664. - fi
  72665. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  72666. + /* Skip over the disk name in MSDOS pathnames. */
  72667. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  72668. + name += 2;
  72669. +#endif
  72670. - # Append the command to remove the reloadable object files
  72671. - # to the just-reset $cmds.
  72672. - eval cmds=\"\$cmds~\$rm $delfiles\"
  72673. - fi
  72674. - save_ifs="$IFS"; IFS='~'
  72675. - for cmd in $cmds; do
  72676. - IFS="$save_ifs"
  72677. - eval cmd=\"$cmd\"
  72678. - $show "$cmd"
  72679. - $run eval "$cmd" || {
  72680. - lt_exit=$?
  72681. + for (base = name; *name; name++)
  72682. + if (IS_DIR_SEPARATOR (*name))
  72683. + base = name + 1;
  72684. + return base;
  72685. +}
  72686. - # Restore the uninstalled library and exit
  72687. - if test "$mode" = relink; then
  72688. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  72689. - fi
  72690. +int
  72691. +check_executable (const char *path)
  72692. +{
  72693. + struct stat st;
  72694. - exit $lt_exit
  72695. - }
  72696. - done
  72697. - IFS="$save_ifs"
  72698. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  72699. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  72700. + if ((!path) || (!*path))
  72701. + return 0;
  72702. - # Restore the uninstalled library and exit
  72703. - if test "$mode" = relink; then
  72704. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  72705. + if ((stat (path, &st) >= 0)
  72706. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  72707. + return 1;
  72708. + else
  72709. + return 0;
  72710. +}
  72711. - if test -n "$convenience"; then
  72712. - if test -z "$whole_archive_flag_spec"; then
  72713. - $show "${rm}r $gentop"
  72714. - $run ${rm}r "$gentop"
  72715. - fi
  72716. - fi
  72717. +int
  72718. +make_executable (const char *path)
  72719. +{
  72720. + int rval = 0;
  72721. + struct stat st;
  72722. - exit $EXIT_SUCCESS
  72723. - fi
  72724. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  72725. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  72726. + if ((!path) || (!*path))
  72727. + return 0;
  72728. - # Create links to the real library.
  72729. - for linkname in $linknames; do
  72730. - if test "$realname" != "$linkname"; then
  72731. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  72732. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  72733. - fi
  72734. - done
  72735. + if (stat (path, &st) >= 0)
  72736. + {
  72737. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  72738. + }
  72739. + return rval;
  72740. +}
  72741. - # If -module or -export-dynamic was specified, set the dlname.
  72742. - if test "$module" = yes || test "$export_dynamic" = yes; then
  72743. - # On all known operating systems, these are identical.
  72744. - dlname="$soname"
  72745. - fi
  72746. - fi
  72747. - ;;
  72748. +/* Searches for the full path of the wrapper. Returns
  72749. + newly allocated full path name if found, NULL otherwise
  72750. + Does not chase symlinks, even on platforms that support them.
  72751. +*/
  72752. +char *
  72753. +find_executable (const char *wrapper)
  72754. +{
  72755. + int has_slash = 0;
  72756. + const char *p;
  72757. + const char *p_next;
  72758. + /* static buffer for getcwd */
  72759. + char tmp[LT_PATHMAX + 1];
  72760. + int tmp_len;
  72761. + char *concat_name;
  72762. - obj)
  72763. - if test -n "$deplibs"; then
  72764. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  72765. - fi
  72766. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  72767. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  72768. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  72769. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  72770. - fi
  72771. + if ((wrapper == NULL) || (*wrapper == '\0'))
  72772. + return NULL;
  72773. - if test -n "$rpath"; then
  72774. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  72775. - fi
  72776. + /* Absolute path? */
  72777. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  72778. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  72779. + {
  72780. + concat_name = xstrdup (wrapper);
  72781. + if (check_executable (concat_name))
  72782. + return concat_name;
  72783. + XFREE (concat_name);
  72784. + }
  72785. + else
  72786. + {
  72787. +#endif
  72788. + if (IS_DIR_SEPARATOR (wrapper[0]))
  72789. + {
  72790. + concat_name = xstrdup (wrapper);
  72791. + if (check_executable (concat_name))
  72792. + return concat_name;
  72793. + XFREE (concat_name);
  72794. + }
  72795. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  72796. + }
  72797. +#endif
  72798. - if test -n "$xrpath"; then
  72799. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  72800. - fi
  72801. + for (p = wrapper; *p; p++)
  72802. + if (*p == '/')
  72803. + {
  72804. + has_slash = 1;
  72805. + break;
  72806. + }
  72807. + if (!has_slash)
  72808. + {
  72809. + /* no slashes; search PATH */
  72810. + const char *path = getenv ("PATH");
  72811. + if (path != NULL)
  72812. + {
  72813. + for (p = path; *p; p = p_next)
  72814. + {
  72815. + const char *q;
  72816. + size_t p_len;
  72817. + for (q = p; *q; q++)
  72818. + if (IS_PATH_SEPARATOR (*q))
  72819. + break;
  72820. + p_len = q - p;
  72821. + p_next = (*q == '\0' ? q : q + 1);
  72822. + if (p_len == 0)
  72823. + {
  72824. + /* empty path: current directory */
  72825. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  72826. + lt_fatal ("getcwd failed");
  72827. + tmp_len = strlen (tmp);
  72828. + concat_name =
  72829. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  72830. + memcpy (concat_name, tmp, tmp_len);
  72831. + concat_name[tmp_len] = '/';
  72832. + strcpy (concat_name + tmp_len + 1, wrapper);
  72833. + }
  72834. + else
  72835. + {
  72836. + concat_name =
  72837. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  72838. + memcpy (concat_name, p, p_len);
  72839. + concat_name[p_len] = '/';
  72840. + strcpy (concat_name + p_len + 1, wrapper);
  72841. + }
  72842. + if (check_executable (concat_name))
  72843. + return concat_name;
  72844. + XFREE (concat_name);
  72845. + }
  72846. + }
  72847. + /* not found in PATH; assume curdir */
  72848. + }
  72849. + /* Relative path | not found in path: prepend cwd */
  72850. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  72851. + lt_fatal ("getcwd failed");
  72852. + tmp_len = strlen (tmp);
  72853. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  72854. + memcpy (concat_name, tmp, tmp_len);
  72855. + concat_name[tmp_len] = '/';
  72856. + strcpy (concat_name + tmp_len + 1, wrapper);
  72857. - if test -n "$vinfo"; then
  72858. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  72859. - fi
  72860. + if (check_executable (concat_name))
  72861. + return concat_name;
  72862. + XFREE (concat_name);
  72863. + return NULL;
  72864. +}
  72865. - if test -n "$release"; then
  72866. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  72867. - fi
  72868. +char *
  72869. +chase_symlinks (const char *pathspec)
  72870. +{
  72871. +#ifndef S_ISLNK
  72872. + return xstrdup (pathspec);
  72873. +#else
  72874. + char buf[LT_PATHMAX];
  72875. + struct stat s;
  72876. + char *tmp_pathspec = xstrdup (pathspec);
  72877. + char *p;
  72878. + int has_symlinks = 0;
  72879. + while (strlen (tmp_pathspec) && !has_symlinks)
  72880. + {
  72881. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  72882. + tmp_pathspec));
  72883. + if (lstat (tmp_pathspec, &s) == 0)
  72884. + {
  72885. + if (S_ISLNK (s.st_mode) != 0)
  72886. + {
  72887. + has_symlinks = 1;
  72888. + break;
  72889. + }
  72890. - case $output in
  72891. - *.lo)
  72892. - if test -n "$objs$old_deplibs"; then
  72893. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  72894. - exit $EXIT_FAILURE
  72895. - fi
  72896. - libobj="$output"
  72897. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  72898. - ;;
  72899. - *)
  72900. - libobj=
  72901. - obj="$output"
  72902. - ;;
  72903. - esac
  72904. + /* search backwards for last DIR_SEPARATOR */
  72905. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  72906. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  72907. + p--;
  72908. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  72909. + {
  72910. + /* no more DIR_SEPARATORS left */
  72911. + break;
  72912. + }
  72913. + *p = '\0';
  72914. + }
  72915. + else
  72916. + {
  72917. + char *errstr = strerror (errno);
  72918. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  72919. + }
  72920. + }
  72921. + XFREE (tmp_pathspec);
  72922. - # Delete the old objects.
  72923. - $run $rm $obj $libobj
  72924. + if (!has_symlinks)
  72925. + {
  72926. + return xstrdup (pathspec);
  72927. + }
  72928. - # Objects from convenience libraries. This assumes
  72929. - # single-version convenience libraries. Whenever we create
  72930. - # different ones for PIC/non-PIC, this we'll have to duplicate
  72931. - # the extraction.
  72932. - reload_conv_objs=
  72933. - gentop=
  72934. - # reload_cmds runs $LD directly, so let us get rid of
  72935. - # -Wl from whole_archive_flag_spec and hope we can get by with
  72936. - # turning comma into space..
  72937. - wl=
  72938. + tmp_pathspec = realpath (pathspec, buf);
  72939. + if (tmp_pathspec == 0)
  72940. + {
  72941. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  72942. + }
  72943. + return xstrdup (tmp_pathspec);
  72944. +#endif
  72945. +}
  72946. - if test -n "$convenience"; then
  72947. - if test -n "$whole_archive_flag_spec"; then
  72948. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  72949. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  72950. - else
  72951. - gentop="$output_objdir/${obj}x"
  72952. - generated="$generated $gentop"
  72953. +char *
  72954. +strendzap (char *str, const char *pat)
  72955. +{
  72956. + size_t len, patlen;
  72957. - func_extract_archives $gentop $convenience
  72958. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  72959. - fi
  72960. - fi
  72961. + assert (str != NULL);
  72962. + assert (pat != NULL);
  72963. - # Create the old-style object.
  72964. - 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
  72965. + len = strlen (str);
  72966. + patlen = strlen (pat);
  72967. - output="$obj"
  72968. - cmds=$reload_cmds
  72969. - save_ifs="$IFS"; IFS='~'
  72970. - for cmd in $cmds; do
  72971. - IFS="$save_ifs"
  72972. - eval cmd=\"$cmd\"
  72973. - $show "$cmd"
  72974. - $run eval "$cmd" || exit $?
  72975. - done
  72976. - IFS="$save_ifs"
  72977. + if (patlen <= len)
  72978. + {
  72979. + str += len - patlen;
  72980. + if (strcmp (str, pat) == 0)
  72981. + *str = '\0';
  72982. + }
  72983. + return str;
  72984. +}
  72985. - # Exit if we aren't doing a library object file.
  72986. - if test -z "$libobj"; then
  72987. - if test -n "$gentop"; then
  72988. - $show "${rm}r $gentop"
  72989. - $run ${rm}r $gentop
  72990. - fi
  72991. +static void
  72992. +lt_error_core (int exit_status, const char *mode,
  72993. + const char *message, va_list ap)
  72994. +{
  72995. + fprintf (stderr, "%s: %s: ", program_name, mode);
  72996. + vfprintf (stderr, message, ap);
  72997. + fprintf (stderr, ".\n");
  72998. - exit $EXIT_SUCCESS
  72999. - fi
  73000. + if (exit_status >= 0)
  73001. + exit (exit_status);
  73002. +}
  73003. - if test "$build_libtool_libs" != yes; then
  73004. - if test -n "$gentop"; then
  73005. - $show "${rm}r $gentop"
  73006. - $run ${rm}r $gentop
  73007. - fi
  73008. +void
  73009. +lt_fatal (const char *message, ...)
  73010. +{
  73011. + va_list ap;
  73012. + va_start (ap, message);
  73013. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  73014. + va_end (ap);
  73015. +}
  73016. - # Create an invalid libtool object if no PIC, so that we don't
  73017. - # accidentally link it into a program.
  73018. - # $show "echo timestamp > $libobj"
  73019. - # $run eval "echo timestamp > $libobj" || exit $?
  73020. - exit $EXIT_SUCCESS
  73021. - fi
  73022. +void
  73023. +lt_setenv (const char *name, const char *value)
  73024. +{
  73025. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  73026. + (name ? name : "<NULL>"),
  73027. + (value ? value : "<NULL>")));
  73028. + {
  73029. +#ifdef HAVE_SETENV
  73030. + /* always make a copy, for consistency with !HAVE_SETENV */
  73031. + char *str = xstrdup (value);
  73032. + setenv (name, str, 1);
  73033. +#else
  73034. + int len = strlen (name) + 1 + strlen (value) + 1;
  73035. + char *str = XMALLOC (char, len);
  73036. + sprintf (str, "%s=%s", name, value);
  73037. + if (putenv (str) != EXIT_SUCCESS)
  73038. + {
  73039. + XFREE (str);
  73040. + }
  73041. +#endif
  73042. + }
  73043. +}
  73044. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  73045. - # Only do commands if we really have different PIC objects.
  73046. - reload_objs="$libobjs $reload_conv_objs"
  73047. - output="$libobj"
  73048. - cmds=$reload_cmds
  73049. - save_ifs="$IFS"; IFS='~'
  73050. - for cmd in $cmds; do
  73051. - IFS="$save_ifs"
  73052. - eval cmd=\"$cmd\"
  73053. - $show "$cmd"
  73054. - $run eval "$cmd" || exit $?
  73055. - done
  73056. - IFS="$save_ifs"
  73057. - fi
  73058. -
  73059. - if test -n "$gentop"; then
  73060. - $show "${rm}r $gentop"
  73061. - $run ${rm}r $gentop
  73062. - fi
  73063. -
  73064. - exit $EXIT_SUCCESS
  73065. - ;;
  73066. -
  73067. - prog)
  73068. - case $host in
  73069. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  73070. - esac
  73071. - if test -n "$vinfo"; then
  73072. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  73073. - fi
  73074. -
  73075. - if test -n "$release"; then
  73076. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  73077. - fi
  73078. -
  73079. - if test "$preload" = yes; then
  73080. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  73081. - test "$dlopen_self_static" = unknown; then
  73082. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  73083. - fi
  73084. - fi
  73085. +char *
  73086. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  73087. +{
  73088. + char *new_value;
  73089. + if (orig_value && *orig_value)
  73090. + {
  73091. + int orig_value_len = strlen (orig_value);
  73092. + int add_len = strlen (add);
  73093. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  73094. + if (to_end)
  73095. + {
  73096. + strcpy (new_value, orig_value);
  73097. + strcpy (new_value + orig_value_len, add);
  73098. + }
  73099. + else
  73100. + {
  73101. + strcpy (new_value, add);
  73102. + strcpy (new_value + add_len, orig_value);
  73103. + }
  73104. + }
  73105. + else
  73106. + {
  73107. + new_value = xstrdup (add);
  73108. + }
  73109. + return new_value;
  73110. +}
  73111. - case $host in
  73112. - *-*-rhapsody* | *-*-darwin1.[012])
  73113. - # On Rhapsody replace the C library is the System framework
  73114. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  73115. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  73116. - ;;
  73117. - esac
  73118. +int
  73119. +lt_split_name_value (const char *arg, char** name, char** value)
  73120. +{
  73121. + const char *p;
  73122. + int len;
  73123. + if (!arg || !*arg)
  73124. + return 1;
  73125. - case $host in
  73126. - *darwin*)
  73127. - # Don't allow lazy linking, it breaks C++ global constructors
  73128. - if test "$tagname" = CXX ; then
  73129. - compile_command="$compile_command ${wl}-bind_at_load"
  73130. - finalize_command="$finalize_command ${wl}-bind_at_load"
  73131. - fi
  73132. - ;;
  73133. - esac
  73134. + p = strchr (arg, (int)'=');
  73135. + if (!p)
  73136. + return 1;
  73137. - # move library search paths that coincide with paths to not yet
  73138. - # installed libraries to the beginning of the library search list
  73139. - new_libs=
  73140. - for path in $notinst_path; do
  73141. - case " $new_libs " in
  73142. - *" -L$path/$objdir "*) ;;
  73143. - *)
  73144. - case " $compile_deplibs " in
  73145. - *" -L$path/$objdir "*)
  73146. - new_libs="$new_libs -L$path/$objdir" ;;
  73147. - esac
  73148. - ;;
  73149. - esac
  73150. - done
  73151. - for deplib in $compile_deplibs; do
  73152. - case $deplib in
  73153. - -L*)
  73154. - case " $new_libs " in
  73155. - *" $deplib "*) ;;
  73156. - *) new_libs="$new_libs $deplib" ;;
  73157. - esac
  73158. - ;;
  73159. - *) new_libs="$new_libs $deplib" ;;
  73160. - esac
  73161. - done
  73162. - compile_deplibs="$new_libs"
  73163. + *value = xstrdup (++p);
  73164. + len = strlen (arg) - strlen (*value);
  73165. + *name = XMALLOC (char, len);
  73166. + strncpy (*name, arg, len-1);
  73167. + (*name)[len - 1] = '\0';
  73168. - compile_command="$compile_command $compile_deplibs"
  73169. - finalize_command="$finalize_command $finalize_deplibs"
  73170. + return 0;
  73171. +}
  73172. - if test -n "$rpath$xrpath"; then
  73173. - # If the user specified any rpath flags, then add them.
  73174. - for libdir in $rpath $xrpath; do
  73175. - # This is the magic to use -rpath.
  73176. - case "$finalize_rpath " in
  73177. - *" $libdir "*) ;;
  73178. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  73179. - esac
  73180. - done
  73181. - fi
  73182. +void
  73183. +lt_opt_process_env_set (const char *arg)
  73184. +{
  73185. + char *name = NULL;
  73186. + char *value = NULL;
  73187. - # Now hardcode the library paths
  73188. - rpath=
  73189. - hardcode_libdirs=
  73190. - for libdir in $compile_rpath $finalize_rpath; do
  73191. - if test -n "$hardcode_libdir_flag_spec"; then
  73192. - if test -n "$hardcode_libdir_separator"; then
  73193. - if test -z "$hardcode_libdirs"; then
  73194. - hardcode_libdirs="$libdir"
  73195. - else
  73196. - # Just accumulate the unique libdirs.
  73197. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  73198. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  73199. - ;;
  73200. - *)
  73201. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  73202. - ;;
  73203. - esac
  73204. - fi
  73205. - else
  73206. - eval flag=\"$hardcode_libdir_flag_spec\"
  73207. - rpath="$rpath $flag"
  73208. - fi
  73209. - elif test -n "$runpath_var"; then
  73210. - case "$perm_rpath " in
  73211. - *" $libdir "*) ;;
  73212. - *) perm_rpath="$perm_rpath $libdir" ;;
  73213. - esac
  73214. - fi
  73215. - case $host in
  73216. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  73217. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  73218. - case :$dllsearchpath: in
  73219. - *":$libdir:"*) ;;
  73220. - *) dllsearchpath="$dllsearchpath:$libdir";;
  73221. - esac
  73222. - case :$dllsearchpath: in
  73223. - *":$testbindir:"*) ;;
  73224. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  73225. - esac
  73226. - ;;
  73227. - esac
  73228. - done
  73229. - # Substitute the hardcoded libdirs into the rpath.
  73230. - if test -n "$hardcode_libdir_separator" &&
  73231. - test -n "$hardcode_libdirs"; then
  73232. - libdir="$hardcode_libdirs"
  73233. - eval rpath=\" $hardcode_libdir_flag_spec\"
  73234. - fi
  73235. - compile_rpath="$rpath"
  73236. + if (lt_split_name_value (arg, &name, &value) != 0)
  73237. + {
  73238. + XFREE (name);
  73239. + XFREE (value);
  73240. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  73241. + }
  73242. - rpath=
  73243. - hardcode_libdirs=
  73244. - for libdir in $finalize_rpath; do
  73245. - if test -n "$hardcode_libdir_flag_spec"; then
  73246. - if test -n "$hardcode_libdir_separator"; then
  73247. - if test -z "$hardcode_libdirs"; then
  73248. - hardcode_libdirs="$libdir"
  73249. - else
  73250. - # Just accumulate the unique libdirs.
  73251. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  73252. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  73253. - ;;
  73254. - *)
  73255. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  73256. - ;;
  73257. - esac
  73258. - fi
  73259. - else
  73260. - eval flag=\"$hardcode_libdir_flag_spec\"
  73261. - rpath="$rpath $flag"
  73262. - fi
  73263. - elif test -n "$runpath_var"; then
  73264. - case "$finalize_perm_rpath " in
  73265. - *" $libdir "*) ;;
  73266. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  73267. - esac
  73268. - fi
  73269. - done
  73270. - # Substitute the hardcoded libdirs into the rpath.
  73271. - if test -n "$hardcode_libdir_separator" &&
  73272. - test -n "$hardcode_libdirs"; then
  73273. - libdir="$hardcode_libdirs"
  73274. - eval rpath=\" $hardcode_libdir_flag_spec\"
  73275. - fi
  73276. - finalize_rpath="$rpath"
  73277. + lt_setenv (name, value);
  73278. + XFREE (name);
  73279. + XFREE (value);
  73280. +}
  73281. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  73282. - # Transform all the library objects into standard objects.
  73283. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  73284. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  73285. - fi
  73286. +void
  73287. +lt_opt_process_env_prepend (const char *arg)
  73288. +{
  73289. + char *name = NULL;
  73290. + char *value = NULL;
  73291. + char *new_value = NULL;
  73292. - dlsyms=
  73293. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  73294. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  73295. - dlsyms="${outputname}S.c"
  73296. - else
  73297. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  73298. - fi
  73299. - fi
  73300. + if (lt_split_name_value (arg, &name, &value) != 0)
  73301. + {
  73302. + XFREE (name);
  73303. + XFREE (value);
  73304. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  73305. + }
  73306. - if test -n "$dlsyms"; then
  73307. - case $dlsyms in
  73308. - "") ;;
  73309. - *.c)
  73310. - # Discover the nlist of each of the dlfiles.
  73311. - nlist="$output_objdir/${outputname}.nm"
  73312. + new_value = lt_extend_str (getenv (name), value, 0);
  73313. + lt_setenv (name, new_value);
  73314. + XFREE (new_value);
  73315. + XFREE (name);
  73316. + XFREE (value);
  73317. +}
  73318. - $show "$rm $nlist ${nlist}S ${nlist}T"
  73319. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  73320. +void
  73321. +lt_opt_process_env_append (const char *arg)
  73322. +{
  73323. + char *name = NULL;
  73324. + char *value = NULL;
  73325. + char *new_value = NULL;
  73326. - # Parse the name list into a source file.
  73327. - $show "creating $output_objdir/$dlsyms"
  73328. + if (lt_split_name_value (arg, &name, &value) != 0)
  73329. + {
  73330. + XFREE (name);
  73331. + XFREE (value);
  73332. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  73333. + }
  73334. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  73335. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  73336. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  73337. + new_value = lt_extend_str (getenv (name), value, 1);
  73338. + lt_setenv (name, new_value);
  73339. + XFREE (new_value);
  73340. + XFREE (name);
  73341. + XFREE (value);
  73342. +}
  73343. -#ifdef __cplusplus
  73344. -extern \"C\" {
  73345. -#endif
  73346. +void
  73347. +lt_update_exe_path (const char *name, const char *value)
  73348. +{
  73349. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  73350. + (name ? name : "<NULL>"),
  73351. + (value ? value : "<NULL>")));
  73352. -/* Prevent the only kind of declaration conflicts we can make. */
  73353. -#define lt_preloaded_symbols some_other_symbol
  73354. + if (name && *name && value && *value)
  73355. + {
  73356. + char *new_value = lt_extend_str (getenv (name), value, 0);
  73357. + /* some systems can't cope with a ':'-terminated path #' */
  73358. + int len = strlen (new_value);
  73359. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  73360. + {
  73361. + new_value[len-1] = '\0';
  73362. + }
  73363. + lt_setenv (name, new_value);
  73364. + XFREE (new_value);
  73365. + }
  73366. +}
  73367. -/* External symbol declarations for the compiler. */\
  73368. -"
  73369. +void
  73370. +lt_update_lib_path (const char *name, const char *value)
  73371. +{
  73372. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  73373. + (name ? name : "<NULL>"),
  73374. + (value ? value : "<NULL>")));
  73375. - if test "$dlself" = yes; then
  73376. - $show "generating symbol list for \`$output'"
  73377. + if (name && *name && value && *value)
  73378. + {
  73379. + char *new_value = lt_extend_str (getenv (name), value, 0);
  73380. + lt_setenv (name, new_value);
  73381. + XFREE (new_value);
  73382. + }
  73383. +}
  73384. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  73385. - # Add our own program objects to the symbol list.
  73386. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  73387. - for arg in $progfiles; do
  73388. - $show "extracting global C symbols from \`$arg'"
  73389. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  73390. - done
  73391. +EOF
  73392. +}
  73393. +# end: func_emit_cwrapperexe_src
  73394. - if test -n "$exclude_expsyms"; then
  73395. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  73396. - $run eval '$mv "$nlist"T "$nlist"'
  73397. - fi
  73398. -
  73399. - if test -n "$export_symbols_regex"; then
  73400. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  73401. - $run eval '$mv "$nlist"T "$nlist"'
  73402. - fi
  73403. -
  73404. - # Prepare the list of exported symbols
  73405. - if test -z "$export_symbols"; then
  73406. - export_symbols="$output_objdir/$outputname.exp"
  73407. - $run $rm $export_symbols
  73408. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  73409. - case $host in
  73410. - *cygwin* | *mingw* )
  73411. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  73412. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  73413. - ;;
  73414. - esac
  73415. - else
  73416. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  73417. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  73418. - $run eval 'mv "$nlist"T "$nlist"'
  73419. - case $host in
  73420. - *cygwin* | *mingw* )
  73421. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  73422. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  73423. - ;;
  73424. - esac
  73425. - fi
  73426. - fi
  73427. +# func_mode_link arg...
  73428. +func_mode_link ()
  73429. +{
  73430. + $opt_debug
  73431. + case $host in
  73432. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  73433. + # It is impossible to link a dll without this setting, and
  73434. + # we shouldn't force the makefile maintainer to figure out
  73435. + # which system we are compiling for in order to pass an extra
  73436. + # flag for every libtool invocation.
  73437. + # allow_undefined=no
  73438. - for arg in $dlprefiles; do
  73439. - $show "extracting global C symbols from \`$arg'"
  73440. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  73441. - $run eval '$echo ": $name " >> "$nlist"'
  73442. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  73443. - done
  73444. + # FIXME: Unfortunately, there are problems with the above when trying
  73445. + # to make a dll which has undefined symbols, in which case not
  73446. + # even a static library is built. For now, we need to specify
  73447. + # -no-undefined on the libtool link line when we can be certain
  73448. + # that all symbols are satisfied, otherwise we get a static library.
  73449. + allow_undefined=yes
  73450. + ;;
  73451. + *)
  73452. + allow_undefined=yes
  73453. + ;;
  73454. + esac
  73455. + libtool_args=$nonopt
  73456. + base_compile="$nonopt $@"
  73457. + compile_command=$nonopt
  73458. + finalize_command=$nonopt
  73459. - if test -z "$run"; then
  73460. - # Make sure we have at least an empty file.
  73461. - test -f "$nlist" || : > "$nlist"
  73462. -
  73463. - if test -n "$exclude_expsyms"; then
  73464. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  73465. - $mv "$nlist"T "$nlist"
  73466. - fi
  73467. + compile_rpath=
  73468. + finalize_rpath=
  73469. + compile_shlibpath=
  73470. + finalize_shlibpath=
  73471. + convenience=
  73472. + old_convenience=
  73473. + deplibs=
  73474. + old_deplibs=
  73475. + compiler_flags=
  73476. + linker_flags=
  73477. + dllsearchpath=
  73478. + lib_search_path=`pwd`
  73479. + inst_prefix_dir=
  73480. + new_inherited_linker_flags=
  73481. - # Try sorting and uniquifying the output.
  73482. - if grep -v "^: " < "$nlist" |
  73483. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  73484. - sort -k 3
  73485. - else
  73486. - sort +2
  73487. - fi |
  73488. - uniq > "$nlist"S; then
  73489. - :
  73490. - else
  73491. - grep -v "^: " < "$nlist" > "$nlist"S
  73492. - fi
  73493. -
  73494. - if test -f "$nlist"S; then
  73495. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  73496. - else
  73497. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  73498. - fi
  73499. -
  73500. - $echo >> "$output_objdir/$dlsyms" "\
  73501. -
  73502. -#undef lt_preloaded_symbols
  73503. -
  73504. -#if defined (__STDC__) && __STDC__
  73505. -# define lt_ptr void *
  73506. -#else
  73507. -# define lt_ptr char *
  73508. -# define const
  73509. -#endif
  73510. -
  73511. -/* The mapping between symbol names and symbols. */
  73512. -"
  73513. -
  73514. - case $host in
  73515. - *cygwin* | *mingw* )
  73516. - $echo >> "$output_objdir/$dlsyms" "\
  73517. -/* DATA imports from DLLs on WIN32 can't be const, because
  73518. - runtime relocations are performed -- see ld's documentation
  73519. - on pseudo-relocs */
  73520. -struct {
  73521. -"
  73522. - ;;
  73523. - * )
  73524. - $echo >> "$output_objdir/$dlsyms" "\
  73525. -const struct {
  73526. -"
  73527. - ;;
  73528. - esac
  73529. -
  73530. -
  73531. - $echo >> "$output_objdir/$dlsyms" "\
  73532. - const char *name;
  73533. - lt_ptr address;
  73534. -}
  73535. -lt_preloaded_symbols[] =
  73536. -{\
  73537. -"
  73538. -
  73539. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  73540. -
  73541. - $echo >> "$output_objdir/$dlsyms" "\
  73542. - {0, (lt_ptr) 0}
  73543. -};
  73544. -
  73545. -/* This works around a problem in FreeBSD linker */
  73546. -#ifdef FREEBSD_WORKAROUND
  73547. -static const void *lt_preloaded_setup() {
  73548. - return lt_preloaded_symbols;
  73549. -}
  73550. -#endif
  73551. + avoid_version=no
  73552. + dlfiles=
  73553. + dlprefiles=
  73554. + dlself=no
  73555. + export_dynamic=no
  73556. + export_symbols=
  73557. + export_symbols_regex=
  73558. + generated=
  73559. + libobjs=
  73560. + ltlibs=
  73561. + module=no
  73562. + no_install=no
  73563. + objs=
  73564. + non_pic_objects=
  73565. + precious_files_regex=
  73566. + prefer_static_libs=no
  73567. + preload=no
  73568. + prev=
  73569. + prevarg=
  73570. + release=
  73571. + rpath=
  73572. + xrpath=
  73573. + perm_rpath=
  73574. + temp_rpath=
  73575. + thread_safe=no
  73576. + vinfo=
  73577. + vinfo_number=no
  73578. + weak_libs=
  73579. + single_module="${wl}-single_module"
  73580. + func_infer_tag $base_compile
  73581. -#ifdef __cplusplus
  73582. -}
  73583. -#endif\
  73584. -"
  73585. + # We need to know -static, to get the right output filenames.
  73586. + for arg
  73587. + do
  73588. + case $arg in
  73589. + -shared)
  73590. + test "$build_libtool_libs" != yes && \
  73591. + func_fatal_configuration "can not build a shared library"
  73592. + build_old_libs=no
  73593. + break
  73594. + ;;
  73595. + -all-static | -static | -static-libtool-libs)
  73596. + case $arg in
  73597. + -all-static)
  73598. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  73599. + func_warning "complete static linking is impossible in this configuration"
  73600. fi
  73601. -
  73602. - pic_flag_for_symtable=
  73603. - case $host in
  73604. - # compiling the symbol table file with pic_flag works around
  73605. - # a FreeBSD bug that causes programs to crash when -lm is
  73606. - # linked before any other PIC object. But we must not use
  73607. - # pic_flag when linking with -static. The problem exists in
  73608. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  73609. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  73610. - case "$compile_command " in
  73611. - *" -static "*) ;;
  73612. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  73613. - esac;;
  73614. - *-*-hpux*)
  73615. - case "$compile_command " in
  73616. - *" -static "*) ;;
  73617. - *) pic_flag_for_symtable=" $pic_flag";;
  73618. - esac
  73619. - esac
  73620. -
  73621. - # Now compile the dynamic symbol file.
  73622. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  73623. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  73624. -
  73625. - # Clean up the generated files.
  73626. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  73627. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  73628. -
  73629. - # Transform the symbol file into the correct name.
  73630. - case $host in
  73631. - *cygwin* | *mingw* )
  73632. - if test -f "$output_objdir/${outputname}.def" ; then
  73633. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73634. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73635. - else
  73636. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73637. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73638. - fi
  73639. - ;;
  73640. - * )
  73641. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73642. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  73643. - ;;
  73644. - esac
  73645. + if test -n "$link_static_flag"; then
  73646. + dlopen_self=$dlopen_self_static
  73647. + fi
  73648. + prefer_static_libs=yes
  73649. ;;
  73650. - *)
  73651. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  73652. - exit $EXIT_FAILURE
  73653. + -static)
  73654. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  73655. + dlopen_self=$dlopen_self_static
  73656. + fi
  73657. + prefer_static_libs=built
  73658. + ;;
  73659. + -static-libtool-libs)
  73660. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  73661. + dlopen_self=$dlopen_self_static
  73662. + fi
  73663. + prefer_static_libs=yes
  73664. ;;
  73665. esac
  73666. - else
  73667. - # We keep going just in case the user didn't refer to
  73668. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  73669. - # really was required.
  73670. -
  73671. - # Nullify the symbol file.
  73672. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  73673. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  73674. - fi
  73675. -
  73676. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  73677. - # Replace the output file specification.
  73678. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  73679. - link_command="$compile_command$compile_rpath"
  73680. + build_libtool_libs=no
  73681. + build_old_libs=yes
  73682. + break
  73683. + ;;
  73684. + esac
  73685. + done
  73686. - # We have no uninstalled library dependencies, so finalize right now.
  73687. - $show "$link_command"
  73688. - $run eval "$link_command"
  73689. - exit_status=$?
  73690. + # See if our shared archives depend on static archives.
  73691. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  73692. - # Delete the generated files.
  73693. - if test -n "$dlsyms"; then
  73694. - $show "$rm $output_objdir/${outputname}S.${objext}"
  73695. - $run $rm "$output_objdir/${outputname}S.${objext}"
  73696. - fi
  73697. + # Go through the arguments, transforming them on the way.
  73698. + while test "$#" -gt 0; do
  73699. + arg="$1"
  73700. + shift
  73701. + func_quote_for_eval "$arg"
  73702. + qarg=$func_quote_for_eval_unquoted_result
  73703. + func_append libtool_args " $func_quote_for_eval_result"
  73704. - exit $exit_status
  73705. - fi
  73706. + # If the previous option needs an argument, assign it.
  73707. + if test -n "$prev"; then
  73708. + case $prev in
  73709. + output)
  73710. + func_append compile_command " @OUTPUT@"
  73711. + func_append finalize_command " @OUTPUT@"
  73712. + ;;
  73713. + esac
  73714. - if test -n "$shlibpath_var"; then
  73715. - # We should set the shlibpath_var
  73716. - rpath=
  73717. - for dir in $temp_rpath; do
  73718. - case $dir in
  73719. - [\\/]* | [A-Za-z]:[\\/]*)
  73720. - # Absolute path.
  73721. - rpath="$rpath$dir:"
  73722. + case $prev in
  73723. + dlfiles|dlprefiles)
  73724. + if test "$preload" = no; then
  73725. + # Add the symbol object into the linking commands.
  73726. + func_append compile_command " @SYMFILE@"
  73727. + func_append finalize_command " @SYMFILE@"
  73728. + preload=yes
  73729. + fi
  73730. + case $arg in
  73731. + *.la | *.lo) ;; # We handle these cases below.
  73732. + force)
  73733. + if test "$dlself" = no; then
  73734. + dlself=needless
  73735. + export_dynamic=yes
  73736. + fi
  73737. + prev=
  73738. + continue
  73739. + ;;
  73740. + self)
  73741. + if test "$prev" = dlprefiles; then
  73742. + dlself=yes
  73743. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  73744. + dlself=yes
  73745. + else
  73746. + dlself=needless
  73747. + export_dynamic=yes
  73748. + fi
  73749. + prev=
  73750. + continue
  73751. ;;
  73752. *)
  73753. - # Relative path: add a thisdir entry.
  73754. - rpath="$rpath\$thisdir/$dir:"
  73755. + if test "$prev" = dlfiles; then
  73756. + dlfiles="$dlfiles $arg"
  73757. + else
  73758. + dlprefiles="$dlprefiles $arg"
  73759. + fi
  73760. + prev=
  73761. + continue
  73762. ;;
  73763. esac
  73764. - done
  73765. - temp_rpath="$rpath"
  73766. - fi
  73767. + ;;
  73768. + expsyms)
  73769. + export_symbols="$arg"
  73770. + test -f "$arg" \
  73771. + || func_fatal_error "symbol file \`$arg' does not exist"
  73772. + prev=
  73773. + continue
  73774. + ;;
  73775. + expsyms_regex)
  73776. + export_symbols_regex="$arg"
  73777. + prev=
  73778. + continue
  73779. + ;;
  73780. + framework)
  73781. + case $host in
  73782. + *-*-darwin*)
  73783. + case "$deplibs " in
  73784. + *" $qarg.ltframework "*) ;;
  73785. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  73786. + ;;
  73787. + esac
  73788. + ;;
  73789. + esac
  73790. + prev=
  73791. + continue
  73792. + ;;
  73793. + inst_prefix)
  73794. + inst_prefix_dir="$arg"
  73795. + prev=
  73796. + continue
  73797. + ;;
  73798. + objectlist)
  73799. + if test -f "$arg"; then
  73800. + save_arg=$arg
  73801. + moreargs=
  73802. + for fil in `cat "$save_arg"`
  73803. + do
  73804. +# moreargs="$moreargs $fil"
  73805. + arg=$fil
  73806. + # A libtool-controlled object.
  73807. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  73808. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  73809. - fi
  73810. - if test -n "$finalize_shlibpath"; then
  73811. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  73812. - fi
  73813. + # Check to see that this really is a libtool object.
  73814. + if func_lalib_unsafe_p "$arg"; then
  73815. + pic_object=
  73816. + non_pic_object=
  73817. - compile_var=
  73818. - finalize_var=
  73819. - if test -n "$runpath_var"; then
  73820. - if test -n "$perm_rpath"; then
  73821. - # We should set the runpath_var.
  73822. - rpath=
  73823. - for dir in $perm_rpath; do
  73824. - rpath="$rpath$dir:"
  73825. - done
  73826. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  73827. - fi
  73828. - if test -n "$finalize_perm_rpath"; then
  73829. - # We should set the runpath_var.
  73830. - rpath=
  73831. - for dir in $finalize_perm_rpath; do
  73832. - rpath="$rpath$dir:"
  73833. - done
  73834. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  73835. - fi
  73836. - fi
  73837. + # Read the .lo file
  73838. + func_source "$arg"
  73839. - if test "$no_install" = yes; then
  73840. - # We don't need to create a wrapper script.
  73841. - link_command="$compile_var$compile_command$compile_rpath"
  73842. - # Replace the output file specification.
  73843. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  73844. - # Delete the old output file.
  73845. - $run $rm $output
  73846. - # Link the executable and exit
  73847. - $show "$link_command"
  73848. - $run eval "$link_command" || exit $?
  73849. - exit $EXIT_SUCCESS
  73850. - fi
  73851. + if test -z "$pic_object" ||
  73852. + test -z "$non_pic_object" ||
  73853. + test "$pic_object" = none &&
  73854. + test "$non_pic_object" = none; then
  73855. + func_fatal_error "cannot find name of object for \`$arg'"
  73856. + fi
  73857. - if test "$hardcode_action" = relink; then
  73858. - # Fast installation is not supported
  73859. - link_command="$compile_var$compile_command$compile_rpath"
  73860. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  73861. + # Extract subdirectory from the argument.
  73862. + func_dirname "$arg" "/" ""
  73863. + xdir="$func_dirname_result"
  73864. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  73865. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  73866. - else
  73867. - if test "$fast_install" != no; then
  73868. - link_command="$finalize_var$compile_command$finalize_rpath"
  73869. - if test "$fast_install" = yes; then
  73870. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  73871. - else
  73872. - # fast_install is set to needless
  73873. - relink_command=
  73874. - fi
  73875. - else
  73876. - link_command="$compile_var$compile_command$compile_rpath"
  73877. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  73878. - fi
  73879. - fi
  73880. + if test "$pic_object" != none; then
  73881. + # Prepend the subdirectory the object is found in.
  73882. + pic_object="$xdir$pic_object"
  73883. - # Replace the output file specification.
  73884. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  73885. + if test "$prev" = dlfiles; then
  73886. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  73887. + dlfiles="$dlfiles $pic_object"
  73888. + prev=
  73889. + continue
  73890. + else
  73891. + # If libtool objects are unsupported, then we need to preload.
  73892. + prev=dlprefiles
  73893. + fi
  73894. + fi
  73895. - # Delete the old output files.
  73896. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  73897. + # CHECK ME: I think I busted this. -Ossama
  73898. + if test "$prev" = dlprefiles; then
  73899. + # Preload the old-style object.
  73900. + dlprefiles="$dlprefiles $pic_object"
  73901. + prev=
  73902. + fi
  73903. +
  73904. + # A PIC object.
  73905. + func_append libobjs " $pic_object"
  73906. + arg="$pic_object"
  73907. + fi
  73908. - $show "$link_command"
  73909. - $run eval "$link_command" || exit $?
  73910. + # Non-PIC object.
  73911. + if test "$non_pic_object" != none; then
  73912. + # Prepend the subdirectory the object is found in.
  73913. + non_pic_object="$xdir$non_pic_object"
  73914. - # Now create the wrapper script.
  73915. - $show "creating $output"
  73916. + # A standard non-PIC object
  73917. + func_append non_pic_objects " $non_pic_object"
  73918. + if test -z "$pic_object" || test "$pic_object" = none ; then
  73919. + arg="$non_pic_object"
  73920. + fi
  73921. + else
  73922. + # If the PIC object exists, use it instead.
  73923. + # $xdir was prepended to $pic_object above.
  73924. + non_pic_object="$pic_object"
  73925. + func_append non_pic_objects " $non_pic_object"
  73926. + fi
  73927. + else
  73928. + # Only an error if not doing a dry-run.
  73929. + if $opt_dry_run; then
  73930. + # Extract subdirectory from the argument.
  73931. + func_dirname "$arg" "/" ""
  73932. + xdir="$func_dirname_result"
  73933. - # Quote the relink command for shipping.
  73934. - if test -n "$relink_command"; then
  73935. - # Preserve any variables that may affect compiler behavior
  73936. - for var in $variables_saved_for_relink; do
  73937. - if eval test -z \"\${$var+set}\"; then
  73938. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  73939. - elif eval var_value=\$$var; test -z "$var_value"; then
  73940. - relink_command="$var=; export $var; $relink_command"
  73941. + func_lo2o "$arg"
  73942. + pic_object=$xdir$objdir/$func_lo2o_result
  73943. + non_pic_object=$xdir$func_lo2o_result
  73944. + func_append libobjs " $pic_object"
  73945. + func_append non_pic_objects " $non_pic_object"
  73946. + else
  73947. + func_fatal_error "\`$arg' is not a valid libtool object"
  73948. + fi
  73949. + fi
  73950. + done
  73951. else
  73952. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  73953. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  73954. + func_fatal_error "link input file \`$arg' does not exist"
  73955. fi
  73956. - done
  73957. - relink_command="(cd `pwd`; $relink_command)"
  73958. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  73959. - fi
  73960. -
  73961. - # Quote $echo for shipping.
  73962. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  73963. - case $progpath in
  73964. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  73965. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  73966. - esac
  73967. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  73968. - else
  73969. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  73970. - fi
  73971. -
  73972. - # Only actually do things if our run command is non-null.
  73973. - if test -z "$run"; then
  73974. - # win32 will think the script is a binary if it has
  73975. - # a .exe suffix, so we strip it off here.
  73976. - case $output in
  73977. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  73978. - esac
  73979. - # test for cygwin because mv fails w/o .exe extensions
  73980. - case $host in
  73981. - *cygwin*)
  73982. - exeext=.exe
  73983. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  73984. - *) exeext= ;;
  73985. + arg=$save_arg
  73986. + prev=
  73987. + continue
  73988. + ;;
  73989. + precious_regex)
  73990. + precious_files_regex="$arg"
  73991. + prev=
  73992. + continue
  73993. + ;;
  73994. + release)
  73995. + release="-$arg"
  73996. + prev=
  73997. + continue
  73998. + ;;
  73999. + rpath | xrpath)
  74000. + # We need an absolute path.
  74001. + case $arg in
  74002. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  74003. + *)
  74004. + func_fatal_error "only absolute run-paths are allowed"
  74005. + ;;
  74006. + esac
  74007. + if test "$prev" = rpath; then
  74008. + case "$rpath " in
  74009. + *" $arg "*) ;;
  74010. + *) rpath="$rpath $arg" ;;
  74011. + esac
  74012. + else
  74013. + case "$xrpath " in
  74014. + *" $arg "*) ;;
  74015. + *) xrpath="$xrpath $arg" ;;
  74016. + esac
  74017. + fi
  74018. + prev=
  74019. + continue
  74020. + ;;
  74021. + shrext)
  74022. + shrext_cmds="$arg"
  74023. + prev=
  74024. + continue
  74025. + ;;
  74026. + weak)
  74027. + weak_libs="$weak_libs $arg"
  74028. + prev=
  74029. + continue
  74030. + ;;
  74031. + xcclinker)
  74032. + linker_flags="$linker_flags $qarg"
  74033. + compiler_flags="$compiler_flags $qarg"
  74034. + prev=
  74035. + func_append compile_command " $qarg"
  74036. + func_append finalize_command " $qarg"
  74037. + continue
  74038. + ;;
  74039. + xcompiler)
  74040. + compiler_flags="$compiler_flags $qarg"
  74041. + prev=
  74042. + func_append compile_command " $qarg"
  74043. + func_append finalize_command " $qarg"
  74044. + continue
  74045. + ;;
  74046. + xlinker)
  74047. + linker_flags="$linker_flags $qarg"
  74048. + compiler_flags="$compiler_flags $wl$qarg"
  74049. + prev=
  74050. + func_append compile_command " $wl$qarg"
  74051. + func_append finalize_command " $wl$qarg"
  74052. + continue
  74053. + ;;
  74054. + *)
  74055. + eval "$prev=\"\$arg\""
  74056. + prev=
  74057. + continue
  74058. + ;;
  74059. esac
  74060. - case $host in
  74061. - *cygwin* | *mingw* )
  74062. - output_name=`basename $output`
  74063. - output_path=`dirname $output`
  74064. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  74065. - cwrapper="$output_path/$output_name.exe"
  74066. - $rm $cwrappersource $cwrapper
  74067. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  74068. -
  74069. - cat > $cwrappersource <<EOF
  74070. -
  74071. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  74072. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  74073. + fi # test -n "$prev"
  74074. - The $output program cannot be directly executed until all the libtool
  74075. - libraries that it depends on are installed.
  74076. + prevarg="$arg"
  74077. - This wrapper executable should never be moved out of the build directory.
  74078. - If it is, it will not operate correctly.
  74079. + case $arg in
  74080. + -all-static)
  74081. + if test -n "$link_static_flag"; then
  74082. + # See comment for -static flag below, for more details.
  74083. + func_append compile_command " $link_static_flag"
  74084. + func_append finalize_command " $link_static_flag"
  74085. + fi
  74086. + continue
  74087. + ;;
  74088. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  74089. - but could eventually absorb all of the scripts functionality and
  74090. - exec $objdir/$outputname directly.
  74091. -*/
  74092. -EOF
  74093. - cat >> $cwrappersource<<"EOF"
  74094. -#include <stdio.h>
  74095. -#include <stdlib.h>
  74096. -#include <unistd.h>
  74097. -#include <malloc.h>
  74098. -#include <stdarg.h>
  74099. -#include <assert.h>
  74100. -#include <string.h>
  74101. -#include <ctype.h>
  74102. -#include <sys/stat.h>
  74103. + -allow-undefined)
  74104. + # FIXME: remove this flag sometime in the future.
  74105. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  74106. + ;;
  74107. -#if defined(PATH_MAX)
  74108. -# define LT_PATHMAX PATH_MAX
  74109. -#elif defined(MAXPATHLEN)
  74110. -# define LT_PATHMAX MAXPATHLEN
  74111. -#else
  74112. -# define LT_PATHMAX 1024
  74113. -#endif
  74114. + -avoid-version)
  74115. + avoid_version=yes
  74116. + continue
  74117. + ;;
  74118. -#ifndef DIR_SEPARATOR
  74119. -# define DIR_SEPARATOR '/'
  74120. -# define PATH_SEPARATOR ':'
  74121. -#endif
  74122. + -dlopen)
  74123. + prev=dlfiles
  74124. + continue
  74125. + ;;
  74126. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  74127. - defined (__OS2__)
  74128. -# define HAVE_DOS_BASED_FILE_SYSTEM
  74129. -# ifndef DIR_SEPARATOR_2
  74130. -# define DIR_SEPARATOR_2 '\\'
  74131. -# endif
  74132. -# ifndef PATH_SEPARATOR_2
  74133. -# define PATH_SEPARATOR_2 ';'
  74134. -# endif
  74135. -#endif
  74136. + -dlpreopen)
  74137. + prev=dlprefiles
  74138. + continue
  74139. + ;;
  74140. -#ifndef DIR_SEPARATOR_2
  74141. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  74142. -#else /* DIR_SEPARATOR_2 */
  74143. -# define IS_DIR_SEPARATOR(ch) \
  74144. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  74145. -#endif /* DIR_SEPARATOR_2 */
  74146. + -export-dynamic)
  74147. + export_dynamic=yes
  74148. + continue
  74149. + ;;
  74150. -#ifndef PATH_SEPARATOR_2
  74151. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  74152. -#else /* PATH_SEPARATOR_2 */
  74153. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  74154. -#endif /* PATH_SEPARATOR_2 */
  74155. + -export-symbols | -export-symbols-regex)
  74156. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  74157. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  74158. + fi
  74159. + if test "X$arg" = "X-export-symbols"; then
  74160. + prev=expsyms
  74161. + else
  74162. + prev=expsyms_regex
  74163. + fi
  74164. + continue
  74165. + ;;
  74166. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  74167. -#define XFREE(stale) do { \
  74168. - if (stale) { free ((void *) stale); stale = 0; } \
  74169. -} while (0)
  74170. + -framework)
  74171. + prev=framework
  74172. + continue
  74173. + ;;
  74174. -/* -DDEBUG is fairly common in CFLAGS. */
  74175. -#undef DEBUG
  74176. -#if defined DEBUGWRAPPER
  74177. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  74178. -#else
  74179. -# define DEBUG(format, ...)
  74180. -#endif
  74181. + -inst-prefix-dir)
  74182. + prev=inst_prefix
  74183. + continue
  74184. + ;;
  74185. -const char *program_name = NULL;
  74186. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  74187. + # so, if we see these flags be careful not to treat them like -L
  74188. + -L[A-Z][A-Z]*:*)
  74189. + case $with_gcc/$host in
  74190. + no/*-*-irix* | /*-*-irix*)
  74191. + func_append compile_command " $arg"
  74192. + func_append finalize_command " $arg"
  74193. + ;;
  74194. + esac
  74195. + continue
  74196. + ;;
  74197. -void * xmalloc (size_t num);
  74198. -char * xstrdup (const char *string);
  74199. -const char * base_name (const char *name);
  74200. -char * find_executable(const char *wrapper);
  74201. -int check_executable(const char *path);
  74202. -char * strendzap(char *str, const char *pat);
  74203. -void lt_fatal (const char *message, ...);
  74204. + -L*)
  74205. + func_stripname '-L' '' "$arg"
  74206. + dir=$func_stripname_result
  74207. + if test -z "$dir"; then
  74208. + if test "$#" -gt 0; then
  74209. + func_fatal_error "require no space between \`-L' and \`$1'"
  74210. + else
  74211. + func_fatal_error "need path for \`-L' option"
  74212. + fi
  74213. + fi
  74214. + # We need an absolute path.
  74215. + case $dir in
  74216. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  74217. + *)
  74218. + absdir=`cd "$dir" && pwd`
  74219. + test -z "$absdir" && \
  74220. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  74221. + dir="$absdir"
  74222. + ;;
  74223. + esac
  74224. + case "$deplibs " in
  74225. + *" -L$dir "*) ;;
  74226. + *)
  74227. + deplibs="$deplibs -L$dir"
  74228. + lib_search_path="$lib_search_path $dir"
  74229. + ;;
  74230. + esac
  74231. + case $host in
  74232. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  74233. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  74234. + case :$dllsearchpath: in
  74235. + *":$dir:"*) ;;
  74236. + ::) dllsearchpath=$dir;;
  74237. + *) dllsearchpath="$dllsearchpath:$dir";;
  74238. + esac
  74239. + case :$dllsearchpath: in
  74240. + *":$testbindir:"*) ;;
  74241. + ::) dllsearchpath=$testbindir;;
  74242. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  74243. + esac
  74244. + ;;
  74245. + esac
  74246. + continue
  74247. + ;;
  74248. -int
  74249. -main (int argc, char *argv[])
  74250. -{
  74251. - char **newargz;
  74252. - int i;
  74253. + -l*)
  74254. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  74255. + case $host in
  74256. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  74257. + # These systems don't actually have a C or math library (as such)
  74258. + continue
  74259. + ;;
  74260. + *-*-os2*)
  74261. + # These systems don't actually have a C library (as such)
  74262. + test "X$arg" = "X-lc" && continue
  74263. + ;;
  74264. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  74265. + # Do not include libc due to us having libc/libc_r.
  74266. + test "X$arg" = "X-lc" && continue
  74267. + ;;
  74268. + *-*-rhapsody* | *-*-darwin1.[012])
  74269. + # Rhapsody C and math libraries are in the System framework
  74270. + deplibs="$deplibs System.ltframework"
  74271. + continue
  74272. + ;;
  74273. + *-*-sco3.2v5* | *-*-sco5v6*)
  74274. + # Causes problems with __ctype
  74275. + test "X$arg" = "X-lc" && continue
  74276. + ;;
  74277. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  74278. + # Compiler inserts libc in the correct place for threads to work
  74279. + test "X$arg" = "X-lc" && continue
  74280. + ;;
  74281. + esac
  74282. + elif test "X$arg" = "X-lc_r"; then
  74283. + case $host in
  74284. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  74285. + # Do not include libc_r directly, use -pthread flag.
  74286. + continue
  74287. + ;;
  74288. + esac
  74289. + fi
  74290. + deplibs="$deplibs $arg"
  74291. + continue
  74292. + ;;
  74293. - program_name = (char *) xstrdup (base_name (argv[0]));
  74294. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  74295. - DEBUG("(main) program_name : %s\n",program_name);
  74296. - newargz = XMALLOC(char *, argc+2);
  74297. -EOF
  74298. + -module)
  74299. + module=yes
  74300. + continue
  74301. + ;;
  74302. - cat >> $cwrappersource <<EOF
  74303. - newargz[0] = (char *) xstrdup("$SHELL");
  74304. -EOF
  74305. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  74306. + # classes, name mangling, and exception handling.
  74307. + # Darwin uses the -arch flag to determine output architecture.
  74308. + -model|-arch|-isysroot)
  74309. + compiler_flags="$compiler_flags $arg"
  74310. + func_append compile_command " $arg"
  74311. + func_append finalize_command " $arg"
  74312. + prev=xcompiler
  74313. + continue
  74314. + ;;
  74315. - cat >> $cwrappersource <<"EOF"
  74316. - newargz[1] = find_executable(argv[0]);
  74317. - if (newargz[1] == NULL)
  74318. - lt_fatal("Couldn't find %s", argv[0]);
  74319. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  74320. - /* we know the script has the same name, without the .exe */
  74321. - /* so make sure newargz[1] doesn't end in .exe */
  74322. - strendzap(newargz[1],".exe");
  74323. - for (i = 1; i < argc; i++)
  74324. - newargz[i+1] = xstrdup(argv[i]);
  74325. - newargz[argc+1] = NULL;
  74326. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  74327. + compiler_flags="$compiler_flags $arg"
  74328. + func_append compile_command " $arg"
  74329. + func_append finalize_command " $arg"
  74330. + case "$new_inherited_linker_flags " in
  74331. + *" $arg "*) ;;
  74332. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  74333. + esac
  74334. + continue
  74335. + ;;
  74336. - for (i=0; i<argc+1; i++)
  74337. - {
  74338. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  74339. - ;
  74340. - }
  74341. + -multi_module)
  74342. + single_module="${wl}-multi_module"
  74343. + continue
  74344. + ;;
  74345. -EOF
  74346. + -no-fast-install)
  74347. + fast_install=no
  74348. + continue
  74349. + ;;
  74350. - case $host_os in
  74351. - mingw*)
  74352. - cat >> $cwrappersource <<EOF
  74353. - execv("$SHELL",(char const **)newargz);
  74354. -EOF
  74355. - ;;
  74356. - *)
  74357. - cat >> $cwrappersource <<EOF
  74358. - execv("$SHELL",newargz);
  74359. -EOF
  74360. - ;;
  74361. - esac
  74362. + -no-install)
  74363. + case $host in
  74364. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  74365. + # The PATH hackery in wrapper scripts is required on Windows
  74366. + # and Darwin in order for the loader to find any dlls it needs.
  74367. + func_warning "\`-no-install' is ignored for $host"
  74368. + func_warning "assuming \`-no-fast-install' instead"
  74369. + fast_install=no
  74370. + ;;
  74371. + *) no_install=yes ;;
  74372. + esac
  74373. + continue
  74374. + ;;
  74375. - cat >> $cwrappersource <<"EOF"
  74376. - return 127;
  74377. -}
  74378. + -no-undefined)
  74379. + allow_undefined=no
  74380. + continue
  74381. + ;;
  74382. -void *
  74383. -xmalloc (size_t num)
  74384. -{
  74385. - void * p = (void *) malloc (num);
  74386. - if (!p)
  74387. - lt_fatal ("Memory exhausted");
  74388. + -objectlist)
  74389. + prev=objectlist
  74390. + continue
  74391. + ;;
  74392. - return p;
  74393. -}
  74394. + -o) prev=output ;;
  74395. -char *
  74396. -xstrdup (const char *string)
  74397. -{
  74398. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  74399. -;
  74400. -}
  74401. + -precious-files-regex)
  74402. + prev=precious_regex
  74403. + continue
  74404. + ;;
  74405. -const char *
  74406. -base_name (const char *name)
  74407. -{
  74408. - const char *base;
  74409. + -release)
  74410. + prev=release
  74411. + continue
  74412. + ;;
  74413. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  74414. - /* Skip over the disk name in MSDOS pathnames. */
  74415. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  74416. - name += 2;
  74417. -#endif
  74418. + -rpath)
  74419. + prev=rpath
  74420. + continue
  74421. + ;;
  74422. - for (base = name; *name; name++)
  74423. - if (IS_DIR_SEPARATOR (*name))
  74424. - base = name + 1;
  74425. - return base;
  74426. -}
  74427. + -R)
  74428. + prev=xrpath
  74429. + continue
  74430. + ;;
  74431. -int
  74432. -check_executable(const char * path)
  74433. -{
  74434. - struct stat st;
  74435. + -R*)
  74436. + func_stripname '-R' '' "$arg"
  74437. + dir=$func_stripname_result
  74438. + # We need an absolute path.
  74439. + case $dir in
  74440. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  74441. + *)
  74442. + func_fatal_error "only absolute run-paths are allowed"
  74443. + ;;
  74444. + esac
  74445. + case "$xrpath " in
  74446. + *" $dir "*) ;;
  74447. + *) xrpath="$xrpath $dir" ;;
  74448. + esac
  74449. + continue
  74450. + ;;
  74451. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  74452. - if ((!path) || (!*path))
  74453. - return 0;
  74454. + -shared)
  74455. + # The effects of -shared are defined in a previous loop.
  74456. + continue
  74457. + ;;
  74458. - if ((stat (path, &st) >= 0) &&
  74459. - (
  74460. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  74461. -#if defined (S_IXOTH)
  74462. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  74463. -#endif
  74464. -#if defined (S_IXGRP)
  74465. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  74466. -#endif
  74467. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  74468. - )
  74469. - return 1;
  74470. - else
  74471. - return 0;
  74472. -}
  74473. + -shrext)
  74474. + prev=shrext
  74475. + continue
  74476. + ;;
  74477. -/* Searches for the full path of the wrapper. Returns
  74478. - newly allocated full path name if found, NULL otherwise */
  74479. -char *
  74480. -find_executable (const char* wrapper)
  74481. -{
  74482. - int has_slash = 0;
  74483. - const char* p;
  74484. - const char* p_next;
  74485. - /* static buffer for getcwd */
  74486. - char tmp[LT_PATHMAX + 1];
  74487. - int tmp_len;
  74488. - char* concat_name;
  74489. + -static | -static-libtool-libs)
  74490. + # The effects of -static are defined in a previous loop.
  74491. + # We used to do the same as -all-static on platforms that
  74492. + # didn't have a PIC flag, but the assumption that the effects
  74493. + # would be equivalent was wrong. It would break on at least
  74494. + # Digital Unix and AIX.
  74495. + continue
  74496. + ;;
  74497. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  74498. + -thread-safe)
  74499. + thread_safe=yes
  74500. + continue
  74501. + ;;
  74502. - if ((wrapper == NULL) || (*wrapper == '\0'))
  74503. - return NULL;
  74504. + -version-info)
  74505. + prev=vinfo
  74506. + continue
  74507. + ;;
  74508. - /* Absolute path? */
  74509. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  74510. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  74511. - {
  74512. - concat_name = xstrdup (wrapper);
  74513. - if (check_executable(concat_name))
  74514. - return concat_name;
  74515. - XFREE(concat_name);
  74516. - }
  74517. - else
  74518. - {
  74519. -#endif
  74520. - if (IS_DIR_SEPARATOR (wrapper[0]))
  74521. - {
  74522. - concat_name = xstrdup (wrapper);
  74523. - if (check_executable(concat_name))
  74524. - return concat_name;
  74525. - XFREE(concat_name);
  74526. - }
  74527. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  74528. - }
  74529. -#endif
  74530. + -version-number)
  74531. + prev=vinfo
  74532. + vinfo_number=yes
  74533. + continue
  74534. + ;;
  74535. - for (p = wrapper; *p; p++)
  74536. - if (*p == '/')
  74537. - {
  74538. - has_slash = 1;
  74539. - break;
  74540. - }
  74541. - if (!has_slash)
  74542. - {
  74543. - /* no slashes; search PATH */
  74544. - const char* path = getenv ("PATH");
  74545. - if (path != NULL)
  74546. - {
  74547. - for (p = path; *p; p = p_next)
  74548. - {
  74549. - const char* q;
  74550. - size_t p_len;
  74551. - for (q = p; *q; q++)
  74552. - if (IS_PATH_SEPARATOR(*q))
  74553. - break;
  74554. - p_len = q - p;
  74555. - p_next = (*q == '\0' ? q : q + 1);
  74556. - if (p_len == 0)
  74557. - {
  74558. - /* empty path: current directory */
  74559. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  74560. - lt_fatal ("getcwd failed");
  74561. - tmp_len = strlen(tmp);
  74562. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  74563. - memcpy (concat_name, tmp, tmp_len);
  74564. - concat_name[tmp_len] = '/';
  74565. - strcpy (concat_name + tmp_len + 1, wrapper);
  74566. - }
  74567. - else
  74568. - {
  74569. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  74570. - memcpy (concat_name, p, p_len);
  74571. - concat_name[p_len] = '/';
  74572. - strcpy (concat_name + p_len + 1, wrapper);
  74573. - }
  74574. - if (check_executable(concat_name))
  74575. - return concat_name;
  74576. - XFREE(concat_name);
  74577. - }
  74578. - }
  74579. - /* not found in PATH; assume curdir */
  74580. - }
  74581. - /* Relative path | not found in path: prepend cwd */
  74582. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  74583. - lt_fatal ("getcwd failed");
  74584. - tmp_len = strlen(tmp);
  74585. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  74586. - memcpy (concat_name, tmp, tmp_len);
  74587. - concat_name[tmp_len] = '/';
  74588. - strcpy (concat_name + tmp_len + 1, wrapper);
  74589. + -weak)
  74590. + prev=weak
  74591. + continue
  74592. + ;;
  74593. - if (check_executable(concat_name))
  74594. - return concat_name;
  74595. - XFREE(concat_name);
  74596. - return NULL;
  74597. -}
  74598. + -Wc,*)
  74599. + func_stripname '-Wc,' '' "$arg"
  74600. + args=$func_stripname_result
  74601. + arg=
  74602. + save_ifs="$IFS"; IFS=','
  74603. + for flag in $args; do
  74604. + IFS="$save_ifs"
  74605. + func_quote_for_eval "$flag"
  74606. + arg="$arg $wl$func_quote_for_eval_result"
  74607. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  74608. + done
  74609. + IFS="$save_ifs"
  74610. + func_stripname ' ' '' "$arg"
  74611. + arg=$func_stripname_result
  74612. + ;;
  74613. -char *
  74614. -strendzap(char *str, const char *pat)
  74615. -{
  74616. - size_t len, patlen;
  74617. + -Wl,*)
  74618. + func_stripname '-Wl,' '' "$arg"
  74619. + args=$func_stripname_result
  74620. + arg=
  74621. + save_ifs="$IFS"; IFS=','
  74622. + for flag in $args; do
  74623. + IFS="$save_ifs"
  74624. + func_quote_for_eval "$flag"
  74625. + arg="$arg $wl$func_quote_for_eval_result"
  74626. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  74627. + linker_flags="$linker_flags $func_quote_for_eval_result"
  74628. + done
  74629. + IFS="$save_ifs"
  74630. + func_stripname ' ' '' "$arg"
  74631. + arg=$func_stripname_result
  74632. + ;;
  74633. - assert(str != NULL);
  74634. - assert(pat != NULL);
  74635. + -Xcompiler)
  74636. + prev=xcompiler
  74637. + continue
  74638. + ;;
  74639. - len = strlen(str);
  74640. - patlen = strlen(pat);
  74641. + -Xlinker)
  74642. + prev=xlinker
  74643. + continue
  74644. + ;;
  74645. - if (patlen <= len)
  74646. - {
  74647. - str += len - patlen;
  74648. - if (strcmp(str, pat) == 0)
  74649. - *str = '\0';
  74650. - }
  74651. - return str;
  74652. -}
  74653. + -XCClinker)
  74654. + prev=xcclinker
  74655. + continue
  74656. + ;;
  74657. -static void
  74658. -lt_error_core (int exit_status, const char * mode,
  74659. - const char * message, va_list ap)
  74660. -{
  74661. - fprintf (stderr, "%s: %s: ", program_name, mode);
  74662. - vfprintf (stderr, message, ap);
  74663. - fprintf (stderr, ".\n");
  74664. + # -msg_* for osf cc
  74665. + -msg_*)
  74666. + func_quote_for_eval "$arg"
  74667. + arg="$func_quote_for_eval_result"
  74668. + ;;
  74669. - if (exit_status >= 0)
  74670. - exit (exit_status);
  74671. -}
  74672. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  74673. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  74674. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  74675. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  74676. + # -q* pass through compiler args for the IBM compiler
  74677. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  74678. + # compiler args for GCC
  74679. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  74680. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  74681. + # @file GCC response files
  74682. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  74683. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  74684. + func_quote_for_eval "$arg"
  74685. + arg="$func_quote_for_eval_result"
  74686. + func_append compile_command " $arg"
  74687. + func_append finalize_command " $arg"
  74688. + compiler_flags="$compiler_flags $arg"
  74689. + continue
  74690. + ;;
  74691. -void
  74692. -lt_fatal (const char *message, ...)
  74693. -{
  74694. - va_list ap;
  74695. - va_start (ap, message);
  74696. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  74697. - va_end (ap);
  74698. -}
  74699. -EOF
  74700. - # we should really use a build-platform specific compiler
  74701. - # here, but OTOH, the wrappers (shell script and this C one)
  74702. - # are only useful if you want to execute the "real" binary.
  74703. - # Since the "real" binary is built for $host, then this
  74704. - # wrapper might as well be built for $host, too.
  74705. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  74706. - ;;
  74707. - esac
  74708. - $rm $output
  74709. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  74710. + # Some other compiler flag.
  74711. + -* | +*)
  74712. + func_quote_for_eval "$arg"
  74713. + arg="$func_quote_for_eval_result"
  74714. + ;;
  74715. - $echo > $output "\
  74716. -#! $SHELL
  74717. + *.$objext)
  74718. + # A standard object.
  74719. + objs="$objs $arg"
  74720. + ;;
  74721. -# $output - temporary wrapper script for $objdir/$outputname
  74722. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  74723. -#
  74724. -# The $output program cannot be directly executed until all the libtool
  74725. -# libraries that it depends on are installed.
  74726. -#
  74727. -# This wrapper script should never be moved out of the build directory.
  74728. -# If it is, it will not operate correctly.
  74729. + *.lo)
  74730. + # A libtool-controlled object.
  74731. -# Sed substitution that helps us do robust quoting. It backslashifies
  74732. -# metacharacters that are still active within double-quoted strings.
  74733. -Xsed='${SED} -e 1s/^X//'
  74734. -sed_quote_subst='$sed_quote_subst'
  74735. + # Check to see that this really is a libtool object.
  74736. + if func_lalib_unsafe_p "$arg"; then
  74737. + pic_object=
  74738. + non_pic_object=
  74739. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  74740. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  74741. - emulate sh
  74742. - NULLCMD=:
  74743. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  74744. - # is contrary to our usage. Disable this feature.
  74745. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  74746. - setopt NO_GLOB_SUBST
  74747. -else
  74748. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  74749. -fi
  74750. -BIN_SH=xpg4; export BIN_SH # for Tru64
  74751. -DUALCASE=1; export DUALCASE # for MKS sh
  74752. + # Read the .lo file
  74753. + func_source "$arg"
  74754. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  74755. -# if CDPATH is set.
  74756. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  74757. + if test -z "$pic_object" ||
  74758. + test -z "$non_pic_object" ||
  74759. + test "$pic_object" = none &&
  74760. + test "$non_pic_object" = none; then
  74761. + func_fatal_error "cannot find name of object for \`$arg'"
  74762. + fi
  74763. -relink_command=\"$relink_command\"
  74764. + # Extract subdirectory from the argument.
  74765. + func_dirname "$arg" "/" ""
  74766. + xdir="$func_dirname_result"
  74767. -# This environment variable determines our operation mode.
  74768. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  74769. - # install mode needs the following variable:
  74770. - notinst_deplibs='$notinst_deplibs'
  74771. -else
  74772. - # When we are sourced in execute mode, \$file and \$echo are already set.
  74773. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  74774. - echo=\"$qecho\"
  74775. - file=\"\$0\"
  74776. - # Make sure echo works.
  74777. - if test \"X\$1\" = X--no-reexec; then
  74778. - # Discard the --no-reexec flag, and continue.
  74779. - shift
  74780. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  74781. - # Yippee, \$echo works!
  74782. - :
  74783. - else
  74784. - # Restart under the correct shell, and then maybe \$echo will work.
  74785. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  74786. - fi
  74787. - fi\
  74788. -"
  74789. - $echo >> $output "\
  74790. + if test "$pic_object" != none; then
  74791. + # Prepend the subdirectory the object is found in.
  74792. + pic_object="$xdir$pic_object"
  74793. - # Find the directory that this script lives in.
  74794. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  74795. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  74796. + if test "$prev" = dlfiles; then
  74797. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  74798. + dlfiles="$dlfiles $pic_object"
  74799. + prev=
  74800. + continue
  74801. + else
  74802. + # If libtool objects are unsupported, then we need to preload.
  74803. + prev=dlprefiles
  74804. + fi
  74805. + fi
  74806. - # Follow symbolic links until we get to the real thisdir.
  74807. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  74808. - while test -n \"\$file\"; do
  74809. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  74810. + # CHECK ME: I think I busted this. -Ossama
  74811. + if test "$prev" = dlprefiles; then
  74812. + # Preload the old-style object.
  74813. + dlprefiles="$dlprefiles $pic_object"
  74814. + prev=
  74815. + fi
  74816. - # If there was a directory component, then change thisdir.
  74817. - if test \"x\$destdir\" != \"x\$file\"; then
  74818. - case \"\$destdir\" in
  74819. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  74820. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  74821. - esac
  74822. + # A PIC object.
  74823. + func_append libobjs " $pic_object"
  74824. + arg="$pic_object"
  74825. + fi
  74826. +
  74827. + # Non-PIC object.
  74828. + if test "$non_pic_object" != none; then
  74829. + # Prepend the subdirectory the object is found in.
  74830. + non_pic_object="$xdir$non_pic_object"
  74831. +
  74832. + # A standard non-PIC object
  74833. + func_append non_pic_objects " $non_pic_object"
  74834. + if test -z "$pic_object" || test "$pic_object" = none ; then
  74835. + arg="$non_pic_object"
  74836. + fi
  74837. + else
  74838. + # If the PIC object exists, use it instead.
  74839. + # $xdir was prepended to $pic_object above.
  74840. + non_pic_object="$pic_object"
  74841. + func_append non_pic_objects " $non_pic_object"
  74842. + fi
  74843. + else
  74844. + # Only an error if not doing a dry-run.
  74845. + if $opt_dry_run; then
  74846. + # Extract subdirectory from the argument.
  74847. + func_dirname "$arg" "/" ""
  74848. + xdir="$func_dirname_result"
  74849. +
  74850. + func_lo2o "$arg"
  74851. + pic_object=$xdir$objdir/$func_lo2o_result
  74852. + non_pic_object=$xdir$func_lo2o_result
  74853. + func_append libobjs " $pic_object"
  74854. + func_append non_pic_objects " $non_pic_object"
  74855. + else
  74856. + func_fatal_error "\`$arg' is not a valid libtool object"
  74857. + fi
  74858. + fi
  74859. + ;;
  74860. +
  74861. + *.$libext)
  74862. + # An archive.
  74863. + deplibs="$deplibs $arg"
  74864. + old_deplibs="$old_deplibs $arg"
  74865. + continue
  74866. + ;;
  74867. +
  74868. + *.la)
  74869. + # A libtool-controlled library.
  74870. +
  74871. + if test "$prev" = dlfiles; then
  74872. + # This library was specified with -dlopen.
  74873. + dlfiles="$dlfiles $arg"
  74874. + prev=
  74875. + elif test "$prev" = dlprefiles; then
  74876. + # The library was specified with -dlpreopen.
  74877. + dlprefiles="$dlprefiles $arg"
  74878. + prev=
  74879. + else
  74880. + deplibs="$deplibs $arg"
  74881. + fi
  74882. + continue
  74883. + ;;
  74884. +
  74885. + # Some other compiler argument.
  74886. + *)
  74887. + # Unknown arguments in both finalize_command and compile_command need
  74888. + # to be aesthetically quoted because they are evaled later.
  74889. + func_quote_for_eval "$arg"
  74890. + arg="$func_quote_for_eval_result"
  74891. + ;;
  74892. + esac # arg
  74893. +
  74894. + # Now actually substitute the argument into the commands.
  74895. + if test -n "$arg"; then
  74896. + func_append compile_command " $arg"
  74897. + func_append finalize_command " $arg"
  74898. + fi
  74899. + done # argument parsing loop
  74900. +
  74901. + test -n "$prev" && \
  74902. + func_fatal_help "the \`$prevarg' option requires an argument"
  74903. +
  74904. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  74905. + eval arg=\"$export_dynamic_flag_spec\"
  74906. + func_append compile_command " $arg"
  74907. + func_append finalize_command " $arg"
  74908. fi
  74909. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  74910. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  74911. - done
  74912. + oldlibs=
  74913. + # calculate the name of the file, without its directory
  74914. + func_basename "$output"
  74915. + outputname="$func_basename_result"
  74916. + libobjs_save="$libobjs"
  74917. +
  74918. + if test -n "$shlibpath_var"; then
  74919. + # get the directories listed in $shlibpath_var
  74920. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  74921. + else
  74922. + shlib_search_path=
  74923. + fi
  74924. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  74925. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  74926. +
  74927. + func_dirname "$output" "/" ""
  74928. + output_objdir="$func_dirname_result$objdir"
  74929. + # Create the object directory.
  74930. + func_mkdir_p "$output_objdir"
  74931. +
  74932. + # Determine the type of output
  74933. + case $output in
  74934. + "")
  74935. + func_fatal_help "you must specify an output file"
  74936. + ;;
  74937. + *.$libext) linkmode=oldlib ;;
  74938. + *.lo | *.$objext) linkmode=obj ;;
  74939. + *.la) linkmode=lib ;;
  74940. + *) linkmode=prog ;; # Anything else should be a program.
  74941. + esac
  74942. +
  74943. + specialdeplibs=
  74944. +
  74945. + libs=
  74946. + # Find all interdependent deplibs by searching for libraries
  74947. + # that are linked more than once (e.g. -la -lb -la)
  74948. + for deplib in $deplibs; do
  74949. + if $opt_duplicate_deps ; then
  74950. + case "$libs " in
  74951. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  74952. + esac
  74953. + fi
  74954. + libs="$libs $deplib"
  74955. + done
  74956. +
  74957. + if test "$linkmode" = lib; then
  74958. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  74959. +
  74960. + # Compute libraries that are listed more than once in $predeps
  74961. + # $postdeps and mark them as special (i.e., whose duplicates are
  74962. + # not to be eliminated).
  74963. + pre_post_deps=
  74964. + if $opt_duplicate_compiler_generated_deps; then
  74965. + for pre_post_dep in $predeps $postdeps; do
  74966. + case "$pre_post_deps " in
  74967. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  74968. + esac
  74969. + pre_post_deps="$pre_post_deps $pre_post_dep"
  74970. + done
  74971. + fi
  74972. + pre_post_deps=
  74973. + fi
  74974. +
  74975. + deplibs=
  74976. + newdependency_libs=
  74977. + newlib_search_path=
  74978. + need_relink=no # whether we're linking any uninstalled libtool libraries
  74979. + notinst_deplibs= # not-installed libtool libraries
  74980. + notinst_path= # paths that contain not-installed libtool libraries
  74981. +
  74982. + case $linkmode in
  74983. + lib)
  74984. + passes="conv dlpreopen link"
  74985. + for file in $dlfiles $dlprefiles; do
  74986. + case $file in
  74987. + *.la) ;;
  74988. + *)
  74989. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  74990. + ;;
  74991. + esac
  74992. + done
  74993. + ;;
  74994. + prog)
  74995. + compile_deplibs=
  74996. + finalize_deplibs=
  74997. + alldeplibs=no
  74998. + newdlfiles=
  74999. + newdlprefiles=
  75000. + passes="conv scan dlopen dlpreopen link"
  75001. + ;;
  75002. + *) passes="conv"
  75003. + ;;
  75004. + esac
  75005. +
  75006. + for pass in $passes; do
  75007. + # The preopen pass in lib mode reverses $deplibs; put it back here
  75008. + # so that -L comes before libs that need it for instance...
  75009. + if test "$linkmode,$pass" = "lib,link"; then
  75010. + ## FIXME: Find the place where the list is rebuilt in the wrong
  75011. + ## order, and fix it there properly
  75012. + tmp_deplibs=
  75013. + for deplib in $deplibs; do
  75014. + tmp_deplibs="$deplib $tmp_deplibs"
  75015. + done
  75016. + deplibs="$tmp_deplibs"
  75017. + fi
  75018. +
  75019. + if test "$linkmode,$pass" = "lib,link" ||
  75020. + test "$linkmode,$pass" = "prog,scan"; then
  75021. + libs="$deplibs"
  75022. + deplibs=
  75023. + fi
  75024. + if test "$linkmode" = prog; then
  75025. + case $pass in
  75026. + dlopen) libs="$dlfiles" ;;
  75027. + dlpreopen) libs="$dlprefiles" ;;
  75028. + link)
  75029. + libs="$deplibs %DEPLIBS%"
  75030. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  75031. + ;;
  75032. + esac
  75033. + fi
  75034. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  75035. + # Collect and forward deplibs of preopened libtool libs
  75036. + for lib in $dlprefiles; do
  75037. + # Ignore non-libtool-libs
  75038. + dependency_libs=
  75039. + case $lib in
  75040. + *.la) func_source "$lib" ;;
  75041. + esac
  75042. +
  75043. + # Collect preopened libtool deplibs, except any this library
  75044. + # has declared as weak libs
  75045. + for deplib in $dependency_libs; do
  75046. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  75047. + case " $weak_libs " in
  75048. + *" $deplib_base "*) ;;
  75049. + *) deplibs="$deplibs $deplib" ;;
  75050. + esac
  75051. + done
  75052. + done
  75053. + libs="$dlprefiles"
  75054. + fi
  75055. + if test "$pass" = dlopen; then
  75056. + # Collect dlpreopened libraries
  75057. + save_deplibs="$deplibs"
  75058. + deplibs=
  75059. + fi
  75060. +
  75061. + for deplib in $libs; do
  75062. + lib=
  75063. + found=no
  75064. + case $deplib in
  75065. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  75066. + if test "$linkmode,$pass" = "prog,link"; then
  75067. + compile_deplibs="$deplib $compile_deplibs"
  75068. + finalize_deplibs="$deplib $finalize_deplibs"
  75069. + else
  75070. + compiler_flags="$compiler_flags $deplib"
  75071. + if test "$linkmode" = lib ; then
  75072. + case "$new_inherited_linker_flags " in
  75073. + *" $deplib "*) ;;
  75074. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  75075. + esac
  75076. + fi
  75077. + fi
  75078. + continue
  75079. + ;;
  75080. + -l*)
  75081. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  75082. + func_warning "\`-l' is ignored for archives/objects"
  75083. + continue
  75084. + fi
  75085. + func_stripname '-l' '' "$deplib"
  75086. + name=$func_stripname_result
  75087. + if test "$linkmode" = lib; then
  75088. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  75089. + else
  75090. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  75091. + fi
  75092. + for searchdir in $searchdirs; do
  75093. + for search_ext in .la $std_shrext .so .a; do
  75094. + # Search the libtool library
  75095. + lib="$searchdir/lib${name}${search_ext}"
  75096. + if test -f "$lib"; then
  75097. + if test "$search_ext" = ".la"; then
  75098. + found=yes
  75099. + else
  75100. + found=no
  75101. + fi
  75102. + break 2
  75103. + fi
  75104. + done
  75105. + done
  75106. + if test "$found" != yes; then
  75107. + # deplib doesn't seem to be a libtool library
  75108. + if test "$linkmode,$pass" = "prog,link"; then
  75109. + compile_deplibs="$deplib $compile_deplibs"
  75110. + finalize_deplibs="$deplib $finalize_deplibs"
  75111. + else
  75112. + deplibs="$deplib $deplibs"
  75113. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  75114. + fi
  75115. + continue
  75116. + else # deplib is a libtool library
  75117. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  75118. + # We need to do some special things here, and not later.
  75119. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  75120. + case " $predeps $postdeps " in
  75121. + *" $deplib "*)
  75122. + if func_lalib_p "$lib"; then
  75123. + library_names=
  75124. + old_library=
  75125. + func_source "$lib"
  75126. + for l in $old_library $library_names; do
  75127. + ll="$l"
  75128. + done
  75129. + if test "X$ll" = "X$old_library" ; then # only static version available
  75130. + found=no
  75131. + func_dirname "$lib" "" "."
  75132. + ladir="$func_dirname_result"
  75133. + lib=$ladir/$old_library
  75134. + if test "$linkmode,$pass" = "prog,link"; then
  75135. + compile_deplibs="$deplib $compile_deplibs"
  75136. + finalize_deplibs="$deplib $finalize_deplibs"
  75137. + else
  75138. + deplibs="$deplib $deplibs"
  75139. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  75140. + fi
  75141. + continue
  75142. + fi
  75143. + fi
  75144. + ;;
  75145. + *) ;;
  75146. + esac
  75147. + fi
  75148. + fi
  75149. + ;; # -l
  75150. + *.ltframework)
  75151. + if test "$linkmode,$pass" = "prog,link"; then
  75152. + compile_deplibs="$deplib $compile_deplibs"
  75153. + finalize_deplibs="$deplib $finalize_deplibs"
  75154. + else
  75155. + deplibs="$deplib $deplibs"
  75156. + if test "$linkmode" = lib ; then
  75157. + case "$new_inherited_linker_flags " in
  75158. + *" $deplib "*) ;;
  75159. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  75160. + esac
  75161. + fi
  75162. + fi
  75163. + continue
  75164. + ;;
  75165. + -L*)
  75166. + case $linkmode in
  75167. + lib)
  75168. + deplibs="$deplib $deplibs"
  75169. + test "$pass" = conv && continue
  75170. + newdependency_libs="$deplib $newdependency_libs"
  75171. + func_stripname '-L' '' "$deplib"
  75172. + newlib_search_path="$newlib_search_path $func_stripname_result"
  75173. + ;;
  75174. + prog)
  75175. + if test "$pass" = conv; then
  75176. + deplibs="$deplib $deplibs"
  75177. + continue
  75178. + fi
  75179. + if test "$pass" = scan; then
  75180. + deplibs="$deplib $deplibs"
  75181. + else
  75182. + compile_deplibs="$deplib $compile_deplibs"
  75183. + finalize_deplibs="$deplib $finalize_deplibs"
  75184. + fi
  75185. + func_stripname '-L' '' "$deplib"
  75186. + newlib_search_path="$newlib_search_path $func_stripname_result"
  75187. + ;;
  75188. + *)
  75189. + func_warning "\`-L' is ignored for archives/objects"
  75190. + ;;
  75191. + esac # linkmode
  75192. + continue
  75193. + ;; # -L
  75194. + -R*)
  75195. + if test "$pass" = link; then
  75196. + func_stripname '-R' '' "$deplib"
  75197. + dir=$func_stripname_result
  75198. + # Make sure the xrpath contains only unique directories.
  75199. + case "$xrpath " in
  75200. + *" $dir "*) ;;
  75201. + *) xrpath="$xrpath $dir" ;;
  75202. + esac
  75203. + fi
  75204. + deplibs="$deplib $deplibs"
  75205. + continue
  75206. + ;;
  75207. + *.la) lib="$deplib" ;;
  75208. + *.$libext)
  75209. + if test "$pass" = conv; then
  75210. + deplibs="$deplib $deplibs"
  75211. + continue
  75212. + fi
  75213. + case $linkmode in
  75214. + lib)
  75215. + # Linking convenience modules into shared libraries is allowed,
  75216. + # but linking other static libraries is non-portable.
  75217. + case " $dlpreconveniencelibs " in
  75218. + *" $deplib "*) ;;
  75219. + *)
  75220. + valid_a_lib=no
  75221. + case $deplibs_check_method in
  75222. + match_pattern*)
  75223. + set dummy $deplibs_check_method; shift
  75224. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  75225. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  75226. + | $EGREP "$match_pattern_regex" > /dev/null; then
  75227. + valid_a_lib=yes
  75228. + fi
  75229. + ;;
  75230. + pass_all)
  75231. + valid_a_lib=yes
  75232. + ;;
  75233. + esac
  75234. + if test "$valid_a_lib" != yes; then
  75235. + $ECHO
  75236. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  75237. + $ECHO "*** I have the capability to make that library automatically link in when"
  75238. + $ECHO "*** you link to this library. But I can only do this if you have a"
  75239. + $ECHO "*** shared version of the library, which you do not appear to have"
  75240. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  75241. + $ECHO "*** that it is just a static archive that I should not use here."
  75242. + else
  75243. + $ECHO
  75244. + $ECHO "*** Warning: Linking the shared library $output against the"
  75245. + $ECHO "*** static library $deplib is not portable!"
  75246. + deplibs="$deplib $deplibs"
  75247. + fi
  75248. + ;;
  75249. + esac
  75250. + continue
  75251. + ;;
  75252. + prog)
  75253. + if test "$pass" != link; then
  75254. + deplibs="$deplib $deplibs"
  75255. + else
  75256. + compile_deplibs="$deplib $compile_deplibs"
  75257. + finalize_deplibs="$deplib $finalize_deplibs"
  75258. + fi
  75259. + continue
  75260. + ;;
  75261. + esac # linkmode
  75262. + ;; # *.$libext
  75263. + *.lo | *.$objext)
  75264. + if test "$pass" = conv; then
  75265. + deplibs="$deplib $deplibs"
  75266. + elif test "$linkmode" = prog; then
  75267. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  75268. + # If there is no dlopen support or we're linking statically,
  75269. + # we need to preload.
  75270. + newdlprefiles="$newdlprefiles $deplib"
  75271. + compile_deplibs="$deplib $compile_deplibs"
  75272. + finalize_deplibs="$deplib $finalize_deplibs"
  75273. + else
  75274. + newdlfiles="$newdlfiles $deplib"
  75275. + fi
  75276. + fi
  75277. + continue
  75278. + ;;
  75279. + %DEPLIBS%)
  75280. + alldeplibs=yes
  75281. + continue
  75282. + ;;
  75283. + esac # case $deplib
  75284. +
  75285. + if test "$found" = yes || test -f "$lib"; then :
  75286. + else
  75287. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  75288. + fi
  75289. +
  75290. + # Check to see that this really is a libtool archive.
  75291. + func_lalib_unsafe_p "$lib" \
  75292. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  75293. +
  75294. + func_dirname "$lib" "" "."
  75295. + ladir="$func_dirname_result"
  75296. +
  75297. + dlname=
  75298. + dlopen=
  75299. + dlpreopen=
  75300. + libdir=
  75301. + library_names=
  75302. + old_library=
  75303. + inherited_linker_flags=
  75304. + # If the library was installed with an old release of libtool,
  75305. + # it will not redefine variables installed, or shouldnotlink
  75306. + installed=yes
  75307. + shouldnotlink=no
  75308. + avoidtemprpath=
  75309. +
  75310. +
  75311. + # Read the .la file
  75312. + func_source "$lib"
  75313. +
  75314. + # Convert "-framework foo" to "foo.ltframework"
  75315. + if test -n "$inherited_linker_flags"; then
  75316. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  75317. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  75318. + case " $new_inherited_linker_flags " in
  75319. + *" $tmp_inherited_linker_flag "*) ;;
  75320. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  75321. + esac
  75322. + done
  75323. + fi
  75324. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  75325. + if test "$linkmode,$pass" = "lib,link" ||
  75326. + test "$linkmode,$pass" = "prog,scan" ||
  75327. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  75328. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  75329. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  75330. + fi
  75331. +
  75332. + if test "$pass" = conv; then
  75333. + # Only check for convenience libraries
  75334. + deplibs="$lib $deplibs"
  75335. + if test -z "$libdir"; then
  75336. + if test -z "$old_library"; then
  75337. + func_fatal_error "cannot find name of link library for \`$lib'"
  75338. + fi
  75339. + # It is a libtool convenience library, so add in its objects.
  75340. + convenience="$convenience $ladir/$objdir/$old_library"
  75341. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  75342. + tmp_libs=
  75343. + for deplib in $dependency_libs; do
  75344. + deplibs="$deplib $deplibs"
  75345. + if $opt_duplicate_deps ; then
  75346. + case "$tmp_libs " in
  75347. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  75348. + esac
  75349. + fi
  75350. + tmp_libs="$tmp_libs $deplib"
  75351. + done
  75352. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  75353. + func_fatal_error "\`$lib' is not a convenience library"
  75354. + fi
  75355. + continue
  75356. + fi # $pass = conv
  75357. +
  75358. +
  75359. + # Get the name of the library we link against.
  75360. + linklib=
  75361. + for l in $old_library $library_names; do
  75362. + linklib="$l"
  75363. + done
  75364. + if test -z "$linklib"; then
  75365. + func_fatal_error "cannot find name of link library for \`$lib'"
  75366. + fi
  75367. +
  75368. + # This library was specified with -dlopen.
  75369. + if test "$pass" = dlopen; then
  75370. + if test -z "$libdir"; then
  75371. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  75372. + fi
  75373. + if test -z "$dlname" ||
  75374. + test "$dlopen_support" != yes ||
  75375. + test "$build_libtool_libs" = no; then
  75376. + # If there is no dlname, no dlopen support or we're linking
  75377. + # statically, we need to preload. We also need to preload any
  75378. + # dependent libraries so libltdl's deplib preloader doesn't
  75379. + # bomb out in the load deplibs phase.
  75380. + dlprefiles="$dlprefiles $lib $dependency_libs"
  75381. + else
  75382. + newdlfiles="$newdlfiles $lib"
  75383. + fi
  75384. + continue
  75385. + fi # $pass = dlopen
  75386. +
  75387. + # We need an absolute path.
  75388. + case $ladir in
  75389. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  75390. + *)
  75391. + abs_ladir=`cd "$ladir" && pwd`
  75392. + if test -z "$abs_ladir"; then
  75393. + func_warning "cannot determine absolute directory name of \`$ladir'"
  75394. + func_warning "passing it literally to the linker, although it might fail"
  75395. + abs_ladir="$ladir"
  75396. + fi
  75397. + ;;
  75398. + esac
  75399. + func_basename "$lib"
  75400. + laname="$func_basename_result"
  75401. +
  75402. + # Find the relevant object directory and library name.
  75403. + if test "X$installed" = Xyes; then
  75404. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  75405. + func_warning "library \`$lib' was moved."
  75406. + dir="$ladir"
  75407. + absdir="$abs_ladir"
  75408. + libdir="$abs_ladir"
  75409. + else
  75410. + dir="$libdir"
  75411. + absdir="$libdir"
  75412. + fi
  75413. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  75414. + else
  75415. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  75416. + dir="$ladir"
  75417. + absdir="$abs_ladir"
  75418. + # Remove this search path later
  75419. + notinst_path="$notinst_path $abs_ladir"
  75420. + else
  75421. + dir="$ladir/$objdir"
  75422. + absdir="$abs_ladir/$objdir"
  75423. + # Remove this search path later
  75424. + notinst_path="$notinst_path $abs_ladir"
  75425. + fi
  75426. + fi # $installed = yes
  75427. + func_stripname 'lib' '.la' "$laname"
  75428. + name=$func_stripname_result
  75429. +
  75430. + # This library was specified with -dlpreopen.
  75431. + if test "$pass" = dlpreopen; then
  75432. + if test -z "$libdir" && test "$linkmode" = prog; then
  75433. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  75434. + fi
  75435. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  75436. + # are required to link).
  75437. + if test -n "$old_library"; then
  75438. + newdlprefiles="$newdlprefiles $dir/$old_library"
  75439. + # Keep a list of preopened convenience libraries to check
  75440. + # that they are being used correctly in the link pass.
  75441. + test -z "$libdir" && \
  75442. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  75443. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  75444. + elif test -n "$dlname"; then
  75445. + newdlprefiles="$newdlprefiles $dir/$dlname"
  75446. + else
  75447. + newdlprefiles="$newdlprefiles $dir/$linklib"
  75448. + fi
  75449. + fi # $pass = dlpreopen
  75450. +
  75451. + if test -z "$libdir"; then
  75452. + # Link the convenience library
  75453. + if test "$linkmode" = lib; then
  75454. + deplibs="$dir/$old_library $deplibs"
  75455. + elif test "$linkmode,$pass" = "prog,link"; then
  75456. + compile_deplibs="$dir/$old_library $compile_deplibs"
  75457. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  75458. + else
  75459. + deplibs="$lib $deplibs" # used for prog,scan pass
  75460. + fi
  75461. + continue
  75462. + fi
  75463. +
  75464. +
  75465. + if test "$linkmode" = prog && test "$pass" != link; then
  75466. + newlib_search_path="$newlib_search_path $ladir"
  75467. + deplibs="$lib $deplibs"
  75468. +
  75469. + linkalldeplibs=no
  75470. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  75471. + test "$build_libtool_libs" = no; then
  75472. + linkalldeplibs=yes
  75473. + fi
  75474. +
  75475. + tmp_libs=
  75476. + for deplib in $dependency_libs; do
  75477. + case $deplib in
  75478. + -L*) func_stripname '-L' '' "$deplib"
  75479. + newlib_search_path="$newlib_search_path $func_stripname_result"
  75480. + ;;
  75481. + esac
  75482. + # Need to link against all dependency_libs?
  75483. + if test "$linkalldeplibs" = yes; then
  75484. + deplibs="$deplib $deplibs"
  75485. + else
  75486. + # Need to hardcode shared library paths
  75487. + # or/and link against static libraries
  75488. + newdependency_libs="$deplib $newdependency_libs"
  75489. + fi
  75490. + if $opt_duplicate_deps ; then
  75491. + case "$tmp_libs " in
  75492. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  75493. + esac
  75494. + fi
  75495. + tmp_libs="$tmp_libs $deplib"
  75496. + done # for deplib
  75497. + continue
  75498. + fi # $linkmode = prog...
  75499. +
  75500. + if test "$linkmode,$pass" = "prog,link"; then
  75501. + if test -n "$library_names" &&
  75502. + { { test "$prefer_static_libs" = no ||
  75503. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  75504. + test -z "$old_library"; }; then
  75505. + # We need to hardcode the library path
  75506. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  75507. + # Make sure the rpath contains only unique directories.
  75508. + case "$temp_rpath:" in
  75509. + *"$absdir:"*) ;;
  75510. + *) temp_rpath="$temp_rpath$absdir:" ;;
  75511. + esac
  75512. + fi
  75513. +
  75514. + # Hardcode the library path.
  75515. + # Skip directories that are in the system default run-time
  75516. + # search path.
  75517. + case " $sys_lib_dlsearch_path " in
  75518. + *" $absdir "*) ;;
  75519. + *)
  75520. + case "$compile_rpath " in
  75521. + *" $absdir "*) ;;
  75522. + *) compile_rpath="$compile_rpath $absdir"
  75523. + esac
  75524. + ;;
  75525. + esac
  75526. + case " $sys_lib_dlsearch_path " in
  75527. + *" $libdir "*) ;;
  75528. + *)
  75529. + case "$finalize_rpath " in
  75530. + *" $libdir "*) ;;
  75531. + *) finalize_rpath="$finalize_rpath $libdir"
  75532. + esac
  75533. + ;;
  75534. + esac
  75535. + fi # $linkmode,$pass = prog,link...
  75536. +
  75537. + if test "$alldeplibs" = yes &&
  75538. + { test "$deplibs_check_method" = pass_all ||
  75539. + { test "$build_libtool_libs" = yes &&
  75540. + test -n "$library_names"; }; }; then
  75541. + # We only need to search for static libraries
  75542. + continue
  75543. + fi
  75544. + fi
  75545. +
  75546. + link_static=no # Whether the deplib will be linked statically
  75547. + use_static_libs=$prefer_static_libs
  75548. + if test "$use_static_libs" = built && test "$installed" = yes; then
  75549. + use_static_libs=no
  75550. + fi
  75551. + if test -n "$library_names" &&
  75552. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  75553. + case $host in
  75554. + *cygwin* | *mingw* | *cegcc*)
  75555. + # No point in relinking DLLs because paths are not encoded
  75556. + notinst_deplibs="$notinst_deplibs $lib"
  75557. + need_relink=no
  75558. + ;;
  75559. + *)
  75560. + if test "$installed" = no; then
  75561. + notinst_deplibs="$notinst_deplibs $lib"
  75562. + need_relink=yes
  75563. + fi
  75564. + ;;
  75565. + esac
  75566. + # This is a shared library
  75567. +
  75568. + # Warn about portability, can't link against -module's on some
  75569. + # systems (darwin). Don't bleat about dlopened modules though!
  75570. + dlopenmodule=""
  75571. + for dlpremoduletest in $dlprefiles; do
  75572. + if test "X$dlpremoduletest" = "X$lib"; then
  75573. + dlopenmodule="$dlpremoduletest"
  75574. + break
  75575. + fi
  75576. + done
  75577. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  75578. + $ECHO
  75579. + if test "$linkmode" = prog; then
  75580. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  75581. + else
  75582. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  75583. + fi
  75584. + $ECHO "*** $linklib is not portable!"
  75585. + fi
  75586. + if test "$linkmode" = lib &&
  75587. + test "$hardcode_into_libs" = yes; then
  75588. + # Hardcode the library path.
  75589. + # Skip directories that are in the system default run-time
  75590. + # search path.
  75591. + case " $sys_lib_dlsearch_path " in
  75592. + *" $absdir "*) ;;
  75593. + *)
  75594. + case "$compile_rpath " in
  75595. + *" $absdir "*) ;;
  75596. + *) compile_rpath="$compile_rpath $absdir"
  75597. + esac
  75598. + ;;
  75599. + esac
  75600. + case " $sys_lib_dlsearch_path " in
  75601. + *" $libdir "*) ;;
  75602. + *)
  75603. + case "$finalize_rpath " in
  75604. + *" $libdir "*) ;;
  75605. + *) finalize_rpath="$finalize_rpath $libdir"
  75606. + esac
  75607. + ;;
  75608. + esac
  75609. + fi
  75610. +
  75611. + if test -n "$old_archive_from_expsyms_cmds"; then
  75612. + # figure out the soname
  75613. + set dummy $library_names
  75614. + shift
  75615. + realname="$1"
  75616. + shift
  75617. + libname=`eval "\\$ECHO \"$libname_spec\""`
  75618. + # use dlname if we got it. it's perfectly good, no?
  75619. + if test -n "$dlname"; then
  75620. + soname="$dlname"
  75621. + elif test -n "$soname_spec"; then
  75622. + # bleh windows
  75623. + case $host in
  75624. + *cygwin* | mingw* | *cegcc*)
  75625. + func_arith $current - $age
  75626. + major=$func_arith_result
  75627. + versuffix="-$major"
  75628. + ;;
  75629. + esac
  75630. + eval soname=\"$soname_spec\"
  75631. + else
  75632. + soname="$realname"
  75633. + fi
  75634. +
  75635. + # Make a new name for the extract_expsyms_cmds to use
  75636. + soroot="$soname"
  75637. + func_basename "$soroot"
  75638. + soname="$func_basename_result"
  75639. + func_stripname 'lib' '.dll' "$soname"
  75640. + newlib=libimp-$func_stripname_result.a
  75641. +
  75642. + # If the library has no export list, then create one now
  75643. + if test -f "$output_objdir/$soname-def"; then :
  75644. + else
  75645. + func_verbose "extracting exported symbol list from \`$soname'"
  75646. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  75647. + fi
  75648. +
  75649. + # Create $newlib
  75650. + if test -f "$output_objdir/$newlib"; then :; else
  75651. + func_verbose "generating import library for \`$soname'"
  75652. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  75653. + fi
  75654. + # make sure the library variables are pointing to the new library
  75655. + dir=$output_objdir
  75656. + linklib=$newlib
  75657. + fi # test -n "$old_archive_from_expsyms_cmds"
  75658. +
  75659. + if test "$linkmode" = prog || test "$mode" != relink; then
  75660. + add_shlibpath=
  75661. + add_dir=
  75662. + add=
  75663. + lib_linked=yes
  75664. + case $hardcode_action in
  75665. + immediate | unsupported)
  75666. + if test "$hardcode_direct" = no; then
  75667. + add="$dir/$linklib"
  75668. + case $host in
  75669. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  75670. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  75671. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  75672. + *-*-unixware7*) add_dir="-L$dir" ;;
  75673. + *-*-darwin* )
  75674. + # if the lib is a (non-dlopened) module then we can not
  75675. + # link against it, someone is ignoring the earlier warnings
  75676. + if /usr/bin/file -L $add 2> /dev/null |
  75677. + $GREP ": [^:]* bundle" >/dev/null ; then
  75678. + if test "X$dlopenmodule" != "X$lib"; then
  75679. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  75680. + if test -z "$old_library" ; then
  75681. + $ECHO
  75682. + $ECHO "*** And there doesn't seem to be a static archive available"
  75683. + $ECHO "*** The link will probably fail, sorry"
  75684. + else
  75685. + add="$dir/$old_library"
  75686. + fi
  75687. + elif test -n "$old_library"; then
  75688. + add="$dir/$old_library"
  75689. + fi
  75690. + fi
  75691. + esac
  75692. + elif test "$hardcode_minus_L" = no; then
  75693. + case $host in
  75694. + *-*-sunos*) add_shlibpath="$dir" ;;
  75695. + esac
  75696. + add_dir="-L$dir"
  75697. + add="-l$name"
  75698. + elif test "$hardcode_shlibpath_var" = no; then
  75699. + add_shlibpath="$dir"
  75700. + add="-l$name"
  75701. + else
  75702. + lib_linked=no
  75703. + fi
  75704. + ;;
  75705. + relink)
  75706. + if test "$hardcode_direct" = yes &&
  75707. + test "$hardcode_direct_absolute" = no; then
  75708. + add="$dir/$linklib"
  75709. + elif test "$hardcode_minus_L" = yes; then
  75710. + add_dir="-L$dir"
  75711. + # Try looking first in the location we're being installed to.
  75712. + if test -n "$inst_prefix_dir"; then
  75713. + case $libdir in
  75714. + [\\/]*)
  75715. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  75716. + ;;
  75717. + esac
  75718. + fi
  75719. + add="-l$name"
  75720. + elif test "$hardcode_shlibpath_var" = yes; then
  75721. + add_shlibpath="$dir"
  75722. + add="-l$name"
  75723. + else
  75724. + lib_linked=no
  75725. + fi
  75726. + ;;
  75727. + *) lib_linked=no ;;
  75728. + esac
  75729. +
  75730. + if test "$lib_linked" != yes; then
  75731. + func_fatal_configuration "unsupported hardcode properties"
  75732. + fi
  75733. +
  75734. + if test -n "$add_shlibpath"; then
  75735. + case :$compile_shlibpath: in
  75736. + *":$add_shlibpath:"*) ;;
  75737. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  75738. + esac
  75739. + fi
  75740. + if test "$linkmode" = prog; then
  75741. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  75742. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  75743. + else
  75744. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  75745. + test -n "$add" && deplibs="$add $deplibs"
  75746. + if test "$hardcode_direct" != yes &&
  75747. + test "$hardcode_minus_L" != yes &&
  75748. + test "$hardcode_shlibpath_var" = yes; then
  75749. + case :$finalize_shlibpath: in
  75750. + *":$libdir:"*) ;;
  75751. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  75752. + esac
  75753. + fi
  75754. + fi
  75755. + fi
  75756. +
  75757. + if test "$linkmode" = prog || test "$mode" = relink; then
  75758. + add_shlibpath=
  75759. + add_dir=
  75760. + add=
  75761. + # Finalize command for both is simple: just hardcode it.
  75762. + if test "$hardcode_direct" = yes &&
  75763. + test "$hardcode_direct_absolute" = no; then
  75764. + add="$libdir/$linklib"
  75765. + elif test "$hardcode_minus_L" = yes; then
  75766. + add_dir="-L$libdir"
  75767. + add="-l$name"
  75768. + elif test "$hardcode_shlibpath_var" = yes; then
  75769. + case :$finalize_shlibpath: in
  75770. + *":$libdir:"*) ;;
  75771. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  75772. + esac
  75773. + add="-l$name"
  75774. + elif test "$hardcode_automatic" = yes; then
  75775. + if test -n "$inst_prefix_dir" &&
  75776. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  75777. + add="$inst_prefix_dir$libdir/$linklib"
  75778. + else
  75779. + add="$libdir/$linklib"
  75780. + fi
  75781. + else
  75782. + # We cannot seem to hardcode it, guess we'll fake it.
  75783. + add_dir="-L$libdir"
  75784. + # Try looking first in the location we're being installed to.
  75785. + if test -n "$inst_prefix_dir"; then
  75786. + case $libdir in
  75787. + [\\/]*)
  75788. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  75789. + ;;
  75790. + esac
  75791. + fi
  75792. + add="-l$name"
  75793. + fi
  75794. +
  75795. + if test "$linkmode" = prog; then
  75796. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  75797. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  75798. + else
  75799. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  75800. + test -n "$add" && deplibs="$add $deplibs"
  75801. + fi
  75802. + fi
  75803. + elif test "$linkmode" = prog; then
  75804. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  75805. + # is not unsupported. This is valid on all known static and
  75806. + # shared platforms.
  75807. + if test "$hardcode_direct" != unsupported; then
  75808. + test -n "$old_library" && linklib="$old_library"
  75809. + compile_deplibs="$dir/$linklib $compile_deplibs"
  75810. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  75811. + else
  75812. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  75813. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  75814. + fi
  75815. + elif test "$build_libtool_libs" = yes; then
  75816. + # Not a shared library
  75817. + if test "$deplibs_check_method" != pass_all; then
  75818. + # We're trying link a shared library against a static one
  75819. + # but the system doesn't support it.
  75820. +
  75821. + # Just print a warning and add the library to dependency_libs so
  75822. + # that the program can be linked against the static library.
  75823. + $ECHO
  75824. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  75825. + $ECHO "*** I have the capability to make that library automatically link in when"
  75826. + $ECHO "*** you link to this library. But I can only do this if you have a"
  75827. + $ECHO "*** shared version of the library, which you do not appear to have."
  75828. + if test "$module" = yes; then
  75829. + $ECHO "*** But as you try to build a module library, libtool will still create "
  75830. + $ECHO "*** a static module, that should work as long as the dlopening application"
  75831. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  75832. + if test -z "$global_symbol_pipe"; then
  75833. + $ECHO
  75834. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  75835. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  75836. + $ECHO "*** not find such a program. So, this module is probably useless."
  75837. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  75838. + fi
  75839. + if test "$build_old_libs" = no; then
  75840. + build_libtool_libs=module
  75841. + build_old_libs=yes
  75842. + else
  75843. + build_libtool_libs=no
  75844. + fi
  75845. + fi
  75846. + else
  75847. + deplibs="$dir/$old_library $deplibs"
  75848. + link_static=yes
  75849. + fi
  75850. + fi # link shared/static library?
  75851. +
  75852. + if test "$linkmode" = lib; then
  75853. + if test -n "$dependency_libs" &&
  75854. + { test "$hardcode_into_libs" != yes ||
  75855. + test "$build_old_libs" = yes ||
  75856. + test "$link_static" = yes; }; then
  75857. + # Extract -R from dependency_libs
  75858. + temp_deplibs=
  75859. + for libdir in $dependency_libs; do
  75860. + case $libdir in
  75861. + -R*) func_stripname '-R' '' "$libdir"
  75862. + temp_xrpath=$func_stripname_result
  75863. + case " $xrpath " in
  75864. + *" $temp_xrpath "*) ;;
  75865. + *) xrpath="$xrpath $temp_xrpath";;
  75866. + esac;;
  75867. + *) temp_deplibs="$temp_deplibs $libdir";;
  75868. + esac
  75869. + done
  75870. + dependency_libs="$temp_deplibs"
  75871. + fi
  75872. +
  75873. + newlib_search_path="$newlib_search_path $absdir"
  75874. + # Link against this library
  75875. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  75876. + # ... and its dependency_libs
  75877. + tmp_libs=
  75878. + for deplib in $dependency_libs; do
  75879. + newdependency_libs="$deplib $newdependency_libs"
  75880. + if $opt_duplicate_deps ; then
  75881. + case "$tmp_libs " in
  75882. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  75883. + esac
  75884. + fi
  75885. + tmp_libs="$tmp_libs $deplib"
  75886. + done
  75887. +
  75888. + if test "$link_all_deplibs" != no; then
  75889. + # Add the search paths of all dependency libraries
  75890. + for deplib in $dependency_libs; do
  75891. + path=
  75892. + case $deplib in
  75893. + -L*) path="$deplib" ;;
  75894. + *.la)
  75895. + func_dirname "$deplib" "" "."
  75896. + dir="$func_dirname_result"
  75897. + # We need an absolute path.
  75898. + case $dir in
  75899. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  75900. + *)
  75901. + absdir=`cd "$dir" && pwd`
  75902. + if test -z "$absdir"; then
  75903. + func_warning "cannot determine absolute directory name of \`$dir'"
  75904. + absdir="$dir"
  75905. + fi
  75906. + ;;
  75907. + esac
  75908. + if $GREP "^installed=no" $deplib > /dev/null; then
  75909. + case $host in
  75910. + *-*-darwin*)
  75911. + depdepl=
  75912. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  75913. + if test -n "$deplibrary_names" ; then
  75914. + for tmp in $deplibrary_names ; do
  75915. + depdepl=$tmp
  75916. + done
  75917. + if test -f "$absdir/$objdir/$depdepl" ; then
  75918. + depdepl="$absdir/$objdir/$depdepl"
  75919. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  75920. + if test -z "$darwin_install_name"; then
  75921. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  75922. + fi
  75923. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  75924. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  75925. + path=
  75926. + fi
  75927. + fi
  75928. + ;;
  75929. + *)
  75930. + path="-L$absdir/$objdir"
  75931. + ;;
  75932. + esac
  75933. + else
  75934. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  75935. + test -z "$libdir" && \
  75936. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  75937. + test "$absdir" != "$libdir" && \
  75938. + func_warning "\`$deplib' seems to be moved"
  75939. +
  75940. + path="-L$absdir"
  75941. + fi
  75942. + ;;
  75943. + esac
  75944. + case " $deplibs " in
  75945. + *" $path "*) ;;
  75946. + *) deplibs="$path $deplibs" ;;
  75947. + esac
  75948. + done
  75949. + fi # link_all_deplibs != no
  75950. + fi # linkmode = lib
  75951. + done # for deplib in $libs
  75952. + if test "$pass" = link; then
  75953. + if test "$linkmode" = "prog"; then
  75954. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  75955. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  75956. + else
  75957. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  75958. + fi
  75959. + fi
  75960. + dependency_libs="$newdependency_libs"
  75961. + if test "$pass" = dlpreopen; then
  75962. + # Link the dlpreopened libraries before other libraries
  75963. + for deplib in $save_deplibs; do
  75964. + deplibs="$deplib $deplibs"
  75965. + done
  75966. + fi
  75967. + if test "$pass" != dlopen; then
  75968. + if test "$pass" != conv; then
  75969. + # Make sure lib_search_path contains only unique directories.
  75970. + lib_search_path=
  75971. + for dir in $newlib_search_path; do
  75972. + case "$lib_search_path " in
  75973. + *" $dir "*) ;;
  75974. + *) lib_search_path="$lib_search_path $dir" ;;
  75975. + esac
  75976. + done
  75977. + newlib_search_path=
  75978. + fi
  75979. +
  75980. + if test "$linkmode,$pass" != "prog,link"; then
  75981. + vars="deplibs"
  75982. + else
  75983. + vars="compile_deplibs finalize_deplibs"
  75984. + fi
  75985. + for var in $vars dependency_libs; do
  75986. + # Add libraries to $var in reverse order
  75987. + eval tmp_libs=\"\$$var\"
  75988. + new_libs=
  75989. + for deplib in $tmp_libs; do
  75990. + # FIXME: Pedantically, this is the right thing to do, so
  75991. + # that some nasty dependency loop isn't accidentally
  75992. + # broken:
  75993. + #new_libs="$deplib $new_libs"
  75994. + # Pragmatically, this seems to cause very few problems in
  75995. + # practice:
  75996. + case $deplib in
  75997. + -L*) new_libs="$deplib $new_libs" ;;
  75998. + -R*) ;;
  75999. + *)
  76000. + # And here is the reason: when a library appears more
  76001. + # than once as an explicit dependence of a library, or
  76002. + # is implicitly linked in more than once by the
  76003. + # compiler, it is considered special, and multiple
  76004. + # occurrences thereof are not removed. Compare this
  76005. + # with having the same library being listed as a
  76006. + # dependency of multiple other libraries: in this case,
  76007. + # we know (pedantically, we assume) the library does not
  76008. + # need to be listed more than once, so we keep only the
  76009. + # last copy. This is not always right, but it is rare
  76010. + # enough that we require users that really mean to play
  76011. + # such unportable linking tricks to link the library
  76012. + # using -Wl,-lname, so that libtool does not consider it
  76013. + # for duplicate removal.
  76014. + case " $specialdeplibs " in
  76015. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  76016. + *)
  76017. + case " $new_libs " in
  76018. + *" $deplib "*) ;;
  76019. + *) new_libs="$deplib $new_libs" ;;
  76020. + esac
  76021. + ;;
  76022. + esac
  76023. + ;;
  76024. + esac
  76025. + done
  76026. + tmp_libs=
  76027. + for deplib in $new_libs; do
  76028. + case $deplib in
  76029. + -L*)
  76030. + case " $tmp_libs " in
  76031. + *" $deplib "*) ;;
  76032. + *) tmp_libs="$tmp_libs $deplib" ;;
  76033. + esac
  76034. + ;;
  76035. + *) tmp_libs="$tmp_libs $deplib" ;;
  76036. + esac
  76037. + done
  76038. + eval $var=\"$tmp_libs\"
  76039. + done # for var
  76040. + fi
  76041. + # Last step: remove runtime libs from dependency_libs
  76042. + # (they stay in deplibs)
  76043. + tmp_libs=
  76044. + for i in $dependency_libs ; do
  76045. + case " $predeps $postdeps $compiler_lib_search_path " in
  76046. + *" $i "*)
  76047. + i=""
  76048. + ;;
  76049. + esac
  76050. + if test -n "$i" ; then
  76051. + tmp_libs="$tmp_libs $i"
  76052. + fi
  76053. + done
  76054. + dependency_libs=$tmp_libs
  76055. + done # for pass
  76056. + if test "$linkmode" = prog; then
  76057. + dlfiles="$newdlfiles"
  76058. + fi
  76059. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  76060. + dlprefiles="$newdlprefiles"
  76061. + fi
  76062. +
  76063. + case $linkmode in
  76064. + oldlib)
  76065. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  76066. + func_warning "\`-dlopen' is ignored for archives"
  76067. + fi
  76068. +
  76069. + case " $deplibs" in
  76070. + *\ -l* | *\ -L*)
  76071. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  76072. + esac
  76073. +
  76074. + test -n "$rpath" && \
  76075. + func_warning "\`-rpath' is ignored for archives"
  76076. +
  76077. + test -n "$xrpath" && \
  76078. + func_warning "\`-R' is ignored for archives"
  76079. +
  76080. + test -n "$vinfo" && \
  76081. + func_warning "\`-version-info/-version-number' is ignored for archives"
  76082. +
  76083. + test -n "$release" && \
  76084. + func_warning "\`-release' is ignored for archives"
  76085. +
  76086. + test -n "$export_symbols$export_symbols_regex" && \
  76087. + func_warning "\`-export-symbols' is ignored for archives"
  76088. +
  76089. + # Now set the variables for building old libraries.
  76090. + build_libtool_libs=no
  76091. + oldlibs="$output"
  76092. + objs="$objs$old_deplibs"
  76093. + ;;
  76094. +
  76095. + lib)
  76096. + # Make sure we only generate libraries of the form `libNAME.la'.
  76097. + case $outputname in
  76098. + lib*)
  76099. + func_stripname 'lib' '.la' "$outputname"
  76100. + name=$func_stripname_result
  76101. + eval shared_ext=\"$shrext_cmds\"
  76102. + eval libname=\"$libname_spec\"
  76103. + ;;
  76104. + *)
  76105. + test "$module" = no && \
  76106. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  76107. +
  76108. + if test "$need_lib_prefix" != no; then
  76109. + # Add the "lib" prefix for modules if required
  76110. + func_stripname '' '.la' "$outputname"
  76111. + name=$func_stripname_result
  76112. + eval shared_ext=\"$shrext_cmds\"
  76113. + eval libname=\"$libname_spec\"
  76114. + else
  76115. + func_stripname '' '.la' "$outputname"
  76116. + libname=$func_stripname_result
  76117. + fi
  76118. + ;;
  76119. + esac
  76120. +
  76121. + if test -n "$objs"; then
  76122. + if test "$deplibs_check_method" != pass_all; then
  76123. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  76124. + else
  76125. + $ECHO
  76126. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  76127. + $ECHO "*** objects $objs is not portable!"
  76128. + libobjs="$libobjs $objs"
  76129. + fi
  76130. + fi
  76131. +
  76132. + test "$dlself" != no && \
  76133. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  76134. +
  76135. + set dummy $rpath
  76136. + shift
  76137. + test "$#" -gt 1 && \
  76138. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  76139. +
  76140. + install_libdir="$1"
  76141. +
  76142. + oldlibs=
  76143. + if test -z "$rpath"; then
  76144. + if test "$build_libtool_libs" = yes; then
  76145. + # Building a libtool convenience library.
  76146. + # Some compilers have problems with a `.al' extension so
  76147. + # convenience libraries should have the same extension an
  76148. + # archive normally would.
  76149. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  76150. + build_libtool_libs=convenience
  76151. + build_old_libs=yes
  76152. + fi
  76153. +
  76154. + test -n "$vinfo" && \
  76155. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  76156. +
  76157. + test -n "$release" && \
  76158. + func_warning "\`-release' is ignored for convenience libraries"
  76159. + else
  76160. +
  76161. + # Parse the version information argument.
  76162. + save_ifs="$IFS"; IFS=':'
  76163. + set dummy $vinfo 0 0 0
  76164. + shift
  76165. + IFS="$save_ifs"
  76166. +
  76167. + test -n "$7" && \
  76168. + func_fatal_help "too many parameters to \`-version-info'"
  76169. +
  76170. + # convert absolute version numbers to libtool ages
  76171. + # this retains compatibility with .la files and attempts
  76172. + # to make the code below a bit more comprehensible
  76173. +
  76174. + case $vinfo_number in
  76175. + yes)
  76176. + number_major="$1"
  76177. + number_minor="$2"
  76178. + number_revision="$3"
  76179. + #
  76180. + # There are really only two kinds -- those that
  76181. + # use the current revision as the major version
  76182. + # and those that subtract age and use age as
  76183. + # a minor version. But, then there is irix
  76184. + # which has an extra 1 added just for fun
  76185. + #
  76186. + case $version_type in
  76187. + darwin|linux|osf|windows|none)
  76188. + func_arith $number_major + $number_minor
  76189. + current=$func_arith_result
  76190. + age="$number_minor"
  76191. + revision="$number_revision"
  76192. + ;;
  76193. + freebsd-aout|freebsd-elf|sunos)
  76194. + current="$number_major"
  76195. + revision="$number_minor"
  76196. + age="0"
  76197. + ;;
  76198. + irix|nonstopux)
  76199. + func_arith $number_major + $number_minor
  76200. + current=$func_arith_result
  76201. + age="$number_minor"
  76202. + revision="$number_minor"
  76203. + lt_irix_increment=no
  76204. + ;;
  76205. + *)
  76206. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  76207. + ;;
  76208. + esac
  76209. + ;;
  76210. + no)
  76211. + current="$1"
  76212. + revision="$2"
  76213. + age="$3"
  76214. + ;;
  76215. + esac
  76216. +
  76217. + # Check that each of the things are valid numbers.
  76218. + case $current in
  76219. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  76220. + *)
  76221. + func_error "CURRENT \`$current' must be a nonnegative integer"
  76222. + func_fatal_error "\`$vinfo' is not valid version information"
  76223. + ;;
  76224. + esac
  76225. +
  76226. + case $revision in
  76227. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  76228. + *)
  76229. + func_error "REVISION \`$revision' must be a nonnegative integer"
  76230. + func_fatal_error "\`$vinfo' is not valid version information"
  76231. + ;;
  76232. + esac
  76233. +
  76234. + case $age in
  76235. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  76236. + *)
  76237. + func_error "AGE \`$age' must be a nonnegative integer"
  76238. + func_fatal_error "\`$vinfo' is not valid version information"
  76239. + ;;
  76240. + esac
  76241. +
  76242. + if test "$age" -gt "$current"; then
  76243. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  76244. + func_fatal_error "\`$vinfo' is not valid version information"
  76245. + fi
  76246. +
  76247. + # Calculate the version variables.
  76248. + major=
  76249. + versuffix=
  76250. + verstring=
  76251. + case $version_type in
  76252. + none) ;;
  76253. +
  76254. + darwin)
  76255. + # Like Linux, but with the current version available in
  76256. + # verstring for coding it into the library header
  76257. + func_arith $current - $age
  76258. + major=.$func_arith_result
  76259. + versuffix="$major.$age.$revision"
  76260. + # Darwin ld doesn't like 0 for these options...
  76261. + func_arith $current + 1
  76262. + minor_current=$func_arith_result
  76263. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  76264. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  76265. + ;;
  76266. +
  76267. + freebsd-aout)
  76268. + major=".$current"
  76269. + versuffix=".$current.$revision";
  76270. + ;;
  76271. +
  76272. + freebsd-elf)
  76273. + major=".$current"
  76274. + versuffix=".$current"
  76275. + ;;
  76276. +
  76277. + irix | nonstopux)
  76278. + if test "X$lt_irix_increment" = "Xno"; then
  76279. + func_arith $current - $age
  76280. + else
  76281. + func_arith $current - $age + 1
  76282. + fi
  76283. + major=$func_arith_result
  76284. +
  76285. + case $version_type in
  76286. + nonstopux) verstring_prefix=nonstopux ;;
  76287. + *) verstring_prefix=sgi ;;
  76288. + esac
  76289. + verstring="$verstring_prefix$major.$revision"
  76290. +
  76291. + # Add in all the interfaces that we are compatible with.
  76292. + loop=$revision
  76293. + while test "$loop" -ne 0; do
  76294. + func_arith $revision - $loop
  76295. + iface=$func_arith_result
  76296. + func_arith $loop - 1
  76297. + loop=$func_arith_result
  76298. + verstring="$verstring_prefix$major.$iface:$verstring"
  76299. + done
  76300. +
  76301. + # Before this point, $major must not contain `.'.
  76302. + major=.$major
  76303. + versuffix="$major.$revision"
  76304. + ;;
  76305. +
  76306. + linux)
  76307. + func_arith $current - $age
  76308. + major=.$func_arith_result
  76309. + versuffix="$major.$age.$revision"
  76310. + ;;
  76311. +
  76312. + osf)
  76313. + func_arith $current - $age
  76314. + major=.$func_arith_result
  76315. + versuffix=".$current.$age.$revision"
  76316. + verstring="$current.$age.$revision"
  76317. +
  76318. + # Add in all the interfaces that we are compatible with.
  76319. + loop=$age
  76320. + while test "$loop" -ne 0; do
  76321. + func_arith $current - $loop
  76322. + iface=$func_arith_result
  76323. + func_arith $loop - 1
  76324. + loop=$func_arith_result
  76325. + verstring="$verstring:${iface}.0"
  76326. + done
  76327. +
  76328. + # Make executables depend on our current version.
  76329. + verstring="$verstring:${current}.0"
  76330. + ;;
  76331. +
  76332. + qnx)
  76333. + major=".$current"
  76334. + versuffix=".$current"
  76335. + ;;
  76336. +
  76337. + sunos)
  76338. + major=".$current"
  76339. + versuffix=".$current.$revision"
  76340. + ;;
  76341. +
  76342. + windows)
  76343. + # Use '-' rather than '.', since we only want one
  76344. + # extension on DOS 8.3 filesystems.
  76345. + func_arith $current - $age
  76346. + major=$func_arith_result
  76347. + versuffix="-$major"
  76348. + ;;
  76349. +
  76350. + *)
  76351. + func_fatal_configuration "unknown library version type \`$version_type'"
  76352. + ;;
  76353. + esac
  76354. +
  76355. + # Clear the version info if we defaulted, and they specified a release.
  76356. + if test -z "$vinfo" && test -n "$release"; then
  76357. + major=
  76358. + case $version_type in
  76359. + darwin)
  76360. + # we can't check for "0.0" in archive_cmds due to quoting
  76361. + # problems, so we reset it completely
  76362. + verstring=
  76363. + ;;
  76364. + *)
  76365. + verstring="0.0"
  76366. + ;;
  76367. + esac
  76368. + if test "$need_version" = no; then
  76369. + versuffix=
  76370. + else
  76371. + versuffix=".0.0"
  76372. + fi
  76373. + fi
  76374. +
  76375. + # Remove version info from name if versioning should be avoided
  76376. + if test "$avoid_version" = yes && test "$need_version" = no; then
  76377. + major=
  76378. + versuffix=
  76379. + verstring=""
  76380. + fi
  76381. +
  76382. + # Check to see if the archive will have undefined symbols.
  76383. + if test "$allow_undefined" = yes; then
  76384. + if test "$allow_undefined_flag" = unsupported; then
  76385. + func_warning "undefined symbols not allowed in $host shared libraries"
  76386. + build_libtool_libs=no
  76387. + build_old_libs=yes
  76388. + fi
  76389. + else
  76390. + # Don't allow undefined symbols.
  76391. + allow_undefined_flag="$no_undefined_flag"
  76392. + fi
  76393. +
  76394. + fi
  76395. +
  76396. + func_generate_dlsyms "$libname" "$libname" "yes"
  76397. + libobjs="$libobjs $symfileobj"
  76398. + test "X$libobjs" = "X " && libobjs=
  76399. +
  76400. + if test "$mode" != relink; then
  76401. + # Remove our outputs, but don't remove object files since they
  76402. + # may have been created when compiling PIC objects.
  76403. + removelist=
  76404. + tempremovelist=`$ECHO "$output_objdir/*"`
  76405. + for p in $tempremovelist; do
  76406. + case $p in
  76407. + *.$objext | *.gcno)
  76408. + ;;
  76409. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  76410. + if test "X$precious_files_regex" != "X"; then
  76411. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  76412. + then
  76413. + continue
  76414. + fi
  76415. + fi
  76416. + removelist="$removelist $p"
  76417. + ;;
  76418. + *) ;;
  76419. + esac
  76420. + done
  76421. + test -n "$removelist" && \
  76422. + func_show_eval "${RM}r \$removelist"
  76423. + fi
  76424. +
  76425. + # Now set the variables for building old libraries.
  76426. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  76427. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  76428. +
  76429. + # Transform .lo files to .o files.
  76430. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  76431. + fi
  76432. +
  76433. + # Eliminate all temporary directories.
  76434. + #for path in $notinst_path; do
  76435. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  76436. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  76437. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  76438. + #done
  76439. +
  76440. + if test -n "$xrpath"; then
  76441. + # If the user specified any rpath flags, then add them.
  76442. + temp_xrpath=
  76443. + for libdir in $xrpath; do
  76444. + temp_xrpath="$temp_xrpath -R$libdir"
  76445. + case "$finalize_rpath " in
  76446. + *" $libdir "*) ;;
  76447. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  76448. + esac
  76449. + done
  76450. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  76451. + dependency_libs="$temp_xrpath $dependency_libs"
  76452. + fi
  76453. + fi
  76454. +
  76455. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  76456. + old_dlfiles="$dlfiles"
  76457. + dlfiles=
  76458. + for lib in $old_dlfiles; do
  76459. + case " $dlprefiles $dlfiles " in
  76460. + *" $lib "*) ;;
  76461. + *) dlfiles="$dlfiles $lib" ;;
  76462. + esac
  76463. + done
  76464. +
  76465. + # Make sure dlprefiles contains only unique files
  76466. + old_dlprefiles="$dlprefiles"
  76467. + dlprefiles=
  76468. + for lib in $old_dlprefiles; do
  76469. + case "$dlprefiles " in
  76470. + *" $lib "*) ;;
  76471. + *) dlprefiles="$dlprefiles $lib" ;;
  76472. + esac
  76473. + done
  76474. +
  76475. + if test "$build_libtool_libs" = yes; then
  76476. + if test -n "$rpath"; then
  76477. + case $host in
  76478. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  76479. + # these systems don't actually have a c library (as such)!
  76480. + ;;
  76481. + *-*-rhapsody* | *-*-darwin1.[012])
  76482. + # Rhapsody C library is in the System framework
  76483. + deplibs="$deplibs System.ltframework"
  76484. + ;;
  76485. + *-*-netbsd*)
  76486. + # Don't link with libc until the a.out ld.so is fixed.
  76487. + ;;
  76488. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  76489. + # Do not include libc due to us having libc/libc_r.
  76490. + ;;
  76491. + *-*-sco3.2v5* | *-*-sco5v6*)
  76492. + # Causes problems with __ctype
  76493. + ;;
  76494. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  76495. + # Compiler inserts libc in the correct place for threads to work
  76496. + ;;
  76497. + *)
  76498. + # Add libc to deplibs on all other systems if necessary.
  76499. + if test "$build_libtool_need_lc" = "yes"; then
  76500. + deplibs="$deplibs -lc"
  76501. + fi
  76502. + ;;
  76503. + esac
  76504. + fi
  76505. +
  76506. + # Transform deplibs into only deplibs that can be linked in shared.
  76507. + name_save=$name
  76508. + libname_save=$libname
  76509. + release_save=$release
  76510. + versuffix_save=$versuffix
  76511. + major_save=$major
  76512. + # I'm not sure if I'm treating the release correctly. I think
  76513. + # release should show up in the -l (ie -lgmp5) so we don't want to
  76514. + # add it in twice. Is that correct?
  76515. + release=""
  76516. + versuffix=""
  76517. + major=""
  76518. + newdeplibs=
  76519. + droppeddeps=no
  76520. + case $deplibs_check_method in
  76521. + pass_all)
  76522. + # Don't check for shared/static. Everything works.
  76523. + # This might be a little naive. We might want to check
  76524. + # whether the library exists or not. But this is on
  76525. + # osf3 & osf4 and I'm not really sure... Just
  76526. + # implementing what was already the behavior.
  76527. + newdeplibs=$deplibs
  76528. + ;;
  76529. + test_compile)
  76530. + # This code stresses the "libraries are programs" paradigm to its
  76531. + # limits. Maybe even breaks it. We compile a program, linking it
  76532. + # against the deplibs as a proxy for the library. Then we can check
  76533. + # whether they linked in statically or dynamically with ldd.
  76534. + $opt_dry_run || $RM conftest.c
  76535. + cat > conftest.c <<EOF
  76536. + int main() { return 0; }
  76537. +EOF
  76538. + $opt_dry_run || $RM conftest
  76539. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  76540. + ldd_output=`ldd conftest`
  76541. + for i in $deplibs; do
  76542. + case $i in
  76543. + -l*)
  76544. + func_stripname -l '' "$i"
  76545. + name=$func_stripname_result
  76546. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  76547. + case " $predeps $postdeps " in
  76548. + *" $i "*)
  76549. + newdeplibs="$newdeplibs $i"
  76550. + i=""
  76551. + ;;
  76552. + esac
  76553. + fi
  76554. + if test -n "$i" ; then
  76555. + libname=`eval "\\$ECHO \"$libname_spec\""`
  76556. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  76557. + set dummy $deplib_matches; shift
  76558. + deplib_match=$1
  76559. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  76560. + newdeplibs="$newdeplibs $i"
  76561. + else
  76562. + droppeddeps=yes
  76563. + $ECHO
  76564. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  76565. + $ECHO "*** I have the capability to make that library automatically link in when"
  76566. + $ECHO "*** you link to this library. But I can only do this if you have a"
  76567. + $ECHO "*** shared version of the library, which I believe you do not have"
  76568. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  76569. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  76570. + fi
  76571. + fi
  76572. + ;;
  76573. + *)
  76574. + newdeplibs="$newdeplibs $i"
  76575. + ;;
  76576. + esac
  76577. + done
  76578. + else
  76579. + # Error occurred in the first compile. Let's try to salvage
  76580. + # the situation: Compile a separate program for each library.
  76581. + for i in $deplibs; do
  76582. + case $i in
  76583. + -l*)
  76584. + func_stripname -l '' "$i"
  76585. + name=$func_stripname_result
  76586. + $opt_dry_run || $RM conftest
  76587. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  76588. + ldd_output=`ldd conftest`
  76589. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  76590. + case " $predeps $postdeps " in
  76591. + *" $i "*)
  76592. + newdeplibs="$newdeplibs $i"
  76593. + i=""
  76594. + ;;
  76595. + esac
  76596. + fi
  76597. + if test -n "$i" ; then
  76598. + libname=`eval "\\$ECHO \"$libname_spec\""`
  76599. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  76600. + set dummy $deplib_matches; shift
  76601. + deplib_match=$1
  76602. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  76603. + newdeplibs="$newdeplibs $i"
  76604. + else
  76605. + droppeddeps=yes
  76606. + $ECHO
  76607. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  76608. + $ECHO "*** I have the capability to make that library automatically link in when"
  76609. + $ECHO "*** you link to this library. But I can only do this if you have a"
  76610. + $ECHO "*** shared version of the library, which you do not appear to have"
  76611. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  76612. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  76613. + fi
  76614. + fi
  76615. + else
  76616. + droppeddeps=yes
  76617. + $ECHO
  76618. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  76619. + $ECHO "*** make it link in! You will probably need to install it or some"
  76620. + $ECHO "*** library that it depends on before this library will be fully"
  76621. + $ECHO "*** functional. Installing it before continuing would be even better."
  76622. + fi
  76623. + ;;
  76624. + *)
  76625. + newdeplibs="$newdeplibs $i"
  76626. + ;;
  76627. + esac
  76628. + done
  76629. + fi
  76630. + ;;
  76631. + file_magic*)
  76632. + set dummy $deplibs_check_method; shift
  76633. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  76634. + for a_deplib in $deplibs; do
  76635. + case $a_deplib in
  76636. + -l*)
  76637. + func_stripname -l '' "$a_deplib"
  76638. + name=$func_stripname_result
  76639. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  76640. + case " $predeps $postdeps " in
  76641. + *" $a_deplib "*)
  76642. + newdeplibs="$newdeplibs $a_deplib"
  76643. + a_deplib=""
  76644. + ;;
  76645. + esac
  76646. + fi
  76647. + if test -n "$a_deplib" ; then
  76648. + libname=`eval "\\$ECHO \"$libname_spec\""`
  76649. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  76650. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  76651. + for potent_lib in $potential_libs; do
  76652. + # Follow soft links.
  76653. + if ls -lLd "$potent_lib" 2>/dev/null |
  76654. + $GREP " -> " >/dev/null; then
  76655. + continue
  76656. + fi
  76657. + # The statement above tries to avoid entering an
  76658. + # endless loop below, in case of cyclic links.
  76659. + # We might still enter an endless loop, since a link
  76660. + # loop can be closed while we follow links,
  76661. + # but so what?
  76662. + potlib="$potent_lib"
  76663. + while test -h "$potlib" 2>/dev/null; do
  76664. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  76665. + case $potliblink in
  76666. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  76667. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  76668. + esac
  76669. + done
  76670. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  76671. + $SED -e 10q |
  76672. + $EGREP "$file_magic_regex" > /dev/null; then
  76673. + newdeplibs="$newdeplibs $a_deplib"
  76674. + a_deplib=""
  76675. + break 2
  76676. + fi
  76677. + done
  76678. + done
  76679. + fi
  76680. + if test -n "$a_deplib" ; then
  76681. + droppeddeps=yes
  76682. + $ECHO
  76683. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  76684. + $ECHO "*** I have the capability to make that library automatically link in when"
  76685. + $ECHO "*** you link to this library. But I can only do this if you have a"
  76686. + $ECHO "*** shared version of the library, which you do not appear to have"
  76687. + $ECHO "*** because I did check the linker path looking for a file starting"
  76688. + if test -z "$potlib" ; then
  76689. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  76690. + else
  76691. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  76692. + $ECHO "*** using a file magic. Last file checked: $potlib"
  76693. + fi
  76694. + fi
  76695. + ;;
  76696. + *)
  76697. + # Add a -L argument.
  76698. + newdeplibs="$newdeplibs $a_deplib"
  76699. + ;;
  76700. + esac
  76701. + done # Gone through all deplibs.
  76702. + ;;
  76703. + match_pattern*)
  76704. + set dummy $deplibs_check_method; shift
  76705. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  76706. + for a_deplib in $deplibs; do
  76707. + case $a_deplib in
  76708. + -l*)
  76709. + func_stripname -l '' "$a_deplib"
  76710. + name=$func_stripname_result
  76711. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  76712. + case " $predeps $postdeps " in
  76713. + *" $a_deplib "*)
  76714. + newdeplibs="$newdeplibs $a_deplib"
  76715. + a_deplib=""
  76716. + ;;
  76717. + esac
  76718. + fi
  76719. + if test -n "$a_deplib" ; then
  76720. + libname=`eval "\\$ECHO \"$libname_spec\""`
  76721. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  76722. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  76723. + for potent_lib in $potential_libs; do
  76724. + potlib="$potent_lib" # see symlink-check above in file_magic test
  76725. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  76726. + $EGREP "$match_pattern_regex" > /dev/null; then
  76727. + newdeplibs="$newdeplibs $a_deplib"
  76728. + a_deplib=""
  76729. + break 2
  76730. + fi
  76731. + done
  76732. + done
  76733. + fi
  76734. + if test -n "$a_deplib" ; then
  76735. + droppeddeps=yes
  76736. + $ECHO
  76737. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  76738. + $ECHO "*** I have the capability to make that library automatically link in when"
  76739. + $ECHO "*** you link to this library. But I can only do this if you have a"
  76740. + $ECHO "*** shared version of the library, which you do not appear to have"
  76741. + $ECHO "*** because I did check the linker path looking for a file starting"
  76742. + if test -z "$potlib" ; then
  76743. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  76744. + else
  76745. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  76746. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  76747. + fi
  76748. + fi
  76749. + ;;
  76750. + *)
  76751. + # Add a -L argument.
  76752. + newdeplibs="$newdeplibs $a_deplib"
  76753. + ;;
  76754. + esac
  76755. + done # Gone through all deplibs.
  76756. + ;;
  76757. + none | unknown | *)
  76758. + newdeplibs=""
  76759. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  76760. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  76761. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  76762. + for i in $predeps $postdeps ; do
  76763. + # can't use Xsed below, because $i might contain '/'
  76764. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  76765. + done
  76766. + fi
  76767. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  76768. + $GREP . >/dev/null; then
  76769. + $ECHO
  76770. + if test "X$deplibs_check_method" = "Xnone"; then
  76771. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  76772. + else
  76773. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  76774. + fi
  76775. + $ECHO "*** All declared inter-library dependencies are being dropped."
  76776. + droppeddeps=yes
  76777. + fi
  76778. + ;;
  76779. + esac
  76780. + versuffix=$versuffix_save
  76781. + major=$major_save
  76782. + release=$release_save
  76783. + libname=$libname_save
  76784. + name=$name_save
  76785. +
  76786. + case $host in
  76787. + *-*-rhapsody* | *-*-darwin1.[012])
  76788. + # On Rhapsody replace the C library with the System framework
  76789. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  76790. + ;;
  76791. + esac
  76792. +
  76793. + if test "$droppeddeps" = yes; then
  76794. + if test "$module" = yes; then
  76795. + $ECHO
  76796. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  76797. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  76798. + $ECHO "*** a static module, that should work as long as the dlopening"
  76799. + $ECHO "*** application is linked with the -dlopen flag."
  76800. + if test -z "$global_symbol_pipe"; then
  76801. + $ECHO
  76802. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  76803. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  76804. + $ECHO "*** not find such a program. So, this module is probably useless."
  76805. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  76806. + fi
  76807. + if test "$build_old_libs" = no; then
  76808. + oldlibs="$output_objdir/$libname.$libext"
  76809. + build_libtool_libs=module
  76810. + build_old_libs=yes
  76811. + else
  76812. + build_libtool_libs=no
  76813. + fi
  76814. + else
  76815. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  76816. + $ECHO "*** automatically added whenever a program is linked with this library"
  76817. + $ECHO "*** or is declared to -dlopen it."
  76818. +
  76819. + if test "$allow_undefined" = no; then
  76820. + $ECHO
  76821. + $ECHO "*** Since this library must not contain undefined symbols,"
  76822. + $ECHO "*** because either the platform does not support them or"
  76823. + $ECHO "*** it was explicitly requested with -no-undefined,"
  76824. + $ECHO "*** libtool will only create a static version of it."
  76825. + if test "$build_old_libs" = no; then
  76826. + oldlibs="$output_objdir/$libname.$libext"
  76827. + build_libtool_libs=module
  76828. + build_old_libs=yes
  76829. + else
  76830. + build_libtool_libs=no
  76831. + fi
  76832. + fi
  76833. + fi
  76834. + fi
  76835. + # Done checking deplibs!
  76836. + deplibs=$newdeplibs
  76837. + fi
  76838. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  76839. + case $host in
  76840. + *-*-darwin*)
  76841. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  76842. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  76843. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  76844. + ;;
  76845. + esac
  76846. +
  76847. + # move library search paths that coincide with paths to not yet
  76848. + # installed libraries to the beginning of the library search list
  76849. + new_libs=
  76850. + for path in $notinst_path; do
  76851. + case " $new_libs " in
  76852. + *" -L$path/$objdir "*) ;;
  76853. + *)
  76854. + case " $deplibs " in
  76855. + *" -L$path/$objdir "*)
  76856. + new_libs="$new_libs -L$path/$objdir" ;;
  76857. + esac
  76858. + ;;
  76859. + esac
  76860. + done
  76861. + for deplib in $deplibs; do
  76862. + case $deplib in
  76863. + -L*)
  76864. + case " $new_libs " in
  76865. + *" $deplib "*) ;;
  76866. + *) new_libs="$new_libs $deplib" ;;
  76867. + esac
  76868. + ;;
  76869. + *) new_libs="$new_libs $deplib" ;;
  76870. + esac
  76871. + done
  76872. + deplibs="$new_libs"
  76873. +
  76874. + # All the library-specific variables (install_libdir is set above).
  76875. + library_names=
  76876. + old_library=
  76877. + dlname=
  76878. +
  76879. + # Test again, we may have decided not to build it any more
  76880. + if test "$build_libtool_libs" = yes; then
  76881. + if test "$hardcode_into_libs" = yes; then
  76882. + # Hardcode the library paths
  76883. + hardcode_libdirs=
  76884. + dep_rpath=
  76885. + rpath="$finalize_rpath"
  76886. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  76887. + for libdir in $rpath; do
  76888. + if test -n "$hardcode_libdir_flag_spec"; then
  76889. + if test -n "$hardcode_libdir_separator"; then
  76890. + if test -z "$hardcode_libdirs"; then
  76891. + hardcode_libdirs="$libdir"
  76892. + else
  76893. + # Just accumulate the unique libdirs.
  76894. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  76895. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  76896. + ;;
  76897. + *)
  76898. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  76899. + ;;
  76900. + esac
  76901. + fi
  76902. + else
  76903. + eval flag=\"$hardcode_libdir_flag_spec\"
  76904. + dep_rpath="$dep_rpath $flag"
  76905. + fi
  76906. + elif test -n "$runpath_var"; then
  76907. + case "$perm_rpath " in
  76908. + *" $libdir "*) ;;
  76909. + *) perm_rpath="$perm_rpath $libdir" ;;
  76910. + esac
  76911. + fi
  76912. + done
  76913. + # Substitute the hardcoded libdirs into the rpath.
  76914. + if test -n "$hardcode_libdir_separator" &&
  76915. + test -n "$hardcode_libdirs"; then
  76916. + libdir="$hardcode_libdirs"
  76917. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  76918. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  76919. + else
  76920. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  76921. + fi
  76922. + fi
  76923. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  76924. + # We should set the runpath_var.
  76925. + rpath=
  76926. + for dir in $perm_rpath; do
  76927. + rpath="$rpath$dir:"
  76928. + done
  76929. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  76930. + fi
  76931. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  76932. + fi
  76933. - # Try to get the absolute directory name.
  76934. - absdir=\`cd \"\$thisdir\" && pwd\`
  76935. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  76936. -"
  76937. + shlibpath="$finalize_shlibpath"
  76938. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  76939. + if test -n "$shlibpath"; then
  76940. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  76941. + fi
  76942. - if test "$fast_install" = yes; then
  76943. - $echo >> $output "\
  76944. - program=lt-'$outputname'$exeext
  76945. - progdir=\"\$thisdir/$objdir\"
  76946. + # Get the real and link names of the library.
  76947. + eval shared_ext=\"$shrext_cmds\"
  76948. + eval library_names=\"$library_names_spec\"
  76949. + set dummy $library_names
  76950. + shift
  76951. + realname="$1"
  76952. + shift
  76953. - if test ! -f \"\$progdir/\$program\" || \\
  76954. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  76955. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  76956. + if test -n "$soname_spec"; then
  76957. + eval soname=\"$soname_spec\"
  76958. + else
  76959. + soname="$realname"
  76960. + fi
  76961. + if test -z "$dlname"; then
  76962. + dlname=$soname
  76963. + fi
  76964. - file=\"\$\$-\$program\"
  76965. + lib="$output_objdir/$realname"
  76966. + linknames=
  76967. + for link
  76968. + do
  76969. + linknames="$linknames $link"
  76970. + done
  76971. - if test ! -d \"\$progdir\"; then
  76972. - $mkdir \"\$progdir\"
  76973. - else
  76974. - $rm \"\$progdir/\$file\"
  76975. - fi"
  76976. + # Use standard objects if they are pic
  76977. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  76978. + test "X$libobjs" = "X " && libobjs=
  76979. - $echo >> $output "\
  76980. + delfiles=
  76981. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  76982. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  76983. + export_symbols="$output_objdir/$libname.uexp"
  76984. + delfiles="$delfiles $export_symbols"
  76985. + fi
  76986. +
  76987. + orig_export_symbols=
  76988. + case $host_os in
  76989. + cygwin* | mingw* | cegcc*)
  76990. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  76991. + # exporting using user supplied symfile
  76992. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  76993. + # and it's NOT already a .def file. Must figure out
  76994. + # which of the given symbols are data symbols and tag
  76995. + # them as such. So, trigger use of export_symbols_cmds.
  76996. + # export_symbols gets reassigned inside the "prepare
  76997. + # the list of exported symbols" if statement, so the
  76998. + # include_expsyms logic still works.
  76999. + orig_export_symbols="$export_symbols"
  77000. + export_symbols=
  77001. + always_export_symbols=yes
  77002. + fi
  77003. + fi
  77004. + ;;
  77005. + esac
  77006. - # relink executable if necessary
  77007. - if test -n \"\$relink_command\"; then
  77008. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  77009. - else
  77010. - $echo \"\$relink_command_output\" >&2
  77011. - $rm \"\$progdir/\$file\"
  77012. - exit $EXIT_FAILURE
  77013. - fi
  77014. - fi
  77015. + # Prepare the list of exported symbols
  77016. + if test -z "$export_symbols"; then
  77017. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  77018. + func_verbose "generating symbol list for \`$libname.la'"
  77019. + export_symbols="$output_objdir/$libname.exp"
  77020. + $opt_dry_run || $RM $export_symbols
  77021. + cmds=$export_symbols_cmds
  77022. + save_ifs="$IFS"; IFS='~'
  77023. + for cmd in $cmds; do
  77024. + IFS="$save_ifs"
  77025. + eval cmd=\"$cmd\"
  77026. + func_len " $cmd"
  77027. + len=$func_len_result
  77028. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  77029. + func_show_eval "$cmd" 'exit $?'
  77030. + skipped_export=false
  77031. + else
  77032. + # The command line is too long to execute in one step.
  77033. + func_verbose "using reloadable object file for export list..."
  77034. + skipped_export=:
  77035. + # Break out early, otherwise skipped_export may be
  77036. + # set to false by a later but shorter cmd.
  77037. + break
  77038. + fi
  77039. + done
  77040. + IFS="$save_ifs"
  77041. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  77042. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  77043. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  77044. + fi
  77045. + fi
  77046. + fi
  77047. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  77048. - { $rm \"\$progdir/\$program\";
  77049. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  77050. - $rm \"\$progdir/\$file\"
  77051. - fi"
  77052. - else
  77053. - $echo >> $output "\
  77054. - program='$outputname'
  77055. - progdir=\"\$thisdir/$objdir\"
  77056. -"
  77057. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  77058. + tmp_export_symbols="$export_symbols"
  77059. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  77060. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  77061. + fi
  77062. +
  77063. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  77064. + # The given exports_symbols file has to be filtered, so filter it.
  77065. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  77066. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  77067. + # 's' commands which not all seds can handle. GNU sed should be fine
  77068. + # though. Also, the filter scales superlinearly with the number of
  77069. + # global variables. join(1) would be nice here, but unfortunately
  77070. + # isn't a blessed tool.
  77071. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  77072. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  77073. + export_symbols=$output_objdir/$libname.def
  77074. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  77075. fi
  77076. - $echo >> $output "\
  77077. + tmp_deplibs=
  77078. + for test_deplib in $deplibs; do
  77079. + case " $convenience " in
  77080. + *" $test_deplib "*) ;;
  77081. + *)
  77082. + tmp_deplibs="$tmp_deplibs $test_deplib"
  77083. + ;;
  77084. + esac
  77085. + done
  77086. + deplibs="$tmp_deplibs"
  77087. - if test -f \"\$progdir/\$program\"; then"
  77088. + if test -n "$convenience"; then
  77089. + if test -n "$whole_archive_flag_spec" &&
  77090. + test "$compiler_needs_object" = yes &&
  77091. + test -z "$libobjs"; then
  77092. + # extract the archives, so we have objects to list.
  77093. + # TODO: could optimize this to just extract one archive.
  77094. + whole_archive_flag_spec=
  77095. + fi
  77096. + if test -n "$whole_archive_flag_spec"; then
  77097. + save_libobjs=$libobjs
  77098. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  77099. + test "X$libobjs" = "X " && libobjs=
  77100. + else
  77101. + gentop="$output_objdir/${outputname}x"
  77102. + generated="$generated $gentop"
  77103. - # Export our shlibpath_var if we have one.
  77104. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  77105. - $echo >> $output "\
  77106. - # Add our own library path to $shlibpath_var
  77107. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  77108. + func_extract_archives $gentop $convenience
  77109. + libobjs="$libobjs $func_extract_archives_result"
  77110. + test "X$libobjs" = "X " && libobjs=
  77111. + fi
  77112. + fi
  77113. - # Some systems cannot cope with colon-terminated $shlibpath_var
  77114. - # The second colon is a workaround for a bug in BeOS R4 sed
  77115. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  77116. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  77117. + eval flag=\"$thread_safe_flag_spec\"
  77118. + linker_flags="$linker_flags $flag"
  77119. + fi
  77120. - export $shlibpath_var
  77121. -"
  77122. + # Make a backup of the uninstalled library when relinking
  77123. + if test "$mode" = relink; then
  77124. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  77125. fi
  77126. - # fixup the dll searchpath if we need to.
  77127. - if test -n "$dllsearchpath"; then
  77128. - $echo >> $output "\
  77129. - # Add the dll search path components to the executable PATH
  77130. - PATH=$dllsearchpath:\$PATH
  77131. -"
  77132. + # Do each of the archive commands.
  77133. + if test "$module" = yes && test -n "$module_cmds" ; then
  77134. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  77135. + eval test_cmds=\"$module_expsym_cmds\"
  77136. + cmds=$module_expsym_cmds
  77137. + else
  77138. + eval test_cmds=\"$module_cmds\"
  77139. + cmds=$module_cmds
  77140. + fi
  77141. + else
  77142. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  77143. + eval test_cmds=\"$archive_expsym_cmds\"
  77144. + cmds=$archive_expsym_cmds
  77145. + else
  77146. + eval test_cmds=\"$archive_cmds\"
  77147. + cmds=$archive_cmds
  77148. + fi
  77149. fi
  77150. - $echo >> $output "\
  77151. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  77152. - # Run the actual program with our arguments.
  77153. -"
  77154. - case $host in
  77155. - # Backslashes separate directories on plain windows
  77156. - *-*-mingw | *-*-os2*)
  77157. - $echo >> $output "\
  77158. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  77159. -"
  77160. - ;;
  77161. + if test "X$skipped_export" != "X:" &&
  77162. + func_len " $test_cmds" &&
  77163. + len=$func_len_result &&
  77164. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  77165. + :
  77166. + else
  77167. + # The command line is too long to link in one step, link piecewise
  77168. + # or, if using GNU ld and skipped_export is not :, use a linker
  77169. + # script.
  77170. - *)
  77171. - $echo >> $output "\
  77172. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  77173. -"
  77174. - ;;
  77175. - esac
  77176. - $echo >> $output "\
  77177. - \$echo \"\$0: cannot exec \$program \$*\"
  77178. - exit $EXIT_FAILURE
  77179. - fi
  77180. - else
  77181. - # The program doesn't exist.
  77182. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  77183. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  77184. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  77185. - exit $EXIT_FAILURE
  77186. - fi
  77187. -fi\
  77188. -"
  77189. - chmod +x $output
  77190. - fi
  77191. - exit $EXIT_SUCCESS
  77192. - ;;
  77193. - esac
  77194. + # Save the value of $output and $libobjs because we want to
  77195. + # use them later. If we have whole_archive_flag_spec, we
  77196. + # want to use save_libobjs as it was before
  77197. + # whole_archive_flag_spec was expanded, because we can't
  77198. + # assume the linker understands whole_archive_flag_spec.
  77199. + # This may have to be revisited, in case too many
  77200. + # convenience libraries get linked in and end up exceeding
  77201. + # the spec.
  77202. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  77203. + save_libobjs=$libobjs
  77204. + fi
  77205. + save_output=$output
  77206. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  77207. - # See if we need to build an old-fashioned archive.
  77208. - for oldlib in $oldlibs; do
  77209. + # Clear the reloadable object creation command queue and
  77210. + # initialize k to one.
  77211. + test_cmds=
  77212. + concat_cmds=
  77213. + objlist=
  77214. + last_robj=
  77215. + k=1
  77216. - if test "$build_libtool_libs" = convenience; then
  77217. - oldobjs="$libobjs_save"
  77218. - addlibs="$convenience"
  77219. - build_libtool_libs=no
  77220. - else
  77221. - if test "$build_libtool_libs" = module; then
  77222. - oldobjs="$libobjs_save"
  77223. - build_libtool_libs=no
  77224. - else
  77225. - oldobjs="$old_deplibs $non_pic_objects"
  77226. - fi
  77227. - addlibs="$old_convenience"
  77228. - fi
  77229. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  77230. + output=${output_objdir}/${output_la}.lnkscript
  77231. + func_verbose "creating GNU ld script: $output"
  77232. + $ECHO 'INPUT (' > $output
  77233. + for obj in $save_libobjs
  77234. + do
  77235. + $ECHO "$obj" >> $output
  77236. + done
  77237. + $ECHO ')' >> $output
  77238. + delfiles="$delfiles $output"
  77239. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  77240. + output=${output_objdir}/${output_la}.lnk
  77241. + func_verbose "creating linker input file list: $output"
  77242. + : > $output
  77243. + set x $save_libobjs
  77244. + shift
  77245. + firstobj=
  77246. + if test "$compiler_needs_object" = yes; then
  77247. + firstobj="$1 "
  77248. + shift
  77249. + fi
  77250. + for obj
  77251. + do
  77252. + $ECHO "$obj" >> $output
  77253. + done
  77254. + delfiles="$delfiles $output"
  77255. + output=$firstobj\"$file_list_spec$output\"
  77256. + else
  77257. + if test -n "$save_libobjs"; then
  77258. + func_verbose "creating reloadable object files..."
  77259. + output=$output_objdir/$output_la-${k}.$objext
  77260. + eval test_cmds=\"$reload_cmds\"
  77261. + func_len " $test_cmds"
  77262. + len0=$func_len_result
  77263. + len=$len0
  77264. +
  77265. + # Loop over the list of objects to be linked.
  77266. + for obj in $save_libobjs
  77267. + do
  77268. + func_len " $obj"
  77269. + func_arith $len + $func_len_result
  77270. + len=$func_arith_result
  77271. + if test "X$objlist" = X ||
  77272. + test "$len" -lt "$max_cmd_len"; then
  77273. + func_append objlist " $obj"
  77274. + else
  77275. + # The command $test_cmds is almost too long, add a
  77276. + # command to the queue.
  77277. + if test "$k" -eq 1 ; then
  77278. + # The first file doesn't have a previous command to add.
  77279. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  77280. + else
  77281. + # All subsequent reloadable object files will link in
  77282. + # the last one created.
  77283. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  77284. + fi
  77285. + last_robj=$output_objdir/$output_la-${k}.$objext
  77286. + func_arith $k + 1
  77287. + k=$func_arith_result
  77288. + output=$output_objdir/$output_la-${k}.$objext
  77289. + objlist=$obj
  77290. + func_len " $last_robj"
  77291. + func_arith $len0 + $func_len_result
  77292. + len=$func_arith_result
  77293. + fi
  77294. + done
  77295. + # Handle the remaining objects by creating one last
  77296. + # reloadable object file. All subsequent reloadable object
  77297. + # files will link in the last one created.
  77298. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  77299. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  77300. + if test -n "$last_robj"; then
  77301. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  77302. + fi
  77303. + delfiles="$delfiles $output"
  77304. - if test -n "$addlibs"; then
  77305. - gentop="$output_objdir/${outputname}x"
  77306. - generated="$generated $gentop"
  77307. + else
  77308. + output=
  77309. + fi
  77310. - func_extract_archives $gentop $addlibs
  77311. - oldobjs="$oldobjs $func_extract_archives_result"
  77312. - fi
  77313. + if ${skipped_export-false}; then
  77314. + func_verbose "generating symbol list for \`$libname.la'"
  77315. + export_symbols="$output_objdir/$libname.exp"
  77316. + $opt_dry_run || $RM $export_symbols
  77317. + libobjs=$output
  77318. + # Append the command to create the export file.
  77319. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  77320. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  77321. + if test -n "$last_robj"; then
  77322. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  77323. + fi
  77324. + fi
  77325. - # Do each command in the archive commands.
  77326. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  77327. - cmds=$old_archive_from_new_cmds
  77328. - else
  77329. - # POSIX demands no paths to be encoded in archives. We have
  77330. - # to avoid creating archives with duplicate basenames if we
  77331. - # might have to extract them afterwards, e.g., when creating a
  77332. - # static archive out of a convenience library, or when linking
  77333. - # the entirety of a libtool archive into another (currently
  77334. - # not supported by libtool).
  77335. - if (for obj in $oldobjs
  77336. - do
  77337. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  77338. - done | sort | sort -uc >/dev/null 2>&1); then
  77339. - :
  77340. - else
  77341. - $echo "copying selected object files to avoid basename conflicts..."
  77342. + test -n "$save_libobjs" &&
  77343. + func_verbose "creating a temporary reloadable object file: $output"
  77344. - if test -z "$gentop"; then
  77345. - gentop="$output_objdir/${outputname}x"
  77346. - generated="$generated $gentop"
  77347. + # Loop through the commands generated above and execute them.
  77348. + save_ifs="$IFS"; IFS='~'
  77349. + for cmd in $concat_cmds; do
  77350. + IFS="$save_ifs"
  77351. + $opt_silent || {
  77352. + func_quote_for_expand "$cmd"
  77353. + eval "func_echo $func_quote_for_expand_result"
  77354. + }
  77355. + $opt_dry_run || eval "$cmd" || {
  77356. + lt_exit=$?
  77357. +
  77358. + # Restore the uninstalled library and exit
  77359. + if test "$mode" = relink; then
  77360. + ( cd "$output_objdir" && \
  77361. + $RM "${realname}T" && \
  77362. + $MV "${realname}U" "$realname" )
  77363. + fi
  77364. - $show "${rm}r $gentop"
  77365. - $run ${rm}r "$gentop"
  77366. - $show "$mkdir $gentop"
  77367. - $run $mkdir "$gentop"
  77368. - exit_status=$?
  77369. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  77370. - exit $exit_status
  77371. + exit $lt_exit
  77372. + }
  77373. + done
  77374. + IFS="$save_ifs"
  77375. +
  77376. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  77377. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  77378. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  77379. fi
  77380. fi
  77381. - save_oldobjs=$oldobjs
  77382. - oldobjs=
  77383. - counter=1
  77384. - for obj in $save_oldobjs
  77385. - do
  77386. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  77387. - case " $oldobjs " in
  77388. - " ") oldobjs=$obj ;;
  77389. - *[\ /]"$objbase "*)
  77390. - while :; do
  77391. - # Make sure we don't pick an alternate name that also
  77392. - # overlaps.
  77393. - newobj=lt$counter-$objbase
  77394. - counter=`expr $counter + 1`
  77395. - case " $oldobjs " in
  77396. - *[\ /]"$newobj "*) ;;
  77397. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  77398. - esac
  77399. - done
  77400. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  77401. - $run ln "$obj" "$gentop/$newobj" ||
  77402. - $run cp "$obj" "$gentop/$newobj"
  77403. - oldobjs="$oldobjs $gentop/$newobj"
  77404. - ;;
  77405. - *) oldobjs="$oldobjs $obj" ;;
  77406. - esac
  77407. - done
  77408. - fi
  77409. + if ${skipped_export-false}; then
  77410. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  77411. + tmp_export_symbols="$export_symbols"
  77412. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  77413. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  77414. + fi
  77415. +
  77416. + if test -n "$orig_export_symbols"; then
  77417. + # The given exports_symbols file has to be filtered, so filter it.
  77418. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  77419. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  77420. + # 's' commands which not all seds can handle. GNU sed should be fine
  77421. + # though. Also, the filter scales superlinearly with the number of
  77422. + # global variables. join(1) would be nice here, but unfortunately
  77423. + # isn't a blessed tool.
  77424. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  77425. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  77426. + export_symbols=$output_objdir/$libname.def
  77427. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  77428. + fi
  77429. + fi
  77430. - eval cmds=\"$old_archive_cmds\"
  77431. + libobjs=$output
  77432. + # Restore the value of output.
  77433. + output=$save_output
  77434. - if len=`expr "X$cmds" : ".*"` &&
  77435. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  77436. - cmds=$old_archive_cmds
  77437. - else
  77438. - # the command line is too long to link in one step, link in parts
  77439. - $echo "using piecewise archive linking..."
  77440. - save_RANLIB=$RANLIB
  77441. - RANLIB=:
  77442. - objlist=
  77443. - concat_cmds=
  77444. - save_oldobjs=$oldobjs
  77445. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  77446. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  77447. + test "X$libobjs" = "X " && libobjs=
  77448. + fi
  77449. + # Expand the library linking commands again to reset the
  77450. + # value of $libobjs for piecewise linking.
  77451. - # Is there a better way of finding the last object in the list?
  77452. - for obj in $save_oldobjs
  77453. - do
  77454. - last_oldobj=$obj
  77455. - done
  77456. - for obj in $save_oldobjs
  77457. - do
  77458. - oldobjs="$objlist $obj"
  77459. - objlist="$objlist $obj"
  77460. - eval test_cmds=\"$old_archive_cmds\"
  77461. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  77462. - test "$len" -le "$max_cmd_len"; then
  77463. - :
  77464. + # Do each of the archive commands.
  77465. + if test "$module" = yes && test -n "$module_cmds" ; then
  77466. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  77467. + cmds=$module_expsym_cmds
  77468. else
  77469. - # the above command should be used before it gets too long
  77470. - oldobjs=$objlist
  77471. - if test "$obj" = "$last_oldobj" ; then
  77472. - RANLIB=$save_RANLIB
  77473. - fi
  77474. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  77475. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  77476. - objlist=
  77477. + cmds=$module_cmds
  77478. fi
  77479. - done
  77480. - RANLIB=$save_RANLIB
  77481. - oldobjs=$objlist
  77482. - if test "X$oldobjs" = "X" ; then
  77483. - eval cmds=\"\$concat_cmds\"
  77484. else
  77485. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  77486. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  77487. + cmds=$archive_expsym_cmds
  77488. + else
  77489. + cmds=$archive_cmds
  77490. + fi
  77491. fi
  77492. fi
  77493. - fi
  77494. - save_ifs="$IFS"; IFS='~'
  77495. - for cmd in $cmds; do
  77496. - eval cmd=\"$cmd\"
  77497. - IFS="$save_ifs"
  77498. - $show "$cmd"
  77499. - $run eval "$cmd" || exit $?
  77500. - done
  77501. - IFS="$save_ifs"
  77502. - done
  77503. - if test -n "$generated"; then
  77504. - $show "${rm}r$generated"
  77505. - $run ${rm}r$generated
  77506. - fi
  77507. + if test -n "$delfiles"; then
  77508. + # Append the command to remove temporary files to $cmds.
  77509. + eval cmds=\"\$cmds~\$RM $delfiles\"
  77510. + fi
  77511. - # Now create the libtool archive.
  77512. - case $output in
  77513. - *.la)
  77514. - old_library=
  77515. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  77516. - $show "creating $output"
  77517. + # Add any objects from preloaded convenience libraries
  77518. + if test -n "$dlprefiles"; then
  77519. + gentop="$output_objdir/${outputname}x"
  77520. + generated="$generated $gentop"
  77521. - # Preserve any variables that may affect compiler behavior
  77522. - for var in $variables_saved_for_relink; do
  77523. - if eval test -z \"\${$var+set}\"; then
  77524. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  77525. - elif eval var_value=\$$var; test -z "$var_value"; then
  77526. - relink_command="$var=; export $var; $relink_command"
  77527. - else
  77528. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  77529. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  77530. + func_extract_archives $gentop $dlprefiles
  77531. + libobjs="$libobjs $func_extract_archives_result"
  77532. + test "X$libobjs" = "X " && libobjs=
  77533. fi
  77534. - done
  77535. - # Quote the link command for shipping.
  77536. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  77537. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  77538. - if test "$hardcode_automatic" = yes ; then
  77539. - relink_command=
  77540. - fi
  77541. + save_ifs="$IFS"; IFS='~'
  77542. + for cmd in $cmds; do
  77543. + IFS="$save_ifs"
  77544. + eval cmd=\"$cmd\"
  77545. + $opt_silent || {
  77546. + func_quote_for_expand "$cmd"
  77547. + eval "func_echo $func_quote_for_expand_result"
  77548. + }
  77549. + $opt_dry_run || eval "$cmd" || {
  77550. + lt_exit=$?
  77551. - # Only create the output if not a dry run.
  77552. - if test -z "$run"; then
  77553. - for installed in no yes; do
  77554. - if test "$installed" = yes; then
  77555. - if test -z "$install_libdir"; then
  77556. - break
  77557. + # Restore the uninstalled library and exit
  77558. + if test "$mode" = relink; then
  77559. + ( cd "$output_objdir" && \
  77560. + $RM "${realname}T" && \
  77561. + $MV "${realname}U" "$realname" )
  77562. fi
  77563. - output="$output_objdir/$outputname"i
  77564. - # Replace all uninstalled libtool libraries with the installed ones
  77565. - newdependency_libs=
  77566. - for deplib in $dependency_libs; do
  77567. - case $deplib in
  77568. - *.la)
  77569. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  77570. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  77571. - if test -z "$libdir"; then
  77572. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  77573. - exit $EXIT_FAILURE
  77574. - fi
  77575. - newdependency_libs="$newdependency_libs $libdir/$name"
  77576. - ;;
  77577. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  77578. - esac
  77579. - done
  77580. - dependency_libs="$newdependency_libs"
  77581. - newdlfiles=
  77582. - for lib in $dlfiles; do
  77583. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  77584. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  77585. - if test -z "$libdir"; then
  77586. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  77587. - exit $EXIT_FAILURE
  77588. - fi
  77589. - newdlfiles="$newdlfiles $libdir/$name"
  77590. - done
  77591. - dlfiles="$newdlfiles"
  77592. - newdlprefiles=
  77593. - for lib in $dlprefiles; do
  77594. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  77595. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  77596. - if test -z "$libdir"; then
  77597. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  77598. - exit $EXIT_FAILURE
  77599. - fi
  77600. - newdlprefiles="$newdlprefiles $libdir/$name"
  77601. - done
  77602. - dlprefiles="$newdlprefiles"
  77603. - else
  77604. - newdlfiles=
  77605. - for lib in $dlfiles; do
  77606. - case $lib in
  77607. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  77608. - *) abs=`pwd`"/$lib" ;;
  77609. - esac
  77610. - newdlfiles="$newdlfiles $abs"
  77611. - done
  77612. - dlfiles="$newdlfiles"
  77613. - newdlprefiles=
  77614. - for lib in $dlprefiles; do
  77615. - case $lib in
  77616. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  77617. - *) abs=`pwd`"/$lib" ;;
  77618. - esac
  77619. - newdlprefiles="$newdlprefiles $abs"
  77620. - done
  77621. - dlprefiles="$newdlprefiles"
  77622. - fi
  77623. - $rm $output
  77624. - # place dlname in correct position for cygwin
  77625. - tdlname=$dlname
  77626. - case $host,$output,$installed,$module,$dlname in
  77627. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  77628. - esac
  77629. - $echo > $output "\
  77630. -# $outputname - a libtool library file
  77631. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  77632. -#
  77633. -# Please DO NOT delete this file!
  77634. -# It is necessary for linking the library.
  77635. -
  77636. -# The name that we can dlopen(3).
  77637. -dlname='$tdlname'
  77638. -
  77639. -# Names of this library.
  77640. -library_names='$library_names'
  77641. -
  77642. -# The name of the static archive.
  77643. -old_library='$old_library'
  77644. -
  77645. -# Libraries that this one depends upon.
  77646. -dependency_libs='$dependency_libs'
  77647. -# Version information for $libname.
  77648. -current=$current
  77649. -age=$age
  77650. -revision=$revision
  77651. + exit $lt_exit
  77652. + }
  77653. + done
  77654. + IFS="$save_ifs"
  77655. -# Is this an already installed library?
  77656. -installed=$installed
  77657. + # Restore the uninstalled library and exit
  77658. + if test "$mode" = relink; then
  77659. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  77660. -# Should we warn about portability when linking against -modules?
  77661. -shouldnotlink=$module
  77662. + if test -n "$convenience"; then
  77663. + if test -z "$whole_archive_flag_spec"; then
  77664. + func_show_eval '${RM}r "$gentop"'
  77665. + fi
  77666. + fi
  77667. -# Files to dlopen/dlpreopen
  77668. -dlopen='$dlfiles'
  77669. -dlpreopen='$dlprefiles'
  77670. + exit $EXIT_SUCCESS
  77671. + fi
  77672. -# Directory that this library needs to be installed in:
  77673. -libdir='$install_libdir'"
  77674. - if test "$installed" = no && test "$need_relink" = yes; then
  77675. - $echo >> $output "\
  77676. -relink_command=\"$relink_command\""
  77677. + # Create links to the real library.
  77678. + for linkname in $linknames; do
  77679. + if test "$realname" != "$linkname"; then
  77680. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  77681. fi
  77682. done
  77683. - fi
  77684. - # Do a symbolic link so that the libtool archive can be found in
  77685. - # LD_LIBRARY_PATH before the program is installed.
  77686. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  77687. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  77688. + # If -module or -export-dynamic was specified, set the dlname.
  77689. + if test "$module" = yes || test "$export_dynamic" = yes; then
  77690. + # On all known operating systems, these are identical.
  77691. + dlname="$soname"
  77692. + fi
  77693. + fi
  77694. ;;
  77695. - esac
  77696. - exit $EXIT_SUCCESS
  77697. - ;;
  77698. - # libtool install mode
  77699. - install)
  77700. - modename="$modename: install"
  77701. + obj)
  77702. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  77703. + func_warning "\`-dlopen' is ignored for objects"
  77704. + fi
  77705. - # There may be an optional sh(1) argument at the beginning of
  77706. - # install_prog (especially on Windows NT).
  77707. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  77708. - # Allow the use of GNU shtool's install command.
  77709. - $echo "X$nonopt" | grep shtool > /dev/null; then
  77710. - # Aesthetically quote it.
  77711. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  77712. - case $arg in
  77713. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  77714. - arg="\"$arg\""
  77715. - ;;
  77716. + case " $deplibs" in
  77717. + *\ -l* | *\ -L*)
  77718. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  77719. esac
  77720. - install_prog="$arg "
  77721. - arg="$1"
  77722. - shift
  77723. - else
  77724. - install_prog=
  77725. - arg=$nonopt
  77726. - fi
  77727. - # The real first argument should be the name of the installation program.
  77728. - # Aesthetically quote it.
  77729. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  77730. - case $arg in
  77731. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  77732. - arg="\"$arg\""
  77733. - ;;
  77734. - esac
  77735. - install_prog="$install_prog$arg"
  77736. + test -n "$rpath" && \
  77737. + func_warning "\`-rpath' is ignored for objects"
  77738. +
  77739. + test -n "$xrpath" && \
  77740. + func_warning "\`-R' is ignored for objects"
  77741. +
  77742. + test -n "$vinfo" && \
  77743. + func_warning "\`-version-info' is ignored for objects"
  77744. +
  77745. + test -n "$release" && \
  77746. + func_warning "\`-release' is ignored for objects"
  77747. - # We need to accept at least all the BSD install flags.
  77748. - dest=
  77749. - files=
  77750. - opts=
  77751. - prev=
  77752. - install_type=
  77753. - isdir=no
  77754. - stripme=
  77755. - for arg
  77756. - do
  77757. - if test -n "$dest"; then
  77758. - files="$files $dest"
  77759. - dest=$arg
  77760. - continue
  77761. - fi
  77762. + case $output in
  77763. + *.lo)
  77764. + test -n "$objs$old_deplibs" && \
  77765. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  77766. - case $arg in
  77767. - -d) isdir=yes ;;
  77768. - -f)
  77769. - case " $install_prog " in
  77770. - *[\\\ /]cp\ *) ;;
  77771. - *) prev=$arg ;;
  77772. - esac
  77773. - ;;
  77774. - -g | -m | -o) prev=$arg ;;
  77775. - -s)
  77776. - stripme=" -s"
  77777. - continue
  77778. - ;;
  77779. - -*)
  77780. + libobj=$output
  77781. + func_lo2o "$libobj"
  77782. + obj=$func_lo2o_result
  77783. ;;
  77784. *)
  77785. - # If the previous option needed an argument, then skip it.
  77786. - if test -n "$prev"; then
  77787. - prev=
  77788. - else
  77789. - dest=$arg
  77790. - continue
  77791. - fi
  77792. + libobj=
  77793. + obj="$output"
  77794. ;;
  77795. esac
  77796. - # Aesthetically quote the argument.
  77797. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  77798. - case $arg in
  77799. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  77800. - arg="\"$arg\""
  77801. - ;;
  77802. - esac
  77803. - install_prog="$install_prog $arg"
  77804. - done
  77805. + # Delete the old objects.
  77806. + $opt_dry_run || $RM $obj $libobj
  77807. - if test -z "$install_prog"; then
  77808. - $echo "$modename: you must specify an install program" 1>&2
  77809. - $echo "$help" 1>&2
  77810. - exit $EXIT_FAILURE
  77811. - fi
  77812. + # Objects from convenience libraries. This assumes
  77813. + # single-version convenience libraries. Whenever we create
  77814. + # different ones for PIC/non-PIC, this we'll have to duplicate
  77815. + # the extraction.
  77816. + reload_conv_objs=
  77817. + gentop=
  77818. + # reload_cmds runs $LD directly, so let us get rid of
  77819. + # -Wl from whole_archive_flag_spec and hope we can get by with
  77820. + # turning comma into space..
  77821. + wl=
  77822. - if test -n "$prev"; then
  77823. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  77824. - $echo "$help" 1>&2
  77825. - exit $EXIT_FAILURE
  77826. - fi
  77827. + if test -n "$convenience"; then
  77828. + if test -n "$whole_archive_flag_spec"; then
  77829. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  77830. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  77831. + else
  77832. + gentop="$output_objdir/${obj}x"
  77833. + generated="$generated $gentop"
  77834. - if test -z "$files"; then
  77835. - if test -z "$dest"; then
  77836. - $echo "$modename: no file or destination specified" 1>&2
  77837. - else
  77838. - $echo "$modename: you must specify a destination" 1>&2
  77839. + func_extract_archives $gentop $convenience
  77840. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  77841. + fi
  77842. fi
  77843. - $echo "$help" 1>&2
  77844. - exit $EXIT_FAILURE
  77845. - fi
  77846. - # Strip any trailing slash from the destination.
  77847. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  77848. + # Create the old-style object.
  77849. + 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
  77850. - # Check to see that the destination is a directory.
  77851. - test -d "$dest" && isdir=yes
  77852. - if test "$isdir" = yes; then
  77853. - destdir="$dest"
  77854. - destname=
  77855. - else
  77856. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  77857. - test "X$destdir" = "X$dest" && destdir=.
  77858. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  77859. + output="$obj"
  77860. + func_execute_cmds "$reload_cmds" 'exit $?'
  77861. - # Not a directory, so check to see that there is only one file specified.
  77862. - set dummy $files
  77863. - if test "$#" -gt 2; then
  77864. - $echo "$modename: \`$dest' is not a directory" 1>&2
  77865. - $echo "$help" 1>&2
  77866. - exit $EXIT_FAILURE
  77867. + # Exit if we aren't doing a library object file.
  77868. + if test -z "$libobj"; then
  77869. + if test -n "$gentop"; then
  77870. + func_show_eval '${RM}r "$gentop"'
  77871. + fi
  77872. +
  77873. + exit $EXIT_SUCCESS
  77874. fi
  77875. - fi
  77876. - case $destdir in
  77877. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  77878. - *)
  77879. - for file in $files; do
  77880. - case $file in
  77881. - *.lo) ;;
  77882. - *)
  77883. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  77884. - $echo "$help" 1>&2
  77885. - exit $EXIT_FAILURE
  77886. - ;;
  77887. - esac
  77888. - done
  77889. +
  77890. + if test "$build_libtool_libs" != yes; then
  77891. + if test -n "$gentop"; then
  77892. + func_show_eval '${RM}r "$gentop"'
  77893. + fi
  77894. +
  77895. + # Create an invalid libtool object if no PIC, so that we don't
  77896. + # accidentally link it into a program.
  77897. + # $show "echo timestamp > $libobj"
  77898. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  77899. + exit $EXIT_SUCCESS
  77900. + fi
  77901. +
  77902. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  77903. + # Only do commands if we really have different PIC objects.
  77904. + reload_objs="$libobjs $reload_conv_objs"
  77905. + output="$libobj"
  77906. + func_execute_cmds "$reload_cmds" 'exit $?'
  77907. + fi
  77908. +
  77909. + if test -n "$gentop"; then
  77910. + func_show_eval '${RM}r "$gentop"'
  77911. + fi
  77912. +
  77913. + exit $EXIT_SUCCESS
  77914. ;;
  77915. - esac
  77916. - # This variable tells wrapper scripts just to set variables rather
  77917. - # than running their programs.
  77918. - libtool_install_magic="$magic"
  77919. + prog)
  77920. + case $host in
  77921. + *cygwin*) func_stripname '' '.exe' "$output"
  77922. + output=$func_stripname_result.exe;;
  77923. + esac
  77924. + test -n "$vinfo" && \
  77925. + func_warning "\`-version-info' is ignored for programs"
  77926. - staticlibs=
  77927. - future_libdirs=
  77928. - current_libdirs=
  77929. - for file in $files; do
  77930. + test -n "$release" && \
  77931. + func_warning "\`-release' is ignored for programs"
  77932. - # Do each installation.
  77933. - case $file in
  77934. - *.$libext)
  77935. - # Do the static libraries later.
  77936. - staticlibs="$staticlibs $file"
  77937. + test "$preload" = yes \
  77938. + && test "$dlopen_support" = unknown \
  77939. + && test "$dlopen_self" = unknown \
  77940. + && test "$dlopen_self_static" = unknown && \
  77941. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  77942. +
  77943. + case $host in
  77944. + *-*-rhapsody* | *-*-darwin1.[012])
  77945. + # On Rhapsody replace the C library is the System framework
  77946. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  77947. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  77948. ;;
  77949. + esac
  77950. - *.la)
  77951. - # Check to see that this really is a libtool archive.
  77952. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  77953. - else
  77954. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  77955. - $echo "$help" 1>&2
  77956. - exit $EXIT_FAILURE
  77957. + case $host in
  77958. + *-*-darwin*)
  77959. + # Don't allow lazy linking, it breaks C++ global constructors
  77960. + # But is supposedly fixed on 10.4 or later (yay!).
  77961. + if test "$tagname" = CXX ; then
  77962. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  77963. + 10.[0123])
  77964. + compile_command="$compile_command ${wl}-bind_at_load"
  77965. + finalize_command="$finalize_command ${wl}-bind_at_load"
  77966. + ;;
  77967. + esac
  77968. fi
  77969. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  77970. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  77971. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  77972. + ;;
  77973. + esac
  77974. - library_names=
  77975. - old_library=
  77976. - relink_command=
  77977. - # If there is no directory component, then add one.
  77978. - case $file in
  77979. - */* | *\\*) . $file ;;
  77980. - *) . ./$file ;;
  77981. - esac
  77982. - # Add the libdir to current_libdirs if it is the destination.
  77983. - if test "X$destdir" = "X$libdir"; then
  77984. - case "$current_libdirs " in
  77985. - *" $libdir "*) ;;
  77986. - *) current_libdirs="$current_libdirs $libdir" ;;
  77987. + # move library search paths that coincide with paths to not yet
  77988. + # installed libraries to the beginning of the library search list
  77989. + new_libs=
  77990. + for path in $notinst_path; do
  77991. + case " $new_libs " in
  77992. + *" -L$path/$objdir "*) ;;
  77993. + *)
  77994. + case " $compile_deplibs " in
  77995. + *" -L$path/$objdir "*)
  77996. + new_libs="$new_libs -L$path/$objdir" ;;
  77997. esac
  77998. - else
  77999. - # Note the libdir as a future libdir.
  78000. - case "$future_libdirs " in
  78001. - *" $libdir "*) ;;
  78002. - *) future_libdirs="$future_libdirs $libdir" ;;
  78003. + ;;
  78004. + esac
  78005. + done
  78006. + for deplib in $compile_deplibs; do
  78007. + case $deplib in
  78008. + -L*)
  78009. + case " $new_libs " in
  78010. + *" $deplib "*) ;;
  78011. + *) new_libs="$new_libs $deplib" ;;
  78012. esac
  78013. - fi
  78014. + ;;
  78015. + *) new_libs="$new_libs $deplib" ;;
  78016. + esac
  78017. + done
  78018. + compile_deplibs="$new_libs"
  78019. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  78020. - test "X$dir" = "X$file/" && dir=
  78021. - dir="$dir$objdir"
  78022. - if test -n "$relink_command"; then
  78023. - # Determine the prefix the user has applied to our future dir.
  78024. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  78025. + compile_command="$compile_command $compile_deplibs"
  78026. + finalize_command="$finalize_command $finalize_deplibs"
  78027. - # Don't allow the user to place us outside of our expected
  78028. - # location b/c this prevents finding dependent libraries that
  78029. - # are installed to the same prefix.
  78030. - # At present, this check doesn't affect windows .dll's that
  78031. - # are installed into $libdir/../bin (currently, that works fine)
  78032. - # but it's something to keep an eye on.
  78033. - if test "$inst_prefix_dir" = "$destdir"; then
  78034. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  78035. - exit $EXIT_FAILURE
  78036. - fi
  78037. + if test -n "$rpath$xrpath"; then
  78038. + # If the user specified any rpath flags, then add them.
  78039. + for libdir in $rpath $xrpath; do
  78040. + # This is the magic to use -rpath.
  78041. + case "$finalize_rpath " in
  78042. + *" $libdir "*) ;;
  78043. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  78044. + esac
  78045. + done
  78046. + fi
  78047. - if test -n "$inst_prefix_dir"; then
  78048. - # Stick the inst_prefix_dir data into the link command.
  78049. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  78050. + # Now hardcode the library paths
  78051. + rpath=
  78052. + hardcode_libdirs=
  78053. + for libdir in $compile_rpath $finalize_rpath; do
  78054. + if test -n "$hardcode_libdir_flag_spec"; then
  78055. + if test -n "$hardcode_libdir_separator"; then
  78056. + if test -z "$hardcode_libdirs"; then
  78057. + hardcode_libdirs="$libdir"
  78058. + else
  78059. + # Just accumulate the unique libdirs.
  78060. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  78061. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  78062. + ;;
  78063. + *)
  78064. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  78065. + ;;
  78066. + esac
  78067. + fi
  78068. else
  78069. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  78070. + eval flag=\"$hardcode_libdir_flag_spec\"
  78071. + rpath="$rpath $flag"
  78072. fi
  78073. + elif test -n "$runpath_var"; then
  78074. + case "$perm_rpath " in
  78075. + *" $libdir "*) ;;
  78076. + *) perm_rpath="$perm_rpath $libdir" ;;
  78077. + esac
  78078. + fi
  78079. + case $host in
  78080. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  78081. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  78082. + case :$dllsearchpath: in
  78083. + *":$libdir:"*) ;;
  78084. + ::) dllsearchpath=$libdir;;
  78085. + *) dllsearchpath="$dllsearchpath:$libdir";;
  78086. + esac
  78087. + case :$dllsearchpath: in
  78088. + *":$testbindir:"*) ;;
  78089. + ::) dllsearchpath=$testbindir;;
  78090. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  78091. + esac
  78092. + ;;
  78093. + esac
  78094. + done
  78095. + # Substitute the hardcoded libdirs into the rpath.
  78096. + if test -n "$hardcode_libdir_separator" &&
  78097. + test -n "$hardcode_libdirs"; then
  78098. + libdir="$hardcode_libdirs"
  78099. + eval rpath=\" $hardcode_libdir_flag_spec\"
  78100. + fi
  78101. + compile_rpath="$rpath"
  78102. - $echo "$modename: warning: relinking \`$file'" 1>&2
  78103. - $show "$relink_command"
  78104. - if $run eval "$relink_command"; then :
  78105. + rpath=
  78106. + hardcode_libdirs=
  78107. + for libdir in $finalize_rpath; do
  78108. + if test -n "$hardcode_libdir_flag_spec"; then
  78109. + if test -n "$hardcode_libdir_separator"; then
  78110. + if test -z "$hardcode_libdirs"; then
  78111. + hardcode_libdirs="$libdir"
  78112. + else
  78113. + # Just accumulate the unique libdirs.
  78114. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  78115. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  78116. + ;;
  78117. + *)
  78118. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  78119. + ;;
  78120. + esac
  78121. + fi
  78122. else
  78123. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  78124. - exit $EXIT_FAILURE
  78125. + eval flag=\"$hardcode_libdir_flag_spec\"
  78126. + rpath="$rpath $flag"
  78127. fi
  78128. + elif test -n "$runpath_var"; then
  78129. + case "$finalize_perm_rpath " in
  78130. + *" $libdir "*) ;;
  78131. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  78132. + esac
  78133. fi
  78134. + done
  78135. + # Substitute the hardcoded libdirs into the rpath.
  78136. + if test -n "$hardcode_libdir_separator" &&
  78137. + test -n "$hardcode_libdirs"; then
  78138. + libdir="$hardcode_libdirs"
  78139. + eval rpath=\" $hardcode_libdir_flag_spec\"
  78140. + fi
  78141. + finalize_rpath="$rpath"
  78142. - # See the names of the shared library.
  78143. - set dummy $library_names
  78144. - if test -n "$2"; then
  78145. - realname="$2"
  78146. - shift
  78147. - shift
  78148. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  78149. + # Transform all the library objects into standard objects.
  78150. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  78151. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  78152. + fi
  78153. - srcname="$realname"
  78154. - test -n "$relink_command" && srcname="$realname"T
  78155. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  78156. - # Install the shared library and build the symlinks.
  78157. - $show "$install_prog $dir/$srcname $destdir/$realname"
  78158. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  78159. - if test -n "$stripme" && test -n "$striplib"; then
  78160. - $show "$striplib $destdir/$realname"
  78161. - $run eval "$striplib $destdir/$realname" || exit $?
  78162. - fi
  78163. + # template prelinking step
  78164. + if test -n "$prelink_cmds"; then
  78165. + func_execute_cmds "$prelink_cmds" 'exit $?'
  78166. + fi
  78167. - if test "$#" -gt 0; then
  78168. - # Delete the old symlinks, and create new ones.
  78169. - # Try `ln -sf' first, because the `ln' binary might depend on
  78170. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  78171. - # so we also need to try rm && ln -s.
  78172. - for linkname
  78173. - do
  78174. - if test "$linkname" != "$realname"; then
  78175. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  78176. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  78177. - fi
  78178. - done
  78179. - fi
  78180. + wrappers_required=yes
  78181. + case $host in
  78182. + *cygwin* | *mingw* )
  78183. + if test "$build_libtool_libs" != yes; then
  78184. + wrappers_required=no
  78185. + fi
  78186. + ;;
  78187. + *cegcc)
  78188. + # Disable wrappers for cegcc, we are cross compiling anyway.
  78189. + wrappers_required=no
  78190. + ;;
  78191. + *)
  78192. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  78193. + wrappers_required=no
  78194. + fi
  78195. + ;;
  78196. + esac
  78197. + if test "$wrappers_required" = no; then
  78198. + # Replace the output file specification.
  78199. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  78200. + link_command="$compile_command$compile_rpath"
  78201. - # Do each command in the postinstall commands.
  78202. - lib="$destdir/$realname"
  78203. - cmds=$postinstall_cmds
  78204. - save_ifs="$IFS"; IFS='~'
  78205. - for cmd in $cmds; do
  78206. - IFS="$save_ifs"
  78207. - eval cmd=\"$cmd\"
  78208. - $show "$cmd"
  78209. - $run eval "$cmd" || {
  78210. - lt_exit=$?
  78211. -
  78212. - # Restore the uninstalled library and exit
  78213. - if test "$mode" = relink; then
  78214. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  78215. - fi
  78216. + # We have no uninstalled library dependencies, so finalize right now.
  78217. + exit_status=0
  78218. + func_show_eval "$link_command" 'exit_status=$?'
  78219. - exit $lt_exit
  78220. - }
  78221. - done
  78222. - IFS="$save_ifs"
  78223. + # Delete the generated files.
  78224. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  78225. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  78226. fi
  78227. - # Install the pseudo-library for information purposes.
  78228. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  78229. - instname="$dir/$name"i
  78230. - $show "$install_prog $instname $destdir/$name"
  78231. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  78232. -
  78233. - # Maybe install the static library, too.
  78234. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  78235. - ;;
  78236. + exit $exit_status
  78237. + fi
  78238. - *.lo)
  78239. - # Install (i.e. copy) a libtool object.
  78240. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  78241. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  78242. + fi
  78243. + if test -n "$finalize_shlibpath"; then
  78244. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  78245. + fi
  78246. - # Figure out destination file name, if it wasn't already specified.
  78247. - if test -n "$destname"; then
  78248. - destfile="$destdir/$destname"
  78249. - else
  78250. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  78251. - destfile="$destdir/$destfile"
  78252. + compile_var=
  78253. + finalize_var=
  78254. + if test -n "$runpath_var"; then
  78255. + if test -n "$perm_rpath"; then
  78256. + # We should set the runpath_var.
  78257. + rpath=
  78258. + for dir in $perm_rpath; do
  78259. + rpath="$rpath$dir:"
  78260. + done
  78261. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  78262. fi
  78263. -
  78264. - # Deduce the name of the destination old-style object file.
  78265. - case $destfile in
  78266. - *.lo)
  78267. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  78268. - ;;
  78269. - *.$objext)
  78270. - staticdest="$destfile"
  78271. - destfile=
  78272. - ;;
  78273. - *)
  78274. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  78275. - $echo "$help" 1>&2
  78276. - exit $EXIT_FAILURE
  78277. - ;;
  78278. - esac
  78279. -
  78280. - # Install the libtool object if requested.
  78281. - if test -n "$destfile"; then
  78282. - $show "$install_prog $file $destfile"
  78283. - $run eval "$install_prog $file $destfile" || exit $?
  78284. + if test -n "$finalize_perm_rpath"; then
  78285. + # We should set the runpath_var.
  78286. + rpath=
  78287. + for dir in $finalize_perm_rpath; do
  78288. + rpath="$rpath$dir:"
  78289. + done
  78290. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  78291. fi
  78292. + fi
  78293. - # Install the old object if enabled.
  78294. - if test "$build_old_libs" = yes; then
  78295. - # Deduce the name of the old-style object file.
  78296. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  78297. -
  78298. - $show "$install_prog $staticobj $staticdest"
  78299. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  78300. - fi
  78301. + if test "$no_install" = yes; then
  78302. + # We don't need to create a wrapper script.
  78303. + link_command="$compile_var$compile_command$compile_rpath"
  78304. + # Replace the output file specification.
  78305. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  78306. + # Delete the old output file.
  78307. + $opt_dry_run || $RM $output
  78308. + # Link the executable and exit
  78309. + func_show_eval "$link_command" 'exit $?'
  78310. exit $EXIT_SUCCESS
  78311. - ;;
  78312. + fi
  78313. - *)
  78314. - # Figure out destination file name, if it wasn't already specified.
  78315. - if test -n "$destname"; then
  78316. - destfile="$destdir/$destname"
  78317. + if test "$hardcode_action" = relink; then
  78318. + # Fast installation is not supported
  78319. + link_command="$compile_var$compile_command$compile_rpath"
  78320. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  78321. +
  78322. + func_warning "this platform does not like uninstalled shared libraries"
  78323. + func_warning "\`$output' will be relinked during installation"
  78324. + else
  78325. + if test "$fast_install" != no; then
  78326. + link_command="$finalize_var$compile_command$finalize_rpath"
  78327. + if test "$fast_install" = yes; then
  78328. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  78329. + else
  78330. + # fast_install is set to needless
  78331. + relink_command=
  78332. + fi
  78333. else
  78334. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  78335. - destfile="$destdir/$destfile"
  78336. + link_command="$compile_var$compile_command$compile_rpath"
  78337. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  78338. fi
  78339. + fi
  78340. - # If the file is missing, and there is a .exe on the end, strip it
  78341. - # because it is most likely a libtool script we actually want to
  78342. - # install
  78343. - stripped_ext=""
  78344. - case $file in
  78345. - *.exe)
  78346. - if test ! -f "$file"; then
  78347. - file=`$echo $file|${SED} 's,.exe$,,'`
  78348. - stripped_ext=".exe"
  78349. - fi
  78350. - ;;
  78351. - esac
  78352. -
  78353. - # Do a test to see if this is really a libtool program.
  78354. - case $host in
  78355. - *cygwin*|*mingw*)
  78356. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  78357. - ;;
  78358. - *)
  78359. - wrapper=$file
  78360. - ;;
  78361. - esac
  78362. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  78363. - notinst_deplibs=
  78364. - relink_command=
  78365. -
  78366. - # Note that it is not necessary on cygwin/mingw to append a dot to
  78367. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  78368. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  78369. - # `FILE.' does not work on cygwin managed mounts.
  78370. - #
  78371. - # If there is no directory component, then add one.
  78372. - case $wrapper in
  78373. - */* | *\\*) . ${wrapper} ;;
  78374. - *) . ./${wrapper} ;;
  78375. - esac
  78376. -
  78377. - # Check the variables that should have been set.
  78378. - if test -z "$notinst_deplibs"; then
  78379. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  78380. - exit $EXIT_FAILURE
  78381. - fi
  78382. + # Replace the output file specification.
  78383. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  78384. - finalize=yes
  78385. - for lib in $notinst_deplibs; do
  78386. - # Check to see that each library is installed.
  78387. - libdir=
  78388. - if test -f "$lib"; then
  78389. - # If there is no directory component, then add one.
  78390. - case $lib in
  78391. - */* | *\\*) . $lib ;;
  78392. - *) . ./$lib ;;
  78393. - esac
  78394. - fi
  78395. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  78396. - if test -n "$libdir" && test ! -f "$libfile"; then
  78397. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  78398. - finalize=no
  78399. - fi
  78400. - done
  78401. + # Delete the old output files.
  78402. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  78403. - relink_command=
  78404. - # Note that it is not necessary on cygwin/mingw to append a dot to
  78405. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  78406. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  78407. - # `FILE.' does not work on cygwin managed mounts.
  78408. - #
  78409. - # If there is no directory component, then add one.
  78410. - case $wrapper in
  78411. - */* | *\\*) . ${wrapper} ;;
  78412. - *) . ./${wrapper} ;;
  78413. - esac
  78414. + func_show_eval "$link_command" 'exit $?'
  78415. - outputname=
  78416. - if test "$fast_install" = no && test -n "$relink_command"; then
  78417. - if test "$finalize" = yes && test -z "$run"; then
  78418. - tmpdir=`func_mktempdir`
  78419. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  78420. - outputname="$tmpdir/$file"
  78421. - # Replace the output file specification.
  78422. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  78423. + # Now create the wrapper script.
  78424. + func_verbose "creating $output"
  78425. - $show "$relink_command"
  78426. - if $run eval "$relink_command"; then :
  78427. - else
  78428. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  78429. - ${rm}r "$tmpdir"
  78430. - continue
  78431. - fi
  78432. - file="$outputname"
  78433. - else
  78434. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  78435. - fi
  78436. + # Quote the relink command for shipping.
  78437. + if test -n "$relink_command"; then
  78438. + # Preserve any variables that may affect compiler behavior
  78439. + for var in $variables_saved_for_relink; do
  78440. + if eval test -z \"\${$var+set}\"; then
  78441. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  78442. + elif eval var_value=\$$var; test -z "$var_value"; then
  78443. + relink_command="$var=; export $var; $relink_command"
  78444. else
  78445. - # Install the binary that we compiled earlier.
  78446. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  78447. + func_quote_for_eval "$var_value"
  78448. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  78449. fi
  78450. - fi
  78451. + done
  78452. + relink_command="(cd `pwd`; $relink_command)"
  78453. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  78454. + fi
  78455. - # remove .exe since cygwin /usr/bin/install will append another
  78456. - # one anyway
  78457. - case $install_prog,$host in
  78458. - */usr/bin/install*,*cygwin*)
  78459. - case $file:$destfile in
  78460. - *.exe:*.exe)
  78461. - # this is ok
  78462. - ;;
  78463. - *.exe:*)
  78464. - destfile=$destfile.exe
  78465. - ;;
  78466. - *:*.exe)
  78467. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  78468. - ;;
  78469. - esac
  78470. - ;;
  78471. + # Quote $ECHO for shipping.
  78472. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  78473. + case $progpath in
  78474. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  78475. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  78476. + esac
  78477. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  78478. + else
  78479. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  78480. + fi
  78481. +
  78482. + # Only actually do things if not in dry run mode.
  78483. + $opt_dry_run || {
  78484. + # win32 will think the script is a binary if it has
  78485. + # a .exe suffix, so we strip it off here.
  78486. + case $output in
  78487. + *.exe) func_stripname '' '.exe' "$output"
  78488. + output=$func_stripname_result ;;
  78489. + esac
  78490. + # test for cygwin because mv fails w/o .exe extensions
  78491. + case $host in
  78492. + *cygwin*)
  78493. + exeext=.exe
  78494. + func_stripname '' '.exe' "$outputname"
  78495. + outputname=$func_stripname_result ;;
  78496. + *) exeext= ;;
  78497. esac
  78498. - $show "$install_prog$stripme $file $destfile"
  78499. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  78500. - test -n "$outputname" && ${rm}r "$tmpdir"
  78501. - ;;
  78502. - esac
  78503. - done
  78504. + case $host in
  78505. + *cygwin* | *mingw* )
  78506. + func_dirname_and_basename "$output" "" "."
  78507. + output_name=$func_basename_result
  78508. + output_path=$func_dirname_result
  78509. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  78510. + cwrapper="$output_path/$output_name.exe"
  78511. + $RM $cwrappersource $cwrapper
  78512. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  78513. +
  78514. + func_emit_cwrapperexe_src > $cwrappersource
  78515. +
  78516. + # The wrapper executable is built using the $host compiler,
  78517. + # because it contains $host paths and files. If cross-
  78518. + # compiling, it, like the target executable, must be
  78519. + # executed on the $host or under an emulation environment.
  78520. + $opt_dry_run || {
  78521. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  78522. + $STRIP $cwrapper
  78523. + }
  78524. - for file in $staticlibs; do
  78525. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  78526. + # Now, create the wrapper script for func_source use:
  78527. + func_ltwrapper_scriptname $cwrapper
  78528. + $RM $func_ltwrapper_scriptname_result
  78529. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  78530. + $opt_dry_run || {
  78531. + # note: this script will not be executed, so do not chmod.
  78532. + if test "x$build" = "x$host" ; then
  78533. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  78534. + else
  78535. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  78536. + fi
  78537. + }
  78538. + ;;
  78539. + * )
  78540. + $RM $output
  78541. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  78542. - # Set up the ranlib parameters.
  78543. - oldlib="$destdir/$name"
  78544. + func_emit_wrapper no > $output
  78545. + chmod +x $output
  78546. + ;;
  78547. + esac
  78548. + }
  78549. + exit $EXIT_SUCCESS
  78550. + ;;
  78551. + esac
  78552. - $show "$install_prog $file $oldlib"
  78553. - $run eval "$install_prog \$file \$oldlib" || exit $?
  78554. + # See if we need to build an old-fashioned archive.
  78555. + for oldlib in $oldlibs; do
  78556. - if test -n "$stripme" && test -n "$old_striplib"; then
  78557. - $show "$old_striplib $oldlib"
  78558. - $run eval "$old_striplib $oldlib" || exit $?
  78559. + if test "$build_libtool_libs" = convenience; then
  78560. + oldobjs="$libobjs_save $symfileobj"
  78561. + addlibs="$convenience"
  78562. + build_libtool_libs=no
  78563. + else
  78564. + if test "$build_libtool_libs" = module; then
  78565. + oldobjs="$libobjs_save"
  78566. + build_libtool_libs=no
  78567. + else
  78568. + oldobjs="$old_deplibs $non_pic_objects"
  78569. + if test "$preload" = yes && test -f "$symfileobj"; then
  78570. + oldobjs="$oldobjs $symfileobj"
  78571. + fi
  78572. + fi
  78573. + addlibs="$old_convenience"
  78574. fi
  78575. - # Do each command in the postinstall commands.
  78576. - cmds=$old_postinstall_cmds
  78577. - save_ifs="$IFS"; IFS='~'
  78578. - for cmd in $cmds; do
  78579. - IFS="$save_ifs"
  78580. - eval cmd=\"$cmd\"
  78581. - $show "$cmd"
  78582. - $run eval "$cmd" || exit $?
  78583. - done
  78584. - IFS="$save_ifs"
  78585. - done
  78586. + if test -n "$addlibs"; then
  78587. + gentop="$output_objdir/${outputname}x"
  78588. + generated="$generated $gentop"
  78589. - if test -n "$future_libdirs"; then
  78590. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  78591. - fi
  78592. + func_extract_archives $gentop $addlibs
  78593. + oldobjs="$oldobjs $func_extract_archives_result"
  78594. + fi
  78595. - if test -n "$current_libdirs"; then
  78596. - # Maybe just do a dry run.
  78597. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  78598. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  78599. - else
  78600. - exit $EXIT_SUCCESS
  78601. - fi
  78602. - ;;
  78603. + # Do each command in the archive commands.
  78604. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  78605. + cmds=$old_archive_from_new_cmds
  78606. + else
  78607. - # libtool finish mode
  78608. - finish)
  78609. - modename="$modename: finish"
  78610. - libdirs="$nonopt"
  78611. - admincmds=
  78612. + # Add any objects from preloaded convenience libraries
  78613. + if test -n "$dlprefiles"; then
  78614. + gentop="$output_objdir/${outputname}x"
  78615. + generated="$generated $gentop"
  78616. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  78617. - for dir
  78618. - do
  78619. - libdirs="$libdirs $dir"
  78620. - done
  78621. + func_extract_archives $gentop $dlprefiles
  78622. + oldobjs="$oldobjs $func_extract_archives_result"
  78623. + fi
  78624. - for libdir in $libdirs; do
  78625. - if test -n "$finish_cmds"; then
  78626. - # Do each command in the finish commands.
  78627. - cmds=$finish_cmds
  78628. - save_ifs="$IFS"; IFS='~'
  78629. - for cmd in $cmds; do
  78630. - IFS="$save_ifs"
  78631. - eval cmd=\"$cmd\"
  78632. - $show "$cmd"
  78633. - $run eval "$cmd" || admincmds="$admincmds
  78634. - $cmd"
  78635. + # POSIX demands no paths to be encoded in archives. We have
  78636. + # to avoid creating archives with duplicate basenames if we
  78637. + # might have to extract them afterwards, e.g., when creating a
  78638. + # static archive out of a convenience library, or when linking
  78639. + # the entirety of a libtool archive into another (currently
  78640. + # not supported by libtool).
  78641. + if (for obj in $oldobjs
  78642. + do
  78643. + func_basename "$obj"
  78644. + $ECHO "$func_basename_result"
  78645. + done | sort | sort -uc >/dev/null 2>&1); then
  78646. + :
  78647. + else
  78648. + $ECHO "copying selected object files to avoid basename conflicts..."
  78649. + gentop="$output_objdir/${outputname}x"
  78650. + generated="$generated $gentop"
  78651. + func_mkdir_p "$gentop"
  78652. + save_oldobjs=$oldobjs
  78653. + oldobjs=
  78654. + counter=1
  78655. + for obj in $save_oldobjs
  78656. + do
  78657. + func_basename "$obj"
  78658. + objbase="$func_basename_result"
  78659. + case " $oldobjs " in
  78660. + " ") oldobjs=$obj ;;
  78661. + *[\ /]"$objbase "*)
  78662. + while :; do
  78663. + # Make sure we don't pick an alternate name that also
  78664. + # overlaps.
  78665. + newobj=lt$counter-$objbase
  78666. + func_arith $counter + 1
  78667. + counter=$func_arith_result
  78668. + case " $oldobjs " in
  78669. + *[\ /]"$newobj "*) ;;
  78670. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  78671. + esac
  78672. + done
  78673. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  78674. + oldobjs="$oldobjs $gentop/$newobj"
  78675. + ;;
  78676. + *) oldobjs="$oldobjs $obj" ;;
  78677. + esac
  78678. done
  78679. - IFS="$save_ifs"
  78680. fi
  78681. - if test -n "$finish_eval"; then
  78682. - # Do the single finish_eval.
  78683. - eval cmds=\"$finish_eval\"
  78684. - $run eval "$cmds" || admincmds="$admincmds
  78685. - $cmds"
  78686. - fi
  78687. - done
  78688. - fi
  78689. -
  78690. - # Exit here if they wanted silent mode.
  78691. - test "$show" = : && exit $EXIT_SUCCESS
  78692. + eval cmds=\"$old_archive_cmds\"
  78693. - $echo "X----------------------------------------------------------------------" | $Xsed
  78694. - $echo "Libraries have been installed in:"
  78695. - for libdir in $libdirs; do
  78696. - $echo " $libdir"
  78697. + func_len " $cmds"
  78698. + len=$func_len_result
  78699. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  78700. + cmds=$old_archive_cmds
  78701. + else
  78702. + # the command line is too long to link in one step, link in parts
  78703. + func_verbose "using piecewise archive linking..."
  78704. + save_RANLIB=$RANLIB
  78705. + RANLIB=:
  78706. + objlist=
  78707. + concat_cmds=
  78708. + save_oldobjs=$oldobjs
  78709. + oldobjs=
  78710. + # Is there a better way of finding the last object in the list?
  78711. + for obj in $save_oldobjs
  78712. + do
  78713. + last_oldobj=$obj
  78714. + done
  78715. + eval test_cmds=\"$old_archive_cmds\"
  78716. + func_len " $test_cmds"
  78717. + len0=$func_len_result
  78718. + len=$len0
  78719. + for obj in $save_oldobjs
  78720. + do
  78721. + func_len " $obj"
  78722. + func_arith $len + $func_len_result
  78723. + len=$func_arith_result
  78724. + func_append objlist " $obj"
  78725. + if test "$len" -lt "$max_cmd_len"; then
  78726. + :
  78727. + else
  78728. + # the above command should be used before it gets too long
  78729. + oldobjs=$objlist
  78730. + if test "$obj" = "$last_oldobj" ; then
  78731. + RANLIB=$save_RANLIB
  78732. + fi
  78733. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  78734. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  78735. + objlist=
  78736. + len=$len0
  78737. + fi
  78738. + done
  78739. + RANLIB=$save_RANLIB
  78740. + oldobjs=$objlist
  78741. + if test "X$oldobjs" = "X" ; then
  78742. + eval cmds=\"\$concat_cmds\"
  78743. + else
  78744. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  78745. + fi
  78746. + fi
  78747. + fi
  78748. + func_execute_cmds "$cmds" 'exit $?'
  78749. done
  78750. - $echo
  78751. - $echo "If you ever happen to want to link against installed libraries"
  78752. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  78753. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  78754. - $echo "flag during linking and do at least one of the following:"
  78755. - if test -n "$shlibpath_var"; then
  78756. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  78757. - $echo " during execution"
  78758. - fi
  78759. - if test -n "$runpath_var"; then
  78760. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  78761. - $echo " during linking"
  78762. - fi
  78763. - if test -n "$hardcode_libdir_flag_spec"; then
  78764. - libdir=LIBDIR
  78765. - eval flag=\"$hardcode_libdir_flag_spec\"
  78766. -
  78767. - $echo " - use the \`$flag' linker flag"
  78768. - fi
  78769. - if test -n "$admincmds"; then
  78770. - $echo " - have your system administrator run these commands:$admincmds"
  78771. - fi
  78772. - if test -f /etc/ld.so.conf; then
  78773. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  78774. - fi
  78775. - $echo
  78776. - $echo "See any operating system documentation about shared libraries for"
  78777. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  78778. - $echo "X----------------------------------------------------------------------" | $Xsed
  78779. - exit $EXIT_SUCCESS
  78780. - ;;
  78781. - # libtool execute mode
  78782. - execute)
  78783. - modename="$modename: execute"
  78784. -
  78785. - # The first argument is the command name.
  78786. - cmd="$nonopt"
  78787. - if test -z "$cmd"; then
  78788. - $echo "$modename: you must specify a COMMAND" 1>&2
  78789. - $echo "$help"
  78790. - exit $EXIT_FAILURE
  78791. - fi
  78792. + test -n "$generated" && \
  78793. + func_show_eval "${RM}r$generated"
  78794. - # Handle -dlopen flags immediately.
  78795. - for file in $execute_dlfiles; do
  78796. - if test ! -f "$file"; then
  78797. - $echo "$modename: \`$file' is not a file" 1>&2
  78798. - $echo "$help" 1>&2
  78799. - exit $EXIT_FAILURE
  78800. - fi
  78801. + # Now create the libtool archive.
  78802. + case $output in
  78803. + *.la)
  78804. + old_library=
  78805. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  78806. + func_verbose "creating $output"
  78807. - dir=
  78808. - case $file in
  78809. - *.la)
  78810. - # Check to see that this really is a libtool archive.
  78811. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  78812. + # Preserve any variables that may affect compiler behavior
  78813. + for var in $variables_saved_for_relink; do
  78814. + if eval test -z \"\${$var+set}\"; then
  78815. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  78816. + elif eval var_value=\$$var; test -z "$var_value"; then
  78817. + relink_command="$var=; export $var; $relink_command"
  78818. else
  78819. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  78820. - $echo "$help" 1>&2
  78821. - exit $EXIT_FAILURE
  78822. + func_quote_for_eval "$var_value"
  78823. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  78824. fi
  78825. + done
  78826. + # Quote the link command for shipping.
  78827. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  78828. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  78829. + if test "$hardcode_automatic" = yes ; then
  78830. + relink_command=
  78831. + fi
  78832. - # Read the libtool library.
  78833. - dlname=
  78834. - library_names=
  78835. + # Only create the output if not a dry run.
  78836. + $opt_dry_run || {
  78837. + for installed in no yes; do
  78838. + if test "$installed" = yes; then
  78839. + if test -z "$install_libdir"; then
  78840. + break
  78841. + fi
  78842. + output="$output_objdir/$outputname"i
  78843. + # Replace all uninstalled libtool libraries with the installed ones
  78844. + newdependency_libs=
  78845. + for deplib in $dependency_libs; do
  78846. + case $deplib in
  78847. + *.la)
  78848. + func_basename "$deplib"
  78849. + name="$func_basename_result"
  78850. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  78851. + test -z "$libdir" && \
  78852. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  78853. + newdependency_libs="$newdependency_libs $libdir/$name"
  78854. + ;;
  78855. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  78856. + esac
  78857. + done
  78858. + dependency_libs="$newdependency_libs"
  78859. + newdlfiles=
  78860. +
  78861. + for lib in $dlfiles; do
  78862. + case $lib in
  78863. + *.la)
  78864. + func_basename "$lib"
  78865. + name="$func_basename_result"
  78866. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  78867. + test -z "$libdir" && \
  78868. + func_fatal_error "\`$lib' is not a valid libtool archive"
  78869. + newdlfiles="$newdlfiles $libdir/$name"
  78870. + ;;
  78871. + *) newdlfiles="$newdlfiles $lib" ;;
  78872. + esac
  78873. + done
  78874. + dlfiles="$newdlfiles"
  78875. + newdlprefiles=
  78876. + for lib in $dlprefiles; do
  78877. + case $lib in
  78878. + *.la)
  78879. + # Only pass preopened files to the pseudo-archive (for
  78880. + # eventual linking with the app. that links it) if we
  78881. + # didn't already link the preopened objects directly into
  78882. + # the library:
  78883. + func_basename "$lib"
  78884. + name="$func_basename_result"
  78885. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  78886. + test -z "$libdir" && \
  78887. + func_fatal_error "\`$lib' is not a valid libtool archive"
  78888. + newdlprefiles="$newdlprefiles $libdir/$name"
  78889. + ;;
  78890. + esac
  78891. + done
  78892. + dlprefiles="$newdlprefiles"
  78893. + else
  78894. + newdlfiles=
  78895. + for lib in $dlfiles; do
  78896. + case $lib in
  78897. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  78898. + *) abs=`pwd`"/$lib" ;;
  78899. + esac
  78900. + newdlfiles="$newdlfiles $abs"
  78901. + done
  78902. + dlfiles="$newdlfiles"
  78903. + newdlprefiles=
  78904. + for lib in $dlprefiles; do
  78905. + case $lib in
  78906. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  78907. + *) abs=`pwd`"/$lib" ;;
  78908. + esac
  78909. + newdlprefiles="$newdlprefiles $abs"
  78910. + done
  78911. + dlprefiles="$newdlprefiles"
  78912. + fi
  78913. + $RM $output
  78914. + # place dlname in correct position for cygwin
  78915. + tdlname=$dlname
  78916. + case $host,$output,$installed,$module,$dlname in
  78917. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  78918. + esac
  78919. + $ECHO > $output "\
  78920. +# $outputname - a libtool library file
  78921. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  78922. +#
  78923. +# Please DO NOT delete this file!
  78924. +# It is necessary for linking the library.
  78925. - # If there is no directory component, then add one.
  78926. - case $file in
  78927. - */* | *\\*) . $file ;;
  78928. - *) . ./$file ;;
  78929. - esac
  78930. +# The name that we can dlopen(3).
  78931. +dlname='$tdlname'
  78932. - # Skip this library if it cannot be dlopened.
  78933. - if test -z "$dlname"; then
  78934. - # Warn if it was a shared library.
  78935. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  78936. - continue
  78937. - fi
  78938. +# Names of this library.
  78939. +library_names='$library_names'
  78940. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  78941. - test "X$dir" = "X$file" && dir=.
  78942. +# The name of the static archive.
  78943. +old_library='$old_library'
  78944. - if test -f "$dir/$objdir/$dlname"; then
  78945. - dir="$dir/$objdir"
  78946. - else
  78947. - if test ! -f "$dir/$dlname"; then
  78948. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  78949. - exit $EXIT_FAILURE
  78950. - fi
  78951. - fi
  78952. - ;;
  78953. +# Linker flags that can not go in dependency_libs.
  78954. +inherited_linker_flags='$new_inherited_linker_flags'
  78955. - *.lo)
  78956. - # Just add the directory containing the .lo file.
  78957. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  78958. - test "X$dir" = "X$file" && dir=.
  78959. - ;;
  78960. +# Libraries that this one depends upon.
  78961. +dependency_libs='$dependency_libs'
  78962. - *)
  78963. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  78964. - continue
  78965. - ;;
  78966. - esac
  78967. +# Names of additional weak libraries provided by this library
  78968. +weak_library_names='$weak_libs'
  78969. - # Get the absolute pathname.
  78970. - absdir=`cd "$dir" && pwd`
  78971. - test -n "$absdir" && dir="$absdir"
  78972. +# Version information for $libname.
  78973. +current=$current
  78974. +age=$age
  78975. +revision=$revision
  78976. - # Now add the directory to shlibpath_var.
  78977. - if eval "test -z \"\$$shlibpath_var\""; then
  78978. - eval "$shlibpath_var=\"\$dir\""
  78979. - else
  78980. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  78981. - fi
  78982. - done
  78983. +# Is this an already installed library?
  78984. +installed=$installed
  78985. - # This variable tells wrapper scripts just to set shlibpath_var
  78986. - # rather than running their programs.
  78987. - libtool_execute_magic="$magic"
  78988. +# Should we warn about portability when linking against -modules?
  78989. +shouldnotlink=$module
  78990. - # Check if any of the arguments is a wrapper script.
  78991. - args=
  78992. - for file
  78993. - do
  78994. - case $file in
  78995. - -*) ;;
  78996. - *)
  78997. - # Do a test to see if this is really a libtool program.
  78998. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  78999. - # If there is no directory component, then add one.
  79000. - case $file in
  79001. - */* | *\\*) . $file ;;
  79002. - *) . ./$file ;;
  79003. - esac
  79004. +# Files to dlopen/dlpreopen
  79005. +dlopen='$dlfiles'
  79006. +dlpreopen='$dlprefiles'
  79007. - # Transform arg to wrapped name.
  79008. - file="$progdir/$program"
  79009. - fi
  79010. - ;;
  79011. - esac
  79012. - # Quote arguments (to preserve shell metacharacters).
  79013. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  79014. - args="$args \"$file\""
  79015. - done
  79016. +# Directory that this library needs to be installed in:
  79017. +libdir='$install_libdir'"
  79018. + if test "$installed" = no && test "$need_relink" = yes; then
  79019. + $ECHO >> $output "\
  79020. +relink_command=\"$relink_command\""
  79021. + fi
  79022. + done
  79023. + }
  79024. - if test -z "$run"; then
  79025. - if test -n "$shlibpath_var"; then
  79026. - # Export the shlibpath_var.
  79027. - eval "export $shlibpath_var"
  79028. - fi
  79029. + # Do a symbolic link so that the libtool archive can be found in
  79030. + # LD_LIBRARY_PATH before the program is installed.
  79031. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  79032. + ;;
  79033. + esac
  79034. + exit $EXIT_SUCCESS
  79035. +}
  79036. - # Restore saved environment variables
  79037. - for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  79038. - do
  79039. - eval "if test \"\${save_$lt_var+set}\" = set; then
  79040. - $lt_var=\$save_$lt_var; export $lt_var
  79041. - fi"
  79042. - done
  79043. +{ test "$mode" = link || test "$mode" = relink; } &&
  79044. + func_mode_link ${1+"$@"}
  79045. - # Now prepare to actually exec the command.
  79046. - exec_cmd="\$cmd$args"
  79047. - else
  79048. - # Display what would be done.
  79049. - if test -n "$shlibpath_var"; then
  79050. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  79051. - $echo "export $shlibpath_var"
  79052. - fi
  79053. - $echo "$cmd$args"
  79054. - exit $EXIT_SUCCESS
  79055. - fi
  79056. - ;;
  79057. - # libtool clean and uninstall mode
  79058. - clean | uninstall)
  79059. - modename="$modename: $mode"
  79060. - rm="$nonopt"
  79061. +# func_mode_uninstall arg...
  79062. +func_mode_uninstall ()
  79063. +{
  79064. + $opt_debug
  79065. + RM="$nonopt"
  79066. files=
  79067. rmforce=
  79068. exit_status=0
  79069. @@ -6513,30 +8209,28 @@
  79070. for arg
  79071. do
  79072. case $arg in
  79073. - -f) rm="$rm $arg"; rmforce=yes ;;
  79074. - -*) rm="$rm $arg" ;;
  79075. + -f) RM="$RM $arg"; rmforce=yes ;;
  79076. + -*) RM="$RM $arg" ;;
  79077. *) files="$files $arg" ;;
  79078. esac
  79079. done
  79080. - if test -z "$rm"; then
  79081. - $echo "$modename: you must specify an RM program" 1>&2
  79082. - $echo "$help" 1>&2
  79083. - exit $EXIT_FAILURE
  79084. - fi
  79085. + test -z "$RM" && \
  79086. + func_fatal_help "you must specify an RM program"
  79087. rmdirs=
  79088. origobjdir="$objdir"
  79089. for file in $files; do
  79090. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  79091. - if test "X$dir" = "X$file"; then
  79092. - dir=.
  79093. + func_dirname "$file" "" "."
  79094. + dir="$func_dirname_result"
  79095. + if test "X$dir" = X.; then
  79096. objdir="$origobjdir"
  79097. else
  79098. objdir="$dir/$origobjdir"
  79099. fi
  79100. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  79101. + func_basename "$file"
  79102. + name="$func_basename_result"
  79103. test "$mode" = uninstall && objdir="$dir"
  79104. # Remember objdir for removal later, being careful to avoid duplicates
  79105. @@ -6548,9 +8242,9 @@
  79106. fi
  79107. # Don't error if the file doesn't exist and rm -f was used.
  79108. - if (test -L "$file") >/dev/null 2>&1 \
  79109. - || (test -h "$file") >/dev/null 2>&1 \
  79110. - || test -f "$file"; then
  79111. + if { test -L "$file"; } >/dev/null 2>&1 ||
  79112. + { test -h "$file"; } >/dev/null 2>&1 ||
  79113. + test -f "$file"; then
  79114. :
  79115. elif test -d "$file"; then
  79116. exit_status=1
  79117. @@ -6564,8 +8258,8 @@
  79118. case $name in
  79119. *.la)
  79120. # Possibly a libtool archive, so verify it.
  79121. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  79122. - . $dir/$name
  79123. + if func_lalib_p "$file"; then
  79124. + func_source $dir/$name
  79125. # Delete the libtool libraries and symlinks.
  79126. for n in $library_names; do
  79127. @@ -6580,39 +8274,17 @@
  79128. *" $dlname "*) ;;
  79129. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  79130. esac
  79131. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  79132. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  79133. ;;
  79134. uninstall)
  79135. if test -n "$library_names"; then
  79136. # Do each command in the postuninstall commands.
  79137. - cmds=$postuninstall_cmds
  79138. - save_ifs="$IFS"; IFS='~'
  79139. - for cmd in $cmds; do
  79140. - IFS="$save_ifs"
  79141. - eval cmd=\"$cmd\"
  79142. - $show "$cmd"
  79143. - $run eval "$cmd"
  79144. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  79145. - exit_status=1
  79146. - fi
  79147. - done
  79148. - IFS="$save_ifs"
  79149. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  79150. fi
  79151. if test -n "$old_library"; then
  79152. # Do each command in the old_postuninstall commands.
  79153. - cmds=$old_postuninstall_cmds
  79154. - save_ifs="$IFS"; IFS='~'
  79155. - for cmd in $cmds; do
  79156. - IFS="$save_ifs"
  79157. - eval cmd=\"$cmd\"
  79158. - $show "$cmd"
  79159. - $run eval "$cmd"
  79160. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  79161. - exit_status=1
  79162. - fi
  79163. - done
  79164. - IFS="$save_ifs"
  79165. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  79166. fi
  79167. # FIXME: should reinstall the best remaining shared library.
  79168. ;;
  79169. @@ -6622,20 +8294,20 @@
  79170. *.lo)
  79171. # Possibly a libtool object, so verify it.
  79172. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  79173. + if func_lalib_p "$file"; then
  79174. # Read the .lo file
  79175. - . $dir/$name
  79176. + func_source $dir/$name
  79177. # Add PIC object to the list of files to remove.
  79178. - if test -n "$pic_object" \
  79179. - && test "$pic_object" != none; then
  79180. + if test -n "$pic_object" &&
  79181. + test "$pic_object" != none; then
  79182. rmfiles="$rmfiles $dir/$pic_object"
  79183. fi
  79184. # Add non-PIC object to the list of files to remove.
  79185. - if test -n "$non_pic_object" \
  79186. - && test "$non_pic_object" != none; then
  79187. + if test -n "$non_pic_object" &&
  79188. + test "$non_pic_object" != none; then
  79189. rmfiles="$rmfiles $dir/$non_pic_object"
  79190. fi
  79191. fi
  79192. @@ -6646,17 +8318,26 @@
  79193. noexename=$name
  79194. case $file in
  79195. *.exe)
  79196. - file=`$echo $file|${SED} 's,.exe$,,'`
  79197. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  79198. + func_stripname '' '.exe' "$file"
  79199. + file=$func_stripname_result
  79200. + func_stripname '' '.exe' "$name"
  79201. + noexename=$func_stripname_result
  79202. # $file with .exe has already been added to rmfiles,
  79203. # add $file without .exe
  79204. rmfiles="$rmfiles $file"
  79205. ;;
  79206. esac
  79207. # Do a test to see if this is a libtool program.
  79208. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  79209. - relink_command=
  79210. - . $dir/$noexename
  79211. + if func_ltwrapper_p "$file"; then
  79212. + if func_ltwrapper_executable_p "$file"; then
  79213. + func_ltwrapper_scriptname "$file"
  79214. + relink_command=
  79215. + func_source $func_ltwrapper_scriptname_result
  79216. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  79217. + else
  79218. + relink_command=
  79219. + func_source $dir/$noexename
  79220. + fi
  79221. # note $name still contains .exe if it was in $file originally
  79222. # as does the version of $file that was added into $rmfiles
  79223. @@ -6671,239 +8352,38 @@
  79224. fi
  79225. ;;
  79226. esac
  79227. - $show "$rm $rmfiles"
  79228. - $run $rm $rmfiles || exit_status=1
  79229. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  79230. done
  79231. objdir="$origobjdir"
  79232. # Try to remove the ${objdir}s in the directories where we deleted files
  79233. for dir in $rmdirs; do
  79234. if test -d "$dir"; then
  79235. - $show "rmdir $dir"
  79236. - $run rmdir $dir >/dev/null 2>&1
  79237. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  79238. fi
  79239. done
  79240. exit $exit_status
  79241. - ;;
  79242. +}
  79243. - "")
  79244. - $echo "$modename: you must specify a MODE" 1>&2
  79245. - $echo "$generic_help" 1>&2
  79246. - exit $EXIT_FAILURE
  79247. - ;;
  79248. - esac
  79249. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  79250. + func_mode_uninstall ${1+"$@"}
  79251. - if test -z "$exec_cmd"; then
  79252. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  79253. - $echo "$generic_help" 1>&2
  79254. - exit $EXIT_FAILURE
  79255. - fi
  79256. -fi # test -z "$show_help"
  79257. +test -z "$mode" && {
  79258. + help="$generic_help"
  79259. + func_fatal_help "you must specify a MODE"
  79260. +}
  79261. +
  79262. +test -z "$exec_cmd" && \
  79263. + func_fatal_help "invalid operation mode \`$mode'"
  79264. if test -n "$exec_cmd"; then
  79265. - eval exec $exec_cmd
  79266. + eval exec "$exec_cmd"
  79267. exit $EXIT_FAILURE
  79268. fi
  79269. -# We need to display help for each of the modes.
  79270. -case $mode in
  79271. -"") $echo \
  79272. -"Usage: $modename [OPTION]... [MODE-ARG]...
  79273. -
  79274. -Provide generalized library-building support services.
  79275. -
  79276. - --config show all configuration variables
  79277. - --debug enable verbose shell tracing
  79278. --n, --dry-run display commands without modifying any files
  79279. - --features display basic configuration information and exit
  79280. - --finish same as \`--mode=finish'
  79281. - --help display this help message and exit
  79282. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  79283. - --quiet same as \`--silent'
  79284. - --silent don't print informational messages
  79285. - --tag=TAG use configuration variables from tag TAG
  79286. - --version print version information
  79287. -
  79288. -MODE must be one of the following:
  79289. -
  79290. - clean remove files from the build directory
  79291. - compile compile a source file into a libtool object
  79292. - execute automatically set library path, then run a program
  79293. - finish complete the installation of libtool libraries
  79294. - install install libraries or executables
  79295. - link create a library or an executable
  79296. - uninstall remove libraries from an installed directory
  79297. -
  79298. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  79299. -a more detailed description of MODE.
  79300. -
  79301. -Report bugs to <bug-libtool@gnu.org>."
  79302. - exit $EXIT_SUCCESS
  79303. - ;;
  79304. -
  79305. -clean)
  79306. - $echo \
  79307. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  79308. -
  79309. -Remove files from the build directory.
  79310. -
  79311. -RM is the name of the program to use to delete files associated with each FILE
  79312. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  79313. -to RM.
  79314. -
  79315. -If FILE is a libtool library, object or program, all the files associated
  79316. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  79317. - ;;
  79318. -
  79319. -compile)
  79320. - $echo \
  79321. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  79322. -
  79323. -Compile a source file into a libtool library object.
  79324. -
  79325. -This mode accepts the following additional options:
  79326. -
  79327. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  79328. - -prefer-pic try to building PIC objects only
  79329. - -prefer-non-pic try to building non-PIC objects only
  79330. - -static always build a \`.o' file suitable for static linking
  79331. -
  79332. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  79333. -from the given SOURCEFILE.
  79334. -
  79335. -The output file name is determined by removing the directory component from
  79336. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  79337. -library object suffix, \`.lo'."
  79338. - ;;
  79339. -
  79340. -execute)
  79341. - $echo \
  79342. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  79343. -
  79344. -Automatically set library path, then run a program.
  79345. -
  79346. -This mode accepts the following additional options:
  79347. -
  79348. - -dlopen FILE add the directory containing FILE to the library path
  79349. -
  79350. -This mode sets the library path environment variable according to \`-dlopen'
  79351. -flags.
  79352. -
  79353. -If any of the ARGS are libtool executable wrappers, then they are translated
  79354. -into their corresponding uninstalled binary, and any of their required library
  79355. -directories are added to the library path.
  79356. -
  79357. -Then, COMMAND is executed, with ARGS as arguments."
  79358. - ;;
  79359. -
  79360. -finish)
  79361. - $echo \
  79362. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  79363. -
  79364. -Complete the installation of libtool libraries.
  79365. -
  79366. -Each LIBDIR is a directory that contains libtool libraries.
  79367. -
  79368. -The commands that this mode executes may require superuser privileges. Use
  79369. -the \`--dry-run' option if you just want to see what would be executed."
  79370. - ;;
  79371. -
  79372. -install)
  79373. - $echo \
  79374. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  79375. -
  79376. -Install executables or libraries.
  79377. -
  79378. -INSTALL-COMMAND is the installation command. The first component should be
  79379. -either the \`install' or \`cp' program.
  79380. -
  79381. -The rest of the components are interpreted as arguments to that command (only
  79382. -BSD-compatible install options are recognized)."
  79383. - ;;
  79384. -
  79385. -link)
  79386. - $echo \
  79387. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  79388. -
  79389. -Link object files or libraries together to form another library, or to
  79390. -create an executable program.
  79391. +exit $exit_status
  79392. -LINK-COMMAND is a command using the C compiler that you would use to create
  79393. -a program from several object files.
  79394. -
  79395. -The following components of LINK-COMMAND are treated specially:
  79396. -
  79397. - -all-static do not do any dynamic linking at all
  79398. - -avoid-version do not add a version suffix if possible
  79399. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  79400. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  79401. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  79402. - -export-symbols SYMFILE
  79403. - try to export only the symbols listed in SYMFILE
  79404. - -export-symbols-regex REGEX
  79405. - try to export only the symbols matching REGEX
  79406. - -LLIBDIR search LIBDIR for required installed libraries
  79407. - -lNAME OUTPUT-FILE requires the installed library libNAME
  79408. - -module build a library that can dlopened
  79409. - -no-fast-install disable the fast-install mode
  79410. - -no-install link a not-installable executable
  79411. - -no-undefined declare that a library does not refer to external symbols
  79412. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  79413. - -objectlist FILE Use a list of object files found in FILE to specify objects
  79414. - -precious-files-regex REGEX
  79415. - don't remove output files matching REGEX
  79416. - -release RELEASE specify package release information
  79417. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  79418. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  79419. - -static do not do any dynamic linking of uninstalled libtool libraries
  79420. - -static-libtool-libs
  79421. - do not do any dynamic linking of libtool libraries
  79422. - -version-info CURRENT[:REVISION[:AGE]]
  79423. - specify library version info [each variable defaults to 0]
  79424. -
  79425. -All other options (arguments beginning with \`-') are ignored.
  79426. -
  79427. -Every other argument is treated as a filename. Files ending in \`.la' are
  79428. -treated as uninstalled libtool libraries, other files are standard or library
  79429. -object files.
  79430. -
  79431. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  79432. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  79433. -required, except when creating a convenience library.
  79434. -
  79435. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  79436. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  79437. -
  79438. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  79439. -is created, otherwise an executable program is created."
  79440. - ;;
  79441. -
  79442. -uninstall)
  79443. - $echo \
  79444. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  79445. -
  79446. -Remove libraries from an installation directory.
  79447. -
  79448. -RM is the name of the program to use to delete files associated with each FILE
  79449. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  79450. -to RM.
  79451. -
  79452. -If FILE is a libtool library, all the files associated with it are deleted.
  79453. -Otherwise, only FILE itself is deleted using RM."
  79454. - ;;
  79455. -
  79456. -*)
  79457. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  79458. - $echo "$help" 1>&2
  79459. - exit $EXIT_FAILURE
  79460. - ;;
  79461. -esac
  79462. -
  79463. -$echo
  79464. -$echo "Try \`$modename --help' for more information about other modes."
  79465. -
  79466. -exit $?
  79467. # The TAGs below are defined such that we never get into a situation
  79468. # in which we disable both kinds of libraries. Given conflicting
  79469. @@ -6917,14 +8397,17 @@
  79470. # configuration. But we'll never go from static-only to shared-only.
  79471. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  79472. -disable_libs=shared
  79473. +build_libtool_libs=no
  79474. +build_old_libs=yes
  79475. # ### END LIBTOOL TAG CONFIG: disable-shared
  79476. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  79477. -disable_libs=static
  79478. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  79479. # ### END LIBTOOL TAG CONFIG: disable-static
  79480. # Local Variables:
  79481. # mode:shell-script
  79482. # sh-indentation:2
  79483. # End:
  79484. +# vi:sw=2
  79485. +
  79486. diff -Nur gmp-4.3.2.orig/Makefile.in gmp-4.3.2/Makefile.in
  79487. --- gmp-4.3.2.orig/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  79488. +++ gmp-4.3.2/Makefile.in 2011-02-16 19:23:21.113552181 +0100
  79489. @@ -1,8 +1,9 @@
  79490. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  79491. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  79492. # @configure_input@
  79493. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  79494. -# 2003, 2004 Free Software Foundation, Inc.
  79495. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  79496. +# Inc.
  79497. # This Makefile.in is free software; the Free Software Foundation
  79498. # gives unlimited permission to copy and/or distribute it,
  79499. # with or without modifications, as long as this notice is preserved.
  79500. @@ -33,17 +34,12 @@
  79501. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  79502. -SOURCES = $(libgmp_la_SOURCES) $(EXTRA_libgmp_la_SOURCES) $(libgmpxx_la_SOURCES) $(libmp_la_SOURCES)
  79503. -
  79504. -srcdir = @srcdir@
  79505. -top_srcdir = @top_srcdir@
  79506. VPATH = @srcdir@
  79507. pkgdatadir = $(datadir)/@PACKAGE@
  79508. -pkglibdir = $(libdir)/@PACKAGE@
  79509. pkgincludedir = $(includedir)/@PACKAGE@
  79510. -top_builddir = .
  79511. +pkglibdir = $(libdir)/@PACKAGE@
  79512. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  79513. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  79514. -INSTALL = @INSTALL@
  79515. install_sh_DATA = $(install_sh) -c -m 644
  79516. install_sh_PROGRAM = $(install_sh) -c
  79517. install_sh_SCRIPT = $(install_sh) -c
  79518. @@ -55,118 +51,53 @@
  79519. NORMAL_UNINSTALL = :
  79520. PRE_UNINSTALL = :
  79521. POST_UNINSTALL = :
  79522. +build_triplet = @build@
  79523. host_triplet = @host@
  79524. ANSI2KNR = @ANSI2KNR@
  79525. +subdir = .
  79526. DIST_COMMON = README $(am__configure_deps) $(am__include_HEADERS_DIST) \
  79527. $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  79528. $(srcdir)/config.in $(srcdir)/gmp-h.in $(srcdir)/mp-h.in \
  79529. $(top_srcdir)/configure AUTHORS COPYING COPYING.LIB ChangeLog \
  79530. INSTALL NEWS ansi2knr.1 ansi2knr.c config.guess config.sub \
  79531. - install-sh ltmain.sh missing
  79532. -subdir = .
  79533. + install-sh ltmain.sh missing ylwrap
  79534. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  79535. am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  79536. $(top_srcdir)/configure.in
  79537. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  79538. $(ACLOCAL_M4)
  79539. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  79540. - configure.lineno configure.status.lineno
  79541. -mkinstalldirs = $(mkdir_p)
  79542. + configure.lineno config.status.lineno
  79543. +mkinstalldirs = $(install_sh) -d
  79544. CONFIG_HEADER = config.h
  79545. CONFIG_CLEAN_FILES = gmp.h mp.h gmp-mparam.h
  79546. -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includeexecdir)"
  79547. -libLTLIBRARIES_INSTALL = $(INSTALL)
  79548. +CONFIG_CLEAN_VPATH_FILES =
  79549. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  79550. +am__vpath_adj = case $$p in \
  79551. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  79552. + *) f=$$p;; \
  79553. + esac;
  79554. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  79555. +am__install_max = 40
  79556. +am__nobase_strip_setup = \
  79557. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  79558. +am__nobase_strip = \
  79559. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  79560. +am__nobase_list = $(am__nobase_strip_setup); \
  79561. + for p in $$list; do echo "$$p $$p"; done | \
  79562. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  79563. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  79564. + if (++n[$$2] == $(am__install_max)) \
  79565. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  79566. + END { for (dir in files) print dir, files[dir] }'
  79567. +am__base_list = \
  79568. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  79569. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  79570. +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
  79571. + "$(DESTDIR)$(includeexecdir)"
  79572. LTLIBRARIES = $(lib_LTLIBRARIES)
  79573. -am__DEPENDENCIES_1 = mpf/init$U.lo mpf/init2$U.lo mpf/set$U.lo \
  79574. - mpf/set_ui$U.lo mpf/set_si$U.lo mpf/set_str$U.lo \
  79575. - mpf/set_d$U.lo mpf/set_z$U.lo mpf/iset$U.lo mpf/iset_ui$U.lo \
  79576. - mpf/iset_si$U.lo mpf/iset_str$U.lo mpf/iset_d$U.lo \
  79577. - mpf/clear$U.lo mpf/get_str$U.lo mpf/dump$U.lo mpf/size$U.lo \
  79578. - mpf/eq$U.lo mpf/reldiff$U.lo mpf/sqrt$U.lo mpf/random2$U.lo \
  79579. - mpf/inp_str$U.lo mpf/out_str$U.lo mpf/add$U.lo mpf/add_ui$U.lo \
  79580. - mpf/sub$U.lo mpf/sub_ui$U.lo mpf/ui_sub$U.lo mpf/mul$U.lo \
  79581. - mpf/mul_ui$U.lo mpf/div$U.lo mpf/div_ui$U.lo mpf/cmp$U.lo \
  79582. - mpf/cmp_d$U.lo mpf/cmp_ui$U.lo mpf/cmp_si$U.lo \
  79583. - mpf/mul_2exp$U.lo mpf/div_2exp$U.lo mpf/abs$U.lo mpf/neg$U.lo \
  79584. - mpf/set_q$U.lo mpf/get_d$U.lo mpf/get_d_2exp$U.lo \
  79585. - mpf/set_dfl_prec$U.lo mpf/set_prc$U.lo mpf/set_prc_raw$U.lo \
  79586. - mpf/get_dfl_prec$U.lo mpf/get_prc$U.lo mpf/ui_div$U.lo \
  79587. - mpf/sqrt_ui$U.lo mpf/ceilfloor$U.lo mpf/trunc$U.lo \
  79588. - mpf/pow_ui$U.lo mpf/urandomb$U.lo mpf/swap$U.lo \
  79589. - mpf/fits_sint$U.lo mpf/fits_slong$U.lo mpf/fits_sshort$U.lo \
  79590. - mpf/fits_uint$U.lo mpf/fits_ulong$U.lo mpf/fits_ushort$U.lo \
  79591. - mpf/get_si$U.lo mpf/get_ui$U.lo mpf/int_p$U.lo
  79592. -am__DEPENDENCIES_2 = mpz/abs$U.lo mpz/add$U.lo mpz/add_ui$U.lo \
  79593. - mpz/aorsmul$U.lo mpz/aorsmul_i$U.lo mpz/and$U.lo \
  79594. - mpz/array_init$U.lo mpz/bin_ui$U.lo mpz/bin_uiui$U.lo \
  79595. - mpz/cdiv_q$U.lo mpz/cdiv_q_ui$U.lo mpz/cdiv_qr$U.lo \
  79596. - mpz/cdiv_qr_ui$U.lo mpz/cdiv_r$U.lo mpz/cdiv_r_ui$U.lo \
  79597. - mpz/cdiv_ui$U.lo mpz/cfdiv_q_2exp$U.lo mpz/cfdiv_r_2exp$U.lo \
  79598. - mpz/clear$U.lo mpz/clrbit$U.lo mpz/cmp$U.lo mpz/cmp_d$U.lo \
  79599. - mpz/cmp_si$U.lo mpz/cmp_ui$U.lo mpz/cmpabs$U.lo \
  79600. - mpz/cmpabs_d$U.lo mpz/cmpabs_ui$U.lo mpz/com$U.lo \
  79601. - mpz/combit$U.lo mpz/cong$U.lo mpz/cong_2exp$U.lo \
  79602. - mpz/cong_ui$U.lo mpz/divexact$U.lo mpz/divegcd$U.lo \
  79603. - mpz/dive_ui$U.lo mpz/divis$U.lo mpz/divis_ui$U.lo \
  79604. - mpz/divis_2exp$U.lo mpz/dump$U.lo mpz/export$U.lo \
  79605. - mpz/fac_ui$U.lo mpz/fdiv_q$U.lo mpz/fdiv_q_ui$U.lo \
  79606. - mpz/fdiv_qr$U.lo mpz/fdiv_qr_ui$U.lo mpz/fdiv_r$U.lo \
  79607. - mpz/fdiv_r_ui$U.lo mpz/fdiv_ui$U.lo mpz/fib_ui$U.lo \
  79608. - mpz/fib2_ui$U.lo mpz/fits_sint$U.lo mpz/fits_slong$U.lo \
  79609. - mpz/fits_sshort$U.lo mpz/fits_uint$U.lo mpz/fits_ulong$U.lo \
  79610. - mpz/fits_ushort$U.lo mpz/gcd$U.lo mpz/gcd_ui$U.lo \
  79611. - mpz/gcdext$U.lo mpz/get_d$U.lo mpz/get_d_2exp$U.lo \
  79612. - mpz/get_si$U.lo mpz/get_str$U.lo mpz/get_ui$U.lo \
  79613. - mpz/getlimbn$U.lo mpz/hamdist$U.lo mpz/import$U.lo \
  79614. - mpz/init$U.lo mpz/init2$U.lo mpz/inp_raw$U.lo mpz/inp_str$U.lo \
  79615. - mpz/invert$U.lo mpz/ior$U.lo mpz/iset$U.lo mpz/iset_d$U.lo \
  79616. - mpz/iset_si$U.lo mpz/iset_str$U.lo mpz/iset_ui$U.lo \
  79617. - mpz/jacobi$U.lo mpz/kronsz$U.lo mpz/kronuz$U.lo \
  79618. - mpz/kronzs$U.lo mpz/kronzu$U.lo mpz/lcm$U.lo mpz/lcm_ui$U.lo \
  79619. - mpz/lucnum_ui$U.lo mpz/lucnum2_ui$U.lo mpz/millerrabin$U.lo \
  79620. - mpz/mod$U.lo mpz/mul$U.lo mpz/mul_2exp$U.lo mpz/mul_si$U.lo \
  79621. - mpz/mul_ui$U.lo mpz/n_pow_ui$U.lo mpz/neg$U.lo \
  79622. - mpz/nextprime$U.lo mpz/out_raw$U.lo mpz/out_str$U.lo \
  79623. - mpz/perfpow$U.lo mpz/perfsqr$U.lo mpz/popcount$U.lo \
  79624. - mpz/pow_ui$U.lo mpz/powm$U.lo mpz/powm_ui$U.lo \
  79625. - mpz/pprime_p$U.lo mpz/random$U.lo mpz/random2$U.lo \
  79626. - mpz/realloc$U.lo mpz/realloc2$U.lo mpz/remove$U.lo \
  79627. - mpz/root$U.lo mpz/rootrem$U.lo mpz/rrandomb$U.lo \
  79628. - mpz/scan0$U.lo mpz/scan1$U.lo mpz/set$U.lo mpz/set_d$U.lo \
  79629. - mpz/set_f$U.lo mpz/set_q$U.lo mpz/set_si$U.lo mpz/set_str$U.lo \
  79630. - mpz/set_ui$U.lo mpz/setbit$U.lo mpz/size$U.lo \
  79631. - mpz/sizeinbase$U.lo mpz/sqrt$U.lo mpz/sqrtrem$U.lo \
  79632. - mpz/sub$U.lo mpz/sub_ui$U.lo mpz/swap$U.lo mpz/tdiv_ui$U.lo \
  79633. - mpz/tdiv_q$U.lo mpz/tdiv_q_2exp$U.lo mpz/tdiv_q_ui$U.lo \
  79634. - mpz/tdiv_qr$U.lo mpz/tdiv_qr_ui$U.lo mpz/tdiv_r$U.lo \
  79635. - mpz/tdiv_r_2exp$U.lo mpz/tdiv_r_ui$U.lo mpz/tstbit$U.lo \
  79636. - mpz/ui_pow_ui$U.lo mpz/ui_sub$U.lo mpz/urandomb$U.lo \
  79637. - mpz/urandomm$U.lo mpz/xor$U.lo
  79638. -am__DEPENDENCIES_3 = mpq/abs$U.lo mpq/aors$U.lo mpq/canonicalize$U.lo \
  79639. - mpq/clear$U.lo mpq/cmp$U.lo mpq/cmp_si$U.lo mpq/cmp_ui$U.lo \
  79640. - mpq/div$U.lo mpq/get_d$U.lo mpq/get_den$U.lo mpq/get_num$U.lo \
  79641. - mpq/get_str$U.lo mpq/init$U.lo mpq/inp_str$U.lo mpq/inv$U.lo \
  79642. - mpq/md_2exp$U.lo mpq/mul$U.lo mpq/neg$U.lo mpq/out_str$U.lo \
  79643. - mpq/set$U.lo mpq/set_den$U.lo mpq/set_num$U.lo mpq/set_si$U.lo \
  79644. - mpq/set_str$U.lo mpq/set_ui$U.lo mpq/equal$U.lo mpq/set_z$U.lo \
  79645. - mpq/set_d$U.lo mpq/set_f$U.lo mpq/swap$U.lo
  79646. -am__DEPENDENCIES_4 = mpn/fib_table$U.lo mpn/mp_bases$U.lo
  79647. -am__DEPENDENCIES_5 = printf/asprintf$U.lo printf/asprntffuns$U.lo \
  79648. - printf/doprnt$U.lo printf/doprntf$U.lo printf/doprnti$U.lo \
  79649. - printf/fprintf$U.lo printf/obprintf$U.lo printf/obvprintf$U.lo \
  79650. - printf/obprntffuns$U.lo printf/printf$U.lo \
  79651. - printf/printffuns$U.lo printf/snprintf$U.lo \
  79652. - printf/snprntffuns$U.lo printf/sprintf$U.lo \
  79653. - printf/sprintffuns$U.lo printf/vasprintf$U.lo \
  79654. - printf/vfprintf$U.lo printf/vprintf$U.lo printf/vsnprintf$U.lo \
  79655. - printf/vsprintf$U.lo printf/repl-vsnprintf$U.lo
  79656. -am__DEPENDENCIES_6 = scanf/doscan$U.lo scanf/fscanf$U.lo \
  79657. - scanf/fscanffuns$U.lo scanf/scanf$U.lo scanf/sscanf$U.lo \
  79658. - scanf/sscanffuns$U.lo scanf/vfscanf$U.lo scanf/vscanf$U.lo \
  79659. - scanf/vsscanf$U.lo
  79660. -am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
  79661. - $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_4) \
  79662. - $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_6)
  79663. +am__DEPENDENCIES_1 = $(MPF_OBJECTS) $(MPZ_OBJECTS) $(MPQ_OBJECTS) \
  79664. + $(MPN_OBJECTS) $(PRINTF_OBJECTS) $(SCANF_OBJECTS)
  79665. am_libgmp_la_OBJECTS = assert$U.lo compat$U.lo errno$U.lo \
  79666. extract-dbl$U.lo invalid$U.lo memory$U.lo mp_bpl$U.lo \
  79667. mp_clz_tab$U.lo mp_dv_tab$U.lo mp_minv_tab$U.lo \
  79668. @@ -175,59 +106,66 @@
  79669. randmt$U.lo randmts$U.lo rands$U.lo randsd$U.lo randsdui$U.lo \
  79670. randbui$U.lo randmui$U.lo version$U.lo
  79671. libgmp_la_OBJECTS = $(am_libgmp_la_OBJECTS)
  79672. -am__DEPENDENCIES_8 = cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo \
  79673. - cxx/ismpz.lo cxx/ismpznw.lo cxx/osdoprnti.lo cxx/osfuns.lo \
  79674. - cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo
  79675. -am__DEPENDENCIES_9 = $(am__DEPENDENCIES_8) libgmp.la
  79676. +libgmp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  79677. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  79678. + $(libgmp_la_LDFLAGS) $(LDFLAGS) -o $@
  79679. am_libgmpxx_la_OBJECTS = dummy.lo
  79680. libgmpxx_la_OBJECTS = $(am_libgmpxx_la_OBJECTS)
  79681. -am__DEPENDENCIES_10 = mpbsd/add$U.lo mpbsd/tdiv_qr$U.lo mpbsd/set$U.lo \
  79682. - mpbsd/powm$U.lo mpbsd/sub$U.lo mpbsd/cmp$U.lo mpbsd/mfree$U.lo \
  79683. - mpbsd/mtox$U.lo mpbsd/realloc$U.lo mpbsd/gcd$U.lo \
  79684. - mpbsd/itom$U.lo mpbsd/min$U.lo mpbsd/mul$U.lo mpbsd/mout$U.lo \
  79685. - mpbsd/rpow$U.lo mpbsd/sdiv$U.lo mpbsd/sqrtrem$U.lo \
  79686. - mpbsd/xtom$U.lo
  79687. -am__DEPENDENCIES_11 = $(srcdir)/libmp.sym $(am__DEPENDENCIES_10) \
  79688. - $(am__DEPENDENCIES_4) mpz/add$U.lo mpz/gcdext$U.lo \
  79689. - mpz/invert$U.lo mpz/mul$U.lo mpz/n_pow_ui$U.lo \
  79690. - mpz/realloc$U.lo mpz/set$U.lo mpz/sub$U.lo mpz/tdiv_q$U.lo
  79691. +libgmpxx_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
  79692. + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
  79693. + $(CXXFLAGS) $(libgmpxx_la_LDFLAGS) $(LDFLAGS) -o $@
  79694. +@WANT_CXX_TRUE@am_libgmpxx_la_rpath = -rpath $(libdir)
  79695. +am__DEPENDENCIES_2 = $(srcdir)/libmp.sym $(MPBSD_OBJECTS) \
  79696. + $(MPN_OBJECTS) mpz/add$U.lo mpz/gcdext$U.lo mpz/invert$U.lo \
  79697. + mpz/mul$U.lo mpz/n_pow_ui$U.lo mpz/realloc$U.lo mpz/set$U.lo \
  79698. + mpz/sub$U.lo mpz/tdiv_q$U.lo
  79699. am_libmp_la_OBJECTS = assert$U.lo errno$U.lo memory$U.lo mp_bpl$U.lo \
  79700. mp_clz_tab$U.lo mp_dv_tab$U.lo mp_minv_tab$U.lo \
  79701. mp_get_fns$U.lo mp_set_fns$U.lo
  79702. libmp_la_OBJECTS = $(am_libmp_la_OBJECTS)
  79703. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
  79704. +libmp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79705. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libmp_la_LDFLAGS) \
  79706. + $(LDFLAGS) -o $@
  79707. +@WANT_MPBSD_TRUE@am_libmp_la_rpath = -rpath $(libdir)
  79708. +DEFAULT_INCLUDES = -I.@am__isrc@
  79709. depcomp =
  79710. am__depfiles_maybe =
  79711. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  79712. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  79713. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  79714. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  79715. - $(AM_CFLAGS) $(CFLAGS)
  79716. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79717. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  79718. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  79719. CCLD = $(CC)
  79720. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  79721. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  79722. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79723. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  79724. + $(LDFLAGS) -o $@
  79725. CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  79726. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  79727. -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
  79728. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  79729. - $(AM_CXXFLAGS) $(CXXFLAGS)
  79730. +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79731. + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  79732. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  79733. CXXLD = $(CXX)
  79734. -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
  79735. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  79736. +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79737. + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
  79738. + $(LDFLAGS) -o $@
  79739. SOURCES = $(libgmp_la_SOURCES) $(EXTRA_libgmp_la_SOURCES) \
  79740. $(libgmpxx_la_SOURCES) $(libmp_la_SOURCES)
  79741. DIST_SOURCES = $(libgmp_la_SOURCES) $(EXTRA_libgmp_la_SOURCES) \
  79742. $(libgmpxx_la_SOURCES) $(libmp_la_SOURCES)
  79743. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  79744. html-recursive info-recursive install-data-recursive \
  79745. - install-exec-recursive install-info-recursive \
  79746. - install-recursive installcheck-recursive installdirs-recursive \
  79747. - pdf-recursive ps-recursive uninstall-info-recursive \
  79748. - uninstall-recursive
  79749. + install-dvi-recursive install-exec-recursive \
  79750. + install-html-recursive install-info-recursive \
  79751. + install-pdf-recursive install-ps-recursive install-recursive \
  79752. + installcheck-recursive installdirs-recursive pdf-recursive \
  79753. + ps-recursive uninstall-recursive
  79754. am__include_HEADERS_DIST = gmpxx.h
  79755. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  79756. -nodist_includeexecHEADERS_INSTALL = $(INSTALL_HEADER)
  79757. HEADERS = $(include_HEADERS) $(nodist_includeexec_HEADERS)
  79758. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  79759. + distclean-recursive maintainer-clean-recursive
  79760. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  79761. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  79762. + distdir dist dist-all distcheck
  79763. ETAGS = etags
  79764. CTAGS = ctags
  79765. DIST_SUBDIRS = $(SUBDIRS)
  79766. @@ -235,9 +173,34 @@
  79767. distdir = $(PACKAGE)-$(VERSION)
  79768. top_distdir = $(distdir)
  79769. am__remove_distdir = \
  79770. - { test ! -d $(distdir) \
  79771. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  79772. - && rm -fr $(distdir); }; }
  79773. + { test ! -d "$(distdir)" \
  79774. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  79775. + && rm -fr "$(distdir)"; }; }
  79776. +am__relativize = \
  79777. + dir0=`pwd`; \
  79778. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  79779. + sed_rest='s,^[^/]*/*,,'; \
  79780. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  79781. + sed_butlast='s,/*[^/]*$$,,'; \
  79782. + while test -n "$$dir1"; do \
  79783. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  79784. + if test "$$first" != "."; then \
  79785. + if test "$$first" = ".."; then \
  79786. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  79787. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  79788. + else \
  79789. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  79790. + if test "$$first2" = "$$first"; then \
  79791. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  79792. + else \
  79793. + dir2="../$$dir2"; \
  79794. + fi; \
  79795. + dir0="$$dir0"/"$$first"; \
  79796. + fi; \
  79797. + fi; \
  79798. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  79799. + done; \
  79800. + reldir="$$dir2"
  79801. DIST_ARCHIVES = $(distdir).tar.gz
  79802. GZIP_ENV = --best
  79803. distuninstallcheck_listfiles = find . -type f -print
  79804. @@ -268,15 +231,17 @@
  79805. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  79806. DEFS = @DEFS@
  79807. DLLTOOL = @DLLTOOL@
  79808. -ECHO = @ECHO@
  79809. +DSYMUTIL = @DSYMUTIL@
  79810. +DUMPBIN = @DUMPBIN@
  79811. ECHO_C = @ECHO_C@
  79812. ECHO_N = @ECHO_N@
  79813. ECHO_T = @ECHO_T@
  79814. EGREP = @EGREP@
  79815. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  79816. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  79817. EXEEXT = @EXEEXT@
  79818. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  79819. +F77 = @F77@
  79820. +FFLAGS = @FFLAGS@
  79821. +FGREP = @FGREP@
  79822. GMP_LDFLAGS = @GMP_LDFLAGS@
  79823. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  79824. GREP = @GREP@
  79825. @@ -291,10 +256,12 @@
  79826. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  79827. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  79828. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  79829. +INSTALL = @INSTALL@
  79830. INSTALL_DATA = @INSTALL_DATA@
  79831. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  79832. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  79833. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  79834. +LD = @LD@
  79835. LDFLAGS = @LDFLAGS@
  79836. LEX = @LEX@
  79837. LEXLIB = @LEXLIB@
  79838. @@ -309,20 +276,25 @@
  79839. LIBREADLINE = @LIBREADLINE@
  79840. LIBS = @LIBS@
  79841. LIBTOOL = @LIBTOOL@
  79842. +LIPO = @LIPO@
  79843. LN_S = @LN_S@
  79844. LTLIBOBJS = @LTLIBOBJS@
  79845. M4 = @M4@
  79846. MAINT = @MAINT@
  79847. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  79848. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  79849. MAKEINFO = @MAKEINFO@
  79850. +MKDIR_P = @MKDIR_P@
  79851. +NM = @NM@
  79852. +NMEDIT = @NMEDIT@
  79853. OBJDUMP = @OBJDUMP@
  79854. OBJEXT = @OBJEXT@
  79855. +OTOOL = @OTOOL@
  79856. +OTOOL64 = @OTOOL64@
  79857. PACKAGE = @PACKAGE@
  79858. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  79859. PACKAGE_NAME = @PACKAGE_NAME@
  79860. PACKAGE_STRING = @PACKAGE_STRING@
  79861. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  79862. +PACKAGE_URL = @PACKAGE_URL@
  79863. PACKAGE_VERSION = @PACKAGE_VERSION@
  79864. PATH_SEPARATOR = @PATH_SEPARATOR@
  79865. RANLIB = @RANLIB@
  79866. @@ -336,22 +308,27 @@
  79867. U = @U@
  79868. U_FOR_BUILD = @U_FOR_BUILD@
  79869. VERSION = @VERSION@
  79870. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  79871. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  79872. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  79873. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  79874. WITH_READLINE_01 = @WITH_READLINE_01@
  79875. YACC = @YACC@
  79876. YFLAGS = @YFLAGS@
  79877. +abs_builddir = @abs_builddir@
  79878. +abs_srcdir = @abs_srcdir@
  79879. +abs_top_builddir = @abs_top_builddir@
  79880. +abs_top_srcdir = @abs_top_srcdir@
  79881. ac_ct_CC = @ac_ct_CC@
  79882. ac_ct_CXX = @ac_ct_CXX@
  79883. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  79884. +ac_ct_F77 = @ac_ct_F77@
  79885. am__leading_dot = @am__leading_dot@
  79886. +am__tar = @am__tar@
  79887. +am__untar = @am__untar@
  79888. bindir = @bindir@
  79889. build = @build@
  79890. build_alias = @build_alias@
  79891. build_cpu = @build_cpu@
  79892. build_os = @build_os@
  79893. build_vendor = @build_vendor@
  79894. +builddir = @builddir@
  79895. datadir = @datadir@
  79896. datarootdir = @datarootdir@
  79897. docdir = @docdir@
  79898. @@ -371,6 +348,7 @@
  79899. libexecdir = @libexecdir@
  79900. localedir = @localedir@
  79901. localstatedir = @localstatedir@
  79902. +lt_ECHO = @lt_ECHO@
  79903. mandir = @mandir@
  79904. mkdir_p = @mkdir_p@
  79905. mpn_objects = @mpn_objects@
  79906. @@ -383,8 +361,12 @@
  79907. psdir = @psdir@
  79908. sbindir = @sbindir@
  79909. sharedstatedir = @sharedstatedir@
  79910. +srcdir = @srcdir@
  79911. sysconfdir = @sysconfdir@
  79912. target_alias = @target_alias@
  79913. +top_build_prefix = @top_build_prefix@
  79914. +top_builddir = @top_builddir@
  79915. +top_srcdir = @top_srcdir@
  79916. # The following options are the same as AM_INIT_AUTOMAKE in configure.in,
  79917. # except no $(top_builddir) on ansi2knr. That directory is wanted for the
  79918. @@ -470,7 +452,9 @@
  79919. # build-system stuff over and done with at the start. Also, dependencies on
  79920. # the .h files are not properly expressed for the various objects that use
  79921. # them.
  79922. -EXTRA_DIST = macos configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf gmpxx.h libmp.sym dumbmp.c gen-fac_ui.c gen-fib.c gen-bases.c gen-psqr.c
  79923. +EXTRA_DIST = macos configfsf.guess configfsf.sub .gdbinit \
  79924. + INSTALL.autoconf gmpxx.h libmp.sym dumbmp.c gen-fac_ui.c \
  79925. + gen-fib.c gen-bases.c gen-psqr.c
  79926. @WANT_CXX_TRUE@GMPXX_HEADERS_OPTION = gmpxx.h
  79927. # gmp.h and mp.h are architecture dependent, mainly since they encode the
  79928. @@ -486,8 +470,11 @@
  79929. include_HEADERS = $(GMPXX_HEADERS_OPTION)
  79930. nodist_includeexec_HEADERS = gmp.h $(MPBSD_HEADERS_OPTION)
  79931. lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION) $(MPBSD_LTLIBRARIES_OPTION)
  79932. -BUILT_SOURCES = gmp.h mp.h mpz/fac_ui.h fib_table.h mpn/fib_table.c mp_bases.h mpn/mp_bases.c mpn/perfsqr.h
  79933. -DISTCLEANFILES = $(BUILT_SOURCES) config.m4 @gmp_srclinks@ gen-fac_ui$(EXEEXT_FOR_BUILD) gen-fib$(EXEEXT_FOR_BUILD) gen-bases$(EXEEXT_FOR_BUILD) gen-psqr$(EXEEXT_FOR_BUILD)
  79934. +BUILT_SOURCES = gmp.h mp.h mpz/fac_ui.h fib_table.h mpn/fib_table.c \
  79935. + mp_bases.h mpn/mp_bases.c mpn/perfsqr.h
  79936. +DISTCLEANFILES = $(BUILT_SOURCES) config.m4 @gmp_srclinks@ \
  79937. + gen-fac_ui$(EXEEXT_FOR_BUILD) gen-fib$(EXEEXT_FOR_BUILD) \
  79938. + gen-bases$(EXEEXT_FOR_BUILD) gen-psqr$(EXEEXT_FOR_BUILD)
  79939. # Tell gmp.h it's building gmp, not an application, used by windows DLL stuff.
  79940. INCLUDES = -D__GMP_WITHIN_GMP
  79941. @@ -673,15 +660,15 @@
  79942. @for dep in $?; do \
  79943. case '$(am__configure_deps)' in \
  79944. *$$dep*) \
  79945. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu --ignore-deps'; \
  79946. - cd $(srcdir) && $(AUTOMAKE) --gnu --ignore-deps \
  79947. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu --ignore-deps'; \
  79948. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu --ignore-deps \
  79949. && exit 0; \
  79950. exit 1;; \
  79951. esac; \
  79952. done; \
  79953. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps Makefile'; \
  79954. - cd $(top_srcdir) && \
  79955. - $(AUTOMAKE) --gnu --ignore-deps Makefile
  79956. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps Makefile'; \
  79957. + $(am__cd) $(top_srcdir) && \
  79958. + $(AUTOMAKE) --gnu --ignore-deps Makefile
  79959. .PRECIOUS: Makefile
  79960. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  79961. @case '$?' in \
  79962. @@ -697,21 +684,22 @@
  79963. $(SHELL) ./config.status --recheck
  79964. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  79965. - cd $(srcdir) && $(AUTOCONF)
  79966. + $(am__cd) $(srcdir) && $(AUTOCONF)
  79967. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  79968. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  79969. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  79970. +$(am__aclocal_m4_deps):
  79971. config.h: stamp-h1
  79972. @if test ! -f $@; then \
  79973. rm -f stamp-h1; \
  79974. - $(MAKE) stamp-h1; \
  79975. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  79976. else :; fi
  79977. stamp-h1: $(srcdir)/config.in $(top_builddir)/config.status
  79978. @rm -f stamp-h1
  79979. cd $(top_builddir) && $(SHELL) ./config.status config.h
  79980. $(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  79981. - cd $(top_srcdir) && $(AUTOHEADER)
  79982. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  79983. rm -f stamp-h1
  79984. touch $@
  79985. @@ -723,44 +711,48 @@
  79986. cd $(top_builddir) && $(SHELL) ./config.status $@
  79987. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  79988. @$(NORMAL_INSTALL)
  79989. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  79990. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  79991. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  79992. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  79993. + list2=; for p in $$list; do \
  79994. if test -f $$p; then \
  79995. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  79996. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  79997. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  79998. + list2="$$list2 $$p"; \
  79999. else :; fi; \
  80000. - done
  80001. + done; \
  80002. + test -z "$$list2" || { \
  80003. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  80004. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  80005. + }
  80006. uninstall-libLTLIBRARIES:
  80007. @$(NORMAL_UNINSTALL)
  80008. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  80009. - p="`echo $$p | sed -e 's|^.*/||'`"; \
  80010. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  80011. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  80012. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  80013. + for p in $$list; do \
  80014. + $(am__strip_dir) \
  80015. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  80016. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  80017. done
  80018. clean-libLTLIBRARIES:
  80019. -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  80020. @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  80021. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  80022. - test "$$dir" = "$$p" && dir=.; \
  80023. + test "$$dir" != "$$p" || dir=.; \
  80024. echo "rm -f \"$${dir}/so_locations\""; \
  80025. rm -f "$${dir}/so_locations"; \
  80026. done
  80027. libgmp.la: $(libgmp_la_OBJECTS) $(libgmp_la_DEPENDENCIES)
  80028. - $(LINK) -rpath $(libdir) $(libgmp_la_LDFLAGS) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS)
  80029. + $(libgmp_la_LINK) -rpath $(libdir) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS)
  80030. libgmpxx.la: $(libgmpxx_la_OBJECTS) $(libgmpxx_la_DEPENDENCIES)
  80031. - $(CXXLINK) -rpath $(libdir) $(libgmpxx_la_LDFLAGS) $(libgmpxx_la_OBJECTS) $(libgmpxx_la_LIBADD) $(LIBS)
  80032. + $(libgmpxx_la_LINK) $(am_libgmpxx_la_rpath) $(libgmpxx_la_OBJECTS) $(libgmpxx_la_LIBADD) $(LIBS)
  80033. libmp.la: $(libmp_la_OBJECTS) $(libmp_la_DEPENDENCIES)
  80034. - $(LINK) -rpath $(libdir) $(libmp_la_LDFLAGS) $(libmp_la_OBJECTS) $(libmp_la_LIBADD) $(LIBS)
  80035. + $(libmp_la_LINK) $(am_libmp_la_rpath) $(libmp_la_OBJECTS) $(libmp_la_LIBADD) $(LIBS)
  80036. mostlyclean-compile:
  80037. -rm -f *.$(OBJEXT)
  80038. distclean-compile:
  80039. -rm -f *.tab.c
  80040. -ansi2knr: ansi2knr.$(OBJEXT)
  80041. +./ansi2knr: ansi2knr.$(OBJEXT)
  80042. $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
  80043. ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
  80044. @@ -862,14 +854,8 @@
  80045. .cc.lo:
  80046. $(LTCXXCOMPILE) -c -o $@ $<
  80047. -dummy.o: cxx/dummy.cc
  80048. - $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o dummy.o `test -f 'cxx/dummy.cc' || echo '$(srcdir)/'`cxx/dummy.cc
  80049. -
  80050. -dummy.obj: cxx/dummy.cc
  80051. - $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o dummy.obj `if test -f 'cxx/dummy.cc'; then $(CYGPATH_W) 'cxx/dummy.cc'; else $(CYGPATH_W) '$(srcdir)/cxx/dummy.cc'; fi`
  80052. -
  80053. dummy.lo: cxx/dummy.cc
  80054. - $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o dummy.lo `test -f 'cxx/dummy.cc' || echo '$(srcdir)/'`cxx/dummy.cc
  80055. + $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o dummy.lo `test -f 'cxx/dummy.cc' || echo '$(srcdir)/'`cxx/dummy.cc
  80056. mostlyclean-libtool:
  80057. -rm -f *.lo
  80058. @@ -878,42 +864,47 @@
  80059. -rm -rf .libs _libs
  80060. distclean-libtool:
  80061. - -rm -f libtool
  80062. -uninstall-info-am:
  80063. + -rm -f libtool config.lt
  80064. install-includeHEADERS: $(include_HEADERS)
  80065. @$(NORMAL_INSTALL)
  80066. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  80067. - @list='$(include_HEADERS)'; for p in $$list; do \
  80068. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  80069. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  80070. + for p in $$list; do \
  80071. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  80072. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  80073. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  80074. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  80075. + echo "$$d$$p"; \
  80076. + done | $(am__base_list) | \
  80077. + while read files; do \
  80078. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  80079. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  80080. done
  80081. uninstall-includeHEADERS:
  80082. @$(NORMAL_UNINSTALL)
  80083. - @list='$(include_HEADERS)'; for p in $$list; do \
  80084. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  80085. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  80086. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  80087. - done
  80088. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  80089. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  80090. + test -n "$$files" || exit 0; \
  80091. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  80092. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  80093. install-nodist_includeexecHEADERS: $(nodist_includeexec_HEADERS)
  80094. @$(NORMAL_INSTALL)
  80095. - test -z "$(includeexecdir)" || $(mkdir_p) "$(DESTDIR)$(includeexecdir)"
  80096. - @list='$(nodist_includeexec_HEADERS)'; for p in $$list; do \
  80097. + test -z "$(includeexecdir)" || $(MKDIR_P) "$(DESTDIR)$(includeexecdir)"
  80098. + @list='$(nodist_includeexec_HEADERS)'; test -n "$(includeexecdir)" || list=; \
  80099. + for p in $$list; do \
  80100. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  80101. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  80102. - echo " $(nodist_includeexecHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includeexecdir)/$$f'"; \
  80103. - $(nodist_includeexecHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includeexecdir)/$$f"; \
  80104. + echo "$$d$$p"; \
  80105. + done | $(am__base_list) | \
  80106. + while read files; do \
  80107. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includeexecdir)'"; \
  80108. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includeexecdir)" || exit $$?; \
  80109. done
  80110. uninstall-nodist_includeexecHEADERS:
  80111. @$(NORMAL_UNINSTALL)
  80112. - @list='$(nodist_includeexec_HEADERS)'; for p in $$list; do \
  80113. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  80114. - echo " rm -f '$(DESTDIR)$(includeexecdir)/$$f'"; \
  80115. - rm -f "$(DESTDIR)$(includeexecdir)/$$f"; \
  80116. - done
  80117. + @list='$(nodist_includeexec_HEADERS)'; test -n "$(includeexecdir)" || list=; \
  80118. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  80119. + test -n "$$files" || exit 0; \
  80120. + echo " ( cd '$(DESTDIR)$(includeexecdir)' && rm -f" $$files ")"; \
  80121. + cd "$(DESTDIR)$(includeexecdir)" && rm -f $$files
  80122. # This directory's subdirectories are mostly independent; you can cd
  80123. # into them and run `make' without going through this Makefile.
  80124. @@ -922,7 +913,13 @@
  80125. # (which will cause the Makefiles to be regenerated when you run `make');
  80126. # (2) otherwise, pass the desired values on the `make' command line.
  80127. $(RECURSIVE_TARGETS):
  80128. - @set fnord $$MAKEFLAGS; amf=$$2; \
  80129. + @fail= failcom='exit 1'; \
  80130. + for f in x $$MAKEFLAGS; do \
  80131. + case $$f in \
  80132. + *=* | --[!k]*);; \
  80133. + *k*) failcom='fail=yes';; \
  80134. + esac; \
  80135. + done; \
  80136. dot_seen=no; \
  80137. target=`echo $@ | sed s/-recursive//`; \
  80138. list='$(SUBDIRS)'; for subdir in $$list; do \
  80139. @@ -933,16 +930,21 @@
  80140. else \
  80141. local_target="$$target"; \
  80142. fi; \
  80143. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  80144. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  80145. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  80146. + || eval $$failcom; \
  80147. done; \
  80148. if test "$$dot_seen" = "no"; then \
  80149. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  80150. fi; test -z "$$fail"
  80151. -mostlyclean-recursive clean-recursive distclean-recursive \
  80152. -maintainer-clean-recursive:
  80153. - @set fnord $$MAKEFLAGS; amf=$$2; \
  80154. +$(RECURSIVE_CLEAN_TARGETS):
  80155. + @fail= failcom='exit 1'; \
  80156. + for f in x $$MAKEFLAGS; do \
  80157. + case $$f in \
  80158. + *=* | --[!k]*);; \
  80159. + *k*) failcom='fail=yes';; \
  80160. + esac; \
  80161. + done; \
  80162. dot_seen=no; \
  80163. case "$@" in \
  80164. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  80165. @@ -962,16 +964,16 @@
  80166. else \
  80167. local_target="$$target"; \
  80168. fi; \
  80169. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  80170. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  80171. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  80172. + || eval $$failcom; \
  80173. done && test -z "$$fail"
  80174. tags-recursive:
  80175. list='$(SUBDIRS)'; for subdir in $$list; do \
  80176. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  80177. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  80178. done
  80179. ctags-recursive:
  80180. list='$(SUBDIRS)'; for subdir in $$list; do \
  80181. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  80182. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  80183. done
  80184. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  80185. @@ -979,14 +981,14 @@
  80186. unique=`for i in $$list; do \
  80187. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  80188. done | \
  80189. - $(AWK) ' { files[$$0] = 1; } \
  80190. - END { for (i in files) print i; }'`; \
  80191. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  80192. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  80193. mkid -fID $$unique
  80194. tags: TAGS
  80195. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) \
  80196. $(TAGS_FILES) $(LISP)
  80197. - tags=; \
  80198. + set x; \
  80199. here=`pwd`; \
  80200. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  80201. include_option=--etags-include; \
  80202. @@ -997,83 +999,104 @@
  80203. fi; \
  80204. list='$(SUBDIRS)'; for subdir in $$list; do \
  80205. if test "$$subdir" = .; then :; else \
  80206. - test -f $$subdir/TAGS && \
  80207. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  80208. + test ! -f $$subdir/TAGS || \
  80209. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  80210. fi; \
  80211. done; \
  80212. list='$(SOURCES) $(HEADERS) config.in $(LISP) $(TAGS_FILES)'; \
  80213. unique=`for i in $$list; do \
  80214. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  80215. done | \
  80216. - $(AWK) ' { files[$$0] = 1; } \
  80217. - END { for (i in files) print i; }'`; \
  80218. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  80219. - test -z "$$unique" && unique=$$empty_fix; \
  80220. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  80221. - $$tags $$unique; \
  80222. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  80223. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  80224. + shift; \
  80225. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  80226. + test -n "$$unique" || unique=$$empty_fix; \
  80227. + if test $$# -gt 0; then \
  80228. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  80229. + "$$@" $$unique; \
  80230. + else \
  80231. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  80232. + $$unique; \
  80233. + fi; \
  80234. fi
  80235. ctags: CTAGS
  80236. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) \
  80237. $(TAGS_FILES) $(LISP)
  80238. - tags=; \
  80239. - here=`pwd`; \
  80240. list='$(SOURCES) $(HEADERS) config.in $(LISP) $(TAGS_FILES)'; \
  80241. unique=`for i in $$list; do \
  80242. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  80243. done | \
  80244. - $(AWK) ' { files[$$0] = 1; } \
  80245. - END { for (i in files) print i; }'`; \
  80246. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  80247. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  80248. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  80249. + test -z "$(CTAGS_ARGS)$$unique" \
  80250. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  80251. - $$tags $$unique
  80252. + $$unique
  80253. GTAGS:
  80254. here=`$(am__cd) $(top_builddir) && pwd` \
  80255. - && cd $(top_srcdir) \
  80256. - && gtags -i $(GTAGS_ARGS) $$here
  80257. + && $(am__cd) $(top_srcdir) \
  80258. + && gtags -i $(GTAGS_ARGS) "$$here"
  80259. distclean-tags:
  80260. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  80261. distdir: $(DISTFILES)
  80262. $(am__remove_distdir)
  80263. - mkdir $(distdir)
  80264. - $(mkdir_p) $(distdir)/. $(distdir)/demos $(distdir)/demos/calc
  80265. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  80266. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  80267. - list='$(DISTFILES)'; for file in $$list; do \
  80268. - case $$file in \
  80269. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  80270. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  80271. - esac; \
  80272. + test -d "$(distdir)" || mkdir "$(distdir)"
  80273. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  80274. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  80275. + list='$(DISTFILES)'; \
  80276. + dist_files=`for file in $$list; do echo $$file; done | \
  80277. + sed -e "s|^$$srcdirstrip/||;t" \
  80278. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  80279. + case $$dist_files in \
  80280. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  80281. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  80282. + sort -u` ;; \
  80283. + esac; \
  80284. + for file in $$dist_files; do \
  80285. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  80286. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  80287. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  80288. - dir="/$$dir"; \
  80289. - $(mkdir_p) "$(distdir)$$dir"; \
  80290. - else \
  80291. - dir=''; \
  80292. - fi; \
  80293. if test -d $$d/$$file; then \
  80294. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  80295. + if test -d "$(distdir)/$$file"; then \
  80296. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  80297. + fi; \
  80298. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  80299. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  80300. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  80301. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  80302. fi; \
  80303. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  80304. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  80305. else \
  80306. - test -f $(distdir)/$$file \
  80307. - || cp -p $$d/$$file $(distdir)/$$file \
  80308. + test -f "$(distdir)/$$file" \
  80309. + || cp -p $$d/$$file "$(distdir)/$$file" \
  80310. || exit 1; \
  80311. fi; \
  80312. done
  80313. - list='$(SUBDIRS)'; for subdir in $$list; do \
  80314. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  80315. if test "$$subdir" = .; then :; else \
  80316. test -d "$(distdir)/$$subdir" \
  80317. - || mkdir "$(distdir)/$$subdir" \
  80318. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  80319. || exit 1; \
  80320. - (cd $$subdir && \
  80321. + fi; \
  80322. + done
  80323. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  80324. + if test "$$subdir" = .; then :; else \
  80325. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  80326. + $(am__relativize); \
  80327. + new_distdir=$$reldir; \
  80328. + dir1=$$subdir; dir2="$(top_distdir)"; \
  80329. + $(am__relativize); \
  80330. + new_top_distdir=$$reldir; \
  80331. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  80332. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  80333. + ($(am__cd) $$subdir && \
  80334. $(MAKE) $(AM_MAKEFLAGS) \
  80335. - top_distdir="../$(top_distdir)" \
  80336. - distdir="../$(distdir)/$$subdir" \
  80337. + top_distdir="$$new_top_distdir" \
  80338. + distdir="$$new_distdir" \
  80339. + am__remove_distdir=: \
  80340. + am__skip_length_check=: \
  80341. + am__skip_mode_fix=: \
  80342. distdir) \
  80343. || exit 1; \
  80344. fi; \
  80345. @@ -1081,21 +1104,31 @@
  80346. $(MAKE) $(AM_MAKEFLAGS) \
  80347. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  80348. dist-hook
  80349. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  80350. + -test -n "$(am__skip_mode_fix)" \
  80351. + || find "$(distdir)" -type d ! -perm -755 \
  80352. + -exec chmod u+rwx,go+rx {} \; -o \
  80353. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  80354. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  80355. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  80356. - || chmod -R a+r $(distdir)
  80357. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  80358. + || chmod -R a+r "$(distdir)"
  80359. dist-gzip: distdir
  80360. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  80361. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  80362. $(am__remove_distdir)
  80363. dist-bzip2: distdir
  80364. - $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
  80365. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  80366. + $(am__remove_distdir)
  80367. +
  80368. +dist-lzma: distdir
  80369. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  80370. + $(am__remove_distdir)
  80371. +
  80372. +dist-xz: distdir
  80373. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  80374. $(am__remove_distdir)
  80375. dist-tarZ: distdir
  80376. - $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
  80377. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  80378. $(am__remove_distdir)
  80379. dist-shar: distdir
  80380. @@ -1108,7 +1141,7 @@
  80381. $(am__remove_distdir)
  80382. dist dist-all: distdir
  80383. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  80384. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  80385. $(am__remove_distdir)
  80386. # This target untars the dist file and tries a VPATH configuration. Then
  80387. @@ -1117,13 +1150,17 @@
  80388. distcheck: dist
  80389. case '$(DIST_ARCHIVES)' in \
  80390. *.tar.gz*) \
  80391. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
  80392. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  80393. *.tar.bz2*) \
  80394. - bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
  80395. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  80396. + *.tar.lzma*) \
  80397. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  80398. + *.tar.xz*) \
  80399. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  80400. *.tar.Z*) \
  80401. - uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
  80402. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  80403. *.shar.gz*) \
  80404. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  80405. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  80406. *.zip*) \
  80407. unzip $(distdir).zip ;;\
  80408. esac
  80409. @@ -1131,9 +1168,11 @@
  80410. mkdir $(distdir)/_build
  80411. mkdir $(distdir)/_inst
  80412. chmod a-w $(distdir)
  80413. + test -d $(distdir)/_build || exit 0; \
  80414. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  80415. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  80416. - && cd $(distdir)/_build \
  80417. + && am__cwd=`pwd` \
  80418. + && $(am__cd) $(distdir)/_build \
  80419. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  80420. $(DISTCHECK_CONFIGURE_FLAGS) \
  80421. && $(MAKE) $(AM_MAKEFLAGS) \
  80422. @@ -1155,13 +1194,15 @@
  80423. && rm -rf "$$dc_destdir" \
  80424. && $(MAKE) $(AM_MAKEFLAGS) dist \
  80425. && rm -rf $(DIST_ARCHIVES) \
  80426. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  80427. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  80428. + && cd "$$am__cwd" \
  80429. + || exit 1
  80430. $(am__remove_distdir)
  80431. @(echo "$(distdir) archives ready for distribution: "; \
  80432. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  80433. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  80434. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  80435. distuninstallcheck:
  80436. - @cd $(distuninstallcheck_dir) \
  80437. + @$(am__cd) '$(distuninstallcheck_dir)' \
  80438. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  80439. || { echo "ERROR: files left after uninstall:" ; \
  80440. if test -n "$(DESTDIR)"; then \
  80441. @@ -1185,7 +1226,7 @@
  80442. installdirs: installdirs-recursive
  80443. installdirs-am:
  80444. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includeexecdir)"; do \
  80445. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  80446. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  80447. done
  80448. install: $(BUILT_SOURCES)
  80449. $(MAKE) $(AM_MAKEFLAGS) install-recursive
  80450. @@ -1207,7 +1248,8 @@
  80451. clean-generic:
  80452. distclean-generic:
  80453. - -rm -f $(CONFIG_CLEAN_FILES)
  80454. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  80455. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  80456. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  80457. maintainer-clean-generic:
  80458. @@ -1231,6 +1273,8 @@
  80459. html: html-recursive
  80460. +html-am:
  80461. +
  80462. info: info-recursive
  80463. info-am:
  80464. @@ -1238,14 +1282,31 @@
  80465. install-data-am: install-includeHEADERS
  80466. @$(NORMAL_INSTALL)
  80467. $(MAKE) $(AM_MAKEFLAGS) install-data-hook
  80468. +install-dvi: install-dvi-recursive
  80469. +
  80470. +install-dvi-am:
  80471. install-exec-am: install-libLTLIBRARIES \
  80472. install-nodist_includeexecHEADERS
  80473. +install-html: install-html-recursive
  80474. +
  80475. +install-html-am:
  80476. +
  80477. install-info: install-info-recursive
  80478. +install-info-am:
  80479. +
  80480. install-man:
  80481. +install-pdf: install-pdf-recursive
  80482. +
  80483. +install-pdf-am:
  80484. +
  80485. +install-ps: install-ps-recursive
  80486. +
  80487. +install-ps-am:
  80488. +
  80489. installcheck-am:
  80490. maintainer-clean: maintainer-clean-recursive
  80491. @@ -1267,30 +1328,34 @@
  80492. ps-am:
  80493. -uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  80494. - uninstall-libLTLIBRARIES uninstall-nodist_includeexecHEADERS
  80495. -
  80496. -uninstall-info: uninstall-info-recursive
  80497. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES \
  80498. + uninstall-nodist_includeexecHEADERS
  80499. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  80500. - check-am clean clean-generic clean-krextra \
  80501. - clean-libLTLIBRARIES clean-libtool clean-recursive ctags \
  80502. - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
  80503. - dist-tarZ dist-zip distcheck distclean distclean-compile \
  80504. - distclean-generic distclean-hdr distclean-libtool \
  80505. - distclean-recursive distclean-tags distcleancheck distdir \
  80506. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
  80507. + ctags-recursive install install-am install-data-am \
  80508. + install-strip tags-recursive
  80509. +
  80510. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  80511. + all all-am am--refresh check check-am clean clean-generic \
  80512. + clean-krextra clean-libLTLIBRARIES clean-libtool ctags \
  80513. + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \
  80514. + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
  80515. + distclean distclean-compile distclean-generic distclean-hdr \
  80516. + distclean-libtool distclean-tags distcleancheck distdir \
  80517. distuninstallcheck dvi dvi-am html html-am info info-am \
  80518. - install install-am install-data install-data-am install-exec \
  80519. - install-exec-am install-includeHEADERS install-info \
  80520. - install-info-am install-libLTLIBRARIES install-man \
  80521. - install-nodist_includeexecHEADERS install-strip installcheck \
  80522. + install install-am install-data install-data-am \
  80523. + install-data-hook install-dvi install-dvi-am install-exec \
  80524. + install-exec-am install-html install-html-am \
  80525. + install-includeHEADERS install-info install-info-am \
  80526. + install-libLTLIBRARIES install-man \
  80527. + install-nodist_includeexecHEADERS install-pdf install-pdf-am \
  80528. + install-ps install-ps-am install-strip installcheck \
  80529. installcheck-am installdirs installdirs-am maintainer-clean \
  80530. - maintainer-clean-generic maintainer-clean-recursive \
  80531. - mostlyclean mostlyclean-compile mostlyclean-generic \
  80532. - mostlyclean-kr mostlyclean-libtool mostlyclean-recursive pdf \
  80533. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  80534. + mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  80535. pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
  80536. - uninstall-includeHEADERS uninstall-info-am \
  80537. - uninstall-libLTLIBRARIES uninstall-nodist_includeexecHEADERS
  80538. + uninstall-includeHEADERS uninstall-libLTLIBRARIES \
  80539. + uninstall-nodist_includeexecHEADERS
  80540. install-data-hook:
  80541. @@ -1364,6 +1429,7 @@
  80542. grep -F $(VERSION) $(srcdir)/Makefile.am \
  80543. | grep -q "^# *$(VERSION) *$(LIBGMP_LT_CURRENT):$(LIBGMP_LT_REVISION):$(LIBGMP_LT_AGE) *$(LIBGMPXX_LT_CURRENT):$(LIBGMPXX_LT_REVISION):$(LIBGMPXX_LT_AGE) *$(LIBMP_LT_CURRENT):$(LIBMP_LT_REVISION):$(LIBMP_LT_AGE)"
  80544. test -z "`sed -n 's/^# *[0-9]*\.[0-9]*\.[0-9]* *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\).*/A\1\nB\2\nC\3/p' $(srcdir)/Makefile.am | grep -v 'A6:3:3\|B3:5:0\|C4:7:1' | sort | uniq -d`"
  80545. +
  80546. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  80547. # Otherwise a system limit (for SysV at least) may be exceeded.
  80548. .NOEXPORT:
  80549. diff -Nur gmp-4.3.2.orig/missing gmp-4.3.2/missing
  80550. --- gmp-4.3.2.orig/missing 2010-01-07 21:09:02.000000000 +0100
  80551. +++ gmp-4.3.2/missing 2011-02-16 19:23:19.563552390 +0100
  80552. @@ -1,10 +1,10 @@
  80553. #! /bin/sh
  80554. # Common stub for a few missing GNU programs while installing.
  80555. -scriptversion=2003-09-02.23
  80556. +scriptversion=2009-04-28.21; # UTC
  80557. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
  80558. -# Free Software Foundation, Inc.
  80559. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  80560. +# 2008, 2009 Free Software Foundation, Inc.
  80561. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  80562. # This program is free software; you can redistribute it and/or modify
  80563. @@ -18,9 +18,7 @@
  80564. # GNU General Public License for more details.
  80565. # You should have received a copy of the GNU General Public License
  80566. -# along with this program; if not, write to the Free Software
  80567. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  80568. -# 02110-1301, USA.
  80569. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  80570. # As a special exception to the GNU General Public License, if you
  80571. # distribute this file as part of a program that contains a
  80572. @@ -33,6 +31,8 @@
  80573. fi
  80574. run=:
  80575. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  80576. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  80577. # In the cases where this matters, `missing' is being run in the
  80578. # srcdir already.
  80579. @@ -44,7 +44,7 @@
  80580. msg="missing on your system"
  80581. -case "$1" in
  80582. +case $1 in
  80583. --run)
  80584. # Try to run requested program, and just exit if it succeeds.
  80585. run=
  80586. @@ -60,11 +60,6 @@
  80587. msg="probably too old"
  80588. fi
  80589. ;;
  80590. -esac
  80591. -
  80592. -# If it does not exist, or fails to run (possibly an outdated version),
  80593. -# try to emulate it.
  80594. -case "$1" in
  80595. -h|--h|--he|--hel|--help)
  80596. echo "\
  80597. @@ -82,6 +77,7 @@
  80598. aclocal touch file \`aclocal.m4'
  80599. autoconf touch file \`configure'
  80600. autoheader touch file \`config.h.in'
  80601. + autom4te touch the output file, or create a stub one
  80602. automake touch all \`Makefile.in' files
  80603. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  80604. flex create \`lex.yy.c', if possible, from existing .c
  80605. @@ -91,11 +87,16 @@
  80606. tar try tar, gnutar, gtar, then tar without non-portable flags
  80607. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  80608. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  80609. +\`g' are ignored when checking the name.
  80610. +
  80611. Send bug reports to <bug-automake@gnu.org>."
  80612. + exit $?
  80613. ;;
  80614. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  80615. echo "missing $scriptversion (GNU Automake)"
  80616. + exit $?
  80617. ;;
  80618. -*)
  80619. @@ -104,12 +105,49 @@
  80620. exit 1
  80621. ;;
  80622. - aclocal*)
  80623. +esac
  80624. +
  80625. +# normalize program name to check for.
  80626. +program=`echo "$1" | sed '
  80627. + s/^gnu-//; t
  80628. + s/^gnu//; t
  80629. + s/^g//; t'`
  80630. +
  80631. +# Now exit if we have it, but it failed. Also exit now if we
  80632. +# don't have it and --version was passed (most likely to detect
  80633. +# the program). This is about non-GNU programs, so use $1 not
  80634. +# $program.
  80635. +case $1 in
  80636. + lex*|yacc*)
  80637. + # Not GNU programs, they don't have --version.
  80638. + ;;
  80639. +
  80640. + tar*)
  80641. + if test -n "$run"; then
  80642. + echo 1>&2 "ERROR: \`tar' requires --run"
  80643. + exit 1
  80644. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  80645. + exit 1
  80646. + fi
  80647. + ;;
  80648. +
  80649. + *)
  80650. if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80651. # We have it, but it failed.
  80652. exit 1
  80653. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  80654. + # Could not run --version or --help. This is probably someone
  80655. + # running `$TOOL --version' or `$TOOL --help' to check whether
  80656. + # $TOOL exists and not knowing $TOOL uses missing.
  80657. + exit 1
  80658. fi
  80659. + ;;
  80660. +esac
  80661. +# If it does not exist, or fails to run (possibly an outdated version),
  80662. +# try to emulate it.
  80663. +case $program in
  80664. + aclocal*)
  80665. echo 1>&2 "\
  80666. WARNING: \`$1' is $msg. You should only need it if
  80667. you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  80668. @@ -118,12 +156,7 @@
  80669. touch aclocal.m4
  80670. ;;
  80671. - autoconf)
  80672. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80673. - # We have it, but it failed.
  80674. - exit 1
  80675. - fi
  80676. -
  80677. + autoconf*)
  80678. echo 1>&2 "\
  80679. WARNING: \`$1' is $msg. You should only need it if
  80680. you modified \`${configure_ac}'. You might want to install the
  80681. @@ -132,12 +165,7 @@
  80682. touch configure
  80683. ;;
  80684. - autoheader)
  80685. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80686. - # We have it, but it failed.
  80687. - exit 1
  80688. - fi
  80689. -
  80690. + autoheader*)
  80691. echo 1>&2 "\
  80692. WARNING: \`$1' is $msg. You should only need it if
  80693. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  80694. @@ -147,7 +175,7 @@
  80695. test -z "$files" && files="config.h"
  80696. touch_files=
  80697. for f in $files; do
  80698. - case "$f" in
  80699. + case $f in
  80700. *:*) touch_files="$touch_files "`echo "$f" |
  80701. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  80702. *) touch_files="$touch_files $f.in";;
  80703. @@ -157,11 +185,6 @@
  80704. ;;
  80705. automake*)
  80706. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80707. - # We have it, but it failed.
  80708. - exit 1
  80709. - fi
  80710. -
  80711. echo 1>&2 "\
  80712. WARNING: \`$1' is $msg. You should only need it if
  80713. you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  80714. @@ -172,12 +195,7 @@
  80715. while read f; do touch "$f"; done
  80716. ;;
  80717. - autom4te)
  80718. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80719. - # We have it, but it failed.
  80720. - exit 1
  80721. - fi
  80722. -
  80723. + autom4te*)
  80724. echo 1>&2 "\
  80725. WARNING: \`$1' is needed, but is $msg.
  80726. You might have modified some files without having the
  80727. @@ -185,8 +203,8 @@
  80728. You can get \`$1' as part of \`Autoconf' from any GNU
  80729. archive site."
  80730. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  80731. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  80732. + file=`echo "$*" | sed -n "$sed_output"`
  80733. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  80734. if test -f "$file"; then
  80735. touch $file
  80736. else
  80737. @@ -200,90 +218,78 @@
  80738. fi
  80739. ;;
  80740. - bison|yacc)
  80741. + bison*|yacc*)
  80742. echo 1>&2 "\
  80743. WARNING: \`$1' $msg. You should only need it if
  80744. you modified a \`.y' file. You may need the \`Bison' package
  80745. in order for those modifications to take effect. You can get
  80746. \`Bison' from any GNU archive site."
  80747. rm -f y.tab.c y.tab.h
  80748. - if [ $# -ne 1 ]; then
  80749. + if test $# -ne 1; then
  80750. eval LASTARG="\${$#}"
  80751. - case "$LASTARG" in
  80752. + case $LASTARG in
  80753. *.y)
  80754. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  80755. - if [ -f "$SRCFILE" ]; then
  80756. + if test -f "$SRCFILE"; then
  80757. cp "$SRCFILE" y.tab.c
  80758. fi
  80759. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  80760. - if [ -f "$SRCFILE" ]; then
  80761. + if test -f "$SRCFILE"; then
  80762. cp "$SRCFILE" y.tab.h
  80763. fi
  80764. ;;
  80765. esac
  80766. fi
  80767. - if [ ! -f y.tab.h ]; then
  80768. + if test ! -f y.tab.h; then
  80769. echo >y.tab.h
  80770. fi
  80771. - if [ ! -f y.tab.c ]; then
  80772. + if test ! -f y.tab.c; then
  80773. echo 'main() { return 0; }' >y.tab.c
  80774. fi
  80775. ;;
  80776. - lex|flex)
  80777. + lex*|flex*)
  80778. echo 1>&2 "\
  80779. WARNING: \`$1' is $msg. You should only need it if
  80780. you modified a \`.l' file. You may need the \`Flex' package
  80781. in order for those modifications to take effect. You can get
  80782. \`Flex' from any GNU archive site."
  80783. rm -f lex.yy.c
  80784. - if [ $# -ne 1 ]; then
  80785. + if test $# -ne 1; then
  80786. eval LASTARG="\${$#}"
  80787. - case "$LASTARG" in
  80788. + case $LASTARG in
  80789. *.l)
  80790. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  80791. - if [ -f "$SRCFILE" ]; then
  80792. + if test -f "$SRCFILE"; then
  80793. cp "$SRCFILE" lex.yy.c
  80794. fi
  80795. ;;
  80796. esac
  80797. fi
  80798. - if [ ! -f lex.yy.c ]; then
  80799. + if test ! -f lex.yy.c; then
  80800. echo 'main() { return 0; }' >lex.yy.c
  80801. fi
  80802. ;;
  80803. - help2man)
  80804. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  80805. - # We have it, but it failed.
  80806. - exit 1
  80807. - fi
  80808. -
  80809. + help2man*)
  80810. echo 1>&2 "\
  80811. WARNING: \`$1' is $msg. You should only need it if
  80812. you modified a dependency of a manual page. You may need the
  80813. \`Help2man' package in order for those modifications to take
  80814. effect. You can get \`Help2man' from any GNU archive site."
  80815. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  80816. - if test -z "$file"; then
  80817. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  80818. - fi
  80819. - if [ -f "$file" ]; then
  80820. + file=`echo "$*" | sed -n "$sed_output"`
  80821. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  80822. + if test -f "$file"; then
  80823. touch $file
  80824. else
  80825. test -z "$file" || exec >$file
  80826. echo ".ab help2man is required to generate this page"
  80827. - exit 1
  80828. + exit $?
  80829. fi
  80830. ;;
  80831. - makeinfo)
  80832. - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  80833. - # We have makeinfo, but it failed.
  80834. - exit 1
  80835. - fi
  80836. -
  80837. + makeinfo*)
  80838. echo 1>&2 "\
  80839. WARNING: \`$1' is $msg. You should only need it if
  80840. you modified a \`.texi' or \`.texinfo' file, or any other file
  80841. @@ -291,20 +297,29 @@
  80842. call might also be the consequence of using a buggy \`make' (AIX,
  80843. DU, IRIX). You might want to install the \`Texinfo' package or
  80844. the \`GNU make' package. Grab either from any GNU archive site."
  80845. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  80846. + # The file to touch is that specified with -o ...
  80847. + file=`echo "$*" | sed -n "$sed_output"`
  80848. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  80849. if test -z "$file"; then
  80850. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  80851. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  80852. - fi
  80853. + # ... or it is the one specified with @setfilename ...
  80854. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  80855. + file=`sed -n '
  80856. + /^@setfilename/{
  80857. + s/.* \([^ ]*\) *$/\1/
  80858. + p
  80859. + q
  80860. + }' $infile`
  80861. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  80862. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  80863. + fi
  80864. + # If the file does not exist, the user really needs makeinfo;
  80865. + # let's fail without touching anything.
  80866. + test -f $file || exit 1
  80867. touch $file
  80868. ;;
  80869. - tar)
  80870. + tar*)
  80871. shift
  80872. - if test -n "$run"; then
  80873. - echo 1>&2 "ERROR: \`tar' requires --run"
  80874. - exit 1
  80875. - fi
  80876. # We have already tried tar in the generic part.
  80877. # Look for gnutar/gtar before invocation to avoid ugly error
  80878. @@ -317,13 +332,13 @@
  80879. fi
  80880. firstarg="$1"
  80881. if shift; then
  80882. - case "$firstarg" in
  80883. + case $firstarg in
  80884. *o*)
  80885. firstarg=`echo "$firstarg" | sed s/o//`
  80886. tar "$firstarg" "$@" && exit 0
  80887. ;;
  80888. esac
  80889. - case "$firstarg" in
  80890. + case $firstarg in
  80891. *h*)
  80892. firstarg=`echo "$firstarg" | sed s/h//`
  80893. tar "$firstarg" "$@" && exit 0
  80894. @@ -356,5 +371,6 @@
  80895. # eval: (add-hook 'write-file-hooks 'time-stamp)
  80896. # time-stamp-start: "scriptversion="
  80897. # time-stamp-format: "%:y-%02m-%02d.%02H"
  80898. -# time-stamp-end: "$"
  80899. +# time-stamp-time-zone: "UTC"
  80900. +# time-stamp-end: "; # UTC"
  80901. # End:
  80902. diff -Nur gmp-4.3.2.orig/mpbsd/Makefile.in gmp-4.3.2/mpbsd/Makefile.in
  80903. --- gmp-4.3.2.orig/mpbsd/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  80904. +++ gmp-4.3.2/mpbsd/Makefile.in 2011-02-16 19:23:20.024812832 +0100
  80905. @@ -1,8 +1,9 @@
  80906. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  80907. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  80908. # @configure_input@
  80909. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  80910. -# 2003, 2004 Free Software Foundation, Inc.
  80911. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  80912. +# Inc.
  80913. # This Makefile.in is free software; the Free Software Foundation
  80914. # gives unlimited permission to copy and/or distribute it,
  80915. # with or without modifications, as long as this notice is preserved.
  80916. @@ -31,17 +32,12 @@
  80917. # You should have received a copy of the GNU Lesser General Public License
  80918. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  80919. -SOURCES = $(libmpbsd_la_SOURCES)
  80920. -
  80921. -srcdir = @srcdir@
  80922. -top_srcdir = @top_srcdir@
  80923. VPATH = @srcdir@
  80924. pkgdatadir = $(datadir)/@PACKAGE@
  80925. -pkglibdir = $(libdir)/@PACKAGE@
  80926. pkgincludedir = $(includedir)/@PACKAGE@
  80927. -top_builddir = ..
  80928. +pkglibdir = $(libdir)/@PACKAGE@
  80929. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  80930. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  80931. -INSTALL = @INSTALL@
  80932. install_sh_DATA = $(install_sh) -c -m 644
  80933. install_sh_PROGRAM = $(install_sh) -c
  80934. install_sh_SCRIPT = $(install_sh) -c
  80935. @@ -53,6 +49,7 @@
  80936. NORMAL_UNINSTALL = :
  80937. PRE_UNINSTALL = :
  80938. POST_UNINSTALL = :
  80939. +build_triplet = @build@
  80940. host_triplet = @host@
  80941. ANSI2KNR = $(top_builddir)/ansi2knr
  80942. subdir = mpbsd
  80943. @@ -62,9 +59,10 @@
  80944. $(top_srcdir)/configure.in
  80945. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  80946. $(ACLOCAL_M4)
  80947. -mkinstalldirs = $(mkdir_p)
  80948. +mkinstalldirs = $(install_sh) -d
  80949. CONFIG_HEADER = $(top_builddir)/config.h
  80950. CONFIG_CLEAN_FILES =
  80951. +CONFIG_CLEAN_VPATH_FILES =
  80952. LTLIBRARIES = $(noinst_LTLIBRARIES)
  80953. libmpbsd_la_LIBADD =
  80954. am_libmpbsd_la_OBJECTS = itom$U.lo mfree$U.lo min$U.lo mout$U.lo \
  80955. @@ -72,17 +70,19 @@
  80956. gcd$U.lo mul$U.lo powm$U.lo realloc$U.lo set$U.lo sqrtrem$U.lo \
  80957. sub$U.lo tdiv_qr$U.lo
  80958. libmpbsd_la_OBJECTS = $(am_libmpbsd_la_OBJECTS)
  80959. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  80960. +@WANT_MPBSD_TRUE@am_libmpbsd_la_rpath =
  80961. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  80962. depcomp =
  80963. am__depfiles_maybe =
  80964. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  80965. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  80966. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  80967. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  80968. - $(AM_CFLAGS) $(CFLAGS)
  80969. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  80970. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  80971. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  80972. CCLD = $(CC)
  80973. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  80974. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  80975. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  80976. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  80977. + $(LDFLAGS) -o $@
  80978. SOURCES = $(libmpbsd_la_SOURCES)
  80979. DIST_SOURCES = $(libmpbsd_la_SOURCES)
  80980. ETAGS = etags
  80981. @@ -114,15 +114,17 @@
  80982. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  80983. DEFS = @DEFS@
  80984. DLLTOOL = @DLLTOOL@
  80985. -ECHO = @ECHO@
  80986. +DSYMUTIL = @DSYMUTIL@
  80987. +DUMPBIN = @DUMPBIN@
  80988. ECHO_C = @ECHO_C@
  80989. ECHO_N = @ECHO_N@
  80990. ECHO_T = @ECHO_T@
  80991. EGREP = @EGREP@
  80992. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  80993. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  80994. EXEEXT = @EXEEXT@
  80995. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  80996. +F77 = @F77@
  80997. +FFLAGS = @FFLAGS@
  80998. +FGREP = @FGREP@
  80999. GMP_LDFLAGS = @GMP_LDFLAGS@
  81000. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  81001. GREP = @GREP@
  81002. @@ -137,10 +139,12 @@
  81003. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  81004. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  81005. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  81006. +INSTALL = @INSTALL@
  81007. INSTALL_DATA = @INSTALL_DATA@
  81008. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  81009. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  81010. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  81011. +LD = @LD@
  81012. LDFLAGS = @LDFLAGS@
  81013. LEX = @LEX@
  81014. LEXLIB = @LEXLIB@
  81015. @@ -155,20 +159,25 @@
  81016. LIBREADLINE = @LIBREADLINE@
  81017. LIBS = @LIBS@
  81018. LIBTOOL = @LIBTOOL@
  81019. +LIPO = @LIPO@
  81020. LN_S = @LN_S@
  81021. LTLIBOBJS = @LTLIBOBJS@
  81022. M4 = @M4@
  81023. MAINT = @MAINT@
  81024. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  81025. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  81026. MAKEINFO = @MAKEINFO@
  81027. +MKDIR_P = @MKDIR_P@
  81028. +NM = @NM@
  81029. +NMEDIT = @NMEDIT@
  81030. OBJDUMP = @OBJDUMP@
  81031. OBJEXT = @OBJEXT@
  81032. +OTOOL = @OTOOL@
  81033. +OTOOL64 = @OTOOL64@
  81034. PACKAGE = @PACKAGE@
  81035. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  81036. PACKAGE_NAME = @PACKAGE_NAME@
  81037. PACKAGE_STRING = @PACKAGE_STRING@
  81038. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  81039. +PACKAGE_URL = @PACKAGE_URL@
  81040. PACKAGE_VERSION = @PACKAGE_VERSION@
  81041. PATH_SEPARATOR = @PATH_SEPARATOR@
  81042. RANLIB = @RANLIB@
  81043. @@ -182,22 +191,27 @@
  81044. U = @U@
  81045. U_FOR_BUILD = @U_FOR_BUILD@
  81046. VERSION = @VERSION@
  81047. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  81048. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  81049. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  81050. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  81051. WITH_READLINE_01 = @WITH_READLINE_01@
  81052. YACC = @YACC@
  81053. YFLAGS = @YFLAGS@
  81054. +abs_builddir = @abs_builddir@
  81055. +abs_srcdir = @abs_srcdir@
  81056. +abs_top_builddir = @abs_top_builddir@
  81057. +abs_top_srcdir = @abs_top_srcdir@
  81058. ac_ct_CC = @ac_ct_CC@
  81059. ac_ct_CXX = @ac_ct_CXX@
  81060. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  81061. +ac_ct_F77 = @ac_ct_F77@
  81062. am__leading_dot = @am__leading_dot@
  81063. +am__tar = @am__tar@
  81064. +am__untar = @am__untar@
  81065. bindir = @bindir@
  81066. build = @build@
  81067. build_alias = @build_alias@
  81068. build_cpu = @build_cpu@
  81069. build_os = @build_os@
  81070. build_vendor = @build_vendor@
  81071. +builddir = @builddir@
  81072. datadir = @datadir@
  81073. datarootdir = @datarootdir@
  81074. docdir = @docdir@
  81075. @@ -217,6 +231,7 @@
  81076. libexecdir = @libexecdir@
  81077. localedir = @localedir@
  81078. localstatedir = @localstatedir@
  81079. +lt_ECHO = @lt_ECHO@
  81080. mandir = @mandir@
  81081. mkdir_p = @mkdir_p@
  81082. mpn_objects = @mpn_objects@
  81083. @@ -229,8 +244,12 @@
  81084. psdir = @psdir@
  81085. sbindir = @sbindir@
  81086. sharedstatedir = @sharedstatedir@
  81087. +srcdir = @srcdir@
  81088. sysconfdir = @sysconfdir@
  81089. target_alias = @target_alias@
  81090. +top_build_prefix = @top_build_prefix@
  81091. +top_builddir = @top_builddir@
  81092. +top_srcdir = @top_srcdir@
  81093. # -I$(top_srcdir)/mpz is for #includes done by mpz .c files. Perhaps most
  81094. # compilers are smart enough to look in the same directory as the .c file
  81095. @@ -256,14 +275,14 @@
  81096. @for dep in $?; do \
  81097. case '$(am__configure_deps)' in \
  81098. *$$dep*) \
  81099. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  81100. - && exit 0; \
  81101. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  81102. + && { if test -f $@; then exit 0; else break; fi; }; \
  81103. exit 1;; \
  81104. esac; \
  81105. done; \
  81106. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpbsd/Makefile'; \
  81107. - cd $(top_srcdir) && \
  81108. - $(AUTOMAKE) --gnu --ignore-deps mpbsd/Makefile
  81109. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpbsd/Makefile'; \
  81110. + $(am__cd) $(top_srcdir) && \
  81111. + $(AUTOMAKE) --gnu --ignore-deps mpbsd/Makefile
  81112. .PRECIOUS: Makefile
  81113. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  81114. @case '$?' in \
  81115. @@ -281,17 +300,18 @@
  81116. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  81117. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  81118. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  81119. +$(am__aclocal_m4_deps):
  81120. clean-noinstLTLIBRARIES:
  81121. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  81122. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  81123. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  81124. - test "$$dir" = "$$p" && dir=.; \
  81125. + test "$$dir" != "$$p" || dir=.; \
  81126. echo "rm -f \"$${dir}/so_locations\""; \
  81127. rm -f "$${dir}/so_locations"; \
  81128. done
  81129. libmpbsd.la: $(libmpbsd_la_OBJECTS) $(libmpbsd_la_DEPENDENCIES)
  81130. - $(LINK) $(libmpbsd_la_LDFLAGS) $(libmpbsd_la_OBJECTS) $(libmpbsd_la_LIBADD) $(LIBS)
  81131. + $(LINK) $(am_libmpbsd_la_rpath) $(libmpbsd_la_OBJECTS) $(libmpbsd_la_LIBADD) $(LIBS)
  81132. mostlyclean-compile:
  81133. -rm -f *.$(OBJEXT)
  81134. @@ -299,7 +319,7 @@
  81135. distclean-compile:
  81136. -rm -f *.tab.c
  81137. $(top_builddir)/ansi2knr:
  81138. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  81139. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  81140. mostlyclean-kr:
  81141. -test "$U" = "" || rm -f *_.c
  81142. @@ -313,185 +333,65 @@
  81143. .c.lo:
  81144. $(LTCOMPILE) -c -o $@ $<
  81145. -add_.o: add_.c
  81146. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add_.o `test -f 'add_.c' || echo '$(srcdir)/'`add_.c
  81147. -
  81148. -add_.obj: add_.c
  81149. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add_.obj `if test -f 'add_.c'; then $(CYGPATH_W) 'add_.c'; else $(CYGPATH_W) '$(srcdir)/add_.c'; fi`
  81150. -
  81151. add_.lo: add_.c
  81152. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add_.lo `test -f 'add_.c' || echo '$(srcdir)/'`add_.c
  81153. -
  81154. -add.o: ../mpz/add.c
  81155. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add.o `test -f '../mpz/add.c' || echo '$(srcdir)/'`../mpz/add.c
  81156. -
  81157. -add.obj: ../mpz/add.c
  81158. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add.obj `if test -f '../mpz/add.c'; then $(CYGPATH_W) '../mpz/add.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/add.c'; fi`
  81159. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add_.lo `test -f 'add_.c' || echo '$(srcdir)/'`add_.c
  81160. add.lo: ../mpz/add.c
  81161. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add.lo `test -f '../mpz/add.c' || echo '$(srcdir)/'`../mpz/add.c
  81162. -
  81163. -cmp_.o: cmp_.c
  81164. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp_.o `test -f 'cmp_.c' || echo '$(srcdir)/'`cmp_.c
  81165. -
  81166. -cmp_.obj: cmp_.c
  81167. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp_.obj `if test -f 'cmp_.c'; then $(CYGPATH_W) 'cmp_.c'; else $(CYGPATH_W) '$(srcdir)/cmp_.c'; fi`
  81168. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o add.lo `test -f '../mpz/add.c' || echo '$(srcdir)/'`../mpz/add.c
  81169. cmp_.lo: cmp_.c
  81170. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp_.lo `test -f 'cmp_.c' || echo '$(srcdir)/'`cmp_.c
  81171. -
  81172. -cmp.o: ../mpz/cmp.c
  81173. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp.o `test -f '../mpz/cmp.c' || echo '$(srcdir)/'`../mpz/cmp.c
  81174. -
  81175. -cmp.obj: ../mpz/cmp.c
  81176. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp.obj `if test -f '../mpz/cmp.c'; then $(CYGPATH_W) '../mpz/cmp.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/cmp.c'; fi`
  81177. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp_.lo `test -f 'cmp_.c' || echo '$(srcdir)/'`cmp_.c
  81178. cmp.lo: ../mpz/cmp.c
  81179. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp.lo `test -f '../mpz/cmp.c' || echo '$(srcdir)/'`../mpz/cmp.c
  81180. -
  81181. -gcd_.o: gcd_.c
  81182. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd_.o `test -f 'gcd_.c' || echo '$(srcdir)/'`gcd_.c
  81183. -
  81184. -gcd_.obj: gcd_.c
  81185. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd_.obj `if test -f 'gcd_.c'; then $(CYGPATH_W) 'gcd_.c'; else $(CYGPATH_W) '$(srcdir)/gcd_.c'; fi`
  81186. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmp.lo `test -f '../mpz/cmp.c' || echo '$(srcdir)/'`../mpz/cmp.c
  81187. gcd_.lo: gcd_.c
  81188. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd_.lo `test -f 'gcd_.c' || echo '$(srcdir)/'`gcd_.c
  81189. -
  81190. -gcd.o: ../mpz/gcd.c
  81191. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd.o `test -f '../mpz/gcd.c' || echo '$(srcdir)/'`../mpz/gcd.c
  81192. -
  81193. -gcd.obj: ../mpz/gcd.c
  81194. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd.obj `if test -f '../mpz/gcd.c'; then $(CYGPATH_W) '../mpz/gcd.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/gcd.c'; fi`
  81195. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd_.lo `test -f 'gcd_.c' || echo '$(srcdir)/'`gcd_.c
  81196. gcd.lo: ../mpz/gcd.c
  81197. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd.lo `test -f '../mpz/gcd.c' || echo '$(srcdir)/'`../mpz/gcd.c
  81198. -
  81199. -mul_.o: mul_.c
  81200. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul_.o `test -f 'mul_.c' || echo '$(srcdir)/'`mul_.c
  81201. -
  81202. -mul_.obj: mul_.c
  81203. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul_.obj `if test -f 'mul_.c'; then $(CYGPATH_W) 'mul_.c'; else $(CYGPATH_W) '$(srcdir)/mul_.c'; fi`
  81204. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcd.lo `test -f '../mpz/gcd.c' || echo '$(srcdir)/'`../mpz/gcd.c
  81205. mul_.lo: mul_.c
  81206. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul_.lo `test -f 'mul_.c' || echo '$(srcdir)/'`mul_.c
  81207. -
  81208. -mul.o: ../mpz/mul.c
  81209. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul.o `test -f '../mpz/mul.c' || echo '$(srcdir)/'`../mpz/mul.c
  81210. -
  81211. -mul.obj: ../mpz/mul.c
  81212. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul.obj `if test -f '../mpz/mul.c'; then $(CYGPATH_W) '../mpz/mul.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/mul.c'; fi`
  81213. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul_.lo `test -f 'mul_.c' || echo '$(srcdir)/'`mul_.c
  81214. mul.lo: ../mpz/mul.c
  81215. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul.lo `test -f '../mpz/mul.c' || echo '$(srcdir)/'`../mpz/mul.c
  81216. -
  81217. -powm_.o: powm_.c
  81218. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm_.o `test -f 'powm_.c' || echo '$(srcdir)/'`powm_.c
  81219. -
  81220. -powm_.obj: powm_.c
  81221. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm_.obj `if test -f 'powm_.c'; then $(CYGPATH_W) 'powm_.c'; else $(CYGPATH_W) '$(srcdir)/powm_.c'; fi`
  81222. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mul.lo `test -f '../mpz/mul.c' || echo '$(srcdir)/'`../mpz/mul.c
  81223. powm_.lo: powm_.c
  81224. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm_.lo `test -f 'powm_.c' || echo '$(srcdir)/'`powm_.c
  81225. -
  81226. -powm.o: ../mpz/powm.c
  81227. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm.o `test -f '../mpz/powm.c' || echo '$(srcdir)/'`../mpz/powm.c
  81228. -
  81229. -powm.obj: ../mpz/powm.c
  81230. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm.obj `if test -f '../mpz/powm.c'; then $(CYGPATH_W) '../mpz/powm.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/powm.c'; fi`
  81231. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm_.lo `test -f 'powm_.c' || echo '$(srcdir)/'`powm_.c
  81232. powm.lo: ../mpz/powm.c
  81233. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm.lo `test -f '../mpz/powm.c' || echo '$(srcdir)/'`../mpz/powm.c
  81234. -
  81235. -realloc_.o: realloc_.c
  81236. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc_.o `test -f 'realloc_.c' || echo '$(srcdir)/'`realloc_.c
  81237. -
  81238. -realloc_.obj: realloc_.c
  81239. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc_.obj `if test -f 'realloc_.c'; then $(CYGPATH_W) 'realloc_.c'; else $(CYGPATH_W) '$(srcdir)/realloc_.c'; fi`
  81240. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o powm.lo `test -f '../mpz/powm.c' || echo '$(srcdir)/'`../mpz/powm.c
  81241. realloc_.lo: realloc_.c
  81242. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc_.lo `test -f 'realloc_.c' || echo '$(srcdir)/'`realloc_.c
  81243. -
  81244. -realloc.o: ../mpz/realloc.c
  81245. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc.o `test -f '../mpz/realloc.c' || echo '$(srcdir)/'`../mpz/realloc.c
  81246. -
  81247. -realloc.obj: ../mpz/realloc.c
  81248. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc.obj `if test -f '../mpz/realloc.c'; then $(CYGPATH_W) '../mpz/realloc.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/realloc.c'; fi`
  81249. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc_.lo `test -f 'realloc_.c' || echo '$(srcdir)/'`realloc_.c
  81250. realloc.lo: ../mpz/realloc.c
  81251. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc.lo `test -f '../mpz/realloc.c' || echo '$(srcdir)/'`../mpz/realloc.c
  81252. -
  81253. -set_.o: set_.c
  81254. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set_.o `test -f 'set_.c' || echo '$(srcdir)/'`set_.c
  81255. -
  81256. -set_.obj: set_.c
  81257. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set_.obj `if test -f 'set_.c'; then $(CYGPATH_W) 'set_.c'; else $(CYGPATH_W) '$(srcdir)/set_.c'; fi`
  81258. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o realloc.lo `test -f '../mpz/realloc.c' || echo '$(srcdir)/'`../mpz/realloc.c
  81259. set_.lo: set_.c
  81260. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set_.lo `test -f 'set_.c' || echo '$(srcdir)/'`set_.c
  81261. -
  81262. -set.o: ../mpz/set.c
  81263. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set.o `test -f '../mpz/set.c' || echo '$(srcdir)/'`../mpz/set.c
  81264. -
  81265. -set.obj: ../mpz/set.c
  81266. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set.obj `if test -f '../mpz/set.c'; then $(CYGPATH_W) '../mpz/set.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/set.c'; fi`
  81267. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set_.lo `test -f 'set_.c' || echo '$(srcdir)/'`set_.c
  81268. set.lo: ../mpz/set.c
  81269. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set.lo `test -f '../mpz/set.c' || echo '$(srcdir)/'`../mpz/set.c
  81270. -
  81271. -sqrtrem_.o: sqrtrem_.c
  81272. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem_.o `test -f 'sqrtrem_.c' || echo '$(srcdir)/'`sqrtrem_.c
  81273. -
  81274. -sqrtrem_.obj: sqrtrem_.c
  81275. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem_.obj `if test -f 'sqrtrem_.c'; then $(CYGPATH_W) 'sqrtrem_.c'; else $(CYGPATH_W) '$(srcdir)/sqrtrem_.c'; fi`
  81276. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o set.lo `test -f '../mpz/set.c' || echo '$(srcdir)/'`../mpz/set.c
  81277. sqrtrem_.lo: sqrtrem_.c
  81278. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem_.lo `test -f 'sqrtrem_.c' || echo '$(srcdir)/'`sqrtrem_.c
  81279. -
  81280. -sqrtrem.o: ../mpz/sqrtrem.c
  81281. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem.o `test -f '../mpz/sqrtrem.c' || echo '$(srcdir)/'`../mpz/sqrtrem.c
  81282. -
  81283. -sqrtrem.obj: ../mpz/sqrtrem.c
  81284. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem.obj `if test -f '../mpz/sqrtrem.c'; then $(CYGPATH_W) '../mpz/sqrtrem.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/sqrtrem.c'; fi`
  81285. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem_.lo `test -f 'sqrtrem_.c' || echo '$(srcdir)/'`sqrtrem_.c
  81286. sqrtrem.lo: ../mpz/sqrtrem.c
  81287. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem.lo `test -f '../mpz/sqrtrem.c' || echo '$(srcdir)/'`../mpz/sqrtrem.c
  81288. -
  81289. -sub_.o: sub_.c
  81290. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub_.o `test -f 'sub_.c' || echo '$(srcdir)/'`sub_.c
  81291. -
  81292. -sub_.obj: sub_.c
  81293. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub_.obj `if test -f 'sub_.c'; then $(CYGPATH_W) 'sub_.c'; else $(CYGPATH_W) '$(srcdir)/sub_.c'; fi`
  81294. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sqrtrem.lo `test -f '../mpz/sqrtrem.c' || echo '$(srcdir)/'`../mpz/sqrtrem.c
  81295. sub_.lo: sub_.c
  81296. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub_.lo `test -f 'sub_.c' || echo '$(srcdir)/'`sub_.c
  81297. -
  81298. -sub.o: ../mpz/sub.c
  81299. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub.o `test -f '../mpz/sub.c' || echo '$(srcdir)/'`../mpz/sub.c
  81300. -
  81301. -sub.obj: ../mpz/sub.c
  81302. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub.obj `if test -f '../mpz/sub.c'; then $(CYGPATH_W) '../mpz/sub.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/sub.c'; fi`
  81303. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub_.lo `test -f 'sub_.c' || echo '$(srcdir)/'`sub_.c
  81304. sub.lo: ../mpz/sub.c
  81305. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub.lo `test -f '../mpz/sub.c' || echo '$(srcdir)/'`../mpz/sub.c
  81306. -
  81307. -tdiv_qr_.o: tdiv_qr_.c
  81308. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr_.o `test -f 'tdiv_qr_.c' || echo '$(srcdir)/'`tdiv_qr_.c
  81309. -
  81310. -tdiv_qr_.obj: tdiv_qr_.c
  81311. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr_.obj `if test -f 'tdiv_qr_.c'; then $(CYGPATH_W) 'tdiv_qr_.c'; else $(CYGPATH_W) '$(srcdir)/tdiv_qr_.c'; fi`
  81312. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sub.lo `test -f '../mpz/sub.c' || echo '$(srcdir)/'`../mpz/sub.c
  81313. tdiv_qr_.lo: tdiv_qr_.c
  81314. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr_.lo `test -f 'tdiv_qr_.c' || echo '$(srcdir)/'`tdiv_qr_.c
  81315. -
  81316. -tdiv_qr.o: ../mpz/tdiv_qr.c
  81317. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr.o `test -f '../mpz/tdiv_qr.c' || echo '$(srcdir)/'`../mpz/tdiv_qr.c
  81318. -
  81319. -tdiv_qr.obj: ../mpz/tdiv_qr.c
  81320. - $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr.obj `if test -f '../mpz/tdiv_qr.c'; then $(CYGPATH_W) '../mpz/tdiv_qr.c'; else $(CYGPATH_W) '$(srcdir)/../mpz/tdiv_qr.c'; fi`
  81321. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr_.lo `test -f 'tdiv_qr_.c' || echo '$(srcdir)/'`tdiv_qr_.c
  81322. tdiv_qr.lo: ../mpz/tdiv_qr.c
  81323. - $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr.lo `test -f '../mpz/tdiv_qr.c' || echo '$(srcdir)/'`../mpz/tdiv_qr.c
  81324. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tdiv_qr.lo `test -f '../mpz/tdiv_qr.c' || echo '$(srcdir)/'`../mpz/tdiv_qr.c
  81325. add_.c: ../mpz/add.c $(ANSI2KNR)
  81326. $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/../mpz/add.c; then echo $(srcdir)/../mpz/add.c; else echo ../mpz/add.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
  81327. cmp_.c: ../mpz/cmp.c $(ANSI2KNR)
  81328. @@ -543,82 +443,85 @@
  81329. clean-libtool:
  81330. -rm -rf .libs _libs
  81331. -distclean-libtool:
  81332. - -rm -f libtool
  81333. -uninstall-info-am:
  81334. -
  81335. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  81336. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81337. unique=`for i in $$list; do \
  81338. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81339. done | \
  81340. - $(AWK) ' { files[$$0] = 1; } \
  81341. - END { for (i in files) print i; }'`; \
  81342. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81343. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81344. mkid -fID $$unique
  81345. tags: TAGS
  81346. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  81347. $(TAGS_FILES) $(LISP)
  81348. - tags=; \
  81349. + set x; \
  81350. here=`pwd`; \
  81351. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81352. unique=`for i in $$list; do \
  81353. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81354. done | \
  81355. - $(AWK) ' { files[$$0] = 1; } \
  81356. - END { for (i in files) print i; }'`; \
  81357. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  81358. - test -z "$$unique" && unique=$$empty_fix; \
  81359. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81360. - $$tags $$unique; \
  81361. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81362. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81363. + shift; \
  81364. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  81365. + test -n "$$unique" || unique=$$empty_fix; \
  81366. + if test $$# -gt 0; then \
  81367. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81368. + "$$@" $$unique; \
  81369. + else \
  81370. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81371. + $$unique; \
  81372. + fi; \
  81373. fi
  81374. ctags: CTAGS
  81375. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  81376. $(TAGS_FILES) $(LISP)
  81377. - tags=; \
  81378. - here=`pwd`; \
  81379. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81380. unique=`for i in $$list; do \
  81381. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81382. done | \
  81383. - $(AWK) ' { files[$$0] = 1; } \
  81384. - END { for (i in files) print i; }'`; \
  81385. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  81386. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81387. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81388. + test -z "$(CTAGS_ARGS)$$unique" \
  81389. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  81390. - $$tags $$unique
  81391. + $$unique
  81392. GTAGS:
  81393. here=`$(am__cd) $(top_builddir) && pwd` \
  81394. - && cd $(top_srcdir) \
  81395. - && gtags -i $(GTAGS_ARGS) $$here
  81396. + && $(am__cd) $(top_srcdir) \
  81397. + && gtags -i $(GTAGS_ARGS) "$$here"
  81398. distclean-tags:
  81399. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  81400. distdir: $(DISTFILES)
  81401. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  81402. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  81403. - list='$(DISTFILES)'; for file in $$list; do \
  81404. - case $$file in \
  81405. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  81406. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  81407. - esac; \
  81408. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  81409. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  81410. + list='$(DISTFILES)'; \
  81411. + dist_files=`for file in $$list; do echo $$file; done | \
  81412. + sed -e "s|^$$srcdirstrip/||;t" \
  81413. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  81414. + case $$dist_files in \
  81415. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  81416. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  81417. + sort -u` ;; \
  81418. + esac; \
  81419. + for file in $$dist_files; do \
  81420. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  81421. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  81422. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  81423. - dir="/$$dir"; \
  81424. - $(mkdir_p) "$(distdir)$$dir"; \
  81425. - else \
  81426. - dir=''; \
  81427. - fi; \
  81428. if test -d $$d/$$file; then \
  81429. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  81430. + if test -d "$(distdir)/$$file"; then \
  81431. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  81432. + fi; \
  81433. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  81434. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  81435. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  81436. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  81437. fi; \
  81438. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  81439. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  81440. else \
  81441. - test -f $(distdir)/$$file \
  81442. - || cp -p $$d/$$file $(distdir)/$$file \
  81443. + test -f "$(distdir)/$$file" \
  81444. + || cp -p $$d/$$file "$(distdir)/$$file" \
  81445. || exit 1; \
  81446. fi; \
  81447. done
  81448. @@ -645,7 +548,8 @@
  81449. clean-generic:
  81450. distclean-generic:
  81451. - -rm -f $(CONFIG_CLEAN_FILES)
  81452. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  81453. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  81454. maintainer-clean-generic:
  81455. @echo "This command is intended for maintainers to use"
  81456. @@ -658,7 +562,7 @@
  81457. distclean: distclean-am
  81458. -rm -f Makefile
  81459. distclean-am: clean-am distclean-compile distclean-generic \
  81460. - distclean-libtool distclean-tags
  81461. + distclean-tags
  81462. dvi: dvi-am
  81463. @@ -666,18 +570,38 @@
  81464. html: html-am
  81465. +html-am:
  81466. +
  81467. info: info-am
  81468. info-am:
  81469. install-data-am:
  81470. +install-dvi: install-dvi-am
  81471. +
  81472. +install-dvi-am:
  81473. +
  81474. install-exec-am:
  81475. +install-html: install-html-am
  81476. +
  81477. +install-html-am:
  81478. +
  81479. install-info: install-info-am
  81480. +install-info-am:
  81481. +
  81482. install-man:
  81483. +install-pdf: install-pdf-am
  81484. +
  81485. +install-pdf-am:
  81486. +
  81487. +install-ps: install-ps-am
  81488. +
  81489. +install-ps-am:
  81490. +
  81491. installcheck-am:
  81492. maintainer-clean: maintainer-clean-am
  81493. @@ -697,19 +621,24 @@
  81494. ps-am:
  81495. -uninstall-am: uninstall-info-am
  81496. +uninstall-am:
  81497. +
  81498. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  81499. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  81500. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  81501. distclean-compile distclean-generic distclean-libtool \
  81502. distclean-tags distdir dvi dvi-am html html-am info info-am \
  81503. - install install-am install-data install-data-am install-exec \
  81504. - install-exec-am install-info install-info-am install-man \
  81505. + install install-am install-data install-data-am install-dvi \
  81506. + install-dvi-am install-exec install-exec-am install-html \
  81507. + install-html-am install-info install-info-am install-man \
  81508. + install-pdf install-pdf-am install-ps install-ps-am \
  81509. install-strip installcheck installcheck-am installdirs \
  81510. maintainer-clean maintainer-clean-generic mostlyclean \
  81511. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  81512. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  81513. - uninstall-am uninstall-info-am
  81514. + uninstall-am
  81515. +
  81516. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  81517. # Otherwise a system limit (for SysV at least) may be exceeded.
  81518. diff -Nur gmp-4.3.2.orig/mpf/Makefile.in gmp-4.3.2/mpf/Makefile.in
  81519. --- gmp-4.3.2.orig/mpf/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  81520. +++ gmp-4.3.2/mpf/Makefile.in 2011-02-16 19:23:20.063755164 +0100
  81521. @@ -1,8 +1,9 @@
  81522. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  81523. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  81524. # @configure_input@
  81525. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  81526. -# 2003, 2004 Free Software Foundation, Inc.
  81527. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  81528. +# Inc.
  81529. # This Makefile.in is free software; the Free Software Foundation
  81530. # gives unlimited permission to copy and/or distribute it,
  81531. # with or without modifications, as long as this notice is preserved.
  81532. @@ -32,17 +33,12 @@
  81533. # You should have received a copy of the GNU Lesser General Public License
  81534. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  81535. -SOURCES = $(libmpf_la_SOURCES)
  81536. -
  81537. -srcdir = @srcdir@
  81538. -top_srcdir = @top_srcdir@
  81539. VPATH = @srcdir@
  81540. pkgdatadir = $(datadir)/@PACKAGE@
  81541. -pkglibdir = $(libdir)/@PACKAGE@
  81542. pkgincludedir = $(includedir)/@PACKAGE@
  81543. -top_builddir = ..
  81544. +pkglibdir = $(libdir)/@PACKAGE@
  81545. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  81546. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  81547. -INSTALL = @INSTALL@
  81548. install_sh_DATA = $(install_sh) -c -m 644
  81549. install_sh_PROGRAM = $(install_sh) -c
  81550. install_sh_SCRIPT = $(install_sh) -c
  81551. @@ -54,6 +50,7 @@
  81552. NORMAL_UNINSTALL = :
  81553. PRE_UNINSTALL = :
  81554. POST_UNINSTALL = :
  81555. +build_triplet = @build@
  81556. host_triplet = @host@
  81557. ANSI2KNR = $(top_builddir)/ansi2knr
  81558. subdir = mpf
  81559. @@ -63,9 +60,10 @@
  81560. $(top_srcdir)/configure.in
  81561. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  81562. $(ACLOCAL_M4)
  81563. -mkinstalldirs = $(mkdir_p)
  81564. +mkinstalldirs = $(install_sh) -d
  81565. CONFIG_HEADER = $(top_builddir)/config.h
  81566. CONFIG_CLEAN_FILES =
  81567. +CONFIG_CLEAN_VPATH_FILES =
  81568. LTLIBRARIES = $(noinst_LTLIBRARIES)
  81569. libmpf_la_LIBADD =
  81570. am_libmpf_la_OBJECTS = init$U.lo init2$U.lo set$U.lo set_ui$U.lo \
  81571. @@ -83,17 +81,18 @@
  81572. fits_sint$U.lo fits_slong$U.lo fits_sshort$U.lo fits_uint$U.lo \
  81573. fits_ulong$U.lo fits_ushort$U.lo
  81574. libmpf_la_OBJECTS = $(am_libmpf_la_OBJECTS)
  81575. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  81576. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  81577. depcomp =
  81578. am__depfiles_maybe =
  81579. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  81580. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  81581. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  81582. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  81583. - $(AM_CFLAGS) $(CFLAGS)
  81584. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  81585. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  81586. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  81587. CCLD = $(CC)
  81588. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  81589. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  81590. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  81591. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  81592. + $(LDFLAGS) -o $@
  81593. SOURCES = $(libmpf_la_SOURCES)
  81594. DIST_SOURCES = $(libmpf_la_SOURCES)
  81595. ETAGS = etags
  81596. @@ -125,15 +124,17 @@
  81597. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  81598. DEFS = @DEFS@
  81599. DLLTOOL = @DLLTOOL@
  81600. -ECHO = @ECHO@
  81601. +DSYMUTIL = @DSYMUTIL@
  81602. +DUMPBIN = @DUMPBIN@
  81603. ECHO_C = @ECHO_C@
  81604. ECHO_N = @ECHO_N@
  81605. ECHO_T = @ECHO_T@
  81606. EGREP = @EGREP@
  81607. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  81608. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  81609. EXEEXT = @EXEEXT@
  81610. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  81611. +F77 = @F77@
  81612. +FFLAGS = @FFLAGS@
  81613. +FGREP = @FGREP@
  81614. GMP_LDFLAGS = @GMP_LDFLAGS@
  81615. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  81616. GREP = @GREP@
  81617. @@ -148,10 +149,12 @@
  81618. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  81619. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  81620. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  81621. +INSTALL = @INSTALL@
  81622. INSTALL_DATA = @INSTALL_DATA@
  81623. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  81624. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  81625. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  81626. +LD = @LD@
  81627. LDFLAGS = @LDFLAGS@
  81628. LEX = @LEX@
  81629. LEXLIB = @LEXLIB@
  81630. @@ -166,20 +169,25 @@
  81631. LIBREADLINE = @LIBREADLINE@
  81632. LIBS = @LIBS@
  81633. LIBTOOL = @LIBTOOL@
  81634. +LIPO = @LIPO@
  81635. LN_S = @LN_S@
  81636. LTLIBOBJS = @LTLIBOBJS@
  81637. M4 = @M4@
  81638. MAINT = @MAINT@
  81639. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  81640. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  81641. MAKEINFO = @MAKEINFO@
  81642. +MKDIR_P = @MKDIR_P@
  81643. +NM = @NM@
  81644. +NMEDIT = @NMEDIT@
  81645. OBJDUMP = @OBJDUMP@
  81646. OBJEXT = @OBJEXT@
  81647. +OTOOL = @OTOOL@
  81648. +OTOOL64 = @OTOOL64@
  81649. PACKAGE = @PACKAGE@
  81650. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  81651. PACKAGE_NAME = @PACKAGE_NAME@
  81652. PACKAGE_STRING = @PACKAGE_STRING@
  81653. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  81654. +PACKAGE_URL = @PACKAGE_URL@
  81655. PACKAGE_VERSION = @PACKAGE_VERSION@
  81656. PATH_SEPARATOR = @PATH_SEPARATOR@
  81657. RANLIB = @RANLIB@
  81658. @@ -193,22 +201,27 @@
  81659. U = @U@
  81660. U_FOR_BUILD = @U_FOR_BUILD@
  81661. VERSION = @VERSION@
  81662. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  81663. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  81664. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  81665. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  81666. WITH_READLINE_01 = @WITH_READLINE_01@
  81667. YACC = @YACC@
  81668. YFLAGS = @YFLAGS@
  81669. +abs_builddir = @abs_builddir@
  81670. +abs_srcdir = @abs_srcdir@
  81671. +abs_top_builddir = @abs_top_builddir@
  81672. +abs_top_srcdir = @abs_top_srcdir@
  81673. ac_ct_CC = @ac_ct_CC@
  81674. ac_ct_CXX = @ac_ct_CXX@
  81675. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  81676. +ac_ct_F77 = @ac_ct_F77@
  81677. am__leading_dot = @am__leading_dot@
  81678. +am__tar = @am__tar@
  81679. +am__untar = @am__untar@
  81680. bindir = @bindir@
  81681. build = @build@
  81682. build_alias = @build_alias@
  81683. build_cpu = @build_cpu@
  81684. build_os = @build_os@
  81685. build_vendor = @build_vendor@
  81686. +builddir = @builddir@
  81687. datadir = @datadir@
  81688. datarootdir = @datarootdir@
  81689. docdir = @docdir@
  81690. @@ -228,6 +241,7 @@
  81691. libexecdir = @libexecdir@
  81692. localedir = @localedir@
  81693. localstatedir = @localstatedir@
  81694. +lt_ECHO = @lt_ECHO@
  81695. mandir = @mandir@
  81696. mkdir_p = @mkdir_p@
  81697. mpn_objects = @mpn_objects@
  81698. @@ -240,8 +254,12 @@
  81699. psdir = @psdir@
  81700. sbindir = @sbindir@
  81701. sharedstatedir = @sharedstatedir@
  81702. +srcdir = @srcdir@
  81703. sysconfdir = @sysconfdir@
  81704. target_alias = @target_alias@
  81705. +top_build_prefix = @top_build_prefix@
  81706. +top_builddir = @top_builddir@
  81707. +top_srcdir = @top_srcdir@
  81708. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir)
  81709. noinst_LTLIBRARIES = libmpf.la
  81710. libmpf_la_SOURCES = \
  81711. @@ -266,14 +284,14 @@
  81712. @for dep in $?; do \
  81713. case '$(am__configure_deps)' in \
  81714. *$$dep*) \
  81715. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  81716. - && exit 0; \
  81717. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  81718. + && { if test -f $@; then exit 0; else break; fi; }; \
  81719. exit 1;; \
  81720. esac; \
  81721. done; \
  81722. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpf/Makefile'; \
  81723. - cd $(top_srcdir) && \
  81724. - $(AUTOMAKE) --gnu --ignore-deps mpf/Makefile
  81725. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpf/Makefile'; \
  81726. + $(am__cd) $(top_srcdir) && \
  81727. + $(AUTOMAKE) --gnu --ignore-deps mpf/Makefile
  81728. .PRECIOUS: Makefile
  81729. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  81730. @case '$?' in \
  81731. @@ -291,17 +309,18 @@
  81732. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  81733. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  81734. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  81735. +$(am__aclocal_m4_deps):
  81736. clean-noinstLTLIBRARIES:
  81737. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  81738. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  81739. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  81740. - test "$$dir" = "$$p" && dir=.; \
  81741. + test "$$dir" != "$$p" || dir=.; \
  81742. echo "rm -f \"$${dir}/so_locations\""; \
  81743. rm -f "$${dir}/so_locations"; \
  81744. done
  81745. libmpf.la: $(libmpf_la_OBJECTS) $(libmpf_la_DEPENDENCIES)
  81746. - $(LINK) $(libmpf_la_LDFLAGS) $(libmpf_la_OBJECTS) $(libmpf_la_LIBADD) $(LIBS)
  81747. + $(LINK) $(libmpf_la_OBJECTS) $(libmpf_la_LIBADD) $(LIBS)
  81748. mostlyclean-compile:
  81749. -rm -f *.$(OBJEXT)
  81750. @@ -309,7 +328,7 @@
  81751. distclean-compile:
  81752. -rm -f *.tab.c
  81753. $(top_builddir)/ansi2knr:
  81754. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  81755. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  81756. mostlyclean-kr:
  81757. -test "$U" = "" || rm -f *_.c
  81758. @@ -487,82 +506,85 @@
  81759. clean-libtool:
  81760. -rm -rf .libs _libs
  81761. -distclean-libtool:
  81762. - -rm -f libtool
  81763. -uninstall-info-am:
  81764. -
  81765. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  81766. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81767. unique=`for i in $$list; do \
  81768. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81769. done | \
  81770. - $(AWK) ' { files[$$0] = 1; } \
  81771. - END { for (i in files) print i; }'`; \
  81772. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81773. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81774. mkid -fID $$unique
  81775. tags: TAGS
  81776. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  81777. $(TAGS_FILES) $(LISP)
  81778. - tags=; \
  81779. + set x; \
  81780. here=`pwd`; \
  81781. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81782. unique=`for i in $$list; do \
  81783. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81784. done | \
  81785. - $(AWK) ' { files[$$0] = 1; } \
  81786. - END { for (i in files) print i; }'`; \
  81787. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  81788. - test -z "$$unique" && unique=$$empty_fix; \
  81789. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81790. - $$tags $$unique; \
  81791. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81792. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81793. + shift; \
  81794. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  81795. + test -n "$$unique" || unique=$$empty_fix; \
  81796. + if test $$# -gt 0; then \
  81797. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81798. + "$$@" $$unique; \
  81799. + else \
  81800. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  81801. + $$unique; \
  81802. + fi; \
  81803. fi
  81804. ctags: CTAGS
  81805. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  81806. $(TAGS_FILES) $(LISP)
  81807. - tags=; \
  81808. - here=`pwd`; \
  81809. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  81810. unique=`for i in $$list; do \
  81811. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  81812. done | \
  81813. - $(AWK) ' { files[$$0] = 1; } \
  81814. - END { for (i in files) print i; }'`; \
  81815. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  81816. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  81817. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  81818. + test -z "$(CTAGS_ARGS)$$unique" \
  81819. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  81820. - $$tags $$unique
  81821. + $$unique
  81822. GTAGS:
  81823. here=`$(am__cd) $(top_builddir) && pwd` \
  81824. - && cd $(top_srcdir) \
  81825. - && gtags -i $(GTAGS_ARGS) $$here
  81826. + && $(am__cd) $(top_srcdir) \
  81827. + && gtags -i $(GTAGS_ARGS) "$$here"
  81828. distclean-tags:
  81829. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  81830. distdir: $(DISTFILES)
  81831. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  81832. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  81833. - list='$(DISTFILES)'; for file in $$list; do \
  81834. - case $$file in \
  81835. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  81836. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  81837. - esac; \
  81838. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  81839. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  81840. + list='$(DISTFILES)'; \
  81841. + dist_files=`for file in $$list; do echo $$file; done | \
  81842. + sed -e "s|^$$srcdirstrip/||;t" \
  81843. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  81844. + case $$dist_files in \
  81845. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  81846. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  81847. + sort -u` ;; \
  81848. + esac; \
  81849. + for file in $$dist_files; do \
  81850. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  81851. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  81852. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  81853. - dir="/$$dir"; \
  81854. - $(mkdir_p) "$(distdir)$$dir"; \
  81855. - else \
  81856. - dir=''; \
  81857. - fi; \
  81858. if test -d $$d/$$file; then \
  81859. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  81860. + if test -d "$(distdir)/$$file"; then \
  81861. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  81862. + fi; \
  81863. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  81864. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  81865. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  81866. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  81867. fi; \
  81868. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  81869. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  81870. else \
  81871. - test -f $(distdir)/$$file \
  81872. - || cp -p $$d/$$file $(distdir)/$$file \
  81873. + test -f "$(distdir)/$$file" \
  81874. + || cp -p $$d/$$file "$(distdir)/$$file" \
  81875. || exit 1; \
  81876. fi; \
  81877. done
  81878. @@ -589,7 +611,8 @@
  81879. clean-generic:
  81880. distclean-generic:
  81881. - -rm -f $(CONFIG_CLEAN_FILES)
  81882. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  81883. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  81884. maintainer-clean-generic:
  81885. @echo "This command is intended for maintainers to use"
  81886. @@ -602,7 +625,7 @@
  81887. distclean: distclean-am
  81888. -rm -f Makefile
  81889. distclean-am: clean-am distclean-compile distclean-generic \
  81890. - distclean-libtool distclean-tags
  81891. + distclean-tags
  81892. dvi: dvi-am
  81893. @@ -610,18 +633,38 @@
  81894. html: html-am
  81895. +html-am:
  81896. +
  81897. info: info-am
  81898. info-am:
  81899. install-data-am:
  81900. +install-dvi: install-dvi-am
  81901. +
  81902. +install-dvi-am:
  81903. +
  81904. install-exec-am:
  81905. +install-html: install-html-am
  81906. +
  81907. +install-html-am:
  81908. +
  81909. install-info: install-info-am
  81910. +install-info-am:
  81911. +
  81912. install-man:
  81913. +install-pdf: install-pdf-am
  81914. +
  81915. +install-pdf-am:
  81916. +
  81917. +install-ps: install-ps-am
  81918. +
  81919. +install-ps-am:
  81920. +
  81921. installcheck-am:
  81922. maintainer-clean: maintainer-clean-am
  81923. @@ -641,19 +684,24 @@
  81924. ps-am:
  81925. -uninstall-am: uninstall-info-am
  81926. +uninstall-am:
  81927. +
  81928. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  81929. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  81930. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  81931. distclean-compile distclean-generic distclean-libtool \
  81932. distclean-tags distdir dvi dvi-am html html-am info info-am \
  81933. - install install-am install-data install-data-am install-exec \
  81934. - install-exec-am install-info install-info-am install-man \
  81935. + install install-am install-data install-data-am install-dvi \
  81936. + install-dvi-am install-exec install-exec-am install-html \
  81937. + install-html-am install-info install-info-am install-man \
  81938. + install-pdf install-pdf-am install-ps install-ps-am \
  81939. install-strip installcheck installcheck-am installdirs \
  81940. maintainer-clean maintainer-clean-generic mostlyclean \
  81941. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  81942. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  81943. - uninstall-am uninstall-info-am
  81944. + uninstall-am
  81945. +
  81946. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  81947. # Otherwise a system limit (for SysV at least) may be exceeded.
  81948. diff -Nur gmp-4.3.2.orig/mpn/Makefile.in gmp-4.3.2/mpn/Makefile.in
  81949. --- gmp-4.3.2.orig/mpn/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  81950. +++ gmp-4.3.2/mpn/Makefile.in 2011-02-16 19:23:20.123552207 +0100
  81951. @@ -1,8 +1,9 @@
  81952. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  81953. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  81954. # @configure_input@
  81955. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  81956. -# 2003, 2004 Free Software Foundation, Inc.
  81957. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  81958. +# Inc.
  81959. # This Makefile.in is free software; the Free Software Foundation
  81960. # gives unlimited permission to copy and/or distribute it,
  81961. # with or without modifications, as long as this notice is preserved.
  81962. @@ -50,17 +51,12 @@
  81963. # You should have received a copy of the GNU Lesser General Public License
  81964. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  81965. -SOURCES = $(nodist_libmpn_la_SOURCES) $(nodist_EXTRA_libmpn_la_SOURCES)
  81966. -
  81967. -srcdir = @srcdir@
  81968. -top_srcdir = @top_srcdir@
  81969. VPATH = @srcdir@
  81970. pkgdatadir = $(datadir)/@PACKAGE@
  81971. -pkglibdir = $(libdir)/@PACKAGE@
  81972. pkgincludedir = $(includedir)/@PACKAGE@
  81973. -top_builddir = ..
  81974. +pkglibdir = $(libdir)/@PACKAGE@
  81975. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  81976. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  81977. -INSTALL = @INSTALL@
  81978. install_sh_DATA = $(install_sh) -c -m 644
  81979. install_sh_PROGRAM = $(install_sh) -c
  81980. install_sh_SCRIPT = $(install_sh) -c
  81981. @@ -72,6 +68,7 @@
  81982. NORMAL_UNINSTALL = :
  81983. PRE_UNINSTALL = :
  81984. POST_UNINSTALL = :
  81985. +build_triplet = @build@
  81986. host_triplet = @host@
  81987. ANSI2KNR = $(top_builddir)/ansi2knr
  81988. DIST_COMMON = README $(srcdir)/Makeasm.am $(srcdir)/Makefile.am \
  81989. @@ -82,24 +79,26 @@
  81990. $(top_srcdir)/configure.in
  81991. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  81992. $(ACLOCAL_M4)
  81993. -mkinstalldirs = $(mkdir_p)
  81994. +mkinstalldirs = $(install_sh) -d
  81995. CONFIG_HEADER = $(top_builddir)/config.h
  81996. CONFIG_CLEAN_FILES =
  81997. +CONFIG_CLEAN_VPATH_FILES =
  81998. LTLIBRARIES = $(noinst_LTLIBRARIES)
  81999. am__DEPENDENCIES_1 =
  82000. nodist_libmpn_la_OBJECTS = fib_table$U.lo mp_bases$U.lo
  82001. libmpn_la_OBJECTS = $(nodist_libmpn_la_OBJECTS)
  82002. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  82003. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  82004. depcomp =
  82005. am__depfiles_maybe =
  82006. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  82007. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82008. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  82009. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  82010. - $(AM_CFLAGS) $(CFLAGS)
  82011. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82012. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  82013. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82014. CCLD = $(CC)
  82015. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  82016. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  82017. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82018. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  82019. + $(LDFLAGS) -o $@
  82020. SOURCES = $(nodist_libmpn_la_SOURCES) \
  82021. $(nodist_EXTRA_libmpn_la_SOURCES)
  82022. DIST_SOURCES =
  82023. @@ -132,15 +131,17 @@
  82024. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  82025. DEFS = @DEFS@
  82026. DLLTOOL = @DLLTOOL@
  82027. -ECHO = @ECHO@
  82028. +DSYMUTIL = @DSYMUTIL@
  82029. +DUMPBIN = @DUMPBIN@
  82030. ECHO_C = @ECHO_C@
  82031. ECHO_N = @ECHO_N@
  82032. ECHO_T = @ECHO_T@
  82033. EGREP = @EGREP@
  82034. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  82035. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  82036. EXEEXT = @EXEEXT@
  82037. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  82038. +F77 = @F77@
  82039. +FFLAGS = @FFLAGS@
  82040. +FGREP = @FGREP@
  82041. GMP_LDFLAGS = @GMP_LDFLAGS@
  82042. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  82043. GREP = @GREP@
  82044. @@ -155,10 +156,12 @@
  82045. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  82046. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  82047. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  82048. +INSTALL = @INSTALL@
  82049. INSTALL_DATA = @INSTALL_DATA@
  82050. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  82051. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  82052. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  82053. +LD = @LD@
  82054. LDFLAGS = @LDFLAGS@
  82055. LEX = @LEX@
  82056. LEXLIB = @LEXLIB@
  82057. @@ -173,20 +176,25 @@
  82058. LIBREADLINE = @LIBREADLINE@
  82059. LIBS = @LIBS@
  82060. LIBTOOL = @LIBTOOL@
  82061. +LIPO = @LIPO@
  82062. LN_S = @LN_S@
  82063. LTLIBOBJS = @LTLIBOBJS@
  82064. M4 = @M4@
  82065. MAINT = @MAINT@
  82066. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  82067. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  82068. MAKEINFO = @MAKEINFO@
  82069. +MKDIR_P = @MKDIR_P@
  82070. +NM = @NM@
  82071. +NMEDIT = @NMEDIT@
  82072. OBJDUMP = @OBJDUMP@
  82073. OBJEXT = @OBJEXT@
  82074. +OTOOL = @OTOOL@
  82075. +OTOOL64 = @OTOOL64@
  82076. PACKAGE = @PACKAGE@
  82077. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  82078. PACKAGE_NAME = @PACKAGE_NAME@
  82079. PACKAGE_STRING = @PACKAGE_STRING@
  82080. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  82081. +PACKAGE_URL = @PACKAGE_URL@
  82082. PACKAGE_VERSION = @PACKAGE_VERSION@
  82083. PATH_SEPARATOR = @PATH_SEPARATOR@
  82084. RANLIB = @RANLIB@
  82085. @@ -200,22 +208,27 @@
  82086. U = @U@
  82087. U_FOR_BUILD = @U_FOR_BUILD@
  82088. VERSION = @VERSION@
  82089. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  82090. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  82091. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  82092. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  82093. WITH_READLINE_01 = @WITH_READLINE_01@
  82094. YACC = @YACC@
  82095. YFLAGS = @YFLAGS@
  82096. +abs_builddir = @abs_builddir@
  82097. +abs_srcdir = @abs_srcdir@
  82098. +abs_top_builddir = @abs_top_builddir@
  82099. +abs_top_srcdir = @abs_top_srcdir@
  82100. ac_ct_CC = @ac_ct_CC@
  82101. ac_ct_CXX = @ac_ct_CXX@
  82102. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  82103. +ac_ct_F77 = @ac_ct_F77@
  82104. am__leading_dot = @am__leading_dot@
  82105. +am__tar = @am__tar@
  82106. +am__untar = @am__untar@
  82107. bindir = @bindir@
  82108. build = @build@
  82109. build_alias = @build_alias@
  82110. build_cpu = @build_cpu@
  82111. build_os = @build_os@
  82112. build_vendor = @build_vendor@
  82113. +builddir = @builddir@
  82114. datadir = @datadir@
  82115. datarootdir = @datarootdir@
  82116. docdir = @docdir@
  82117. @@ -235,6 +248,7 @@
  82118. libexecdir = @libexecdir@
  82119. localedir = @localedir@
  82120. localstatedir = @localstatedir@
  82121. +lt_ECHO = @lt_ECHO@
  82122. mandir = @mandir@
  82123. mkdir_p = @mkdir_p@
  82124. mpn_objects = @mpn_objects@
  82125. @@ -247,8 +261,12 @@
  82126. psdir = @psdir@
  82127. sbindir = @sbindir@
  82128. sharedstatedir = @sharedstatedir@
  82129. +srcdir = @srcdir@
  82130. sysconfdir = @sysconfdir@
  82131. target_alias = @target_alias@
  82132. +top_build_prefix = @top_build_prefix@
  82133. +top_builddir = @top_builddir@
  82134. +top_srcdir = @top_srcdir@
  82135. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) \
  82136. -DOPERATION_`echo $* | sed 's/_$$//'`
  82137. @@ -327,14 +345,14 @@
  82138. @for dep in $?; do \
  82139. case '$(am__configure_deps)' in \
  82140. *$$dep*) \
  82141. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  82142. - && exit 0; \
  82143. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  82144. + && { if test -f $@; then exit 0; else break; fi; }; \
  82145. exit 1;; \
  82146. esac; \
  82147. done; \
  82148. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpn/Makefile'; \
  82149. - cd $(top_srcdir) && \
  82150. - $(AUTOMAKE) --gnu --ignore-deps mpn/Makefile
  82151. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpn/Makefile'; \
  82152. + $(am__cd) $(top_srcdir) && \
  82153. + $(AUTOMAKE) --gnu --ignore-deps mpn/Makefile
  82154. .PRECIOUS: Makefile
  82155. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  82156. @case '$?' in \
  82157. @@ -352,17 +370,18 @@
  82158. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  82159. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  82160. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  82161. +$(am__aclocal_m4_deps):
  82162. clean-noinstLTLIBRARIES:
  82163. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  82164. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  82165. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  82166. - test "$$dir" = "$$p" && dir=.; \
  82167. + test "$$dir" != "$$p" || dir=.; \
  82168. echo "rm -f \"$${dir}/so_locations\""; \
  82169. rm -f "$${dir}/so_locations"; \
  82170. done
  82171. libmpn.la: $(libmpn_la_OBJECTS) $(libmpn_la_DEPENDENCIES)
  82172. - $(LINK) $(libmpn_la_LDFLAGS) $(libmpn_la_OBJECTS) $(libmpn_la_LIBADD) $(LIBS)
  82173. + $(LINK) $(libmpn_la_OBJECTS) $(libmpn_la_LIBADD) $(LIBS)
  82174. mostlyclean-compile:
  82175. -rm -f *.$(OBJEXT)
  82176. @@ -370,7 +389,7 @@
  82177. distclean-compile:
  82178. -rm -f *.tab.c
  82179. $(top_builddir)/ansi2knr:
  82180. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  82181. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  82182. mostlyclean-kr:
  82183. -test "$U" = "" || rm -f *_.c
  82184. @@ -617,82 +636,85 @@
  82185. clean-libtool:
  82186. -rm -rf .libs _libs
  82187. -distclean-libtool:
  82188. - -rm -f libtool
  82189. -uninstall-info-am:
  82190. -
  82191. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  82192. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82193. unique=`for i in $$list; do \
  82194. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82195. done | \
  82196. - $(AWK) ' { files[$$0] = 1; } \
  82197. - END { for (i in files) print i; }'`; \
  82198. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82199. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82200. mkid -fID $$unique
  82201. tags: TAGS
  82202. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  82203. $(TAGS_FILES) $(LISP)
  82204. - tags=; \
  82205. + set x; \
  82206. here=`pwd`; \
  82207. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82208. unique=`for i in $$list; do \
  82209. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82210. done | \
  82211. - $(AWK) ' { files[$$0] = 1; } \
  82212. - END { for (i in files) print i; }'`; \
  82213. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  82214. - test -z "$$unique" && unique=$$empty_fix; \
  82215. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82216. - $$tags $$unique; \
  82217. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82218. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82219. + shift; \
  82220. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  82221. + test -n "$$unique" || unique=$$empty_fix; \
  82222. + if test $$# -gt 0; then \
  82223. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82224. + "$$@" $$unique; \
  82225. + else \
  82226. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82227. + $$unique; \
  82228. + fi; \
  82229. fi
  82230. ctags: CTAGS
  82231. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  82232. $(TAGS_FILES) $(LISP)
  82233. - tags=; \
  82234. - here=`pwd`; \
  82235. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82236. unique=`for i in $$list; do \
  82237. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82238. done | \
  82239. - $(AWK) ' { files[$$0] = 1; } \
  82240. - END { for (i in files) print i; }'`; \
  82241. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  82242. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82243. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82244. + test -z "$(CTAGS_ARGS)$$unique" \
  82245. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  82246. - $$tags $$unique
  82247. + $$unique
  82248. GTAGS:
  82249. here=`$(am__cd) $(top_builddir) && pwd` \
  82250. - && cd $(top_srcdir) \
  82251. - && gtags -i $(GTAGS_ARGS) $$here
  82252. + && $(am__cd) $(top_srcdir) \
  82253. + && gtags -i $(GTAGS_ARGS) "$$here"
  82254. distclean-tags:
  82255. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  82256. distdir: $(DISTFILES)
  82257. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  82258. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  82259. - list='$(DISTFILES)'; for file in $$list; do \
  82260. - case $$file in \
  82261. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  82262. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  82263. - esac; \
  82264. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  82265. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  82266. + list='$(DISTFILES)'; \
  82267. + dist_files=`for file in $$list; do echo $$file; done | \
  82268. + sed -e "s|^$$srcdirstrip/||;t" \
  82269. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  82270. + case $$dist_files in \
  82271. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  82272. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  82273. + sort -u` ;; \
  82274. + esac; \
  82275. + for file in $$dist_files; do \
  82276. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  82277. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  82278. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  82279. - dir="/$$dir"; \
  82280. - $(mkdir_p) "$(distdir)$$dir"; \
  82281. - else \
  82282. - dir=''; \
  82283. - fi; \
  82284. if test -d $$d/$$file; then \
  82285. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  82286. + if test -d "$(distdir)/$$file"; then \
  82287. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  82288. + fi; \
  82289. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  82290. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  82291. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  82292. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  82293. fi; \
  82294. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  82295. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  82296. else \
  82297. - test -f $(distdir)/$$file \
  82298. - || cp -p $$d/$$file $(distdir)/$$file \
  82299. + test -f "$(distdir)/$$file" \
  82300. + || cp -p $$d/$$file "$(distdir)/$$file" \
  82301. || exit 1; \
  82302. fi; \
  82303. done
  82304. @@ -719,7 +741,8 @@
  82305. clean-generic:
  82306. distclean-generic:
  82307. - -rm -f $(CONFIG_CLEAN_FILES)
  82308. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  82309. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  82310. maintainer-clean-generic:
  82311. @echo "This command is intended for maintainers to use"
  82312. @@ -732,7 +755,7 @@
  82313. distclean: distclean-am
  82314. -rm -f Makefile
  82315. distclean-am: clean-am distclean-compile distclean-generic \
  82316. - distclean-libtool distclean-tags
  82317. + distclean-tags
  82318. dvi: dvi-am
  82319. @@ -740,18 +763,38 @@
  82320. html: html-am
  82321. +html-am:
  82322. +
  82323. info: info-am
  82324. info-am:
  82325. install-data-am:
  82326. +install-dvi: install-dvi-am
  82327. +
  82328. +install-dvi-am:
  82329. +
  82330. install-exec-am:
  82331. +install-html: install-html-am
  82332. +
  82333. +install-html-am:
  82334. +
  82335. install-info: install-info-am
  82336. +install-info-am:
  82337. +
  82338. install-man:
  82339. +install-pdf: install-pdf-am
  82340. +
  82341. +install-pdf-am:
  82342. +
  82343. +install-ps: install-ps-am
  82344. +
  82345. +install-ps-am:
  82346. +
  82347. installcheck-am:
  82348. maintainer-clean: maintainer-clean-am
  82349. @@ -771,19 +814,23 @@
  82350. ps-am:
  82351. -uninstall-am: uninstall-info-am
  82352. +uninstall-am:
  82353. +
  82354. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  82355. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  82356. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  82357. distclean-compile distclean-generic distclean-libtool \
  82358. distclean-tags distdir dvi dvi-am html html-am info info-am \
  82359. - install install-am install-data install-data-am install-exec \
  82360. - install-exec-am install-info install-info-am install-man \
  82361. + install install-am install-data install-data-am install-dvi \
  82362. + install-dvi-am install-exec install-exec-am install-html \
  82363. + install-html-am install-info install-info-am install-man \
  82364. + install-pdf install-pdf-am install-ps install-ps-am \
  82365. install-strip installcheck installcheck-am installdirs \
  82366. maintainer-clean maintainer-clean-generic mostlyclean \
  82367. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  82368. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  82369. - uninstall-am uninstall-info-am
  82370. + uninstall-am
  82371. # These are BUILT_SOURCES at the top-level, so normally they're built before
  82372. @@ -854,6 +901,7 @@
  82373. $(RM_TMP) tmp-$*.s
  82374. .asm.lo:
  82375. $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
  82376. +
  82377. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  82378. # Otherwise a system limit (for SysV at least) may be exceeded.
  82379. .NOEXPORT:
  82380. diff -Nur gmp-4.3.2.orig/mpq/Makefile.in gmp-4.3.2/mpq/Makefile.in
  82381. --- gmp-4.3.2.orig/mpq/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  82382. +++ gmp-4.3.2/mpq/Makefile.in 2011-02-16 19:23:20.163557596 +0100
  82383. @@ -1,8 +1,9 @@
  82384. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  82385. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  82386. # @configure_input@
  82387. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  82388. -# 2003, 2004 Free Software Foundation, Inc.
  82389. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  82390. +# Inc.
  82391. # This Makefile.in is free software; the Free Software Foundation
  82392. # gives unlimited permission to copy and/or distribute it,
  82393. # with or without modifications, as long as this notice is preserved.
  82394. @@ -31,17 +32,12 @@
  82395. # You should have received a copy of the GNU Lesser General Public License
  82396. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  82397. -SOURCES = $(libmpq_la_SOURCES)
  82398. -
  82399. -srcdir = @srcdir@
  82400. -top_srcdir = @top_srcdir@
  82401. VPATH = @srcdir@
  82402. pkgdatadir = $(datadir)/@PACKAGE@
  82403. -pkglibdir = $(libdir)/@PACKAGE@
  82404. pkgincludedir = $(includedir)/@PACKAGE@
  82405. -top_builddir = ..
  82406. +pkglibdir = $(libdir)/@PACKAGE@
  82407. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  82408. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  82409. -INSTALL = @INSTALL@
  82410. install_sh_DATA = $(install_sh) -c -m 644
  82411. install_sh_PROGRAM = $(install_sh) -c
  82412. install_sh_SCRIPT = $(install_sh) -c
  82413. @@ -53,6 +49,7 @@
  82414. NORMAL_UNINSTALL = :
  82415. PRE_UNINSTALL = :
  82416. POST_UNINSTALL = :
  82417. +build_triplet = @build@
  82418. host_triplet = @host@
  82419. ANSI2KNR = $(top_builddir)/ansi2knr
  82420. subdir = mpq
  82421. @@ -62,9 +59,10 @@
  82422. $(top_srcdir)/configure.in
  82423. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  82424. $(ACLOCAL_M4)
  82425. -mkinstalldirs = $(mkdir_p)
  82426. +mkinstalldirs = $(install_sh) -d
  82427. CONFIG_HEADER = $(top_builddir)/config.h
  82428. CONFIG_CLEAN_FILES =
  82429. +CONFIG_CLEAN_VPATH_FILES =
  82430. LTLIBRARIES = $(noinst_LTLIBRARIES)
  82431. libmpq_la_LIBADD =
  82432. am_libmpq_la_OBJECTS = abs$U.lo aors$U.lo canonicalize$U.lo clear$U.lo \
  82433. @@ -75,17 +73,18 @@
  82434. set_str$U.lo set_ui$U.lo set_z$U.lo set_d$U.lo set_f$U.lo \
  82435. swap$U.lo
  82436. libmpq_la_OBJECTS = $(am_libmpq_la_OBJECTS)
  82437. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  82438. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  82439. depcomp =
  82440. am__depfiles_maybe =
  82441. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  82442. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82443. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  82444. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  82445. - $(AM_CFLAGS) $(CFLAGS)
  82446. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82447. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  82448. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82449. CCLD = $(CC)
  82450. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  82451. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  82452. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82453. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  82454. + $(LDFLAGS) -o $@
  82455. SOURCES = $(libmpq_la_SOURCES)
  82456. DIST_SOURCES = $(libmpq_la_SOURCES)
  82457. ETAGS = etags
  82458. @@ -117,15 +116,17 @@
  82459. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  82460. DEFS = @DEFS@
  82461. DLLTOOL = @DLLTOOL@
  82462. -ECHO = @ECHO@
  82463. +DSYMUTIL = @DSYMUTIL@
  82464. +DUMPBIN = @DUMPBIN@
  82465. ECHO_C = @ECHO_C@
  82466. ECHO_N = @ECHO_N@
  82467. ECHO_T = @ECHO_T@
  82468. EGREP = @EGREP@
  82469. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  82470. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  82471. EXEEXT = @EXEEXT@
  82472. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  82473. +F77 = @F77@
  82474. +FFLAGS = @FFLAGS@
  82475. +FGREP = @FGREP@
  82476. GMP_LDFLAGS = @GMP_LDFLAGS@
  82477. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  82478. GREP = @GREP@
  82479. @@ -140,10 +141,12 @@
  82480. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  82481. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  82482. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  82483. +INSTALL = @INSTALL@
  82484. INSTALL_DATA = @INSTALL_DATA@
  82485. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  82486. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  82487. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  82488. +LD = @LD@
  82489. LDFLAGS = @LDFLAGS@
  82490. LEX = @LEX@
  82491. LEXLIB = @LEXLIB@
  82492. @@ -158,20 +161,25 @@
  82493. LIBREADLINE = @LIBREADLINE@
  82494. LIBS = @LIBS@
  82495. LIBTOOL = @LIBTOOL@
  82496. +LIPO = @LIPO@
  82497. LN_S = @LN_S@
  82498. LTLIBOBJS = @LTLIBOBJS@
  82499. M4 = @M4@
  82500. MAINT = @MAINT@
  82501. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  82502. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  82503. MAKEINFO = @MAKEINFO@
  82504. +MKDIR_P = @MKDIR_P@
  82505. +NM = @NM@
  82506. +NMEDIT = @NMEDIT@
  82507. OBJDUMP = @OBJDUMP@
  82508. OBJEXT = @OBJEXT@
  82509. +OTOOL = @OTOOL@
  82510. +OTOOL64 = @OTOOL64@
  82511. PACKAGE = @PACKAGE@
  82512. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  82513. PACKAGE_NAME = @PACKAGE_NAME@
  82514. PACKAGE_STRING = @PACKAGE_STRING@
  82515. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  82516. +PACKAGE_URL = @PACKAGE_URL@
  82517. PACKAGE_VERSION = @PACKAGE_VERSION@
  82518. PATH_SEPARATOR = @PATH_SEPARATOR@
  82519. RANLIB = @RANLIB@
  82520. @@ -185,22 +193,27 @@
  82521. U = @U@
  82522. U_FOR_BUILD = @U_FOR_BUILD@
  82523. VERSION = @VERSION@
  82524. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  82525. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  82526. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  82527. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  82528. WITH_READLINE_01 = @WITH_READLINE_01@
  82529. YACC = @YACC@
  82530. YFLAGS = @YFLAGS@
  82531. +abs_builddir = @abs_builddir@
  82532. +abs_srcdir = @abs_srcdir@
  82533. +abs_top_builddir = @abs_top_builddir@
  82534. +abs_top_srcdir = @abs_top_srcdir@
  82535. ac_ct_CC = @ac_ct_CC@
  82536. ac_ct_CXX = @ac_ct_CXX@
  82537. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  82538. +ac_ct_F77 = @ac_ct_F77@
  82539. am__leading_dot = @am__leading_dot@
  82540. +am__tar = @am__tar@
  82541. +am__untar = @am__untar@
  82542. bindir = @bindir@
  82543. build = @build@
  82544. build_alias = @build_alias@
  82545. build_cpu = @build_cpu@
  82546. build_os = @build_os@
  82547. build_vendor = @build_vendor@
  82548. +builddir = @builddir@
  82549. datadir = @datadir@
  82550. datarootdir = @datarootdir@
  82551. docdir = @docdir@
  82552. @@ -220,6 +233,7 @@
  82553. libexecdir = @libexecdir@
  82554. localedir = @localedir@
  82555. localstatedir = @localstatedir@
  82556. +lt_ECHO = @lt_ECHO@
  82557. mandir = @mandir@
  82558. mkdir_p = @mkdir_p@
  82559. mpn_objects = @mpn_objects@
  82560. @@ -232,8 +246,12 @@
  82561. psdir = @psdir@
  82562. sbindir = @sbindir@
  82563. sharedstatedir = @sharedstatedir@
  82564. +srcdir = @srcdir@
  82565. sysconfdir = @sysconfdir@
  82566. target_alias = @target_alias@
  82567. +top_build_prefix = @top_build_prefix@
  82568. +top_builddir = @top_builddir@
  82569. +top_srcdir = @top_srcdir@
  82570. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir)
  82571. noinst_LTLIBRARIES = libmpq.la
  82572. libmpq_la_SOURCES = \
  82573. @@ -252,14 +270,14 @@
  82574. @for dep in $?; do \
  82575. case '$(am__configure_deps)' in \
  82576. *$$dep*) \
  82577. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  82578. - && exit 0; \
  82579. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  82580. + && { if test -f $@; then exit 0; else break; fi; }; \
  82581. exit 1;; \
  82582. esac; \
  82583. done; \
  82584. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpq/Makefile'; \
  82585. - cd $(top_srcdir) && \
  82586. - $(AUTOMAKE) --gnu --ignore-deps mpq/Makefile
  82587. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpq/Makefile'; \
  82588. + $(am__cd) $(top_srcdir) && \
  82589. + $(AUTOMAKE) --gnu --ignore-deps mpq/Makefile
  82590. .PRECIOUS: Makefile
  82591. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  82592. @case '$?' in \
  82593. @@ -277,17 +295,18 @@
  82594. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  82595. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  82596. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  82597. +$(am__aclocal_m4_deps):
  82598. clean-noinstLTLIBRARIES:
  82599. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  82600. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  82601. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  82602. - test "$$dir" = "$$p" && dir=.; \
  82603. + test "$$dir" != "$$p" || dir=.; \
  82604. echo "rm -f \"$${dir}/so_locations\""; \
  82605. rm -f "$${dir}/so_locations"; \
  82606. done
  82607. libmpq.la: $(libmpq_la_OBJECTS) $(libmpq_la_DEPENDENCIES)
  82608. - $(LINK) $(libmpq_la_LDFLAGS) $(libmpq_la_OBJECTS) $(libmpq_la_LIBADD) $(LIBS)
  82609. + $(LINK) $(libmpq_la_OBJECTS) $(libmpq_la_LIBADD) $(LIBS)
  82610. mostlyclean-compile:
  82611. -rm -f *.$(OBJEXT)
  82612. @@ -295,7 +314,7 @@
  82613. distclean-compile:
  82614. -rm -f *.tab.c
  82615. $(top_builddir)/ansi2knr:
  82616. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  82617. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  82618. mostlyclean-kr:
  82619. -test "$U" = "" || rm -f *_.c
  82620. @@ -389,82 +408,85 @@
  82621. clean-libtool:
  82622. -rm -rf .libs _libs
  82623. -distclean-libtool:
  82624. - -rm -f libtool
  82625. -uninstall-info-am:
  82626. -
  82627. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  82628. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82629. unique=`for i in $$list; do \
  82630. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82631. done | \
  82632. - $(AWK) ' { files[$$0] = 1; } \
  82633. - END { for (i in files) print i; }'`; \
  82634. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82635. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82636. mkid -fID $$unique
  82637. tags: TAGS
  82638. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  82639. $(TAGS_FILES) $(LISP)
  82640. - tags=; \
  82641. + set x; \
  82642. here=`pwd`; \
  82643. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82644. unique=`for i in $$list; do \
  82645. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82646. done | \
  82647. - $(AWK) ' { files[$$0] = 1; } \
  82648. - END { for (i in files) print i; }'`; \
  82649. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  82650. - test -z "$$unique" && unique=$$empty_fix; \
  82651. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82652. - $$tags $$unique; \
  82653. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82654. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82655. + shift; \
  82656. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  82657. + test -n "$$unique" || unique=$$empty_fix; \
  82658. + if test $$# -gt 0; then \
  82659. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82660. + "$$@" $$unique; \
  82661. + else \
  82662. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  82663. + $$unique; \
  82664. + fi; \
  82665. fi
  82666. ctags: CTAGS
  82667. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  82668. $(TAGS_FILES) $(LISP)
  82669. - tags=; \
  82670. - here=`pwd`; \
  82671. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  82672. unique=`for i in $$list; do \
  82673. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  82674. done | \
  82675. - $(AWK) ' { files[$$0] = 1; } \
  82676. - END { for (i in files) print i; }'`; \
  82677. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  82678. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  82679. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  82680. + test -z "$(CTAGS_ARGS)$$unique" \
  82681. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  82682. - $$tags $$unique
  82683. + $$unique
  82684. GTAGS:
  82685. here=`$(am__cd) $(top_builddir) && pwd` \
  82686. - && cd $(top_srcdir) \
  82687. - && gtags -i $(GTAGS_ARGS) $$here
  82688. + && $(am__cd) $(top_srcdir) \
  82689. + && gtags -i $(GTAGS_ARGS) "$$here"
  82690. distclean-tags:
  82691. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  82692. distdir: $(DISTFILES)
  82693. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  82694. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  82695. - list='$(DISTFILES)'; for file in $$list; do \
  82696. - case $$file in \
  82697. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  82698. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  82699. - esac; \
  82700. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  82701. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  82702. + list='$(DISTFILES)'; \
  82703. + dist_files=`for file in $$list; do echo $$file; done | \
  82704. + sed -e "s|^$$srcdirstrip/||;t" \
  82705. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  82706. + case $$dist_files in \
  82707. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  82708. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  82709. + sort -u` ;; \
  82710. + esac; \
  82711. + for file in $$dist_files; do \
  82712. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  82713. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  82714. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  82715. - dir="/$$dir"; \
  82716. - $(mkdir_p) "$(distdir)$$dir"; \
  82717. - else \
  82718. - dir=''; \
  82719. - fi; \
  82720. if test -d $$d/$$file; then \
  82721. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  82722. + if test -d "$(distdir)/$$file"; then \
  82723. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  82724. + fi; \
  82725. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  82726. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  82727. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  82728. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  82729. fi; \
  82730. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  82731. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  82732. else \
  82733. - test -f $(distdir)/$$file \
  82734. - || cp -p $$d/$$file $(distdir)/$$file \
  82735. + test -f "$(distdir)/$$file" \
  82736. + || cp -p $$d/$$file "$(distdir)/$$file" \
  82737. || exit 1; \
  82738. fi; \
  82739. done
  82740. @@ -491,7 +513,8 @@
  82741. clean-generic:
  82742. distclean-generic:
  82743. - -rm -f $(CONFIG_CLEAN_FILES)
  82744. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  82745. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  82746. maintainer-clean-generic:
  82747. @echo "This command is intended for maintainers to use"
  82748. @@ -504,7 +527,7 @@
  82749. distclean: distclean-am
  82750. -rm -f Makefile
  82751. distclean-am: clean-am distclean-compile distclean-generic \
  82752. - distclean-libtool distclean-tags
  82753. + distclean-tags
  82754. dvi: dvi-am
  82755. @@ -512,18 +535,38 @@
  82756. html: html-am
  82757. +html-am:
  82758. +
  82759. info: info-am
  82760. info-am:
  82761. install-data-am:
  82762. +install-dvi: install-dvi-am
  82763. +
  82764. +install-dvi-am:
  82765. +
  82766. install-exec-am:
  82767. +install-html: install-html-am
  82768. +
  82769. +install-html-am:
  82770. +
  82771. install-info: install-info-am
  82772. +install-info-am:
  82773. +
  82774. install-man:
  82775. +install-pdf: install-pdf-am
  82776. +
  82777. +install-pdf-am:
  82778. +
  82779. +install-ps: install-ps-am
  82780. +
  82781. +install-ps-am:
  82782. +
  82783. installcheck-am:
  82784. maintainer-clean: maintainer-clean-am
  82785. @@ -543,19 +586,24 @@
  82786. ps-am:
  82787. -uninstall-am: uninstall-info-am
  82788. +uninstall-am:
  82789. +
  82790. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  82791. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  82792. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  82793. distclean-compile distclean-generic distclean-libtool \
  82794. distclean-tags distdir dvi dvi-am html html-am info info-am \
  82795. - install install-am install-data install-data-am install-exec \
  82796. - install-exec-am install-info install-info-am install-man \
  82797. + install install-am install-data install-data-am install-dvi \
  82798. + install-dvi-am install-exec install-exec-am install-html \
  82799. + install-html-am install-info install-info-am install-man \
  82800. + install-pdf install-pdf-am install-ps install-ps-am \
  82801. install-strip installcheck installcheck-am installdirs \
  82802. maintainer-clean maintainer-clean-generic mostlyclean \
  82803. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  82804. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  82805. - uninstall-am uninstall-info-am
  82806. + uninstall-am
  82807. +
  82808. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  82809. # Otherwise a system limit (for SysV at least) may be exceeded.
  82810. diff -Nur gmp-4.3.2.orig/mpz/Makefile.in gmp-4.3.2/mpz/Makefile.in
  82811. --- gmp-4.3.2.orig/mpz/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  82812. +++ gmp-4.3.2/mpz/Makefile.in 2011-02-16 19:23:20.213552483 +0100
  82813. @@ -1,8 +1,9 @@
  82814. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  82815. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  82816. # @configure_input@
  82817. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  82818. -# 2003, 2004 Free Software Foundation, Inc.
  82819. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  82820. +# Inc.
  82821. # This Makefile.in is free software; the Free Software Foundation
  82822. # gives unlimited permission to copy and/or distribute it,
  82823. # with or without modifications, as long as this notice is preserved.
  82824. @@ -32,17 +33,12 @@
  82825. # You should have received a copy of the GNU Lesser General Public License
  82826. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  82827. -SOURCES = $(libmpz_la_SOURCES)
  82828. -
  82829. -srcdir = @srcdir@
  82830. -top_srcdir = @top_srcdir@
  82831. VPATH = @srcdir@
  82832. pkgdatadir = $(datadir)/@PACKAGE@
  82833. -pkglibdir = $(libdir)/@PACKAGE@
  82834. pkgincludedir = $(includedir)/@PACKAGE@
  82835. -top_builddir = ..
  82836. +pkglibdir = $(libdir)/@PACKAGE@
  82837. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  82838. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  82839. -INSTALL = @INSTALL@
  82840. install_sh_DATA = $(install_sh) -c -m 644
  82841. install_sh_PROGRAM = $(install_sh) -c
  82842. install_sh_SCRIPT = $(install_sh) -c
  82843. @@ -54,6 +50,7 @@
  82844. NORMAL_UNINSTALL = :
  82845. PRE_UNINSTALL = :
  82846. POST_UNINSTALL = :
  82847. +build_triplet = @build@
  82848. host_triplet = @host@
  82849. ANSI2KNR = $(top_builddir)/ansi2knr
  82850. subdir = mpz
  82851. @@ -63,9 +60,10 @@
  82852. $(top_srcdir)/configure.in
  82853. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  82854. $(ACLOCAL_M4)
  82855. -mkinstalldirs = $(mkdir_p)
  82856. +mkinstalldirs = $(install_sh) -d
  82857. CONFIG_HEADER = $(top_builddir)/config.h
  82858. CONFIG_CLEAN_FILES =
  82859. +CONFIG_CLEAN_VPATH_FILES =
  82860. LTLIBRARIES = $(noinst_LTLIBRARIES)
  82861. libmpz_la_LIBADD =
  82862. am_libmpz_la_OBJECTS = add$U.lo add_ui$U.lo abs$U.lo aorsmul$U.lo \
  82863. @@ -103,17 +101,18 @@
  82864. ui_pow_ui$U.lo ui_sub$U.lo urandomb$U.lo urandomm$U.lo \
  82865. xor$U.lo
  82866. libmpz_la_OBJECTS = $(am_libmpz_la_OBJECTS)
  82867. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  82868. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  82869. depcomp =
  82870. am__depfiles_maybe =
  82871. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  82872. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82873. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  82874. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  82875. - $(AM_CFLAGS) $(CFLAGS)
  82876. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82877. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  82878. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  82879. CCLD = $(CC)
  82880. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  82881. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  82882. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  82883. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  82884. + $(LDFLAGS) -o $@
  82885. SOURCES = $(libmpz_la_SOURCES)
  82886. DIST_SOURCES = $(libmpz_la_SOURCES)
  82887. ETAGS = etags
  82888. @@ -145,15 +144,17 @@
  82889. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  82890. DEFS = @DEFS@
  82891. DLLTOOL = @DLLTOOL@
  82892. -ECHO = @ECHO@
  82893. +DSYMUTIL = @DSYMUTIL@
  82894. +DUMPBIN = @DUMPBIN@
  82895. ECHO_C = @ECHO_C@
  82896. ECHO_N = @ECHO_N@
  82897. ECHO_T = @ECHO_T@
  82898. EGREP = @EGREP@
  82899. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  82900. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  82901. EXEEXT = @EXEEXT@
  82902. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  82903. +F77 = @F77@
  82904. +FFLAGS = @FFLAGS@
  82905. +FGREP = @FGREP@
  82906. GMP_LDFLAGS = @GMP_LDFLAGS@
  82907. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  82908. GREP = @GREP@
  82909. @@ -168,10 +169,12 @@
  82910. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  82911. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  82912. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  82913. +INSTALL = @INSTALL@
  82914. INSTALL_DATA = @INSTALL_DATA@
  82915. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  82916. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  82917. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  82918. +LD = @LD@
  82919. LDFLAGS = @LDFLAGS@
  82920. LEX = @LEX@
  82921. LEXLIB = @LEXLIB@
  82922. @@ -186,20 +189,25 @@
  82923. LIBREADLINE = @LIBREADLINE@
  82924. LIBS = @LIBS@
  82925. LIBTOOL = @LIBTOOL@
  82926. +LIPO = @LIPO@
  82927. LN_S = @LN_S@
  82928. LTLIBOBJS = @LTLIBOBJS@
  82929. M4 = @M4@
  82930. MAINT = @MAINT@
  82931. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  82932. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  82933. MAKEINFO = @MAKEINFO@
  82934. +MKDIR_P = @MKDIR_P@
  82935. +NM = @NM@
  82936. +NMEDIT = @NMEDIT@
  82937. OBJDUMP = @OBJDUMP@
  82938. OBJEXT = @OBJEXT@
  82939. +OTOOL = @OTOOL@
  82940. +OTOOL64 = @OTOOL64@
  82941. PACKAGE = @PACKAGE@
  82942. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  82943. PACKAGE_NAME = @PACKAGE_NAME@
  82944. PACKAGE_STRING = @PACKAGE_STRING@
  82945. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  82946. +PACKAGE_URL = @PACKAGE_URL@
  82947. PACKAGE_VERSION = @PACKAGE_VERSION@
  82948. PATH_SEPARATOR = @PATH_SEPARATOR@
  82949. RANLIB = @RANLIB@
  82950. @@ -213,22 +221,27 @@
  82951. U = @U@
  82952. U_FOR_BUILD = @U_FOR_BUILD@
  82953. VERSION = @VERSION@
  82954. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  82955. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  82956. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  82957. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  82958. WITH_READLINE_01 = @WITH_READLINE_01@
  82959. YACC = @YACC@
  82960. YFLAGS = @YFLAGS@
  82961. +abs_builddir = @abs_builddir@
  82962. +abs_srcdir = @abs_srcdir@
  82963. +abs_top_builddir = @abs_top_builddir@
  82964. +abs_top_srcdir = @abs_top_srcdir@
  82965. ac_ct_CC = @ac_ct_CC@
  82966. ac_ct_CXX = @ac_ct_CXX@
  82967. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  82968. +ac_ct_F77 = @ac_ct_F77@
  82969. am__leading_dot = @am__leading_dot@
  82970. +am__tar = @am__tar@
  82971. +am__untar = @am__untar@
  82972. bindir = @bindir@
  82973. build = @build@
  82974. build_alias = @build_alias@
  82975. build_cpu = @build_cpu@
  82976. build_os = @build_os@
  82977. build_vendor = @build_vendor@
  82978. +builddir = @builddir@
  82979. datadir = @datadir@
  82980. datarootdir = @datarootdir@
  82981. docdir = @docdir@
  82982. @@ -248,6 +261,7 @@
  82983. libexecdir = @libexecdir@
  82984. localedir = @localedir@
  82985. localstatedir = @localstatedir@
  82986. +lt_ECHO = @lt_ECHO@
  82987. mandir = @mandir@
  82988. mkdir_p = @mkdir_p@
  82989. mpn_objects = @mpn_objects@
  82990. @@ -260,8 +274,12 @@
  82991. psdir = @psdir@
  82992. sbindir = @sbindir@
  82993. sharedstatedir = @sharedstatedir@
  82994. +srcdir = @srcdir@
  82995. sysconfdir = @sysconfdir@
  82996. target_alias = @target_alias@
  82997. +top_build_prefix = @top_build_prefix@
  82998. +top_builddir = @top_builddir@
  82999. +top_srcdir = @top_srcdir@
  83000. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir)
  83001. noinst_LTLIBRARIES = libmpz.la
  83002. libmpz_la_SOURCES = aors.h aors_ui.h fits_s.h mul_i.h \
  83003. @@ -303,14 +321,14 @@
  83004. @for dep in $?; do \
  83005. case '$(am__configure_deps)' in \
  83006. *$$dep*) \
  83007. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  83008. - && exit 0; \
  83009. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  83010. + && { if test -f $@; then exit 0; else break; fi; }; \
  83011. exit 1;; \
  83012. esac; \
  83013. done; \
  83014. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpz/Makefile'; \
  83015. - cd $(top_srcdir) && \
  83016. - $(AUTOMAKE) --gnu --ignore-deps mpz/Makefile
  83017. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps mpz/Makefile'; \
  83018. + $(am__cd) $(top_srcdir) && \
  83019. + $(AUTOMAKE) --gnu --ignore-deps mpz/Makefile
  83020. .PRECIOUS: Makefile
  83021. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  83022. @case '$?' in \
  83023. @@ -328,17 +346,18 @@
  83024. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83025. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  83026. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83027. +$(am__aclocal_m4_deps):
  83028. clean-noinstLTLIBRARIES:
  83029. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  83030. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  83031. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  83032. - test "$$dir" = "$$p" && dir=.; \
  83033. + test "$$dir" != "$$p" || dir=.; \
  83034. echo "rm -f \"$${dir}/so_locations\""; \
  83035. rm -f "$${dir}/so_locations"; \
  83036. done
  83037. libmpz.la: $(libmpz_la_OBJECTS) $(libmpz_la_DEPENDENCIES)
  83038. - $(LINK) $(libmpz_la_LDFLAGS) $(libmpz_la_OBJECTS) $(libmpz_la_LIBADD) $(LIBS)
  83039. + $(LINK) $(libmpz_la_OBJECTS) $(libmpz_la_LIBADD) $(LIBS)
  83040. mostlyclean-compile:
  83041. -rm -f *.$(OBJEXT)
  83042. @@ -346,7 +365,7 @@
  83043. distclean-compile:
  83044. -rm -f *.tab.c
  83045. $(top_builddir)/ansi2knr:
  83046. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  83047. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  83048. mostlyclean-kr:
  83049. -test "$U" = "" || rm -f *_.c
  83050. @@ -727,82 +746,85 @@
  83051. clean-libtool:
  83052. -rm -rf .libs _libs
  83053. -distclean-libtool:
  83054. - -rm -f libtool
  83055. -uninstall-info-am:
  83056. -
  83057. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  83058. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83059. unique=`for i in $$list; do \
  83060. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83061. done | \
  83062. - $(AWK) ' { files[$$0] = 1; } \
  83063. - END { for (i in files) print i; }'`; \
  83064. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83065. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83066. mkid -fID $$unique
  83067. tags: TAGS
  83068. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83069. $(TAGS_FILES) $(LISP)
  83070. - tags=; \
  83071. + set x; \
  83072. here=`pwd`; \
  83073. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83074. unique=`for i in $$list; do \
  83075. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83076. done | \
  83077. - $(AWK) ' { files[$$0] = 1; } \
  83078. - END { for (i in files) print i; }'`; \
  83079. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  83080. - test -z "$$unique" && unique=$$empty_fix; \
  83081. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83082. - $$tags $$unique; \
  83083. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83084. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83085. + shift; \
  83086. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  83087. + test -n "$$unique" || unique=$$empty_fix; \
  83088. + if test $$# -gt 0; then \
  83089. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83090. + "$$@" $$unique; \
  83091. + else \
  83092. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83093. + $$unique; \
  83094. + fi; \
  83095. fi
  83096. ctags: CTAGS
  83097. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83098. $(TAGS_FILES) $(LISP)
  83099. - tags=; \
  83100. - here=`pwd`; \
  83101. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83102. unique=`for i in $$list; do \
  83103. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83104. done | \
  83105. - $(AWK) ' { files[$$0] = 1; } \
  83106. - END { for (i in files) print i; }'`; \
  83107. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  83108. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83109. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83110. + test -z "$(CTAGS_ARGS)$$unique" \
  83111. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  83112. - $$tags $$unique
  83113. + $$unique
  83114. GTAGS:
  83115. here=`$(am__cd) $(top_builddir) && pwd` \
  83116. - && cd $(top_srcdir) \
  83117. - && gtags -i $(GTAGS_ARGS) $$here
  83118. + && $(am__cd) $(top_srcdir) \
  83119. + && gtags -i $(GTAGS_ARGS) "$$here"
  83120. distclean-tags:
  83121. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  83122. distdir: $(DISTFILES)
  83123. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  83124. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  83125. - list='$(DISTFILES)'; for file in $$list; do \
  83126. - case $$file in \
  83127. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  83128. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  83129. - esac; \
  83130. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83131. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83132. + list='$(DISTFILES)'; \
  83133. + dist_files=`for file in $$list; do echo $$file; done | \
  83134. + sed -e "s|^$$srcdirstrip/||;t" \
  83135. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  83136. + case $$dist_files in \
  83137. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  83138. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  83139. + sort -u` ;; \
  83140. + esac; \
  83141. + for file in $$dist_files; do \
  83142. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  83143. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  83144. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  83145. - dir="/$$dir"; \
  83146. - $(mkdir_p) "$(distdir)$$dir"; \
  83147. - else \
  83148. - dir=''; \
  83149. - fi; \
  83150. if test -d $$d/$$file; then \
  83151. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  83152. + if test -d "$(distdir)/$$file"; then \
  83153. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  83154. + fi; \
  83155. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  83156. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  83157. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  83158. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  83159. fi; \
  83160. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  83161. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  83162. else \
  83163. - test -f $(distdir)/$$file \
  83164. - || cp -p $$d/$$file $(distdir)/$$file \
  83165. + test -f "$(distdir)/$$file" \
  83166. + || cp -p $$d/$$file "$(distdir)/$$file" \
  83167. || exit 1; \
  83168. fi; \
  83169. done
  83170. @@ -829,7 +851,8 @@
  83171. clean-generic:
  83172. distclean-generic:
  83173. - -rm -f $(CONFIG_CLEAN_FILES)
  83174. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  83175. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  83176. maintainer-clean-generic:
  83177. @echo "This command is intended for maintainers to use"
  83178. @@ -842,7 +865,7 @@
  83179. distclean: distclean-am
  83180. -rm -f Makefile
  83181. distclean-am: clean-am distclean-compile distclean-generic \
  83182. - distclean-libtool distclean-tags
  83183. + distclean-tags
  83184. dvi: dvi-am
  83185. @@ -850,18 +873,38 @@
  83186. html: html-am
  83187. +html-am:
  83188. +
  83189. info: info-am
  83190. info-am:
  83191. install-data-am:
  83192. +install-dvi: install-dvi-am
  83193. +
  83194. +install-dvi-am:
  83195. +
  83196. install-exec-am:
  83197. +install-html: install-html-am
  83198. +
  83199. +install-html-am:
  83200. +
  83201. install-info: install-info-am
  83202. +install-info-am:
  83203. +
  83204. install-man:
  83205. +install-pdf: install-pdf-am
  83206. +
  83207. +install-pdf-am:
  83208. +
  83209. +install-ps: install-ps-am
  83210. +
  83211. +install-ps-am:
  83212. +
  83213. installcheck-am:
  83214. maintainer-clean: maintainer-clean-am
  83215. @@ -881,19 +924,23 @@
  83216. ps-am:
  83217. -uninstall-am: uninstall-info-am
  83218. +uninstall-am:
  83219. +
  83220. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  83221. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  83222. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  83223. distclean-compile distclean-generic distclean-libtool \
  83224. distclean-tags distdir dvi dvi-am html html-am info info-am \
  83225. - install install-am install-data install-data-am install-exec \
  83226. - install-exec-am install-info install-info-am install-man \
  83227. + install install-am install-data install-data-am install-dvi \
  83228. + install-dvi-am install-exec install-exec-am install-html \
  83229. + install-html-am install-info install-info-am install-man \
  83230. + install-pdf install-pdf-am install-ps install-ps-am \
  83231. install-strip installcheck installcheck-am installdirs \
  83232. maintainer-clean maintainer-clean-generic mostlyclean \
  83233. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  83234. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  83235. - uninstall-am uninstall-info-am
  83236. + uninstall-am
  83237. # These are BUILT_SOURCES at the top-level, so normally they're built before
  83238. @@ -901,6 +948,7 @@
  83239. #
  83240. fac_ui.h:
  83241. cd ..; $(MAKE) $(AM_MAKEFLAGS) mpz/fac_ui.h
  83242. +
  83243. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  83244. # Otherwise a system limit (for SysV at least) may be exceeded.
  83245. .NOEXPORT:
  83246. diff -Nur gmp-4.3.2.orig/printf/Makefile.in gmp-4.3.2/printf/Makefile.in
  83247. --- gmp-4.3.2.orig/printf/Makefile.in 2010-01-07 21:09:42.000000000 +0100
  83248. +++ gmp-4.3.2/printf/Makefile.in 2011-02-16 19:23:20.253552373 +0100
  83249. @@ -1,8 +1,9 @@
  83250. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  83251. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  83252. # @configure_input@
  83253. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  83254. -# 2003, 2004 Free Software Foundation, Inc.
  83255. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  83256. +# Inc.
  83257. # This Makefile.in is free software; the Free Software Foundation
  83258. # gives unlimited permission to copy and/or distribute it,
  83259. # with or without modifications, as long as this notice is preserved.
  83260. @@ -31,17 +32,12 @@
  83261. # You should have received a copy of the GNU Lesser General Public License
  83262. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  83263. -SOURCES = $(libprintf_la_SOURCES)
  83264. -
  83265. -srcdir = @srcdir@
  83266. -top_srcdir = @top_srcdir@
  83267. VPATH = @srcdir@
  83268. pkgdatadir = $(datadir)/@PACKAGE@
  83269. -pkglibdir = $(libdir)/@PACKAGE@
  83270. pkgincludedir = $(includedir)/@PACKAGE@
  83271. -top_builddir = ..
  83272. +pkglibdir = $(libdir)/@PACKAGE@
  83273. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  83274. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  83275. -INSTALL = @INSTALL@
  83276. install_sh_DATA = $(install_sh) -c -m 644
  83277. install_sh_PROGRAM = $(install_sh) -c
  83278. install_sh_SCRIPT = $(install_sh) -c
  83279. @@ -53,6 +49,7 @@
  83280. NORMAL_UNINSTALL = :
  83281. PRE_UNINSTALL = :
  83282. POST_UNINSTALL = :
  83283. +build_triplet = @build@
  83284. host_triplet = @host@
  83285. ANSI2KNR = $(top_builddir)/ansi2knr
  83286. subdir = printf
  83287. @@ -62,9 +59,10 @@
  83288. $(top_srcdir)/configure.in
  83289. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  83290. $(ACLOCAL_M4)
  83291. -mkinstalldirs = $(mkdir_p)
  83292. +mkinstalldirs = $(install_sh) -d
  83293. CONFIG_HEADER = $(top_builddir)/config.h
  83294. CONFIG_CLEAN_FILES =
  83295. +CONFIG_CLEAN_VPATH_FILES =
  83296. LTLIBRARIES = $(noinst_LTLIBRARIES)
  83297. libprintf_la_LIBADD =
  83298. am_libprintf_la_OBJECTS = asprintf$U.lo asprntffuns$U.lo doprnt$U.lo \
  83299. @@ -74,17 +72,18 @@
  83300. vasprintf$U.lo vfprintf$U.lo vprintf$U.lo vsnprintf$U.lo \
  83301. vsprintf$U.lo repl-vsnprintf$U.lo
  83302. libprintf_la_OBJECTS = $(am_libprintf_la_OBJECTS)
  83303. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  83304. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  83305. depcomp =
  83306. am__depfiles_maybe =
  83307. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  83308. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  83309. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  83310. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  83311. - $(AM_CFLAGS) $(CFLAGS)
  83312. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  83313. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  83314. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  83315. CCLD = $(CC)
  83316. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  83317. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  83318. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  83319. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  83320. + $(LDFLAGS) -o $@
  83321. SOURCES = $(libprintf_la_SOURCES)
  83322. DIST_SOURCES = $(libprintf_la_SOURCES)
  83323. ETAGS = etags
  83324. @@ -116,15 +115,17 @@
  83325. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  83326. DEFS = @DEFS@
  83327. DLLTOOL = @DLLTOOL@
  83328. -ECHO = @ECHO@
  83329. +DSYMUTIL = @DSYMUTIL@
  83330. +DUMPBIN = @DUMPBIN@
  83331. ECHO_C = @ECHO_C@
  83332. ECHO_N = @ECHO_N@
  83333. ECHO_T = @ECHO_T@
  83334. EGREP = @EGREP@
  83335. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  83336. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  83337. EXEEXT = @EXEEXT@
  83338. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  83339. +F77 = @F77@
  83340. +FFLAGS = @FFLAGS@
  83341. +FGREP = @FGREP@
  83342. GMP_LDFLAGS = @GMP_LDFLAGS@
  83343. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  83344. GREP = @GREP@
  83345. @@ -139,10 +140,12 @@
  83346. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  83347. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  83348. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  83349. +INSTALL = @INSTALL@
  83350. INSTALL_DATA = @INSTALL_DATA@
  83351. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  83352. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  83353. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  83354. +LD = @LD@
  83355. LDFLAGS = @LDFLAGS@
  83356. LEX = @LEX@
  83357. LEXLIB = @LEXLIB@
  83358. @@ -157,20 +160,25 @@
  83359. LIBREADLINE = @LIBREADLINE@
  83360. LIBS = @LIBS@
  83361. LIBTOOL = @LIBTOOL@
  83362. +LIPO = @LIPO@
  83363. LN_S = @LN_S@
  83364. LTLIBOBJS = @LTLIBOBJS@
  83365. M4 = @M4@
  83366. MAINT = @MAINT@
  83367. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  83368. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  83369. MAKEINFO = @MAKEINFO@
  83370. +MKDIR_P = @MKDIR_P@
  83371. +NM = @NM@
  83372. +NMEDIT = @NMEDIT@
  83373. OBJDUMP = @OBJDUMP@
  83374. OBJEXT = @OBJEXT@
  83375. +OTOOL = @OTOOL@
  83376. +OTOOL64 = @OTOOL64@
  83377. PACKAGE = @PACKAGE@
  83378. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  83379. PACKAGE_NAME = @PACKAGE_NAME@
  83380. PACKAGE_STRING = @PACKAGE_STRING@
  83381. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  83382. +PACKAGE_URL = @PACKAGE_URL@
  83383. PACKAGE_VERSION = @PACKAGE_VERSION@
  83384. PATH_SEPARATOR = @PATH_SEPARATOR@
  83385. RANLIB = @RANLIB@
  83386. @@ -184,22 +192,27 @@
  83387. U = @U@
  83388. U_FOR_BUILD = @U_FOR_BUILD@
  83389. VERSION = @VERSION@
  83390. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  83391. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  83392. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  83393. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  83394. WITH_READLINE_01 = @WITH_READLINE_01@
  83395. YACC = @YACC@
  83396. YFLAGS = @YFLAGS@
  83397. +abs_builddir = @abs_builddir@
  83398. +abs_srcdir = @abs_srcdir@
  83399. +abs_top_builddir = @abs_top_builddir@
  83400. +abs_top_srcdir = @abs_top_srcdir@
  83401. ac_ct_CC = @ac_ct_CC@
  83402. ac_ct_CXX = @ac_ct_CXX@
  83403. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  83404. +ac_ct_F77 = @ac_ct_F77@
  83405. am__leading_dot = @am__leading_dot@
  83406. +am__tar = @am__tar@
  83407. +am__untar = @am__untar@
  83408. bindir = @bindir@
  83409. build = @build@
  83410. build_alias = @build_alias@
  83411. build_cpu = @build_cpu@
  83412. build_os = @build_os@
  83413. build_vendor = @build_vendor@
  83414. +builddir = @builddir@
  83415. datadir = @datadir@
  83416. datarootdir = @datarootdir@
  83417. docdir = @docdir@
  83418. @@ -219,6 +232,7 @@
  83419. libexecdir = @libexecdir@
  83420. localedir = @localedir@
  83421. localstatedir = @localstatedir@
  83422. +lt_ECHO = @lt_ECHO@
  83423. mandir = @mandir@
  83424. mkdir_p = @mkdir_p@
  83425. mpn_objects = @mpn_objects@
  83426. @@ -231,8 +245,12 @@
  83427. psdir = @psdir@
  83428. sbindir = @sbindir@
  83429. sharedstatedir = @sharedstatedir@
  83430. +srcdir = @srcdir@
  83431. sysconfdir = @sysconfdir@
  83432. target_alias = @target_alias@
  83433. +top_build_prefix = @top_build_prefix@
  83434. +top_builddir = @top_builddir@
  83435. +top_srcdir = @top_srcdir@
  83436. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir)
  83437. noinst_LTLIBRARIES = libprintf.la
  83438. libprintf_la_SOURCES = \
  83439. @@ -250,14 +268,14 @@
  83440. @for dep in $?; do \
  83441. case '$(am__configure_deps)' in \
  83442. *$$dep*) \
  83443. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  83444. - && exit 0; \
  83445. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  83446. + && { if test -f $@; then exit 0; else break; fi; }; \
  83447. exit 1;; \
  83448. esac; \
  83449. done; \
  83450. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps printf/Makefile'; \
  83451. - cd $(top_srcdir) && \
  83452. - $(AUTOMAKE) --gnu --ignore-deps printf/Makefile
  83453. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps printf/Makefile'; \
  83454. + $(am__cd) $(top_srcdir) && \
  83455. + $(AUTOMAKE) --gnu --ignore-deps printf/Makefile
  83456. .PRECIOUS: Makefile
  83457. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  83458. @case '$?' in \
  83459. @@ -275,17 +293,18 @@
  83460. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83461. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  83462. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83463. +$(am__aclocal_m4_deps):
  83464. clean-noinstLTLIBRARIES:
  83465. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  83466. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  83467. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  83468. - test "$$dir" = "$$p" && dir=.; \
  83469. + test "$$dir" != "$$p" || dir=.; \
  83470. echo "rm -f \"$${dir}/so_locations\""; \
  83471. rm -f "$${dir}/so_locations"; \
  83472. done
  83473. libprintf.la: $(libprintf_la_OBJECTS) $(libprintf_la_DEPENDENCIES)
  83474. - $(LINK) $(libprintf_la_LDFLAGS) $(libprintf_la_OBJECTS) $(libprintf_la_LIBADD) $(LIBS)
  83475. + $(LINK) $(libprintf_la_OBJECTS) $(libprintf_la_LIBADD) $(LIBS)
  83476. mostlyclean-compile:
  83477. -rm -f *.$(OBJEXT)
  83478. @@ -293,7 +312,7 @@
  83479. distclean-compile:
  83480. -rm -f *.tab.c
  83481. $(top_builddir)/ansi2knr:
  83482. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  83483. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  83484. mostlyclean-kr:
  83485. -test "$U" = "" || rm -f *_.c
  83486. @@ -367,82 +386,85 @@
  83487. clean-libtool:
  83488. -rm -rf .libs _libs
  83489. -distclean-libtool:
  83490. - -rm -f libtool
  83491. -uninstall-info-am:
  83492. -
  83493. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  83494. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83495. unique=`for i in $$list; do \
  83496. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83497. done | \
  83498. - $(AWK) ' { files[$$0] = 1; } \
  83499. - END { for (i in files) print i; }'`; \
  83500. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83501. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83502. mkid -fID $$unique
  83503. tags: TAGS
  83504. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83505. $(TAGS_FILES) $(LISP)
  83506. - tags=; \
  83507. + set x; \
  83508. here=`pwd`; \
  83509. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83510. unique=`for i in $$list; do \
  83511. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83512. done | \
  83513. - $(AWK) ' { files[$$0] = 1; } \
  83514. - END { for (i in files) print i; }'`; \
  83515. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  83516. - test -z "$$unique" && unique=$$empty_fix; \
  83517. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83518. - $$tags $$unique; \
  83519. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83520. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83521. + shift; \
  83522. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  83523. + test -n "$$unique" || unique=$$empty_fix; \
  83524. + if test $$# -gt 0; then \
  83525. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83526. + "$$@" $$unique; \
  83527. + else \
  83528. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83529. + $$unique; \
  83530. + fi; \
  83531. fi
  83532. ctags: CTAGS
  83533. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83534. $(TAGS_FILES) $(LISP)
  83535. - tags=; \
  83536. - here=`pwd`; \
  83537. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83538. unique=`for i in $$list; do \
  83539. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83540. done | \
  83541. - $(AWK) ' { files[$$0] = 1; } \
  83542. - END { for (i in files) print i; }'`; \
  83543. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  83544. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83545. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83546. + test -z "$(CTAGS_ARGS)$$unique" \
  83547. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  83548. - $$tags $$unique
  83549. + $$unique
  83550. GTAGS:
  83551. here=`$(am__cd) $(top_builddir) && pwd` \
  83552. - && cd $(top_srcdir) \
  83553. - && gtags -i $(GTAGS_ARGS) $$here
  83554. + && $(am__cd) $(top_srcdir) \
  83555. + && gtags -i $(GTAGS_ARGS) "$$here"
  83556. distclean-tags:
  83557. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  83558. distdir: $(DISTFILES)
  83559. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  83560. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  83561. - list='$(DISTFILES)'; for file in $$list; do \
  83562. - case $$file in \
  83563. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  83564. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  83565. - esac; \
  83566. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83567. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83568. + list='$(DISTFILES)'; \
  83569. + dist_files=`for file in $$list; do echo $$file; done | \
  83570. + sed -e "s|^$$srcdirstrip/||;t" \
  83571. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  83572. + case $$dist_files in \
  83573. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  83574. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  83575. + sort -u` ;; \
  83576. + esac; \
  83577. + for file in $$dist_files; do \
  83578. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  83579. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  83580. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  83581. - dir="/$$dir"; \
  83582. - $(mkdir_p) "$(distdir)$$dir"; \
  83583. - else \
  83584. - dir=''; \
  83585. - fi; \
  83586. if test -d $$d/$$file; then \
  83587. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  83588. + if test -d "$(distdir)/$$file"; then \
  83589. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  83590. + fi; \
  83591. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  83592. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  83593. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  83594. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  83595. fi; \
  83596. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  83597. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  83598. else \
  83599. - test -f $(distdir)/$$file \
  83600. - || cp -p $$d/$$file $(distdir)/$$file \
  83601. + test -f "$(distdir)/$$file" \
  83602. + || cp -p $$d/$$file "$(distdir)/$$file" \
  83603. || exit 1; \
  83604. fi; \
  83605. done
  83606. @@ -469,7 +491,8 @@
  83607. clean-generic:
  83608. distclean-generic:
  83609. - -rm -f $(CONFIG_CLEAN_FILES)
  83610. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  83611. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  83612. maintainer-clean-generic:
  83613. @echo "This command is intended for maintainers to use"
  83614. @@ -482,7 +505,7 @@
  83615. distclean: distclean-am
  83616. -rm -f Makefile
  83617. distclean-am: clean-am distclean-compile distclean-generic \
  83618. - distclean-libtool distclean-tags
  83619. + distclean-tags
  83620. dvi: dvi-am
  83621. @@ -490,18 +513,38 @@
  83622. html: html-am
  83623. +html-am:
  83624. +
  83625. info: info-am
  83626. info-am:
  83627. install-data-am:
  83628. +install-dvi: install-dvi-am
  83629. +
  83630. +install-dvi-am:
  83631. +
  83632. install-exec-am:
  83633. +install-html: install-html-am
  83634. +
  83635. +install-html-am:
  83636. +
  83637. install-info: install-info-am
  83638. +install-info-am:
  83639. +
  83640. install-man:
  83641. +install-pdf: install-pdf-am
  83642. +
  83643. +install-pdf-am:
  83644. +
  83645. +install-ps: install-ps-am
  83646. +
  83647. +install-ps-am:
  83648. +
  83649. installcheck-am:
  83650. maintainer-clean: maintainer-clean-am
  83651. @@ -521,19 +564,24 @@
  83652. ps-am:
  83653. -uninstall-am: uninstall-info-am
  83654. +uninstall-am:
  83655. +
  83656. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  83657. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  83658. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  83659. distclean-compile distclean-generic distclean-libtool \
  83660. distclean-tags distdir dvi dvi-am html html-am info info-am \
  83661. - install install-am install-data install-data-am install-exec \
  83662. - install-exec-am install-info install-info-am install-man \
  83663. + install install-am install-data install-data-am install-dvi \
  83664. + install-dvi-am install-exec install-exec-am install-html \
  83665. + install-html-am install-info install-info-am install-man \
  83666. + install-pdf install-pdf-am install-ps install-ps-am \
  83667. install-strip installcheck installcheck-am installdirs \
  83668. maintainer-clean maintainer-clean-generic mostlyclean \
  83669. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  83670. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  83671. - uninstall-am uninstall-info-am
  83672. + uninstall-am
  83673. +
  83674. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  83675. # Otherwise a system limit (for SysV at least) may be exceeded.
  83676. diff -Nur gmp-4.3.2.orig/scanf/Makefile.in gmp-4.3.2/scanf/Makefile.in
  83677. --- gmp-4.3.2.orig/scanf/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  83678. +++ gmp-4.3.2/scanf/Makefile.in 2011-02-16 19:23:20.303557416 +0100
  83679. @@ -1,8 +1,9 @@
  83680. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  83681. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  83682. # @configure_input@
  83683. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  83684. -# 2003, 2004 Free Software Foundation, Inc.
  83685. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  83686. +# Inc.
  83687. # This Makefile.in is free software; the Free Software Foundation
  83688. # gives unlimited permission to copy and/or distribute it,
  83689. # with or without modifications, as long as this notice is preserved.
  83690. @@ -31,17 +32,12 @@
  83691. # You should have received a copy of the GNU Lesser General Public License
  83692. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  83693. -SOURCES = $(libscanf_la_SOURCES)
  83694. -
  83695. -srcdir = @srcdir@
  83696. -top_srcdir = @top_srcdir@
  83697. VPATH = @srcdir@
  83698. pkgdatadir = $(datadir)/@PACKAGE@
  83699. -pkglibdir = $(libdir)/@PACKAGE@
  83700. pkgincludedir = $(includedir)/@PACKAGE@
  83701. -top_builddir = ..
  83702. +pkglibdir = $(libdir)/@PACKAGE@
  83703. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  83704. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  83705. -INSTALL = @INSTALL@
  83706. install_sh_DATA = $(install_sh) -c -m 644
  83707. install_sh_PROGRAM = $(install_sh) -c
  83708. install_sh_SCRIPT = $(install_sh) -c
  83709. @@ -53,6 +49,7 @@
  83710. NORMAL_UNINSTALL = :
  83711. PRE_UNINSTALL = :
  83712. POST_UNINSTALL = :
  83713. +build_triplet = @build@
  83714. host_triplet = @host@
  83715. ANSI2KNR = $(top_builddir)/ansi2knr
  83716. subdir = scanf
  83717. @@ -62,26 +59,28 @@
  83718. $(top_srcdir)/configure.in
  83719. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  83720. $(ACLOCAL_M4)
  83721. -mkinstalldirs = $(mkdir_p)
  83722. +mkinstalldirs = $(install_sh) -d
  83723. CONFIG_HEADER = $(top_builddir)/config.h
  83724. CONFIG_CLEAN_FILES =
  83725. +CONFIG_CLEAN_VPATH_FILES =
  83726. LTLIBRARIES = $(noinst_LTLIBRARIES)
  83727. libscanf_la_LIBADD =
  83728. am_libscanf_la_OBJECTS = doscan$U.lo fscanf$U.lo fscanffuns$U.lo \
  83729. scanf$U.lo sscanf$U.lo sscanffuns$U.lo vfscanf$U.lo \
  83730. vscanf$U.lo vsscanf$U.lo
  83731. libscanf_la_OBJECTS = $(am_libscanf_la_OBJECTS)
  83732. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  83733. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  83734. depcomp =
  83735. am__depfiles_maybe =
  83736. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  83737. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  83738. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  83739. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  83740. - $(AM_CFLAGS) $(CFLAGS)
  83741. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  83742. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  83743. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  83744. CCLD = $(CC)
  83745. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  83746. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  83747. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  83748. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  83749. + $(LDFLAGS) -o $@
  83750. SOURCES = $(libscanf_la_SOURCES)
  83751. DIST_SOURCES = $(libscanf_la_SOURCES)
  83752. ETAGS = etags
  83753. @@ -113,15 +112,17 @@
  83754. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  83755. DEFS = @DEFS@
  83756. DLLTOOL = @DLLTOOL@
  83757. -ECHO = @ECHO@
  83758. +DSYMUTIL = @DSYMUTIL@
  83759. +DUMPBIN = @DUMPBIN@
  83760. ECHO_C = @ECHO_C@
  83761. ECHO_N = @ECHO_N@
  83762. ECHO_T = @ECHO_T@
  83763. EGREP = @EGREP@
  83764. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  83765. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  83766. EXEEXT = @EXEEXT@
  83767. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  83768. +F77 = @F77@
  83769. +FFLAGS = @FFLAGS@
  83770. +FGREP = @FGREP@
  83771. GMP_LDFLAGS = @GMP_LDFLAGS@
  83772. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  83773. GREP = @GREP@
  83774. @@ -136,10 +137,12 @@
  83775. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  83776. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  83777. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  83778. +INSTALL = @INSTALL@
  83779. INSTALL_DATA = @INSTALL_DATA@
  83780. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  83781. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  83782. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  83783. +LD = @LD@
  83784. LDFLAGS = @LDFLAGS@
  83785. LEX = @LEX@
  83786. LEXLIB = @LEXLIB@
  83787. @@ -154,20 +157,25 @@
  83788. LIBREADLINE = @LIBREADLINE@
  83789. LIBS = @LIBS@
  83790. LIBTOOL = @LIBTOOL@
  83791. +LIPO = @LIPO@
  83792. LN_S = @LN_S@
  83793. LTLIBOBJS = @LTLIBOBJS@
  83794. M4 = @M4@
  83795. MAINT = @MAINT@
  83796. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  83797. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  83798. MAKEINFO = @MAKEINFO@
  83799. +MKDIR_P = @MKDIR_P@
  83800. +NM = @NM@
  83801. +NMEDIT = @NMEDIT@
  83802. OBJDUMP = @OBJDUMP@
  83803. OBJEXT = @OBJEXT@
  83804. +OTOOL = @OTOOL@
  83805. +OTOOL64 = @OTOOL64@
  83806. PACKAGE = @PACKAGE@
  83807. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  83808. PACKAGE_NAME = @PACKAGE_NAME@
  83809. PACKAGE_STRING = @PACKAGE_STRING@
  83810. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  83811. +PACKAGE_URL = @PACKAGE_URL@
  83812. PACKAGE_VERSION = @PACKAGE_VERSION@
  83813. PATH_SEPARATOR = @PATH_SEPARATOR@
  83814. RANLIB = @RANLIB@
  83815. @@ -181,22 +189,27 @@
  83816. U = @U@
  83817. U_FOR_BUILD = @U_FOR_BUILD@
  83818. VERSION = @VERSION@
  83819. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  83820. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  83821. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  83822. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  83823. WITH_READLINE_01 = @WITH_READLINE_01@
  83824. YACC = @YACC@
  83825. YFLAGS = @YFLAGS@
  83826. +abs_builddir = @abs_builddir@
  83827. +abs_srcdir = @abs_srcdir@
  83828. +abs_top_builddir = @abs_top_builddir@
  83829. +abs_top_srcdir = @abs_top_srcdir@
  83830. ac_ct_CC = @ac_ct_CC@
  83831. ac_ct_CXX = @ac_ct_CXX@
  83832. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  83833. +ac_ct_F77 = @ac_ct_F77@
  83834. am__leading_dot = @am__leading_dot@
  83835. +am__tar = @am__tar@
  83836. +am__untar = @am__untar@
  83837. bindir = @bindir@
  83838. build = @build@
  83839. build_alias = @build_alias@
  83840. build_cpu = @build_cpu@
  83841. build_os = @build_os@
  83842. build_vendor = @build_vendor@
  83843. +builddir = @builddir@
  83844. datadir = @datadir@
  83845. datarootdir = @datarootdir@
  83846. docdir = @docdir@
  83847. @@ -216,6 +229,7 @@
  83848. libexecdir = @libexecdir@
  83849. localedir = @localedir@
  83850. localstatedir = @localstatedir@
  83851. +lt_ECHO = @lt_ECHO@
  83852. mandir = @mandir@
  83853. mkdir_p = @mkdir_p@
  83854. mpn_objects = @mpn_objects@
  83855. @@ -228,8 +242,12 @@
  83856. psdir = @psdir@
  83857. sbindir = @sbindir@
  83858. sharedstatedir = @sharedstatedir@
  83859. +srcdir = @srcdir@
  83860. sysconfdir = @sysconfdir@
  83861. target_alias = @target_alias@
  83862. +top_build_prefix = @top_build_prefix@
  83863. +top_builddir = @top_builddir@
  83864. +top_srcdir = @top_srcdir@
  83865. INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir)
  83866. noinst_LTLIBRARIES = libscanf.la
  83867. libscanf_la_SOURCES = \
  83868. @@ -244,14 +262,14 @@
  83869. @for dep in $?; do \
  83870. case '$(am__configure_deps)' in \
  83871. *$$dep*) \
  83872. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  83873. - && exit 0; \
  83874. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  83875. + && { if test -f $@; then exit 0; else break; fi; }; \
  83876. exit 1;; \
  83877. esac; \
  83878. done; \
  83879. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps scanf/Makefile'; \
  83880. - cd $(top_srcdir) && \
  83881. - $(AUTOMAKE) --gnu --ignore-deps scanf/Makefile
  83882. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps scanf/Makefile'; \
  83883. + $(am__cd) $(top_srcdir) && \
  83884. + $(AUTOMAKE) --gnu --ignore-deps scanf/Makefile
  83885. .PRECIOUS: Makefile
  83886. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  83887. @case '$?' in \
  83888. @@ -269,17 +287,18 @@
  83889. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83890. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  83891. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  83892. +$(am__aclocal_m4_deps):
  83893. clean-noinstLTLIBRARIES:
  83894. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  83895. @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
  83896. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  83897. - test "$$dir" = "$$p" && dir=.; \
  83898. + test "$$dir" != "$$p" || dir=.; \
  83899. echo "rm -f \"$${dir}/so_locations\""; \
  83900. rm -f "$${dir}/so_locations"; \
  83901. done
  83902. libscanf.la: $(libscanf_la_OBJECTS) $(libscanf_la_DEPENDENCIES)
  83903. - $(LINK) $(libscanf_la_LDFLAGS) $(libscanf_la_OBJECTS) $(libscanf_la_LIBADD) $(LIBS)
  83904. + $(LINK) $(libscanf_la_OBJECTS) $(libscanf_la_LIBADD) $(LIBS)
  83905. mostlyclean-compile:
  83906. -rm -f *.$(OBJEXT)
  83907. @@ -287,7 +306,7 @@
  83908. distclean-compile:
  83909. -rm -f *.tab.c
  83910. $(top_builddir)/ansi2knr:
  83911. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  83912. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  83913. mostlyclean-kr:
  83914. -test "$U" = "" || rm -f *_.c
  83915. @@ -330,82 +349,85 @@
  83916. clean-libtool:
  83917. -rm -rf .libs _libs
  83918. -distclean-libtool:
  83919. - -rm -f libtool
  83920. -uninstall-info-am:
  83921. -
  83922. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  83923. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83924. unique=`for i in $$list; do \
  83925. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83926. done | \
  83927. - $(AWK) ' { files[$$0] = 1; } \
  83928. - END { for (i in files) print i; }'`; \
  83929. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83930. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83931. mkid -fID $$unique
  83932. tags: TAGS
  83933. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83934. $(TAGS_FILES) $(LISP)
  83935. - tags=; \
  83936. + set x; \
  83937. here=`pwd`; \
  83938. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83939. unique=`for i in $$list; do \
  83940. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83941. done | \
  83942. - $(AWK) ' { files[$$0] = 1; } \
  83943. - END { for (i in files) print i; }'`; \
  83944. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  83945. - test -z "$$unique" && unique=$$empty_fix; \
  83946. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83947. - $$tags $$unique; \
  83948. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83949. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83950. + shift; \
  83951. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  83952. + test -n "$$unique" || unique=$$empty_fix; \
  83953. + if test $$# -gt 0; then \
  83954. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83955. + "$$@" $$unique; \
  83956. + else \
  83957. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  83958. + $$unique; \
  83959. + fi; \
  83960. fi
  83961. ctags: CTAGS
  83962. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  83963. $(TAGS_FILES) $(LISP)
  83964. - tags=; \
  83965. - here=`pwd`; \
  83966. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  83967. unique=`for i in $$list; do \
  83968. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  83969. done | \
  83970. - $(AWK) ' { files[$$0] = 1; } \
  83971. - END { for (i in files) print i; }'`; \
  83972. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  83973. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  83974. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  83975. + test -z "$(CTAGS_ARGS)$$unique" \
  83976. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  83977. - $$tags $$unique
  83978. + $$unique
  83979. GTAGS:
  83980. here=`$(am__cd) $(top_builddir) && pwd` \
  83981. - && cd $(top_srcdir) \
  83982. - && gtags -i $(GTAGS_ARGS) $$here
  83983. + && $(am__cd) $(top_srcdir) \
  83984. + && gtags -i $(GTAGS_ARGS) "$$here"
  83985. distclean-tags:
  83986. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  83987. distdir: $(DISTFILES)
  83988. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  83989. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  83990. - list='$(DISTFILES)'; for file in $$list; do \
  83991. - case $$file in \
  83992. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  83993. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  83994. - esac; \
  83995. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83996. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  83997. + list='$(DISTFILES)'; \
  83998. + dist_files=`for file in $$list; do echo $$file; done | \
  83999. + sed -e "s|^$$srcdirstrip/||;t" \
  84000. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  84001. + case $$dist_files in \
  84002. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  84003. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  84004. + sort -u` ;; \
  84005. + esac; \
  84006. + for file in $$dist_files; do \
  84007. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  84008. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  84009. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  84010. - dir="/$$dir"; \
  84011. - $(mkdir_p) "$(distdir)$$dir"; \
  84012. - else \
  84013. - dir=''; \
  84014. - fi; \
  84015. if test -d $$d/$$file; then \
  84016. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  84017. + if test -d "$(distdir)/$$file"; then \
  84018. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  84019. + fi; \
  84020. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  84021. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  84022. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  84023. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  84024. fi; \
  84025. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  84026. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  84027. else \
  84028. - test -f $(distdir)/$$file \
  84029. - || cp -p $$d/$$file $(distdir)/$$file \
  84030. + test -f "$(distdir)/$$file" \
  84031. + || cp -p $$d/$$file "$(distdir)/$$file" \
  84032. || exit 1; \
  84033. fi; \
  84034. done
  84035. @@ -432,7 +454,8 @@
  84036. clean-generic:
  84037. distclean-generic:
  84038. - -rm -f $(CONFIG_CLEAN_FILES)
  84039. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  84040. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  84041. maintainer-clean-generic:
  84042. @echo "This command is intended for maintainers to use"
  84043. @@ -445,7 +468,7 @@
  84044. distclean: distclean-am
  84045. -rm -f Makefile
  84046. distclean-am: clean-am distclean-compile distclean-generic \
  84047. - distclean-libtool distclean-tags
  84048. + distclean-tags
  84049. dvi: dvi-am
  84050. @@ -453,18 +476,38 @@
  84051. html: html-am
  84052. +html-am:
  84053. +
  84054. info: info-am
  84055. info-am:
  84056. install-data-am:
  84057. +install-dvi: install-dvi-am
  84058. +
  84059. +install-dvi-am:
  84060. +
  84061. install-exec-am:
  84062. +install-html: install-html-am
  84063. +
  84064. +install-html-am:
  84065. +
  84066. install-info: install-info-am
  84067. +install-info-am:
  84068. +
  84069. install-man:
  84070. +install-pdf: install-pdf-am
  84071. +
  84072. +install-pdf-am:
  84073. +
  84074. +install-ps: install-ps-am
  84075. +
  84076. +install-ps-am:
  84077. +
  84078. installcheck-am:
  84079. maintainer-clean: maintainer-clean-am
  84080. @@ -484,19 +527,24 @@
  84081. ps-am:
  84082. -uninstall-am: uninstall-info-am
  84083. +uninstall-am:
  84084. +
  84085. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  84086. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  84087. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  84088. distclean-compile distclean-generic distclean-libtool \
  84089. distclean-tags distdir dvi dvi-am html html-am info info-am \
  84090. - install install-am install-data install-data-am install-exec \
  84091. - install-exec-am install-info install-info-am install-man \
  84092. + install install-am install-data install-data-am install-dvi \
  84093. + install-dvi-am install-exec install-exec-am install-html \
  84094. + install-html-am install-info install-info-am install-man \
  84095. + install-pdf install-pdf-am install-ps install-ps-am \
  84096. install-strip installcheck installcheck-am installdirs \
  84097. maintainer-clean maintainer-clean-generic mostlyclean \
  84098. mostlyclean-compile mostlyclean-generic mostlyclean-kr \
  84099. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  84100. - uninstall-am uninstall-info-am
  84101. + uninstall-am
  84102. +
  84103. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  84104. # Otherwise a system limit (for SysV at least) may be exceeded.
  84105. diff -Nur gmp-4.3.2.orig/tests/cxx/Makefile.in gmp-4.3.2/tests/cxx/Makefile.in
  84106. --- gmp-4.3.2.orig/tests/cxx/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  84107. +++ gmp-4.3.2/tests/cxx/Makefile.in 2011-02-16 19:23:20.423557630 +0100
  84108. @@ -1,8 +1,9 @@
  84109. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  84110. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  84111. # @configure_input@
  84112. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  84113. -# 2003, 2004 Free Software Foundation, Inc.
  84114. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  84115. +# Inc.
  84116. # This Makefile.in is free software; the Free Software Foundation
  84117. # gives unlimited permission to copy and/or distribute it,
  84118. # with or without modifications, as long as this notice is preserved.
  84119. @@ -30,17 +31,12 @@
  84120. #
  84121. # You should have received a copy of the GNU Lesser General Public License
  84122. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  84123. -SOURCES = $(t_assign_SOURCES) $(t_binary_SOURCES) $(t_cast_SOURCES) $(t_constr_SOURCES) $(t_headers_SOURCES) $(t_istream_SOURCES) $(t_locale_SOURCES) $(t_misc_SOURCES) $(t_ops_SOURCES) $(t_ostream_SOURCES) $(t_prec_SOURCES) $(t_rand_SOURCES) $(t_ternary_SOURCES) $(t_unary_SOURCES)
  84124. -
  84125. -srcdir = @srcdir@
  84126. -top_srcdir = @top_srcdir@
  84127. VPATH = @srcdir@
  84128. pkgdatadir = $(datadir)/@PACKAGE@
  84129. -pkglibdir = $(libdir)/@PACKAGE@
  84130. pkgincludedir = $(includedir)/@PACKAGE@
  84131. -top_builddir = ../..
  84132. +pkglibdir = $(libdir)/@PACKAGE@
  84133. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  84134. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  84135. -INSTALL = @INSTALL@
  84136. install_sh_DATA = $(install_sh) -c -m 644
  84137. install_sh_PROGRAM = $(install_sh) -c
  84138. install_sh_SCRIPT = $(install_sh) -c
  84139. @@ -52,6 +48,7 @@
  84140. NORMAL_UNINSTALL = :
  84141. PRE_UNINSTALL = :
  84142. POST_UNINSTALL = :
  84143. +build_triplet = @build@
  84144. host_triplet = @host@
  84145. ANSI2KNR = $(top_builddir)/ansi2knr
  84146. @WANT_CXX_TRUE@check_PROGRAMS = t-assign$(EXEEXT) t-binary$(EXEEXT) \
  84147. @@ -68,9 +65,10 @@
  84148. $(top_srcdir)/configure.in
  84149. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  84150. $(ACLOCAL_M4)
  84151. -mkinstalldirs = $(mkdir_p)
  84152. +mkinstalldirs = $(install_sh) -d
  84153. CONFIG_HEADER = $(top_builddir)/config.h
  84154. CONFIG_CLEAN_FILES =
  84155. +CONFIG_CLEAN_VPATH_FILES =
  84156. am_t_assign_OBJECTS = t-assign.$(OBJEXT)
  84157. t_assign_OBJECTS = $(am_t_assign_OBJECTS)
  84158. t_assign_LDADD = $(LDADD)
  84159. @@ -141,25 +139,27 @@
  84160. t_unary_LDADD = $(LDADD)
  84161. t_unary_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  84162. $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la
  84163. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  84164. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  84165. depcomp =
  84166. am__depfiles_maybe =
  84167. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  84168. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  84169. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  84170. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  84171. - $(AM_CFLAGS) $(CFLAGS)
  84172. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84173. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  84174. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  84175. CCLD = $(CC)
  84176. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  84177. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  84178. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84179. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  84180. + $(LDFLAGS) -o $@
  84181. CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  84182. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  84183. -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
  84184. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  84185. - $(AM_CXXFLAGS) $(CXXFLAGS)
  84186. +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84187. + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  84188. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  84189. CXXLD = $(CXX)
  84190. -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
  84191. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  84192. +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84193. + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
  84194. + $(LDFLAGS) -o $@
  84195. SOURCES = $(t_assign_SOURCES) $(t_binary_SOURCES) $(t_cast_SOURCES) \
  84196. $(t_constr_SOURCES) $(t_headers_SOURCES) $(t_istream_SOURCES) \
  84197. $(t_locale_SOURCES) $(t_misc_SOURCES) $(t_ops_SOURCES) \
  84198. @@ -172,6 +172,8 @@
  84199. $(t_rand_SOURCES) $(t_ternary_SOURCES) $(t_unary_SOURCES)
  84200. ETAGS = etags
  84201. CTAGS = ctags
  84202. +am__tty_colors = \
  84203. +red=; grn=; lgn=; blu=; std=
  84204. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  84205. ABI = @ABI@
  84206. ACLOCAL = @ACLOCAL@
  84207. @@ -199,15 +201,17 @@
  84208. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  84209. DEFS = @DEFS@
  84210. DLLTOOL = @DLLTOOL@
  84211. -ECHO = @ECHO@
  84212. +DSYMUTIL = @DSYMUTIL@
  84213. +DUMPBIN = @DUMPBIN@
  84214. ECHO_C = @ECHO_C@
  84215. ECHO_N = @ECHO_N@
  84216. ECHO_T = @ECHO_T@
  84217. EGREP = @EGREP@
  84218. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  84219. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  84220. EXEEXT = @EXEEXT@
  84221. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  84222. +F77 = @F77@
  84223. +FFLAGS = @FFLAGS@
  84224. +FGREP = @FGREP@
  84225. GMP_LDFLAGS = @GMP_LDFLAGS@
  84226. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  84227. GREP = @GREP@
  84228. @@ -222,10 +226,12 @@
  84229. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  84230. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  84231. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  84232. +INSTALL = @INSTALL@
  84233. INSTALL_DATA = @INSTALL_DATA@
  84234. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  84235. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  84236. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  84237. +LD = @LD@
  84238. LDFLAGS = @LDFLAGS@
  84239. LEX = @LEX@
  84240. LEXLIB = @LEXLIB@
  84241. @@ -240,20 +246,25 @@
  84242. LIBREADLINE = @LIBREADLINE@
  84243. LIBS = @LIBS@
  84244. LIBTOOL = @LIBTOOL@
  84245. +LIPO = @LIPO@
  84246. LN_S = @LN_S@
  84247. LTLIBOBJS = @LTLIBOBJS@
  84248. M4 = @M4@
  84249. MAINT = @MAINT@
  84250. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  84251. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  84252. MAKEINFO = @MAKEINFO@
  84253. +MKDIR_P = @MKDIR_P@
  84254. +NM = @NM@
  84255. +NMEDIT = @NMEDIT@
  84256. OBJDUMP = @OBJDUMP@
  84257. OBJEXT = @OBJEXT@
  84258. +OTOOL = @OTOOL@
  84259. +OTOOL64 = @OTOOL64@
  84260. PACKAGE = @PACKAGE@
  84261. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  84262. PACKAGE_NAME = @PACKAGE_NAME@
  84263. PACKAGE_STRING = @PACKAGE_STRING@
  84264. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  84265. +PACKAGE_URL = @PACKAGE_URL@
  84266. PACKAGE_VERSION = @PACKAGE_VERSION@
  84267. PATH_SEPARATOR = @PATH_SEPARATOR@
  84268. RANLIB = @RANLIB@
  84269. @@ -267,22 +278,27 @@
  84270. U = @U@
  84271. U_FOR_BUILD = @U_FOR_BUILD@
  84272. VERSION = @VERSION@
  84273. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  84274. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  84275. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  84276. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  84277. WITH_READLINE_01 = @WITH_READLINE_01@
  84278. YACC = @YACC@
  84279. YFLAGS = @YFLAGS@
  84280. +abs_builddir = @abs_builddir@
  84281. +abs_srcdir = @abs_srcdir@
  84282. +abs_top_builddir = @abs_top_builddir@
  84283. +abs_top_srcdir = @abs_top_srcdir@
  84284. ac_ct_CC = @ac_ct_CC@
  84285. ac_ct_CXX = @ac_ct_CXX@
  84286. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  84287. +ac_ct_F77 = @ac_ct_F77@
  84288. am__leading_dot = @am__leading_dot@
  84289. +am__tar = @am__tar@
  84290. +am__untar = @am__untar@
  84291. bindir = @bindir@
  84292. build = @build@
  84293. build_alias = @build_alias@
  84294. build_cpu = @build_cpu@
  84295. build_os = @build_os@
  84296. build_vendor = @build_vendor@
  84297. +builddir = @builddir@
  84298. datadir = @datadir@
  84299. datarootdir = @datarootdir@
  84300. docdir = @docdir@
  84301. @@ -302,6 +318,7 @@
  84302. libexecdir = @libexecdir@
  84303. localedir = @localedir@
  84304. localstatedir = @localstatedir@
  84305. +lt_ECHO = @lt_ECHO@
  84306. mandir = @mandir@
  84307. mkdir_p = @mkdir_p@
  84308. mpn_objects = @mpn_objects@
  84309. @@ -314,8 +331,12 @@
  84310. psdir = @psdir@
  84311. sbindir = @sbindir@
  84312. sharedstatedir = @sharedstatedir@
  84313. +srcdir = @srcdir@
  84314. sysconfdir = @sysconfdir@
  84315. target_alias = @target_alias@
  84316. +top_build_prefix = @top_build_prefix@
  84317. +top_builddir = @top_builddir@
  84318. +top_srcdir = @top_srcdir@
  84319. # LDADD has an explicit -L of $(top_builddir)/.libs for the benefit of gcc
  84320. # 3.2 on itanium2-hp-hpux11.22. Without this option, the libgmp.sl.6
  84321. @@ -364,14 +385,14 @@
  84322. @for dep in $?; do \
  84323. case '$(am__configure_deps)' in \
  84324. *$$dep*) \
  84325. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  84326. - && exit 0; \
  84327. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  84328. + && { if test -f $@; then exit 0; else break; fi; }; \
  84329. exit 1;; \
  84330. esac; \
  84331. done; \
  84332. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/cxx/Makefile'; \
  84333. - cd $(top_srcdir) && \
  84334. - $(AUTOMAKE) --gnu --ignore-deps tests/cxx/Makefile
  84335. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/cxx/Makefile'; \
  84336. + $(am__cd) $(top_srcdir) && \
  84337. + $(AUTOMAKE) --gnu --ignore-deps tests/cxx/Makefile
  84338. .PRECIOUS: Makefile
  84339. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  84340. @case '$?' in \
  84341. @@ -389,55 +410,58 @@
  84342. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  84343. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  84344. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  84345. +$(am__aclocal_m4_deps):
  84346. clean-checkPROGRAMS:
  84347. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  84348. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  84349. - echo " rm -f $$p $$f"; \
  84350. - rm -f $$p $$f ; \
  84351. - done
  84352. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  84353. + echo " rm -f" $$list; \
  84354. + rm -f $$list || exit $$?; \
  84355. + test -n "$(EXEEXT)" || exit 0; \
  84356. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  84357. + echo " rm -f" $$list; \
  84358. + rm -f $$list
  84359. t-assign$(EXEEXT): $(t_assign_OBJECTS) $(t_assign_DEPENDENCIES)
  84360. @rm -f t-assign$(EXEEXT)
  84361. - $(CXXLINK) $(t_assign_LDFLAGS) $(t_assign_OBJECTS) $(t_assign_LDADD) $(LIBS)
  84362. + $(CXXLINK) $(t_assign_OBJECTS) $(t_assign_LDADD) $(LIBS)
  84363. t-binary$(EXEEXT): $(t_binary_OBJECTS) $(t_binary_DEPENDENCIES)
  84364. @rm -f t-binary$(EXEEXT)
  84365. - $(CXXLINK) $(t_binary_LDFLAGS) $(t_binary_OBJECTS) $(t_binary_LDADD) $(LIBS)
  84366. + $(CXXLINK) $(t_binary_OBJECTS) $(t_binary_LDADD) $(LIBS)
  84367. t-cast$(EXEEXT): $(t_cast_OBJECTS) $(t_cast_DEPENDENCIES)
  84368. @rm -f t-cast$(EXEEXT)
  84369. - $(CXXLINK) $(t_cast_LDFLAGS) $(t_cast_OBJECTS) $(t_cast_LDADD) $(LIBS)
  84370. + $(CXXLINK) $(t_cast_OBJECTS) $(t_cast_LDADD) $(LIBS)
  84371. t-constr$(EXEEXT): $(t_constr_OBJECTS) $(t_constr_DEPENDENCIES)
  84372. @rm -f t-constr$(EXEEXT)
  84373. - $(CXXLINK) $(t_constr_LDFLAGS) $(t_constr_OBJECTS) $(t_constr_LDADD) $(LIBS)
  84374. + $(CXXLINK) $(t_constr_OBJECTS) $(t_constr_LDADD) $(LIBS)
  84375. t-headers$(EXEEXT): $(t_headers_OBJECTS) $(t_headers_DEPENDENCIES)
  84376. @rm -f t-headers$(EXEEXT)
  84377. - $(CXXLINK) $(t_headers_LDFLAGS) $(t_headers_OBJECTS) $(t_headers_LDADD) $(LIBS)
  84378. + $(CXXLINK) $(t_headers_OBJECTS) $(t_headers_LDADD) $(LIBS)
  84379. t-istream$(EXEEXT): $(t_istream_OBJECTS) $(t_istream_DEPENDENCIES)
  84380. @rm -f t-istream$(EXEEXT)
  84381. - $(CXXLINK) $(t_istream_LDFLAGS) $(t_istream_OBJECTS) $(t_istream_LDADD) $(LIBS)
  84382. + $(CXXLINK) $(t_istream_OBJECTS) $(t_istream_LDADD) $(LIBS)
  84383. t-locale$(EXEEXT): $(t_locale_OBJECTS) $(t_locale_DEPENDENCIES)
  84384. @rm -f t-locale$(EXEEXT)
  84385. - $(CXXLINK) $(t_locale_LDFLAGS) $(t_locale_OBJECTS) $(t_locale_LDADD) $(LIBS)
  84386. + $(CXXLINK) $(t_locale_OBJECTS) $(t_locale_LDADD) $(LIBS)
  84387. t-misc$(EXEEXT): $(t_misc_OBJECTS) $(t_misc_DEPENDENCIES)
  84388. @rm -f t-misc$(EXEEXT)
  84389. - $(CXXLINK) $(t_misc_LDFLAGS) $(t_misc_OBJECTS) $(t_misc_LDADD) $(LIBS)
  84390. + $(CXXLINK) $(t_misc_OBJECTS) $(t_misc_LDADD) $(LIBS)
  84391. t-ops$(EXEEXT): $(t_ops_OBJECTS) $(t_ops_DEPENDENCIES)
  84392. @rm -f t-ops$(EXEEXT)
  84393. - $(CXXLINK) $(t_ops_LDFLAGS) $(t_ops_OBJECTS) $(t_ops_LDADD) $(LIBS)
  84394. + $(CXXLINK) $(t_ops_OBJECTS) $(t_ops_LDADD) $(LIBS)
  84395. t-ostream$(EXEEXT): $(t_ostream_OBJECTS) $(t_ostream_DEPENDENCIES)
  84396. @rm -f t-ostream$(EXEEXT)
  84397. - $(CXXLINK) $(t_ostream_LDFLAGS) $(t_ostream_OBJECTS) $(t_ostream_LDADD) $(LIBS)
  84398. + $(CXXLINK) $(t_ostream_OBJECTS) $(t_ostream_LDADD) $(LIBS)
  84399. t-prec$(EXEEXT): $(t_prec_OBJECTS) $(t_prec_DEPENDENCIES)
  84400. @rm -f t-prec$(EXEEXT)
  84401. - $(CXXLINK) $(t_prec_LDFLAGS) $(t_prec_OBJECTS) $(t_prec_LDADD) $(LIBS)
  84402. + $(CXXLINK) $(t_prec_OBJECTS) $(t_prec_LDADD) $(LIBS)
  84403. t-rand$(EXEEXT): $(t_rand_OBJECTS) $(t_rand_DEPENDENCIES)
  84404. @rm -f t-rand$(EXEEXT)
  84405. - $(CXXLINK) $(t_rand_LDFLAGS) $(t_rand_OBJECTS) $(t_rand_LDADD) $(LIBS)
  84406. + $(CXXLINK) $(t_rand_OBJECTS) $(t_rand_LDADD) $(LIBS)
  84407. t-ternary$(EXEEXT): $(t_ternary_OBJECTS) $(t_ternary_DEPENDENCIES)
  84408. @rm -f t-ternary$(EXEEXT)
  84409. - $(CXXLINK) $(t_ternary_LDFLAGS) $(t_ternary_OBJECTS) $(t_ternary_LDADD) $(LIBS)
  84410. + $(CXXLINK) $(t_ternary_OBJECTS) $(t_ternary_LDADD) $(LIBS)
  84411. t-unary$(EXEEXT): $(t_unary_OBJECTS) $(t_unary_DEPENDENCIES)
  84412. @rm -f t-unary$(EXEEXT)
  84413. - $(CXXLINK) $(t_unary_LDFLAGS) $(t_unary_OBJECTS) $(t_unary_LDADD) $(LIBS)
  84414. + $(CXXLINK) $(t_unary_OBJECTS) $(t_unary_LDADD) $(LIBS)
  84415. mostlyclean-compile:
  84416. -rm -f *.$(OBJEXT)
  84417. @@ -445,7 +469,7 @@
  84418. distclean-compile:
  84419. -rm -f *.tab.c
  84420. $(top_builddir)/ansi2knr:
  84421. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  84422. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  84423. mostlyclean-kr:
  84424. -test "$U" = "" || rm -f *_.c
  84425. @@ -477,54 +501,54 @@
  84426. clean-libtool:
  84427. -rm -rf .libs _libs
  84428. -distclean-libtool:
  84429. - -rm -f libtool
  84430. -uninstall-info-am:
  84431. -
  84432. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  84433. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  84434. unique=`for i in $$list; do \
  84435. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  84436. done | \
  84437. - $(AWK) ' { files[$$0] = 1; } \
  84438. - END { for (i in files) print i; }'`; \
  84439. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  84440. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  84441. mkid -fID $$unique
  84442. tags: TAGS
  84443. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  84444. $(TAGS_FILES) $(LISP)
  84445. - tags=; \
  84446. + set x; \
  84447. here=`pwd`; \
  84448. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  84449. unique=`for i in $$list; do \
  84450. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  84451. done | \
  84452. - $(AWK) ' { files[$$0] = 1; } \
  84453. - END { for (i in files) print i; }'`; \
  84454. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  84455. - test -z "$$unique" && unique=$$empty_fix; \
  84456. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  84457. - $$tags $$unique; \
  84458. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  84459. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  84460. + shift; \
  84461. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  84462. + test -n "$$unique" || unique=$$empty_fix; \
  84463. + if test $$# -gt 0; then \
  84464. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  84465. + "$$@" $$unique; \
  84466. + else \
  84467. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  84468. + $$unique; \
  84469. + fi; \
  84470. fi
  84471. ctags: CTAGS
  84472. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  84473. $(TAGS_FILES) $(LISP)
  84474. - tags=; \
  84475. - here=`pwd`; \
  84476. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  84477. unique=`for i in $$list; do \
  84478. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  84479. done | \
  84480. - $(AWK) ' { files[$$0] = 1; } \
  84481. - END { for (i in files) print i; }'`; \
  84482. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  84483. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  84484. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  84485. + test -z "$(CTAGS_ARGS)$$unique" \
  84486. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  84487. - $$tags $$unique
  84488. + $$unique
  84489. GTAGS:
  84490. here=`$(am__cd) $(top_builddir) && pwd` \
  84491. - && cd $(top_srcdir) \
  84492. - && gtags -i $(GTAGS_ARGS) $$here
  84493. + && $(am__cd) $(top_srcdir) \
  84494. + && gtags -i $(GTAGS_ARGS) "$$here"
  84495. distclean-tags:
  84496. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  84497. @@ -532,7 +556,8 @@
  84498. check-TESTS: $(TESTS)
  84499. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  84500. srcdir=$(srcdir); export srcdir; \
  84501. - list='$(TESTS)'; \
  84502. + list=' $(TESTS) '; \
  84503. + $(am__tty_colors); \
  84504. if test -n "$$list"; then \
  84505. for tst in $$list; do \
  84506. if test -f ./$$tst; then dir=./; \
  84507. @@ -541,91 +566,112 @@
  84508. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  84509. all=`expr $$all + 1`; \
  84510. case " $(XFAIL_TESTS) " in \
  84511. - *" $$tst "*) \
  84512. + *[\ \ ]$$tst[\ \ ]*) \
  84513. xpass=`expr $$xpass + 1`; \
  84514. failed=`expr $$failed + 1`; \
  84515. - echo "XPASS: $$tst"; \
  84516. + col=$$red; res=XPASS; \
  84517. ;; \
  84518. *) \
  84519. - echo "PASS: $$tst"; \
  84520. + col=$$grn; res=PASS; \
  84521. ;; \
  84522. esac; \
  84523. elif test $$? -ne 77; then \
  84524. all=`expr $$all + 1`; \
  84525. case " $(XFAIL_TESTS) " in \
  84526. - *" $$tst "*) \
  84527. + *[\ \ ]$$tst[\ \ ]*) \
  84528. xfail=`expr $$xfail + 1`; \
  84529. - echo "XFAIL: $$tst"; \
  84530. + col=$$lgn; res=XFAIL; \
  84531. ;; \
  84532. *) \
  84533. failed=`expr $$failed + 1`; \
  84534. - echo "FAIL: $$tst"; \
  84535. + col=$$red; res=FAIL; \
  84536. ;; \
  84537. esac; \
  84538. else \
  84539. skip=`expr $$skip + 1`; \
  84540. - echo "SKIP: $$tst"; \
  84541. + col=$$blu; res=SKIP; \
  84542. fi; \
  84543. + echo "$${col}$$res$${std}: $$tst"; \
  84544. done; \
  84545. + if test "$$all" -eq 1; then \
  84546. + tests="test"; \
  84547. + All=""; \
  84548. + else \
  84549. + tests="tests"; \
  84550. + All="All "; \
  84551. + fi; \
  84552. if test "$$failed" -eq 0; then \
  84553. if test "$$xfail" -eq 0; then \
  84554. - banner="All $$all tests passed"; \
  84555. + banner="$$All$$all $$tests passed"; \
  84556. else \
  84557. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  84558. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  84559. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  84560. fi; \
  84561. else \
  84562. if test "$$xpass" -eq 0; then \
  84563. - banner="$$failed of $$all tests failed"; \
  84564. + banner="$$failed of $$all $$tests failed"; \
  84565. else \
  84566. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  84567. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  84568. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  84569. fi; \
  84570. fi; \
  84571. dashes="$$banner"; \
  84572. skipped=""; \
  84573. if test "$$skip" -ne 0; then \
  84574. - skipped="($$skip tests were not run)"; \
  84575. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  84576. + if test "$$skip" -eq 1; then \
  84577. + skipped="($$skip test was not run)"; \
  84578. + else \
  84579. + skipped="($$skip tests were not run)"; \
  84580. + fi; \
  84581. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  84582. dashes="$$skipped"; \
  84583. fi; \
  84584. report=""; \
  84585. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  84586. report="Please report to $(PACKAGE_BUGREPORT)"; \
  84587. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  84588. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  84589. dashes="$$report"; \
  84590. fi; \
  84591. dashes=`echo "$$dashes" | sed s/./=/g`; \
  84592. - echo "$$dashes"; \
  84593. + if test "$$failed" -eq 0; then \
  84594. + echo "$$grn$$dashes"; \
  84595. + else \
  84596. + echo "$$red$$dashes"; \
  84597. + fi; \
  84598. echo "$$banner"; \
  84599. - test -n "$$skipped" && echo "$$skipped"; \
  84600. - test -n "$$report" && echo "$$report"; \
  84601. - echo "$$dashes"; \
  84602. + test -z "$$skipped" || echo "$$skipped"; \
  84603. + test -z "$$report" || echo "$$report"; \
  84604. + echo "$$dashes$$std"; \
  84605. test "$$failed" -eq 0; \
  84606. else :; fi
  84607. distdir: $(DISTFILES)
  84608. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  84609. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  84610. - list='$(DISTFILES)'; for file in $$list; do \
  84611. - case $$file in \
  84612. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  84613. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  84614. - esac; \
  84615. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  84616. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  84617. + list='$(DISTFILES)'; \
  84618. + dist_files=`for file in $$list; do echo $$file; done | \
  84619. + sed -e "s|^$$srcdirstrip/||;t" \
  84620. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  84621. + case $$dist_files in \
  84622. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  84623. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  84624. + sort -u` ;; \
  84625. + esac; \
  84626. + for file in $$dist_files; do \
  84627. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  84628. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  84629. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  84630. - dir="/$$dir"; \
  84631. - $(mkdir_p) "$(distdir)$$dir"; \
  84632. - else \
  84633. - dir=''; \
  84634. - fi; \
  84635. if test -d $$d/$$file; then \
  84636. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  84637. + if test -d "$(distdir)/$$file"; then \
  84638. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  84639. + fi; \
  84640. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  84641. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  84642. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  84643. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  84644. fi; \
  84645. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  84646. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  84647. else \
  84648. - test -f $(distdir)/$$file \
  84649. - || cp -p $$d/$$file $(distdir)/$$file \
  84650. + test -f "$(distdir)/$$file" \
  84651. + || cp -p $$d/$$file "$(distdir)/$$file" \
  84652. || exit 1; \
  84653. fi; \
  84654. done
  84655. @@ -654,7 +700,8 @@
  84656. clean-generic:
  84657. distclean-generic:
  84658. - -rm -f $(CONFIG_CLEAN_FILES)
  84659. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  84660. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  84661. maintainer-clean-generic:
  84662. @echo "This command is intended for maintainers to use"
  84663. @@ -667,7 +714,7 @@
  84664. distclean: distclean-am
  84665. -rm -f Makefile
  84666. distclean-am: clean-am distclean-compile distclean-generic \
  84667. - distclean-libtool distclean-tags
  84668. + distclean-tags
  84669. dvi: dvi-am
  84670. @@ -675,18 +722,38 @@
  84671. html: html-am
  84672. +html-am:
  84673. +
  84674. info: info-am
  84675. info-am:
  84676. install-data-am:
  84677. +install-dvi: install-dvi-am
  84678. +
  84679. +install-dvi-am:
  84680. +
  84681. install-exec-am:
  84682. +install-html: install-html-am
  84683. +
  84684. +install-html-am:
  84685. +
  84686. install-info: install-info-am
  84687. +install-info-am:
  84688. +
  84689. install-man:
  84690. +install-pdf: install-pdf-am
  84691. +
  84692. +install-pdf-am:
  84693. +
  84694. +install-ps: install-ps-am
  84695. +
  84696. +install-ps-am:
  84697. +
  84698. installcheck-am:
  84699. maintainer-clean: maintainer-clean-am
  84700. @@ -706,23 +773,28 @@
  84701. ps-am:
  84702. -uninstall-am: uninstall-info-am
  84703. +uninstall-am:
  84704. +
  84705. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  84706. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  84707. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  84708. distclean distclean-compile distclean-generic \
  84709. distclean-libtool distclean-tags distdir dvi dvi-am html \
  84710. html-am info info-am install install-am install-data \
  84711. - install-data-am install-exec install-exec-am install-info \
  84712. - install-info-am install-man install-strip installcheck \
  84713. + install-data-am install-dvi install-dvi-am install-exec \
  84714. + install-exec-am install-html install-html-am install-info \
  84715. + install-info-am install-man install-pdf install-pdf-am \
  84716. + install-ps install-ps-am install-strip installcheck \
  84717. installcheck-am installdirs maintainer-clean \
  84718. maintainer-clean-generic mostlyclean mostlyclean-compile \
  84719. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  84720. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  84721. + pdf-am ps ps-am tags uninstall uninstall-am
  84722. $(top_builddir)/tests/libtests.la:
  84723. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  84724. +
  84725. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  84726. # Otherwise a system limit (for SysV at least) may be exceeded.
  84727. .NOEXPORT:
  84728. diff -Nur gmp-4.3.2.orig/tests/devel/Makefile.in gmp-4.3.2/tests/devel/Makefile.in
  84729. --- gmp-4.3.2.orig/tests/devel/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  84730. +++ gmp-4.3.2/tests/devel/Makefile.in 2011-02-16 19:23:20.473552400 +0100
  84731. @@ -1,8 +1,9 @@
  84732. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  84733. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  84734. # @configure_input@
  84735. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  84736. -# 2003, 2004 Free Software Foundation, Inc.
  84737. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  84738. +# Inc.
  84739. # This Makefile.in is free software; the Free Software Foundation
  84740. # gives unlimited permission to copy and/or distribute it,
  84741. # with or without modifications, as long as this notice is preserved.
  84742. @@ -30,17 +31,12 @@
  84743. #
  84744. # You should have received a copy of the GNU Lesser General Public License
  84745. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  84746. -SOURCES = anymul_1.c aors_n.c copy.c divmod_1.c divrem.c logops_n.c shift.c try.c tst-addsub.c
  84747. -
  84748. -srcdir = @srcdir@
  84749. -top_srcdir = @top_srcdir@
  84750. VPATH = @srcdir@
  84751. pkgdatadir = $(datadir)/@PACKAGE@
  84752. -pkglibdir = $(libdir)/@PACKAGE@
  84753. pkgincludedir = $(includedir)/@PACKAGE@
  84754. -top_builddir = ../..
  84755. +pkglibdir = $(libdir)/@PACKAGE@
  84756. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  84757. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  84758. -INSTALL = @INSTALL@
  84759. install_sh_DATA = $(install_sh) -c -m 644
  84760. install_sh_PROGRAM = $(install_sh) -c
  84761. install_sh_SCRIPT = $(install_sh) -c
  84762. @@ -52,6 +48,7 @@
  84763. NORMAL_UNINSTALL = :
  84764. PRE_UNINSTALL = :
  84765. POST_UNINSTALL = :
  84766. +build_triplet = @build@
  84767. host_triplet = @host@
  84768. ANSI2KNR = $(top_builddir)/ansi2knr
  84769. EXTRA_PROGRAMS = aors_n$(EXEEXT) anymul_1$(EXEEXT) copy$(EXEEXT) \
  84770. @@ -64,9 +61,10 @@
  84771. $(top_srcdir)/configure.in
  84772. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  84773. $(ACLOCAL_M4)
  84774. -mkinstalldirs = $(mkdir_p)
  84775. +mkinstalldirs = $(install_sh) -d
  84776. CONFIG_HEADER = $(top_builddir)/config.h
  84777. CONFIG_CLEAN_FILES =
  84778. +CONFIG_CLEAN_VPATH_FILES =
  84779. anymul_1_SOURCES = anymul_1.c
  84780. anymul_1_OBJECTS = anymul_1$U.$(OBJEXT)
  84781. anymul_1_LDADD = $(LDADD)
  84782. @@ -112,17 +110,18 @@
  84783. tst_addsub_LDADD = $(LDADD)
  84784. tst_addsub_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  84785. $(top_builddir)/libgmp.la
  84786. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  84787. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  84788. depcomp =
  84789. am__depfiles_maybe =
  84790. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  84791. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  84792. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  84793. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  84794. - $(AM_CFLAGS) $(CFLAGS)
  84795. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84796. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  84797. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  84798. CCLD = $(CC)
  84799. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  84800. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  84801. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  84802. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  84803. + $(LDFLAGS) -o $@
  84804. SOURCES = anymul_1.c aors_n.c copy.c divmod_1.c divrem.c logops_n.c \
  84805. shift.c try.c tst-addsub.c
  84806. DIST_SOURCES = anymul_1.c aors_n.c copy.c divmod_1.c divrem.c \
  84807. @@ -156,15 +155,17 @@
  84808. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  84809. DEFS = @DEFS@
  84810. DLLTOOL = @DLLTOOL@
  84811. -ECHO = @ECHO@
  84812. +DSYMUTIL = @DSYMUTIL@
  84813. +DUMPBIN = @DUMPBIN@
  84814. ECHO_C = @ECHO_C@
  84815. ECHO_N = @ECHO_N@
  84816. ECHO_T = @ECHO_T@
  84817. EGREP = @EGREP@
  84818. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  84819. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  84820. EXEEXT = @EXEEXT@
  84821. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  84822. +F77 = @F77@
  84823. +FFLAGS = @FFLAGS@
  84824. +FGREP = @FGREP@
  84825. GMP_LDFLAGS = @GMP_LDFLAGS@
  84826. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  84827. GREP = @GREP@
  84828. @@ -179,10 +180,12 @@
  84829. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  84830. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  84831. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  84832. +INSTALL = @INSTALL@
  84833. INSTALL_DATA = @INSTALL_DATA@
  84834. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  84835. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  84836. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  84837. +LD = @LD@
  84838. LDFLAGS = @LDFLAGS@
  84839. LEX = @LEX@
  84840. LEXLIB = @LEXLIB@
  84841. @@ -197,20 +200,25 @@
  84842. LIBREADLINE = @LIBREADLINE@
  84843. LIBS = @LIBS@
  84844. LIBTOOL = @LIBTOOL@
  84845. +LIPO = @LIPO@
  84846. LN_S = @LN_S@
  84847. LTLIBOBJS = @LTLIBOBJS@
  84848. M4 = @M4@
  84849. MAINT = @MAINT@
  84850. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  84851. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  84852. MAKEINFO = @MAKEINFO@
  84853. +MKDIR_P = @MKDIR_P@
  84854. +NM = @NM@
  84855. +NMEDIT = @NMEDIT@
  84856. OBJDUMP = @OBJDUMP@
  84857. OBJEXT = @OBJEXT@
  84858. +OTOOL = @OTOOL@
  84859. +OTOOL64 = @OTOOL64@
  84860. PACKAGE = @PACKAGE@
  84861. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  84862. PACKAGE_NAME = @PACKAGE_NAME@
  84863. PACKAGE_STRING = @PACKAGE_STRING@
  84864. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  84865. +PACKAGE_URL = @PACKAGE_URL@
  84866. PACKAGE_VERSION = @PACKAGE_VERSION@
  84867. PATH_SEPARATOR = @PATH_SEPARATOR@
  84868. RANLIB = @RANLIB@
  84869. @@ -224,22 +232,27 @@
  84870. U = @U@
  84871. U_FOR_BUILD = @U_FOR_BUILD@
  84872. VERSION = @VERSION@
  84873. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  84874. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  84875. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  84876. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  84877. WITH_READLINE_01 = @WITH_READLINE_01@
  84878. YACC = @YACC@
  84879. YFLAGS = @YFLAGS@
  84880. +abs_builddir = @abs_builddir@
  84881. +abs_srcdir = @abs_srcdir@
  84882. +abs_top_builddir = @abs_top_builddir@
  84883. +abs_top_srcdir = @abs_top_srcdir@
  84884. ac_ct_CC = @ac_ct_CC@
  84885. ac_ct_CXX = @ac_ct_CXX@
  84886. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  84887. +ac_ct_F77 = @ac_ct_F77@
  84888. am__leading_dot = @am__leading_dot@
  84889. +am__tar = @am__tar@
  84890. +am__untar = @am__untar@
  84891. bindir = @bindir@
  84892. build = @build@
  84893. build_alias = @build_alias@
  84894. build_cpu = @build_cpu@
  84895. build_os = @build_os@
  84896. build_vendor = @build_vendor@
  84897. +builddir = @builddir@
  84898. datadir = @datadir@
  84899. datarootdir = @datarootdir@
  84900. docdir = @docdir@
  84901. @@ -259,6 +272,7 @@
  84902. libexecdir = @libexecdir@
  84903. localedir = @localedir@
  84904. localstatedir = @localstatedir@
  84905. +lt_ECHO = @lt_ECHO@
  84906. mandir = @mandir@
  84907. mkdir_p = @mkdir_p@
  84908. mpn_objects = @mpn_objects@
  84909. @@ -271,8 +285,12 @@
  84910. psdir = @psdir@
  84911. sbindir = @sbindir@
  84912. sharedstatedir = @sharedstatedir@
  84913. +srcdir = @srcdir@
  84914. sysconfdir = @sysconfdir@
  84915. target_alias = @target_alias@
  84916. +top_build_prefix = @top_build_prefix@
  84917. +top_builddir = @top_builddir@
  84918. +top_srcdir = @top_srcdir@
  84919. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  84920. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  84921. CLEANFILES = $(EXTRA_PROGRAMS)
  84922. @@ -284,14 +302,14 @@
  84923. @for dep in $?; do \
  84924. case '$(am__configure_deps)' in \
  84925. *$$dep*) \
  84926. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  84927. - && exit 0; \
  84928. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  84929. + && { if test -f $@; then exit 0; else break; fi; }; \
  84930. exit 1;; \
  84931. esac; \
  84932. done; \
  84933. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/devel/Makefile'; \
  84934. - cd $(top_srcdir) && \
  84935. - $(AUTOMAKE) --gnu --ignore-deps tests/devel/Makefile
  84936. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/devel/Makefile'; \
  84937. + $(am__cd) $(top_srcdir) && \
  84938. + $(AUTOMAKE) --gnu --ignore-deps tests/devel/Makefile
  84939. .PRECIOUS: Makefile
  84940. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  84941. @case '$?' in \
  84942. @@ -309,33 +327,34 @@
  84943. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  84944. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  84945. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  84946. +$(am__aclocal_m4_deps):
  84947. anymul_1$(EXEEXT): $(anymul_1_OBJECTS) $(anymul_1_DEPENDENCIES)
  84948. @rm -f anymul_1$(EXEEXT)
  84949. - $(LINK) $(anymul_1_LDFLAGS) $(anymul_1_OBJECTS) $(anymul_1_LDADD) $(LIBS)
  84950. + $(LINK) $(anymul_1_OBJECTS) $(anymul_1_LDADD) $(LIBS)
  84951. aors_n$(EXEEXT): $(aors_n_OBJECTS) $(aors_n_DEPENDENCIES)
  84952. @rm -f aors_n$(EXEEXT)
  84953. - $(LINK) $(aors_n_LDFLAGS) $(aors_n_OBJECTS) $(aors_n_LDADD) $(LIBS)
  84954. + $(LINK) $(aors_n_OBJECTS) $(aors_n_LDADD) $(LIBS)
  84955. copy$(EXEEXT): $(copy_OBJECTS) $(copy_DEPENDENCIES)
  84956. @rm -f copy$(EXEEXT)
  84957. - $(LINK) $(copy_LDFLAGS) $(copy_OBJECTS) $(copy_LDADD) $(LIBS)
  84958. + $(LINK) $(copy_OBJECTS) $(copy_LDADD) $(LIBS)
  84959. divmod_1$(EXEEXT): $(divmod_1_OBJECTS) $(divmod_1_DEPENDENCIES)
  84960. @rm -f divmod_1$(EXEEXT)
  84961. - $(LINK) $(divmod_1_LDFLAGS) $(divmod_1_OBJECTS) $(divmod_1_LDADD) $(LIBS)
  84962. + $(LINK) $(divmod_1_OBJECTS) $(divmod_1_LDADD) $(LIBS)
  84963. divrem$(EXEEXT): $(divrem_OBJECTS) $(divrem_DEPENDENCIES)
  84964. @rm -f divrem$(EXEEXT)
  84965. - $(LINK) $(divrem_LDFLAGS) $(divrem_OBJECTS) $(divrem_LDADD) $(LIBS)
  84966. + $(LINK) $(divrem_OBJECTS) $(divrem_LDADD) $(LIBS)
  84967. logops_n$(EXEEXT): $(logops_n_OBJECTS) $(logops_n_DEPENDENCIES)
  84968. @rm -f logops_n$(EXEEXT)
  84969. - $(LINK) $(logops_n_LDFLAGS) $(logops_n_OBJECTS) $(logops_n_LDADD) $(LIBS)
  84970. + $(LINK) $(logops_n_OBJECTS) $(logops_n_LDADD) $(LIBS)
  84971. shift$(EXEEXT): $(shift_OBJECTS) $(shift_DEPENDENCIES)
  84972. @rm -f shift$(EXEEXT)
  84973. - $(LINK) $(shift_LDFLAGS) $(shift_OBJECTS) $(shift_LDADD) $(LIBS)
  84974. + $(LINK) $(shift_OBJECTS) $(shift_LDADD) $(LIBS)
  84975. try$(EXEEXT): $(try_OBJECTS) $(try_DEPENDENCIES)
  84976. @rm -f try$(EXEEXT)
  84977. - $(LINK) $(try_LDFLAGS) $(try_OBJECTS) $(try_LDADD) $(LIBS)
  84978. + $(LINK) $(try_OBJECTS) $(try_LDADD) $(LIBS)
  84979. tst-addsub$(EXEEXT): $(tst_addsub_OBJECTS) $(tst_addsub_DEPENDENCIES)
  84980. @rm -f tst-addsub$(EXEEXT)
  84981. - $(LINK) $(tst_addsub_LDFLAGS) $(tst_addsub_OBJECTS) $(tst_addsub_LDADD) $(LIBS)
  84982. + $(LINK) $(tst_addsub_OBJECTS) $(tst_addsub_LDADD) $(LIBS)
  84983. mostlyclean-compile:
  84984. -rm -f *.$(OBJEXT)
  84985. @@ -343,7 +362,7 @@
  84986. distclean-compile:
  84987. -rm -f *.tab.c
  84988. $(top_builddir)/ansi2knr:
  84989. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  84990. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  84991. mostlyclean-kr:
  84992. -test "$U" = "" || rm -f *_.c
  84993. @@ -386,82 +405,85 @@
  84994. clean-libtool:
  84995. -rm -rf .libs _libs
  84996. -distclean-libtool:
  84997. - -rm -f libtool
  84998. -uninstall-info-am:
  84999. -
  85000. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  85001. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  85002. unique=`for i in $$list; do \
  85003. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85004. done | \
  85005. - $(AWK) ' { files[$$0] = 1; } \
  85006. - END { for (i in files) print i; }'`; \
  85007. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85008. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85009. mkid -fID $$unique
  85010. tags: TAGS
  85011. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  85012. $(TAGS_FILES) $(LISP)
  85013. - tags=; \
  85014. + set x; \
  85015. here=`pwd`; \
  85016. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  85017. unique=`for i in $$list; do \
  85018. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85019. done | \
  85020. - $(AWK) ' { files[$$0] = 1; } \
  85021. - END { for (i in files) print i; }'`; \
  85022. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  85023. - test -z "$$unique" && unique=$$empty_fix; \
  85024. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85025. - $$tags $$unique; \
  85026. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85027. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85028. + shift; \
  85029. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  85030. + test -n "$$unique" || unique=$$empty_fix; \
  85031. + if test $$# -gt 0; then \
  85032. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85033. + "$$@" $$unique; \
  85034. + else \
  85035. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85036. + $$unique; \
  85037. + fi; \
  85038. fi
  85039. ctags: CTAGS
  85040. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  85041. $(TAGS_FILES) $(LISP)
  85042. - tags=; \
  85043. - here=`pwd`; \
  85044. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  85045. unique=`for i in $$list; do \
  85046. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85047. done | \
  85048. - $(AWK) ' { files[$$0] = 1; } \
  85049. - END { for (i in files) print i; }'`; \
  85050. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  85051. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85052. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85053. + test -z "$(CTAGS_ARGS)$$unique" \
  85054. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  85055. - $$tags $$unique
  85056. + $$unique
  85057. GTAGS:
  85058. here=`$(am__cd) $(top_builddir) && pwd` \
  85059. - && cd $(top_srcdir) \
  85060. - && gtags -i $(GTAGS_ARGS) $$here
  85061. + && $(am__cd) $(top_srcdir) \
  85062. + && gtags -i $(GTAGS_ARGS) "$$here"
  85063. distclean-tags:
  85064. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  85065. distdir: $(DISTFILES)
  85066. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  85067. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  85068. - list='$(DISTFILES)'; for file in $$list; do \
  85069. - case $$file in \
  85070. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  85071. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  85072. - esac; \
  85073. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  85074. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  85075. + list='$(DISTFILES)'; \
  85076. + dist_files=`for file in $$list; do echo $$file; done | \
  85077. + sed -e "s|^$$srcdirstrip/||;t" \
  85078. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  85079. + case $$dist_files in \
  85080. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  85081. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  85082. + sort -u` ;; \
  85083. + esac; \
  85084. + for file in $$dist_files; do \
  85085. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  85086. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  85087. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  85088. - dir="/$$dir"; \
  85089. - $(mkdir_p) "$(distdir)$$dir"; \
  85090. - else \
  85091. - dir=''; \
  85092. - fi; \
  85093. if test -d $$d/$$file; then \
  85094. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  85095. + if test -d "$(distdir)/$$file"; then \
  85096. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  85097. + fi; \
  85098. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  85099. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  85100. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  85101. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  85102. fi; \
  85103. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  85104. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  85105. else \
  85106. - test -f $(distdir)/$$file \
  85107. - || cp -p $$d/$$file $(distdir)/$$file \
  85108. + test -f "$(distdir)/$$file" \
  85109. + || cp -p $$d/$$file "$(distdir)/$$file" \
  85110. || exit 1; \
  85111. fi; \
  85112. done
  85113. @@ -489,7 +511,8 @@
  85114. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  85115. distclean-generic:
  85116. - -rm -f $(CONFIG_CLEAN_FILES)
  85117. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  85118. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  85119. maintainer-clean-generic:
  85120. @echo "This command is intended for maintainers to use"
  85121. @@ -501,7 +524,7 @@
  85122. distclean: distclean-am
  85123. -rm -f Makefile
  85124. distclean-am: clean-am distclean-compile distclean-generic \
  85125. - distclean-libtool distclean-tags
  85126. + distclean-tags
  85127. dvi: dvi-am
  85128. @@ -509,18 +532,38 @@
  85129. html: html-am
  85130. +html-am:
  85131. +
  85132. info: info-am
  85133. info-am:
  85134. install-data-am:
  85135. +install-dvi: install-dvi-am
  85136. +
  85137. +install-dvi-am:
  85138. +
  85139. install-exec-am:
  85140. +install-html: install-html-am
  85141. +
  85142. +install-html-am:
  85143. +
  85144. install-info: install-info-am
  85145. +install-info-am:
  85146. +
  85147. install-man:
  85148. +install-pdf: install-pdf-am
  85149. +
  85150. +install-pdf-am:
  85151. +
  85152. +install-ps: install-ps-am
  85153. +
  85154. +install-ps-am:
  85155. +
  85156. installcheck-am:
  85157. maintainer-clean: maintainer-clean-am
  85158. @@ -540,24 +583,29 @@
  85159. ps-am:
  85160. -uninstall-am: uninstall-info-am
  85161. +uninstall-am:
  85162. +
  85163. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  85164. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  85165. clean-libtool ctags distclean distclean-compile \
  85166. distclean-generic distclean-libtool distclean-tags distdir dvi \
  85167. dvi-am html html-am info info-am install install-am \
  85168. - install-data install-data-am install-exec install-exec-am \
  85169. - install-info install-info-am install-man install-strip \
  85170. + install-data install-data-am install-dvi install-dvi-am \
  85171. + install-exec install-exec-am install-html install-html-am \
  85172. + install-info install-info-am install-man install-pdf \
  85173. + install-pdf-am install-ps install-ps-am install-strip \
  85174. installcheck installcheck-am installdirs maintainer-clean \
  85175. maintainer-clean-generic mostlyclean mostlyclean-compile \
  85176. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  85177. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  85178. + pdf-am ps ps-am tags uninstall uninstall-am
  85179. allprogs: $(EXTRA_PROGRAMS)
  85180. $(top_builddir)/tests/libtests.la:
  85181. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  85182. +
  85183. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  85184. # Otherwise a system limit (for SysV at least) may be exceeded.
  85185. .NOEXPORT:
  85186. diff -Nur gmp-4.3.2.orig/tests/Makefile.in gmp-4.3.2/tests/Makefile.in
  85187. --- gmp-4.3.2.orig/tests/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  85188. +++ gmp-4.3.2/tests/Makefile.in 2011-02-16 19:23:20.363557572 +0100
  85189. @@ -1,8 +1,9 @@
  85190. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  85191. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  85192. # @configure_input@
  85193. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  85194. -# 2003, 2004 Free Software Foundation, Inc.
  85195. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  85196. +# Inc.
  85197. # This Makefile.in is free software; the Free Software Foundation
  85198. # gives unlimited permission to copy and/or distribute it,
  85199. # with or without modifications, as long as this notice is preserved.
  85200. @@ -48,17 +49,12 @@
  85201. #
  85202. # You should have received a copy of the GNU Lesser General Public License
  85203. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  85204. -SOURCES = $(libtests_la_SOURCES) $(EXTRA_libtests_la_SOURCES) t-bswap.c t-constants.c t-count_zeros.c t-gmpmax.c t-hightomask.c t-modlinv.c t-parity.c t-popc.c t-sub.c
  85205. -
  85206. -srcdir = @srcdir@
  85207. -top_srcdir = @top_srcdir@
  85208. VPATH = @srcdir@
  85209. pkgdatadir = $(datadir)/@PACKAGE@
  85210. -pkglibdir = $(libdir)/@PACKAGE@
  85211. pkgincludedir = $(includedir)/@PACKAGE@
  85212. -top_builddir = ..
  85213. +pkglibdir = $(libdir)/@PACKAGE@
  85214. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  85215. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  85216. -INSTALL = @INSTALL@
  85217. install_sh_DATA = $(install_sh) -c -m 644
  85218. install_sh_PROGRAM = $(install_sh) -c
  85219. install_sh_SCRIPT = $(install_sh) -c
  85220. @@ -70,6 +66,7 @@
  85221. NORMAL_UNINSTALL = :
  85222. PRE_UNINSTALL = :
  85223. POST_UNINSTALL = :
  85224. +build_triplet = @build@
  85225. host_triplet = @host@
  85226. ANSI2KNR = $(top_builddir)/ansi2knr
  85227. DIST_COMMON = $(srcdir)/../mpn/Makeasm.am $(srcdir)/Makefile.am \
  85228. @@ -84,9 +81,10 @@
  85229. $(top_srcdir)/configure.in
  85230. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  85231. $(ACLOCAL_M4)
  85232. -mkinstalldirs = $(mkdir_p)
  85233. +mkinstalldirs = $(install_sh) -d
  85234. CONFIG_HEADER = $(top_builddir)/config.h
  85235. CONFIG_CLEAN_FILES =
  85236. +CONFIG_CLEAN_VPATH_FILES =
  85237. am__DEPENDENCIES_1 =
  85238. am_libtests_la_OBJECTS = memory$U.lo misc$U.lo refmpf$U.lo refmpn$U.lo \
  85239. refmpq$U.lo refmpz$U.lo spinner$U.lo trace$U.lo
  85240. @@ -127,17 +125,18 @@
  85241. t_sub_OBJECTS = t-sub$U.$(OBJEXT)
  85242. t_sub_LDADD = $(LDADD)
  85243. t_sub_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
  85244. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  85245. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  85246. depcomp =
  85247. am__depfiles_maybe =
  85248. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  85249. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  85250. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  85251. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  85252. - $(AM_CFLAGS) $(CFLAGS)
  85253. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  85254. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  85255. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  85256. CCLD = $(CC)
  85257. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  85258. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  85259. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  85260. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  85261. + $(LDFLAGS) -o $@
  85262. SOURCES = $(libtests_la_SOURCES) $(EXTRA_libtests_la_SOURCES) \
  85263. t-bswap.c t-constants.c t-count_zeros.c t-gmpmax.c \
  85264. t-hightomask.c t-modlinv.c t-parity.c t-popc.c t-sub.c
  85265. @@ -146,14 +145,47 @@
  85266. t-hightomask.c t-modlinv.c t-parity.c t-popc.c t-sub.c
  85267. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  85268. html-recursive info-recursive install-data-recursive \
  85269. - install-exec-recursive install-info-recursive \
  85270. - install-recursive installcheck-recursive installdirs-recursive \
  85271. - pdf-recursive ps-recursive uninstall-info-recursive \
  85272. - uninstall-recursive
  85273. + install-dvi-recursive install-exec-recursive \
  85274. + install-html-recursive install-info-recursive \
  85275. + install-pdf-recursive install-ps-recursive install-recursive \
  85276. + installcheck-recursive installdirs-recursive pdf-recursive \
  85277. + ps-recursive uninstall-recursive
  85278. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  85279. + distclean-recursive maintainer-clean-recursive
  85280. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  85281. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  85282. + distdir
  85283. ETAGS = etags
  85284. CTAGS = ctags
  85285. +am__tty_colors = \
  85286. +red=; grn=; lgn=; blu=; std=
  85287. DIST_SUBDIRS = $(SUBDIRS)
  85288. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  85289. +am__relativize = \
  85290. + dir0=`pwd`; \
  85291. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  85292. + sed_rest='s,^[^/]*/*,,'; \
  85293. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  85294. + sed_butlast='s,/*[^/]*$$,,'; \
  85295. + while test -n "$$dir1"; do \
  85296. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  85297. + if test "$$first" != "."; then \
  85298. + if test "$$first" = ".."; then \
  85299. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  85300. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  85301. + else \
  85302. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  85303. + if test "$$first2" = "$$first"; then \
  85304. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  85305. + else \
  85306. + dir2="../$$dir2"; \
  85307. + fi; \
  85308. + dir0="$$dir0"/"$$first"; \
  85309. + fi; \
  85310. + fi; \
  85311. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  85312. + done; \
  85313. + reldir="$$dir2"
  85314. ABI = @ABI@
  85315. ACLOCAL = @ACLOCAL@
  85316. AMTAR = @AMTAR@
  85317. @@ -180,15 +212,17 @@
  85318. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  85319. DEFS = @DEFS@
  85320. DLLTOOL = @DLLTOOL@
  85321. -ECHO = @ECHO@
  85322. +DSYMUTIL = @DSYMUTIL@
  85323. +DUMPBIN = @DUMPBIN@
  85324. ECHO_C = @ECHO_C@
  85325. ECHO_N = @ECHO_N@
  85326. ECHO_T = @ECHO_T@
  85327. EGREP = @EGREP@
  85328. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  85329. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  85330. EXEEXT = @EXEEXT@
  85331. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  85332. +F77 = @F77@
  85333. +FFLAGS = @FFLAGS@
  85334. +FGREP = @FGREP@
  85335. GMP_LDFLAGS = @GMP_LDFLAGS@
  85336. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  85337. GREP = @GREP@
  85338. @@ -203,10 +237,12 @@
  85339. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  85340. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  85341. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  85342. +INSTALL = @INSTALL@
  85343. INSTALL_DATA = @INSTALL_DATA@
  85344. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  85345. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  85346. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  85347. +LD = @LD@
  85348. LDFLAGS = @LDFLAGS@
  85349. LEX = @LEX@
  85350. LEXLIB = @LEXLIB@
  85351. @@ -221,20 +257,25 @@
  85352. LIBREADLINE = @LIBREADLINE@
  85353. LIBS = @LIBS@
  85354. LIBTOOL = @LIBTOOL@
  85355. +LIPO = @LIPO@
  85356. LN_S = @LN_S@
  85357. LTLIBOBJS = @LTLIBOBJS@
  85358. M4 = @M4@
  85359. MAINT = @MAINT@
  85360. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  85361. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  85362. MAKEINFO = @MAKEINFO@
  85363. +MKDIR_P = @MKDIR_P@
  85364. +NM = @NM@
  85365. +NMEDIT = @NMEDIT@
  85366. OBJDUMP = @OBJDUMP@
  85367. OBJEXT = @OBJEXT@
  85368. +OTOOL = @OTOOL@
  85369. +OTOOL64 = @OTOOL64@
  85370. PACKAGE = @PACKAGE@
  85371. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  85372. PACKAGE_NAME = @PACKAGE_NAME@
  85373. PACKAGE_STRING = @PACKAGE_STRING@
  85374. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  85375. +PACKAGE_URL = @PACKAGE_URL@
  85376. PACKAGE_VERSION = @PACKAGE_VERSION@
  85377. PATH_SEPARATOR = @PATH_SEPARATOR@
  85378. RANLIB = @RANLIB@
  85379. @@ -248,22 +289,27 @@
  85380. U = @U@
  85381. U_FOR_BUILD = @U_FOR_BUILD@
  85382. VERSION = @VERSION@
  85383. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  85384. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  85385. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  85386. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  85387. WITH_READLINE_01 = @WITH_READLINE_01@
  85388. YACC = @YACC@
  85389. YFLAGS = @YFLAGS@
  85390. +abs_builddir = @abs_builddir@
  85391. +abs_srcdir = @abs_srcdir@
  85392. +abs_top_builddir = @abs_top_builddir@
  85393. +abs_top_srcdir = @abs_top_srcdir@
  85394. ac_ct_CC = @ac_ct_CC@
  85395. ac_ct_CXX = @ac_ct_CXX@
  85396. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  85397. +ac_ct_F77 = @ac_ct_F77@
  85398. am__leading_dot = @am__leading_dot@
  85399. +am__tar = @am__tar@
  85400. +am__untar = @am__untar@
  85401. bindir = @bindir@
  85402. build = @build@
  85403. build_alias = @build_alias@
  85404. build_cpu = @build_cpu@
  85405. build_os = @build_os@
  85406. build_vendor = @build_vendor@
  85407. +builddir = @builddir@
  85408. datadir = @datadir@
  85409. datarootdir = @datarootdir@
  85410. docdir = @docdir@
  85411. @@ -283,6 +329,7 @@
  85412. libexecdir = @libexecdir@
  85413. localedir = @localedir@
  85414. localstatedir = @localstatedir@
  85415. +lt_ECHO = @lt_ECHO@
  85416. mandir = @mandir@
  85417. mkdir_p = @mkdir_p@
  85418. mpn_objects = @mpn_objects@
  85419. @@ -295,8 +342,12 @@
  85420. psdir = @psdir@
  85421. sbindir = @sbindir@
  85422. sharedstatedir = @sharedstatedir@
  85423. +srcdir = @srcdir@
  85424. sysconfdir = @sysconfdir@
  85425. target_alias = @target_alias@
  85426. +top_build_prefix = @top_build_prefix@
  85427. +top_builddir = @top_builddir@
  85428. +top_srcdir = @top_srcdir@
  85429. SUBDIRS = . devel mpn mpz mpq mpf rand misc cxx mpbsd
  85430. # COMPILE minus CC.
  85431. @@ -345,14 +396,14 @@
  85432. @for dep in $?; do \
  85433. case '$(am__configure_deps)' in \
  85434. *$$dep*) \
  85435. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  85436. - && exit 0; \
  85437. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  85438. + && { if test -f $@; then exit 0; else break; fi; }; \
  85439. exit 1;; \
  85440. esac; \
  85441. done; \
  85442. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/Makefile'; \
  85443. - cd $(top_srcdir) && \
  85444. - $(AUTOMAKE) --gnu --ignore-deps tests/Makefile
  85445. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/Makefile'; \
  85446. + $(am__cd) $(top_srcdir) && \
  85447. + $(AUTOMAKE) --gnu --ignore-deps tests/Makefile
  85448. .PRECIOUS: Makefile
  85449. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  85450. @case '$?' in \
  85451. @@ -370,51 +421,54 @@
  85452. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  85453. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  85454. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  85455. +$(am__aclocal_m4_deps):
  85456. clean-checkLTLIBRARIES:
  85457. -test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
  85458. @list='$(check_LTLIBRARIES)'; for p in $$list; do \
  85459. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  85460. - test "$$dir" = "$$p" && dir=.; \
  85461. + test "$$dir" != "$$p" || dir=.; \
  85462. echo "rm -f \"$${dir}/so_locations\""; \
  85463. rm -f "$${dir}/so_locations"; \
  85464. done
  85465. libtests.la: $(libtests_la_OBJECTS) $(libtests_la_DEPENDENCIES)
  85466. - $(LINK) $(libtests_la_LDFLAGS) $(libtests_la_OBJECTS) $(libtests_la_LIBADD) $(LIBS)
  85467. + $(LINK) $(libtests_la_OBJECTS) $(libtests_la_LIBADD) $(LIBS)
  85468. clean-checkPROGRAMS:
  85469. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  85470. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  85471. - echo " rm -f $$p $$f"; \
  85472. - rm -f $$p $$f ; \
  85473. - done
  85474. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  85475. + echo " rm -f" $$list; \
  85476. + rm -f $$list || exit $$?; \
  85477. + test -n "$(EXEEXT)" || exit 0; \
  85478. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  85479. + echo " rm -f" $$list; \
  85480. + rm -f $$list
  85481. t-bswap$(EXEEXT): $(t_bswap_OBJECTS) $(t_bswap_DEPENDENCIES)
  85482. @rm -f t-bswap$(EXEEXT)
  85483. - $(LINK) $(t_bswap_LDFLAGS) $(t_bswap_OBJECTS) $(t_bswap_LDADD) $(LIBS)
  85484. + $(LINK) $(t_bswap_OBJECTS) $(t_bswap_LDADD) $(LIBS)
  85485. t-constants$(EXEEXT): $(t_constants_OBJECTS) $(t_constants_DEPENDENCIES)
  85486. @rm -f t-constants$(EXEEXT)
  85487. - $(LINK) $(t_constants_LDFLAGS) $(t_constants_OBJECTS) $(t_constants_LDADD) $(LIBS)
  85488. + $(LINK) $(t_constants_OBJECTS) $(t_constants_LDADD) $(LIBS)
  85489. t-count_zeros$(EXEEXT): $(t_count_zeros_OBJECTS) $(t_count_zeros_DEPENDENCIES)
  85490. @rm -f t-count_zeros$(EXEEXT)
  85491. - $(LINK) $(t_count_zeros_LDFLAGS) $(t_count_zeros_OBJECTS) $(t_count_zeros_LDADD) $(LIBS)
  85492. + $(LINK) $(t_count_zeros_OBJECTS) $(t_count_zeros_LDADD) $(LIBS)
  85493. t-gmpmax$(EXEEXT): $(t_gmpmax_OBJECTS) $(t_gmpmax_DEPENDENCIES)
  85494. @rm -f t-gmpmax$(EXEEXT)
  85495. - $(LINK) $(t_gmpmax_LDFLAGS) $(t_gmpmax_OBJECTS) $(t_gmpmax_LDADD) $(LIBS)
  85496. + $(LINK) $(t_gmpmax_OBJECTS) $(t_gmpmax_LDADD) $(LIBS)
  85497. t-hightomask$(EXEEXT): $(t_hightomask_OBJECTS) $(t_hightomask_DEPENDENCIES)
  85498. @rm -f t-hightomask$(EXEEXT)
  85499. - $(LINK) $(t_hightomask_LDFLAGS) $(t_hightomask_OBJECTS) $(t_hightomask_LDADD) $(LIBS)
  85500. + $(LINK) $(t_hightomask_OBJECTS) $(t_hightomask_LDADD) $(LIBS)
  85501. t-modlinv$(EXEEXT): $(t_modlinv_OBJECTS) $(t_modlinv_DEPENDENCIES)
  85502. @rm -f t-modlinv$(EXEEXT)
  85503. - $(LINK) $(t_modlinv_LDFLAGS) $(t_modlinv_OBJECTS) $(t_modlinv_LDADD) $(LIBS)
  85504. + $(LINK) $(t_modlinv_OBJECTS) $(t_modlinv_LDADD) $(LIBS)
  85505. t-parity$(EXEEXT): $(t_parity_OBJECTS) $(t_parity_DEPENDENCIES)
  85506. @rm -f t-parity$(EXEEXT)
  85507. - $(LINK) $(t_parity_LDFLAGS) $(t_parity_OBJECTS) $(t_parity_LDADD) $(LIBS)
  85508. + $(LINK) $(t_parity_OBJECTS) $(t_parity_LDADD) $(LIBS)
  85509. t-popc$(EXEEXT): $(t_popc_OBJECTS) $(t_popc_DEPENDENCIES)
  85510. @rm -f t-popc$(EXEEXT)
  85511. - $(LINK) $(t_popc_LDFLAGS) $(t_popc_OBJECTS) $(t_popc_LDADD) $(LIBS)
  85512. + $(LINK) $(t_popc_OBJECTS) $(t_popc_LDADD) $(LIBS)
  85513. t-sub$(EXEEXT): $(t_sub_OBJECTS) $(t_sub_DEPENDENCIES)
  85514. @rm -f t-sub$(EXEEXT)
  85515. - $(LINK) $(t_sub_LDFLAGS) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS)
  85516. + $(LINK) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS)
  85517. mostlyclean-compile:
  85518. -rm -f *.$(OBJEXT)
  85519. @@ -422,7 +476,7 @@
  85520. distclean-compile:
  85521. -rm -f *.tab.c
  85522. $(top_builddir)/ansi2knr:
  85523. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  85524. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  85525. mostlyclean-kr:
  85526. -test "$U" = "" || rm -f *_.c
  85527. @@ -491,10 +545,6 @@
  85528. clean-libtool:
  85529. -rm -rf .libs _libs
  85530. -distclean-libtool:
  85531. - -rm -f libtool
  85532. -uninstall-info-am:
  85533. -
  85534. # This directory's subdirectories are mostly independent; you can cd
  85535. # into them and run `make' without going through this Makefile.
  85536. # To change the values of `make' variables: instead of editing Makefiles,
  85537. @@ -502,7 +552,13 @@
  85538. # (which will cause the Makefiles to be regenerated when you run `make');
  85539. # (2) otherwise, pass the desired values on the `make' command line.
  85540. $(RECURSIVE_TARGETS):
  85541. - @set fnord $$MAKEFLAGS; amf=$$2; \
  85542. + @fail= failcom='exit 1'; \
  85543. + for f in x $$MAKEFLAGS; do \
  85544. + case $$f in \
  85545. + *=* | --[!k]*);; \
  85546. + *k*) failcom='fail=yes';; \
  85547. + esac; \
  85548. + done; \
  85549. dot_seen=no; \
  85550. target=`echo $@ | sed s/-recursive//`; \
  85551. list='$(SUBDIRS)'; for subdir in $$list; do \
  85552. @@ -513,16 +569,21 @@
  85553. else \
  85554. local_target="$$target"; \
  85555. fi; \
  85556. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  85557. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  85558. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  85559. + || eval $$failcom; \
  85560. done; \
  85561. if test "$$dot_seen" = "no"; then \
  85562. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  85563. fi; test -z "$$fail"
  85564. -mostlyclean-recursive clean-recursive distclean-recursive \
  85565. -maintainer-clean-recursive:
  85566. - @set fnord $$MAKEFLAGS; amf=$$2; \
  85567. +$(RECURSIVE_CLEAN_TARGETS):
  85568. + @fail= failcom='exit 1'; \
  85569. + for f in x $$MAKEFLAGS; do \
  85570. + case $$f in \
  85571. + *=* | --[!k]*);; \
  85572. + *k*) failcom='fail=yes';; \
  85573. + esac; \
  85574. + done; \
  85575. dot_seen=no; \
  85576. case "$@" in \
  85577. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  85578. @@ -542,16 +603,16 @@
  85579. else \
  85580. local_target="$$target"; \
  85581. fi; \
  85582. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  85583. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  85584. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  85585. + || eval $$failcom; \
  85586. done && test -z "$$fail"
  85587. tags-recursive:
  85588. list='$(SUBDIRS)'; for subdir in $$list; do \
  85589. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  85590. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  85591. done
  85592. ctags-recursive:
  85593. list='$(SUBDIRS)'; for subdir in $$list; do \
  85594. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  85595. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  85596. done
  85597. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  85598. @@ -559,14 +620,14 @@
  85599. unique=`for i in $$list; do \
  85600. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85601. done | \
  85602. - $(AWK) ' { files[$$0] = 1; } \
  85603. - END { for (i in files) print i; }'`; \
  85604. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85605. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85606. mkid -fID $$unique
  85607. tags: TAGS
  85608. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  85609. $(TAGS_FILES) $(LISP)
  85610. - tags=; \
  85611. + set x; \
  85612. here=`pwd`; \
  85613. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  85614. include_option=--etags-include; \
  85615. @@ -577,40 +638,44 @@
  85616. fi; \
  85617. list='$(SUBDIRS)'; for subdir in $$list; do \
  85618. if test "$$subdir" = .; then :; else \
  85619. - test -f $$subdir/TAGS && \
  85620. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  85621. + test ! -f $$subdir/TAGS || \
  85622. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  85623. fi; \
  85624. done; \
  85625. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  85626. unique=`for i in $$list; do \
  85627. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85628. done | \
  85629. - $(AWK) ' { files[$$0] = 1; } \
  85630. - END { for (i in files) print i; }'`; \
  85631. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  85632. - test -z "$$unique" && unique=$$empty_fix; \
  85633. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85634. - $$tags $$unique; \
  85635. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85636. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85637. + shift; \
  85638. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  85639. + test -n "$$unique" || unique=$$empty_fix; \
  85640. + if test $$# -gt 0; then \
  85641. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85642. + "$$@" $$unique; \
  85643. + else \
  85644. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  85645. + $$unique; \
  85646. + fi; \
  85647. fi
  85648. ctags: CTAGS
  85649. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  85650. $(TAGS_FILES) $(LISP)
  85651. - tags=; \
  85652. - here=`pwd`; \
  85653. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  85654. unique=`for i in $$list; do \
  85655. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  85656. done | \
  85657. - $(AWK) ' { files[$$0] = 1; } \
  85658. - END { for (i in files) print i; }'`; \
  85659. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  85660. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  85661. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  85662. + test -z "$(CTAGS_ARGS)$$unique" \
  85663. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  85664. - $$tags $$unique
  85665. + $$unique
  85666. GTAGS:
  85667. here=`$(am__cd) $(top_builddir) && pwd` \
  85668. - && cd $(top_srcdir) \
  85669. - && gtags -i $(GTAGS_ARGS) $$here
  85670. + && $(am__cd) $(top_srcdir) \
  85671. + && gtags -i $(GTAGS_ARGS) "$$here"
  85672. distclean-tags:
  85673. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  85674. @@ -618,7 +683,8 @@
  85675. check-TESTS: $(TESTS)
  85676. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  85677. srcdir=$(srcdir); export srcdir; \
  85678. - list='$(TESTS)'; \
  85679. + list=' $(TESTS) '; \
  85680. + $(am__tty_colors); \
  85681. if test -n "$$list"; then \
  85682. for tst in $$list; do \
  85683. if test -f ./$$tst; then dir=./; \
  85684. @@ -627,104 +693,139 @@
  85685. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  85686. all=`expr $$all + 1`; \
  85687. case " $(XFAIL_TESTS) " in \
  85688. - *" $$tst "*) \
  85689. + *[\ \ ]$$tst[\ \ ]*) \
  85690. xpass=`expr $$xpass + 1`; \
  85691. failed=`expr $$failed + 1`; \
  85692. - echo "XPASS: $$tst"; \
  85693. + col=$$red; res=XPASS; \
  85694. ;; \
  85695. *) \
  85696. - echo "PASS: $$tst"; \
  85697. + col=$$grn; res=PASS; \
  85698. ;; \
  85699. esac; \
  85700. elif test $$? -ne 77; then \
  85701. all=`expr $$all + 1`; \
  85702. case " $(XFAIL_TESTS) " in \
  85703. - *" $$tst "*) \
  85704. + *[\ \ ]$$tst[\ \ ]*) \
  85705. xfail=`expr $$xfail + 1`; \
  85706. - echo "XFAIL: $$tst"; \
  85707. + col=$$lgn; res=XFAIL; \
  85708. ;; \
  85709. *) \
  85710. failed=`expr $$failed + 1`; \
  85711. - echo "FAIL: $$tst"; \
  85712. + col=$$red; res=FAIL; \
  85713. ;; \
  85714. esac; \
  85715. else \
  85716. skip=`expr $$skip + 1`; \
  85717. - echo "SKIP: $$tst"; \
  85718. + col=$$blu; res=SKIP; \
  85719. fi; \
  85720. + echo "$${col}$$res$${std}: $$tst"; \
  85721. done; \
  85722. + if test "$$all" -eq 1; then \
  85723. + tests="test"; \
  85724. + All=""; \
  85725. + else \
  85726. + tests="tests"; \
  85727. + All="All "; \
  85728. + fi; \
  85729. if test "$$failed" -eq 0; then \
  85730. if test "$$xfail" -eq 0; then \
  85731. - banner="All $$all tests passed"; \
  85732. + banner="$$All$$all $$tests passed"; \
  85733. else \
  85734. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  85735. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  85736. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  85737. fi; \
  85738. else \
  85739. if test "$$xpass" -eq 0; then \
  85740. - banner="$$failed of $$all tests failed"; \
  85741. + banner="$$failed of $$all $$tests failed"; \
  85742. else \
  85743. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  85744. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  85745. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  85746. fi; \
  85747. fi; \
  85748. dashes="$$banner"; \
  85749. skipped=""; \
  85750. if test "$$skip" -ne 0; then \
  85751. - skipped="($$skip tests were not run)"; \
  85752. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  85753. + if test "$$skip" -eq 1; then \
  85754. + skipped="($$skip test was not run)"; \
  85755. + else \
  85756. + skipped="($$skip tests were not run)"; \
  85757. + fi; \
  85758. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  85759. dashes="$$skipped"; \
  85760. fi; \
  85761. report=""; \
  85762. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  85763. report="Please report to $(PACKAGE_BUGREPORT)"; \
  85764. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  85765. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  85766. dashes="$$report"; \
  85767. fi; \
  85768. dashes=`echo "$$dashes" | sed s/./=/g`; \
  85769. - echo "$$dashes"; \
  85770. + if test "$$failed" -eq 0; then \
  85771. + echo "$$grn$$dashes"; \
  85772. + else \
  85773. + echo "$$red$$dashes"; \
  85774. + fi; \
  85775. echo "$$banner"; \
  85776. - test -n "$$skipped" && echo "$$skipped"; \
  85777. - test -n "$$report" && echo "$$report"; \
  85778. - echo "$$dashes"; \
  85779. + test -z "$$skipped" || echo "$$skipped"; \
  85780. + test -z "$$report" || echo "$$report"; \
  85781. + echo "$$dashes$$std"; \
  85782. test "$$failed" -eq 0; \
  85783. else :; fi
  85784. distdir: $(DISTFILES)
  85785. - $(mkdir_p) $(distdir)/../mpn
  85786. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  85787. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  85788. - list='$(DISTFILES)'; for file in $$list; do \
  85789. - case $$file in \
  85790. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  85791. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  85792. - esac; \
  85793. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  85794. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  85795. + list='$(DISTFILES)'; \
  85796. + dist_files=`for file in $$list; do echo $$file; done | \
  85797. + sed -e "s|^$$srcdirstrip/||;t" \
  85798. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  85799. + case $$dist_files in \
  85800. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  85801. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  85802. + sort -u` ;; \
  85803. + esac; \
  85804. + for file in $$dist_files; do \
  85805. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  85806. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  85807. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  85808. - dir="/$$dir"; \
  85809. - $(mkdir_p) "$(distdir)$$dir"; \
  85810. - else \
  85811. - dir=''; \
  85812. - fi; \
  85813. if test -d $$d/$$file; then \
  85814. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  85815. + if test -d "$(distdir)/$$file"; then \
  85816. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  85817. + fi; \
  85818. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  85819. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  85820. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  85821. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  85822. fi; \
  85823. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  85824. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  85825. else \
  85826. - test -f $(distdir)/$$file \
  85827. - || cp -p $$d/$$file $(distdir)/$$file \
  85828. + test -f "$(distdir)/$$file" \
  85829. + || cp -p $$d/$$file "$(distdir)/$$file" \
  85830. || exit 1; \
  85831. fi; \
  85832. done
  85833. - list='$(SUBDIRS)'; for subdir in $$list; do \
  85834. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  85835. if test "$$subdir" = .; then :; else \
  85836. test -d "$(distdir)/$$subdir" \
  85837. - || mkdir "$(distdir)/$$subdir" \
  85838. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  85839. || exit 1; \
  85840. - (cd $$subdir && \
  85841. + fi; \
  85842. + done
  85843. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  85844. + if test "$$subdir" = .; then :; else \
  85845. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  85846. + $(am__relativize); \
  85847. + new_distdir=$$reldir; \
  85848. + dir1=$$subdir; dir2="$(top_distdir)"; \
  85849. + $(am__relativize); \
  85850. + new_top_distdir=$$reldir; \
  85851. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  85852. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  85853. + ($(am__cd) $$subdir && \
  85854. $(MAKE) $(AM_MAKEFLAGS) \
  85855. - top_distdir="../$(top_distdir)" \
  85856. - distdir="../$(distdir)/$$subdir" \
  85857. + top_distdir="$$new_top_distdir" \
  85858. + distdir="$$new_distdir" \
  85859. + am__remove_distdir=: \
  85860. + am__skip_length_check=: \
  85861. + am__skip_mode_fix=: \
  85862. distdir) \
  85863. || exit 1; \
  85864. fi; \
  85865. @@ -755,7 +856,8 @@
  85866. clean-generic:
  85867. distclean-generic:
  85868. - -rm -f $(CONFIG_CLEAN_FILES)
  85869. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  85870. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  85871. maintainer-clean-generic:
  85872. @echo "This command is intended for maintainers to use"
  85873. @@ -768,7 +870,7 @@
  85874. distclean: distclean-recursive
  85875. -rm -f Makefile
  85876. distclean-am: clean-am distclean-compile distclean-generic \
  85877. - distclean-libtool distclean-tags
  85878. + distclean-tags
  85879. dvi: dvi-recursive
  85880. @@ -776,18 +878,38 @@
  85881. html: html-recursive
  85882. +html-am:
  85883. +
  85884. info: info-recursive
  85885. info-am:
  85886. install-data-am:
  85887. +install-dvi: install-dvi-recursive
  85888. +
  85889. +install-dvi-am:
  85890. +
  85891. install-exec-am:
  85892. +install-html: install-html-recursive
  85893. +
  85894. +install-html-am:
  85895. +
  85896. install-info: install-info-recursive
  85897. +install-info-am:
  85898. +
  85899. install-man:
  85900. +install-pdf: install-pdf-recursive
  85901. +
  85902. +install-pdf-am:
  85903. +
  85904. +install-ps: install-ps-recursive
  85905. +
  85906. +install-ps-am:
  85907. +
  85908. installcheck-am:
  85909. maintainer-clean: maintainer-clean-recursive
  85910. @@ -807,24 +929,27 @@
  85911. ps-am:
  85912. -uninstall-am: uninstall-info-am
  85913. +uninstall-am:
  85914. -uninstall-info: uninstall-info-recursive
  85915. -
  85916. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-TESTS \
  85917. - check-am clean clean-checkLTLIBRARIES clean-checkPROGRAMS \
  85918. - clean-generic clean-libtool clean-recursive ctags \
  85919. - ctags-recursive distclean distclean-compile distclean-generic \
  85920. - distclean-libtool distclean-recursive distclean-tags distdir \
  85921. - dvi dvi-am html html-am info info-am install install-am \
  85922. - install-data install-data-am install-exec install-exec-am \
  85923. - install-info install-info-am install-man install-strip \
  85924. - installcheck installcheck-am installdirs installdirs-am \
  85925. - maintainer-clean maintainer-clean-generic \
  85926. - maintainer-clean-recursive mostlyclean mostlyclean-compile \
  85927. - mostlyclean-generic mostlyclean-kr mostlyclean-libtool \
  85928. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  85929. - uninstall uninstall-am uninstall-info-am
  85930. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
  85931. + $(top_builddir)/ansi2knr check-am ctags-recursive install-am \
  85932. + install-strip tags-recursive
  85933. +
  85934. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  85935. + all all-am check check-TESTS check-am clean \
  85936. + clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \
  85937. + clean-libtool ctags ctags-recursive distclean \
  85938. + distclean-compile distclean-generic distclean-libtool \
  85939. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  85940. + install install-am install-data install-data-am install-dvi \
  85941. + install-dvi-am install-exec install-exec-am install-html \
  85942. + install-html-am install-info install-info-am install-man \
  85943. + install-pdf install-pdf-am install-ps install-ps-am \
  85944. + install-strip installcheck installcheck-am installdirs \
  85945. + installdirs-am maintainer-clean maintainer-clean-generic \
  85946. + mostlyclean mostlyclean-compile mostlyclean-generic \
  85947. + mostlyclean-kr mostlyclean-libtool pdf pdf-am ps ps-am tags \
  85948. + tags-recursive uninstall uninstall-am
  85949. # .s assembler, no preprocessing.
  85950. @@ -882,6 +1007,7 @@
  85951. $(RM_TMP) tmp-$*.s
  85952. .asm.lo:
  85953. $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
  85954. +
  85955. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  85956. # Otherwise a system limit (for SysV at least) may be exceeded.
  85957. .NOEXPORT:
  85958. diff -Nur gmp-4.3.2.orig/tests/misc/Makefile.in gmp-4.3.2/tests/misc/Makefile.in
  85959. --- gmp-4.3.2.orig/tests/misc/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  85960. +++ gmp-4.3.2/tests/misc/Makefile.in 2011-02-16 19:23:20.523557561 +0100
  85961. @@ -1,8 +1,9 @@
  85962. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  85963. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  85964. # @configure_input@
  85965. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  85966. -# 2003, 2004 Free Software Foundation, Inc.
  85967. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  85968. +# Inc.
  85969. # This Makefile.in is free software; the Free Software Foundation
  85970. # gives unlimited permission to copy and/or distribute it,
  85971. # with or without modifications, as long as this notice is preserved.
  85972. @@ -30,17 +31,12 @@
  85973. #
  85974. # You should have received a copy of the GNU Lesser General Public License
  85975. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  85976. -SOURCES = t-locale.c t-printf.c t-scanf.c
  85977. -
  85978. -srcdir = @srcdir@
  85979. -top_srcdir = @top_srcdir@
  85980. VPATH = @srcdir@
  85981. pkgdatadir = $(datadir)/@PACKAGE@
  85982. -pkglibdir = $(libdir)/@PACKAGE@
  85983. pkgincludedir = $(includedir)/@PACKAGE@
  85984. -top_builddir = ../..
  85985. +pkglibdir = $(libdir)/@PACKAGE@
  85986. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  85987. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  85988. -INSTALL = @INSTALL@
  85989. install_sh_DATA = $(install_sh) -c -m 644
  85990. install_sh_PROGRAM = $(install_sh) -c
  85991. install_sh_SCRIPT = $(install_sh) -c
  85992. @@ -52,6 +48,7 @@
  85993. NORMAL_UNINSTALL = :
  85994. PRE_UNINSTALL = :
  85995. POST_UNINSTALL = :
  85996. +build_triplet = @build@
  85997. host_triplet = @host@
  85998. ANSI2KNR = $(top_builddir)/ansi2knr
  85999. check_PROGRAMS = t-printf$(EXEEXT) t-scanf$(EXEEXT) t-locale$(EXEEXT)
  86000. @@ -62,9 +59,10 @@
  86001. $(top_srcdir)/configure.in
  86002. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  86003. $(ACLOCAL_M4)
  86004. -mkinstalldirs = $(mkdir_p)
  86005. +mkinstalldirs = $(install_sh) -d
  86006. CONFIG_HEADER = $(top_builddir)/config.h
  86007. CONFIG_CLEAN_FILES =
  86008. +CONFIG_CLEAN_VPATH_FILES =
  86009. t_locale_SOURCES = t-locale.c
  86010. t_locale_OBJECTS = t-locale$U.$(OBJEXT)
  86011. t_locale_LDADD = $(LDADD)
  86012. @@ -80,21 +78,24 @@
  86013. t_scanf_LDADD = $(LDADD)
  86014. t_scanf_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  86015. $(top_builddir)/libgmp.la
  86016. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  86017. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  86018. depcomp =
  86019. am__depfiles_maybe =
  86020. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  86021. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  86022. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  86023. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  86024. - $(AM_CFLAGS) $(CFLAGS)
  86025. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  86026. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  86027. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  86028. CCLD = $(CC)
  86029. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  86030. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  86031. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  86032. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  86033. + $(LDFLAGS) -o $@
  86034. SOURCES = t-locale.c t-printf.c t-scanf.c
  86035. DIST_SOURCES = t-locale.c t-printf.c t-scanf.c
  86036. ETAGS = etags
  86037. CTAGS = ctags
  86038. +am__tty_colors = \
  86039. +red=; grn=; lgn=; blu=; std=
  86040. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  86041. ABI = @ABI@
  86042. ACLOCAL = @ACLOCAL@
  86043. @@ -122,15 +123,17 @@
  86044. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  86045. DEFS = @DEFS@
  86046. DLLTOOL = @DLLTOOL@
  86047. -ECHO = @ECHO@
  86048. +DSYMUTIL = @DSYMUTIL@
  86049. +DUMPBIN = @DUMPBIN@
  86050. ECHO_C = @ECHO_C@
  86051. ECHO_N = @ECHO_N@
  86052. ECHO_T = @ECHO_T@
  86053. EGREP = @EGREP@
  86054. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  86055. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  86056. EXEEXT = @EXEEXT@
  86057. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  86058. +F77 = @F77@
  86059. +FFLAGS = @FFLAGS@
  86060. +FGREP = @FGREP@
  86061. GMP_LDFLAGS = @GMP_LDFLAGS@
  86062. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  86063. GREP = @GREP@
  86064. @@ -145,10 +148,12 @@
  86065. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  86066. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  86067. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  86068. +INSTALL = @INSTALL@
  86069. INSTALL_DATA = @INSTALL_DATA@
  86070. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  86071. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  86072. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  86073. +LD = @LD@
  86074. LDFLAGS = @LDFLAGS@
  86075. LEX = @LEX@
  86076. LEXLIB = @LEXLIB@
  86077. @@ -163,20 +168,25 @@
  86078. LIBREADLINE = @LIBREADLINE@
  86079. LIBS = @LIBS@
  86080. LIBTOOL = @LIBTOOL@
  86081. +LIPO = @LIPO@
  86082. LN_S = @LN_S@
  86083. LTLIBOBJS = @LTLIBOBJS@
  86084. M4 = @M4@
  86085. MAINT = @MAINT@
  86086. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  86087. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  86088. MAKEINFO = @MAKEINFO@
  86089. +MKDIR_P = @MKDIR_P@
  86090. +NM = @NM@
  86091. +NMEDIT = @NMEDIT@
  86092. OBJDUMP = @OBJDUMP@
  86093. OBJEXT = @OBJEXT@
  86094. +OTOOL = @OTOOL@
  86095. +OTOOL64 = @OTOOL64@
  86096. PACKAGE = @PACKAGE@
  86097. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  86098. PACKAGE_NAME = @PACKAGE_NAME@
  86099. PACKAGE_STRING = @PACKAGE_STRING@
  86100. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  86101. +PACKAGE_URL = @PACKAGE_URL@
  86102. PACKAGE_VERSION = @PACKAGE_VERSION@
  86103. PATH_SEPARATOR = @PATH_SEPARATOR@
  86104. RANLIB = @RANLIB@
  86105. @@ -190,22 +200,27 @@
  86106. U = @U@
  86107. U_FOR_BUILD = @U_FOR_BUILD@
  86108. VERSION = @VERSION@
  86109. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  86110. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  86111. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  86112. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  86113. WITH_READLINE_01 = @WITH_READLINE_01@
  86114. YACC = @YACC@
  86115. YFLAGS = @YFLAGS@
  86116. +abs_builddir = @abs_builddir@
  86117. +abs_srcdir = @abs_srcdir@
  86118. +abs_top_builddir = @abs_top_builddir@
  86119. +abs_top_srcdir = @abs_top_srcdir@
  86120. ac_ct_CC = @ac_ct_CC@
  86121. ac_ct_CXX = @ac_ct_CXX@
  86122. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  86123. +ac_ct_F77 = @ac_ct_F77@
  86124. am__leading_dot = @am__leading_dot@
  86125. +am__tar = @am__tar@
  86126. +am__untar = @am__untar@
  86127. bindir = @bindir@
  86128. build = @build@
  86129. build_alias = @build_alias@
  86130. build_cpu = @build_cpu@
  86131. build_os = @build_os@
  86132. build_vendor = @build_vendor@
  86133. +builddir = @builddir@
  86134. datadir = @datadir@
  86135. datarootdir = @datarootdir@
  86136. docdir = @docdir@
  86137. @@ -225,6 +240,7 @@
  86138. libexecdir = @libexecdir@
  86139. localedir = @localedir@
  86140. localstatedir = @localstatedir@
  86141. +lt_ECHO = @lt_ECHO@
  86142. mandir = @mandir@
  86143. mkdir_p = @mkdir_p@
  86144. mpn_objects = @mpn_objects@
  86145. @@ -237,8 +253,12 @@
  86146. psdir = @psdir@
  86147. sbindir = @sbindir@
  86148. sharedstatedir = @sharedstatedir@
  86149. +srcdir = @srcdir@
  86150. sysconfdir = @sysconfdir@
  86151. target_alias = @target_alias@
  86152. +top_build_prefix = @top_build_prefix@
  86153. +top_builddir = @top_builddir@
  86154. +top_srcdir = @top_srcdir@
  86155. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  86156. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  86157. TESTS = $(check_PROGRAMS)
  86158. @@ -255,14 +275,14 @@
  86159. @for dep in $?; do \
  86160. case '$(am__configure_deps)' in \
  86161. *$$dep*) \
  86162. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  86163. - && exit 0; \
  86164. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  86165. + && { if test -f $@; then exit 0; else break; fi; }; \
  86166. exit 1;; \
  86167. esac; \
  86168. done; \
  86169. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/misc/Makefile'; \
  86170. - cd $(top_srcdir) && \
  86171. - $(AUTOMAKE) --gnu --ignore-deps tests/misc/Makefile
  86172. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/misc/Makefile'; \
  86173. + $(am__cd) $(top_srcdir) && \
  86174. + $(AUTOMAKE) --gnu --ignore-deps tests/misc/Makefile
  86175. .PRECIOUS: Makefile
  86176. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  86177. @case '$?' in \
  86178. @@ -280,22 +300,25 @@
  86179. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  86180. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  86181. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  86182. +$(am__aclocal_m4_deps):
  86183. clean-checkPROGRAMS:
  86184. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  86185. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  86186. - echo " rm -f $$p $$f"; \
  86187. - rm -f $$p $$f ; \
  86188. - done
  86189. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  86190. + echo " rm -f" $$list; \
  86191. + rm -f $$list || exit $$?; \
  86192. + test -n "$(EXEEXT)" || exit 0; \
  86193. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  86194. + echo " rm -f" $$list; \
  86195. + rm -f $$list
  86196. t-locale$(EXEEXT): $(t_locale_OBJECTS) $(t_locale_DEPENDENCIES)
  86197. @rm -f t-locale$(EXEEXT)
  86198. - $(LINK) $(t_locale_LDFLAGS) $(t_locale_OBJECTS) $(t_locale_LDADD) $(LIBS)
  86199. + $(LINK) $(t_locale_OBJECTS) $(t_locale_LDADD) $(LIBS)
  86200. t-printf$(EXEEXT): $(t_printf_OBJECTS) $(t_printf_DEPENDENCIES)
  86201. @rm -f t-printf$(EXEEXT)
  86202. - $(LINK) $(t_printf_LDFLAGS) $(t_printf_OBJECTS) $(t_printf_LDADD) $(LIBS)
  86203. + $(LINK) $(t_printf_OBJECTS) $(t_printf_LDADD) $(LIBS)
  86204. t-scanf$(EXEEXT): $(t_scanf_OBJECTS) $(t_scanf_DEPENDENCIES)
  86205. @rm -f t-scanf$(EXEEXT)
  86206. - $(LINK) $(t_scanf_LDFLAGS) $(t_scanf_OBJECTS) $(t_scanf_LDADD) $(LIBS)
  86207. + $(LINK) $(t_scanf_OBJECTS) $(t_scanf_LDADD) $(LIBS)
  86208. mostlyclean-compile:
  86209. -rm -f *.$(OBJEXT)
  86210. @@ -303,7 +326,7 @@
  86211. distclean-compile:
  86212. -rm -f *.tab.c
  86213. $(top_builddir)/ansi2knr:
  86214. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  86215. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  86216. mostlyclean-kr:
  86217. -test "$U" = "" || rm -f *_.c
  86218. @@ -331,54 +354,54 @@
  86219. clean-libtool:
  86220. -rm -rf .libs _libs
  86221. -distclean-libtool:
  86222. - -rm -f libtool
  86223. -uninstall-info-am:
  86224. -
  86225. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  86226. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86227. unique=`for i in $$list; do \
  86228. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86229. done | \
  86230. - $(AWK) ' { files[$$0] = 1; } \
  86231. - END { for (i in files) print i; }'`; \
  86232. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86233. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86234. mkid -fID $$unique
  86235. tags: TAGS
  86236. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  86237. $(TAGS_FILES) $(LISP)
  86238. - tags=; \
  86239. + set x; \
  86240. here=`pwd`; \
  86241. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86242. unique=`for i in $$list; do \
  86243. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86244. done | \
  86245. - $(AWK) ' { files[$$0] = 1; } \
  86246. - END { for (i in files) print i; }'`; \
  86247. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  86248. - test -z "$$unique" && unique=$$empty_fix; \
  86249. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86250. - $$tags $$unique; \
  86251. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86252. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86253. + shift; \
  86254. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  86255. + test -n "$$unique" || unique=$$empty_fix; \
  86256. + if test $$# -gt 0; then \
  86257. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86258. + "$$@" $$unique; \
  86259. + else \
  86260. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86261. + $$unique; \
  86262. + fi; \
  86263. fi
  86264. ctags: CTAGS
  86265. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  86266. $(TAGS_FILES) $(LISP)
  86267. - tags=; \
  86268. - here=`pwd`; \
  86269. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86270. unique=`for i in $$list; do \
  86271. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86272. done | \
  86273. - $(AWK) ' { files[$$0] = 1; } \
  86274. - END { for (i in files) print i; }'`; \
  86275. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  86276. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86277. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86278. + test -z "$(CTAGS_ARGS)$$unique" \
  86279. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  86280. - $$tags $$unique
  86281. + $$unique
  86282. GTAGS:
  86283. here=`$(am__cd) $(top_builddir) && pwd` \
  86284. - && cd $(top_srcdir) \
  86285. - && gtags -i $(GTAGS_ARGS) $$here
  86286. + && $(am__cd) $(top_srcdir) \
  86287. + && gtags -i $(GTAGS_ARGS) "$$here"
  86288. distclean-tags:
  86289. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  86290. @@ -386,7 +409,8 @@
  86291. check-TESTS: $(TESTS)
  86292. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  86293. srcdir=$(srcdir); export srcdir; \
  86294. - list='$(TESTS)'; \
  86295. + list=' $(TESTS) '; \
  86296. + $(am__tty_colors); \
  86297. if test -n "$$list"; then \
  86298. for tst in $$list; do \
  86299. if test -f ./$$tst; then dir=./; \
  86300. @@ -395,91 +419,112 @@
  86301. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  86302. all=`expr $$all + 1`; \
  86303. case " $(XFAIL_TESTS) " in \
  86304. - *" $$tst "*) \
  86305. + *[\ \ ]$$tst[\ \ ]*) \
  86306. xpass=`expr $$xpass + 1`; \
  86307. failed=`expr $$failed + 1`; \
  86308. - echo "XPASS: $$tst"; \
  86309. + col=$$red; res=XPASS; \
  86310. ;; \
  86311. *) \
  86312. - echo "PASS: $$tst"; \
  86313. + col=$$grn; res=PASS; \
  86314. ;; \
  86315. esac; \
  86316. elif test $$? -ne 77; then \
  86317. all=`expr $$all + 1`; \
  86318. case " $(XFAIL_TESTS) " in \
  86319. - *" $$tst "*) \
  86320. + *[\ \ ]$$tst[\ \ ]*) \
  86321. xfail=`expr $$xfail + 1`; \
  86322. - echo "XFAIL: $$tst"; \
  86323. + col=$$lgn; res=XFAIL; \
  86324. ;; \
  86325. *) \
  86326. failed=`expr $$failed + 1`; \
  86327. - echo "FAIL: $$tst"; \
  86328. + col=$$red; res=FAIL; \
  86329. ;; \
  86330. esac; \
  86331. else \
  86332. skip=`expr $$skip + 1`; \
  86333. - echo "SKIP: $$tst"; \
  86334. + col=$$blu; res=SKIP; \
  86335. fi; \
  86336. + echo "$${col}$$res$${std}: $$tst"; \
  86337. done; \
  86338. + if test "$$all" -eq 1; then \
  86339. + tests="test"; \
  86340. + All=""; \
  86341. + else \
  86342. + tests="tests"; \
  86343. + All="All "; \
  86344. + fi; \
  86345. if test "$$failed" -eq 0; then \
  86346. if test "$$xfail" -eq 0; then \
  86347. - banner="All $$all tests passed"; \
  86348. + banner="$$All$$all $$tests passed"; \
  86349. else \
  86350. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  86351. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  86352. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  86353. fi; \
  86354. else \
  86355. if test "$$xpass" -eq 0; then \
  86356. - banner="$$failed of $$all tests failed"; \
  86357. + banner="$$failed of $$all $$tests failed"; \
  86358. else \
  86359. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  86360. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  86361. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  86362. fi; \
  86363. fi; \
  86364. dashes="$$banner"; \
  86365. skipped=""; \
  86366. if test "$$skip" -ne 0; then \
  86367. - skipped="($$skip tests were not run)"; \
  86368. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  86369. + if test "$$skip" -eq 1; then \
  86370. + skipped="($$skip test was not run)"; \
  86371. + else \
  86372. + skipped="($$skip tests were not run)"; \
  86373. + fi; \
  86374. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  86375. dashes="$$skipped"; \
  86376. fi; \
  86377. report=""; \
  86378. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  86379. report="Please report to $(PACKAGE_BUGREPORT)"; \
  86380. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  86381. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  86382. dashes="$$report"; \
  86383. fi; \
  86384. dashes=`echo "$$dashes" | sed s/./=/g`; \
  86385. - echo "$$dashes"; \
  86386. + if test "$$failed" -eq 0; then \
  86387. + echo "$$grn$$dashes"; \
  86388. + else \
  86389. + echo "$$red$$dashes"; \
  86390. + fi; \
  86391. echo "$$banner"; \
  86392. - test -n "$$skipped" && echo "$$skipped"; \
  86393. - test -n "$$report" && echo "$$report"; \
  86394. - echo "$$dashes"; \
  86395. + test -z "$$skipped" || echo "$$skipped"; \
  86396. + test -z "$$report" || echo "$$report"; \
  86397. + echo "$$dashes$$std"; \
  86398. test "$$failed" -eq 0; \
  86399. else :; fi
  86400. distdir: $(DISTFILES)
  86401. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  86402. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  86403. - list='$(DISTFILES)'; for file in $$list; do \
  86404. - case $$file in \
  86405. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  86406. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  86407. - esac; \
  86408. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  86409. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  86410. + list='$(DISTFILES)'; \
  86411. + dist_files=`for file in $$list; do echo $$file; done | \
  86412. + sed -e "s|^$$srcdirstrip/||;t" \
  86413. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  86414. + case $$dist_files in \
  86415. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  86416. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  86417. + sort -u` ;; \
  86418. + esac; \
  86419. + for file in $$dist_files; do \
  86420. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  86421. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  86422. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  86423. - dir="/$$dir"; \
  86424. - $(mkdir_p) "$(distdir)$$dir"; \
  86425. - else \
  86426. - dir=''; \
  86427. - fi; \
  86428. if test -d $$d/$$file; then \
  86429. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  86430. + if test -d "$(distdir)/$$file"; then \
  86431. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  86432. + fi; \
  86433. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  86434. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  86435. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  86436. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  86437. fi; \
  86438. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  86439. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  86440. else \
  86441. - test -f $(distdir)/$$file \
  86442. - || cp -p $$d/$$file $(distdir)/$$file \
  86443. + test -f "$(distdir)/$$file" \
  86444. + || cp -p $$d/$$file "$(distdir)/$$file" \
  86445. || exit 1; \
  86446. fi; \
  86447. done
  86448. @@ -509,7 +554,8 @@
  86449. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  86450. distclean-generic:
  86451. - -rm -f $(CONFIG_CLEAN_FILES)
  86452. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  86453. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  86454. maintainer-clean-generic:
  86455. @echo "This command is intended for maintainers to use"
  86456. @@ -522,7 +568,7 @@
  86457. distclean: distclean-am
  86458. -rm -f Makefile
  86459. distclean-am: clean-am distclean-compile distclean-generic \
  86460. - distclean-libtool distclean-tags
  86461. + distclean-tags
  86462. dvi: dvi-am
  86463. @@ -530,18 +576,38 @@
  86464. html: html-am
  86465. +html-am:
  86466. +
  86467. info: info-am
  86468. info-am:
  86469. install-data-am:
  86470. +install-dvi: install-dvi-am
  86471. +
  86472. +install-dvi-am:
  86473. +
  86474. install-exec-am:
  86475. +install-html: install-html-am
  86476. +
  86477. +install-html-am:
  86478. +
  86479. install-info: install-info-am
  86480. +install-info-am:
  86481. +
  86482. install-man:
  86483. +install-pdf: install-pdf-am
  86484. +
  86485. +install-pdf-am:
  86486. +
  86487. +install-ps: install-ps-am
  86488. +
  86489. +install-ps-am:
  86490. +
  86491. installcheck-am:
  86492. maintainer-clean: maintainer-clean-am
  86493. @@ -561,23 +627,28 @@
  86494. ps-am:
  86495. -uninstall-am: uninstall-info-am
  86496. +uninstall-am:
  86497. +
  86498. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  86499. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  86500. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  86501. distclean distclean-compile distclean-generic \
  86502. distclean-libtool distclean-tags distdir dvi dvi-am html \
  86503. html-am info info-am install install-am install-data \
  86504. - install-data-am install-exec install-exec-am install-info \
  86505. - install-info-am install-man install-strip installcheck \
  86506. + install-data-am install-dvi install-dvi-am install-exec \
  86507. + install-exec-am install-html install-html-am install-info \
  86508. + install-info-am install-man install-pdf install-pdf-am \
  86509. + install-ps install-ps-am install-strip installcheck \
  86510. installcheck-am installdirs maintainer-clean \
  86511. maintainer-clean-generic mostlyclean mostlyclean-compile \
  86512. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  86513. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  86514. + pdf-am ps ps-am tags uninstall uninstall-am
  86515. $(top_builddir)/tests/libtests.la:
  86516. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  86517. +
  86518. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  86519. # Otherwise a system limit (for SysV at least) may be exceeded.
  86520. .NOEXPORT:
  86521. diff -Nur gmp-4.3.2.orig/tests/mpbsd/Makefile.in gmp-4.3.2/tests/mpbsd/Makefile.in
  86522. --- gmp-4.3.2.orig/tests/mpbsd/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  86523. +++ gmp-4.3.2/tests/mpbsd/Makefile.in 2011-02-16 19:23:20.563552205 +0100
  86524. @@ -1,8 +1,9 @@
  86525. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  86526. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  86527. # @configure_input@
  86528. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  86529. -# 2003, 2004 Free Software Foundation, Inc.
  86530. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  86531. +# Inc.
  86532. # This Makefile.in is free software; the Free Software Foundation
  86533. # gives unlimited permission to copy and/or distribute it,
  86534. # with or without modifications, as long as this notice is preserved.
  86535. @@ -30,17 +31,12 @@
  86536. #
  86537. # You should have received a copy of the GNU Lesser General Public License
  86538. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  86539. -SOURCES = allfuns.c t-itom.c t-mtox.c
  86540. -
  86541. -srcdir = @srcdir@
  86542. -top_srcdir = @top_srcdir@
  86543. VPATH = @srcdir@
  86544. pkgdatadir = $(datadir)/@PACKAGE@
  86545. -pkglibdir = $(libdir)/@PACKAGE@
  86546. pkgincludedir = $(includedir)/@PACKAGE@
  86547. -top_builddir = ../..
  86548. +pkglibdir = $(libdir)/@PACKAGE@
  86549. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  86550. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  86551. -INSTALL = @INSTALL@
  86552. install_sh_DATA = $(install_sh) -c -m 644
  86553. install_sh_PROGRAM = $(install_sh) -c
  86554. install_sh_SCRIPT = $(install_sh) -c
  86555. @@ -52,6 +48,7 @@
  86556. NORMAL_UNINSTALL = :
  86557. PRE_UNINSTALL = :
  86558. POST_UNINSTALL = :
  86559. +build_triplet = @build@
  86560. host_triplet = @host@
  86561. ANSI2KNR = $(top_builddir)/ansi2knr
  86562. check_PROGRAMS = $(am__EXEEXT_1)
  86563. @@ -62,9 +59,10 @@
  86564. $(top_srcdir)/configure.in
  86565. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  86566. $(ACLOCAL_M4)
  86567. -mkinstalldirs = $(mkdir_p)
  86568. +mkinstalldirs = $(install_sh) -d
  86569. CONFIG_HEADER = $(top_builddir)/config.h
  86570. CONFIG_CLEAN_FILES =
  86571. +CONFIG_CLEAN_VPATH_FILES =
  86572. @WANT_MPBSD_TRUE@am__EXEEXT_1 = allfuns$(EXEEXT) t-itom$(EXEEXT) \
  86573. @WANT_MPBSD_TRUE@ t-mtox$(EXEEXT)
  86574. allfuns_SOURCES = allfuns.c
  86575. @@ -80,21 +78,24 @@
  86576. t_mtox_LDADD = $(LDADD)
  86577. t_mtox_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  86578. $(top_builddir)/libmp.la
  86579. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  86580. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  86581. depcomp =
  86582. am__depfiles_maybe =
  86583. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  86584. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  86585. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  86586. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  86587. - $(AM_CFLAGS) $(CFLAGS)
  86588. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  86589. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  86590. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  86591. CCLD = $(CC)
  86592. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  86593. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  86594. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  86595. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  86596. + $(LDFLAGS) -o $@
  86597. SOURCES = allfuns.c t-itom.c t-mtox.c
  86598. DIST_SOURCES = allfuns.c t-itom.c t-mtox.c
  86599. ETAGS = etags
  86600. CTAGS = ctags
  86601. +am__tty_colors = \
  86602. +red=; grn=; lgn=; blu=; std=
  86603. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  86604. ABI = @ABI@
  86605. ACLOCAL = @ACLOCAL@
  86606. @@ -122,15 +123,17 @@
  86607. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  86608. DEFS = @DEFS@
  86609. DLLTOOL = @DLLTOOL@
  86610. -ECHO = @ECHO@
  86611. +DSYMUTIL = @DSYMUTIL@
  86612. +DUMPBIN = @DUMPBIN@
  86613. ECHO_C = @ECHO_C@
  86614. ECHO_N = @ECHO_N@
  86615. ECHO_T = @ECHO_T@
  86616. EGREP = @EGREP@
  86617. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  86618. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  86619. EXEEXT = @EXEEXT@
  86620. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  86621. +F77 = @F77@
  86622. +FFLAGS = @FFLAGS@
  86623. +FGREP = @FGREP@
  86624. GMP_LDFLAGS = @GMP_LDFLAGS@
  86625. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  86626. GREP = @GREP@
  86627. @@ -145,10 +148,12 @@
  86628. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  86629. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  86630. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  86631. +INSTALL = @INSTALL@
  86632. INSTALL_DATA = @INSTALL_DATA@
  86633. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  86634. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  86635. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  86636. +LD = @LD@
  86637. LDFLAGS = @LDFLAGS@
  86638. LEX = @LEX@
  86639. LEXLIB = @LEXLIB@
  86640. @@ -163,20 +168,25 @@
  86641. LIBREADLINE = @LIBREADLINE@
  86642. LIBS = @LIBS@
  86643. LIBTOOL = @LIBTOOL@
  86644. +LIPO = @LIPO@
  86645. LN_S = @LN_S@
  86646. LTLIBOBJS = @LTLIBOBJS@
  86647. M4 = @M4@
  86648. MAINT = @MAINT@
  86649. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  86650. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  86651. MAKEINFO = @MAKEINFO@
  86652. +MKDIR_P = @MKDIR_P@
  86653. +NM = @NM@
  86654. +NMEDIT = @NMEDIT@
  86655. OBJDUMP = @OBJDUMP@
  86656. OBJEXT = @OBJEXT@
  86657. +OTOOL = @OTOOL@
  86658. +OTOOL64 = @OTOOL64@
  86659. PACKAGE = @PACKAGE@
  86660. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  86661. PACKAGE_NAME = @PACKAGE_NAME@
  86662. PACKAGE_STRING = @PACKAGE_STRING@
  86663. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  86664. +PACKAGE_URL = @PACKAGE_URL@
  86665. PACKAGE_VERSION = @PACKAGE_VERSION@
  86666. PATH_SEPARATOR = @PATH_SEPARATOR@
  86667. RANLIB = @RANLIB@
  86668. @@ -190,22 +200,27 @@
  86669. U = @U@
  86670. U_FOR_BUILD = @U_FOR_BUILD@
  86671. VERSION = @VERSION@
  86672. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  86673. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  86674. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  86675. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  86676. WITH_READLINE_01 = @WITH_READLINE_01@
  86677. YACC = @YACC@
  86678. YFLAGS = @YFLAGS@
  86679. +abs_builddir = @abs_builddir@
  86680. +abs_srcdir = @abs_srcdir@
  86681. +abs_top_builddir = @abs_top_builddir@
  86682. +abs_top_srcdir = @abs_top_srcdir@
  86683. ac_ct_CC = @ac_ct_CC@
  86684. ac_ct_CXX = @ac_ct_CXX@
  86685. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  86686. +ac_ct_F77 = @ac_ct_F77@
  86687. am__leading_dot = @am__leading_dot@
  86688. +am__tar = @am__tar@
  86689. +am__untar = @am__untar@
  86690. bindir = @bindir@
  86691. build = @build@
  86692. build_alias = @build_alias@
  86693. build_cpu = @build_cpu@
  86694. build_os = @build_os@
  86695. build_vendor = @build_vendor@
  86696. +builddir = @builddir@
  86697. datadir = @datadir@
  86698. datarootdir = @datarootdir@
  86699. docdir = @docdir@
  86700. @@ -225,6 +240,7 @@
  86701. libexecdir = @libexecdir@
  86702. localedir = @localedir@
  86703. localstatedir = @localstatedir@
  86704. +lt_ECHO = @lt_ECHO@
  86705. mandir = @mandir@
  86706. mkdir_p = @mkdir_p@
  86707. mpn_objects = @mpn_objects@
  86708. @@ -237,8 +253,12 @@
  86709. psdir = @psdir@
  86710. sbindir = @sbindir@
  86711. sharedstatedir = @sharedstatedir@
  86712. +srcdir = @srcdir@
  86713. sysconfdir = @sysconfdir@
  86714. target_alias = @target_alias@
  86715. +top_build_prefix = @top_build_prefix@
  86716. +top_builddir = @top_builddir@
  86717. +top_srcdir = @top_srcdir@
  86718. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  86719. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libmp.la
  86720. @WANT_MPBSD_TRUE@MPBSD_check_OPTION = allfuns t-itom t-mtox
  86721. @@ -254,14 +274,14 @@
  86722. @for dep in $?; do \
  86723. case '$(am__configure_deps)' in \
  86724. *$$dep*) \
  86725. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  86726. - && exit 0; \
  86727. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  86728. + && { if test -f $@; then exit 0; else break; fi; }; \
  86729. exit 1;; \
  86730. esac; \
  86731. done; \
  86732. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpbsd/Makefile'; \
  86733. - cd $(top_srcdir) && \
  86734. - $(AUTOMAKE) --gnu --ignore-deps tests/mpbsd/Makefile
  86735. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpbsd/Makefile'; \
  86736. + $(am__cd) $(top_srcdir) && \
  86737. + $(AUTOMAKE) --gnu --ignore-deps tests/mpbsd/Makefile
  86738. .PRECIOUS: Makefile
  86739. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  86740. @case '$?' in \
  86741. @@ -279,22 +299,25 @@
  86742. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  86743. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  86744. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  86745. +$(am__aclocal_m4_deps):
  86746. clean-checkPROGRAMS:
  86747. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  86748. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  86749. - echo " rm -f $$p $$f"; \
  86750. - rm -f $$p $$f ; \
  86751. - done
  86752. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  86753. + echo " rm -f" $$list; \
  86754. + rm -f $$list || exit $$?; \
  86755. + test -n "$(EXEEXT)" || exit 0; \
  86756. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  86757. + echo " rm -f" $$list; \
  86758. + rm -f $$list
  86759. allfuns$(EXEEXT): $(allfuns_OBJECTS) $(allfuns_DEPENDENCIES)
  86760. @rm -f allfuns$(EXEEXT)
  86761. - $(LINK) $(allfuns_LDFLAGS) $(allfuns_OBJECTS) $(allfuns_LDADD) $(LIBS)
  86762. + $(LINK) $(allfuns_OBJECTS) $(allfuns_LDADD) $(LIBS)
  86763. t-itom$(EXEEXT): $(t_itom_OBJECTS) $(t_itom_DEPENDENCIES)
  86764. @rm -f t-itom$(EXEEXT)
  86765. - $(LINK) $(t_itom_LDFLAGS) $(t_itom_OBJECTS) $(t_itom_LDADD) $(LIBS)
  86766. + $(LINK) $(t_itom_OBJECTS) $(t_itom_LDADD) $(LIBS)
  86767. t-mtox$(EXEEXT): $(t_mtox_OBJECTS) $(t_mtox_DEPENDENCIES)
  86768. @rm -f t-mtox$(EXEEXT)
  86769. - $(LINK) $(t_mtox_LDFLAGS) $(t_mtox_OBJECTS) $(t_mtox_LDADD) $(LIBS)
  86770. + $(LINK) $(t_mtox_OBJECTS) $(t_mtox_LDADD) $(LIBS)
  86771. mostlyclean-compile:
  86772. -rm -f *.$(OBJEXT)
  86773. @@ -302,7 +325,7 @@
  86774. distclean-compile:
  86775. -rm -f *.tab.c
  86776. $(top_builddir)/ansi2knr:
  86777. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  86778. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  86779. mostlyclean-kr:
  86780. -test "$U" = "" || rm -f *_.c
  86781. @@ -330,54 +353,54 @@
  86782. clean-libtool:
  86783. -rm -rf .libs _libs
  86784. -distclean-libtool:
  86785. - -rm -f libtool
  86786. -uninstall-info-am:
  86787. -
  86788. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  86789. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86790. unique=`for i in $$list; do \
  86791. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86792. done | \
  86793. - $(AWK) ' { files[$$0] = 1; } \
  86794. - END { for (i in files) print i; }'`; \
  86795. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86796. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86797. mkid -fID $$unique
  86798. tags: TAGS
  86799. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  86800. $(TAGS_FILES) $(LISP)
  86801. - tags=; \
  86802. + set x; \
  86803. here=`pwd`; \
  86804. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86805. unique=`for i in $$list; do \
  86806. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86807. done | \
  86808. - $(AWK) ' { files[$$0] = 1; } \
  86809. - END { for (i in files) print i; }'`; \
  86810. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  86811. - test -z "$$unique" && unique=$$empty_fix; \
  86812. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86813. - $$tags $$unique; \
  86814. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86815. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86816. + shift; \
  86817. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  86818. + test -n "$$unique" || unique=$$empty_fix; \
  86819. + if test $$# -gt 0; then \
  86820. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86821. + "$$@" $$unique; \
  86822. + else \
  86823. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  86824. + $$unique; \
  86825. + fi; \
  86826. fi
  86827. ctags: CTAGS
  86828. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  86829. $(TAGS_FILES) $(LISP)
  86830. - tags=; \
  86831. - here=`pwd`; \
  86832. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  86833. unique=`for i in $$list; do \
  86834. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  86835. done | \
  86836. - $(AWK) ' { files[$$0] = 1; } \
  86837. - END { for (i in files) print i; }'`; \
  86838. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  86839. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  86840. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  86841. + test -z "$(CTAGS_ARGS)$$unique" \
  86842. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  86843. - $$tags $$unique
  86844. + $$unique
  86845. GTAGS:
  86846. here=`$(am__cd) $(top_builddir) && pwd` \
  86847. - && cd $(top_srcdir) \
  86848. - && gtags -i $(GTAGS_ARGS) $$here
  86849. + && $(am__cd) $(top_srcdir) \
  86850. + && gtags -i $(GTAGS_ARGS) "$$here"
  86851. distclean-tags:
  86852. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  86853. @@ -385,7 +408,8 @@
  86854. check-TESTS: $(TESTS)
  86855. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  86856. srcdir=$(srcdir); export srcdir; \
  86857. - list='$(TESTS)'; \
  86858. + list=' $(TESTS) '; \
  86859. + $(am__tty_colors); \
  86860. if test -n "$$list"; then \
  86861. for tst in $$list; do \
  86862. if test -f ./$$tst; then dir=./; \
  86863. @@ -394,91 +418,112 @@
  86864. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  86865. all=`expr $$all + 1`; \
  86866. case " $(XFAIL_TESTS) " in \
  86867. - *" $$tst "*) \
  86868. + *[\ \ ]$$tst[\ \ ]*) \
  86869. xpass=`expr $$xpass + 1`; \
  86870. failed=`expr $$failed + 1`; \
  86871. - echo "XPASS: $$tst"; \
  86872. + col=$$red; res=XPASS; \
  86873. ;; \
  86874. *) \
  86875. - echo "PASS: $$tst"; \
  86876. + col=$$grn; res=PASS; \
  86877. ;; \
  86878. esac; \
  86879. elif test $$? -ne 77; then \
  86880. all=`expr $$all + 1`; \
  86881. case " $(XFAIL_TESTS) " in \
  86882. - *" $$tst "*) \
  86883. + *[\ \ ]$$tst[\ \ ]*) \
  86884. xfail=`expr $$xfail + 1`; \
  86885. - echo "XFAIL: $$tst"; \
  86886. + col=$$lgn; res=XFAIL; \
  86887. ;; \
  86888. *) \
  86889. failed=`expr $$failed + 1`; \
  86890. - echo "FAIL: $$tst"; \
  86891. + col=$$red; res=FAIL; \
  86892. ;; \
  86893. esac; \
  86894. else \
  86895. skip=`expr $$skip + 1`; \
  86896. - echo "SKIP: $$tst"; \
  86897. + col=$$blu; res=SKIP; \
  86898. fi; \
  86899. + echo "$${col}$$res$${std}: $$tst"; \
  86900. done; \
  86901. + if test "$$all" -eq 1; then \
  86902. + tests="test"; \
  86903. + All=""; \
  86904. + else \
  86905. + tests="tests"; \
  86906. + All="All "; \
  86907. + fi; \
  86908. if test "$$failed" -eq 0; then \
  86909. if test "$$xfail" -eq 0; then \
  86910. - banner="All $$all tests passed"; \
  86911. + banner="$$All$$all $$tests passed"; \
  86912. else \
  86913. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  86914. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  86915. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  86916. fi; \
  86917. else \
  86918. if test "$$xpass" -eq 0; then \
  86919. - banner="$$failed of $$all tests failed"; \
  86920. + banner="$$failed of $$all $$tests failed"; \
  86921. else \
  86922. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  86923. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  86924. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  86925. fi; \
  86926. fi; \
  86927. dashes="$$banner"; \
  86928. skipped=""; \
  86929. if test "$$skip" -ne 0; then \
  86930. - skipped="($$skip tests were not run)"; \
  86931. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  86932. + if test "$$skip" -eq 1; then \
  86933. + skipped="($$skip test was not run)"; \
  86934. + else \
  86935. + skipped="($$skip tests were not run)"; \
  86936. + fi; \
  86937. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  86938. dashes="$$skipped"; \
  86939. fi; \
  86940. report=""; \
  86941. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  86942. report="Please report to $(PACKAGE_BUGREPORT)"; \
  86943. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  86944. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  86945. dashes="$$report"; \
  86946. fi; \
  86947. dashes=`echo "$$dashes" | sed s/./=/g`; \
  86948. - echo "$$dashes"; \
  86949. + if test "$$failed" -eq 0; then \
  86950. + echo "$$grn$$dashes"; \
  86951. + else \
  86952. + echo "$$red$$dashes"; \
  86953. + fi; \
  86954. echo "$$banner"; \
  86955. - test -n "$$skipped" && echo "$$skipped"; \
  86956. - test -n "$$report" && echo "$$report"; \
  86957. - echo "$$dashes"; \
  86958. + test -z "$$skipped" || echo "$$skipped"; \
  86959. + test -z "$$report" || echo "$$report"; \
  86960. + echo "$$dashes$$std"; \
  86961. test "$$failed" -eq 0; \
  86962. else :; fi
  86963. distdir: $(DISTFILES)
  86964. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  86965. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  86966. - list='$(DISTFILES)'; for file in $$list; do \
  86967. - case $$file in \
  86968. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  86969. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  86970. - esac; \
  86971. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  86972. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  86973. + list='$(DISTFILES)'; \
  86974. + dist_files=`for file in $$list; do echo $$file; done | \
  86975. + sed -e "s|^$$srcdirstrip/||;t" \
  86976. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  86977. + case $$dist_files in \
  86978. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  86979. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  86980. + sort -u` ;; \
  86981. + esac; \
  86982. + for file in $$dist_files; do \
  86983. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  86984. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  86985. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  86986. - dir="/$$dir"; \
  86987. - $(mkdir_p) "$(distdir)$$dir"; \
  86988. - else \
  86989. - dir=''; \
  86990. - fi; \
  86991. if test -d $$d/$$file; then \
  86992. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  86993. + if test -d "$(distdir)/$$file"; then \
  86994. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  86995. + fi; \
  86996. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  86997. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  86998. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  86999. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  87000. fi; \
  87001. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  87002. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  87003. else \
  87004. - test -f $(distdir)/$$file \
  87005. - || cp -p $$d/$$file $(distdir)/$$file \
  87006. + test -f "$(distdir)/$$file" \
  87007. + || cp -p $$d/$$file "$(distdir)/$$file" \
  87008. || exit 1; \
  87009. fi; \
  87010. done
  87011. @@ -507,7 +552,8 @@
  87012. clean-generic:
  87013. distclean-generic:
  87014. - -rm -f $(CONFIG_CLEAN_FILES)
  87015. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  87016. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  87017. maintainer-clean-generic:
  87018. @echo "This command is intended for maintainers to use"
  87019. @@ -520,7 +566,7 @@
  87020. distclean: distclean-am
  87021. -rm -f Makefile
  87022. distclean-am: clean-am distclean-compile distclean-generic \
  87023. - distclean-libtool distclean-tags
  87024. + distclean-tags
  87025. dvi: dvi-am
  87026. @@ -528,18 +574,38 @@
  87027. html: html-am
  87028. +html-am:
  87029. +
  87030. info: info-am
  87031. info-am:
  87032. install-data-am:
  87033. +install-dvi: install-dvi-am
  87034. +
  87035. +install-dvi-am:
  87036. +
  87037. install-exec-am:
  87038. +install-html: install-html-am
  87039. +
  87040. +install-html-am:
  87041. +
  87042. install-info: install-info-am
  87043. +install-info-am:
  87044. +
  87045. install-man:
  87046. +install-pdf: install-pdf-am
  87047. +
  87048. +install-pdf-am:
  87049. +
  87050. +install-ps: install-ps-am
  87051. +
  87052. +install-ps-am:
  87053. +
  87054. installcheck-am:
  87055. maintainer-clean: maintainer-clean-am
  87056. @@ -559,23 +625,28 @@
  87057. ps-am:
  87058. -uninstall-am: uninstall-info-am
  87059. +uninstall-am:
  87060. +
  87061. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  87062. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  87063. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  87064. distclean distclean-compile distclean-generic \
  87065. distclean-libtool distclean-tags distdir dvi dvi-am html \
  87066. html-am info info-am install install-am install-data \
  87067. - install-data-am install-exec install-exec-am install-info \
  87068. - install-info-am install-man install-strip installcheck \
  87069. + install-data-am install-dvi install-dvi-am install-exec \
  87070. + install-exec-am install-html install-html-am install-info \
  87071. + install-info-am install-man install-pdf install-pdf-am \
  87072. + install-ps install-ps-am install-strip installcheck \
  87073. installcheck-am installdirs maintainer-clean \
  87074. maintainer-clean-generic mostlyclean mostlyclean-compile \
  87075. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  87076. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  87077. + pdf-am ps ps-am tags uninstall uninstall-am
  87078. $(top_builddir)/tests/libtests.la:
  87079. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  87080. +
  87081. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  87082. # Otherwise a system limit (for SysV at least) may be exceeded.
  87083. .NOEXPORT:
  87084. diff -Nur gmp-4.3.2.orig/tests/mpf/Makefile.in gmp-4.3.2/tests/mpf/Makefile.in
  87085. --- gmp-4.3.2.orig/tests/mpf/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  87086. +++ gmp-4.3.2/tests/mpf/Makefile.in 2011-02-16 19:23:20.633552124 +0100
  87087. @@ -1,8 +1,9 @@
  87088. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  87089. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  87090. # @configure_input@
  87091. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  87092. -# 2003, 2004 Free Software Foundation, Inc.
  87093. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  87094. +# Inc.
  87095. # This Makefile.in is free software; the Free Software Foundation
  87096. # gives unlimited permission to copy and/or distribute it,
  87097. # with or without modifications, as long as this notice is preserved.
  87098. @@ -31,17 +32,12 @@
  87099. #
  87100. # You should have received a copy of the GNU Lesser General Public License
  87101. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  87102. -SOURCES = reuse.c t-add.c t-cmp_d.c t-cmp_si.c t-conv.c t-div.c t-dm2exp.c t-fits.c t-get_d.c t-get_d_2exp.c t-get_si.c t-get_ui.c t-gsprec.c t-inp_str.c t-int_p.c t-mul_ui.c t-muldiv.c t-set.c t-set_q.c t-set_si.c t-set_ui.c t-sqrt.c t-sqrt_ui.c t-sub.c t-trunc.c t-ui_div.c
  87103. -
  87104. -srcdir = @srcdir@
  87105. -top_srcdir = @top_srcdir@
  87106. VPATH = @srcdir@
  87107. pkgdatadir = $(datadir)/@PACKAGE@
  87108. -pkglibdir = $(libdir)/@PACKAGE@
  87109. pkgincludedir = $(includedir)/@PACKAGE@
  87110. -top_builddir = ../..
  87111. +pkglibdir = $(libdir)/@PACKAGE@
  87112. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  87113. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  87114. -INSTALL = @INSTALL@
  87115. install_sh_DATA = $(install_sh) -c -m 644
  87116. install_sh_PROGRAM = $(install_sh) -c
  87117. install_sh_SCRIPT = $(install_sh) -c
  87118. @@ -53,6 +49,7 @@
  87119. NORMAL_UNINSTALL = :
  87120. PRE_UNINSTALL = :
  87121. POST_UNINSTALL = :
  87122. +build_triplet = @build@
  87123. host_triplet = @host@
  87124. ANSI2KNR = $(top_builddir)/ansi2knr
  87125. check_PROGRAMS = t-add$(EXEEXT) t-sub$(EXEEXT) t-conv$(EXEEXT) \
  87126. @@ -71,9 +68,10 @@
  87127. $(top_srcdir)/configure.in
  87128. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  87129. $(ACLOCAL_M4)
  87130. -mkinstalldirs = $(mkdir_p)
  87131. +mkinstalldirs = $(install_sh) -d
  87132. CONFIG_HEADER = $(top_builddir)/config.h
  87133. CONFIG_CLEAN_FILES =
  87134. +CONFIG_CLEAN_VPATH_FILES =
  87135. reuse_SOURCES = reuse.c
  87136. reuse_OBJECTS = reuse$U.$(OBJEXT)
  87137. reuse_LDADD = $(LDADD)
  87138. @@ -204,17 +202,18 @@
  87139. t_ui_div_LDADD = $(LDADD)
  87140. t_ui_div_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  87141. $(top_builddir)/libgmp.la
  87142. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  87143. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  87144. depcomp =
  87145. am__depfiles_maybe =
  87146. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  87147. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87148. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  87149. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  87150. - $(AM_CFLAGS) $(CFLAGS)
  87151. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  87152. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  87153. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87154. CCLD = $(CC)
  87155. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  87156. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  87157. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  87158. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  87159. + $(LDFLAGS) -o $@
  87160. SOURCES = reuse.c t-add.c t-cmp_d.c t-cmp_si.c t-conv.c t-div.c \
  87161. t-dm2exp.c t-fits.c t-get_d.c t-get_d_2exp.c t-get_si.c \
  87162. t-get_ui.c t-gsprec.c t-inp_str.c t-int_p.c t-mul_ui.c \
  87163. @@ -227,6 +226,8 @@
  87164. t-sqrt_ui.c t-sub.c t-trunc.c t-ui_div.c
  87165. ETAGS = etags
  87166. CTAGS = ctags
  87167. +am__tty_colors = \
  87168. +red=; grn=; lgn=; blu=; std=
  87169. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  87170. ABI = @ABI@
  87171. ACLOCAL = @ACLOCAL@
  87172. @@ -254,15 +255,17 @@
  87173. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  87174. DEFS = @DEFS@
  87175. DLLTOOL = @DLLTOOL@
  87176. -ECHO = @ECHO@
  87177. +DSYMUTIL = @DSYMUTIL@
  87178. +DUMPBIN = @DUMPBIN@
  87179. ECHO_C = @ECHO_C@
  87180. ECHO_N = @ECHO_N@
  87181. ECHO_T = @ECHO_T@
  87182. EGREP = @EGREP@
  87183. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  87184. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  87185. EXEEXT = @EXEEXT@
  87186. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  87187. +F77 = @F77@
  87188. +FFLAGS = @FFLAGS@
  87189. +FGREP = @FGREP@
  87190. GMP_LDFLAGS = @GMP_LDFLAGS@
  87191. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  87192. GREP = @GREP@
  87193. @@ -277,10 +280,12 @@
  87194. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  87195. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  87196. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  87197. +INSTALL = @INSTALL@
  87198. INSTALL_DATA = @INSTALL_DATA@
  87199. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  87200. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  87201. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  87202. +LD = @LD@
  87203. LDFLAGS = @LDFLAGS@
  87204. LEX = @LEX@
  87205. LEXLIB = @LEXLIB@
  87206. @@ -295,20 +300,25 @@
  87207. LIBREADLINE = @LIBREADLINE@
  87208. LIBS = @LIBS@
  87209. LIBTOOL = @LIBTOOL@
  87210. +LIPO = @LIPO@
  87211. LN_S = @LN_S@
  87212. LTLIBOBJS = @LTLIBOBJS@
  87213. M4 = @M4@
  87214. MAINT = @MAINT@
  87215. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  87216. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  87217. MAKEINFO = @MAKEINFO@
  87218. +MKDIR_P = @MKDIR_P@
  87219. +NM = @NM@
  87220. +NMEDIT = @NMEDIT@
  87221. OBJDUMP = @OBJDUMP@
  87222. OBJEXT = @OBJEXT@
  87223. +OTOOL = @OTOOL@
  87224. +OTOOL64 = @OTOOL64@
  87225. PACKAGE = @PACKAGE@
  87226. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  87227. PACKAGE_NAME = @PACKAGE_NAME@
  87228. PACKAGE_STRING = @PACKAGE_STRING@
  87229. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  87230. +PACKAGE_URL = @PACKAGE_URL@
  87231. PACKAGE_VERSION = @PACKAGE_VERSION@
  87232. PATH_SEPARATOR = @PATH_SEPARATOR@
  87233. RANLIB = @RANLIB@
  87234. @@ -322,22 +332,27 @@
  87235. U = @U@
  87236. U_FOR_BUILD = @U_FOR_BUILD@
  87237. VERSION = @VERSION@
  87238. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  87239. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  87240. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  87241. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  87242. WITH_READLINE_01 = @WITH_READLINE_01@
  87243. YACC = @YACC@
  87244. YFLAGS = @YFLAGS@
  87245. +abs_builddir = @abs_builddir@
  87246. +abs_srcdir = @abs_srcdir@
  87247. +abs_top_builddir = @abs_top_builddir@
  87248. +abs_top_srcdir = @abs_top_srcdir@
  87249. ac_ct_CC = @ac_ct_CC@
  87250. ac_ct_CXX = @ac_ct_CXX@
  87251. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  87252. +ac_ct_F77 = @ac_ct_F77@
  87253. am__leading_dot = @am__leading_dot@
  87254. +am__tar = @am__tar@
  87255. +am__untar = @am__untar@
  87256. bindir = @bindir@
  87257. build = @build@
  87258. build_alias = @build_alias@
  87259. build_cpu = @build_cpu@
  87260. build_os = @build_os@
  87261. build_vendor = @build_vendor@
  87262. +builddir = @builddir@
  87263. datadir = @datadir@
  87264. datarootdir = @datarootdir@
  87265. docdir = @docdir@
  87266. @@ -357,6 +372,7 @@
  87267. libexecdir = @libexecdir@
  87268. localedir = @localedir@
  87269. localstatedir = @localstatedir@
  87270. +lt_ECHO = @lt_ECHO@
  87271. mandir = @mandir@
  87272. mkdir_p = @mkdir_p@
  87273. mpn_objects = @mpn_objects@
  87274. @@ -369,8 +385,12 @@
  87275. psdir = @psdir@
  87276. sbindir = @sbindir@
  87277. sharedstatedir = @sharedstatedir@
  87278. +srcdir = @srcdir@
  87279. sysconfdir = @sysconfdir@
  87280. target_alias = @target_alias@
  87281. +top_build_prefix = @top_build_prefix@
  87282. +top_builddir = @top_builddir@
  87283. +top_srcdir = @top_srcdir@
  87284. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  87285. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  87286. TESTS = $(check_PROGRAMS)
  87287. @@ -382,14 +402,14 @@
  87288. @for dep in $?; do \
  87289. case '$(am__configure_deps)' in \
  87290. *$$dep*) \
  87291. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  87292. - && exit 0; \
  87293. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  87294. + && { if test -f $@; then exit 0; else break; fi; }; \
  87295. exit 1;; \
  87296. esac; \
  87297. done; \
  87298. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpf/Makefile'; \
  87299. - cd $(top_srcdir) && \
  87300. - $(AUTOMAKE) --gnu --ignore-deps tests/mpf/Makefile
  87301. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpf/Makefile'; \
  87302. + $(am__cd) $(top_srcdir) && \
  87303. + $(AUTOMAKE) --gnu --ignore-deps tests/mpf/Makefile
  87304. .PRECIOUS: Makefile
  87305. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  87306. @case '$?' in \
  87307. @@ -407,91 +427,94 @@
  87308. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  87309. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  87310. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  87311. +$(am__aclocal_m4_deps):
  87312. clean-checkPROGRAMS:
  87313. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  87314. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  87315. - echo " rm -f $$p $$f"; \
  87316. - rm -f $$p $$f ; \
  87317. - done
  87318. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  87319. + echo " rm -f" $$list; \
  87320. + rm -f $$list || exit $$?; \
  87321. + test -n "$(EXEEXT)" || exit 0; \
  87322. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  87323. + echo " rm -f" $$list; \
  87324. + rm -f $$list
  87325. reuse$(EXEEXT): $(reuse_OBJECTS) $(reuse_DEPENDENCIES)
  87326. @rm -f reuse$(EXEEXT)
  87327. - $(LINK) $(reuse_LDFLAGS) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS)
  87328. + $(LINK) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS)
  87329. t-add$(EXEEXT): $(t_add_OBJECTS) $(t_add_DEPENDENCIES)
  87330. @rm -f t-add$(EXEEXT)
  87331. - $(LINK) $(t_add_LDFLAGS) $(t_add_OBJECTS) $(t_add_LDADD) $(LIBS)
  87332. + $(LINK) $(t_add_OBJECTS) $(t_add_LDADD) $(LIBS)
  87333. t-cmp_d$(EXEEXT): $(t_cmp_d_OBJECTS) $(t_cmp_d_DEPENDENCIES)
  87334. @rm -f t-cmp_d$(EXEEXT)
  87335. - $(LINK) $(t_cmp_d_LDFLAGS) $(t_cmp_d_OBJECTS) $(t_cmp_d_LDADD) $(LIBS)
  87336. + $(LINK) $(t_cmp_d_OBJECTS) $(t_cmp_d_LDADD) $(LIBS)
  87337. t-cmp_si$(EXEEXT): $(t_cmp_si_OBJECTS) $(t_cmp_si_DEPENDENCIES)
  87338. @rm -f t-cmp_si$(EXEEXT)
  87339. - $(LINK) $(t_cmp_si_LDFLAGS) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  87340. + $(LINK) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  87341. t-conv$(EXEEXT): $(t_conv_OBJECTS) $(t_conv_DEPENDENCIES)
  87342. @rm -f t-conv$(EXEEXT)
  87343. - $(LINK) $(t_conv_LDFLAGS) $(t_conv_OBJECTS) $(t_conv_LDADD) $(LIBS)
  87344. + $(LINK) $(t_conv_OBJECTS) $(t_conv_LDADD) $(LIBS)
  87345. t-div$(EXEEXT): $(t_div_OBJECTS) $(t_div_DEPENDENCIES)
  87346. @rm -f t-div$(EXEEXT)
  87347. - $(LINK) $(t_div_LDFLAGS) $(t_div_OBJECTS) $(t_div_LDADD) $(LIBS)
  87348. + $(LINK) $(t_div_OBJECTS) $(t_div_LDADD) $(LIBS)
  87349. t-dm2exp$(EXEEXT): $(t_dm2exp_OBJECTS) $(t_dm2exp_DEPENDENCIES)
  87350. @rm -f t-dm2exp$(EXEEXT)
  87351. - $(LINK) $(t_dm2exp_LDFLAGS) $(t_dm2exp_OBJECTS) $(t_dm2exp_LDADD) $(LIBS)
  87352. + $(LINK) $(t_dm2exp_OBJECTS) $(t_dm2exp_LDADD) $(LIBS)
  87353. t-fits$(EXEEXT): $(t_fits_OBJECTS) $(t_fits_DEPENDENCIES)
  87354. @rm -f t-fits$(EXEEXT)
  87355. - $(LINK) $(t_fits_LDFLAGS) $(t_fits_OBJECTS) $(t_fits_LDADD) $(LIBS)
  87356. + $(LINK) $(t_fits_OBJECTS) $(t_fits_LDADD) $(LIBS)
  87357. t-get_d$(EXEEXT): $(t_get_d_OBJECTS) $(t_get_d_DEPENDENCIES)
  87358. @rm -f t-get_d$(EXEEXT)
  87359. - $(LINK) $(t_get_d_LDFLAGS) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  87360. + $(LINK) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  87361. t-get_d_2exp$(EXEEXT): $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_DEPENDENCIES)
  87362. @rm -f t-get_d_2exp$(EXEEXT)
  87363. - $(LINK) $(t_get_d_2exp_LDFLAGS) $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_LDADD) $(LIBS)
  87364. + $(LINK) $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_LDADD) $(LIBS)
  87365. t-get_si$(EXEEXT): $(t_get_si_OBJECTS) $(t_get_si_DEPENDENCIES)
  87366. @rm -f t-get_si$(EXEEXT)
  87367. - $(LINK) $(t_get_si_LDFLAGS) $(t_get_si_OBJECTS) $(t_get_si_LDADD) $(LIBS)
  87368. + $(LINK) $(t_get_si_OBJECTS) $(t_get_si_LDADD) $(LIBS)
  87369. t-get_ui$(EXEEXT): $(t_get_ui_OBJECTS) $(t_get_ui_DEPENDENCIES)
  87370. @rm -f t-get_ui$(EXEEXT)
  87371. - $(LINK) $(t_get_ui_LDFLAGS) $(t_get_ui_OBJECTS) $(t_get_ui_LDADD) $(LIBS)
  87372. + $(LINK) $(t_get_ui_OBJECTS) $(t_get_ui_LDADD) $(LIBS)
  87373. t-gsprec$(EXEEXT): $(t_gsprec_OBJECTS) $(t_gsprec_DEPENDENCIES)
  87374. @rm -f t-gsprec$(EXEEXT)
  87375. - $(LINK) $(t_gsprec_LDFLAGS) $(t_gsprec_OBJECTS) $(t_gsprec_LDADD) $(LIBS)
  87376. + $(LINK) $(t_gsprec_OBJECTS) $(t_gsprec_LDADD) $(LIBS)
  87377. t-inp_str$(EXEEXT): $(t_inp_str_OBJECTS) $(t_inp_str_DEPENDENCIES)
  87378. @rm -f t-inp_str$(EXEEXT)
  87379. - $(LINK) $(t_inp_str_LDFLAGS) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  87380. + $(LINK) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  87381. t-int_p$(EXEEXT): $(t_int_p_OBJECTS) $(t_int_p_DEPENDENCIES)
  87382. @rm -f t-int_p$(EXEEXT)
  87383. - $(LINK) $(t_int_p_LDFLAGS) $(t_int_p_OBJECTS) $(t_int_p_LDADD) $(LIBS)
  87384. + $(LINK) $(t_int_p_OBJECTS) $(t_int_p_LDADD) $(LIBS)
  87385. t-mul_ui$(EXEEXT): $(t_mul_ui_OBJECTS) $(t_mul_ui_DEPENDENCIES)
  87386. @rm -f t-mul_ui$(EXEEXT)
  87387. - $(LINK) $(t_mul_ui_LDFLAGS) $(t_mul_ui_OBJECTS) $(t_mul_ui_LDADD) $(LIBS)
  87388. + $(LINK) $(t_mul_ui_OBJECTS) $(t_mul_ui_LDADD) $(LIBS)
  87389. t-muldiv$(EXEEXT): $(t_muldiv_OBJECTS) $(t_muldiv_DEPENDENCIES)
  87390. @rm -f t-muldiv$(EXEEXT)
  87391. - $(LINK) $(t_muldiv_LDFLAGS) $(t_muldiv_OBJECTS) $(t_muldiv_LDADD) $(LIBS)
  87392. + $(LINK) $(t_muldiv_OBJECTS) $(t_muldiv_LDADD) $(LIBS)
  87393. t-set$(EXEEXT): $(t_set_OBJECTS) $(t_set_DEPENDENCIES)
  87394. @rm -f t-set$(EXEEXT)
  87395. - $(LINK) $(t_set_LDFLAGS) $(t_set_OBJECTS) $(t_set_LDADD) $(LIBS)
  87396. + $(LINK) $(t_set_OBJECTS) $(t_set_LDADD) $(LIBS)
  87397. t-set_q$(EXEEXT): $(t_set_q_OBJECTS) $(t_set_q_DEPENDENCIES)
  87398. @rm -f t-set_q$(EXEEXT)
  87399. - $(LINK) $(t_set_q_LDFLAGS) $(t_set_q_OBJECTS) $(t_set_q_LDADD) $(LIBS)
  87400. + $(LINK) $(t_set_q_OBJECTS) $(t_set_q_LDADD) $(LIBS)
  87401. t-set_si$(EXEEXT): $(t_set_si_OBJECTS) $(t_set_si_DEPENDENCIES)
  87402. @rm -f t-set_si$(EXEEXT)
  87403. - $(LINK) $(t_set_si_LDFLAGS) $(t_set_si_OBJECTS) $(t_set_si_LDADD) $(LIBS)
  87404. + $(LINK) $(t_set_si_OBJECTS) $(t_set_si_LDADD) $(LIBS)
  87405. t-set_ui$(EXEEXT): $(t_set_ui_OBJECTS) $(t_set_ui_DEPENDENCIES)
  87406. @rm -f t-set_ui$(EXEEXT)
  87407. - $(LINK) $(t_set_ui_LDFLAGS) $(t_set_ui_OBJECTS) $(t_set_ui_LDADD) $(LIBS)
  87408. + $(LINK) $(t_set_ui_OBJECTS) $(t_set_ui_LDADD) $(LIBS)
  87409. t-sqrt$(EXEEXT): $(t_sqrt_OBJECTS) $(t_sqrt_DEPENDENCIES)
  87410. @rm -f t-sqrt$(EXEEXT)
  87411. - $(LINK) $(t_sqrt_LDFLAGS) $(t_sqrt_OBJECTS) $(t_sqrt_LDADD) $(LIBS)
  87412. + $(LINK) $(t_sqrt_OBJECTS) $(t_sqrt_LDADD) $(LIBS)
  87413. t-sqrt_ui$(EXEEXT): $(t_sqrt_ui_OBJECTS) $(t_sqrt_ui_DEPENDENCIES)
  87414. @rm -f t-sqrt_ui$(EXEEXT)
  87415. - $(LINK) $(t_sqrt_ui_LDFLAGS) $(t_sqrt_ui_OBJECTS) $(t_sqrt_ui_LDADD) $(LIBS)
  87416. + $(LINK) $(t_sqrt_ui_OBJECTS) $(t_sqrt_ui_LDADD) $(LIBS)
  87417. t-sub$(EXEEXT): $(t_sub_OBJECTS) $(t_sub_DEPENDENCIES)
  87418. @rm -f t-sub$(EXEEXT)
  87419. - $(LINK) $(t_sub_LDFLAGS) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS)
  87420. + $(LINK) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS)
  87421. t-trunc$(EXEEXT): $(t_trunc_OBJECTS) $(t_trunc_DEPENDENCIES)
  87422. @rm -f t-trunc$(EXEEXT)
  87423. - $(LINK) $(t_trunc_LDFLAGS) $(t_trunc_OBJECTS) $(t_trunc_LDADD) $(LIBS)
  87424. + $(LINK) $(t_trunc_OBJECTS) $(t_trunc_LDADD) $(LIBS)
  87425. t-ui_div$(EXEEXT): $(t_ui_div_OBJECTS) $(t_ui_div_DEPENDENCIES)
  87426. @rm -f t-ui_div$(EXEEXT)
  87427. - $(LINK) $(t_ui_div_LDFLAGS) $(t_ui_div_OBJECTS) $(t_ui_div_LDADD) $(LIBS)
  87428. + $(LINK) $(t_ui_div_OBJECTS) $(t_ui_div_LDADD) $(LIBS)
  87429. mostlyclean-compile:
  87430. -rm -f *.$(OBJEXT)
  87431. @@ -499,7 +522,7 @@
  87432. distclean-compile:
  87433. -rm -f *.tab.c
  87434. $(top_builddir)/ansi2knr:
  87435. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  87436. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  87437. mostlyclean-kr:
  87438. -test "$U" = "" || rm -f *_.c
  87439. @@ -585,54 +608,54 @@
  87440. clean-libtool:
  87441. -rm -rf .libs _libs
  87442. -distclean-libtool:
  87443. - -rm -f libtool
  87444. -uninstall-info-am:
  87445. -
  87446. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  87447. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  87448. unique=`for i in $$list; do \
  87449. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  87450. done | \
  87451. - $(AWK) ' { files[$$0] = 1; } \
  87452. - END { for (i in files) print i; }'`; \
  87453. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  87454. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  87455. mkid -fID $$unique
  87456. tags: TAGS
  87457. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  87458. $(TAGS_FILES) $(LISP)
  87459. - tags=; \
  87460. + set x; \
  87461. here=`pwd`; \
  87462. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  87463. unique=`for i in $$list; do \
  87464. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  87465. done | \
  87466. - $(AWK) ' { files[$$0] = 1; } \
  87467. - END { for (i in files) print i; }'`; \
  87468. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  87469. - test -z "$$unique" && unique=$$empty_fix; \
  87470. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  87471. - $$tags $$unique; \
  87472. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  87473. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  87474. + shift; \
  87475. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  87476. + test -n "$$unique" || unique=$$empty_fix; \
  87477. + if test $$# -gt 0; then \
  87478. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  87479. + "$$@" $$unique; \
  87480. + else \
  87481. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  87482. + $$unique; \
  87483. + fi; \
  87484. fi
  87485. ctags: CTAGS
  87486. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  87487. $(TAGS_FILES) $(LISP)
  87488. - tags=; \
  87489. - here=`pwd`; \
  87490. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  87491. unique=`for i in $$list; do \
  87492. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  87493. done | \
  87494. - $(AWK) ' { files[$$0] = 1; } \
  87495. - END { for (i in files) print i; }'`; \
  87496. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  87497. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  87498. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  87499. + test -z "$(CTAGS_ARGS)$$unique" \
  87500. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  87501. - $$tags $$unique
  87502. + $$unique
  87503. GTAGS:
  87504. here=`$(am__cd) $(top_builddir) && pwd` \
  87505. - && cd $(top_srcdir) \
  87506. - && gtags -i $(GTAGS_ARGS) $$here
  87507. + && $(am__cd) $(top_srcdir) \
  87508. + && gtags -i $(GTAGS_ARGS) "$$here"
  87509. distclean-tags:
  87510. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  87511. @@ -640,7 +663,8 @@
  87512. check-TESTS: $(TESTS)
  87513. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  87514. srcdir=$(srcdir); export srcdir; \
  87515. - list='$(TESTS)'; \
  87516. + list=' $(TESTS) '; \
  87517. + $(am__tty_colors); \
  87518. if test -n "$$list"; then \
  87519. for tst in $$list; do \
  87520. if test -f ./$$tst; then dir=./; \
  87521. @@ -649,91 +673,112 @@
  87522. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  87523. all=`expr $$all + 1`; \
  87524. case " $(XFAIL_TESTS) " in \
  87525. - *" $$tst "*) \
  87526. + *[\ \ ]$$tst[\ \ ]*) \
  87527. xpass=`expr $$xpass + 1`; \
  87528. failed=`expr $$failed + 1`; \
  87529. - echo "XPASS: $$tst"; \
  87530. + col=$$red; res=XPASS; \
  87531. ;; \
  87532. *) \
  87533. - echo "PASS: $$tst"; \
  87534. + col=$$grn; res=PASS; \
  87535. ;; \
  87536. esac; \
  87537. elif test $$? -ne 77; then \
  87538. all=`expr $$all + 1`; \
  87539. case " $(XFAIL_TESTS) " in \
  87540. - *" $$tst "*) \
  87541. + *[\ \ ]$$tst[\ \ ]*) \
  87542. xfail=`expr $$xfail + 1`; \
  87543. - echo "XFAIL: $$tst"; \
  87544. + col=$$lgn; res=XFAIL; \
  87545. ;; \
  87546. *) \
  87547. failed=`expr $$failed + 1`; \
  87548. - echo "FAIL: $$tst"; \
  87549. + col=$$red; res=FAIL; \
  87550. ;; \
  87551. esac; \
  87552. else \
  87553. skip=`expr $$skip + 1`; \
  87554. - echo "SKIP: $$tst"; \
  87555. + col=$$blu; res=SKIP; \
  87556. fi; \
  87557. + echo "$${col}$$res$${std}: $$tst"; \
  87558. done; \
  87559. + if test "$$all" -eq 1; then \
  87560. + tests="test"; \
  87561. + All=""; \
  87562. + else \
  87563. + tests="tests"; \
  87564. + All="All "; \
  87565. + fi; \
  87566. if test "$$failed" -eq 0; then \
  87567. if test "$$xfail" -eq 0; then \
  87568. - banner="All $$all tests passed"; \
  87569. + banner="$$All$$all $$tests passed"; \
  87570. else \
  87571. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  87572. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  87573. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  87574. fi; \
  87575. else \
  87576. if test "$$xpass" -eq 0; then \
  87577. - banner="$$failed of $$all tests failed"; \
  87578. + banner="$$failed of $$all $$tests failed"; \
  87579. else \
  87580. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  87581. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  87582. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  87583. fi; \
  87584. fi; \
  87585. dashes="$$banner"; \
  87586. skipped=""; \
  87587. if test "$$skip" -ne 0; then \
  87588. - skipped="($$skip tests were not run)"; \
  87589. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  87590. + if test "$$skip" -eq 1; then \
  87591. + skipped="($$skip test was not run)"; \
  87592. + else \
  87593. + skipped="($$skip tests were not run)"; \
  87594. + fi; \
  87595. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  87596. dashes="$$skipped"; \
  87597. fi; \
  87598. report=""; \
  87599. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  87600. report="Please report to $(PACKAGE_BUGREPORT)"; \
  87601. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  87602. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  87603. dashes="$$report"; \
  87604. fi; \
  87605. dashes=`echo "$$dashes" | sed s/./=/g`; \
  87606. - echo "$$dashes"; \
  87607. + if test "$$failed" -eq 0; then \
  87608. + echo "$$grn$$dashes"; \
  87609. + else \
  87610. + echo "$$red$$dashes"; \
  87611. + fi; \
  87612. echo "$$banner"; \
  87613. - test -n "$$skipped" && echo "$$skipped"; \
  87614. - test -n "$$report" && echo "$$report"; \
  87615. - echo "$$dashes"; \
  87616. + test -z "$$skipped" || echo "$$skipped"; \
  87617. + test -z "$$report" || echo "$$report"; \
  87618. + echo "$$dashes$$std"; \
  87619. test "$$failed" -eq 0; \
  87620. else :; fi
  87621. distdir: $(DISTFILES)
  87622. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  87623. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  87624. - list='$(DISTFILES)'; for file in $$list; do \
  87625. - case $$file in \
  87626. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  87627. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  87628. - esac; \
  87629. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  87630. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  87631. + list='$(DISTFILES)'; \
  87632. + dist_files=`for file in $$list; do echo $$file; done | \
  87633. + sed -e "s|^$$srcdirstrip/||;t" \
  87634. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  87635. + case $$dist_files in \
  87636. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  87637. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  87638. + sort -u` ;; \
  87639. + esac; \
  87640. + for file in $$dist_files; do \
  87641. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  87642. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  87643. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  87644. - dir="/$$dir"; \
  87645. - $(mkdir_p) "$(distdir)$$dir"; \
  87646. - else \
  87647. - dir=''; \
  87648. - fi; \
  87649. if test -d $$d/$$file; then \
  87650. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  87651. + if test -d "$(distdir)/$$file"; then \
  87652. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  87653. + fi; \
  87654. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  87655. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  87656. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  87657. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  87658. fi; \
  87659. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  87660. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  87661. else \
  87662. - test -f $(distdir)/$$file \
  87663. - || cp -p $$d/$$file $(distdir)/$$file \
  87664. + test -f "$(distdir)/$$file" \
  87665. + || cp -p $$d/$$file "$(distdir)/$$file" \
  87666. || exit 1; \
  87667. fi; \
  87668. done
  87669. @@ -762,7 +807,8 @@
  87670. clean-generic:
  87671. distclean-generic:
  87672. - -rm -f $(CONFIG_CLEAN_FILES)
  87673. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  87674. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  87675. maintainer-clean-generic:
  87676. @echo "This command is intended for maintainers to use"
  87677. @@ -775,7 +821,7 @@
  87678. distclean: distclean-am
  87679. -rm -f Makefile
  87680. distclean-am: clean-am distclean-compile distclean-generic \
  87681. - distclean-libtool distclean-tags
  87682. + distclean-tags
  87683. dvi: dvi-am
  87684. @@ -783,18 +829,38 @@
  87685. html: html-am
  87686. +html-am:
  87687. +
  87688. info: info-am
  87689. info-am:
  87690. install-data-am:
  87691. +install-dvi: install-dvi-am
  87692. +
  87693. +install-dvi-am:
  87694. +
  87695. install-exec-am:
  87696. +install-html: install-html-am
  87697. +
  87698. +install-html-am:
  87699. +
  87700. install-info: install-info-am
  87701. +install-info-am:
  87702. +
  87703. install-man:
  87704. +install-pdf: install-pdf-am
  87705. +
  87706. +install-pdf-am:
  87707. +
  87708. +install-ps: install-ps-am
  87709. +
  87710. +install-ps-am:
  87711. +
  87712. installcheck-am:
  87713. maintainer-clean: maintainer-clean-am
  87714. @@ -814,23 +880,28 @@
  87715. ps-am:
  87716. -uninstall-am: uninstall-info-am
  87717. +uninstall-am:
  87718. +
  87719. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  87720. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  87721. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  87722. distclean distclean-compile distclean-generic \
  87723. distclean-libtool distclean-tags distdir dvi dvi-am html \
  87724. html-am info info-am install install-am install-data \
  87725. - install-data-am install-exec install-exec-am install-info \
  87726. - install-info-am install-man install-strip installcheck \
  87727. + install-data-am install-dvi install-dvi-am install-exec \
  87728. + install-exec-am install-html install-html-am install-info \
  87729. + install-info-am install-man install-pdf install-pdf-am \
  87730. + install-ps install-ps-am install-strip installcheck \
  87731. installcheck-am installdirs maintainer-clean \
  87732. maintainer-clean-generic mostlyclean mostlyclean-compile \
  87733. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  87734. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  87735. + pdf-am ps ps-am tags uninstall uninstall-am
  87736. $(top_builddir)/tests/libtests.la:
  87737. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  87738. +
  87739. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  87740. # Otherwise a system limit (for SysV at least) may be exceeded.
  87741. .NOEXPORT:
  87742. diff -Nur gmp-4.3.2.orig/tests/mpn/Makefile.in gmp-4.3.2/tests/mpn/Makefile.in
  87743. --- gmp-4.3.2.orig/tests/mpn/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  87744. +++ gmp-4.3.2/tests/mpn/Makefile.in 2011-02-16 19:23:20.683557614 +0100
  87745. @@ -1,8 +1,9 @@
  87746. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  87747. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  87748. # @configure_input@
  87749. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  87750. -# 2003, 2004 Free Software Foundation, Inc.
  87751. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  87752. +# Inc.
  87753. # This Makefile.in is free software; the Free Software Foundation
  87754. # gives unlimited permission to copy and/or distribute it,
  87755. # with or without modifications, as long as this notice is preserved.
  87756. @@ -30,17 +31,12 @@
  87757. #
  87758. # You should have received a copy of the GNU Lesser General Public License
  87759. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  87760. -SOURCES = t-aors_1.c t-asmtype.c t-divrem_1.c t-fat.c t-get_d.c t-hgcd.c t-instrument.c t-iord_u.c t-matrix22.c t-mp_bases.c t-perfsqr.c t-scan.c
  87761. -
  87762. -srcdir = @srcdir@
  87763. -top_srcdir = @top_srcdir@
  87764. VPATH = @srcdir@
  87765. pkgdatadir = $(datadir)/@PACKAGE@
  87766. -pkglibdir = $(libdir)/@PACKAGE@
  87767. pkgincludedir = $(includedir)/@PACKAGE@
  87768. -top_builddir = ../..
  87769. +pkglibdir = $(libdir)/@PACKAGE@
  87770. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  87771. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  87772. -INSTALL = @INSTALL@
  87773. install_sh_DATA = $(install_sh) -c -m 644
  87774. install_sh_PROGRAM = $(install_sh) -c
  87775. install_sh_SCRIPT = $(install_sh) -c
  87776. @@ -52,6 +48,7 @@
  87777. NORMAL_UNINSTALL = :
  87778. PRE_UNINSTALL = :
  87779. POST_UNINSTALL = :
  87780. +build_triplet = @build@
  87781. host_triplet = @host@
  87782. ANSI2KNR = $(top_builddir)/ansi2knr
  87783. check_PROGRAMS = t-asmtype$(EXEEXT) t-aors_1$(EXEEXT) \
  87784. @@ -66,9 +63,10 @@
  87785. $(top_srcdir)/configure.in
  87786. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  87787. $(ACLOCAL_M4)
  87788. -mkinstalldirs = $(mkdir_p)
  87789. +mkinstalldirs = $(install_sh) -d
  87790. CONFIG_HEADER = $(top_builddir)/config.h
  87791. CONFIG_CLEAN_FILES =
  87792. +CONFIG_CLEAN_VPATH_FILES =
  87793. t_aors_1_SOURCES = t-aors_1.c
  87794. t_aors_1_OBJECTS = t-aors_1$U.$(OBJEXT)
  87795. t_aors_1_LDADD = $(LDADD)
  87796. @@ -129,17 +127,18 @@
  87797. t_scan_LDADD = $(LDADD)
  87798. t_scan_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  87799. $(top_builddir)/libgmp.la
  87800. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  87801. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  87802. depcomp =
  87803. am__depfiles_maybe =
  87804. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  87805. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87806. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  87807. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  87808. - $(AM_CFLAGS) $(CFLAGS)
  87809. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  87810. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  87811. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87812. CCLD = $(CC)
  87813. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  87814. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  87815. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  87816. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  87817. + $(LDFLAGS) -o $@
  87818. SOURCES = t-aors_1.c t-asmtype.c t-divrem_1.c t-fat.c t-get_d.c \
  87819. t-hgcd.c t-instrument.c t-iord_u.c t-matrix22.c t-mp_bases.c \
  87820. t-perfsqr.c t-scan.c
  87821. @@ -148,6 +147,8 @@
  87822. t-perfsqr.c t-scan.c
  87823. ETAGS = etags
  87824. CTAGS = ctags
  87825. +am__tty_colors = \
  87826. +red=; grn=; lgn=; blu=; std=
  87827. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  87828. ABI = @ABI@
  87829. ACLOCAL = @ACLOCAL@
  87830. @@ -175,15 +176,17 @@
  87831. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  87832. DEFS = @DEFS@
  87833. DLLTOOL = @DLLTOOL@
  87834. -ECHO = @ECHO@
  87835. +DSYMUTIL = @DSYMUTIL@
  87836. +DUMPBIN = @DUMPBIN@
  87837. ECHO_C = @ECHO_C@
  87838. ECHO_N = @ECHO_N@
  87839. ECHO_T = @ECHO_T@
  87840. EGREP = @EGREP@
  87841. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  87842. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  87843. EXEEXT = @EXEEXT@
  87844. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  87845. +F77 = @F77@
  87846. +FFLAGS = @FFLAGS@
  87847. +FGREP = @FGREP@
  87848. GMP_LDFLAGS = @GMP_LDFLAGS@
  87849. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  87850. GREP = @GREP@
  87851. @@ -198,10 +201,12 @@
  87852. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  87853. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  87854. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  87855. +INSTALL = @INSTALL@
  87856. INSTALL_DATA = @INSTALL_DATA@
  87857. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  87858. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  87859. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  87860. +LD = @LD@
  87861. LDFLAGS = @LDFLAGS@
  87862. LEX = @LEX@
  87863. LEXLIB = @LEXLIB@
  87864. @@ -216,20 +221,25 @@
  87865. LIBREADLINE = @LIBREADLINE@
  87866. LIBS = @LIBS@
  87867. LIBTOOL = @LIBTOOL@
  87868. +LIPO = @LIPO@
  87869. LN_S = @LN_S@
  87870. LTLIBOBJS = @LTLIBOBJS@
  87871. M4 = @M4@
  87872. MAINT = @MAINT@
  87873. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  87874. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  87875. MAKEINFO = @MAKEINFO@
  87876. +MKDIR_P = @MKDIR_P@
  87877. +NM = @NM@
  87878. +NMEDIT = @NMEDIT@
  87879. OBJDUMP = @OBJDUMP@
  87880. OBJEXT = @OBJEXT@
  87881. +OTOOL = @OTOOL@
  87882. +OTOOL64 = @OTOOL64@
  87883. PACKAGE = @PACKAGE@
  87884. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  87885. PACKAGE_NAME = @PACKAGE_NAME@
  87886. PACKAGE_STRING = @PACKAGE_STRING@
  87887. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  87888. +PACKAGE_URL = @PACKAGE_URL@
  87889. PACKAGE_VERSION = @PACKAGE_VERSION@
  87890. PATH_SEPARATOR = @PATH_SEPARATOR@
  87891. RANLIB = @RANLIB@
  87892. @@ -243,22 +253,27 @@
  87893. U = @U@
  87894. U_FOR_BUILD = @U_FOR_BUILD@
  87895. VERSION = @VERSION@
  87896. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  87897. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  87898. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  87899. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  87900. WITH_READLINE_01 = @WITH_READLINE_01@
  87901. YACC = @YACC@
  87902. YFLAGS = @YFLAGS@
  87903. +abs_builddir = @abs_builddir@
  87904. +abs_srcdir = @abs_srcdir@
  87905. +abs_top_builddir = @abs_top_builddir@
  87906. +abs_top_srcdir = @abs_top_srcdir@
  87907. ac_ct_CC = @ac_ct_CC@
  87908. ac_ct_CXX = @ac_ct_CXX@
  87909. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  87910. +ac_ct_F77 = @ac_ct_F77@
  87911. am__leading_dot = @am__leading_dot@
  87912. +am__tar = @am__tar@
  87913. +am__untar = @am__untar@
  87914. bindir = @bindir@
  87915. build = @build@
  87916. build_alias = @build_alias@
  87917. build_cpu = @build_cpu@
  87918. build_os = @build_os@
  87919. build_vendor = @build_vendor@
  87920. +builddir = @builddir@
  87921. datadir = @datadir@
  87922. datarootdir = @datarootdir@
  87923. docdir = @docdir@
  87924. @@ -278,6 +293,7 @@
  87925. libexecdir = @libexecdir@
  87926. localedir = @localedir@
  87927. localstatedir = @localstatedir@
  87928. +lt_ECHO = @lt_ECHO@
  87929. mandir = @mandir@
  87930. mkdir_p = @mkdir_p@
  87931. mpn_objects = @mpn_objects@
  87932. @@ -290,8 +306,12 @@
  87933. psdir = @psdir@
  87934. sbindir = @sbindir@
  87935. sharedstatedir = @sharedstatedir@
  87936. +srcdir = @srcdir@
  87937. sysconfdir = @sysconfdir@
  87938. target_alias = @target_alias@
  87939. +top_build_prefix = @top_build_prefix@
  87940. +top_builddir = @top_builddir@
  87941. +top_srcdir = @top_srcdir@
  87942. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  87943. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  87944. TESTS = $(check_PROGRAMS)
  87945. @@ -303,14 +323,14 @@
  87946. @for dep in $?; do \
  87947. case '$(am__configure_deps)' in \
  87948. *$$dep*) \
  87949. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  87950. - && exit 0; \
  87951. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  87952. + && { if test -f $@; then exit 0; else break; fi; }; \
  87953. exit 1;; \
  87954. esac; \
  87955. done; \
  87956. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpn/Makefile'; \
  87957. - cd $(top_srcdir) && \
  87958. - $(AUTOMAKE) --gnu --ignore-deps tests/mpn/Makefile
  87959. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpn/Makefile'; \
  87960. + $(am__cd) $(top_srcdir) && \
  87961. + $(AUTOMAKE) --gnu --ignore-deps tests/mpn/Makefile
  87962. .PRECIOUS: Makefile
  87963. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  87964. @case '$?' in \
  87965. @@ -328,49 +348,52 @@
  87966. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  87967. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  87968. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  87969. +$(am__aclocal_m4_deps):
  87970. clean-checkPROGRAMS:
  87971. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  87972. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  87973. - echo " rm -f $$p $$f"; \
  87974. - rm -f $$p $$f ; \
  87975. - done
  87976. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  87977. + echo " rm -f" $$list; \
  87978. + rm -f $$list || exit $$?; \
  87979. + test -n "$(EXEEXT)" || exit 0; \
  87980. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  87981. + echo " rm -f" $$list; \
  87982. + rm -f $$list
  87983. t-aors_1$(EXEEXT): $(t_aors_1_OBJECTS) $(t_aors_1_DEPENDENCIES)
  87984. @rm -f t-aors_1$(EXEEXT)
  87985. - $(LINK) $(t_aors_1_LDFLAGS) $(t_aors_1_OBJECTS) $(t_aors_1_LDADD) $(LIBS)
  87986. + $(LINK) $(t_aors_1_OBJECTS) $(t_aors_1_LDADD) $(LIBS)
  87987. t-asmtype$(EXEEXT): $(t_asmtype_OBJECTS) $(t_asmtype_DEPENDENCIES)
  87988. @rm -f t-asmtype$(EXEEXT)
  87989. - $(LINK) $(t_asmtype_LDFLAGS) $(t_asmtype_OBJECTS) $(t_asmtype_LDADD) $(LIBS)
  87990. + $(LINK) $(t_asmtype_OBJECTS) $(t_asmtype_LDADD) $(LIBS)
  87991. t-divrem_1$(EXEEXT): $(t_divrem_1_OBJECTS) $(t_divrem_1_DEPENDENCIES)
  87992. @rm -f t-divrem_1$(EXEEXT)
  87993. - $(LINK) $(t_divrem_1_LDFLAGS) $(t_divrem_1_OBJECTS) $(t_divrem_1_LDADD) $(LIBS)
  87994. + $(LINK) $(t_divrem_1_OBJECTS) $(t_divrem_1_LDADD) $(LIBS)
  87995. t-fat$(EXEEXT): $(t_fat_OBJECTS) $(t_fat_DEPENDENCIES)
  87996. @rm -f t-fat$(EXEEXT)
  87997. - $(LINK) $(t_fat_LDFLAGS) $(t_fat_OBJECTS) $(t_fat_LDADD) $(LIBS)
  87998. + $(LINK) $(t_fat_OBJECTS) $(t_fat_LDADD) $(LIBS)
  87999. t-get_d$(EXEEXT): $(t_get_d_OBJECTS) $(t_get_d_DEPENDENCIES)
  88000. @rm -f t-get_d$(EXEEXT)
  88001. - $(LINK) $(t_get_d_LDFLAGS) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  88002. + $(LINK) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  88003. t-hgcd$(EXEEXT): $(t_hgcd_OBJECTS) $(t_hgcd_DEPENDENCIES)
  88004. @rm -f t-hgcd$(EXEEXT)
  88005. - $(LINK) $(t_hgcd_LDFLAGS) $(t_hgcd_OBJECTS) $(t_hgcd_LDADD) $(LIBS)
  88006. + $(LINK) $(t_hgcd_OBJECTS) $(t_hgcd_LDADD) $(LIBS)
  88007. t-instrument$(EXEEXT): $(t_instrument_OBJECTS) $(t_instrument_DEPENDENCIES)
  88008. @rm -f t-instrument$(EXEEXT)
  88009. - $(LINK) $(t_instrument_LDFLAGS) $(t_instrument_OBJECTS) $(t_instrument_LDADD) $(LIBS)
  88010. + $(LINK) $(t_instrument_OBJECTS) $(t_instrument_LDADD) $(LIBS)
  88011. t-iord_u$(EXEEXT): $(t_iord_u_OBJECTS) $(t_iord_u_DEPENDENCIES)
  88012. @rm -f t-iord_u$(EXEEXT)
  88013. - $(LINK) $(t_iord_u_LDFLAGS) $(t_iord_u_OBJECTS) $(t_iord_u_LDADD) $(LIBS)
  88014. + $(LINK) $(t_iord_u_OBJECTS) $(t_iord_u_LDADD) $(LIBS)
  88015. t-matrix22$(EXEEXT): $(t_matrix22_OBJECTS) $(t_matrix22_DEPENDENCIES)
  88016. @rm -f t-matrix22$(EXEEXT)
  88017. - $(LINK) $(t_matrix22_LDFLAGS) $(t_matrix22_OBJECTS) $(t_matrix22_LDADD) $(LIBS)
  88018. + $(LINK) $(t_matrix22_OBJECTS) $(t_matrix22_LDADD) $(LIBS)
  88019. t-mp_bases$(EXEEXT): $(t_mp_bases_OBJECTS) $(t_mp_bases_DEPENDENCIES)
  88020. @rm -f t-mp_bases$(EXEEXT)
  88021. - $(LINK) $(t_mp_bases_LDFLAGS) $(t_mp_bases_OBJECTS) $(t_mp_bases_LDADD) $(LIBS)
  88022. + $(LINK) $(t_mp_bases_OBJECTS) $(t_mp_bases_LDADD) $(LIBS)
  88023. t-perfsqr$(EXEEXT): $(t_perfsqr_OBJECTS) $(t_perfsqr_DEPENDENCIES)
  88024. @rm -f t-perfsqr$(EXEEXT)
  88025. - $(LINK) $(t_perfsqr_LDFLAGS) $(t_perfsqr_OBJECTS) $(t_perfsqr_LDADD) $(LIBS)
  88026. + $(LINK) $(t_perfsqr_OBJECTS) $(t_perfsqr_LDADD) $(LIBS)
  88027. t-scan$(EXEEXT): $(t_scan_OBJECTS) $(t_scan_DEPENDENCIES)
  88028. @rm -f t-scan$(EXEEXT)
  88029. - $(LINK) $(t_scan_LDFLAGS) $(t_scan_OBJECTS) $(t_scan_LDADD) $(LIBS)
  88030. + $(LINK) $(t_scan_OBJECTS) $(t_scan_LDADD) $(LIBS)
  88031. mostlyclean-compile:
  88032. -rm -f *.$(OBJEXT)
  88033. @@ -378,7 +401,7 @@
  88034. distclean-compile:
  88035. -rm -f *.tab.c
  88036. $(top_builddir)/ansi2knr:
  88037. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  88038. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  88039. mostlyclean-kr:
  88040. -test "$U" = "" || rm -f *_.c
  88041. @@ -429,54 +452,54 @@
  88042. clean-libtool:
  88043. -rm -rf .libs _libs
  88044. -distclean-libtool:
  88045. - -rm -f libtool
  88046. -uninstall-info-am:
  88047. -
  88048. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  88049. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88050. unique=`for i in $$list; do \
  88051. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88052. done | \
  88053. - $(AWK) ' { files[$$0] = 1; } \
  88054. - END { for (i in files) print i; }'`; \
  88055. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88056. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88057. mkid -fID $$unique
  88058. tags: TAGS
  88059. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  88060. $(TAGS_FILES) $(LISP)
  88061. - tags=; \
  88062. + set x; \
  88063. here=`pwd`; \
  88064. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88065. unique=`for i in $$list; do \
  88066. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88067. done | \
  88068. - $(AWK) ' { files[$$0] = 1; } \
  88069. - END { for (i in files) print i; }'`; \
  88070. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  88071. - test -z "$$unique" && unique=$$empty_fix; \
  88072. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88073. - $$tags $$unique; \
  88074. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88075. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88076. + shift; \
  88077. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  88078. + test -n "$$unique" || unique=$$empty_fix; \
  88079. + if test $$# -gt 0; then \
  88080. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88081. + "$$@" $$unique; \
  88082. + else \
  88083. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88084. + $$unique; \
  88085. + fi; \
  88086. fi
  88087. ctags: CTAGS
  88088. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  88089. $(TAGS_FILES) $(LISP)
  88090. - tags=; \
  88091. - here=`pwd`; \
  88092. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88093. unique=`for i in $$list; do \
  88094. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88095. done | \
  88096. - $(AWK) ' { files[$$0] = 1; } \
  88097. - END { for (i in files) print i; }'`; \
  88098. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  88099. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88100. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88101. + test -z "$(CTAGS_ARGS)$$unique" \
  88102. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  88103. - $$tags $$unique
  88104. + $$unique
  88105. GTAGS:
  88106. here=`$(am__cd) $(top_builddir) && pwd` \
  88107. - && cd $(top_srcdir) \
  88108. - && gtags -i $(GTAGS_ARGS) $$here
  88109. + && $(am__cd) $(top_srcdir) \
  88110. + && gtags -i $(GTAGS_ARGS) "$$here"
  88111. distclean-tags:
  88112. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  88113. @@ -484,7 +507,8 @@
  88114. check-TESTS: $(TESTS)
  88115. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  88116. srcdir=$(srcdir); export srcdir; \
  88117. - list='$(TESTS)'; \
  88118. + list=' $(TESTS) '; \
  88119. + $(am__tty_colors); \
  88120. if test -n "$$list"; then \
  88121. for tst in $$list; do \
  88122. if test -f ./$$tst; then dir=./; \
  88123. @@ -493,91 +517,112 @@
  88124. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  88125. all=`expr $$all + 1`; \
  88126. case " $(XFAIL_TESTS) " in \
  88127. - *" $$tst "*) \
  88128. + *[\ \ ]$$tst[\ \ ]*) \
  88129. xpass=`expr $$xpass + 1`; \
  88130. failed=`expr $$failed + 1`; \
  88131. - echo "XPASS: $$tst"; \
  88132. + col=$$red; res=XPASS; \
  88133. ;; \
  88134. *) \
  88135. - echo "PASS: $$tst"; \
  88136. + col=$$grn; res=PASS; \
  88137. ;; \
  88138. esac; \
  88139. elif test $$? -ne 77; then \
  88140. all=`expr $$all + 1`; \
  88141. case " $(XFAIL_TESTS) " in \
  88142. - *" $$tst "*) \
  88143. + *[\ \ ]$$tst[\ \ ]*) \
  88144. xfail=`expr $$xfail + 1`; \
  88145. - echo "XFAIL: $$tst"; \
  88146. + col=$$lgn; res=XFAIL; \
  88147. ;; \
  88148. *) \
  88149. failed=`expr $$failed + 1`; \
  88150. - echo "FAIL: $$tst"; \
  88151. + col=$$red; res=FAIL; \
  88152. ;; \
  88153. esac; \
  88154. else \
  88155. skip=`expr $$skip + 1`; \
  88156. - echo "SKIP: $$tst"; \
  88157. + col=$$blu; res=SKIP; \
  88158. fi; \
  88159. + echo "$${col}$$res$${std}: $$tst"; \
  88160. done; \
  88161. + if test "$$all" -eq 1; then \
  88162. + tests="test"; \
  88163. + All=""; \
  88164. + else \
  88165. + tests="tests"; \
  88166. + All="All "; \
  88167. + fi; \
  88168. if test "$$failed" -eq 0; then \
  88169. if test "$$xfail" -eq 0; then \
  88170. - banner="All $$all tests passed"; \
  88171. + banner="$$All$$all $$tests passed"; \
  88172. else \
  88173. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  88174. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  88175. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  88176. fi; \
  88177. else \
  88178. if test "$$xpass" -eq 0; then \
  88179. - banner="$$failed of $$all tests failed"; \
  88180. + banner="$$failed of $$all $$tests failed"; \
  88181. else \
  88182. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  88183. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  88184. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  88185. fi; \
  88186. fi; \
  88187. dashes="$$banner"; \
  88188. skipped=""; \
  88189. if test "$$skip" -ne 0; then \
  88190. - skipped="($$skip tests were not run)"; \
  88191. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  88192. + if test "$$skip" -eq 1; then \
  88193. + skipped="($$skip test was not run)"; \
  88194. + else \
  88195. + skipped="($$skip tests were not run)"; \
  88196. + fi; \
  88197. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  88198. dashes="$$skipped"; \
  88199. fi; \
  88200. report=""; \
  88201. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  88202. report="Please report to $(PACKAGE_BUGREPORT)"; \
  88203. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  88204. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  88205. dashes="$$report"; \
  88206. fi; \
  88207. dashes=`echo "$$dashes" | sed s/./=/g`; \
  88208. - echo "$$dashes"; \
  88209. + if test "$$failed" -eq 0; then \
  88210. + echo "$$grn$$dashes"; \
  88211. + else \
  88212. + echo "$$red$$dashes"; \
  88213. + fi; \
  88214. echo "$$banner"; \
  88215. - test -n "$$skipped" && echo "$$skipped"; \
  88216. - test -n "$$report" && echo "$$report"; \
  88217. - echo "$$dashes"; \
  88218. + test -z "$$skipped" || echo "$$skipped"; \
  88219. + test -z "$$report" || echo "$$report"; \
  88220. + echo "$$dashes$$std"; \
  88221. test "$$failed" -eq 0; \
  88222. else :; fi
  88223. distdir: $(DISTFILES)
  88224. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  88225. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  88226. - list='$(DISTFILES)'; for file in $$list; do \
  88227. - case $$file in \
  88228. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  88229. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  88230. - esac; \
  88231. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  88232. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  88233. + list='$(DISTFILES)'; \
  88234. + dist_files=`for file in $$list; do echo $$file; done | \
  88235. + sed -e "s|^$$srcdirstrip/||;t" \
  88236. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  88237. + case $$dist_files in \
  88238. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  88239. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  88240. + sort -u` ;; \
  88241. + esac; \
  88242. + for file in $$dist_files; do \
  88243. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  88244. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  88245. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  88246. - dir="/$$dir"; \
  88247. - $(mkdir_p) "$(distdir)$$dir"; \
  88248. - else \
  88249. - dir=''; \
  88250. - fi; \
  88251. if test -d $$d/$$file; then \
  88252. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  88253. + if test -d "$(distdir)/$$file"; then \
  88254. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  88255. + fi; \
  88256. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  88257. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  88258. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  88259. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  88260. fi; \
  88261. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  88262. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  88263. else \
  88264. - test -f $(distdir)/$$file \
  88265. - || cp -p $$d/$$file $(distdir)/$$file \
  88266. + test -f "$(distdir)/$$file" \
  88267. + || cp -p $$d/$$file "$(distdir)/$$file" \
  88268. || exit 1; \
  88269. fi; \
  88270. done
  88271. @@ -606,7 +651,8 @@
  88272. clean-generic:
  88273. distclean-generic:
  88274. - -rm -f $(CONFIG_CLEAN_FILES)
  88275. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  88276. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  88277. maintainer-clean-generic:
  88278. @echo "This command is intended for maintainers to use"
  88279. @@ -619,7 +665,7 @@
  88280. distclean: distclean-am
  88281. -rm -f Makefile
  88282. distclean-am: clean-am distclean-compile distclean-generic \
  88283. - distclean-libtool distclean-tags
  88284. + distclean-tags
  88285. dvi: dvi-am
  88286. @@ -627,18 +673,38 @@
  88287. html: html-am
  88288. +html-am:
  88289. +
  88290. info: info-am
  88291. info-am:
  88292. install-data-am:
  88293. +install-dvi: install-dvi-am
  88294. +
  88295. +install-dvi-am:
  88296. +
  88297. install-exec-am:
  88298. +install-html: install-html-am
  88299. +
  88300. +install-html-am:
  88301. +
  88302. install-info: install-info-am
  88303. +install-info-am:
  88304. +
  88305. install-man:
  88306. +install-pdf: install-pdf-am
  88307. +
  88308. +install-pdf-am:
  88309. +
  88310. +install-ps: install-ps-am
  88311. +
  88312. +install-ps-am:
  88313. +
  88314. installcheck-am:
  88315. maintainer-clean: maintainer-clean-am
  88316. @@ -658,23 +724,28 @@
  88317. ps-am:
  88318. -uninstall-am: uninstall-info-am
  88319. +uninstall-am:
  88320. +
  88321. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  88322. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  88323. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  88324. distclean distclean-compile distclean-generic \
  88325. distclean-libtool distclean-tags distdir dvi dvi-am html \
  88326. html-am info info-am install install-am install-data \
  88327. - install-data-am install-exec install-exec-am install-info \
  88328. - install-info-am install-man install-strip installcheck \
  88329. + install-data-am install-dvi install-dvi-am install-exec \
  88330. + install-exec-am install-html install-html-am install-info \
  88331. + install-info-am install-man install-pdf install-pdf-am \
  88332. + install-ps install-ps-am install-strip installcheck \
  88333. installcheck-am installdirs maintainer-clean \
  88334. maintainer-clean-generic mostlyclean mostlyclean-compile \
  88335. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  88336. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  88337. + pdf-am ps ps-am tags uninstall uninstall-am
  88338. $(top_builddir)/tests/libtests.la:
  88339. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  88340. +
  88341. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  88342. # Otherwise a system limit (for SysV at least) may be exceeded.
  88343. .NOEXPORT:
  88344. diff -Nur gmp-4.3.2.orig/tests/mpq/Makefile.in gmp-4.3.2/tests/mpq/Makefile.in
  88345. --- gmp-4.3.2.orig/tests/mpq/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  88346. +++ gmp-4.3.2/tests/mpq/Makefile.in 2011-02-16 19:23:20.743557468 +0100
  88347. @@ -1,8 +1,9 @@
  88348. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  88349. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  88350. # @configure_input@
  88351. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  88352. -# 2003, 2004 Free Software Foundation, Inc.
  88353. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  88354. +# Inc.
  88355. # This Makefile.in is free software; the Free Software Foundation
  88356. # gives unlimited permission to copy and/or distribute it,
  88357. # with or without modifications, as long as this notice is preserved.
  88358. @@ -30,17 +31,12 @@
  88359. #
  88360. # You should have received a copy of the GNU Lesser General Public License
  88361. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  88362. -SOURCES = t-aors.c t-cmp.c t-cmp_si.c t-cmp_ui.c t-equal.c t-get_d.c t-get_str.c t-inp_str.c t-md_2exp.c t-set_f.c t-set_str.c
  88363. -
  88364. -srcdir = @srcdir@
  88365. -top_srcdir = @top_srcdir@
  88366. VPATH = @srcdir@
  88367. pkgdatadir = $(datadir)/@PACKAGE@
  88368. -pkglibdir = $(libdir)/@PACKAGE@
  88369. pkgincludedir = $(includedir)/@PACKAGE@
  88370. -top_builddir = ../..
  88371. +pkglibdir = $(libdir)/@PACKAGE@
  88372. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  88373. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  88374. -INSTALL = @INSTALL@
  88375. install_sh_DATA = $(install_sh) -c -m 644
  88376. install_sh_PROGRAM = $(install_sh) -c
  88377. install_sh_SCRIPT = $(install_sh) -c
  88378. @@ -52,6 +48,7 @@
  88379. NORMAL_UNINSTALL = :
  88380. PRE_UNINSTALL = :
  88381. POST_UNINSTALL = :
  88382. +build_triplet = @build@
  88383. host_triplet = @host@
  88384. ANSI2KNR = $(top_builddir)/ansi2knr
  88385. check_PROGRAMS = t-aors$(EXEEXT) t-cmp$(EXEEXT) t-cmp_ui$(EXEEXT) \
  88386. @@ -65,9 +62,10 @@
  88387. $(top_srcdir)/configure.in
  88388. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  88389. $(ACLOCAL_M4)
  88390. -mkinstalldirs = $(mkdir_p)
  88391. +mkinstalldirs = $(install_sh) -d
  88392. CONFIG_HEADER = $(top_builddir)/config.h
  88393. CONFIG_CLEAN_FILES =
  88394. +CONFIG_CLEAN_VPATH_FILES =
  88395. t_aors_SOURCES = t-aors.c
  88396. t_aors_OBJECTS = t-aors$U.$(OBJEXT)
  88397. t_aors_LDADD = $(LDADD)
  88398. @@ -123,17 +121,18 @@
  88399. t_set_str_LDADD = $(LDADD)
  88400. t_set_str_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  88401. $(top_builddir)/libgmp.la
  88402. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  88403. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  88404. depcomp =
  88405. am__depfiles_maybe =
  88406. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  88407. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  88408. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  88409. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  88410. - $(AM_CFLAGS) $(CFLAGS)
  88411. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  88412. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  88413. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  88414. CCLD = $(CC)
  88415. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  88416. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  88417. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  88418. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  88419. + $(LDFLAGS) -o $@
  88420. SOURCES = t-aors.c t-cmp.c t-cmp_si.c t-cmp_ui.c t-equal.c t-get_d.c \
  88421. t-get_str.c t-inp_str.c t-md_2exp.c t-set_f.c t-set_str.c
  88422. DIST_SOURCES = t-aors.c t-cmp.c t-cmp_si.c t-cmp_ui.c t-equal.c \
  88423. @@ -141,6 +140,8 @@
  88424. t-set_str.c
  88425. ETAGS = etags
  88426. CTAGS = ctags
  88427. +am__tty_colors = \
  88428. +red=; grn=; lgn=; blu=; std=
  88429. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  88430. ABI = @ABI@
  88431. ACLOCAL = @ACLOCAL@
  88432. @@ -168,15 +169,17 @@
  88433. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  88434. DEFS = @DEFS@
  88435. DLLTOOL = @DLLTOOL@
  88436. -ECHO = @ECHO@
  88437. +DSYMUTIL = @DSYMUTIL@
  88438. +DUMPBIN = @DUMPBIN@
  88439. ECHO_C = @ECHO_C@
  88440. ECHO_N = @ECHO_N@
  88441. ECHO_T = @ECHO_T@
  88442. EGREP = @EGREP@
  88443. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  88444. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  88445. EXEEXT = @EXEEXT@
  88446. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  88447. +F77 = @F77@
  88448. +FFLAGS = @FFLAGS@
  88449. +FGREP = @FGREP@
  88450. GMP_LDFLAGS = @GMP_LDFLAGS@
  88451. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  88452. GREP = @GREP@
  88453. @@ -191,10 +194,12 @@
  88454. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  88455. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  88456. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  88457. +INSTALL = @INSTALL@
  88458. INSTALL_DATA = @INSTALL_DATA@
  88459. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  88460. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  88461. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  88462. +LD = @LD@
  88463. LDFLAGS = @LDFLAGS@
  88464. LEX = @LEX@
  88465. LEXLIB = @LEXLIB@
  88466. @@ -209,20 +214,25 @@
  88467. LIBREADLINE = @LIBREADLINE@
  88468. LIBS = @LIBS@
  88469. LIBTOOL = @LIBTOOL@
  88470. +LIPO = @LIPO@
  88471. LN_S = @LN_S@
  88472. LTLIBOBJS = @LTLIBOBJS@
  88473. M4 = @M4@
  88474. MAINT = @MAINT@
  88475. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  88476. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  88477. MAKEINFO = @MAKEINFO@
  88478. +MKDIR_P = @MKDIR_P@
  88479. +NM = @NM@
  88480. +NMEDIT = @NMEDIT@
  88481. OBJDUMP = @OBJDUMP@
  88482. OBJEXT = @OBJEXT@
  88483. +OTOOL = @OTOOL@
  88484. +OTOOL64 = @OTOOL64@
  88485. PACKAGE = @PACKAGE@
  88486. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  88487. PACKAGE_NAME = @PACKAGE_NAME@
  88488. PACKAGE_STRING = @PACKAGE_STRING@
  88489. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  88490. +PACKAGE_URL = @PACKAGE_URL@
  88491. PACKAGE_VERSION = @PACKAGE_VERSION@
  88492. PATH_SEPARATOR = @PATH_SEPARATOR@
  88493. RANLIB = @RANLIB@
  88494. @@ -236,22 +246,27 @@
  88495. U = @U@
  88496. U_FOR_BUILD = @U_FOR_BUILD@
  88497. VERSION = @VERSION@
  88498. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  88499. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  88500. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  88501. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  88502. WITH_READLINE_01 = @WITH_READLINE_01@
  88503. YACC = @YACC@
  88504. YFLAGS = @YFLAGS@
  88505. +abs_builddir = @abs_builddir@
  88506. +abs_srcdir = @abs_srcdir@
  88507. +abs_top_builddir = @abs_top_builddir@
  88508. +abs_top_srcdir = @abs_top_srcdir@
  88509. ac_ct_CC = @ac_ct_CC@
  88510. ac_ct_CXX = @ac_ct_CXX@
  88511. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  88512. +ac_ct_F77 = @ac_ct_F77@
  88513. am__leading_dot = @am__leading_dot@
  88514. +am__tar = @am__tar@
  88515. +am__untar = @am__untar@
  88516. bindir = @bindir@
  88517. build = @build@
  88518. build_alias = @build_alias@
  88519. build_cpu = @build_cpu@
  88520. build_os = @build_os@
  88521. build_vendor = @build_vendor@
  88522. +builddir = @builddir@
  88523. datadir = @datadir@
  88524. datarootdir = @datarootdir@
  88525. docdir = @docdir@
  88526. @@ -271,6 +286,7 @@
  88527. libexecdir = @libexecdir@
  88528. localedir = @localedir@
  88529. localstatedir = @localstatedir@
  88530. +lt_ECHO = @lt_ECHO@
  88531. mandir = @mandir@
  88532. mkdir_p = @mkdir_p@
  88533. mpn_objects = @mpn_objects@
  88534. @@ -283,8 +299,12 @@
  88535. psdir = @psdir@
  88536. sbindir = @sbindir@
  88537. sharedstatedir = @sharedstatedir@
  88538. +srcdir = @srcdir@
  88539. sysconfdir = @sysconfdir@
  88540. target_alias = @target_alias@
  88541. +top_build_prefix = @top_build_prefix@
  88542. +top_builddir = @top_builddir@
  88543. +top_srcdir = @top_srcdir@
  88544. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  88545. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  88546. TESTS = $(check_PROGRAMS)
  88547. @@ -301,14 +321,14 @@
  88548. @for dep in $?; do \
  88549. case '$(am__configure_deps)' in \
  88550. *$$dep*) \
  88551. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  88552. - && exit 0; \
  88553. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  88554. + && { if test -f $@; then exit 0; else break; fi; }; \
  88555. exit 1;; \
  88556. esac; \
  88557. done; \
  88558. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpq/Makefile'; \
  88559. - cd $(top_srcdir) && \
  88560. - $(AUTOMAKE) --gnu --ignore-deps tests/mpq/Makefile
  88561. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpq/Makefile'; \
  88562. + $(am__cd) $(top_srcdir) && \
  88563. + $(AUTOMAKE) --gnu --ignore-deps tests/mpq/Makefile
  88564. .PRECIOUS: Makefile
  88565. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  88566. @case '$?' in \
  88567. @@ -326,46 +346,49 @@
  88568. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  88569. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  88570. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  88571. +$(am__aclocal_m4_deps):
  88572. clean-checkPROGRAMS:
  88573. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  88574. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  88575. - echo " rm -f $$p $$f"; \
  88576. - rm -f $$p $$f ; \
  88577. - done
  88578. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  88579. + echo " rm -f" $$list; \
  88580. + rm -f $$list || exit $$?; \
  88581. + test -n "$(EXEEXT)" || exit 0; \
  88582. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  88583. + echo " rm -f" $$list; \
  88584. + rm -f $$list
  88585. t-aors$(EXEEXT): $(t_aors_OBJECTS) $(t_aors_DEPENDENCIES)
  88586. @rm -f t-aors$(EXEEXT)
  88587. - $(LINK) $(t_aors_LDFLAGS) $(t_aors_OBJECTS) $(t_aors_LDADD) $(LIBS)
  88588. + $(LINK) $(t_aors_OBJECTS) $(t_aors_LDADD) $(LIBS)
  88589. t-cmp$(EXEEXT): $(t_cmp_OBJECTS) $(t_cmp_DEPENDENCIES)
  88590. @rm -f t-cmp$(EXEEXT)
  88591. - $(LINK) $(t_cmp_LDFLAGS) $(t_cmp_OBJECTS) $(t_cmp_LDADD) $(LIBS)
  88592. + $(LINK) $(t_cmp_OBJECTS) $(t_cmp_LDADD) $(LIBS)
  88593. t-cmp_si$(EXEEXT): $(t_cmp_si_OBJECTS) $(t_cmp_si_DEPENDENCIES)
  88594. @rm -f t-cmp_si$(EXEEXT)
  88595. - $(LINK) $(t_cmp_si_LDFLAGS) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  88596. + $(LINK) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  88597. t-cmp_ui$(EXEEXT): $(t_cmp_ui_OBJECTS) $(t_cmp_ui_DEPENDENCIES)
  88598. @rm -f t-cmp_ui$(EXEEXT)
  88599. - $(LINK) $(t_cmp_ui_LDFLAGS) $(t_cmp_ui_OBJECTS) $(t_cmp_ui_LDADD) $(LIBS)
  88600. + $(LINK) $(t_cmp_ui_OBJECTS) $(t_cmp_ui_LDADD) $(LIBS)
  88601. t-equal$(EXEEXT): $(t_equal_OBJECTS) $(t_equal_DEPENDENCIES)
  88602. @rm -f t-equal$(EXEEXT)
  88603. - $(LINK) $(t_equal_LDFLAGS) $(t_equal_OBJECTS) $(t_equal_LDADD) $(LIBS)
  88604. + $(LINK) $(t_equal_OBJECTS) $(t_equal_LDADD) $(LIBS)
  88605. t-get_d$(EXEEXT): $(t_get_d_OBJECTS) $(t_get_d_DEPENDENCIES)
  88606. @rm -f t-get_d$(EXEEXT)
  88607. - $(LINK) $(t_get_d_LDFLAGS) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  88608. + $(LINK) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  88609. t-get_str$(EXEEXT): $(t_get_str_OBJECTS) $(t_get_str_DEPENDENCIES)
  88610. @rm -f t-get_str$(EXEEXT)
  88611. - $(LINK) $(t_get_str_LDFLAGS) $(t_get_str_OBJECTS) $(t_get_str_LDADD) $(LIBS)
  88612. + $(LINK) $(t_get_str_OBJECTS) $(t_get_str_LDADD) $(LIBS)
  88613. t-inp_str$(EXEEXT): $(t_inp_str_OBJECTS) $(t_inp_str_DEPENDENCIES)
  88614. @rm -f t-inp_str$(EXEEXT)
  88615. - $(LINK) $(t_inp_str_LDFLAGS) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  88616. + $(LINK) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  88617. t-md_2exp$(EXEEXT): $(t_md_2exp_OBJECTS) $(t_md_2exp_DEPENDENCIES)
  88618. @rm -f t-md_2exp$(EXEEXT)
  88619. - $(LINK) $(t_md_2exp_LDFLAGS) $(t_md_2exp_OBJECTS) $(t_md_2exp_LDADD) $(LIBS)
  88620. + $(LINK) $(t_md_2exp_OBJECTS) $(t_md_2exp_LDADD) $(LIBS)
  88621. t-set_f$(EXEEXT): $(t_set_f_OBJECTS) $(t_set_f_DEPENDENCIES)
  88622. @rm -f t-set_f$(EXEEXT)
  88623. - $(LINK) $(t_set_f_LDFLAGS) $(t_set_f_OBJECTS) $(t_set_f_LDADD) $(LIBS)
  88624. + $(LINK) $(t_set_f_OBJECTS) $(t_set_f_LDADD) $(LIBS)
  88625. t-set_str$(EXEEXT): $(t_set_str_OBJECTS) $(t_set_str_DEPENDENCIES)
  88626. @rm -f t-set_str$(EXEEXT)
  88627. - $(LINK) $(t_set_str_LDFLAGS) $(t_set_str_OBJECTS) $(t_set_str_LDADD) $(LIBS)
  88628. + $(LINK) $(t_set_str_OBJECTS) $(t_set_str_LDADD) $(LIBS)
  88629. mostlyclean-compile:
  88630. -rm -f *.$(OBJEXT)
  88631. @@ -373,7 +396,7 @@
  88632. distclean-compile:
  88633. -rm -f *.tab.c
  88634. $(top_builddir)/ansi2knr:
  88635. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  88636. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  88637. mostlyclean-kr:
  88638. -test "$U" = "" || rm -f *_.c
  88639. @@ -421,54 +444,54 @@
  88640. clean-libtool:
  88641. -rm -rf .libs _libs
  88642. -distclean-libtool:
  88643. - -rm -f libtool
  88644. -uninstall-info-am:
  88645. -
  88646. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  88647. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88648. unique=`for i in $$list; do \
  88649. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88650. done | \
  88651. - $(AWK) ' { files[$$0] = 1; } \
  88652. - END { for (i in files) print i; }'`; \
  88653. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88654. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88655. mkid -fID $$unique
  88656. tags: TAGS
  88657. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  88658. $(TAGS_FILES) $(LISP)
  88659. - tags=; \
  88660. + set x; \
  88661. here=`pwd`; \
  88662. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88663. unique=`for i in $$list; do \
  88664. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88665. done | \
  88666. - $(AWK) ' { files[$$0] = 1; } \
  88667. - END { for (i in files) print i; }'`; \
  88668. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  88669. - test -z "$$unique" && unique=$$empty_fix; \
  88670. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88671. - $$tags $$unique; \
  88672. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88673. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88674. + shift; \
  88675. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  88676. + test -n "$$unique" || unique=$$empty_fix; \
  88677. + if test $$# -gt 0; then \
  88678. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88679. + "$$@" $$unique; \
  88680. + else \
  88681. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  88682. + $$unique; \
  88683. + fi; \
  88684. fi
  88685. ctags: CTAGS
  88686. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  88687. $(TAGS_FILES) $(LISP)
  88688. - tags=; \
  88689. - here=`pwd`; \
  88690. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  88691. unique=`for i in $$list; do \
  88692. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  88693. done | \
  88694. - $(AWK) ' { files[$$0] = 1; } \
  88695. - END { for (i in files) print i; }'`; \
  88696. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  88697. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  88698. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  88699. + test -z "$(CTAGS_ARGS)$$unique" \
  88700. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  88701. - $$tags $$unique
  88702. + $$unique
  88703. GTAGS:
  88704. here=`$(am__cd) $(top_builddir) && pwd` \
  88705. - && cd $(top_srcdir) \
  88706. - && gtags -i $(GTAGS_ARGS) $$here
  88707. + && $(am__cd) $(top_srcdir) \
  88708. + && gtags -i $(GTAGS_ARGS) "$$here"
  88709. distclean-tags:
  88710. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  88711. @@ -476,7 +499,8 @@
  88712. check-TESTS: $(TESTS)
  88713. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  88714. srcdir=$(srcdir); export srcdir; \
  88715. - list='$(TESTS)'; \
  88716. + list=' $(TESTS) '; \
  88717. + $(am__tty_colors); \
  88718. if test -n "$$list"; then \
  88719. for tst in $$list; do \
  88720. if test -f ./$$tst; then dir=./; \
  88721. @@ -485,91 +509,112 @@
  88722. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  88723. all=`expr $$all + 1`; \
  88724. case " $(XFAIL_TESTS) " in \
  88725. - *" $$tst "*) \
  88726. + *[\ \ ]$$tst[\ \ ]*) \
  88727. xpass=`expr $$xpass + 1`; \
  88728. failed=`expr $$failed + 1`; \
  88729. - echo "XPASS: $$tst"; \
  88730. + col=$$red; res=XPASS; \
  88731. ;; \
  88732. *) \
  88733. - echo "PASS: $$tst"; \
  88734. + col=$$grn; res=PASS; \
  88735. ;; \
  88736. esac; \
  88737. elif test $$? -ne 77; then \
  88738. all=`expr $$all + 1`; \
  88739. case " $(XFAIL_TESTS) " in \
  88740. - *" $$tst "*) \
  88741. + *[\ \ ]$$tst[\ \ ]*) \
  88742. xfail=`expr $$xfail + 1`; \
  88743. - echo "XFAIL: $$tst"; \
  88744. + col=$$lgn; res=XFAIL; \
  88745. ;; \
  88746. *) \
  88747. failed=`expr $$failed + 1`; \
  88748. - echo "FAIL: $$tst"; \
  88749. + col=$$red; res=FAIL; \
  88750. ;; \
  88751. esac; \
  88752. else \
  88753. skip=`expr $$skip + 1`; \
  88754. - echo "SKIP: $$tst"; \
  88755. + col=$$blu; res=SKIP; \
  88756. fi; \
  88757. + echo "$${col}$$res$${std}: $$tst"; \
  88758. done; \
  88759. + if test "$$all" -eq 1; then \
  88760. + tests="test"; \
  88761. + All=""; \
  88762. + else \
  88763. + tests="tests"; \
  88764. + All="All "; \
  88765. + fi; \
  88766. if test "$$failed" -eq 0; then \
  88767. if test "$$xfail" -eq 0; then \
  88768. - banner="All $$all tests passed"; \
  88769. + banner="$$All$$all $$tests passed"; \
  88770. else \
  88771. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  88772. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  88773. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  88774. fi; \
  88775. else \
  88776. if test "$$xpass" -eq 0; then \
  88777. - banner="$$failed of $$all tests failed"; \
  88778. + banner="$$failed of $$all $$tests failed"; \
  88779. else \
  88780. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  88781. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  88782. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  88783. fi; \
  88784. fi; \
  88785. dashes="$$banner"; \
  88786. skipped=""; \
  88787. if test "$$skip" -ne 0; then \
  88788. - skipped="($$skip tests were not run)"; \
  88789. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  88790. + if test "$$skip" -eq 1; then \
  88791. + skipped="($$skip test was not run)"; \
  88792. + else \
  88793. + skipped="($$skip tests were not run)"; \
  88794. + fi; \
  88795. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  88796. dashes="$$skipped"; \
  88797. fi; \
  88798. report=""; \
  88799. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  88800. report="Please report to $(PACKAGE_BUGREPORT)"; \
  88801. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  88802. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  88803. dashes="$$report"; \
  88804. fi; \
  88805. dashes=`echo "$$dashes" | sed s/./=/g`; \
  88806. - echo "$$dashes"; \
  88807. + if test "$$failed" -eq 0; then \
  88808. + echo "$$grn$$dashes"; \
  88809. + else \
  88810. + echo "$$red$$dashes"; \
  88811. + fi; \
  88812. echo "$$banner"; \
  88813. - test -n "$$skipped" && echo "$$skipped"; \
  88814. - test -n "$$report" && echo "$$report"; \
  88815. - echo "$$dashes"; \
  88816. + test -z "$$skipped" || echo "$$skipped"; \
  88817. + test -z "$$report" || echo "$$report"; \
  88818. + echo "$$dashes$$std"; \
  88819. test "$$failed" -eq 0; \
  88820. else :; fi
  88821. distdir: $(DISTFILES)
  88822. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  88823. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  88824. - list='$(DISTFILES)'; for file in $$list; do \
  88825. - case $$file in \
  88826. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  88827. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  88828. - esac; \
  88829. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  88830. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  88831. + list='$(DISTFILES)'; \
  88832. + dist_files=`for file in $$list; do echo $$file; done | \
  88833. + sed -e "s|^$$srcdirstrip/||;t" \
  88834. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  88835. + case $$dist_files in \
  88836. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  88837. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  88838. + sort -u` ;; \
  88839. + esac; \
  88840. + for file in $$dist_files; do \
  88841. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  88842. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  88843. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  88844. - dir="/$$dir"; \
  88845. - $(mkdir_p) "$(distdir)$$dir"; \
  88846. - else \
  88847. - dir=''; \
  88848. - fi; \
  88849. if test -d $$d/$$file; then \
  88850. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  88851. + if test -d "$(distdir)/$$file"; then \
  88852. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  88853. + fi; \
  88854. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  88855. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  88856. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  88857. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  88858. fi; \
  88859. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  88860. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  88861. else \
  88862. - test -f $(distdir)/$$file \
  88863. - || cp -p $$d/$$file $(distdir)/$$file \
  88864. + test -f "$(distdir)/$$file" \
  88865. + || cp -p $$d/$$file "$(distdir)/$$file" \
  88866. || exit 1; \
  88867. fi; \
  88868. done
  88869. @@ -599,7 +644,8 @@
  88870. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  88871. distclean-generic:
  88872. - -rm -f $(CONFIG_CLEAN_FILES)
  88873. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  88874. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  88875. maintainer-clean-generic:
  88876. @echo "This command is intended for maintainers to use"
  88877. @@ -612,7 +658,7 @@
  88878. distclean: distclean-am
  88879. -rm -f Makefile
  88880. distclean-am: clean-am distclean-compile distclean-generic \
  88881. - distclean-libtool distclean-tags
  88882. + distclean-tags
  88883. dvi: dvi-am
  88884. @@ -620,18 +666,38 @@
  88885. html: html-am
  88886. +html-am:
  88887. +
  88888. info: info-am
  88889. info-am:
  88890. install-data-am:
  88891. +install-dvi: install-dvi-am
  88892. +
  88893. +install-dvi-am:
  88894. +
  88895. install-exec-am:
  88896. +install-html: install-html-am
  88897. +
  88898. +install-html-am:
  88899. +
  88900. install-info: install-info-am
  88901. +install-info-am:
  88902. +
  88903. install-man:
  88904. +install-pdf: install-pdf-am
  88905. +
  88906. +install-pdf-am:
  88907. +
  88908. +install-ps: install-ps-am
  88909. +
  88910. +install-ps-am:
  88911. +
  88912. installcheck-am:
  88913. maintainer-clean: maintainer-clean-am
  88914. @@ -651,23 +717,28 @@
  88915. ps-am:
  88916. -uninstall-am: uninstall-info-am
  88917. +uninstall-am:
  88918. +
  88919. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  88920. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  88921. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  88922. distclean distclean-compile distclean-generic \
  88923. distclean-libtool distclean-tags distdir dvi dvi-am html \
  88924. html-am info info-am install install-am install-data \
  88925. - install-data-am install-exec install-exec-am install-info \
  88926. - install-info-am install-man install-strip installcheck \
  88927. + install-data-am install-dvi install-dvi-am install-exec \
  88928. + install-exec-am install-html install-html-am install-info \
  88929. + install-info-am install-man install-pdf install-pdf-am \
  88930. + install-ps install-ps-am install-strip installcheck \
  88931. installcheck-am installdirs maintainer-clean \
  88932. maintainer-clean-generic mostlyclean mostlyclean-compile \
  88933. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  88934. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  88935. + pdf-am ps ps-am tags uninstall uninstall-am
  88936. $(top_builddir)/tests/libtests.la:
  88937. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  88938. +
  88939. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  88940. # Otherwise a system limit (for SysV at least) may be exceeded.
  88941. .NOEXPORT:
  88942. diff -Nur gmp-4.3.2.orig/tests/mpz/Makefile.in gmp-4.3.2/tests/mpz/Makefile.in
  88943. --- gmp-4.3.2.orig/tests/mpz/Makefile.in 2010-01-07 21:09:43.000000000 +0100
  88944. +++ gmp-4.3.2/tests/mpz/Makefile.in 2011-02-16 19:23:20.843557401 +0100
  88945. @@ -1,8 +1,9 @@
  88946. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  88947. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  88948. # @configure_input@
  88949. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  88950. -# 2003, 2004 Free Software Foundation, Inc.
  88951. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  88952. +# Inc.
  88953. # This Makefile.in is free software; the Free Software Foundation
  88954. # gives unlimited permission to copy and/or distribute it,
  88955. # with or without modifications, as long as this notice is preserved.
  88956. @@ -31,17 +32,12 @@
  88957. #
  88958. # You should have received a copy of the GNU Lesser General Public License
  88959. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  88960. -SOURCES = bit.c convert.c dive.c dive_ui.c io.c logic.c reuse.c t-addsub.c t-aorsmul.c t-bin.c t-cdiv_ui.c t-cmp.c t-cmp_d.c t-cmp_si.c t-cong.c t-cong_2exp.c t-div_2exp.c t-divis.c t-divis_2exp.c t-export.c t-fac_ui.c t-fdiv.c t-fdiv_ui.c t-fib_ui.c t-fits.c t-gcd.c t-gcd_ui.c t-get_d.c t-get_d_2exp.c t-get_si.c t-hamdist.c t-import.c t-inp_str.c t-io_raw.c t-jac.c t-lcm.c t-lucnum_ui.c t-mul.c t-mul_i.c t-nextprime.c t-oddeven.c t-perfpow.c t-perfsqr.c t-popcount.c t-pow.c t-powm.c t-powm_ui.c t-pprime_p.c t-root.c t-scan.c t-set_d.c t-set_f.c t-set_si.c t-set_str.c t-sizeinbase.c t-sqrtrem.c t-tdiv.c t-tdiv_ui.c
  88961. -
  88962. -srcdir = @srcdir@
  88963. -top_srcdir = @top_srcdir@
  88964. VPATH = @srcdir@
  88965. pkgdatadir = $(datadir)/@PACKAGE@
  88966. -pkglibdir = $(libdir)/@PACKAGE@
  88967. pkgincludedir = $(includedir)/@PACKAGE@
  88968. -top_builddir = ../..
  88969. +pkglibdir = $(libdir)/@PACKAGE@
  88970. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  88971. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  88972. -INSTALL = @INSTALL@
  88973. install_sh_DATA = $(install_sh) -c -m 644
  88974. install_sh_PROGRAM = $(install_sh) -c
  88975. install_sh_SCRIPT = $(install_sh) -c
  88976. @@ -53,6 +49,7 @@
  88977. NORMAL_UNINSTALL = :
  88978. PRE_UNINSTALL = :
  88979. POST_UNINSTALL = :
  88980. +build_triplet = @build@
  88981. host_triplet = @host@
  88982. ANSI2KNR = $(top_builddir)/ansi2knr
  88983. check_PROGRAMS = t-addsub$(EXEEXT) t-cmp$(EXEEXT) t-mul$(EXEEXT) \
  88984. @@ -81,9 +78,10 @@
  88985. $(top_srcdir)/configure.in
  88986. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  88987. $(ACLOCAL_M4)
  88988. -mkinstalldirs = $(mkdir_p)
  88989. +mkinstalldirs = $(install_sh) -d
  88990. CONFIG_HEADER = $(top_builddir)/config.h
  88991. CONFIG_CLEAN_FILES =
  88992. +CONFIG_CLEAN_VPATH_FILES =
  88993. bit_SOURCES = bit.c
  88994. bit_OBJECTS = bit$U.$(OBJEXT)
  88995. bit_LDADD = $(LDADD)
  88996. @@ -374,17 +372,18 @@
  88997. t_tdiv_ui_LDADD = $(LDADD)
  88998. t_tdiv_ui_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  88999. $(top_builddir)/libgmp.la
  89000. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  89001. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  89002. depcomp =
  89003. am__depfiles_maybe =
  89004. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  89005. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  89006. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  89007. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  89008. - $(AM_CFLAGS) $(CFLAGS)
  89009. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  89010. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  89011. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  89012. CCLD = $(CC)
  89013. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  89014. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  89015. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  89016. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  89017. + $(LDFLAGS) -o $@
  89018. SOURCES = bit.c convert.c dive.c dive_ui.c io.c logic.c reuse.c \
  89019. t-addsub.c t-aorsmul.c t-bin.c t-cdiv_ui.c t-cmp.c t-cmp_d.c \
  89020. t-cmp_si.c t-cong.c t-cong_2exp.c t-div_2exp.c t-divis.c \
  89021. @@ -409,6 +408,8 @@
  89022. t-sqrtrem.c t-tdiv.c t-tdiv_ui.c
  89023. ETAGS = etags
  89024. CTAGS = ctags
  89025. +am__tty_colors = \
  89026. +red=; grn=; lgn=; blu=; std=
  89027. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  89028. ABI = @ABI@
  89029. ACLOCAL = @ACLOCAL@
  89030. @@ -436,15 +437,17 @@
  89031. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  89032. DEFS = @DEFS@
  89033. DLLTOOL = @DLLTOOL@
  89034. -ECHO = @ECHO@
  89035. +DSYMUTIL = @DSYMUTIL@
  89036. +DUMPBIN = @DUMPBIN@
  89037. ECHO_C = @ECHO_C@
  89038. ECHO_N = @ECHO_N@
  89039. ECHO_T = @ECHO_T@
  89040. EGREP = @EGREP@
  89041. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  89042. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  89043. EXEEXT = @EXEEXT@
  89044. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  89045. +F77 = @F77@
  89046. +FFLAGS = @FFLAGS@
  89047. +FGREP = @FGREP@
  89048. GMP_LDFLAGS = @GMP_LDFLAGS@
  89049. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  89050. GREP = @GREP@
  89051. @@ -459,10 +462,12 @@
  89052. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  89053. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  89054. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  89055. +INSTALL = @INSTALL@
  89056. INSTALL_DATA = @INSTALL_DATA@
  89057. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  89058. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  89059. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  89060. +LD = @LD@
  89061. LDFLAGS = @LDFLAGS@
  89062. LEX = @LEX@
  89063. LEXLIB = @LEXLIB@
  89064. @@ -477,20 +482,25 @@
  89065. LIBREADLINE = @LIBREADLINE@
  89066. LIBS = @LIBS@
  89067. LIBTOOL = @LIBTOOL@
  89068. +LIPO = @LIPO@
  89069. LN_S = @LN_S@
  89070. LTLIBOBJS = @LTLIBOBJS@
  89071. M4 = @M4@
  89072. MAINT = @MAINT@
  89073. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  89074. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  89075. MAKEINFO = @MAKEINFO@
  89076. +MKDIR_P = @MKDIR_P@
  89077. +NM = @NM@
  89078. +NMEDIT = @NMEDIT@
  89079. OBJDUMP = @OBJDUMP@
  89080. OBJEXT = @OBJEXT@
  89081. +OTOOL = @OTOOL@
  89082. +OTOOL64 = @OTOOL64@
  89083. PACKAGE = @PACKAGE@
  89084. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  89085. PACKAGE_NAME = @PACKAGE_NAME@
  89086. PACKAGE_STRING = @PACKAGE_STRING@
  89087. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  89088. +PACKAGE_URL = @PACKAGE_URL@
  89089. PACKAGE_VERSION = @PACKAGE_VERSION@
  89090. PATH_SEPARATOR = @PATH_SEPARATOR@
  89091. RANLIB = @RANLIB@
  89092. @@ -504,22 +514,27 @@
  89093. U = @U@
  89094. U_FOR_BUILD = @U_FOR_BUILD@
  89095. VERSION = @VERSION@
  89096. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  89097. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  89098. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  89099. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  89100. WITH_READLINE_01 = @WITH_READLINE_01@
  89101. YACC = @YACC@
  89102. YFLAGS = @YFLAGS@
  89103. +abs_builddir = @abs_builddir@
  89104. +abs_srcdir = @abs_srcdir@
  89105. +abs_top_builddir = @abs_top_builddir@
  89106. +abs_top_srcdir = @abs_top_srcdir@
  89107. ac_ct_CC = @ac_ct_CC@
  89108. ac_ct_CXX = @ac_ct_CXX@
  89109. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  89110. +ac_ct_F77 = @ac_ct_F77@
  89111. am__leading_dot = @am__leading_dot@
  89112. +am__tar = @am__tar@
  89113. +am__untar = @am__untar@
  89114. bindir = @bindir@
  89115. build = @build@
  89116. build_alias = @build_alias@
  89117. build_cpu = @build_cpu@
  89118. build_os = @build_os@
  89119. build_vendor = @build_vendor@
  89120. +builddir = @builddir@
  89121. datadir = @datadir@
  89122. datarootdir = @datarootdir@
  89123. docdir = @docdir@
  89124. @@ -539,6 +554,7 @@
  89125. libexecdir = @libexecdir@
  89126. localedir = @localedir@
  89127. localstatedir = @localstatedir@
  89128. +lt_ECHO = @lt_ECHO@
  89129. mandir = @mandir@
  89130. mkdir_p = @mkdir_p@
  89131. mpn_objects = @mpn_objects@
  89132. @@ -551,8 +567,12 @@
  89133. psdir = @psdir@
  89134. sbindir = @sbindir@
  89135. sharedstatedir = @sharedstatedir@
  89136. +srcdir = @srcdir@
  89137. sysconfdir = @sysconfdir@
  89138. target_alias = @target_alias@
  89139. +top_build_prefix = @top_build_prefix@
  89140. +top_builddir = @top_builddir@
  89141. +top_srcdir = @top_srcdir@
  89142. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  89143. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  89144. TESTS = $(check_PROGRAMS)
  89145. @@ -569,14 +589,14 @@
  89146. @for dep in $?; do \
  89147. case '$(am__configure_deps)' in \
  89148. *$$dep*) \
  89149. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  89150. - && exit 0; \
  89151. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  89152. + && { if test -f $@; then exit 0; else break; fi; }; \
  89153. exit 1;; \
  89154. esac; \
  89155. done; \
  89156. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpz/Makefile'; \
  89157. - cd $(top_srcdir) && \
  89158. - $(AUTOMAKE) --gnu --ignore-deps tests/mpz/Makefile
  89159. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/mpz/Makefile'; \
  89160. + $(am__cd) $(top_srcdir) && \
  89161. + $(AUTOMAKE) --gnu --ignore-deps tests/mpz/Makefile
  89162. .PRECIOUS: Makefile
  89163. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  89164. @case '$?' in \
  89165. @@ -594,187 +614,190 @@
  89166. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  89167. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  89168. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  89169. +$(am__aclocal_m4_deps):
  89170. clean-checkPROGRAMS:
  89171. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  89172. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  89173. - echo " rm -f $$p $$f"; \
  89174. - rm -f $$p $$f ; \
  89175. - done
  89176. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  89177. + echo " rm -f" $$list; \
  89178. + rm -f $$list || exit $$?; \
  89179. + test -n "$(EXEEXT)" || exit 0; \
  89180. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  89181. + echo " rm -f" $$list; \
  89182. + rm -f $$list
  89183. bit$(EXEEXT): $(bit_OBJECTS) $(bit_DEPENDENCIES)
  89184. @rm -f bit$(EXEEXT)
  89185. - $(LINK) $(bit_LDFLAGS) $(bit_OBJECTS) $(bit_LDADD) $(LIBS)
  89186. + $(LINK) $(bit_OBJECTS) $(bit_LDADD) $(LIBS)
  89187. convert$(EXEEXT): $(convert_OBJECTS) $(convert_DEPENDENCIES)
  89188. @rm -f convert$(EXEEXT)
  89189. - $(LINK) $(convert_LDFLAGS) $(convert_OBJECTS) $(convert_LDADD) $(LIBS)
  89190. + $(LINK) $(convert_OBJECTS) $(convert_LDADD) $(LIBS)
  89191. dive$(EXEEXT): $(dive_OBJECTS) $(dive_DEPENDENCIES)
  89192. @rm -f dive$(EXEEXT)
  89193. - $(LINK) $(dive_LDFLAGS) $(dive_OBJECTS) $(dive_LDADD) $(LIBS)
  89194. + $(LINK) $(dive_OBJECTS) $(dive_LDADD) $(LIBS)
  89195. dive_ui$(EXEEXT): $(dive_ui_OBJECTS) $(dive_ui_DEPENDENCIES)
  89196. @rm -f dive_ui$(EXEEXT)
  89197. - $(LINK) $(dive_ui_LDFLAGS) $(dive_ui_OBJECTS) $(dive_ui_LDADD) $(LIBS)
  89198. + $(LINK) $(dive_ui_OBJECTS) $(dive_ui_LDADD) $(LIBS)
  89199. io$(EXEEXT): $(io_OBJECTS) $(io_DEPENDENCIES)
  89200. @rm -f io$(EXEEXT)
  89201. - $(LINK) $(io_LDFLAGS) $(io_OBJECTS) $(io_LDADD) $(LIBS)
  89202. + $(LINK) $(io_OBJECTS) $(io_LDADD) $(LIBS)
  89203. logic$(EXEEXT): $(logic_OBJECTS) $(logic_DEPENDENCIES)
  89204. @rm -f logic$(EXEEXT)
  89205. - $(LINK) $(logic_LDFLAGS) $(logic_OBJECTS) $(logic_LDADD) $(LIBS)
  89206. + $(LINK) $(logic_OBJECTS) $(logic_LDADD) $(LIBS)
  89207. reuse$(EXEEXT): $(reuse_OBJECTS) $(reuse_DEPENDENCIES)
  89208. @rm -f reuse$(EXEEXT)
  89209. - $(LINK) $(reuse_LDFLAGS) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS)
  89210. + $(LINK) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS)
  89211. t-addsub$(EXEEXT): $(t_addsub_OBJECTS) $(t_addsub_DEPENDENCIES)
  89212. @rm -f t-addsub$(EXEEXT)
  89213. - $(LINK) $(t_addsub_LDFLAGS) $(t_addsub_OBJECTS) $(t_addsub_LDADD) $(LIBS)
  89214. + $(LINK) $(t_addsub_OBJECTS) $(t_addsub_LDADD) $(LIBS)
  89215. t-aorsmul$(EXEEXT): $(t_aorsmul_OBJECTS) $(t_aorsmul_DEPENDENCIES)
  89216. @rm -f t-aorsmul$(EXEEXT)
  89217. - $(LINK) $(t_aorsmul_LDFLAGS) $(t_aorsmul_OBJECTS) $(t_aorsmul_LDADD) $(LIBS)
  89218. + $(LINK) $(t_aorsmul_OBJECTS) $(t_aorsmul_LDADD) $(LIBS)
  89219. t-bin$(EXEEXT): $(t_bin_OBJECTS) $(t_bin_DEPENDENCIES)
  89220. @rm -f t-bin$(EXEEXT)
  89221. - $(LINK) $(t_bin_LDFLAGS) $(t_bin_OBJECTS) $(t_bin_LDADD) $(LIBS)
  89222. + $(LINK) $(t_bin_OBJECTS) $(t_bin_LDADD) $(LIBS)
  89223. t-cdiv_ui$(EXEEXT): $(t_cdiv_ui_OBJECTS) $(t_cdiv_ui_DEPENDENCIES)
  89224. @rm -f t-cdiv_ui$(EXEEXT)
  89225. - $(LINK) $(t_cdiv_ui_LDFLAGS) $(t_cdiv_ui_OBJECTS) $(t_cdiv_ui_LDADD) $(LIBS)
  89226. + $(LINK) $(t_cdiv_ui_OBJECTS) $(t_cdiv_ui_LDADD) $(LIBS)
  89227. t-cmp$(EXEEXT): $(t_cmp_OBJECTS) $(t_cmp_DEPENDENCIES)
  89228. @rm -f t-cmp$(EXEEXT)
  89229. - $(LINK) $(t_cmp_LDFLAGS) $(t_cmp_OBJECTS) $(t_cmp_LDADD) $(LIBS)
  89230. + $(LINK) $(t_cmp_OBJECTS) $(t_cmp_LDADD) $(LIBS)
  89231. t-cmp_d$(EXEEXT): $(t_cmp_d_OBJECTS) $(t_cmp_d_DEPENDENCIES)
  89232. @rm -f t-cmp_d$(EXEEXT)
  89233. - $(LINK) $(t_cmp_d_LDFLAGS) $(t_cmp_d_OBJECTS) $(t_cmp_d_LDADD) $(LIBS)
  89234. + $(LINK) $(t_cmp_d_OBJECTS) $(t_cmp_d_LDADD) $(LIBS)
  89235. t-cmp_si$(EXEEXT): $(t_cmp_si_OBJECTS) $(t_cmp_si_DEPENDENCIES)
  89236. @rm -f t-cmp_si$(EXEEXT)
  89237. - $(LINK) $(t_cmp_si_LDFLAGS) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  89238. + $(LINK) $(t_cmp_si_OBJECTS) $(t_cmp_si_LDADD) $(LIBS)
  89239. t-cong$(EXEEXT): $(t_cong_OBJECTS) $(t_cong_DEPENDENCIES)
  89240. @rm -f t-cong$(EXEEXT)
  89241. - $(LINK) $(t_cong_LDFLAGS) $(t_cong_OBJECTS) $(t_cong_LDADD) $(LIBS)
  89242. + $(LINK) $(t_cong_OBJECTS) $(t_cong_LDADD) $(LIBS)
  89243. t-cong_2exp$(EXEEXT): $(t_cong_2exp_OBJECTS) $(t_cong_2exp_DEPENDENCIES)
  89244. @rm -f t-cong_2exp$(EXEEXT)
  89245. - $(LINK) $(t_cong_2exp_LDFLAGS) $(t_cong_2exp_OBJECTS) $(t_cong_2exp_LDADD) $(LIBS)
  89246. + $(LINK) $(t_cong_2exp_OBJECTS) $(t_cong_2exp_LDADD) $(LIBS)
  89247. t-div_2exp$(EXEEXT): $(t_div_2exp_OBJECTS) $(t_div_2exp_DEPENDENCIES)
  89248. @rm -f t-div_2exp$(EXEEXT)
  89249. - $(LINK) $(t_div_2exp_LDFLAGS) $(t_div_2exp_OBJECTS) $(t_div_2exp_LDADD) $(LIBS)
  89250. + $(LINK) $(t_div_2exp_OBJECTS) $(t_div_2exp_LDADD) $(LIBS)
  89251. t-divis$(EXEEXT): $(t_divis_OBJECTS) $(t_divis_DEPENDENCIES)
  89252. @rm -f t-divis$(EXEEXT)
  89253. - $(LINK) $(t_divis_LDFLAGS) $(t_divis_OBJECTS) $(t_divis_LDADD) $(LIBS)
  89254. + $(LINK) $(t_divis_OBJECTS) $(t_divis_LDADD) $(LIBS)
  89255. t-divis_2exp$(EXEEXT): $(t_divis_2exp_OBJECTS) $(t_divis_2exp_DEPENDENCIES)
  89256. @rm -f t-divis_2exp$(EXEEXT)
  89257. - $(LINK) $(t_divis_2exp_LDFLAGS) $(t_divis_2exp_OBJECTS) $(t_divis_2exp_LDADD) $(LIBS)
  89258. + $(LINK) $(t_divis_2exp_OBJECTS) $(t_divis_2exp_LDADD) $(LIBS)
  89259. t-export$(EXEEXT): $(t_export_OBJECTS) $(t_export_DEPENDENCIES)
  89260. @rm -f t-export$(EXEEXT)
  89261. - $(LINK) $(t_export_LDFLAGS) $(t_export_OBJECTS) $(t_export_LDADD) $(LIBS)
  89262. + $(LINK) $(t_export_OBJECTS) $(t_export_LDADD) $(LIBS)
  89263. t-fac_ui$(EXEEXT): $(t_fac_ui_OBJECTS) $(t_fac_ui_DEPENDENCIES)
  89264. @rm -f t-fac_ui$(EXEEXT)
  89265. - $(LINK) $(t_fac_ui_LDFLAGS) $(t_fac_ui_OBJECTS) $(t_fac_ui_LDADD) $(LIBS)
  89266. + $(LINK) $(t_fac_ui_OBJECTS) $(t_fac_ui_LDADD) $(LIBS)
  89267. t-fdiv$(EXEEXT): $(t_fdiv_OBJECTS) $(t_fdiv_DEPENDENCIES)
  89268. @rm -f t-fdiv$(EXEEXT)
  89269. - $(LINK) $(t_fdiv_LDFLAGS) $(t_fdiv_OBJECTS) $(t_fdiv_LDADD) $(LIBS)
  89270. + $(LINK) $(t_fdiv_OBJECTS) $(t_fdiv_LDADD) $(LIBS)
  89271. t-fdiv_ui$(EXEEXT): $(t_fdiv_ui_OBJECTS) $(t_fdiv_ui_DEPENDENCIES)
  89272. @rm -f t-fdiv_ui$(EXEEXT)
  89273. - $(LINK) $(t_fdiv_ui_LDFLAGS) $(t_fdiv_ui_OBJECTS) $(t_fdiv_ui_LDADD) $(LIBS)
  89274. + $(LINK) $(t_fdiv_ui_OBJECTS) $(t_fdiv_ui_LDADD) $(LIBS)
  89275. t-fib_ui$(EXEEXT): $(t_fib_ui_OBJECTS) $(t_fib_ui_DEPENDENCIES)
  89276. @rm -f t-fib_ui$(EXEEXT)
  89277. - $(LINK) $(t_fib_ui_LDFLAGS) $(t_fib_ui_OBJECTS) $(t_fib_ui_LDADD) $(LIBS)
  89278. + $(LINK) $(t_fib_ui_OBJECTS) $(t_fib_ui_LDADD) $(LIBS)
  89279. t-fits$(EXEEXT): $(t_fits_OBJECTS) $(t_fits_DEPENDENCIES)
  89280. @rm -f t-fits$(EXEEXT)
  89281. - $(LINK) $(t_fits_LDFLAGS) $(t_fits_OBJECTS) $(t_fits_LDADD) $(LIBS)
  89282. + $(LINK) $(t_fits_OBJECTS) $(t_fits_LDADD) $(LIBS)
  89283. t-gcd$(EXEEXT): $(t_gcd_OBJECTS) $(t_gcd_DEPENDENCIES)
  89284. @rm -f t-gcd$(EXEEXT)
  89285. - $(LINK) $(t_gcd_LDFLAGS) $(t_gcd_OBJECTS) $(t_gcd_LDADD) $(LIBS)
  89286. + $(LINK) $(t_gcd_OBJECTS) $(t_gcd_LDADD) $(LIBS)
  89287. t-gcd_ui$(EXEEXT): $(t_gcd_ui_OBJECTS) $(t_gcd_ui_DEPENDENCIES)
  89288. @rm -f t-gcd_ui$(EXEEXT)
  89289. - $(LINK) $(t_gcd_ui_LDFLAGS) $(t_gcd_ui_OBJECTS) $(t_gcd_ui_LDADD) $(LIBS)
  89290. + $(LINK) $(t_gcd_ui_OBJECTS) $(t_gcd_ui_LDADD) $(LIBS)
  89291. t-get_d$(EXEEXT): $(t_get_d_OBJECTS) $(t_get_d_DEPENDENCIES)
  89292. @rm -f t-get_d$(EXEEXT)
  89293. - $(LINK) $(t_get_d_LDFLAGS) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  89294. + $(LINK) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS)
  89295. t-get_d_2exp$(EXEEXT): $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_DEPENDENCIES)
  89296. @rm -f t-get_d_2exp$(EXEEXT)
  89297. - $(LINK) $(t_get_d_2exp_LDFLAGS) $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_LDADD) $(LIBS)
  89298. + $(LINK) $(t_get_d_2exp_OBJECTS) $(t_get_d_2exp_LDADD) $(LIBS)
  89299. t-get_si$(EXEEXT): $(t_get_si_OBJECTS) $(t_get_si_DEPENDENCIES)
  89300. @rm -f t-get_si$(EXEEXT)
  89301. - $(LINK) $(t_get_si_LDFLAGS) $(t_get_si_OBJECTS) $(t_get_si_LDADD) $(LIBS)
  89302. + $(LINK) $(t_get_si_OBJECTS) $(t_get_si_LDADD) $(LIBS)
  89303. t-hamdist$(EXEEXT): $(t_hamdist_OBJECTS) $(t_hamdist_DEPENDENCIES)
  89304. @rm -f t-hamdist$(EXEEXT)
  89305. - $(LINK) $(t_hamdist_LDFLAGS) $(t_hamdist_OBJECTS) $(t_hamdist_LDADD) $(LIBS)
  89306. + $(LINK) $(t_hamdist_OBJECTS) $(t_hamdist_LDADD) $(LIBS)
  89307. t-import$(EXEEXT): $(t_import_OBJECTS) $(t_import_DEPENDENCIES)
  89308. @rm -f t-import$(EXEEXT)
  89309. - $(LINK) $(t_import_LDFLAGS) $(t_import_OBJECTS) $(t_import_LDADD) $(LIBS)
  89310. + $(LINK) $(t_import_OBJECTS) $(t_import_LDADD) $(LIBS)
  89311. t-inp_str$(EXEEXT): $(t_inp_str_OBJECTS) $(t_inp_str_DEPENDENCIES)
  89312. @rm -f t-inp_str$(EXEEXT)
  89313. - $(LINK) $(t_inp_str_LDFLAGS) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  89314. + $(LINK) $(t_inp_str_OBJECTS) $(t_inp_str_LDADD) $(LIBS)
  89315. t-io_raw$(EXEEXT): $(t_io_raw_OBJECTS) $(t_io_raw_DEPENDENCIES)
  89316. @rm -f t-io_raw$(EXEEXT)
  89317. - $(LINK) $(t_io_raw_LDFLAGS) $(t_io_raw_OBJECTS) $(t_io_raw_LDADD) $(LIBS)
  89318. + $(LINK) $(t_io_raw_OBJECTS) $(t_io_raw_LDADD) $(LIBS)
  89319. t-jac$(EXEEXT): $(t_jac_OBJECTS) $(t_jac_DEPENDENCIES)
  89320. @rm -f t-jac$(EXEEXT)
  89321. - $(LINK) $(t_jac_LDFLAGS) $(t_jac_OBJECTS) $(t_jac_LDADD) $(LIBS)
  89322. + $(LINK) $(t_jac_OBJECTS) $(t_jac_LDADD) $(LIBS)
  89323. t-lcm$(EXEEXT): $(t_lcm_OBJECTS) $(t_lcm_DEPENDENCIES)
  89324. @rm -f t-lcm$(EXEEXT)
  89325. - $(LINK) $(t_lcm_LDFLAGS) $(t_lcm_OBJECTS) $(t_lcm_LDADD) $(LIBS)
  89326. + $(LINK) $(t_lcm_OBJECTS) $(t_lcm_LDADD) $(LIBS)
  89327. t-lucnum_ui$(EXEEXT): $(t_lucnum_ui_OBJECTS) $(t_lucnum_ui_DEPENDENCIES)
  89328. @rm -f t-lucnum_ui$(EXEEXT)
  89329. - $(LINK) $(t_lucnum_ui_LDFLAGS) $(t_lucnum_ui_OBJECTS) $(t_lucnum_ui_LDADD) $(LIBS)
  89330. + $(LINK) $(t_lucnum_ui_OBJECTS) $(t_lucnum_ui_LDADD) $(LIBS)
  89331. t-mul$(EXEEXT): $(t_mul_OBJECTS) $(t_mul_DEPENDENCIES)
  89332. @rm -f t-mul$(EXEEXT)
  89333. - $(LINK) $(t_mul_LDFLAGS) $(t_mul_OBJECTS) $(t_mul_LDADD) $(LIBS)
  89334. + $(LINK) $(t_mul_OBJECTS) $(t_mul_LDADD) $(LIBS)
  89335. t-mul_i$(EXEEXT): $(t_mul_i_OBJECTS) $(t_mul_i_DEPENDENCIES)
  89336. @rm -f t-mul_i$(EXEEXT)
  89337. - $(LINK) $(t_mul_i_LDFLAGS) $(t_mul_i_OBJECTS) $(t_mul_i_LDADD) $(LIBS)
  89338. + $(LINK) $(t_mul_i_OBJECTS) $(t_mul_i_LDADD) $(LIBS)
  89339. t-nextprime$(EXEEXT): $(t_nextprime_OBJECTS) $(t_nextprime_DEPENDENCIES)
  89340. @rm -f t-nextprime$(EXEEXT)
  89341. - $(LINK) $(t_nextprime_LDFLAGS) $(t_nextprime_OBJECTS) $(t_nextprime_LDADD) $(LIBS)
  89342. + $(LINK) $(t_nextprime_OBJECTS) $(t_nextprime_LDADD) $(LIBS)
  89343. t-oddeven$(EXEEXT): $(t_oddeven_OBJECTS) $(t_oddeven_DEPENDENCIES)
  89344. @rm -f t-oddeven$(EXEEXT)
  89345. - $(LINK) $(t_oddeven_LDFLAGS) $(t_oddeven_OBJECTS) $(t_oddeven_LDADD) $(LIBS)
  89346. + $(LINK) $(t_oddeven_OBJECTS) $(t_oddeven_LDADD) $(LIBS)
  89347. t-perfpow$(EXEEXT): $(t_perfpow_OBJECTS) $(t_perfpow_DEPENDENCIES)
  89348. @rm -f t-perfpow$(EXEEXT)
  89349. - $(LINK) $(t_perfpow_LDFLAGS) $(t_perfpow_OBJECTS) $(t_perfpow_LDADD) $(LIBS)
  89350. + $(LINK) $(t_perfpow_OBJECTS) $(t_perfpow_LDADD) $(LIBS)
  89351. t-perfsqr$(EXEEXT): $(t_perfsqr_OBJECTS) $(t_perfsqr_DEPENDENCIES)
  89352. @rm -f t-perfsqr$(EXEEXT)
  89353. - $(LINK) $(t_perfsqr_LDFLAGS) $(t_perfsqr_OBJECTS) $(t_perfsqr_LDADD) $(LIBS)
  89354. + $(LINK) $(t_perfsqr_OBJECTS) $(t_perfsqr_LDADD) $(LIBS)
  89355. t-popcount$(EXEEXT): $(t_popcount_OBJECTS) $(t_popcount_DEPENDENCIES)
  89356. @rm -f t-popcount$(EXEEXT)
  89357. - $(LINK) $(t_popcount_LDFLAGS) $(t_popcount_OBJECTS) $(t_popcount_LDADD) $(LIBS)
  89358. + $(LINK) $(t_popcount_OBJECTS) $(t_popcount_LDADD) $(LIBS)
  89359. t-pow$(EXEEXT): $(t_pow_OBJECTS) $(t_pow_DEPENDENCIES)
  89360. @rm -f t-pow$(EXEEXT)
  89361. - $(LINK) $(t_pow_LDFLAGS) $(t_pow_OBJECTS) $(t_pow_LDADD) $(LIBS)
  89362. + $(LINK) $(t_pow_OBJECTS) $(t_pow_LDADD) $(LIBS)
  89363. t-powm$(EXEEXT): $(t_powm_OBJECTS) $(t_powm_DEPENDENCIES)
  89364. @rm -f t-powm$(EXEEXT)
  89365. - $(LINK) $(t_powm_LDFLAGS) $(t_powm_OBJECTS) $(t_powm_LDADD) $(LIBS)
  89366. + $(LINK) $(t_powm_OBJECTS) $(t_powm_LDADD) $(LIBS)
  89367. t-powm_ui$(EXEEXT): $(t_powm_ui_OBJECTS) $(t_powm_ui_DEPENDENCIES)
  89368. @rm -f t-powm_ui$(EXEEXT)
  89369. - $(LINK) $(t_powm_ui_LDFLAGS) $(t_powm_ui_OBJECTS) $(t_powm_ui_LDADD) $(LIBS)
  89370. + $(LINK) $(t_powm_ui_OBJECTS) $(t_powm_ui_LDADD) $(LIBS)
  89371. t-pprime_p$(EXEEXT): $(t_pprime_p_OBJECTS) $(t_pprime_p_DEPENDENCIES)
  89372. @rm -f t-pprime_p$(EXEEXT)
  89373. - $(LINK) $(t_pprime_p_LDFLAGS) $(t_pprime_p_OBJECTS) $(t_pprime_p_LDADD) $(LIBS)
  89374. + $(LINK) $(t_pprime_p_OBJECTS) $(t_pprime_p_LDADD) $(LIBS)
  89375. t-root$(EXEEXT): $(t_root_OBJECTS) $(t_root_DEPENDENCIES)
  89376. @rm -f t-root$(EXEEXT)
  89377. - $(LINK) $(t_root_LDFLAGS) $(t_root_OBJECTS) $(t_root_LDADD) $(LIBS)
  89378. + $(LINK) $(t_root_OBJECTS) $(t_root_LDADD) $(LIBS)
  89379. t-scan$(EXEEXT): $(t_scan_OBJECTS) $(t_scan_DEPENDENCIES)
  89380. @rm -f t-scan$(EXEEXT)
  89381. - $(LINK) $(t_scan_LDFLAGS) $(t_scan_OBJECTS) $(t_scan_LDADD) $(LIBS)
  89382. + $(LINK) $(t_scan_OBJECTS) $(t_scan_LDADD) $(LIBS)
  89383. t-set_d$(EXEEXT): $(t_set_d_OBJECTS) $(t_set_d_DEPENDENCIES)
  89384. @rm -f t-set_d$(EXEEXT)
  89385. - $(LINK) $(t_set_d_LDFLAGS) $(t_set_d_OBJECTS) $(t_set_d_LDADD) $(LIBS)
  89386. + $(LINK) $(t_set_d_OBJECTS) $(t_set_d_LDADD) $(LIBS)
  89387. t-set_f$(EXEEXT): $(t_set_f_OBJECTS) $(t_set_f_DEPENDENCIES)
  89388. @rm -f t-set_f$(EXEEXT)
  89389. - $(LINK) $(t_set_f_LDFLAGS) $(t_set_f_OBJECTS) $(t_set_f_LDADD) $(LIBS)
  89390. + $(LINK) $(t_set_f_OBJECTS) $(t_set_f_LDADD) $(LIBS)
  89391. t-set_si$(EXEEXT): $(t_set_si_OBJECTS) $(t_set_si_DEPENDENCIES)
  89392. @rm -f t-set_si$(EXEEXT)
  89393. - $(LINK) $(t_set_si_LDFLAGS) $(t_set_si_OBJECTS) $(t_set_si_LDADD) $(LIBS)
  89394. + $(LINK) $(t_set_si_OBJECTS) $(t_set_si_LDADD) $(LIBS)
  89395. t-set_str$(EXEEXT): $(t_set_str_OBJECTS) $(t_set_str_DEPENDENCIES)
  89396. @rm -f t-set_str$(EXEEXT)
  89397. - $(LINK) $(t_set_str_LDFLAGS) $(t_set_str_OBJECTS) $(t_set_str_LDADD) $(LIBS)
  89398. + $(LINK) $(t_set_str_OBJECTS) $(t_set_str_LDADD) $(LIBS)
  89399. t-sizeinbase$(EXEEXT): $(t_sizeinbase_OBJECTS) $(t_sizeinbase_DEPENDENCIES)
  89400. @rm -f t-sizeinbase$(EXEEXT)
  89401. - $(LINK) $(t_sizeinbase_LDFLAGS) $(t_sizeinbase_OBJECTS) $(t_sizeinbase_LDADD) $(LIBS)
  89402. + $(LINK) $(t_sizeinbase_OBJECTS) $(t_sizeinbase_LDADD) $(LIBS)
  89403. t-sqrtrem$(EXEEXT): $(t_sqrtrem_OBJECTS) $(t_sqrtrem_DEPENDENCIES)
  89404. @rm -f t-sqrtrem$(EXEEXT)
  89405. - $(LINK) $(t_sqrtrem_LDFLAGS) $(t_sqrtrem_OBJECTS) $(t_sqrtrem_LDADD) $(LIBS)
  89406. + $(LINK) $(t_sqrtrem_OBJECTS) $(t_sqrtrem_LDADD) $(LIBS)
  89407. t-tdiv$(EXEEXT): $(t_tdiv_OBJECTS) $(t_tdiv_DEPENDENCIES)
  89408. @rm -f t-tdiv$(EXEEXT)
  89409. - $(LINK) $(t_tdiv_LDFLAGS) $(t_tdiv_OBJECTS) $(t_tdiv_LDADD) $(LIBS)
  89410. + $(LINK) $(t_tdiv_OBJECTS) $(t_tdiv_LDADD) $(LIBS)
  89411. t-tdiv_ui$(EXEEXT): $(t_tdiv_ui_OBJECTS) $(t_tdiv_ui_DEPENDENCIES)
  89412. @rm -f t-tdiv_ui$(EXEEXT)
  89413. - $(LINK) $(t_tdiv_ui_LDFLAGS) $(t_tdiv_ui_OBJECTS) $(t_tdiv_ui_LDADD) $(LIBS)
  89414. + $(LINK) $(t_tdiv_ui_OBJECTS) $(t_tdiv_ui_LDADD) $(LIBS)
  89415. mostlyclean-compile:
  89416. -rm -f *.$(OBJEXT)
  89417. @@ -782,7 +805,7 @@
  89418. distclean-compile:
  89419. -rm -f *.tab.c
  89420. $(top_builddir)/ansi2knr:
  89421. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  89422. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  89423. mostlyclean-kr:
  89424. -test "$U" = "" || rm -f *_.c
  89425. @@ -948,54 +971,54 @@
  89426. clean-libtool:
  89427. -rm -rf .libs _libs
  89428. -distclean-libtool:
  89429. - -rm -f libtool
  89430. -uninstall-info-am:
  89431. -
  89432. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  89433. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  89434. unique=`for i in $$list; do \
  89435. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  89436. done | \
  89437. - $(AWK) ' { files[$$0] = 1; } \
  89438. - END { for (i in files) print i; }'`; \
  89439. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  89440. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  89441. mkid -fID $$unique
  89442. tags: TAGS
  89443. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  89444. $(TAGS_FILES) $(LISP)
  89445. - tags=; \
  89446. + set x; \
  89447. here=`pwd`; \
  89448. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  89449. unique=`for i in $$list; do \
  89450. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  89451. done | \
  89452. - $(AWK) ' { files[$$0] = 1; } \
  89453. - END { for (i in files) print i; }'`; \
  89454. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  89455. - test -z "$$unique" && unique=$$empty_fix; \
  89456. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  89457. - $$tags $$unique; \
  89458. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  89459. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  89460. + shift; \
  89461. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  89462. + test -n "$$unique" || unique=$$empty_fix; \
  89463. + if test $$# -gt 0; then \
  89464. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  89465. + "$$@" $$unique; \
  89466. + else \
  89467. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  89468. + $$unique; \
  89469. + fi; \
  89470. fi
  89471. ctags: CTAGS
  89472. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  89473. $(TAGS_FILES) $(LISP)
  89474. - tags=; \
  89475. - here=`pwd`; \
  89476. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  89477. unique=`for i in $$list; do \
  89478. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  89479. done | \
  89480. - $(AWK) ' { files[$$0] = 1; } \
  89481. - END { for (i in files) print i; }'`; \
  89482. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  89483. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  89484. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  89485. + test -z "$(CTAGS_ARGS)$$unique" \
  89486. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  89487. - $$tags $$unique
  89488. + $$unique
  89489. GTAGS:
  89490. here=`$(am__cd) $(top_builddir) && pwd` \
  89491. - && cd $(top_srcdir) \
  89492. - && gtags -i $(GTAGS_ARGS) $$here
  89493. + && $(am__cd) $(top_srcdir) \
  89494. + && gtags -i $(GTAGS_ARGS) "$$here"
  89495. distclean-tags:
  89496. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  89497. @@ -1003,7 +1026,8 @@
  89498. check-TESTS: $(TESTS)
  89499. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  89500. srcdir=$(srcdir); export srcdir; \
  89501. - list='$(TESTS)'; \
  89502. + list=' $(TESTS) '; \
  89503. + $(am__tty_colors); \
  89504. if test -n "$$list"; then \
  89505. for tst in $$list; do \
  89506. if test -f ./$$tst; then dir=./; \
  89507. @@ -1012,91 +1036,112 @@
  89508. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  89509. all=`expr $$all + 1`; \
  89510. case " $(XFAIL_TESTS) " in \
  89511. - *" $$tst "*) \
  89512. + *[\ \ ]$$tst[\ \ ]*) \
  89513. xpass=`expr $$xpass + 1`; \
  89514. failed=`expr $$failed + 1`; \
  89515. - echo "XPASS: $$tst"; \
  89516. + col=$$red; res=XPASS; \
  89517. ;; \
  89518. *) \
  89519. - echo "PASS: $$tst"; \
  89520. + col=$$grn; res=PASS; \
  89521. ;; \
  89522. esac; \
  89523. elif test $$? -ne 77; then \
  89524. all=`expr $$all + 1`; \
  89525. case " $(XFAIL_TESTS) " in \
  89526. - *" $$tst "*) \
  89527. + *[\ \ ]$$tst[\ \ ]*) \
  89528. xfail=`expr $$xfail + 1`; \
  89529. - echo "XFAIL: $$tst"; \
  89530. + col=$$lgn; res=XFAIL; \
  89531. ;; \
  89532. *) \
  89533. failed=`expr $$failed + 1`; \
  89534. - echo "FAIL: $$tst"; \
  89535. + col=$$red; res=FAIL; \
  89536. ;; \
  89537. esac; \
  89538. else \
  89539. skip=`expr $$skip + 1`; \
  89540. - echo "SKIP: $$tst"; \
  89541. + col=$$blu; res=SKIP; \
  89542. fi; \
  89543. + echo "$${col}$$res$${std}: $$tst"; \
  89544. done; \
  89545. + if test "$$all" -eq 1; then \
  89546. + tests="test"; \
  89547. + All=""; \
  89548. + else \
  89549. + tests="tests"; \
  89550. + All="All "; \
  89551. + fi; \
  89552. if test "$$failed" -eq 0; then \
  89553. if test "$$xfail" -eq 0; then \
  89554. - banner="All $$all tests passed"; \
  89555. + banner="$$All$$all $$tests passed"; \
  89556. else \
  89557. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  89558. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  89559. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  89560. fi; \
  89561. else \
  89562. if test "$$xpass" -eq 0; then \
  89563. - banner="$$failed of $$all tests failed"; \
  89564. + banner="$$failed of $$all $$tests failed"; \
  89565. else \
  89566. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  89567. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  89568. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  89569. fi; \
  89570. fi; \
  89571. dashes="$$banner"; \
  89572. skipped=""; \
  89573. if test "$$skip" -ne 0; then \
  89574. - skipped="($$skip tests were not run)"; \
  89575. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  89576. + if test "$$skip" -eq 1; then \
  89577. + skipped="($$skip test was not run)"; \
  89578. + else \
  89579. + skipped="($$skip tests were not run)"; \
  89580. + fi; \
  89581. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  89582. dashes="$$skipped"; \
  89583. fi; \
  89584. report=""; \
  89585. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  89586. report="Please report to $(PACKAGE_BUGREPORT)"; \
  89587. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  89588. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  89589. dashes="$$report"; \
  89590. fi; \
  89591. dashes=`echo "$$dashes" | sed s/./=/g`; \
  89592. - echo "$$dashes"; \
  89593. + if test "$$failed" -eq 0; then \
  89594. + echo "$$grn$$dashes"; \
  89595. + else \
  89596. + echo "$$red$$dashes"; \
  89597. + fi; \
  89598. echo "$$banner"; \
  89599. - test -n "$$skipped" && echo "$$skipped"; \
  89600. - test -n "$$report" && echo "$$report"; \
  89601. - echo "$$dashes"; \
  89602. + test -z "$$skipped" || echo "$$skipped"; \
  89603. + test -z "$$report" || echo "$$report"; \
  89604. + echo "$$dashes$$std"; \
  89605. test "$$failed" -eq 0; \
  89606. else :; fi
  89607. distdir: $(DISTFILES)
  89608. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  89609. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  89610. - list='$(DISTFILES)'; for file in $$list; do \
  89611. - case $$file in \
  89612. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  89613. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  89614. - esac; \
  89615. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  89616. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  89617. + list='$(DISTFILES)'; \
  89618. + dist_files=`for file in $$list; do echo $$file; done | \
  89619. + sed -e "s|^$$srcdirstrip/||;t" \
  89620. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  89621. + case $$dist_files in \
  89622. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  89623. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  89624. + sort -u` ;; \
  89625. + esac; \
  89626. + for file in $$dist_files; do \
  89627. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  89628. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  89629. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  89630. - dir="/$$dir"; \
  89631. - $(mkdir_p) "$(distdir)$$dir"; \
  89632. - else \
  89633. - dir=''; \
  89634. - fi; \
  89635. if test -d $$d/$$file; then \
  89636. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  89637. + if test -d "$(distdir)/$$file"; then \
  89638. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  89639. + fi; \
  89640. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  89641. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  89642. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  89643. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  89644. fi; \
  89645. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  89646. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  89647. else \
  89648. - test -f $(distdir)/$$file \
  89649. - || cp -p $$d/$$file $(distdir)/$$file \
  89650. + test -f "$(distdir)/$$file" \
  89651. + || cp -p $$d/$$file "$(distdir)/$$file" \
  89652. || exit 1; \
  89653. fi; \
  89654. done
  89655. @@ -1126,7 +1171,8 @@
  89656. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  89657. distclean-generic:
  89658. - -rm -f $(CONFIG_CLEAN_FILES)
  89659. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  89660. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  89661. maintainer-clean-generic:
  89662. @echo "This command is intended for maintainers to use"
  89663. @@ -1139,7 +1185,7 @@
  89664. distclean: distclean-am
  89665. -rm -f Makefile
  89666. distclean-am: clean-am distclean-compile distclean-generic \
  89667. - distclean-libtool distclean-tags
  89668. + distclean-tags
  89669. dvi: dvi-am
  89670. @@ -1147,18 +1193,38 @@
  89671. html: html-am
  89672. +html-am:
  89673. +
  89674. info: info-am
  89675. info-am:
  89676. install-data-am:
  89677. +install-dvi: install-dvi-am
  89678. +
  89679. +install-dvi-am:
  89680. +
  89681. install-exec-am:
  89682. +install-html: install-html-am
  89683. +
  89684. +install-html-am:
  89685. +
  89686. install-info: install-info-am
  89687. +install-info-am:
  89688. +
  89689. install-man:
  89690. +install-pdf: install-pdf-am
  89691. +
  89692. +install-pdf-am:
  89693. +
  89694. +install-ps: install-ps-am
  89695. +
  89696. +install-ps-am:
  89697. +
  89698. installcheck-am:
  89699. maintainer-clean: maintainer-clean-am
  89700. @@ -1178,23 +1244,28 @@
  89701. ps-am:
  89702. -uninstall-am: uninstall-info-am
  89703. +uninstall-am:
  89704. +
  89705. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  89706. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  89707. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  89708. distclean distclean-compile distclean-generic \
  89709. distclean-libtool distclean-tags distdir dvi dvi-am html \
  89710. html-am info info-am install install-am install-data \
  89711. - install-data-am install-exec install-exec-am install-info \
  89712. - install-info-am install-man install-strip installcheck \
  89713. + install-data-am install-dvi install-dvi-am install-exec \
  89714. + install-exec-am install-html install-html-am install-info \
  89715. + install-info-am install-man install-pdf install-pdf-am \
  89716. + install-ps install-ps-am install-strip installcheck \
  89717. installcheck-am installdirs maintainer-clean \
  89718. maintainer-clean-generic mostlyclean mostlyclean-compile \
  89719. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  89720. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  89721. + pdf-am ps ps-am tags uninstall uninstall-am
  89722. $(top_builddir)/tests/libtests.la:
  89723. cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
  89724. +
  89725. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  89726. # Otherwise a system limit (for SysV at least) may be exceeded.
  89727. .NOEXPORT:
  89728. diff -Nur gmp-4.3.2.orig/tests/rand/Makefile.in gmp-4.3.2/tests/rand/Makefile.in
  89729. --- gmp-4.3.2.orig/tests/rand/Makefile.in 2010-01-07 21:09:44.000000000 +0100
  89730. +++ gmp-4.3.2/tests/rand/Makefile.in 2011-02-16 19:23:20.903557411 +0100
  89731. @@ -1,8 +1,9 @@
  89732. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  89733. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  89734. # @configure_input@
  89735. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  89736. -# 2003, 2004 Free Software Foundation, Inc.
  89737. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  89738. +# Inc.
  89739. # This Makefile.in is free software; the Free Software Foundation
  89740. # gives unlimited permission to copy and/or distribute it,
  89741. # with or without modifications, as long as this notice is preserved.
  89742. @@ -30,17 +31,12 @@
  89743. #
  89744. # You should have received a copy of the GNU Lesser General Public License
  89745. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  89746. -SOURCES = $(libstat_la_SOURCES) findlc.c gen.c $(gen_static_SOURCES) spect.c stat.c t-iset.c t-lc2exp.c t-mt.c t-rand.c t-urbui.c t-urmui.c t-urndmm.c
  89747. -
  89748. -srcdir = @srcdir@
  89749. -top_srcdir = @top_srcdir@
  89750. VPATH = @srcdir@
  89751. pkgdatadir = $(datadir)/@PACKAGE@
  89752. -pkglibdir = $(libdir)/@PACKAGE@
  89753. pkgincludedir = $(includedir)/@PACKAGE@
  89754. -top_builddir = ../..
  89755. +pkglibdir = $(libdir)/@PACKAGE@
  89756. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  89757. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  89758. -INSTALL = @INSTALL@
  89759. install_sh_DATA = $(install_sh) -c -m 644
  89760. install_sh_PROGRAM = $(install_sh) -c
  89761. install_sh_SCRIPT = $(install_sh) -c
  89762. @@ -52,6 +48,7 @@
  89763. NORMAL_UNINSTALL = :
  89764. PRE_UNINSTALL = :
  89765. POST_UNINSTALL = :
  89766. +build_triplet = @build@
  89767. host_triplet = @host@
  89768. ANSI2KNR = $(top_builddir)/ansi2knr
  89769. check_PROGRAMS = t-iset$(EXEEXT) t-lc2exp$(EXEEXT) t-mt$(EXEEXT) \
  89770. @@ -66,9 +63,10 @@
  89771. $(top_srcdir)/configure.in
  89772. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  89773. $(ACLOCAL_M4)
  89774. -mkinstalldirs = $(mkdir_p)
  89775. +mkinstalldirs = $(install_sh) -d
  89776. CONFIG_HEADER = $(top_builddir)/config.h
  89777. CONFIG_CLEAN_FILES =
  89778. +CONFIG_CLEAN_VPATH_FILES =
  89779. am__DEPENDENCIES_1 =
  89780. libstat_la_DEPENDENCIES = $(top_builddir)/libgmp.la \
  89781. $(am__DEPENDENCIES_1)
  89782. @@ -87,6 +85,9 @@
  89783. gen_static_LDADD = $(LDADD)
  89784. gen_static_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  89785. $(top_builddir)/libgmp.la
  89786. +gen_static_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  89787. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  89788. + $(gen_static_LDFLAGS) $(LDFLAGS) -o $@
  89789. spect_SOURCES = spect.c
  89790. spect_OBJECTS = spect$U.$(OBJEXT)
  89791. spect_DEPENDENCIES = libstat.la
  89792. @@ -128,17 +129,18 @@
  89793. t_urndmm_LDADD = $(LDADD)
  89794. t_urndmm_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
  89795. $(top_builddir)/libgmp.la
  89796. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  89797. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  89798. depcomp =
  89799. am__depfiles_maybe =
  89800. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  89801. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  89802. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  89803. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  89804. - $(AM_CFLAGS) $(CFLAGS)
  89805. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  89806. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  89807. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  89808. CCLD = $(CC)
  89809. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  89810. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  89811. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  89812. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  89813. + $(LDFLAGS) -o $@
  89814. SOURCES = $(libstat_la_SOURCES) findlc.c gen.c $(gen_static_SOURCES) \
  89815. spect.c stat.c t-iset.c t-lc2exp.c t-mt.c t-rand.c t-urbui.c \
  89816. t-urmui.c t-urndmm.c
  89817. @@ -147,6 +149,8 @@
  89818. t-mt.c t-rand.c t-urbui.c t-urmui.c t-urndmm.c
  89819. ETAGS = etags
  89820. CTAGS = ctags
  89821. +am__tty_colors = \
  89822. +red=; grn=; lgn=; blu=; std=
  89823. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  89824. ABI = @ABI@
  89825. ACLOCAL = @ACLOCAL@
  89826. @@ -174,15 +178,17 @@
  89827. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  89828. DEFS = @DEFS@
  89829. DLLTOOL = @DLLTOOL@
  89830. -ECHO = @ECHO@
  89831. +DSYMUTIL = @DSYMUTIL@
  89832. +DUMPBIN = @DUMPBIN@
  89833. ECHO_C = @ECHO_C@
  89834. ECHO_N = @ECHO_N@
  89835. ECHO_T = @ECHO_T@
  89836. EGREP = @EGREP@
  89837. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  89838. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  89839. EXEEXT = @EXEEXT@
  89840. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  89841. +F77 = @F77@
  89842. +FFLAGS = @FFLAGS@
  89843. +FGREP = @FGREP@
  89844. GMP_LDFLAGS = @GMP_LDFLAGS@
  89845. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  89846. GREP = @GREP@
  89847. @@ -197,10 +203,12 @@
  89848. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  89849. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  89850. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  89851. +INSTALL = @INSTALL@
  89852. INSTALL_DATA = @INSTALL_DATA@
  89853. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  89854. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  89855. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  89856. +LD = @LD@
  89857. LDFLAGS = @LDFLAGS@
  89858. LEX = @LEX@
  89859. LEXLIB = @LEXLIB@
  89860. @@ -215,20 +223,25 @@
  89861. LIBREADLINE = @LIBREADLINE@
  89862. LIBS = @LIBS@
  89863. LIBTOOL = @LIBTOOL@
  89864. +LIPO = @LIPO@
  89865. LN_S = @LN_S@
  89866. LTLIBOBJS = @LTLIBOBJS@
  89867. M4 = @M4@
  89868. MAINT = @MAINT@
  89869. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  89870. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  89871. MAKEINFO = @MAKEINFO@
  89872. +MKDIR_P = @MKDIR_P@
  89873. +NM = @NM@
  89874. +NMEDIT = @NMEDIT@
  89875. OBJDUMP = @OBJDUMP@
  89876. OBJEXT = @OBJEXT@
  89877. +OTOOL = @OTOOL@
  89878. +OTOOL64 = @OTOOL64@
  89879. PACKAGE = @PACKAGE@
  89880. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  89881. PACKAGE_NAME = @PACKAGE_NAME@
  89882. PACKAGE_STRING = @PACKAGE_STRING@
  89883. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  89884. +PACKAGE_URL = @PACKAGE_URL@
  89885. PACKAGE_VERSION = @PACKAGE_VERSION@
  89886. PATH_SEPARATOR = @PATH_SEPARATOR@
  89887. RANLIB = @RANLIB@
  89888. @@ -242,22 +255,27 @@
  89889. U = @U@
  89890. U_FOR_BUILD = @U_FOR_BUILD@
  89891. VERSION = @VERSION@
  89892. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  89893. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  89894. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  89895. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  89896. WITH_READLINE_01 = @WITH_READLINE_01@
  89897. YACC = @YACC@
  89898. YFLAGS = @YFLAGS@
  89899. +abs_builddir = @abs_builddir@
  89900. +abs_srcdir = @abs_srcdir@
  89901. +abs_top_builddir = @abs_top_builddir@
  89902. +abs_top_srcdir = @abs_top_srcdir@
  89903. ac_ct_CC = @ac_ct_CC@
  89904. ac_ct_CXX = @ac_ct_CXX@
  89905. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  89906. +ac_ct_F77 = @ac_ct_F77@
  89907. am__leading_dot = @am__leading_dot@
  89908. +am__tar = @am__tar@
  89909. +am__untar = @am__untar@
  89910. bindir = @bindir@
  89911. build = @build@
  89912. build_alias = @build_alias@
  89913. build_cpu = @build_cpu@
  89914. build_os = @build_os@
  89915. build_vendor = @build_vendor@
  89916. +builddir = @builddir@
  89917. datadir = @datadir@
  89918. datarootdir = @datarootdir@
  89919. docdir = @docdir@
  89920. @@ -277,6 +295,7 @@
  89921. libexecdir = @libexecdir@
  89922. localedir = @localedir@
  89923. localstatedir = @localstatedir@
  89924. +lt_ECHO = @lt_ECHO@
  89925. mandir = @mandir@
  89926. mkdir_p = @mkdir_p@
  89927. mpn_objects = @mpn_objects@
  89928. @@ -289,8 +308,12 @@
  89929. psdir = @psdir@
  89930. sbindir = @sbindir@
  89931. sharedstatedir = @sharedstatedir@
  89932. +srcdir = @srcdir@
  89933. sysconfdir = @sysconfdir@
  89934. target_alias = @target_alias@
  89935. +top_build_prefix = @top_build_prefix@
  89936. +top_builddir = @top_builddir@
  89937. +top_srcdir = @top_srcdir@
  89938. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  89939. LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  89940. TESTS = $(check_PROGRAMS)
  89941. @@ -311,14 +334,14 @@
  89942. @for dep in $?; do \
  89943. case '$(am__configure_deps)' in \
  89944. *$$dep*) \
  89945. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  89946. - && exit 0; \
  89947. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  89948. + && { if test -f $@; then exit 0; else break; fi; }; \
  89949. exit 1;; \
  89950. esac; \
  89951. done; \
  89952. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/rand/Makefile'; \
  89953. - cd $(top_srcdir) && \
  89954. - $(AUTOMAKE) --gnu --ignore-deps tests/rand/Makefile
  89955. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/rand/Makefile'; \
  89956. + $(am__cd) $(top_srcdir) && \
  89957. + $(AUTOMAKE) --gnu --ignore-deps tests/rand/Makefile
  89958. .PRECIOUS: Makefile
  89959. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  89960. @case '$?' in \
  89961. @@ -336,51 +359,54 @@
  89962. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  89963. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  89964. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  89965. +$(am__aclocal_m4_deps):
  89966. libstat.la: $(libstat_la_OBJECTS) $(libstat_la_DEPENDENCIES)
  89967. - $(LINK) $(libstat_la_LDFLAGS) $(libstat_la_OBJECTS) $(libstat_la_LIBADD) $(LIBS)
  89968. + $(LINK) $(libstat_la_OBJECTS) $(libstat_la_LIBADD) $(LIBS)
  89969. clean-checkPROGRAMS:
  89970. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  89971. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  89972. - echo " rm -f $$p $$f"; \
  89973. - rm -f $$p $$f ; \
  89974. - done
  89975. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  89976. + echo " rm -f" $$list; \
  89977. + rm -f $$list || exit $$?; \
  89978. + test -n "$(EXEEXT)" || exit 0; \
  89979. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  89980. + echo " rm -f" $$list; \
  89981. + rm -f $$list
  89982. findlc$(EXEEXT): $(findlc_OBJECTS) $(findlc_DEPENDENCIES)
  89983. @rm -f findlc$(EXEEXT)
  89984. - $(LINK) $(findlc_LDFLAGS) $(findlc_OBJECTS) $(findlc_LDADD) $(LIBS)
  89985. + $(LINK) $(findlc_OBJECTS) $(findlc_LDADD) $(LIBS)
  89986. gen$(EXEEXT): $(gen_OBJECTS) $(gen_DEPENDENCIES)
  89987. @rm -f gen$(EXEEXT)
  89988. - $(LINK) $(gen_LDFLAGS) $(gen_OBJECTS) $(gen_LDADD) $(LIBS)
  89989. + $(LINK) $(gen_OBJECTS) $(gen_LDADD) $(LIBS)
  89990. gen.static$(EXEEXT): $(gen_static_OBJECTS) $(gen_static_DEPENDENCIES)
  89991. @rm -f gen.static$(EXEEXT)
  89992. - $(LINK) $(gen_static_LDFLAGS) $(gen_static_OBJECTS) $(gen_static_LDADD) $(LIBS)
  89993. + $(gen_static_LINK) $(gen_static_OBJECTS) $(gen_static_LDADD) $(LIBS)
  89994. spect$(EXEEXT): $(spect_OBJECTS) $(spect_DEPENDENCIES)
  89995. @rm -f spect$(EXEEXT)
  89996. - $(LINK) $(spect_LDFLAGS) $(spect_OBJECTS) $(spect_LDADD) $(LIBS)
  89997. + $(LINK) $(spect_OBJECTS) $(spect_LDADD) $(LIBS)
  89998. stat$(EXEEXT): $(stat_OBJECTS) $(stat_DEPENDENCIES)
  89999. @rm -f stat$(EXEEXT)
  90000. - $(LINK) $(stat_LDFLAGS) $(stat_OBJECTS) $(stat_LDADD) $(LIBS)
  90001. + $(LINK) $(stat_OBJECTS) $(stat_LDADD) $(LIBS)
  90002. t-iset$(EXEEXT): $(t_iset_OBJECTS) $(t_iset_DEPENDENCIES)
  90003. @rm -f t-iset$(EXEEXT)
  90004. - $(LINK) $(t_iset_LDFLAGS) $(t_iset_OBJECTS) $(t_iset_LDADD) $(LIBS)
  90005. + $(LINK) $(t_iset_OBJECTS) $(t_iset_LDADD) $(LIBS)
  90006. t-lc2exp$(EXEEXT): $(t_lc2exp_OBJECTS) $(t_lc2exp_DEPENDENCIES)
  90007. @rm -f t-lc2exp$(EXEEXT)
  90008. - $(LINK) $(t_lc2exp_LDFLAGS) $(t_lc2exp_OBJECTS) $(t_lc2exp_LDADD) $(LIBS)
  90009. + $(LINK) $(t_lc2exp_OBJECTS) $(t_lc2exp_LDADD) $(LIBS)
  90010. t-mt$(EXEEXT): $(t_mt_OBJECTS) $(t_mt_DEPENDENCIES)
  90011. @rm -f t-mt$(EXEEXT)
  90012. - $(LINK) $(t_mt_LDFLAGS) $(t_mt_OBJECTS) $(t_mt_LDADD) $(LIBS)
  90013. + $(LINK) $(t_mt_OBJECTS) $(t_mt_LDADD) $(LIBS)
  90014. t-rand$(EXEEXT): $(t_rand_OBJECTS) $(t_rand_DEPENDENCIES)
  90015. @rm -f t-rand$(EXEEXT)
  90016. - $(LINK) $(t_rand_LDFLAGS) $(t_rand_OBJECTS) $(t_rand_LDADD) $(LIBS)
  90017. + $(LINK) $(t_rand_OBJECTS) $(t_rand_LDADD) $(LIBS)
  90018. t-urbui$(EXEEXT): $(t_urbui_OBJECTS) $(t_urbui_DEPENDENCIES)
  90019. @rm -f t-urbui$(EXEEXT)
  90020. - $(LINK) $(t_urbui_LDFLAGS) $(t_urbui_OBJECTS) $(t_urbui_LDADD) $(LIBS)
  90021. + $(LINK) $(t_urbui_OBJECTS) $(t_urbui_LDADD) $(LIBS)
  90022. t-urmui$(EXEEXT): $(t_urmui_OBJECTS) $(t_urmui_DEPENDENCIES)
  90023. @rm -f t-urmui$(EXEEXT)
  90024. - $(LINK) $(t_urmui_LDFLAGS) $(t_urmui_OBJECTS) $(t_urmui_LDADD) $(LIBS)
  90025. + $(LINK) $(t_urmui_OBJECTS) $(t_urmui_LDADD) $(LIBS)
  90026. t-urndmm$(EXEEXT): $(t_urndmm_OBJECTS) $(t_urndmm_DEPENDENCIES)
  90027. @rm -f t-urndmm$(EXEEXT)
  90028. - $(LINK) $(t_urndmm_LDFLAGS) $(t_urndmm_OBJECTS) $(t_urndmm_LDADD) $(LIBS)
  90029. + $(LINK) $(t_urndmm_OBJECTS) $(t_urndmm_LDADD) $(LIBS)
  90030. mostlyclean-compile:
  90031. -rm -f *.$(OBJEXT)
  90032. @@ -388,7 +414,7 @@
  90033. distclean-compile:
  90034. -rm -f *.tab.c
  90035. $(top_builddir)/ansi2knr:
  90036. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  90037. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  90038. mostlyclean-kr:
  90039. -test "$U" = "" || rm -f *_.c
  90040. @@ -441,54 +467,54 @@
  90041. clean-libtool:
  90042. -rm -rf .libs _libs
  90043. -distclean-libtool:
  90044. - -rm -f libtool
  90045. -uninstall-info-am:
  90046. -
  90047. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  90048. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90049. unique=`for i in $$list; do \
  90050. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90051. done | \
  90052. - $(AWK) ' { files[$$0] = 1; } \
  90053. - END { for (i in files) print i; }'`; \
  90054. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90055. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90056. mkid -fID $$unique
  90057. tags: TAGS
  90058. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  90059. $(TAGS_FILES) $(LISP)
  90060. - tags=; \
  90061. + set x; \
  90062. here=`pwd`; \
  90063. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90064. unique=`for i in $$list; do \
  90065. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90066. done | \
  90067. - $(AWK) ' { files[$$0] = 1; } \
  90068. - END { for (i in files) print i; }'`; \
  90069. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  90070. - test -z "$$unique" && unique=$$empty_fix; \
  90071. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90072. - $$tags $$unique; \
  90073. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90074. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90075. + shift; \
  90076. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  90077. + test -n "$$unique" || unique=$$empty_fix; \
  90078. + if test $$# -gt 0; then \
  90079. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90080. + "$$@" $$unique; \
  90081. + else \
  90082. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90083. + $$unique; \
  90084. + fi; \
  90085. fi
  90086. ctags: CTAGS
  90087. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  90088. $(TAGS_FILES) $(LISP)
  90089. - tags=; \
  90090. - here=`pwd`; \
  90091. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90092. unique=`for i in $$list; do \
  90093. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90094. done | \
  90095. - $(AWK) ' { files[$$0] = 1; } \
  90096. - END { for (i in files) print i; }'`; \
  90097. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  90098. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90099. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90100. + test -z "$(CTAGS_ARGS)$$unique" \
  90101. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  90102. - $$tags $$unique
  90103. + $$unique
  90104. GTAGS:
  90105. here=`$(am__cd) $(top_builddir) && pwd` \
  90106. - && cd $(top_srcdir) \
  90107. - && gtags -i $(GTAGS_ARGS) $$here
  90108. + && $(am__cd) $(top_srcdir) \
  90109. + && gtags -i $(GTAGS_ARGS) "$$here"
  90110. distclean-tags:
  90111. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  90112. @@ -496,7 +522,8 @@
  90113. check-TESTS: $(TESTS)
  90114. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  90115. srcdir=$(srcdir); export srcdir; \
  90116. - list='$(TESTS)'; \
  90117. + list=' $(TESTS) '; \
  90118. + $(am__tty_colors); \
  90119. if test -n "$$list"; then \
  90120. for tst in $$list; do \
  90121. if test -f ./$$tst; then dir=./; \
  90122. @@ -505,91 +532,112 @@
  90123. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  90124. all=`expr $$all + 1`; \
  90125. case " $(XFAIL_TESTS) " in \
  90126. - *" $$tst "*) \
  90127. + *[\ \ ]$$tst[\ \ ]*) \
  90128. xpass=`expr $$xpass + 1`; \
  90129. failed=`expr $$failed + 1`; \
  90130. - echo "XPASS: $$tst"; \
  90131. + col=$$red; res=XPASS; \
  90132. ;; \
  90133. *) \
  90134. - echo "PASS: $$tst"; \
  90135. + col=$$grn; res=PASS; \
  90136. ;; \
  90137. esac; \
  90138. elif test $$? -ne 77; then \
  90139. all=`expr $$all + 1`; \
  90140. case " $(XFAIL_TESTS) " in \
  90141. - *" $$tst "*) \
  90142. + *[\ \ ]$$tst[\ \ ]*) \
  90143. xfail=`expr $$xfail + 1`; \
  90144. - echo "XFAIL: $$tst"; \
  90145. + col=$$lgn; res=XFAIL; \
  90146. ;; \
  90147. *) \
  90148. failed=`expr $$failed + 1`; \
  90149. - echo "FAIL: $$tst"; \
  90150. + col=$$red; res=FAIL; \
  90151. ;; \
  90152. esac; \
  90153. else \
  90154. skip=`expr $$skip + 1`; \
  90155. - echo "SKIP: $$tst"; \
  90156. + col=$$blu; res=SKIP; \
  90157. fi; \
  90158. + echo "$${col}$$res$${std}: $$tst"; \
  90159. done; \
  90160. + if test "$$all" -eq 1; then \
  90161. + tests="test"; \
  90162. + All=""; \
  90163. + else \
  90164. + tests="tests"; \
  90165. + All="All "; \
  90166. + fi; \
  90167. if test "$$failed" -eq 0; then \
  90168. if test "$$xfail" -eq 0; then \
  90169. - banner="All $$all tests passed"; \
  90170. + banner="$$All$$all $$tests passed"; \
  90171. else \
  90172. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  90173. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  90174. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  90175. fi; \
  90176. else \
  90177. if test "$$xpass" -eq 0; then \
  90178. - banner="$$failed of $$all tests failed"; \
  90179. + banner="$$failed of $$all $$tests failed"; \
  90180. else \
  90181. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  90182. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  90183. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  90184. fi; \
  90185. fi; \
  90186. dashes="$$banner"; \
  90187. skipped=""; \
  90188. if test "$$skip" -ne 0; then \
  90189. - skipped="($$skip tests were not run)"; \
  90190. - test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
  90191. + if test "$$skip" -eq 1; then \
  90192. + skipped="($$skip test was not run)"; \
  90193. + else \
  90194. + skipped="($$skip tests were not run)"; \
  90195. + fi; \
  90196. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  90197. dashes="$$skipped"; \
  90198. fi; \
  90199. report=""; \
  90200. if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  90201. report="Please report to $(PACKAGE_BUGREPORT)"; \
  90202. - test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
  90203. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  90204. dashes="$$report"; \
  90205. fi; \
  90206. dashes=`echo "$$dashes" | sed s/./=/g`; \
  90207. - echo "$$dashes"; \
  90208. + if test "$$failed" -eq 0; then \
  90209. + echo "$$grn$$dashes"; \
  90210. + else \
  90211. + echo "$$red$$dashes"; \
  90212. + fi; \
  90213. echo "$$banner"; \
  90214. - test -n "$$skipped" && echo "$$skipped"; \
  90215. - test -n "$$report" && echo "$$report"; \
  90216. - echo "$$dashes"; \
  90217. + test -z "$$skipped" || echo "$$skipped"; \
  90218. + test -z "$$report" || echo "$$report"; \
  90219. + echo "$$dashes$$std"; \
  90220. test "$$failed" -eq 0; \
  90221. else :; fi
  90222. distdir: $(DISTFILES)
  90223. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  90224. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  90225. - list='$(DISTFILES)'; for file in $$list; do \
  90226. - case $$file in \
  90227. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  90228. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  90229. - esac; \
  90230. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  90231. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  90232. + list='$(DISTFILES)'; \
  90233. + dist_files=`for file in $$list; do echo $$file; done | \
  90234. + sed -e "s|^$$srcdirstrip/||;t" \
  90235. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  90236. + case $$dist_files in \
  90237. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  90238. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  90239. + sort -u` ;; \
  90240. + esac; \
  90241. + for file in $$dist_files; do \
  90242. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  90243. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  90244. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  90245. - dir="/$$dir"; \
  90246. - $(mkdir_p) "$(distdir)$$dir"; \
  90247. - else \
  90248. - dir=''; \
  90249. - fi; \
  90250. if test -d $$d/$$file; then \
  90251. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  90252. + if test -d "$(distdir)/$$file"; then \
  90253. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  90254. + fi; \
  90255. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  90256. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  90257. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  90258. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  90259. fi; \
  90260. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  90261. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  90262. else \
  90263. - test -f $(distdir)/$$file \
  90264. - || cp -p $$d/$$file $(distdir)/$$file \
  90265. + test -f "$(distdir)/$$file" \
  90266. + || cp -p $$d/$$file "$(distdir)/$$file" \
  90267. || exit 1; \
  90268. fi; \
  90269. done
  90270. @@ -619,7 +667,8 @@
  90271. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  90272. distclean-generic:
  90273. - -rm -f $(CONFIG_CLEAN_FILES)
  90274. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  90275. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  90276. maintainer-clean-generic:
  90277. @echo "This command is intended for maintainers to use"
  90278. @@ -632,7 +681,7 @@
  90279. distclean: distclean-am
  90280. -rm -f Makefile
  90281. distclean-am: clean-am distclean-compile distclean-generic \
  90282. - distclean-libtool distclean-tags
  90283. + distclean-tags
  90284. dvi: dvi-am
  90285. @@ -640,18 +689,38 @@
  90286. html: html-am
  90287. +html-am:
  90288. +
  90289. info: info-am
  90290. info-am:
  90291. install-data-am:
  90292. +install-dvi: install-dvi-am
  90293. +
  90294. +install-dvi-am:
  90295. +
  90296. install-exec-am:
  90297. +install-html: install-html-am
  90298. +
  90299. +install-html-am:
  90300. +
  90301. install-info: install-info-am
  90302. +install-info-am:
  90303. +
  90304. install-man:
  90305. +install-pdf: install-pdf-am
  90306. +
  90307. +install-pdf-am:
  90308. +
  90309. +install-ps: install-ps-am
  90310. +
  90311. +install-ps-am:
  90312. +
  90313. installcheck-am:
  90314. maintainer-clean: maintainer-clean-am
  90315. @@ -671,19 +740,23 @@
  90316. ps-am:
  90317. -uninstall-am: uninstall-info-am
  90318. +uninstall-am:
  90319. +
  90320. +.MAKE: $(top_builddir)/ansi2knr check-am install-am install-strip
  90321. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  90322. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  90323. distclean distclean-compile distclean-generic \
  90324. distclean-libtool distclean-tags distdir dvi dvi-am html \
  90325. html-am info info-am install install-am install-data \
  90326. - install-data-am install-exec install-exec-am install-info \
  90327. - install-info-am install-man install-strip installcheck \
  90328. + install-data-am install-dvi install-dvi-am install-exec \
  90329. + install-exec-am install-html install-html-am install-info \
  90330. + install-info-am install-man install-pdf install-pdf-am \
  90331. + install-ps install-ps-am install-strip installcheck \
  90332. installcheck-am installdirs maintainer-clean \
  90333. maintainer-clean-generic mostlyclean mostlyclean-compile \
  90334. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  90335. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  90336. + pdf-am ps ps-am tags uninstall uninstall-am
  90337. allprogs: $(EXTRA_PROGRAMS)
  90338. @@ -736,6 +809,7 @@
  90339. | ./stat -2 1000 | grep '^K[mp]')
  90340. @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 \
  90341. | ./stat -2 1000 | grep '^K[mp]')
  90342. +
  90343. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  90344. # Otherwise a system limit (for SysV at least) may be exceeded.
  90345. .NOEXPORT:
  90346. diff -Nur gmp-4.3.2.orig/tune/Makefile.in gmp-4.3.2/tune/Makefile.in
  90347. --- gmp-4.3.2.orig/tune/Makefile.in 2010-01-07 21:09:44.000000000 +0100
  90348. +++ gmp-4.3.2/tune/Makefile.in 2011-02-16 19:23:20.973552360 +0100
  90349. @@ -1,8 +1,9 @@
  90350. -# Makefile.in generated by automake 1.8.4 from Makefile.am.
  90351. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  90352. # @configure_input@
  90353. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  90354. -# 2003, 2004 Free Software Foundation, Inc.
  90355. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  90356. +# Inc.
  90357. # This Makefile.in is free software; the Free Software Foundation
  90358. # gives unlimited permission to copy and/or distribute it,
  90359. # with or without modifications, as long as this notice is preserved.
  90360. @@ -49,17 +50,12 @@
  90361. # You should have received a copy of the GNU Lesser General Public License
  90362. # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
  90363. -SOURCES = $(libspeed_la_SOURCES) $(speed_SOURCES) $(speed_dynamic_SOURCES) $(speed_ext_SOURCES) $(tuneup_SOURCES) $(nodist_tuneup_SOURCES)
  90364. -
  90365. -srcdir = @srcdir@
  90366. -top_srcdir = @top_srcdir@
  90367. VPATH = @srcdir@
  90368. pkgdatadir = $(datadir)/@PACKAGE@
  90369. -pkglibdir = $(libdir)/@PACKAGE@
  90370. pkgincludedir = $(includedir)/@PACKAGE@
  90371. -top_builddir = ..
  90372. +pkglibdir = $(libdir)/@PACKAGE@
  90373. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  90374. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  90375. -INSTALL = @INSTALL@
  90376. install_sh_DATA = $(install_sh) -c -m 644
  90377. install_sh_PROGRAM = $(install_sh) -c
  90378. install_sh_SCRIPT = $(install_sh) -c
  90379. @@ -71,6 +67,7 @@
  90380. NORMAL_UNINSTALL = :
  90381. PRE_UNINSTALL = :
  90382. POST_UNINSTALL = :
  90383. +build_triplet = @build@
  90384. host_triplet = @host@
  90385. ANSI2KNR = $(top_builddir)/ansi2knr
  90386. EXTRA_PROGRAMS = speed$(EXEEXT) speed-dynamic$(EXEEXT) \
  90387. @@ -83,9 +80,10 @@
  90388. $(top_srcdir)/configure.in
  90389. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  90390. $(ACLOCAL_M4)
  90391. -mkinstalldirs = $(mkdir_p)
  90392. +mkinstalldirs = $(install_sh) -d
  90393. CONFIG_HEADER = $(top_builddir)/config.h
  90394. CONFIG_CLEAN_FILES =
  90395. +CONFIG_CLEAN_VPATH_FILES =
  90396. am__DEPENDENCIES_1 =
  90397. am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \
  90398. $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
  90399. @@ -97,19 +95,27 @@
  90400. pre_divrem_1$U.lo set_strb$U.lo set_strs$U.lo set_strp$U.lo \
  90401. time$U.lo sb_div$U.lo sb_inv$U.lo
  90402. libspeed_la_OBJECTS = $(am_libspeed_la_OBJECTS)
  90403. +libspeed_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  90404. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  90405. + $(libspeed_la_LDFLAGS) $(LDFLAGS) -o $@
  90406. am_speed_OBJECTS = speed$U.$(OBJEXT)
  90407. speed_OBJECTS = $(am_speed_OBJECTS)
  90408. speed_LDADD = $(LDADD)
  90409. -am__DEPENDENCIES_3 = libspeed.la
  90410. -speed_DEPENDENCIES = $(am__DEPENDENCIES_3)
  90411. +speed_DEPENDENCIES = $(DEPENDENCIES)
  90412. +speed_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  90413. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(speed_LDFLAGS) \
  90414. + $(LDFLAGS) -o $@
  90415. am_speed_dynamic_OBJECTS = speed$U.$(OBJEXT)
  90416. speed_dynamic_OBJECTS = $(am_speed_dynamic_OBJECTS)
  90417. speed_dynamic_LDADD = $(LDADD)
  90418. -speed_dynamic_DEPENDENCIES = $(am__DEPENDENCIES_3)
  90419. +speed_dynamic_DEPENDENCIES = $(DEPENDENCIES)
  90420. am_speed_ext_OBJECTS = speed-ext$U.$(OBJEXT)
  90421. speed_ext_OBJECTS = $(am_speed_ext_OBJECTS)
  90422. speed_ext_LDADD = $(LDADD)
  90423. -speed_ext_DEPENDENCIES = $(am__DEPENDENCIES_3)
  90424. +speed_ext_DEPENDENCIES = $(DEPENDENCIES)
  90425. +speed_ext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  90426. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  90427. + $(speed_ext_LDFLAGS) $(LDFLAGS) -o $@
  90428. am_tuneup_OBJECTS = tuneup$U.$(OBJEXT)
  90429. am__objects_1 = dc_divrem_n$U.$(OBJEXT) divrem_2$U.$(OBJEXT) \
  90430. gcd$U.$(OBJEXT) gcdext$U.$(OBJEXT) get_str$U.$(OBJEXT) \
  90431. @@ -121,18 +127,22 @@
  90432. mod_1$U.$(OBJEXT)
  90433. nodist_tuneup_OBJECTS = sqr_basecase$U.$(OBJEXT) $(am__objects_2)
  90434. tuneup_OBJECTS = $(am_tuneup_OBJECTS) $(nodist_tuneup_OBJECTS)
  90435. -am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1) libspeed.la
  90436. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  90437. +am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) libspeed.la
  90438. +tuneup_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  90439. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(tuneup_LDFLAGS) \
  90440. + $(LDFLAGS) -o $@
  90441. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  90442. depcomp =
  90443. am__depfiles_maybe =
  90444. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  90445. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  90446. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  90447. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  90448. - $(AM_CFLAGS) $(CFLAGS)
  90449. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  90450. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  90451. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  90452. CCLD = $(CC)
  90453. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  90454. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  90455. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  90456. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  90457. + $(LDFLAGS) -o $@
  90458. SOURCES = $(libspeed_la_SOURCES) $(speed_SOURCES) \
  90459. $(speed_dynamic_SOURCES) $(speed_ext_SOURCES) \
  90460. $(tuneup_SOURCES) $(nodist_tuneup_SOURCES)
  90461. @@ -169,15 +179,17 @@
  90462. DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
  90463. DEFS = @DEFS@
  90464. DLLTOOL = @DLLTOOL@
  90465. -ECHO = @ECHO@
  90466. +DSYMUTIL = @DSYMUTIL@
  90467. +DUMPBIN = @DUMPBIN@
  90468. ECHO_C = @ECHO_C@
  90469. ECHO_N = @ECHO_N@
  90470. ECHO_T = @ECHO_T@
  90471. EGREP = @EGREP@
  90472. -ENABLE_STATIC_FALSE = @ENABLE_STATIC_FALSE@
  90473. -ENABLE_STATIC_TRUE = @ENABLE_STATIC_TRUE@
  90474. EXEEXT = @EXEEXT@
  90475. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  90476. +F77 = @F77@
  90477. +FFLAGS = @FFLAGS@
  90478. +FGREP = @FGREP@
  90479. GMP_LDFLAGS = @GMP_LDFLAGS@
  90480. GMP_NAIL_BITS = @GMP_NAIL_BITS@
  90481. GREP = @GREP@
  90482. @@ -192,10 +204,12 @@
  90483. HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
  90484. HAVE_STACK_T_01 = @HAVE_STACK_T_01@
  90485. HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
  90486. +INSTALL = @INSTALL@
  90487. INSTALL_DATA = @INSTALL_DATA@
  90488. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  90489. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  90490. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  90491. +LD = @LD@
  90492. LDFLAGS = @LDFLAGS@
  90493. LEX = @LEX@
  90494. LEXLIB = @LEXLIB@
  90495. @@ -210,20 +224,25 @@
  90496. LIBREADLINE = @LIBREADLINE@
  90497. LIBS = @LIBS@
  90498. LIBTOOL = @LIBTOOL@
  90499. +LIPO = @LIPO@
  90500. LN_S = @LN_S@
  90501. LTLIBOBJS = @LTLIBOBJS@
  90502. M4 = @M4@
  90503. MAINT = @MAINT@
  90504. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  90505. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  90506. MAKEINFO = @MAKEINFO@
  90507. +MKDIR_P = @MKDIR_P@
  90508. +NM = @NM@
  90509. +NMEDIT = @NMEDIT@
  90510. OBJDUMP = @OBJDUMP@
  90511. OBJEXT = @OBJEXT@
  90512. +OTOOL = @OTOOL@
  90513. +OTOOL64 = @OTOOL64@
  90514. PACKAGE = @PACKAGE@
  90515. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  90516. PACKAGE_NAME = @PACKAGE_NAME@
  90517. PACKAGE_STRING = @PACKAGE_STRING@
  90518. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  90519. +PACKAGE_URL = @PACKAGE_URL@
  90520. PACKAGE_VERSION = @PACKAGE_VERSION@
  90521. PATH_SEPARATOR = @PATH_SEPARATOR@
  90522. RANLIB = @RANLIB@
  90523. @@ -237,22 +256,27 @@
  90524. U = @U@
  90525. U_FOR_BUILD = @U_FOR_BUILD@
  90526. VERSION = @VERSION@
  90527. -WANT_CXX_FALSE = @WANT_CXX_FALSE@
  90528. -WANT_CXX_TRUE = @WANT_CXX_TRUE@
  90529. -WANT_MPBSD_FALSE = @WANT_MPBSD_FALSE@
  90530. -WANT_MPBSD_TRUE = @WANT_MPBSD_TRUE@
  90531. WITH_READLINE_01 = @WITH_READLINE_01@
  90532. YACC = @YACC@
  90533. YFLAGS = @YFLAGS@
  90534. +abs_builddir = @abs_builddir@
  90535. +abs_srcdir = @abs_srcdir@
  90536. +abs_top_builddir = @abs_top_builddir@
  90537. +abs_top_srcdir = @abs_top_srcdir@
  90538. ac_ct_CC = @ac_ct_CC@
  90539. ac_ct_CXX = @ac_ct_CXX@
  90540. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  90541. +ac_ct_F77 = @ac_ct_F77@
  90542. am__leading_dot = @am__leading_dot@
  90543. +am__tar = @am__tar@
  90544. +am__untar = @am__untar@
  90545. bindir = @bindir@
  90546. build = @build@
  90547. build_alias = @build_alias@
  90548. build_cpu = @build_cpu@
  90549. build_os = @build_os@
  90550. build_vendor = @build_vendor@
  90551. +builddir = @builddir@
  90552. datadir = @datadir@
  90553. datarootdir = @datarootdir@
  90554. docdir = @docdir@
  90555. @@ -272,6 +296,7 @@
  90556. libexecdir = @libexecdir@
  90557. localedir = @localedir@
  90558. localstatedir = @localstatedir@
  90559. +lt_ECHO = @lt_ECHO@
  90560. mandir = @mandir@
  90561. mkdir_p = @mkdir_p@
  90562. mpn_objects = @mpn_objects@
  90563. @@ -284,8 +309,12 @@
  90564. psdir = @psdir@
  90565. sbindir = @sbindir@
  90566. sharedstatedir = @sharedstatedir@
  90567. +srcdir = @srcdir@
  90568. sysconfdir = @sysconfdir@
  90569. target_alias = @target_alias@
  90570. +top_build_prefix = @top_build_prefix@
  90571. +top_builddir = @top_builddir@
  90572. +top_srcdir = @top_srcdir@
  90573. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
  90574. EXTRA_DIST = alpha.asm pentium.asm sparcv9.asm hppa.asm hppa2.asm hppa2w.asm \
  90575. ia64.asm powerpc.asm powerpc64.asm x86_64.asm many.pl
  90576. @@ -399,14 +428,14 @@
  90577. @for dep in $?; do \
  90578. case '$(am__configure_deps)' in \
  90579. *$$dep*) \
  90580. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  90581. - && exit 0; \
  90582. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  90583. + && { if test -f $@; then exit 0; else break; fi; }; \
  90584. exit 1;; \
  90585. esac; \
  90586. done; \
  90587. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tune/Makefile'; \
  90588. - cd $(top_srcdir) && \
  90589. - $(AUTOMAKE) --gnu --ignore-deps tune/Makefile
  90590. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tune/Makefile'; \
  90591. + $(am__cd) $(top_srcdir) && \
  90592. + $(AUTOMAKE) --gnu --ignore-deps tune/Makefile
  90593. .PRECIOUS: Makefile
  90594. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  90595. @case '$?' in \
  90596. @@ -424,20 +453,21 @@
  90597. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  90598. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  90599. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  90600. +$(am__aclocal_m4_deps):
  90601. libspeed.la: $(libspeed_la_OBJECTS) $(libspeed_la_DEPENDENCIES)
  90602. - $(LINK) $(libspeed_la_LDFLAGS) $(libspeed_la_OBJECTS) $(libspeed_la_LIBADD) $(LIBS)
  90603. + $(libspeed_la_LINK) $(libspeed_la_OBJECTS) $(libspeed_la_LIBADD) $(LIBS)
  90604. speed$(EXEEXT): $(speed_OBJECTS) $(speed_DEPENDENCIES)
  90605. @rm -f speed$(EXEEXT)
  90606. - $(LINK) $(speed_LDFLAGS) $(speed_OBJECTS) $(speed_LDADD) $(LIBS)
  90607. + $(speed_LINK) $(speed_OBJECTS) $(speed_LDADD) $(LIBS)
  90608. speed-dynamic$(EXEEXT): $(speed_dynamic_OBJECTS) $(speed_dynamic_DEPENDENCIES)
  90609. @rm -f speed-dynamic$(EXEEXT)
  90610. - $(LINK) $(speed_dynamic_LDFLAGS) $(speed_dynamic_OBJECTS) $(speed_dynamic_LDADD) $(LIBS)
  90611. + $(LINK) $(speed_dynamic_OBJECTS) $(speed_dynamic_LDADD) $(LIBS)
  90612. speed-ext$(EXEEXT): $(speed_ext_OBJECTS) $(speed_ext_DEPENDENCIES)
  90613. @rm -f speed-ext$(EXEEXT)
  90614. - $(LINK) $(speed_ext_LDFLAGS) $(speed_ext_OBJECTS) $(speed_ext_LDADD) $(LIBS)
  90615. + $(speed_ext_LINK) $(speed_ext_OBJECTS) $(speed_ext_LDADD) $(LIBS)
  90616. tuneup$(EXEEXT): $(tuneup_OBJECTS) $(tuneup_DEPENDENCIES)
  90617. @rm -f tuneup$(EXEEXT)
  90618. - $(LINK) $(tuneup_LDFLAGS) $(tuneup_OBJECTS) $(tuneup_LDADD) $(LIBS)
  90619. + $(tuneup_LINK) $(tuneup_OBJECTS) $(tuneup_LDADD) $(LIBS)
  90620. mostlyclean-compile:
  90621. -rm -f *.$(OBJEXT)
  90622. @@ -445,7 +475,7 @@
  90623. distclean-compile:
  90624. -rm -f *.tab.c
  90625. $(top_builddir)/ansi2knr:
  90626. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  90627. + $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
  90628. mostlyclean-kr:
  90629. -test "$U" = "" || rm -f *_.c
  90630. @@ -586,83 +616,85 @@
  90631. clean-libtool:
  90632. -rm -rf .libs _libs
  90633. -distclean-libtool:
  90634. - -rm -f libtool
  90635. -uninstall-info-am:
  90636. -
  90637. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  90638. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90639. unique=`for i in $$list; do \
  90640. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90641. done | \
  90642. - $(AWK) ' { files[$$0] = 1; } \
  90643. - END { for (i in files) print i; }'`; \
  90644. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90645. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90646. mkid -fID $$unique
  90647. tags: TAGS
  90648. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  90649. $(TAGS_FILES) $(LISP)
  90650. - tags=; \
  90651. + set x; \
  90652. here=`pwd`; \
  90653. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90654. unique=`for i in $$list; do \
  90655. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90656. done | \
  90657. - $(AWK) ' { files[$$0] = 1; } \
  90658. - END { for (i in files) print i; }'`; \
  90659. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  90660. - test -z "$$unique" && unique=$$empty_fix; \
  90661. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90662. - $$tags $$unique; \
  90663. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90664. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90665. + shift; \
  90666. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  90667. + test -n "$$unique" || unique=$$empty_fix; \
  90668. + if test $$# -gt 0; then \
  90669. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90670. + "$$@" $$unique; \
  90671. + else \
  90672. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  90673. + $$unique; \
  90674. + fi; \
  90675. fi
  90676. ctags: CTAGS
  90677. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  90678. $(TAGS_FILES) $(LISP)
  90679. - tags=; \
  90680. - here=`pwd`; \
  90681. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  90682. unique=`for i in $$list; do \
  90683. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  90684. done | \
  90685. - $(AWK) ' { files[$$0] = 1; } \
  90686. - END { for (i in files) print i; }'`; \
  90687. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  90688. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  90689. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  90690. + test -z "$(CTAGS_ARGS)$$unique" \
  90691. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  90692. - $$tags $$unique
  90693. + $$unique
  90694. GTAGS:
  90695. here=`$(am__cd) $(top_builddir) && pwd` \
  90696. - && cd $(top_srcdir) \
  90697. - && gtags -i $(GTAGS_ARGS) $$here
  90698. + && $(am__cd) $(top_srcdir) \
  90699. + && gtags -i $(GTAGS_ARGS) "$$here"
  90700. distclean-tags:
  90701. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  90702. distdir: $(DISTFILES)
  90703. - $(mkdir_p) $(distdir)/../mpn
  90704. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  90705. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  90706. - list='$(DISTFILES)'; for file in $$list; do \
  90707. - case $$file in \
  90708. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  90709. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  90710. - esac; \
  90711. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  90712. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  90713. + list='$(DISTFILES)'; \
  90714. + dist_files=`for file in $$list; do echo $$file; done | \
  90715. + sed -e "s|^$$srcdirstrip/||;t" \
  90716. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  90717. + case $$dist_files in \
  90718. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  90719. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  90720. + sort -u` ;; \
  90721. + esac; \
  90722. + for file in $$dist_files; do \
  90723. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  90724. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  90725. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  90726. - dir="/$$dir"; \
  90727. - $(mkdir_p) "$(distdir)$$dir"; \
  90728. - else \
  90729. - dir=''; \
  90730. - fi; \
  90731. if test -d $$d/$$file; then \
  90732. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  90733. + if test -d "$(distdir)/$$file"; then \
  90734. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  90735. + fi; \
  90736. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  90737. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  90738. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  90739. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  90740. fi; \
  90741. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  90742. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  90743. else \
  90744. - test -f $(distdir)/$$file \
  90745. - || cp -p $$d/$$file $(distdir)/$$file \
  90746. + test -f "$(distdir)/$$file" \
  90747. + || cp -p $$d/$$file "$(distdir)/$$file" \
  90748. || exit 1; \
  90749. fi; \
  90750. done
  90751. @@ -690,7 +722,8 @@
  90752. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  90753. distclean-generic:
  90754. - -rm -f $(CONFIG_CLEAN_FILES)
  90755. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  90756. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  90757. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  90758. maintainer-clean-generic:
  90759. @@ -703,7 +736,7 @@
  90760. distclean: distclean-am
  90761. -rm -f Makefile
  90762. distclean-am: clean-am distclean-compile distclean-generic \
  90763. - distclean-libtool distclean-tags
  90764. + distclean-tags
  90765. dvi: dvi-am
  90766. @@ -711,18 +744,38 @@
  90767. html: html-am
  90768. +html-am:
  90769. +
  90770. info: info-am
  90771. info-am:
  90772. install-data-am:
  90773. +install-dvi: install-dvi-am
  90774. +
  90775. +install-dvi-am:
  90776. +
  90777. install-exec-am:
  90778. +install-html: install-html-am
  90779. +
  90780. +install-html-am:
  90781. +
  90782. install-info: install-info-am
  90783. +install-info-am:
  90784. +
  90785. install-man:
  90786. +install-pdf: install-pdf-am
  90787. +
  90788. +install-pdf-am:
  90789. +
  90790. +install-ps: install-ps-am
  90791. +
  90792. +install-ps-am:
  90793. +
  90794. installcheck-am:
  90795. maintainer-clean: maintainer-clean-am
  90796. @@ -742,18 +795,22 @@
  90797. ps-am:
  90798. -uninstall-am: uninstall-info-am
  90799. +uninstall-am:
  90800. +
  90801. +.MAKE: $(top_builddir)/ansi2knr install-am install-strip
  90802. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  90803. clean-libtool ctags distclean distclean-compile \
  90804. distclean-generic distclean-libtool distclean-tags distdir dvi \
  90805. dvi-am html html-am info info-am install install-am \
  90806. - install-data install-data-am install-exec install-exec-am \
  90807. - install-info install-info-am install-man install-strip \
  90808. + install-data install-data-am install-dvi install-dvi-am \
  90809. + install-exec install-exec-am install-html install-html-am \
  90810. + install-info install-info-am install-man install-pdf \
  90811. + install-pdf-am install-ps install-ps-am install-strip \
  90812. installcheck installcheck-am installdirs maintainer-clean \
  90813. maintainer-clean-generic mostlyclean mostlyclean-compile \
  90814. mostlyclean-generic mostlyclean-kr mostlyclean-libtool pdf \
  90815. - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
  90816. + pdf-am ps ps-am tags uninstall uninstall-am
  90817. $(top_builddir)/tests/libtests.la:
  90818. @@ -885,6 +942,7 @@
  90819. graph:
  90820. ./speed -s 1-5000 -f 1.02 -P graph mpn_mul_n mpn_sqr
  90821. gnuplot graph.gnuplot
  90822. +
  90823. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  90824. # Otherwise a system limit (for SysV at least) may be exceeded.
  90825. .NOEXPORT:
  90826. diff -Nur gmp-4.3.2.orig/ylwrap gmp-4.3.2/ylwrap
  90827. --- gmp-4.3.2.orig/ylwrap 1970-01-01 01:00:00.000000000 +0100
  90828. +++ gmp-4.3.2/ylwrap 2011-02-16 19:23:19.753562827 +0100
  90829. @@ -0,0 +1,222 @@
  90830. +#! /bin/sh
  90831. +# ylwrap - wrapper for lex/yacc invocations.
  90832. +
  90833. +scriptversion=2009-04-28.21; # UTC
  90834. +
  90835. +# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
  90836. +# 2007, 2009 Free Software Foundation, Inc.
  90837. +#
  90838. +# Written by Tom Tromey <tromey@cygnus.com>.
  90839. +#
  90840. +# This program is free software; you can redistribute it and/or modify
  90841. +# it under the terms of the GNU General Public License as published by
  90842. +# the Free Software Foundation; either version 2, or (at your option)
  90843. +# any later version.
  90844. +#
  90845. +# This program is distributed in the hope that it will be useful,
  90846. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  90847. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  90848. +# GNU General Public License for more details.
  90849. +#
  90850. +# You should have received a copy of the GNU General Public License
  90851. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  90852. +
  90853. +# As a special exception to the GNU General Public License, if you
  90854. +# distribute this file as part of a program that contains a
  90855. +# configuration script generated by Autoconf, you may include it under
  90856. +# the same distribution terms that you use for the rest of that program.
  90857. +
  90858. +# This file is maintained in Automake, please report
  90859. +# bugs to <bug-automake@gnu.org> or send patches to
  90860. +# <automake-patches@gnu.org>.
  90861. +
  90862. +case "$1" in
  90863. + '')
  90864. + echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
  90865. + exit 1
  90866. + ;;
  90867. + --basedir)
  90868. + basedir=$2
  90869. + shift 2
  90870. + ;;
  90871. + -h|--h*)
  90872. + cat <<\EOF
  90873. +Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
  90874. +
  90875. +Wrapper for lex/yacc invocations, renaming files as desired.
  90876. +
  90877. + INPUT is the input file
  90878. + OUTPUT is one file PROG generates
  90879. + DESIRED is the file we actually want instead of OUTPUT
  90880. + PROGRAM is program to run
  90881. + ARGS are passed to PROG
  90882. +
  90883. +Any number of OUTPUT,DESIRED pairs may be used.
  90884. +
  90885. +Report bugs to <bug-automake@gnu.org>.
  90886. +EOF
  90887. + exit $?
  90888. + ;;
  90889. + -v|--v*)
  90890. + echo "ylwrap $scriptversion"
  90891. + exit $?
  90892. + ;;
  90893. +esac
  90894. +
  90895. +
  90896. +# The input.
  90897. +input="$1"
  90898. +shift
  90899. +case "$input" in
  90900. + [\\/]* | ?:[\\/]*)
  90901. + # Absolute path; do nothing.
  90902. + ;;
  90903. + *)
  90904. + # Relative path. Make it absolute.
  90905. + input="`pwd`/$input"
  90906. + ;;
  90907. +esac
  90908. +
  90909. +pairlist=
  90910. +while test "$#" -ne 0; do
  90911. + if test "$1" = "--"; then
  90912. + shift
  90913. + break
  90914. + fi
  90915. + pairlist="$pairlist $1"
  90916. + shift
  90917. +done
  90918. +
  90919. +# The program to run.
  90920. +prog="$1"
  90921. +shift
  90922. +# Make any relative path in $prog absolute.
  90923. +case "$prog" in
  90924. + [\\/]* | ?:[\\/]*) ;;
  90925. + *[\\/]*) prog="`pwd`/$prog" ;;
  90926. +esac
  90927. +
  90928. +# FIXME: add hostname here for parallel makes that run commands on
  90929. +# other machines. But that might take us over the 14-char limit.
  90930. +dirname=ylwrap$$
  90931. +trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
  90932. +mkdir $dirname || exit 1
  90933. +
  90934. +cd $dirname
  90935. +
  90936. +case $# in
  90937. + 0) "$prog" "$input" ;;
  90938. + *) "$prog" "$@" "$input" ;;
  90939. +esac
  90940. +ret=$?
  90941. +
  90942. +if test $ret -eq 0; then
  90943. + set X $pairlist
  90944. + shift
  90945. + first=yes
  90946. + # Since DOS filename conventions don't allow two dots,
  90947. + # the DOS version of Bison writes out y_tab.c instead of y.tab.c
  90948. + # and y_tab.h instead of y.tab.h. Test to see if this is the case.
  90949. + y_tab_nodot="no"
  90950. + if test -f y_tab.c || test -f y_tab.h; then
  90951. + y_tab_nodot="yes"
  90952. + fi
  90953. +
  90954. + # The directory holding the input.
  90955. + input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
  90956. + # Quote $INPUT_DIR so we can use it in a regexp.
  90957. + # FIXME: really we should care about more than `.' and `\'.
  90958. + input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
  90959. +
  90960. + while test "$#" -ne 0; do
  90961. + from="$1"
  90962. + # Handle y_tab.c and y_tab.h output by DOS
  90963. + if test $y_tab_nodot = "yes"; then
  90964. + if test $from = "y.tab.c"; then
  90965. + from="y_tab.c"
  90966. + else
  90967. + if test $from = "y.tab.h"; then
  90968. + from="y_tab.h"
  90969. + fi
  90970. + fi
  90971. + fi
  90972. + if test -f "$from"; then
  90973. + # If $2 is an absolute path name, then just use that,
  90974. + # otherwise prepend `../'.
  90975. + case "$2" in
  90976. + [\\/]* | ?:[\\/]*) target="$2";;
  90977. + *) target="../$2";;
  90978. + esac
  90979. +
  90980. + # We do not want to overwrite a header file if it hasn't
  90981. + # changed. This avoid useless recompilations. However the
  90982. + # parser itself (the first file) should always be updated,
  90983. + # because it is the destination of the .y.c rule in the
  90984. + # Makefile. Divert the output of all other files to a temporary
  90985. + # file so we can compare them to existing versions.
  90986. + if test $first = no; then
  90987. + realtarget="$target"
  90988. + target="tmp-`echo $target | sed s/.*[\\/]//g`"
  90989. + fi
  90990. + # Edit out `#line' or `#' directives.
  90991. + #
  90992. + # We don't want the resulting debug information to point at
  90993. + # an absolute srcdir; it is better for it to just mention the
  90994. + # .y file with no path.
  90995. + #
  90996. + # We want to use the real output file name, not yy.lex.c for
  90997. + # instance.
  90998. + #
  90999. + # We want the include guards to be adjusted too.
  91000. + FROM=`echo "$from" | sed \
  91001. + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
  91002. + -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
  91003. + TARGET=`echo "$2" | sed \
  91004. + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
  91005. + -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
  91006. +
  91007. + sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
  91008. + -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
  91009. +
  91010. + # Check whether header files must be updated.
  91011. + if test $first = no; then
  91012. + if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
  91013. + echo "$2" is unchanged
  91014. + rm -f "$target"
  91015. + else
  91016. + echo updating "$2"
  91017. + mv -f "$target" "$realtarget"
  91018. + fi
  91019. + fi
  91020. + else
  91021. + # A missing file is only an error for the first file. This
  91022. + # is a blatant hack to let us support using "yacc -d". If -d
  91023. + # is not specified, we don't want an error when the header
  91024. + # file is "missing".
  91025. + if test $first = yes; then
  91026. + ret=1
  91027. + fi
  91028. + fi
  91029. + shift
  91030. + shift
  91031. + first=no
  91032. + done
  91033. +else
  91034. + ret=$?
  91035. +fi
  91036. +
  91037. +# Remove the directory.
  91038. +cd ..
  91039. +rm -rf $dirname
  91040. +
  91041. +exit $ret
  91042. +
  91043. +# Local Variables:
  91044. +# mode: shell-script
  91045. +# sh-indentation: 2
  91046. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  91047. +# time-stamp-start: "scriptversion="
  91048. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  91049. +# time-stamp-time-zone: "UTC"
  91050. +# time-stamp-end: "; # UTC"
  91051. +# End: