autotool.patch 2.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur audiofile-0.2.7.orig/aclocal.m4 audiofile-0.2.7/aclocal.m4
  6. --- audiofile-0.2.7.orig/aclocal.m4 2010-03-22 06:45:32.000000000 +0100
  7. +++ audiofile-0.2.7/aclocal.m4 2011-02-24 20:00:32.544806265 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.4 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  12. -# Free Software Foundation, Inc.
  13. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  14. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. # This file is free software; the Free Software Foundation
  16. # gives unlimited permission to copy and/or distribute it,
  17. # with or without modifications, as long as this notice is preserved.
  18. @@ -11,103 +11,196 @@
  19. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. # PARTICULAR PURPOSE.
  21. +m4_ifndef([AC_AUTOCONF_VERSION],
  22. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  23. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  24. +[m4_warning([this file was generated for autoconf 2.65.
  25. +You have another version of autoconf. It may work, but is not guaranteed to.
  26. +If you have problems, you may need to regenerate the build system entirely.
  27. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  28. +
  29. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  30. +#
  31. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  32. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33. +# Written by Gordon Matzigkeit, 1996
  34. +#
  35. +# This file is free software; the Free Software Foundation gives
  36. +# unlimited permission to copy and/or distribute it, with or without
  37. +# modifications, as long as this notice is preserved.
  38. +
  39. +m4_define([_LT_COPYING], [dnl
  40. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42. +# Written by Gordon Matzigkeit, 1996
  43. +#
  44. +# This file is part of GNU Libtool.
  45. +#
  46. +# GNU Libtool is free software; you can redistribute it and/or
  47. +# modify it under the terms of the GNU General Public License as
  48. +# published by the Free Software Foundation; either version 2 of
  49. +# the License, or (at your option) any later version.
  50. +#
  51. +# As a special exception to the GNU General Public License,
  52. +# if you distribute this file as part of a program or library that
  53. +# is built using GNU Libtool, you may include this file under the
  54. +# same distribution terms that you use for the rest of that program.
  55. +#
  56. +# GNU Libtool is distributed in the hope that it will be useful,
  57. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  58. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  59. +# GNU General Public License for more details.
  60. +#
  61. +# You should have received a copy of the GNU General Public License
  62. +# along with GNU Libtool; see the file COPYING. If not, a copy
  63. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  64. +# obtained by writing to the Free Software Foundation, Inc.,
  65. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  66. +])
  67. -# serial 47 AC_PROG_LIBTOOL
  68. +# serial 56 LT_INIT
  69. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  70. -# -----------------------------------------------------------
  71. -# If this macro is not defined by Autoconf, define it here.
  72. -m4_ifdef([AC_PROVIDE_IFELSE],
  73. - [],
  74. - [m4_define([AC_PROVIDE_IFELSE],
  75. - [m4_ifdef([AC_PROVIDE_$1],
  76. - [$2], [$3])])])
  77. +# LT_PREREQ(VERSION)
  78. +# ------------------
  79. +# Complain and exit if this libtool version is less that VERSION.
  80. +m4_defun([LT_PREREQ],
  81. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  82. + [m4_default([$3],
  83. + [m4_fatal([Libtool version $1 or higher is required],
  84. + 63)])],
  85. + [$2])])
  86. -# AC_PROG_LIBTOOL
  87. -# ---------------
  88. -AC_DEFUN([AC_PROG_LIBTOOL],
  89. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  90. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  91. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  92. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  93. - [AC_LIBTOOL_CXX],
  94. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  95. - ])])
  96. -dnl And a similar setup for Fortran 77 support
  97. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  98. - [AC_LIBTOOL_F77],
  99. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  100. -])])
  101. -
  102. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  103. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  104. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  105. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  110. - [AC_LIBTOOL_GCJ],
  111. - [ifdef([AC_PROG_GCJ],
  112. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([A][M_PROG_GCJ],
  114. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  115. - ifdef([LT_AC_PROG_GCJ],
  116. - [define([LT_AC_PROG_GCJ],
  117. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  118. -])])# AC_PROG_LIBTOOL
  119. +# _LT_CHECK_BUILDDIR
  120. +# ------------------
  121. +# Complain if the absolute build directory name contains unusual characters
  122. +m4_defun([_LT_CHECK_BUILDDIR],
  123. +[case `pwd` in
  124. + *\ * | *\ *)
  125. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  126. +esac
  127. +])
  128. -# _AC_PROG_LIBTOOL
  129. -# ----------------
  130. -AC_DEFUN([_AC_PROG_LIBTOOL],
  131. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  134. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  135. +# LT_INIT([OPTIONS])
  136. +# ------------------
  137. +AC_DEFUN([LT_INIT],
  138. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  139. +AC_BEFORE([$0], [LT_LANG])dnl
  140. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  141. +AC_BEFORE([$0], [LTDL_INIT])dnl
  142. +m4_require([_LT_CHECK_BUILDDIR])dnl
  143. +
  144. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  145. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  146. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  147. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  148. +dnl unless we require an AC_DEFUNed macro:
  149. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  150. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  151. +AC_REQUIRE([LTVERSION_VERSION])dnl
  152. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  153. +m4_require([_LT_PROG_LTMAIN])dnl
  154. +
  155. +dnl Parse OPTIONS
  156. +_LT_SET_OPTIONS([$0], [$1])
  157. # This can be used to rebuild libtool when needed
  158. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  159. +LIBTOOL_DEPS="$ltmain"
  160. # Always use our own libtool.
  161. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  162. AC_SUBST(LIBTOOL)dnl
  163. -# Prevent multiple expansion
  164. -define([AC_PROG_LIBTOOL], [])
  165. -])# _AC_PROG_LIBTOOL
  166. +_LT_SETUP
  167. +# Only expand once:
  168. +m4_define([LT_INIT])
  169. +])# LT_INIT
  170. -# AC_LIBTOOL_SETUP
  171. -# ----------------
  172. -AC_DEFUN([AC_LIBTOOL_SETUP],
  173. -[AC_PREREQ(2.50)dnl
  174. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  175. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  176. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  177. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  178. +# Old names:
  179. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  180. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  181. +dnl aclocal-1.4 backwards compatibility:
  182. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  183. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  184. +
  185. +
  186. +# _LT_CC_BASENAME(CC)
  187. +# -------------------
  188. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  189. +m4_defun([_LT_CC_BASENAME],
  190. +[for cc_temp in $1""; do
  191. + case $cc_temp in
  192. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  193. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  194. + \-*) ;;
  195. + *) break;;
  196. + esac
  197. +done
  198. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  199. +])
  200. +
  201. +
  202. +# _LT_FILEUTILS_DEFAULTS
  203. +# ----------------------
  204. +# It is okay to use these file commands and assume they have been set
  205. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  206. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  207. +[: ${CP="cp -f"}
  208. +: ${MV="mv -f"}
  209. +: ${RM="rm -f"}
  210. +])# _LT_FILEUTILS_DEFAULTS
  211. +
  212. +
  213. +# _LT_SETUP
  214. +# ---------
  215. +m4_defun([_LT_SETUP],
  216. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  217. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  218. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  219. +_LT_DECL([], [host], [0])dnl
  220. +_LT_DECL([], [host_os], [0])dnl
  221. +dnl
  222. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  223. +_LT_DECL([], [build], [0])dnl
  224. +_LT_DECL([], [build_os], [0])dnl
  225. +dnl
  226. AC_REQUIRE([AC_PROG_CC])dnl
  227. -AC_REQUIRE([AC_PROG_LD])dnl
  228. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  229. -AC_REQUIRE([AC_PROG_NM])dnl
  230. -
  231. +AC_REQUIRE([LT_PATH_LD])dnl
  232. +AC_REQUIRE([LT_PATH_NM])dnl
  233. +dnl
  234. AC_REQUIRE([AC_PROG_LN_S])dnl
  235. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  236. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  237. -AC_REQUIRE([AC_OBJEXT])dnl
  238. -AC_REQUIRE([AC_EXEEXT])dnl
  239. +test -z "$LN_S" && LN_S="ln -s"
  240. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  241. +dnl
  242. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  243. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  244. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  245. dnl
  246. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  247. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  248. +m4_require([_LT_CMD_RELOAD])dnl
  249. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  250. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  251. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  252. +
  253. +_LT_CONFIG_LIBTOOL_INIT([
  254. +# See if we are running on zsh, and set the options which allow our
  255. +# commands through without removal of \ escapes INIT.
  256. +if test -n "\${ZSH_VERSION+set}" ; then
  257. + setopt NO_GLOB_SUBST
  258. +fi
  259. +])
  260. +if test -n "${ZSH_VERSION+set}" ; then
  261. + setopt NO_GLOB_SUBST
  262. +fi
  263. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  264. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  265. -AC_LIBTOOL_OBJDIR
  266. +_LT_CHECK_OBJDIR
  267. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  268. -_LT_AC_PROG_ECHO_BACKSLASH
  269. +m4_require([_LT_TAG_COMPILER])dnl
  270. +_LT_PROG_ECHO_BACKSLASH
  271. case $host_os in
  272. aix3*)
  273. @@ -123,5908 +216,7818 @@
  274. # Sed substitution that helps us do robust quoting. It backslashifies
  275. # metacharacters that are still active within double-quoted strings.
  276. -Xsed='sed -e s/^X//'
  277. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  278. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  279. # Same as above, but do not quote variable references.
  280. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  281. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  282. # Sed substitution to delay expansion of an escaped shell variable in a
  283. # double_quote_subst'ed string.
  284. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  285. +# Sed substitution to delay expansion of an escaped single quote.
  286. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  287. +
  288. # Sed substitution to avoid accidental globbing in evaled expressions
  289. no_glob_subst='s/\*/\\\*/g'
  290. -# Constants:
  291. -rm="rm -f"
  292. -
  293. # Global variables:
  294. -default_ofile=libtool
  295. +ofile=libtool
  296. can_build_shared=yes
  297. -# All known linkers require a `.a' archive for static linking (except M$VC,
  298. +# All known linkers require a `.a' archive for static linking (except MSVC,
  299. # which needs '.lib').
  300. libext=a
  301. -ltmain="$ac_aux_dir/ltmain.sh"
  302. -ofile="$default_ofile"
  303. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  304. -AC_CHECK_TOOL(AR, ar, false)
  305. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  306. -AC_CHECK_TOOL(STRIP, strip, :)
  307. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  308. old_CC="$CC"
  309. old_CFLAGS="$CFLAGS"
  310. # Set sane defaults for various variables
  311. -test -z "$AR" && AR=ar
  312. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  313. -test -z "$AS" && AS=as
  314. test -z "$CC" && CC=cc
  315. test -z "$LTCC" && LTCC=$CC
  316. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  317. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  318. test -z "$LD" && LD=ld
  319. -test -z "$LN_S" && LN_S="ln -s"
  320. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  321. -test -z "$NM" && NM=nm
  322. -test -z "$SED" && SED=sed
  323. -test -z "$OBJDUMP" && OBJDUMP=objdump
  324. -test -z "$RANLIB" && RANLIB=:
  325. -test -z "$STRIP" && STRIP=:
  326. test -z "$ac_objext" && ac_objext=o
  327. -# Determine commands to create old-style static archives.
  328. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  329. -old_postinstall_cmds='chmod 644 $oldlib'
  330. -old_postuninstall_cmds=
  331. -
  332. -if test -n "$RANLIB"; then
  333. - case $host_os in
  334. - openbsd*)
  335. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  336. - ;;
  337. - *)
  338. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  339. - ;;
  340. - esac
  341. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  342. -fi
  343. -
  344. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  345. +_LT_CC_BASENAME([$compiler])
  346. # Only perform the check for file, if the check method requires it
  347. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  348. case $deplibs_check_method in
  349. file_magic*)
  350. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  351. - AC_PATH_MAGIC
  352. + _LT_PATH_MAGIC
  353. fi
  354. ;;
  355. esac
  356. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  357. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  358. -enable_win32_dll=yes, enable_win32_dll=no)
  359. -
  360. -AC_ARG_ENABLE([libtool-lock],
  361. - [AC_HELP_STRING([--disable-libtool-lock],
  362. - [avoid locking (might break parallel builds)])])
  363. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  364. +# Use C for the default configuration in the libtool script
  365. +LT_SUPPORTED_TAG([CC])
  366. +_LT_LANG_C_CONFIG
  367. +_LT_LANG_DEFAULT_CONFIG
  368. +_LT_CONFIG_COMMANDS
  369. +])# _LT_SETUP
  370. -AC_ARG_WITH([pic],
  371. - [AC_HELP_STRING([--with-pic],
  372. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  373. - [pic_mode="$withval"],
  374. - [pic_mode=default])
  375. -test -z "$pic_mode" && pic_mode=default
  376. -# Use C for the default configuration in the libtool script
  377. -tagname=
  378. -AC_LIBTOOL_LANG_C_CONFIG
  379. -_LT_AC_TAGCONFIG
  380. -])# AC_LIBTOOL_SETUP
  381. +# _LT_PROG_LTMAIN
  382. +# ---------------
  383. +# Note that this code is called both from `configure', and `config.status'
  384. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  385. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  386. +# so we pass a copy along to make sure it has a sensible value anyway.
  387. +m4_defun([_LT_PROG_LTMAIN],
  388. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  389. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  390. +ltmain="$ac_aux_dir/ltmain.sh"
  391. +])# _LT_PROG_LTMAIN
  392. -# _LT_AC_SYS_COMPILER
  393. -# -------------------
  394. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  395. -[AC_REQUIRE([AC_PROG_CC])dnl
  396. -# If no C compiler was specified, use CC.
  397. -LTCC=${LTCC-"$CC"}
  398. +# So that we can recreate a full libtool script including additional
  399. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  400. +# in macros and then make a single call at the end using the `libtool'
  401. +# label.
  402. -# Allow CC to be a program name with arguments.
  403. -compiler=$CC
  404. -])# _LT_AC_SYS_COMPILER
  405. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  406. +# ----------------------------------------
  407. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  408. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  409. +[m4_ifval([$1],
  410. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  411. + [$1
  412. +])])])
  413. -# _LT_AC_SYS_LIBPATH_AIX
  414. -# ----------------------
  415. -# Links a minimal program and checks the executable
  416. -# for the system default hardcoded library path. In most cases,
  417. -# this is /usr/lib:/lib, but when the MPI compilers are used
  418. -# the location of the communication and MPI libs are included too.
  419. -# If we don't find anything, use the default library path according
  420. -# to the aix ld manual.
  421. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  422. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  423. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  424. -}'`
  425. -# Check for a 64-bit object if we didn't find anything.
  426. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  427. -}'`; fi],[])
  428. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  429. -])# _LT_AC_SYS_LIBPATH_AIX
  430. +# Initialize.
  431. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  432. -# _LT_AC_SHELL_INIT(ARG)
  433. -# ----------------------
  434. -AC_DEFUN([_LT_AC_SHELL_INIT],
  435. -[ifdef([AC_DIVERSION_NOTICE],
  436. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  437. - [AC_DIVERT_PUSH(NOTICE)])
  438. -$1
  439. -AC_DIVERT_POP
  440. -])# _LT_AC_SHELL_INIT
  441. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  442. +# ------------------------------
  443. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  444. +m4_define([_LT_CONFIG_LIBTOOL],
  445. +[m4_ifval([$1],
  446. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  447. + [$1
  448. +])])])
  449. +
  450. +# Initialize.
  451. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  452. +
  453. +
  454. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  455. +# -----------------------------------------------------
  456. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  457. +[_LT_CONFIG_LIBTOOL([$1])
  458. +_LT_CONFIG_LIBTOOL_INIT([$2])
  459. +])
  460. -# _LT_AC_PROG_ECHO_BACKSLASH
  461. -# --------------------------
  462. -# Add some code to the start of the generated configure script which
  463. -# will find an echo command which doesn't interpret backslashes.
  464. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  465. -[_LT_AC_SHELL_INIT([
  466. -# Check that we are running under the correct shell.
  467. -SHELL=${CONFIG_SHELL-/bin/sh}
  468. +# _LT_FORMAT_COMMENT([COMMENT])
  469. +# -----------------------------
  470. +# Add leading comment marks to the start of each line, and a trailing
  471. +# full-stop to the whole comment if one is not present already.
  472. +m4_define([_LT_FORMAT_COMMENT],
  473. +[m4_ifval([$1], [
  474. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  475. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  476. +)])
  477. -case X$ECHO in
  478. -X*--fallback-echo)
  479. - # Remove one level of quotation (which was required for Make).
  480. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  481. - ;;
  482. -esac
  483. -echo=${ECHO-echo}
  484. -if test "X[$]1" = X--no-reexec; then
  485. - # Discard the --no-reexec flag, and continue.
  486. - shift
  487. -elif test "X[$]1" = X--fallback-echo; then
  488. - # Avoid inline document here, it may be left over
  489. - :
  490. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. - # Yippee, $echo works!
  492. - :
  493. -else
  494. - # Restart under the correct shell.
  495. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  496. -fi
  497. -if test "X[$]1" = X--fallback-echo; then
  498. - # used as fallback echo
  499. - shift
  500. - cat <<EOF
  501. -[$]*
  502. -EOF
  503. - exit 0
  504. -fi
  505. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  506. -# if CDPATH is set.
  507. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. -if test -z "$ECHO"; then
  509. -if test "X${echo_test_string+set}" != Xset; then
  510. -# find a string as large as possible, as long as the shell can cope with it
  511. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  512. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  514. - echo_test_string="`eval $cmd`" &&
  515. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. - then
  517. - break
  518. - fi
  519. - done
  520. -fi
  521. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  522. +# -------------------------------------------------------------------
  523. +# CONFIGNAME is the name given to the value in the libtool script.
  524. +# VARNAME is the (base) name used in the configure script.
  525. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  526. +# VARNAME. Any other value will be used directly.
  527. +m4_define([_LT_DECL],
  528. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  529. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  530. + [m4_ifval([$1], [$1], [$2])])
  531. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  532. + m4_ifval([$4],
  533. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  534. + lt_dict_add_subkey([lt_decl_dict], [$2],
  535. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  536. +])
  537. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  538. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  539. - test "X$echo_testing_string" = "X$echo_test_string"; then
  540. - :
  541. -else
  542. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  543. - # backslashes. This makes it impossible to quote backslashes using
  544. - # echo "$something" | sed 's/\\/\\\\/g'
  545. - #
  546. - # So, first we look for a working echo in the user's PATH.
  547. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  548. - for dir in $PATH /usr/ucb; do
  549. - IFS="$lt_save_ifs"
  550. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  551. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  552. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  553. - test "X$echo_testing_string" = "X$echo_test_string"; then
  554. - echo="$dir/echo"
  555. - break
  556. - fi
  557. - done
  558. - IFS="$lt_save_ifs"
  559. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  560. +# --------------------------------------------------------
  561. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  562. +
  563. +
  564. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  565. +# ------------------------------------------------
  566. +m4_define([lt_decl_tag_varnames],
  567. +[_lt_decl_filter([tagged?], [yes], $@)])
  568. +
  569. +
  570. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  571. +# ---------------------------------------------------------
  572. +m4_define([_lt_decl_filter],
  573. +[m4_case([$#],
  574. + [0], [m4_fatal([$0: too few arguments: $#])],
  575. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  576. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  577. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  578. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  579. +])
  580. - if test "X$echo" = Xecho; then
  581. - # We didn't find a better echo, so look for alternatives.
  582. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  583. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  584. - test "X$echo_testing_string" = "X$echo_test_string"; then
  585. - # This shell has a builtin print -r that does the trick.
  586. - echo='print -r'
  587. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  588. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  589. - # If we have ksh, try running configure again with it.
  590. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  591. - export ORIGINAL_CONFIG_SHELL
  592. - CONFIG_SHELL=/bin/ksh
  593. - export CONFIG_SHELL
  594. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  595. - else
  596. - # Try using printf.
  597. - echo='printf %s\n'
  598. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  599. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  600. - test "X$echo_testing_string" = "X$echo_test_string"; then
  601. - # Cool, printf works
  602. - :
  603. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  604. - test "X$echo_testing_string" = 'X\t' &&
  605. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  606. - test "X$echo_testing_string" = "X$echo_test_string"; then
  607. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  608. - export CONFIG_SHELL
  609. - SHELL="$CONFIG_SHELL"
  610. - export SHELL
  611. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  612. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  613. - test "X$echo_testing_string" = 'X\t' &&
  614. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  615. - test "X$echo_testing_string" = "X$echo_test_string"; then
  616. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  617. - else
  618. - # maybe with a smaller string...
  619. - prev=:
  620. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  621. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  622. - then
  623. - break
  624. - fi
  625. - prev="$cmd"
  626. - done
  627. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  628. +# --------------------------------------------------
  629. +m4_define([lt_decl_quote_varnames],
  630. +[_lt_decl_filter([value], [1], $@)])
  631. +
  632. +
  633. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  634. +# ---------------------------------------------------
  635. +m4_define([lt_decl_dquote_varnames],
  636. +[_lt_decl_filter([value], [2], $@)])
  637. +
  638. +
  639. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  640. +# ---------------------------------------------------
  641. +m4_define([lt_decl_varnames_tagged],
  642. +[m4_assert([$# <= 2])dnl
  643. +_$0(m4_quote(m4_default([$1], [[, ]])),
  644. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  645. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  646. +m4_define([_lt_decl_varnames_tagged],
  647. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  648. +
  649. +
  650. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  651. +# ------------------------------------------------
  652. +m4_define([lt_decl_all_varnames],
  653. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  654. + m4_if([$2], [],
  655. + m4_quote(lt_decl_varnames),
  656. + m4_quote(m4_shift($@))))[]dnl
  657. +])
  658. +m4_define([_lt_decl_all_varnames],
  659. +[lt_join($@, lt_decl_varnames_tagged([$1],
  660. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  661. +])
  662. - if test "$prev" != 'sed 50q "[$]0"'; then
  663. - echo_test_string=`eval $prev`
  664. - export echo_test_string
  665. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  666. - else
  667. - # Oops. We lost completely, so just stick with echo.
  668. - echo=echo
  669. - fi
  670. - fi
  671. - fi
  672. - fi
  673. -fi
  674. -fi
  675. -# Copy echo and quote the copy suitably for passing to libtool from
  676. -# the Makefile, instead of quoting the original, which is used later.
  677. -ECHO=$echo
  678. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  679. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  680. -fi
  681. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  682. +# ------------------------------------
  683. +# Quote a variable value, and forward it to `config.status' so that its
  684. +# declaration there will have the same value as in `configure'. VARNAME
  685. +# must have a single quote delimited value for this to work.
  686. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  687. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  688. -AC_SUBST(ECHO)
  689. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  690. +# _LT_CONFIG_STATUS_DECLARATIONS
  691. +# ------------------------------
  692. +# We delimit libtool config variables with single quotes, so when
  693. +# we write them to config.status, we have to be sure to quote all
  694. +# embedded single quotes properly. In configure, this macro expands
  695. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  696. +#
  697. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  698. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  699. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  700. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  701. -# _LT_AC_LOCK
  702. -# -----------
  703. -AC_DEFUN([_LT_AC_LOCK],
  704. -[AC_ARG_ENABLE([libtool-lock],
  705. - [AC_HELP_STRING([--disable-libtool-lock],
  706. - [avoid locking (might break parallel builds)])])
  707. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  708. -# Some flags need to be propagated to the compiler or linker for good
  709. -# libtool support.
  710. -case $host in
  711. -ia64-*-hpux*)
  712. - # Find out which ABI we are using.
  713. - echo 'int i;' > conftest.$ac_ext
  714. - if AC_TRY_EVAL(ac_compile); then
  715. - case `/usr/bin/file conftest.$ac_objext` in
  716. - *ELF-32*)
  717. - HPUX_IA64_MODE="32"
  718. - ;;
  719. - *ELF-64*)
  720. - HPUX_IA64_MODE="64"
  721. - ;;
  722. - esac
  723. - fi
  724. - rm -rf conftest*
  725. - ;;
  726. -*-*-irix6*)
  727. - # Find out which ABI we are using.
  728. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  729. - if AC_TRY_EVAL(ac_compile); then
  730. - if test "$lt_cv_prog_gnu_ld" = yes; then
  731. - case `/usr/bin/file conftest.$ac_objext` in
  732. - *32-bit*)
  733. - LD="${LD-ld} -melf32bsmip"
  734. - ;;
  735. - *N32*)
  736. - LD="${LD-ld} -melf32bmipn32"
  737. - ;;
  738. - *64-bit*)
  739. - LD="${LD-ld} -melf64bmip"
  740. - ;;
  741. - esac
  742. - else
  743. - case `/usr/bin/file conftest.$ac_objext` in
  744. - *32-bit*)
  745. - LD="${LD-ld} -32"
  746. - ;;
  747. - *N32*)
  748. - LD="${LD-ld} -n32"
  749. +# _LT_LIBTOOL_TAGS
  750. +# ----------------
  751. +# Output comment and list of tags supported by the script
  752. +m4_defun([_LT_LIBTOOL_TAGS],
  753. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  754. +available_tags="_LT_TAGS"dnl
  755. +])
  756. +
  757. +
  758. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  759. +# -----------------------------------
  760. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  761. +# expand to a commented shell variable setting:
  762. +#
  763. +# # Some comment about what VAR is for.
  764. +# visible_name=$lt_internal_name
  765. +m4_define([_LT_LIBTOOL_DECLARE],
  766. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  767. + [description])))[]dnl
  768. +m4_pushdef([_libtool_name],
  769. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  770. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  771. + [0], [_libtool_name=[$]$1],
  772. + [1], [_libtool_name=$lt_[]$1],
  773. + [2], [_libtool_name=$lt_[]$1],
  774. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  775. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  776. +])
  777. +
  778. +
  779. +# _LT_LIBTOOL_CONFIG_VARS
  780. +# -----------------------
  781. +# Produce commented declarations of non-tagged libtool config variables
  782. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  783. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  784. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  785. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  786. +[m4_foreach([_lt_var],
  787. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  788. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  789. +
  790. +
  791. +# _LT_LIBTOOL_TAG_VARS(TAG)
  792. +# -------------------------
  793. +m4_define([_LT_LIBTOOL_TAG_VARS],
  794. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  795. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  796. +
  797. +
  798. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  799. +# ------------------------------
  800. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  801. +
  802. +
  803. +# _LT_CONFIG_COMMANDS
  804. +# -------------------
  805. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  806. +# variables for single and double quote escaping we saved from calls
  807. +# to _LT_DECL, we can put quote escaped variables declarations
  808. +# into `config.status', and then the shell code to quote escape them in
  809. +# for loops in `config.status'. Finally, any additional code accumulated
  810. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  811. +m4_defun([_LT_CONFIG_COMMANDS],
  812. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  813. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  814. + dnl instead of duplicating it all over again into config.status,
  815. + dnl then we will have config.status run $CONFIG_LT later, so it
  816. + dnl needs to know what name is stored there:
  817. + [AC_CONFIG_COMMANDS([libtool],
  818. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  819. + dnl If the libtool generation code is destined for config.status,
  820. + dnl expand the accumulated commands and init code now:
  821. + [AC_CONFIG_COMMANDS([libtool],
  822. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  823. +])#_LT_CONFIG_COMMANDS
  824. +
  825. +
  826. +# Initialize.
  827. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  828. +[
  829. +
  830. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  831. +# if CDPATH is set.
  832. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  833. +
  834. +sed_quote_subst='$sed_quote_subst'
  835. +double_quote_subst='$double_quote_subst'
  836. +delay_variable_subst='$delay_variable_subst'
  837. +_LT_CONFIG_STATUS_DECLARATIONS
  838. +LTCC='$LTCC'
  839. +LTCFLAGS='$LTCFLAGS'
  840. +compiler='$compiler_DEFAULT'
  841. +
  842. +# Quote evaled strings.
  843. +for var in lt_decl_all_varnames([[ \
  844. +]], lt_decl_quote_varnames); do
  845. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  846. + *[[\\\\\\\`\\"\\\$]]*)
  847. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  848. ;;
  849. - *64-bit*)
  850. - LD="${LD-ld} -64"
  851. + *)
  852. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  853. ;;
  854. esac
  855. - fi
  856. - fi
  857. - rm -rf conftest*
  858. - ;;
  859. +done
  860. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  861. - # Find out which ABI we are using.
  862. - echo 'int i;' > conftest.$ac_ext
  863. - if AC_TRY_EVAL(ac_compile); then
  864. - case "`/usr/bin/file conftest.o`" in
  865. - *32-bit*)
  866. - case $host in
  867. - x86_64-*linux*)
  868. - LD="${LD-ld} -m elf_i386"
  869. - ;;
  870. - ppc64-*linux*|powerpc64-*linux*)
  871. - LD="${LD-ld} -m elf32ppclinux"
  872. - ;;
  873. - s390x-*linux*)
  874. - LD="${LD-ld} -m elf_s390"
  875. - ;;
  876. - sparc64-*linux*)
  877. - LD="${LD-ld} -m elf32_sparc"
  878. - ;;
  879. - esac
  880. +# Double-quote double-evaled strings.
  881. +for var in lt_decl_all_varnames([[ \
  882. +]], lt_decl_dquote_varnames); do
  883. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  884. + *[[\\\\\\\`\\"\\\$]]*)
  885. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  886. ;;
  887. - *64-bit*)
  888. - case $host in
  889. - x86_64-*linux*)
  890. - LD="${LD-ld} -m elf_x86_64"
  891. - ;;
  892. - ppc*-*linux*|powerpc*-*linux*)
  893. - LD="${LD-ld} -m elf64ppc"
  894. - ;;
  895. - s390*-*linux*)
  896. - LD="${LD-ld} -m elf64_s390"
  897. - ;;
  898. - sparc*-*linux*)
  899. - LD="${LD-ld} -m elf64_sparc"
  900. - ;;
  901. - esac
  902. + *)
  903. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  904. ;;
  905. esac
  906. - fi
  907. - rm -rf conftest*
  908. +done
  909. +
  910. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  911. +case \$lt_ECHO in
  912. +*'\\\[$]0 --fallback-echo"')dnl "
  913. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  914. ;;
  915. +esac
  916. -*-*-sco3.2v5*)
  917. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  918. - SAVE_CFLAGS="$CFLAGS"
  919. - CFLAGS="$CFLAGS -belf"
  920. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  921. - [AC_LANG_PUSH(C)
  922. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  923. - AC_LANG_POP])
  924. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  925. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  926. - CFLAGS="$SAVE_CFLAGS"
  927. - fi
  928. - ;;
  929. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  930. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  931. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  932. - AC_CHECK_TOOL(AS, as, false)
  933. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  934. - ;;
  935. - ])
  936. -esac
  937. +_LT_OUTPUT_LIBTOOL_INIT
  938. +])
  939. -need_locks="$enable_libtool_lock"
  940. -])# _LT_AC_LOCK
  941. +# LT_OUTPUT
  942. +# ---------
  943. +# This macro allows early generation of the libtool script (before
  944. +# AC_OUTPUT is called), incase it is used in configure for compilation
  945. +# tests.
  946. +AC_DEFUN([LT_OUTPUT],
  947. +[: ${CONFIG_LT=./config.lt}
  948. +AC_MSG_NOTICE([creating $CONFIG_LT])
  949. +cat >"$CONFIG_LT" <<_LTEOF
  950. +#! $SHELL
  951. +# Generated by $as_me.
  952. +# Run this file to recreate a libtool stub with the current configuration.
  953. +
  954. +lt_cl_silent=false
  955. +SHELL=\${CONFIG_SHELL-$SHELL}
  956. +_LTEOF
  957. +
  958. +cat >>"$CONFIG_LT" <<\_LTEOF
  959. +AS_SHELL_SANITIZE
  960. +_AS_PREPARE
  961. +exec AS_MESSAGE_FD>&1
  962. +exec AS_MESSAGE_LOG_FD>>config.log
  963. +{
  964. + echo
  965. + AS_BOX([Running $as_me.])
  966. +} >&AS_MESSAGE_LOG_FD
  967. +
  968. +lt_cl_help="\
  969. +\`$as_me' creates a local libtool stub from the current configuration,
  970. +for use in further configure time tests before the real libtool is
  971. +generated.
  972. +
  973. +Usage: $[0] [[OPTIONS]]
  974. +
  975. + -h, --help print this help, then exit
  976. + -V, --version print version number, then exit
  977. + -q, --quiet do not print progress messages
  978. + -d, --debug don't remove temporary files
  979. +
  980. +Report bugs to <bug-libtool@gnu.org>."
  981. +
  982. +lt_cl_version="\
  983. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  984. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  985. +configured by $[0], generated by m4_PACKAGE_STRING.
  986. +
  987. +Copyright (C) 2008 Free Software Foundation, Inc.
  988. +This config.lt script is free software; the Free Software Foundation
  989. +gives unlimited permision to copy, distribute and modify it."
  990. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  991. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  992. -# ----------------------------------------------------------------
  993. -# Check whether the given compiler option works
  994. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  995. -[AC_REQUIRE([LT_AC_PROG_SED])
  996. -AC_CACHE_CHECK([$1], [$2],
  997. - [$2=no
  998. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  999. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1000. - lt_compiler_flag="$3"
  1001. - # Insert the option either (1) after the last *FLAGS variable, or
  1002. - # (2) before a word containing "conftest.", or (3) at the end.
  1003. - # Note that $ac_compile itself does not contain backslashes and begins
  1004. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1005. - # The option is referenced via a variable to avoid confusing sed.
  1006. - lt_compile=`echo "$ac_compile" | $SED \
  1007. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1008. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1009. - -e 's:$: $lt_compiler_flag:'`
  1010. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1011. - (eval "$lt_compile" 2>conftest.err)
  1012. - ac_status=$?
  1013. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1014. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1015. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1016. - # The compiler can only warn and ignore the option if not recognized
  1017. - # So say no if there are warnings
  1018. - if test ! -s conftest.err; then
  1019. - $2=yes
  1020. - fi
  1021. - fi
  1022. - $rm conftest*
  1023. -])
  1024. +while test $[#] != 0
  1025. +do
  1026. + case $[1] in
  1027. + --version | --v* | -V )
  1028. + echo "$lt_cl_version"; exit 0 ;;
  1029. + --help | --h* | -h )
  1030. + echo "$lt_cl_help"; exit 0 ;;
  1031. + --debug | --d* | -d )
  1032. + debug=: ;;
  1033. + --quiet | --q* | --silent | --s* | -q )
  1034. + lt_cl_silent=: ;;
  1035. -if test x"[$]$2" = xyes; then
  1036. - ifelse([$5], , :, [$5])
  1037. -else
  1038. - ifelse([$6], , :, [$6])
  1039. -fi
  1040. -])# AC_LIBTOOL_COMPILER_OPTION
  1041. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1042. +Try \`$[0] --help' for more information.]) ;;
  1043. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1044. +Try \`$[0] --help' for more information.]) ;;
  1045. + esac
  1046. + shift
  1047. +done
  1048. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1049. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1050. -# ------------------------------------------------------------
  1051. -# Check whether the given compiler option works
  1052. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1053. -[AC_CACHE_CHECK([$1], [$2],
  1054. - [$2=no
  1055. - save_LDFLAGS="$LDFLAGS"
  1056. - LDFLAGS="$LDFLAGS $3"
  1057. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1058. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1059. - # The compiler can only warn and ignore the option if not recognized
  1060. - # So say no if there are warnings
  1061. - if test -s conftest.err; then
  1062. - # Append any errors to the config.log.
  1063. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1064. - else
  1065. - $2=yes
  1066. - fi
  1067. - fi
  1068. - $rm conftest*
  1069. - LDFLAGS="$save_LDFLAGS"
  1070. -])
  1071. +if $lt_cl_silent; then
  1072. + exec AS_MESSAGE_FD>/dev/null
  1073. +fi
  1074. +_LTEOF
  1075. -if test x"[$]$2" = xyes; then
  1076. - ifelse([$4], , :, [$4])
  1077. -else
  1078. - ifelse([$5], , :, [$5])
  1079. +cat >>"$CONFIG_LT" <<_LTEOF
  1080. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1081. +_LTEOF
  1082. +
  1083. +cat >>"$CONFIG_LT" <<\_LTEOF
  1084. +AC_MSG_NOTICE([creating $ofile])
  1085. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1086. +AS_EXIT(0)
  1087. +_LTEOF
  1088. +chmod +x "$CONFIG_LT"
  1089. +
  1090. +# configure is writing to config.log, but config.lt does its own redirection,
  1091. +# appending to config.log, which fails on DOS, as config.log is still kept
  1092. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1093. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1094. +if test "$no_create" != yes; then
  1095. + lt_cl_success=:
  1096. + test "$silent" = yes &&
  1097. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1098. + exec AS_MESSAGE_LOG_FD>/dev/null
  1099. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1100. + exec AS_MESSAGE_LOG_FD>>config.log
  1101. + $lt_cl_success || AS_EXIT(1)
  1102. fi
  1103. -])# AC_LIBTOOL_LINKER_OPTION
  1104. +])# LT_OUTPUT
  1105. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1106. -# --------------------------
  1107. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1108. -[# find the maximum length of command line arguments
  1109. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1110. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1111. - i=0
  1112. - teststring="ABCD"
  1113. +# _LT_CONFIG(TAG)
  1114. +# ---------------
  1115. +# If TAG is the built-in tag, create an initial libtool script with a
  1116. +# default configuration from the untagged config vars. Otherwise add code
  1117. +# to config.status for appending the configuration named by TAG from the
  1118. +# matching tagged config vars.
  1119. +m4_defun([_LT_CONFIG],
  1120. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1121. +_LT_CONFIG_SAVE_COMMANDS([
  1122. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1123. + m4_if(_LT_TAG, [C], [
  1124. + # See if we are running on zsh, and set the options which allow our
  1125. + # commands through without removal of \ escapes.
  1126. + if test -n "${ZSH_VERSION+set}" ; then
  1127. + setopt NO_GLOB_SUBST
  1128. + fi
  1129. - case $build_os in
  1130. - msdosdjgpp*)
  1131. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1132. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1133. - # during glob expansion). Even if it were fixed, the result of this
  1134. - # check would be larger than it should be.
  1135. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1136. - ;;
  1137. + cfgfile="${ofile}T"
  1138. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1139. + $RM "$cfgfile"
  1140. - gnu*)
  1141. - # Under GNU Hurd, this test is not required because there is
  1142. - # no limit to the length of command line arguments.
  1143. - # Libtool will interpret -1 as no limit whatsoever
  1144. - lt_cv_sys_max_cmd_len=-1;
  1145. - ;;
  1146. + cat <<_LT_EOF >> "$cfgfile"
  1147. +#! $SHELL
  1148. - cygwin* | mingw*)
  1149. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1150. - # about 5 minutes as the teststring grows exponentially.
  1151. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1152. - # you end up with a "frozen" computer, even though with patience
  1153. - # the test eventually succeeds (with a max line length of 256k).
  1154. - # Instead, let's just punt: use the minimum linelength reported by
  1155. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1156. - lt_cv_sys_max_cmd_len=8192;
  1157. - ;;
  1158. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1159. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1160. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1161. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1162. +#
  1163. +_LT_COPYING
  1164. +_LT_LIBTOOL_TAGS
  1165. - amigaos*)
  1166. - # On AmigaOS with pdksh, this test takes hours, literally.
  1167. - # So we just punt and use a minimum line length of 8192.
  1168. - lt_cv_sys_max_cmd_len=8192;
  1169. - ;;
  1170. +# ### BEGIN LIBTOOL CONFIG
  1171. +_LT_LIBTOOL_CONFIG_VARS
  1172. +_LT_LIBTOOL_TAG_VARS
  1173. +# ### END LIBTOOL CONFIG
  1174. - netbsd* | freebsd* | openbsd* | darwin* )
  1175. - # This has been around since 386BSD, at least. Likely further.
  1176. - if test -x /sbin/sysctl; then
  1177. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1178. - elif test -x /usr/sbin/sysctl; then
  1179. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1180. - else
  1181. - lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  1182. - fi
  1183. - # And add a safety zone
  1184. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1185. - ;;
  1186. +_LT_EOF
  1187. - *)
  1188. - # If test is not a shell built-in, we'll probably end up computing a
  1189. - # maximum length that is only half of the actual maximum length, but
  1190. - # we can't tell.
  1191. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1192. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1193. - = "XX$teststring") >/dev/null 2>&1 &&
  1194. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1195. - lt_cv_sys_max_cmd_len=$new_result &&
  1196. - test $i != 17 # 1/2 MB should be enough
  1197. - do
  1198. - i=`expr $i + 1`
  1199. - teststring=$teststring$teststring
  1200. - done
  1201. - teststring=
  1202. - # Add a significant safety factor because C++ compilers can tack on massive
  1203. - # amounts of additional arguments before passing them to the linker.
  1204. - # It appears as though 1/2 is a usable value.
  1205. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1206. + case $host_os in
  1207. + aix3*)
  1208. + cat <<\_LT_EOF >> "$cfgfile"
  1209. +# AIX sometimes has problems with the GCC collect2 program. For some
  1210. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1211. +# vanish in a puff of smoke.
  1212. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1213. + COLLECT_NAMES=
  1214. + export COLLECT_NAMES
  1215. +fi
  1216. +_LT_EOF
  1217. ;;
  1218. esac
  1219. -])
  1220. -if test -n $lt_cv_sys_max_cmd_len ; then
  1221. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1222. -else
  1223. - AC_MSG_RESULT(none)
  1224. -fi
  1225. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1226. + _LT_PROG_LTMAIN
  1227. -# _LT_AC_CHECK_DLFCN
  1228. -# --------------------
  1229. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1230. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1231. -])# _LT_AC_CHECK_DLFCN
  1232. + # We use sed instead of cat because bash on DJGPP gets confused if
  1233. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1234. + # text mode, it properly converts lines to CR/LF. This bash problem
  1235. + # is reportedly fixed, but why not run on old versions too?
  1236. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1237. + || (rm -f "$cfgfile"; exit 1)
  1238. + _LT_PROG_XSI_SHELLFNS
  1239. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1240. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1241. -# ------------------------------------------------------------------
  1242. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1243. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1244. -if test "$cross_compiling" = yes; then :
  1245. - [$4]
  1246. -else
  1247. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1248. - lt_status=$lt_dlunknown
  1249. - cat > conftest.$ac_ext <<EOF
  1250. -[#line __oline__ "configure"
  1251. -#include "confdefs.h"
  1252. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1253. + || (rm -f "$cfgfile"; exit 1)
  1254. -#if HAVE_DLFCN_H
  1255. -#include <dlfcn.h>
  1256. -#endif
  1257. + mv -f "$cfgfile" "$ofile" ||
  1258. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1259. + chmod +x "$ofile"
  1260. +],
  1261. +[cat <<_LT_EOF >> "$ofile"
  1262. -#include <stdio.h>
  1263. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1264. +dnl in a comment (ie after a #).
  1265. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1266. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1267. +# ### END LIBTOOL TAG CONFIG: $1
  1268. +_LT_EOF
  1269. +])dnl /m4_if
  1270. +],
  1271. +[m4_if([$1], [], [
  1272. + PACKAGE='$PACKAGE'
  1273. + VERSION='$VERSION'
  1274. + TIMESTAMP='$TIMESTAMP'
  1275. + RM='$RM'
  1276. + ofile='$ofile'], [])
  1277. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1278. +])# _LT_CONFIG
  1279. +
  1280. +
  1281. +# LT_SUPPORTED_TAG(TAG)
  1282. +# ---------------------
  1283. +# Trace this macro to discover what tags are supported by the libtool
  1284. +# --tag option, using:
  1285. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1286. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1287. +
  1288. +
  1289. +# C support is built-in for now
  1290. +m4_define([_LT_LANG_C_enabled], [])
  1291. +m4_define([_LT_TAGS], [])
  1292. -#ifdef RTLD_GLOBAL
  1293. -# define LT_DLGLOBAL RTLD_GLOBAL
  1294. -#else
  1295. -# ifdef DL_GLOBAL
  1296. -# define LT_DLGLOBAL DL_GLOBAL
  1297. -# else
  1298. -# define LT_DLGLOBAL 0
  1299. -# endif
  1300. -#endif
  1301. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1302. - find out it does not work in some platform. */
  1303. -#ifndef LT_DLLAZY_OR_NOW
  1304. -# ifdef RTLD_LAZY
  1305. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1306. -# else
  1307. -# ifdef DL_LAZY
  1308. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1309. -# else
  1310. -# ifdef RTLD_NOW
  1311. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1312. -# else
  1313. -# ifdef DL_NOW
  1314. -# define LT_DLLAZY_OR_NOW DL_NOW
  1315. -# else
  1316. -# define LT_DLLAZY_OR_NOW 0
  1317. -# endif
  1318. -# endif
  1319. -# endif
  1320. -# endif
  1321. -#endif
  1322. +# LT_LANG(LANG)
  1323. +# -------------
  1324. +# Enable libtool support for the given language if not already enabled.
  1325. +AC_DEFUN([LT_LANG],
  1326. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1327. +m4_case([$1],
  1328. + [C], [_LT_LANG(C)],
  1329. + [C++], [_LT_LANG(CXX)],
  1330. + [Java], [_LT_LANG(GCJ)],
  1331. + [Fortran 77], [_LT_LANG(F77)],
  1332. + [Fortran], [_LT_LANG(FC)],
  1333. + [Windows Resource], [_LT_LANG(RC)],
  1334. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1335. + [_LT_LANG($1)],
  1336. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1337. +])# LT_LANG
  1338. -#ifdef __cplusplus
  1339. -extern "C" void exit (int);
  1340. -#endif
  1341. -void fnord() { int i=42;}
  1342. -int main ()
  1343. -{
  1344. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1345. - int status = $lt_dlunknown;
  1346. +# _LT_LANG(LANGNAME)
  1347. +# ------------------
  1348. +m4_defun([_LT_LANG],
  1349. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1350. + [LT_SUPPORTED_TAG([$1])dnl
  1351. + m4_append([_LT_TAGS], [$1 ])dnl
  1352. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1353. + _LT_LANG_$1_CONFIG($1)])dnl
  1354. +])# _LT_LANG
  1355. - if (self)
  1356. - {
  1357. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1358. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1359. - /* dlclose (self); */
  1360. - }
  1361. - exit (status);
  1362. -}]
  1363. -EOF
  1364. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1365. - (./conftest; exit; ) 2>/dev/null
  1366. - lt_status=$?
  1367. - case x$lt_status in
  1368. - x$lt_dlno_uscore) $1 ;;
  1369. - x$lt_dlneed_uscore) $2 ;;
  1370. - x$lt_unknown|x*) $3 ;;
  1371. - esac
  1372. - else :
  1373. - # compilation failed
  1374. - $3
  1375. - fi
  1376. -fi
  1377. -rm -fr conftest*
  1378. -])# _LT_AC_TRY_DLOPEN_SELF
  1379. +# _LT_LANG_DEFAULT_CONFIG
  1380. +# -----------------------
  1381. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1382. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1383. + [LT_LANG(CXX)],
  1384. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1385. +
  1386. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1387. + [LT_LANG(F77)],
  1388. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1389. +
  1390. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1391. + [LT_LANG(FC)],
  1392. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1393. +
  1394. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1395. +dnl pulling things in needlessly.
  1396. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1397. + [LT_LANG(GCJ)],
  1398. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1399. + [LT_LANG(GCJ)],
  1400. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1401. + [LT_LANG(GCJ)],
  1402. + [m4_ifdef([AC_PROG_GCJ],
  1403. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1404. + m4_ifdef([A][M_PROG_GCJ],
  1405. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1406. + m4_ifdef([LT_PROG_GCJ],
  1407. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1408. +
  1409. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1410. + [LT_LANG(RC)],
  1411. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1412. +])# _LT_LANG_DEFAULT_CONFIG
  1413. +
  1414. +# Obsolete macros:
  1415. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1416. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1417. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1418. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1419. +dnl aclocal-1.4 backwards compatibility:
  1420. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1421. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1422. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1423. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1424. -# AC_LIBTOOL_DLOPEN_SELF
  1425. -# -------------------
  1426. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1427. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1428. -if test "x$enable_dlopen" != xyes; then
  1429. - enable_dlopen=unknown
  1430. - enable_dlopen_self=unknown
  1431. - enable_dlopen_self_static=unknown
  1432. -else
  1433. - lt_cv_dlopen=no
  1434. - lt_cv_dlopen_libs=
  1435. +# _LT_TAG_COMPILER
  1436. +# ----------------
  1437. +m4_defun([_LT_TAG_COMPILER],
  1438. +[AC_REQUIRE([AC_PROG_CC])dnl
  1439. - case $host_os in
  1440. - beos*)
  1441. - lt_cv_dlopen="load_add_on"
  1442. - lt_cv_dlopen_libs=
  1443. - lt_cv_dlopen_self=yes
  1444. - ;;
  1445. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1446. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1447. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1448. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1449. - mingw* | pw32*)
  1450. - lt_cv_dlopen="LoadLibrary"
  1451. - lt_cv_dlopen_libs=
  1452. - ;;
  1453. +# If no C compiler was specified, use CC.
  1454. +LTCC=${LTCC-"$CC"}
  1455. - cygwin*)
  1456. - lt_cv_dlopen="dlopen"
  1457. - lt_cv_dlopen_libs=
  1458. - ;;
  1459. +# If no C compiler flags were specified, use CFLAGS.
  1460. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1461. - darwin*)
  1462. - # if libdl is installed we need to link against it
  1463. - AC_CHECK_LIB([dl], [dlopen],
  1464. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1465. - lt_cv_dlopen="dyld"
  1466. - lt_cv_dlopen_libs=
  1467. - lt_cv_dlopen_self=yes
  1468. - ])
  1469. - ;;
  1470. +# Allow CC to be a program name with arguments.
  1471. +compiler=$CC
  1472. +])# _LT_TAG_COMPILER
  1473. - *)
  1474. - AC_CHECK_FUNC([shl_load],
  1475. - [lt_cv_dlopen="shl_load"],
  1476. - [AC_CHECK_LIB([dld], [shl_load],
  1477. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1478. - [AC_CHECK_FUNC([dlopen],
  1479. - [lt_cv_dlopen="dlopen"],
  1480. - [AC_CHECK_LIB([dl], [dlopen],
  1481. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1482. - [AC_CHECK_LIB([svld], [dlopen],
  1483. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1484. - [AC_CHECK_LIB([dld], [dld_link],
  1485. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1486. - ])
  1487. - ])
  1488. - ])
  1489. - ])
  1490. - ])
  1491. - ;;
  1492. - esac
  1493. -
  1494. - if test "x$lt_cv_dlopen" != xno; then
  1495. - enable_dlopen=yes
  1496. - else
  1497. - enable_dlopen=no
  1498. - fi
  1499. -
  1500. - case $lt_cv_dlopen in
  1501. - dlopen)
  1502. - save_CPPFLAGS="$CPPFLAGS"
  1503. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1504. - save_LDFLAGS="$LDFLAGS"
  1505. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1506. +# _LT_COMPILER_BOILERPLATE
  1507. +# ------------------------
  1508. +# Check for compiler boilerplate output or warnings with
  1509. +# the simple compiler test code.
  1510. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1511. +[m4_require([_LT_DECL_SED])dnl
  1512. +ac_outfile=conftest.$ac_objext
  1513. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1514. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1515. +_lt_compiler_boilerplate=`cat conftest.err`
  1516. +$RM conftest*
  1517. +])# _LT_COMPILER_BOILERPLATE
  1518. - save_LIBS="$LIBS"
  1519. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1520. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1521. - lt_cv_dlopen_self, [dnl
  1522. - _LT_AC_TRY_DLOPEN_SELF(
  1523. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1524. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1525. +# _LT_LINKER_BOILERPLATE
  1526. +# ----------------------
  1527. +# Check for linker boilerplate output or warnings with
  1528. +# the simple link test code.
  1529. +m4_defun([_LT_LINKER_BOILERPLATE],
  1530. +[m4_require([_LT_DECL_SED])dnl
  1531. +ac_outfile=conftest.$ac_objext
  1532. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1533. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1534. +_lt_linker_boilerplate=`cat conftest.err`
  1535. +$RM -r conftest*
  1536. +])# _LT_LINKER_BOILERPLATE
  1537. +
  1538. +# _LT_REQUIRED_DARWIN_CHECKS
  1539. +# -------------------------
  1540. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1541. + case $host_os in
  1542. + rhapsody* | darwin*)
  1543. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1544. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1545. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1546. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1547. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1548. + _LT_DECL([], [DSYMUTIL], [1],
  1549. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1550. + _LT_DECL([], [NMEDIT], [1],
  1551. + [Tool to change global to local symbols on Mac OS X])
  1552. + _LT_DECL([], [LIPO], [1],
  1553. + [Tool to manipulate fat objects and archives on Mac OS X])
  1554. + _LT_DECL([], [OTOOL], [1],
  1555. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1556. + _LT_DECL([], [OTOOL64], [1],
  1557. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1558. +
  1559. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1560. + [lt_cv_apple_cc_single_mod=no
  1561. + if test -z "${LT_MULTI_MODULE}"; then
  1562. + # By default we will add the -single_module flag. You can override
  1563. + # by either setting the environment variable LT_MULTI_MODULE
  1564. + # non-empty at configure time, or by adding -multi_module to the
  1565. + # link flags.
  1566. + rm -rf libconftest.dylib*
  1567. + echo "int foo(void){return 1;}" > conftest.c
  1568. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1569. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1570. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1571. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1572. + _lt_result=$?
  1573. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1574. + lt_cv_apple_cc_single_mod=yes
  1575. + else
  1576. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1577. + fi
  1578. + rm -rf libconftest.dylib*
  1579. + rm -f conftest.*
  1580. + fi])
  1581. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1582. + [lt_cv_ld_exported_symbols_list],
  1583. + [lt_cv_ld_exported_symbols_list=no
  1584. + save_LDFLAGS=$LDFLAGS
  1585. + echo "_main" > conftest.sym
  1586. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1587. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1588. + [lt_cv_ld_exported_symbols_list=yes],
  1589. + [lt_cv_ld_exported_symbols_list=no])
  1590. + LDFLAGS="$save_LDFLAGS"
  1591. ])
  1592. -
  1593. - if test "x$lt_cv_dlopen_self" = xyes; then
  1594. - LDFLAGS="$LDFLAGS $link_static_flag"
  1595. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1596. - lt_cv_dlopen_self_static, [dnl
  1597. - _LT_AC_TRY_DLOPEN_SELF(
  1598. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1599. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1600. - ])
  1601. + case $host_os in
  1602. + rhapsody* | darwin1.[[012]])
  1603. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1604. + darwin1.*)
  1605. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1606. + darwin*) # darwin 5.x on
  1607. + # if running on 10.5 or later, the deployment target defaults
  1608. + # to the OS version, if on x86, and 10.4, the deployment
  1609. + # target defaults to 10.4. Don't you love it?
  1610. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1611. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1612. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1613. + 10.[[012]]*)
  1614. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1615. + 10.*)
  1616. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1617. + esac
  1618. + ;;
  1619. + esac
  1620. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1621. + _lt_dar_single_mod='$single_module'
  1622. + fi
  1623. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1624. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1625. + else
  1626. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1627. + fi
  1628. + if test "$DSYMUTIL" != ":"; then
  1629. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1630. + else
  1631. + _lt_dsymutil=
  1632. fi
  1633. -
  1634. - CPPFLAGS="$save_CPPFLAGS"
  1635. - LDFLAGS="$save_LDFLAGS"
  1636. - LIBS="$save_LIBS"
  1637. ;;
  1638. esac
  1639. +])
  1640. - case $lt_cv_dlopen_self in
  1641. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1642. - *) enable_dlopen_self=unknown ;;
  1643. - esac
  1644. - case $lt_cv_dlopen_self_static in
  1645. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1646. - *) enable_dlopen_self_static=unknown ;;
  1647. +# _LT_DARWIN_LINKER_FEATURES
  1648. +# --------------------------
  1649. +# Checks for linker and compiler features on darwin
  1650. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1651. +[
  1652. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1653. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1654. + _LT_TAGVAR(hardcode_direct, $1)=no
  1655. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1656. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1657. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1658. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1659. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1660. + case $cc_basename in
  1661. + ifort*) _lt_dar_can_shared=yes ;;
  1662. + *) _lt_dar_can_shared=$GCC ;;
  1663. esac
  1664. -fi
  1665. -])# AC_LIBTOOL_DLOPEN_SELF
  1666. -
  1667. + if test "$_lt_dar_can_shared" = "yes"; then
  1668. + output_verbose_link_cmd=echo
  1669. + _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}"
  1670. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1671. + _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}"
  1672. + _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}"
  1673. + m4_if([$1], [CXX],
  1674. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1675. + _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}"
  1676. + _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}"
  1677. + fi
  1678. +],[])
  1679. + else
  1680. + _LT_TAGVAR(ld_shlibs, $1)=no
  1681. + fi
  1682. +])
  1683. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1684. -# ---------------------------------
  1685. -# Check to see if options -c and -o are simultaneously supported by compiler
  1686. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1687. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1688. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1689. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1690. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1691. - $rm -r conftest 2>/dev/null
  1692. - mkdir conftest
  1693. - cd conftest
  1694. - mkdir out
  1695. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1696. +# _LT_SYS_MODULE_PATH_AIX
  1697. +# -----------------------
  1698. +# Links a minimal program and checks the executable
  1699. +# for the system default hardcoded library path. In most cases,
  1700. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1701. +# the location of the communication and MPI libs are included too.
  1702. +# If we don't find anything, use the default library path according
  1703. +# to the aix ld manual.
  1704. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1705. +[m4_require([_LT_DECL_SED])dnl
  1706. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1707. +lt_aix_libpath_sed='
  1708. + /Import File Strings/,/^$/ {
  1709. + /^0/ {
  1710. + s/^0 *\(.*\)$/\1/
  1711. + p
  1712. + }
  1713. + }'
  1714. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1715. +# Check for a 64-bit object if we didn't find anything.
  1716. +if test -z "$aix_libpath"; then
  1717. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1718. +fi],[])
  1719. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1720. +])# _LT_SYS_MODULE_PATH_AIX
  1721. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1722. - # Insert the option either (1) after the last *FLAGS variable, or
  1723. - # (2) before a word containing "conftest.", or (3) at the end.
  1724. - # Note that $ac_compile itself does not contain backslashes and begins
  1725. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1726. - lt_compile=`echo "$ac_compile" | $SED \
  1727. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1728. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1729. - -e 's:$: $lt_compiler_flag:'`
  1730. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1731. - (eval "$lt_compile" 2>out/conftest.err)
  1732. - ac_status=$?
  1733. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1734. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1735. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1736. - then
  1737. - # The compiler can only warn and ignore the option if not recognized
  1738. - # So say no if there are warnings
  1739. - if test ! -s out/conftest.err; then
  1740. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1741. - fi
  1742. - fi
  1743. - chmod u+w .
  1744. - $rm conftest*
  1745. - # SGI C++ compiler will create directory out/ii_files/ for
  1746. - # template instantiation
  1747. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1748. - $rm out/* && rmdir out
  1749. - cd ..
  1750. - rmdir conftest
  1751. - $rm conftest*
  1752. -])
  1753. -])# AC_LIBTOOL_PROG_CC_C_O
  1754. +# _LT_SHELL_INIT(ARG)
  1755. +# -------------------
  1756. +m4_define([_LT_SHELL_INIT],
  1757. +[ifdef([AC_DIVERSION_NOTICE],
  1758. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1759. + [AC_DIVERT_PUSH(NOTICE)])
  1760. +$1
  1761. +AC_DIVERT_POP
  1762. +])# _LT_SHELL_INIT
  1763. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1764. -# -----------------------------------------
  1765. -# Check to see if we can do hard links to lock some files if needed
  1766. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1767. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1768. -hard_links="nottested"
  1769. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1770. - # do not overwrite the value of need_locks provided by the user
  1771. - AC_MSG_CHECKING([if we can lock with hard links])
  1772. - hard_links=yes
  1773. - $rm conftest*
  1774. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1775. - touch conftest.a
  1776. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1777. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1778. - AC_MSG_RESULT([$hard_links])
  1779. - if test "$hard_links" = no; then
  1780. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1781. - need_locks=warn
  1782. - fi
  1783. -else
  1784. - need_locks=no
  1785. -fi
  1786. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1787. +# _LT_PROG_ECHO_BACKSLASH
  1788. +# -----------------------
  1789. +# Add some code to the start of the generated configure script which
  1790. +# will find an echo command which doesn't interpret backslashes.
  1791. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1792. +[_LT_SHELL_INIT([
  1793. +# Check that we are running under the correct shell.
  1794. +SHELL=${CONFIG_SHELL-/bin/sh}
  1795. +case X$lt_ECHO in
  1796. +X*--fallback-echo)
  1797. + # Remove one level of quotation (which was required for Make).
  1798. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1799. + ;;
  1800. +esac
  1801. -# AC_LIBTOOL_OBJDIR
  1802. -# -----------------
  1803. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1804. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1805. -[rm -f .libs 2>/dev/null
  1806. -mkdir .libs 2>/dev/null
  1807. -if test -d .libs; then
  1808. - lt_cv_objdir=.libs
  1809. +ECHO=${lt_ECHO-echo}
  1810. +if test "X[$]1" = X--no-reexec; then
  1811. + # Discard the --no-reexec flag, and continue.
  1812. + shift
  1813. +elif test "X[$]1" = X--fallback-echo; then
  1814. + # Avoid inline document here, it may be left over
  1815. + :
  1816. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1817. + # Yippee, $ECHO works!
  1818. + :
  1819. else
  1820. - # MS-DOS does not allow filenames that begin with a dot.
  1821. - lt_cv_objdir=_libs
  1822. + # Restart under the correct shell.
  1823. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1824. fi
  1825. -rmdir .libs 2>/dev/null])
  1826. -objdir=$lt_cv_objdir
  1827. -])# AC_LIBTOOL_OBJDIR
  1828. +if test "X[$]1" = X--fallback-echo; then
  1829. + # used as fallback echo
  1830. + shift
  1831. + cat <<_LT_EOF
  1832. +[$]*
  1833. +_LT_EOF
  1834. + exit 0
  1835. +fi
  1836. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1837. -# ----------------------------------------------
  1838. -# Check hardcoding attributes.
  1839. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1840. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1841. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1842. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1843. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1844. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1845. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1846. +# if CDPATH is set.
  1847. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1848. - # We can hardcode non-existant directories.
  1849. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1850. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1851. - # have to relink, otherwise we might link with an installed library
  1852. - # when we should be linking with a yet-to-be-installed one
  1853. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1854. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1855. - # Linking always hardcodes the temporary library directory.
  1856. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1857. - else
  1858. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1859. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1860. +if test -z "$lt_ECHO"; then
  1861. + if test "X${echo_test_string+set}" != Xset; then
  1862. + # find a string as large as possible, as long as the shell can cope with it
  1863. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1864. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1865. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1866. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1867. + then
  1868. + break
  1869. + fi
  1870. + done
  1871. fi
  1872. -else
  1873. - # We cannot hardcode anything, or else we can only hardcode existing
  1874. - # directories.
  1875. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1876. -fi
  1877. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1878. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1879. - # Fast installation is not supported
  1880. - enable_fast_install=no
  1881. -elif test "$shlibpath_overrides_runpath" = yes ||
  1882. - test "$enable_shared" = no; then
  1883. - # Fast installation is not necessary
  1884. - enable_fast_install=needless
  1885. -fi
  1886. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1887. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1888. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1889. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1890. + :
  1891. + else
  1892. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1893. + # backslashes. This makes it impossible to quote backslashes using
  1894. + # echo "$something" | sed 's/\\/\\\\/g'
  1895. + #
  1896. + # So, first we look for a working echo in the user's PATH.
  1897. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1898. + for dir in $PATH /usr/ucb; do
  1899. + IFS="$lt_save_ifs"
  1900. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1901. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1902. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1903. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1904. + ECHO="$dir/echo"
  1905. + break
  1906. + fi
  1907. + done
  1908. + IFS="$lt_save_ifs"
  1909. -# AC_LIBTOOL_SYS_LIB_STRIP
  1910. -# ------------------------
  1911. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1912. -[striplib=
  1913. -old_striplib=
  1914. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1915. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1916. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1917. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1918. - AC_MSG_RESULT([yes])
  1919. -else
  1920. -# FIXME - insert some real tests, host_os isn't really good enough
  1921. - case $host_os in
  1922. - darwin*)
  1923. - if test -n "$STRIP" ; then
  1924. - striplib="$STRIP -x"
  1925. - AC_MSG_RESULT([yes])
  1926. - else
  1927. - AC_MSG_RESULT([no])
  1928. -fi
  1929. - ;;
  1930. - *)
  1931. - AC_MSG_RESULT([no])
  1932. - ;;
  1933. - esac
  1934. -fi
  1935. -])# AC_LIBTOOL_SYS_LIB_STRIP
  1936. + if test "X$ECHO" = Xecho; then
  1937. + # We didn't find a better echo, so look for alternatives.
  1938. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1939. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1940. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1941. + # This shell has a builtin print -r that does the trick.
  1942. + ECHO='print -r'
  1943. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1944. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1945. + # If we have ksh, try running configure again with it.
  1946. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1947. + export ORIGINAL_CONFIG_SHELL
  1948. + CONFIG_SHELL=/bin/ksh
  1949. + export CONFIG_SHELL
  1950. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1951. + else
  1952. + # Try using printf.
  1953. + ECHO='printf %s\n'
  1954. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1955. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1956. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1957. + # Cool, printf works
  1958. + :
  1959. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1960. + test "X$echo_testing_string" = 'X\t' &&
  1961. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1962. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1963. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1964. + export CONFIG_SHELL
  1965. + SHELL="$CONFIG_SHELL"
  1966. + export SHELL
  1967. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1968. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1969. + test "X$echo_testing_string" = 'X\t' &&
  1970. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1971. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1972. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1973. + else
  1974. + # maybe with a smaller string...
  1975. + prev=:
  1976. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1977. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1978. + then
  1979. + break
  1980. + fi
  1981. + prev="$cmd"
  1982. + done
  1983. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1984. -# -----------------------------
  1985. -# PORTME Fill in your ld.so characteristics
  1986. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1987. -[AC_MSG_CHECKING([dynamic linker characteristics])
  1988. -library_names_spec=
  1989. -libname_spec='lib$name'
  1990. -soname_spec=
  1991. -shrext_cmds=".so"
  1992. -postinstall_cmds=
  1993. -postuninstall_cmds=
  1994. -finish_cmds=
  1995. -finish_eval=
  1996. -shlibpath_var=
  1997. -shlibpath_overrides_runpath=unknown
  1998. -version_type=none
  1999. -dynamic_linker="$host_os ld.so"
  2000. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2001. -if test "$GCC" = yes; then
  2002. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2003. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2004. - # if the path contains ";" then we assume it to be the separator
  2005. - # otherwise default to the standard path separator (i.e. ":") - it is
  2006. - # assumed that no part of a normal pathname contains ";" but that should
  2007. - # okay in the real world where ";" in dirpaths is itself problematic.
  2008. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2009. - else
  2010. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2011. + if test "$prev" != 'sed 50q "[$]0"'; then
  2012. + echo_test_string=`eval $prev`
  2013. + export echo_test_string
  2014. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2015. + else
  2016. + # Oops. We lost completely, so just stick with echo.
  2017. + ECHO=echo
  2018. + fi
  2019. + fi
  2020. + fi
  2021. + fi
  2022. fi
  2023. -else
  2024. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2025. fi
  2026. -need_lib_prefix=unknown
  2027. -hardcode_into_libs=no
  2028. -# when you set need_version to no, make sure it does not cause -set_version
  2029. -# flags to be left without arguments
  2030. -need_version=unknown
  2031. +# Copy echo and quote the copy suitably for passing to libtool from
  2032. +# the Makefile, instead of quoting the original, which is used later.
  2033. +lt_ECHO=$ECHO
  2034. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2035. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2036. +fi
  2037. -case $host_os in
  2038. -aix3*)
  2039. - version_type=linux
  2040. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2041. - shlibpath_var=LIBPATH
  2042. +AC_SUBST(lt_ECHO)
  2043. +])
  2044. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2045. +_LT_DECL([], [ECHO], [1],
  2046. + [An echo program that does not interpret backslashes])
  2047. +])# _LT_PROG_ECHO_BACKSLASH
  2048. - # AIX 3 has no versioning support, so we append a major version to the name.
  2049. - soname_spec='${libname}${release}${shared_ext}$major'
  2050. - ;;
  2051. -aix4* | aix5*)
  2052. - version_type=linux
  2053. - need_lib_prefix=no
  2054. - need_version=no
  2055. - hardcode_into_libs=yes
  2056. - if test "$host_cpu" = ia64; then
  2057. - # AIX 5 supports IA64
  2058. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2059. - shlibpath_var=LD_LIBRARY_PATH
  2060. - else
  2061. - # With GCC up to 2.95.x, collect2 would create an import file
  2062. - # for dependence libraries. The import file would start with
  2063. - # the line `#! .'. This would cause the generated library to
  2064. - # depend on `.', always an invalid library. This was fixed in
  2065. - # development snapshots of GCC prior to 3.0.
  2066. - case $host_os in
  2067. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2068. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2069. - echo ' yes '
  2070. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2071. - :
  2072. - else
  2073. - can_build_shared=no
  2074. - fi
  2075. - ;;
  2076. +# _LT_ENABLE_LOCK
  2077. +# ---------------
  2078. +m4_defun([_LT_ENABLE_LOCK],
  2079. +[AC_ARG_ENABLE([libtool-lock],
  2080. + [AS_HELP_STRING([--disable-libtool-lock],
  2081. + [avoid locking (might break parallel builds)])])
  2082. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2083. +
  2084. +# Some flags need to be propagated to the compiler or linker for good
  2085. +# libtool support.
  2086. +case $host in
  2087. +ia64-*-hpux*)
  2088. + # Find out which ABI we are using.
  2089. + echo 'int i;' > conftest.$ac_ext
  2090. + if AC_TRY_EVAL(ac_compile); then
  2091. + case `/usr/bin/file conftest.$ac_objext` in
  2092. + *ELF-32*)
  2093. + HPUX_IA64_MODE="32"
  2094. + ;;
  2095. + *ELF-64*)
  2096. + HPUX_IA64_MODE="64"
  2097. + ;;
  2098. esac
  2099. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2100. - # soname into executable. Probably we can add versioning support to
  2101. - # collect2, so additional links can be useful in future.
  2102. - if test "$aix_use_runtimelinking" = yes; then
  2103. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2104. - # instead of lib<name>.a to let people know that these are not
  2105. - # typical AIX shared libraries.
  2106. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2107. + fi
  2108. + rm -rf conftest*
  2109. + ;;
  2110. +*-*-irix6*)
  2111. + # Find out which ABI we are using.
  2112. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2113. + if AC_TRY_EVAL(ac_compile); then
  2114. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2115. + case `/usr/bin/file conftest.$ac_objext` in
  2116. + *32-bit*)
  2117. + LD="${LD-ld} -melf32bsmip"
  2118. + ;;
  2119. + *N32*)
  2120. + LD="${LD-ld} -melf32bmipn32"
  2121. + ;;
  2122. + *64-bit*)
  2123. + LD="${LD-ld} -melf64bmip"
  2124. + ;;
  2125. + esac
  2126. else
  2127. - # We preserve .a as extension for shared libraries through AIX4.2
  2128. - # and later when we are not doing run time linking.
  2129. - library_names_spec='${libname}${release}.a $libname.a'
  2130. - soname_spec='${libname}${release}${shared_ext}$major'
  2131. + case `/usr/bin/file conftest.$ac_objext` in
  2132. + *32-bit*)
  2133. + LD="${LD-ld} -32"
  2134. + ;;
  2135. + *N32*)
  2136. + LD="${LD-ld} -n32"
  2137. + ;;
  2138. + *64-bit*)
  2139. + LD="${LD-ld} -64"
  2140. + ;;
  2141. + esac
  2142. fi
  2143. - shlibpath_var=LIBPATH
  2144. fi
  2145. + rm -rf conftest*
  2146. ;;
  2147. -amigaos*)
  2148. - library_names_spec='$libname.ixlibrary $libname.a'
  2149. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2150. - 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'
  2151. - ;;
  2152. -
  2153. -beos*)
  2154. - library_names_spec='${libname}${shared_ext}'
  2155. - dynamic_linker="$host_os ld.so"
  2156. - shlibpath_var=LIBRARY_PATH
  2157. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2158. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2159. + # Find out which ABI we are using.
  2160. + echo 'int i;' > conftest.$ac_ext
  2161. + if AC_TRY_EVAL(ac_compile); then
  2162. + case `/usr/bin/file conftest.o` in
  2163. + *32-bit*)
  2164. + case $host in
  2165. + x86_64-*kfreebsd*-gnu)
  2166. + LD="${LD-ld} -m elf_i386_fbsd"
  2167. + ;;
  2168. + x86_64-*linux*)
  2169. + LD="${LD-ld} -m elf_i386"
  2170. + ;;
  2171. + ppc64-*linux*|powerpc64-*linux*)
  2172. + LD="${LD-ld} -m elf32ppclinux"
  2173. + ;;
  2174. + s390x-*linux*)
  2175. + LD="${LD-ld} -m elf_s390"
  2176. + ;;
  2177. + sparc64-*linux*)
  2178. + LD="${LD-ld} -m elf32_sparc"
  2179. + ;;
  2180. + esac
  2181. + ;;
  2182. + *64-bit*)
  2183. + case $host in
  2184. + x86_64-*kfreebsd*-gnu)
  2185. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2186. + ;;
  2187. + x86_64-*linux*)
  2188. + LD="${LD-ld} -m elf_x86_64"
  2189. + ;;
  2190. + ppc*-*linux*|powerpc*-*linux*)
  2191. + LD="${LD-ld} -m elf64ppc"
  2192. + ;;
  2193. + s390*-*linux*|s390*-*tpf*)
  2194. + LD="${LD-ld} -m elf64_s390"
  2195. + ;;
  2196. + sparc*-*linux*)
  2197. + LD="${LD-ld} -m elf64_sparc"
  2198. + ;;
  2199. + esac
  2200. + ;;
  2201. + esac
  2202. + fi
  2203. + rm -rf conftest*
  2204. ;;
  2205. -bsdi[[45]]*)
  2206. - version_type=linux
  2207. - need_version=no
  2208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2209. - soname_spec='${libname}${release}${shared_ext}$major'
  2210. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2211. - shlibpath_var=LD_LIBRARY_PATH
  2212. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2213. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2214. - # the default ld.so.conf also contains /usr/contrib/lib and
  2215. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2216. - # libtool to hard-code these into programs
  2217. +*-*-sco3.2v5*)
  2218. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2219. + SAVE_CFLAGS="$CFLAGS"
  2220. + CFLAGS="$CFLAGS -belf"
  2221. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2222. + [AC_LANG_PUSH(C)
  2223. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2224. + AC_LANG_POP])
  2225. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2226. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2227. + CFLAGS="$SAVE_CFLAGS"
  2228. + fi
  2229. ;;
  2230. -
  2231. -cygwin* | mingw* | pw32*)
  2232. - version_type=windows
  2233. - shrext_cmds=".dll"
  2234. - need_version=no
  2235. - need_lib_prefix=no
  2236. -
  2237. - case $GCC,$host_os in
  2238. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2239. - library_names_spec='$libname.dll.a'
  2240. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2241. - postinstall_cmds='base_file=`basename \${file}`~
  2242. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2243. - dldir=$destdir/`dirname \$dlpath`~
  2244. - test -d \$dldir || mkdir -p \$dldir~
  2245. - $install_prog $dir/$dlname \$dldir/$dlname'
  2246. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2247. - dlpath=$dir/\$dldll~
  2248. - $rm \$dlpath'
  2249. - shlibpath_overrides_runpath=yes
  2250. -
  2251. - case $host_os in
  2252. - cygwin*)
  2253. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2254. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2255. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2256. - ;;
  2257. - mingw*)
  2258. - # MinGW DLLs use traditional 'lib' prefix
  2259. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2260. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2261. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2262. - # It is most probably a Windows format PATH printed by
  2263. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2264. - # path with ; separators, and with drive letters. We can handle the
  2265. - # drive letters (cygwin fileutils understands them), so leave them,
  2266. - # especially as we might pass files found there to a mingw objdump,
  2267. - # which wouldn't understand a cygwinified path. Ahh.
  2268. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2269. - else
  2270. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2271. - fi
  2272. - ;;
  2273. - pw32*)
  2274. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2275. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  2276. +sparc*-*solaris*)
  2277. + # Find out which ABI we are using.
  2278. + echo 'int i;' > conftest.$ac_ext
  2279. + if AC_TRY_EVAL(ac_compile); then
  2280. + case `/usr/bin/file conftest.o` in
  2281. + *64-bit*)
  2282. + case $lt_cv_prog_gnu_ld in
  2283. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2284. + *)
  2285. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2286. + LD="${LD-ld} -64"
  2287. + fi
  2288. + ;;
  2289. + esac
  2290. ;;
  2291. esac
  2292. - ;;
  2293. -
  2294. - *)
  2295. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2296. - ;;
  2297. - esac
  2298. - dynamic_linker='Win32 ld.exe'
  2299. - # FIXME: first we should search . and the directory the executable is in
  2300. - shlibpath_var=PATH
  2301. - ;;
  2302. -
  2303. -darwin* | rhapsody*)
  2304. - dynamic_linker="$host_os dyld"
  2305. - version_type=darwin
  2306. - need_lib_prefix=no
  2307. - need_version=no
  2308. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2309. - soname_spec='${libname}${release}${major}$shared_ext'
  2310. - shlibpath_overrides_runpath=yes
  2311. - shlibpath_var=DYLD_LIBRARY_PATH
  2312. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  2313. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2314. - if test "$GCC" = yes; then
  2315. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2316. - else
  2317. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2318. fi
  2319. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2320. + rm -rf conftest*
  2321. ;;
  2322. +esac
  2323. -dgux*)
  2324. - version_type=linux
  2325. - need_lib_prefix=no
  2326. - need_version=no
  2327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2328. - soname_spec='${libname}${release}${shared_ext}$major'
  2329. - shlibpath_var=LD_LIBRARY_PATH
  2330. - ;;
  2331. +need_locks="$enable_libtool_lock"
  2332. +])# _LT_ENABLE_LOCK
  2333. -freebsd1*)
  2334. - dynamic_linker=no
  2335. - ;;
  2336. -kfreebsd*-gnu)
  2337. - version_type=linux
  2338. - need_lib_prefix=no
  2339. - need_version=no
  2340. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2341. - soname_spec='${libname}${release}${shared_ext}$major'
  2342. - shlibpath_var=LD_LIBRARY_PATH
  2343. - shlibpath_overrides_runpath=no
  2344. - hardcode_into_libs=yes
  2345. - dynamic_linker='GNU ld.so'
  2346. - ;;
  2347. +# _LT_CMD_OLD_ARCHIVE
  2348. +# -------------------
  2349. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2350. +[AC_CHECK_TOOL(AR, ar, false)
  2351. +test -z "$AR" && AR=ar
  2352. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2353. +_LT_DECL([], [AR], [1], [The archiver])
  2354. +_LT_DECL([], [AR_FLAGS], [1])
  2355. -freebsd*)
  2356. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2357. - version_type=freebsd-$objformat
  2358. - case $version_type in
  2359. - freebsd-elf*)
  2360. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2361. - need_version=no
  2362. - need_lib_prefix=no
  2363. - ;;
  2364. - freebsd-*)
  2365. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2366. - need_version=yes
  2367. - ;;
  2368. - esac
  2369. - shlibpath_var=LD_LIBRARY_PATH
  2370. +AC_CHECK_TOOL(STRIP, strip, :)
  2371. +test -z "$STRIP" && STRIP=:
  2372. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2373. +
  2374. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2375. +test -z "$RANLIB" && RANLIB=:
  2376. +_LT_DECL([], [RANLIB], [1],
  2377. + [Commands used to install an old-style archive])
  2378. +
  2379. +# Determine commands to create old-style static archives.
  2380. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2381. +old_postinstall_cmds='chmod 644 $oldlib'
  2382. +old_postuninstall_cmds=
  2383. +
  2384. +if test -n "$RANLIB"; then
  2385. case $host_os in
  2386. - freebsd2*)
  2387. - shlibpath_overrides_runpath=yes
  2388. - ;;
  2389. - freebsd3.[01]* | freebsdelf3.[01]*)
  2390. - shlibpath_overrides_runpath=yes
  2391. - hardcode_into_libs=yes
  2392. + openbsd*)
  2393. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2394. ;;
  2395. - *) # from 3.2 on
  2396. - shlibpath_overrides_runpath=no
  2397. - hardcode_into_libs=yes
  2398. + *)
  2399. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2400. ;;
  2401. esac
  2402. - ;;
  2403. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2404. +fi
  2405. +_LT_DECL([], [old_postinstall_cmds], [2])
  2406. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2407. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2408. + [Commands used to build an old-style archive])
  2409. +])# _LT_CMD_OLD_ARCHIVE
  2410. -gnu*)
  2411. - version_type=linux
  2412. - need_lib_prefix=no
  2413. - need_version=no
  2414. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2415. - soname_spec='${libname}${release}${shared_ext}$major'
  2416. - shlibpath_var=LD_LIBRARY_PATH
  2417. - hardcode_into_libs=yes
  2418. - ;;
  2419. -hpux9* | hpux10* | hpux11*)
  2420. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2421. - # link against other versions.
  2422. - version_type=sunos
  2423. - need_lib_prefix=no
  2424. - need_version=no
  2425. - case "$host_cpu" in
  2426. - ia64*)
  2427. - shrext_cmds='.so'
  2428. - hardcode_into_libs=yes
  2429. - dynamic_linker="$host_os dld.so"
  2430. - shlibpath_var=LD_LIBRARY_PATH
  2431. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2432. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2433. - soname_spec='${libname}${release}${shared_ext}$major'
  2434. - if test "X$HPUX_IA64_MODE" = X32; then
  2435. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2436. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2437. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2438. +# ----------------------------------------------------------------
  2439. +# Check whether the given compiler option works
  2440. +AC_DEFUN([_LT_COMPILER_OPTION],
  2441. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2442. +m4_require([_LT_DECL_SED])dnl
  2443. +AC_CACHE_CHECK([$1], [$2],
  2444. + [$2=no
  2445. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2446. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2447. + lt_compiler_flag="$3"
  2448. + # Insert the option either (1) after the last *FLAGS variable, or
  2449. + # (2) before a word containing "conftest.", or (3) at the end.
  2450. + # Note that $ac_compile itself does not contain backslashes and begins
  2451. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2452. + # The option is referenced via a variable to avoid confusing sed.
  2453. + lt_compile=`echo "$ac_compile" | $SED \
  2454. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2455. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2456. + -e 's:$: $lt_compiler_flag:'`
  2457. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2458. + (eval "$lt_compile" 2>conftest.err)
  2459. + ac_status=$?
  2460. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2461. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2462. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2463. + # The compiler can only warn and ignore the option if not recognized
  2464. + # So say no if there are warnings other than the usual output.
  2465. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2466. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2467. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2468. + $2=yes
  2469. + fi
  2470. + fi
  2471. + $RM conftest*
  2472. +])
  2473. +
  2474. +if test x"[$]$2" = xyes; then
  2475. + m4_if([$5], , :, [$5])
  2476. +else
  2477. + m4_if([$6], , :, [$6])
  2478. +fi
  2479. +])# _LT_COMPILER_OPTION
  2480. +
  2481. +# Old name:
  2482. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2483. +dnl aclocal-1.4 backwards compatibility:
  2484. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2485. +
  2486. +
  2487. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2488. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2489. +# ----------------------------------------------------
  2490. +# Check whether the given linker option works
  2491. +AC_DEFUN([_LT_LINKER_OPTION],
  2492. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2493. +m4_require([_LT_DECL_SED])dnl
  2494. +AC_CACHE_CHECK([$1], [$2],
  2495. + [$2=no
  2496. + save_LDFLAGS="$LDFLAGS"
  2497. + LDFLAGS="$LDFLAGS $3"
  2498. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2499. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2500. + # The linker can only warn and ignore the option if not recognized
  2501. + # So say no if there are warnings
  2502. + if test -s conftest.err; then
  2503. + # Append any errors to the config.log.
  2504. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2505. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2506. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2507. + if diff conftest.exp conftest.er2 >/dev/null; then
  2508. + $2=yes
  2509. + fi
  2510. + else
  2511. + $2=yes
  2512. + fi
  2513. + fi
  2514. + $RM -r conftest*
  2515. + LDFLAGS="$save_LDFLAGS"
  2516. +])
  2517. +
  2518. +if test x"[$]$2" = xyes; then
  2519. + m4_if([$4], , :, [$4])
  2520. +else
  2521. + m4_if([$5], , :, [$5])
  2522. +fi
  2523. +])# _LT_LINKER_OPTION
  2524. +
  2525. +# Old name:
  2526. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2527. +dnl aclocal-1.4 backwards compatibility:
  2528. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2529. +
  2530. +
  2531. +# LT_CMD_MAX_LEN
  2532. +#---------------
  2533. +AC_DEFUN([LT_CMD_MAX_LEN],
  2534. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2535. +# find the maximum length of command line arguments
  2536. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2537. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2538. + i=0
  2539. + teststring="ABCD"
  2540. +
  2541. + case $build_os in
  2542. + msdosdjgpp*)
  2543. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2544. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2545. + # during glob expansion). Even if it were fixed, the result of this
  2546. + # check would be larger than it should be.
  2547. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2548. + ;;
  2549. +
  2550. + gnu*)
  2551. + # Under GNU Hurd, this test is not required because there is
  2552. + # no limit to the length of command line arguments.
  2553. + # Libtool will interpret -1 as no limit whatsoever
  2554. + lt_cv_sys_max_cmd_len=-1;
  2555. + ;;
  2556. +
  2557. + cygwin* | mingw* | cegcc*)
  2558. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2559. + # about 5 minutes as the teststring grows exponentially.
  2560. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2561. + # you end up with a "frozen" computer, even though with patience
  2562. + # the test eventually succeeds (with a max line length of 256k).
  2563. + # Instead, let's just punt: use the minimum linelength reported by
  2564. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2565. + lt_cv_sys_max_cmd_len=8192;
  2566. + ;;
  2567. +
  2568. + amigaos*)
  2569. + # On AmigaOS with pdksh, this test takes hours, literally.
  2570. + # So we just punt and use a minimum line length of 8192.
  2571. + lt_cv_sys_max_cmd_len=8192;
  2572. + ;;
  2573. +
  2574. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2575. + # This has been around since 386BSD, at least. Likely further.
  2576. + if test -x /sbin/sysctl; then
  2577. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2578. + elif test -x /usr/sbin/sysctl; then
  2579. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2580. else
  2581. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2582. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2583. fi
  2584. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2585. + # And add a safety zone
  2586. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2587. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2588. ;;
  2589. - hppa*64*)
  2590. - shrext_cmds='.sl'
  2591. - hardcode_into_libs=yes
  2592. - dynamic_linker="$host_os dld.sl"
  2593. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2594. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2595. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2596. - soname_spec='${libname}${release}${shared_ext}$major'
  2597. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2598. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2599. - ;;
  2600. - *)
  2601. - shrext_cmds='.sl'
  2602. - dynamic_linker="$host_os dld.sl"
  2603. - shlibpath_var=SHLIB_PATH
  2604. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2605. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2606. - soname_spec='${libname}${release}${shared_ext}$major'
  2607. +
  2608. + interix*)
  2609. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2610. + lt_cv_sys_max_cmd_len=196608
  2611. ;;
  2612. - esac
  2613. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2614. - postinstall_cmds='chmod 555 $lib'
  2615. - ;;
  2616. -irix5* | irix6* | nonstopux*)
  2617. - case $host_os in
  2618. - nonstopux*) version_type=nonstopux ;;
  2619. - *)
  2620. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2621. - version_type=linux
  2622. - else
  2623. - version_type=irix
  2624. - fi ;;
  2625. - esac
  2626. - need_lib_prefix=no
  2627. - need_version=no
  2628. - soname_spec='${libname}${release}${shared_ext}$major'
  2629. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2630. - case $host_os in
  2631. - irix5* | nonstopux*)
  2632. - libsuff= shlibsuff=
  2633. + osf*)
  2634. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2635. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2636. + # nice to cause kernel panics so lets avoid the loop below.
  2637. + # First set a reasonable default.
  2638. + lt_cv_sys_max_cmd_len=16384
  2639. + #
  2640. + if test -x /sbin/sysconfig; then
  2641. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2642. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2643. + esac
  2644. + fi
  2645. + ;;
  2646. + sco3.2v5*)
  2647. + lt_cv_sys_max_cmd_len=102400
  2648. + ;;
  2649. + sysv5* | sco5v6* | sysv4.2uw2*)
  2650. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2651. + if test -n "$kargmax"; then
  2652. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2653. + else
  2654. + lt_cv_sys_max_cmd_len=32768
  2655. + fi
  2656. ;;
  2657. *)
  2658. - case $LD in # libtool.m4 will add one of these switches to LD
  2659. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2660. - libsuff= shlibsuff= libmagic=32-bit;;
  2661. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2662. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2663. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2664. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2665. - *) libsuff= shlibsuff= libmagic=never-match;;
  2666. - esac
  2667. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2668. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2669. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2670. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2671. + else
  2672. + # Make teststring a little bigger before we do anything with it.
  2673. + # a 1K string should be a reasonable start.
  2674. + for i in 1 2 3 4 5 6 7 8 ; do
  2675. + teststring=$teststring$teststring
  2676. + done
  2677. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2678. + # If test is not a shell built-in, we'll probably end up computing a
  2679. + # maximum length that is only half of the actual maximum length, but
  2680. + # we can't tell.
  2681. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2682. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2683. + test $i != 17 # 1/2 MB should be enough
  2684. + do
  2685. + i=`expr $i + 1`
  2686. + teststring=$teststring$teststring
  2687. + done
  2688. + # Only check the string length outside the loop.
  2689. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2690. + teststring=
  2691. + # Add a significant safety factor because C++ compilers can tack on
  2692. + # massive amounts of additional arguments before passing them to the
  2693. + # linker. It appears as though 1/2 is a usable value.
  2694. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2695. + fi
  2696. ;;
  2697. esac
  2698. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2699. - shlibpath_overrides_runpath=no
  2700. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2701. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2702. - hardcode_into_libs=yes
  2703. - ;;
  2704. +])
  2705. +if test -n $lt_cv_sys_max_cmd_len ; then
  2706. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2707. +else
  2708. + AC_MSG_RESULT(none)
  2709. +fi
  2710. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2711. +_LT_DECL([], [max_cmd_len], [0],
  2712. + [What is the maximum length of a command?])
  2713. +])# LT_CMD_MAX_LEN
  2714. -# No shared lib support for Linux oldld, aout, or coff.
  2715. -linux*oldld* | linux*aout* | linux*coff*)
  2716. - dynamic_linker=no
  2717. - ;;
  2718. +# Old name:
  2719. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2720. +dnl aclocal-1.4 backwards compatibility:
  2721. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2722. -# This must be Linux ELF.
  2723. -linux*)
  2724. - version_type=linux
  2725. - need_lib_prefix=no
  2726. - need_version=no
  2727. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2728. - soname_spec='${libname}${release}${shared_ext}$major'
  2729. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2730. - shlibpath_var=LD_LIBRARY_PATH
  2731. - shlibpath_overrides_runpath=no
  2732. - # This implies no fast_install, which is unacceptable.
  2733. - # Some rework will be needed to allow for fast_install
  2734. - # before this can be enabled.
  2735. - hardcode_into_libs=yes
  2736. - # Append ld.so.conf contents to the search path
  2737. - if test -f /etc/ld.so.conf; then
  2738. - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  2739. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2740. - fi
  2741. +# _LT_HEADER_DLFCN
  2742. +# ----------------
  2743. +m4_defun([_LT_HEADER_DLFCN],
  2744. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2745. +])# _LT_HEADER_DLFCN
  2746. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2747. - # powerpc, because MkLinux only supported shared libraries with the
  2748. - # GNU dynamic linker. Since this was broken with cross compilers,
  2749. - # most powerpc-linux boxes support dynamic linking these days and
  2750. - # people can always --disable-shared, the test was removed, and we
  2751. - # assume the GNU/Linux dynamic linker is in use.
  2752. - dynamic_linker='GNU/Linux ld.so'
  2753. - ;;
  2754. -knetbsd*-gnu)
  2755. - version_type=linux
  2756. - need_lib_prefix=no
  2757. - need_version=no
  2758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2759. - soname_spec='${libname}${release}${shared_ext}$major'
  2760. - shlibpath_var=LD_LIBRARY_PATH
  2761. - shlibpath_overrides_runpath=no
  2762. - hardcode_into_libs=yes
  2763. - dynamic_linker='GNU ld.so'
  2764. - ;;
  2765. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2766. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2767. +# ----------------------------------------------------------------
  2768. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2769. +[m4_require([_LT_HEADER_DLFCN])dnl
  2770. +if test "$cross_compiling" = yes; then :
  2771. + [$4]
  2772. +else
  2773. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2774. + lt_status=$lt_dlunknown
  2775. + cat > conftest.$ac_ext <<_LT_EOF
  2776. +[#line __oline__ "configure"
  2777. +#include "confdefs.h"
  2778. -netbsd*)
  2779. - version_type=sunos
  2780. - need_lib_prefix=no
  2781. - need_version=no
  2782. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2783. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2784. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2785. - dynamic_linker='NetBSD (a.out) ld.so'
  2786. - else
  2787. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2788. - soname_spec='${libname}${release}${shared_ext}$major'
  2789. - dynamic_linker='NetBSD ld.elf_so'
  2790. - fi
  2791. - shlibpath_var=LD_LIBRARY_PATH
  2792. - shlibpath_overrides_runpath=yes
  2793. - hardcode_into_libs=yes
  2794. - ;;
  2795. +#if HAVE_DLFCN_H
  2796. +#include <dlfcn.h>
  2797. +#endif
  2798. -newsos6)
  2799. - version_type=linux
  2800. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2801. - shlibpath_var=LD_LIBRARY_PATH
  2802. - shlibpath_overrides_runpath=yes
  2803. - ;;
  2804. +#include <stdio.h>
  2805. -nto-qnx*)
  2806. - version_type=linux
  2807. - need_lib_prefix=no
  2808. - need_version=no
  2809. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2810. - soname_spec='${libname}${release}${shared_ext}$major'
  2811. - shlibpath_var=LD_LIBRARY_PATH
  2812. - shlibpath_overrides_runpath=yes
  2813. - ;;
  2814. +#ifdef RTLD_GLOBAL
  2815. +# define LT_DLGLOBAL RTLD_GLOBAL
  2816. +#else
  2817. +# ifdef DL_GLOBAL
  2818. +# define LT_DLGLOBAL DL_GLOBAL
  2819. +# else
  2820. +# define LT_DLGLOBAL 0
  2821. +# endif
  2822. +#endif
  2823. -openbsd*)
  2824. - version_type=sunos
  2825. - need_lib_prefix=no
  2826. - need_version=no
  2827. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2828. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2829. - shlibpath_var=LD_LIBRARY_PATH
  2830. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2831. - case $host_os in
  2832. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2833. - shlibpath_overrides_runpath=no
  2834. - ;;
  2835. - *)
  2836. - shlibpath_overrides_runpath=yes
  2837. - ;;
  2838. - esac
  2839. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2840. + find out it does not work in some platform. */
  2841. +#ifndef LT_DLLAZY_OR_NOW
  2842. +# ifdef RTLD_LAZY
  2843. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2844. +# else
  2845. +# ifdef DL_LAZY
  2846. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2847. +# else
  2848. +# ifdef RTLD_NOW
  2849. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2850. +# else
  2851. +# ifdef DL_NOW
  2852. +# define LT_DLLAZY_OR_NOW DL_NOW
  2853. +# else
  2854. +# define LT_DLLAZY_OR_NOW 0
  2855. +# endif
  2856. +# endif
  2857. +# endif
  2858. +# endif
  2859. +#endif
  2860. +
  2861. +void fnord() { int i=42;}
  2862. +int main ()
  2863. +{
  2864. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2865. + int status = $lt_dlunknown;
  2866. +
  2867. + if (self)
  2868. + {
  2869. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2870. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2871. + /* dlclose (self); */
  2872. + }
  2873. else
  2874. - shlibpath_overrides_runpath=yes
  2875. + puts (dlerror ());
  2876. +
  2877. + return status;
  2878. +}]
  2879. +_LT_EOF
  2880. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2881. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2882. + lt_status=$?
  2883. + case x$lt_status in
  2884. + x$lt_dlno_uscore) $1 ;;
  2885. + x$lt_dlneed_uscore) $2 ;;
  2886. + x$lt_dlunknown|x*) $3 ;;
  2887. + esac
  2888. + else :
  2889. + # compilation failed
  2890. + $3
  2891. fi
  2892. - ;;
  2893. +fi
  2894. +rm -fr conftest*
  2895. +])# _LT_TRY_DLOPEN_SELF
  2896. -os2*)
  2897. - libname_spec='$name'
  2898. - shrext_cmds=".dll"
  2899. - need_lib_prefix=no
  2900. - library_names_spec='$libname${shared_ext} $libname.a'
  2901. - dynamic_linker='OS/2 ld.exe'
  2902. - shlibpath_var=LIBPATH
  2903. - ;;
  2904. -osf3* | osf4* | osf5*)
  2905. - version_type=osf
  2906. - need_lib_prefix=no
  2907. - need_version=no
  2908. - soname_spec='${libname}${release}${shared_ext}$major'
  2909. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2910. - shlibpath_var=LD_LIBRARY_PATH
  2911. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2912. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2913. - ;;
  2914. +# LT_SYS_DLOPEN_SELF
  2915. +# ------------------
  2916. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2917. +[m4_require([_LT_HEADER_DLFCN])dnl
  2918. +if test "x$enable_dlopen" != xyes; then
  2919. + enable_dlopen=unknown
  2920. + enable_dlopen_self=unknown
  2921. + enable_dlopen_self_static=unknown
  2922. +else
  2923. + lt_cv_dlopen=no
  2924. + lt_cv_dlopen_libs=
  2925. -sco3.2v5*)
  2926. - version_type=osf
  2927. - soname_spec='${libname}${release}${shared_ext}$major'
  2928. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2929. - shlibpath_var=LD_LIBRARY_PATH
  2930. - ;;
  2931. + case $host_os in
  2932. + beos*)
  2933. + lt_cv_dlopen="load_add_on"
  2934. + lt_cv_dlopen_libs=
  2935. + lt_cv_dlopen_self=yes
  2936. + ;;
  2937. -solaris*)
  2938. - version_type=linux
  2939. - need_lib_prefix=no
  2940. - need_version=no
  2941. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2942. - soname_spec='${libname}${release}${shared_ext}$major'
  2943. - shlibpath_var=LD_LIBRARY_PATH
  2944. - shlibpath_overrides_runpath=yes
  2945. - hardcode_into_libs=yes
  2946. - # ldd complains unless libraries are executable
  2947. - postinstall_cmds='chmod +x $lib'
  2948. - ;;
  2949. + mingw* | pw32* | cegcc*)
  2950. + lt_cv_dlopen="LoadLibrary"
  2951. + lt_cv_dlopen_libs=
  2952. + ;;
  2953. -sunos4*)
  2954. - version_type=sunos
  2955. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2956. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2957. - shlibpath_var=LD_LIBRARY_PATH
  2958. - shlibpath_overrides_runpath=yes
  2959. - if test "$with_gnu_ld" = yes; then
  2960. - need_lib_prefix=no
  2961. - fi
  2962. - need_version=yes
  2963. - ;;
  2964. + cygwin*)
  2965. + lt_cv_dlopen="dlopen"
  2966. + lt_cv_dlopen_libs=
  2967. + ;;
  2968. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2969. - version_type=linux
  2970. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2971. - soname_spec='${libname}${release}${shared_ext}$major'
  2972. - shlibpath_var=LD_LIBRARY_PATH
  2973. - case $host_vendor in
  2974. - sni)
  2975. - shlibpath_overrides_runpath=no
  2976. - need_lib_prefix=no
  2977. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2978. - runpath_var=LD_RUN_PATH
  2979. - ;;
  2980. - siemens)
  2981. - need_lib_prefix=no
  2982. - ;;
  2983. - motorola)
  2984. - need_lib_prefix=no
  2985. - need_version=no
  2986. - shlibpath_overrides_runpath=no
  2987. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2988. - ;;
  2989. + darwin*)
  2990. + # if libdl is installed we need to link against it
  2991. + AC_CHECK_LIB([dl], [dlopen],
  2992. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  2993. + lt_cv_dlopen="dyld"
  2994. + lt_cv_dlopen_libs=
  2995. + lt_cv_dlopen_self=yes
  2996. + ])
  2997. + ;;
  2998. +
  2999. + *)
  3000. + AC_CHECK_FUNC([shl_load],
  3001. + [lt_cv_dlopen="shl_load"],
  3002. + [AC_CHECK_LIB([dld], [shl_load],
  3003. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3004. + [AC_CHECK_FUNC([dlopen],
  3005. + [lt_cv_dlopen="dlopen"],
  3006. + [AC_CHECK_LIB([dl], [dlopen],
  3007. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3008. + [AC_CHECK_LIB([svld], [dlopen],
  3009. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3010. + [AC_CHECK_LIB([dld], [dld_link],
  3011. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3012. + ])
  3013. + ])
  3014. + ])
  3015. + ])
  3016. + ])
  3017. + ;;
  3018. esac
  3019. - ;;
  3020. -sysv4*MP*)
  3021. - if test -d /usr/nec ;then
  3022. - version_type=linux
  3023. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3024. - soname_spec='$libname${shared_ext}.$major'
  3025. - shlibpath_var=LD_LIBRARY_PATH
  3026. + if test "x$lt_cv_dlopen" != xno; then
  3027. + enable_dlopen=yes
  3028. + else
  3029. + enable_dlopen=no
  3030. fi
  3031. - ;;
  3032. -uts4*)
  3033. - version_type=linux
  3034. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3035. - soname_spec='${libname}${release}${shared_ext}$major'
  3036. - shlibpath_var=LD_LIBRARY_PATH
  3037. - ;;
  3038. + case $lt_cv_dlopen in
  3039. + dlopen)
  3040. + save_CPPFLAGS="$CPPFLAGS"
  3041. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3042. -*)
  3043. - dynamic_linker=no
  3044. - ;;
  3045. -esac
  3046. -AC_MSG_RESULT([$dynamic_linker])
  3047. -test "$dynamic_linker" = no && can_build_shared=no
  3048. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3049. + save_LDFLAGS="$LDFLAGS"
  3050. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3051. + save_LIBS="$LIBS"
  3052. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3053. -# _LT_AC_TAGCONFIG
  3054. -# ----------------
  3055. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3056. -[AC_ARG_WITH([tags],
  3057. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3058. - [include additional configurations @<:@automatic@:>@])],
  3059. - [tagnames="$withval"])
  3060. -
  3061. -if test -f "$ltmain" && test -n "$tagnames"; then
  3062. - if test ! -f "${ofile}"; then
  3063. - AC_MSG_WARN([output file `$ofile' does not exist])
  3064. - fi
  3065. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3066. + lt_cv_dlopen_self, [dnl
  3067. + _LT_TRY_DLOPEN_SELF(
  3068. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3069. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3070. + ])
  3071. - if test -z "$LTCC"; then
  3072. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3073. - if test -z "$LTCC"; then
  3074. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3075. - else
  3076. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3077. + if test "x$lt_cv_dlopen_self" = xyes; then
  3078. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3079. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3080. + lt_cv_dlopen_self_static, [dnl
  3081. + _LT_TRY_DLOPEN_SELF(
  3082. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3083. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3084. + ])
  3085. fi
  3086. - fi
  3087. - # Extract list of available tagged configurations in $ofile.
  3088. - # Note that this assumes the entire list is on one line.
  3089. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3090. + CPPFLAGS="$save_CPPFLAGS"
  3091. + LDFLAGS="$save_LDFLAGS"
  3092. + LIBS="$save_LIBS"
  3093. + ;;
  3094. + esac
  3095. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3096. - for tagname in $tagnames; do
  3097. - IFS="$lt_save_ifs"
  3098. - # Check whether tagname contains only valid characters
  3099. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3100. - "") ;;
  3101. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3102. - ;;
  3103. - esac
  3104. + case $lt_cv_dlopen_self in
  3105. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3106. + *) enable_dlopen_self=unknown ;;
  3107. + esac
  3108. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3109. - then
  3110. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3111. - fi
  3112. + case $lt_cv_dlopen_self_static in
  3113. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3114. + *) enable_dlopen_self_static=unknown ;;
  3115. + esac
  3116. +fi
  3117. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3118. + [Whether dlopen is supported])
  3119. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3120. + [Whether dlopen of programs is supported])
  3121. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3122. + [Whether dlopen of statically linked programs is supported])
  3123. +])# LT_SYS_DLOPEN_SELF
  3124. +
  3125. +# Old name:
  3126. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3127. +dnl aclocal-1.4 backwards compatibility:
  3128. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3129. - # Update the list of available tags.
  3130. - if test -n "$tagname"; then
  3131. - echo appending configuration tag \"$tagname\" to $ofile
  3132. -
  3133. - case $tagname in
  3134. - CXX)
  3135. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3136. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3137. - (test "X$CXX" != "Xg++"))) ; then
  3138. - AC_LIBTOOL_LANG_CXX_CONFIG
  3139. - else
  3140. - tagname=""
  3141. - fi
  3142. - ;;
  3143. - F77)
  3144. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3145. - AC_LIBTOOL_LANG_F77_CONFIG
  3146. - else
  3147. - tagname=""
  3148. - fi
  3149. - ;;
  3150. -
  3151. - GCJ)
  3152. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3153. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3154. - else
  3155. - tagname=""
  3156. - fi
  3157. - ;;
  3158. +# _LT_COMPILER_C_O([TAGNAME])
  3159. +# ---------------------------
  3160. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3161. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3162. +m4_defun([_LT_COMPILER_C_O],
  3163. +[m4_require([_LT_DECL_SED])dnl
  3164. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3165. +m4_require([_LT_TAG_COMPILER])dnl
  3166. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3167. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3168. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3169. + $RM -r conftest 2>/dev/null
  3170. + mkdir conftest
  3171. + cd conftest
  3172. + mkdir out
  3173. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3174. - RC)
  3175. - AC_LIBTOOL_LANG_RC_CONFIG
  3176. - ;;
  3177. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3178. + # Insert the option either (1) after the last *FLAGS variable, or
  3179. + # (2) before a word containing "conftest.", or (3) at the end.
  3180. + # Note that $ac_compile itself does not contain backslashes and begins
  3181. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3182. + lt_compile=`echo "$ac_compile" | $SED \
  3183. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3184. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3185. + -e 's:$: $lt_compiler_flag:'`
  3186. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3187. + (eval "$lt_compile" 2>out/conftest.err)
  3188. + ac_status=$?
  3189. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3190. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3191. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3192. + then
  3193. + # The compiler can only warn and ignore the option if not recognized
  3194. + # So say no if there are warnings
  3195. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3196. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3197. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3198. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3199. + fi
  3200. + fi
  3201. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3202. + $RM conftest*
  3203. + # SGI C++ compiler will create directory out/ii_files/ for
  3204. + # template instantiation
  3205. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3206. + $RM out/* && rmdir out
  3207. + cd ..
  3208. + $RM -r conftest
  3209. + $RM conftest*
  3210. +])
  3211. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3212. + [Does compiler simultaneously support -c and -o options?])
  3213. +])# _LT_COMPILER_C_O
  3214. - *)
  3215. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3216. - ;;
  3217. - esac
  3218. - # Append the new tag name to the list of available tags.
  3219. - if test -n "$tagname" ; then
  3220. - available_tags="$available_tags $tagname"
  3221. - fi
  3222. - fi
  3223. - done
  3224. - IFS="$lt_save_ifs"
  3225. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3226. +# ----------------------------------
  3227. +# Check to see if we can do hard links to lock some files if needed
  3228. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3229. +[m4_require([_LT_ENABLE_LOCK])dnl
  3230. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3231. +_LT_COMPILER_C_O([$1])
  3232. - # Now substitute the updated list of available tags.
  3233. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3234. - mv "${ofile}T" "$ofile"
  3235. - chmod +x "$ofile"
  3236. - else
  3237. - rm -f "${ofile}T"
  3238. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3239. +hard_links="nottested"
  3240. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3241. + # do not overwrite the value of need_locks provided by the user
  3242. + AC_MSG_CHECKING([if we can lock with hard links])
  3243. + hard_links=yes
  3244. + $RM conftest*
  3245. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3246. + touch conftest.a
  3247. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3248. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3249. + AC_MSG_RESULT([$hard_links])
  3250. + if test "$hard_links" = no; then
  3251. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3252. + need_locks=warn
  3253. fi
  3254. +else
  3255. + need_locks=no
  3256. fi
  3257. -])# _LT_AC_TAGCONFIG
  3258. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3259. +])# _LT_COMPILER_FILE_LOCKS
  3260. -# AC_LIBTOOL_DLOPEN
  3261. -# -----------------
  3262. -# enable checks for dlopen support
  3263. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3264. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3265. -])# AC_LIBTOOL_DLOPEN
  3266. +# _LT_CHECK_OBJDIR
  3267. +# ----------------
  3268. +m4_defun([_LT_CHECK_OBJDIR],
  3269. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3270. +[rm -f .libs 2>/dev/null
  3271. +mkdir .libs 2>/dev/null
  3272. +if test -d .libs; then
  3273. + lt_cv_objdir=.libs
  3274. +else
  3275. + # MS-DOS does not allow filenames that begin with a dot.
  3276. + lt_cv_objdir=_libs
  3277. +fi
  3278. +rmdir .libs 2>/dev/null])
  3279. +objdir=$lt_cv_objdir
  3280. +_LT_DECL([], [objdir], [0],
  3281. + [The name of the directory that contains temporary libtool files])dnl
  3282. +m4_pattern_allow([LT_OBJDIR])dnl
  3283. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3284. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3285. +])# _LT_CHECK_OBJDIR
  3286. -# AC_LIBTOOL_WIN32_DLL
  3287. -# --------------------
  3288. -# declare package support for building win32 dll's
  3289. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3290. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3291. -])# AC_LIBTOOL_WIN32_DLL
  3292. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3293. +# --------------------------------------
  3294. +# Check hardcoding attributes.
  3295. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3296. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3297. +_LT_TAGVAR(hardcode_action, $1)=
  3298. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3299. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3300. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3301. + # We can hardcode non-existent directories.
  3302. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3303. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3304. + # have to relink, otherwise we might link with an installed library
  3305. + # when we should be linking with a yet-to-be-installed one
  3306. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3307. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3308. + # Linking always hardcodes the temporary library directory.
  3309. + _LT_TAGVAR(hardcode_action, $1)=relink
  3310. + else
  3311. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3312. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3313. + fi
  3314. +else
  3315. + # We cannot hardcode anything, or else we can only hardcode existing
  3316. + # directories.
  3317. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3318. +fi
  3319. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3320. -# AC_ENABLE_SHARED([DEFAULT])
  3321. -# ---------------------------
  3322. -# implement the --enable-shared flag
  3323. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3324. -AC_DEFUN([AC_ENABLE_SHARED],
  3325. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3326. -AC_ARG_ENABLE([shared],
  3327. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3328. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3329. - [p=${PACKAGE-default}
  3330. - case $enableval in
  3331. - yes) enable_shared=yes ;;
  3332. - no) enable_shared=no ;;
  3333. - *)
  3334. - enable_shared=no
  3335. - # Look at the argument we got. We use all the common list separators.
  3336. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3337. - for pkg in $enableval; do
  3338. - IFS="$lt_save_ifs"
  3339. - if test "X$pkg" = "X$p"; then
  3340. - enable_shared=yes
  3341. - fi
  3342. - done
  3343. - IFS="$lt_save_ifs"
  3344. - ;;
  3345. - esac],
  3346. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3347. -])# AC_ENABLE_SHARED
  3348. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3349. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3350. + # Fast installation is not supported
  3351. + enable_fast_install=no
  3352. +elif test "$shlibpath_overrides_runpath" = yes ||
  3353. + test "$enable_shared" = no; then
  3354. + # Fast installation is not necessary
  3355. + enable_fast_install=needless
  3356. +fi
  3357. +_LT_TAGDECL([], [hardcode_action], [0],
  3358. + [How to hardcode a shared library path into an executable])
  3359. +])# _LT_LINKER_HARDCODE_LIBPATH
  3360. -# AC_DISABLE_SHARED
  3361. -# -----------------
  3362. -#- set the default shared flag to --disable-shared
  3363. -AC_DEFUN([AC_DISABLE_SHARED],
  3364. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3365. -AC_ENABLE_SHARED(no)
  3366. -])# AC_DISABLE_SHARED
  3367. +# _LT_CMD_STRIPLIB
  3368. +# ----------------
  3369. +m4_defun([_LT_CMD_STRIPLIB],
  3370. +[m4_require([_LT_DECL_EGREP])
  3371. +striplib=
  3372. +old_striplib=
  3373. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3374. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3375. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3376. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3377. + AC_MSG_RESULT([yes])
  3378. +else
  3379. +# FIXME - insert some real tests, host_os isn't really good enough
  3380. + case $host_os in
  3381. + darwin*)
  3382. + if test -n "$STRIP" ; then
  3383. + striplib="$STRIP -x"
  3384. + old_striplib="$STRIP -S"
  3385. + AC_MSG_RESULT([yes])
  3386. + else
  3387. + AC_MSG_RESULT([no])
  3388. + fi
  3389. + ;;
  3390. + *)
  3391. + AC_MSG_RESULT([no])
  3392. + ;;
  3393. + esac
  3394. +fi
  3395. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3396. +_LT_DECL([], [striplib], [1])
  3397. +])# _LT_CMD_STRIPLIB
  3398. -# AC_ENABLE_STATIC([DEFAULT])
  3399. -# ---------------------------
  3400. -# implement the --enable-static flag
  3401. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3402. -AC_DEFUN([AC_ENABLE_STATIC],
  3403. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3404. -AC_ARG_ENABLE([static],
  3405. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3406. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3407. - [p=${PACKAGE-default}
  3408. - case $enableval in
  3409. - yes) enable_static=yes ;;
  3410. - no) enable_static=no ;;
  3411. - *)
  3412. - enable_static=no
  3413. - # Look at the argument we got. We use all the common list separators.
  3414. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3415. - for pkg in $enableval; do
  3416. - IFS="$lt_save_ifs"
  3417. - if test "X$pkg" = "X$p"; then
  3418. - enable_static=yes
  3419. - fi
  3420. - done
  3421. - IFS="$lt_save_ifs"
  3422. - ;;
  3423. - esac],
  3424. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3425. -])# AC_ENABLE_STATIC
  3426. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3427. +# -----------------------------
  3428. +# PORTME Fill in your ld.so characteristics
  3429. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3430. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3431. +m4_require([_LT_DECL_EGREP])dnl
  3432. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3433. +m4_require([_LT_DECL_OBJDUMP])dnl
  3434. +m4_require([_LT_DECL_SED])dnl
  3435. +AC_MSG_CHECKING([dynamic linker characteristics])
  3436. +m4_if([$1],
  3437. + [], [
  3438. +if test "$GCC" = yes; then
  3439. + case $host_os in
  3440. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3441. + *) lt_awk_arg="/^libraries:/" ;;
  3442. + esac
  3443. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3444. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3445. + # if the path contains ";" then we assume it to be the separator
  3446. + # otherwise default to the standard path separator (i.e. ":") - it is
  3447. + # assumed that no part of a normal pathname contains ";" but that should
  3448. + # okay in the real world where ";" in dirpaths is itself problematic.
  3449. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3450. + else
  3451. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3452. + fi
  3453. + # Ok, now we have the path, separated by spaces, we can step through it
  3454. + # and add multilib dir if necessary.
  3455. + lt_tmp_lt_search_path_spec=
  3456. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3457. + for lt_sys_path in $lt_search_path_spec; do
  3458. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3459. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3460. + else
  3461. + test -d "$lt_sys_path" && \
  3462. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3463. + fi
  3464. + done
  3465. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3466. +BEGIN {RS=" "; FS="/|\n";} {
  3467. + lt_foo="";
  3468. + lt_count=0;
  3469. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3470. + if ($lt_i != "" && $lt_i != ".") {
  3471. + if ($lt_i == "..") {
  3472. + lt_count++;
  3473. + } else {
  3474. + if (lt_count == 0) {
  3475. + lt_foo="/" $lt_i lt_foo;
  3476. + } else {
  3477. + lt_count--;
  3478. + }
  3479. + }
  3480. + }
  3481. + }
  3482. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3483. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3484. +}'`
  3485. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3486. +else
  3487. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3488. +fi])
  3489. +library_names_spec=
  3490. +libname_spec='lib$name'
  3491. +soname_spec=
  3492. +shrext_cmds=".so"
  3493. +postinstall_cmds=
  3494. +postuninstall_cmds=
  3495. +finish_cmds=
  3496. +finish_eval=
  3497. +shlibpath_var=
  3498. +shlibpath_overrides_runpath=unknown
  3499. +version_type=none
  3500. +dynamic_linker="$host_os ld.so"
  3501. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3502. +need_lib_prefix=unknown
  3503. +hardcode_into_libs=no
  3504. +# when you set need_version to no, make sure it does not cause -set_version
  3505. +# flags to be left without arguments
  3506. +need_version=unknown
  3507. -# AC_DISABLE_STATIC
  3508. -# -----------------
  3509. -# set the default static flag to --disable-static
  3510. -AC_DEFUN([AC_DISABLE_STATIC],
  3511. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3512. -AC_ENABLE_STATIC(no)
  3513. -])# AC_DISABLE_STATIC
  3514. +case $host_os in
  3515. +aix3*)
  3516. + version_type=linux
  3517. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3518. + shlibpath_var=LIBPATH
  3519. + # AIX 3 has no versioning support, so we append a major version to the name.
  3520. + soname_spec='${libname}${release}${shared_ext}$major'
  3521. + ;;
  3522. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3523. -# ---------------------------------
  3524. -# implement the --enable-fast-install flag
  3525. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3526. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3527. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3528. -AC_ARG_ENABLE([fast-install],
  3529. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3530. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3531. - [p=${PACKAGE-default}
  3532. - case $enableval in
  3533. - yes) enable_fast_install=yes ;;
  3534. - no) enable_fast_install=no ;;
  3535. - *)
  3536. - enable_fast_install=no
  3537. - # Look at the argument we got. We use all the common list separators.
  3538. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3539. - for pkg in $enableval; do
  3540. - IFS="$lt_save_ifs"
  3541. - if test "X$pkg" = "X$p"; then
  3542. - enable_fast_install=yes
  3543. - fi
  3544. - done
  3545. - IFS="$lt_save_ifs"
  3546. +aix[[4-9]]*)
  3547. + version_type=linux
  3548. + need_lib_prefix=no
  3549. + need_version=no
  3550. + hardcode_into_libs=yes
  3551. + if test "$host_cpu" = ia64; then
  3552. + # AIX 5 supports IA64
  3553. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3554. + shlibpath_var=LD_LIBRARY_PATH
  3555. + else
  3556. + # With GCC up to 2.95.x, collect2 would create an import file
  3557. + # for dependence libraries. The import file would start with
  3558. + # the line `#! .'. This would cause the generated library to
  3559. + # depend on `.', always an invalid library. This was fixed in
  3560. + # development snapshots of GCC prior to 3.0.
  3561. + case $host_os in
  3562. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3563. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3564. + echo ' yes '
  3565. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3566. + :
  3567. + else
  3568. + can_build_shared=no
  3569. + fi
  3570. ;;
  3571. - esac],
  3572. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3573. -])# AC_ENABLE_FAST_INSTALL
  3574. -
  3575. -
  3576. -# AC_DISABLE_FAST_INSTALL
  3577. -# -----------------------
  3578. -# set the default to --disable-fast-install
  3579. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3580. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3581. -AC_ENABLE_FAST_INSTALL(no)
  3582. -])# AC_DISABLE_FAST_INSTALL
  3583. -
  3584. -
  3585. -# AC_LIBTOOL_PICMODE([MODE])
  3586. -# --------------------------
  3587. -# implement the --with-pic flag
  3588. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3589. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3590. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3591. -pic_mode=ifelse($#,1,$1,default)
  3592. -])# AC_LIBTOOL_PICMODE
  3593. -
  3594. -
  3595. -# AC_PROG_EGREP
  3596. -# -------------
  3597. -# This is predefined starting with Autoconf 2.54, so this conditional
  3598. -# definition can be removed once we require Autoconf 2.54 or later.
  3599. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3600. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3601. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3602. - then ac_cv_prog_egrep='grep -E'
  3603. - else ac_cv_prog_egrep='egrep'
  3604. - fi])
  3605. - EGREP=$ac_cv_prog_egrep
  3606. - AC_SUBST([EGREP])
  3607. -])])
  3608. -
  3609. -
  3610. -# AC_PATH_TOOL_PREFIX
  3611. -# -------------------
  3612. -# find a file program which can recognise shared library
  3613. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3614. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3615. -AC_MSG_CHECKING([for $1])
  3616. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3617. -[case $MAGIC_CMD in
  3618. -[[\\/*] | ?:[\\/]*])
  3619. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3620. + esac
  3621. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3622. + # soname into executable. Probably we can add versioning support to
  3623. + # collect2, so additional links can be useful in future.
  3624. + if test "$aix_use_runtimelinking" = yes; then
  3625. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3626. + # instead of lib<name>.a to let people know that these are not
  3627. + # typical AIX shared libraries.
  3628. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3629. + else
  3630. + # We preserve .a as extension for shared libraries through AIX4.2
  3631. + # and later when we are not doing run time linking.
  3632. + library_names_spec='${libname}${release}.a $libname.a'
  3633. + soname_spec='${libname}${release}${shared_ext}$major'
  3634. + fi
  3635. + shlibpath_var=LIBPATH
  3636. + fi
  3637. ;;
  3638. -*)
  3639. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3640. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3641. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3642. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3643. -dnl not every word. This closes a longstanding sh security hole.
  3644. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3645. - for ac_dir in $ac_dummy; do
  3646. - IFS="$lt_save_ifs"
  3647. - test -z "$ac_dir" && ac_dir=.
  3648. - if test -f $ac_dir/$1; then
  3649. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3650. - if test -n "$file_magic_test_file"; then
  3651. - case $deplibs_check_method in
  3652. - "file_magic "*)
  3653. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3654. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3655. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3656. - $EGREP "$file_magic_regex" > /dev/null; then
  3657. - :
  3658. - else
  3659. - cat <<EOF 1>&2
  3660. -*** Warning: the command libtool uses to detect shared libraries,
  3661. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3662. -*** The result is that libtool may fail to recognize shared libraries
  3663. -*** as such. This will affect the creation of libtool libraries that
  3664. -*** depend on shared libraries, but programs linked with such libtool
  3665. -*** libraries will work regardless of this problem. Nevertheless, you
  3666. -*** may want to report the problem to your system manager and/or to
  3667. -*** bug-libtool@gnu.org
  3668. +amigaos*)
  3669. + case $host_cpu in
  3670. + powerpc)
  3671. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3672. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3673. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3674. + ;;
  3675. + m68k)
  3676. + library_names_spec='$libname.ixlibrary $libname.a'
  3677. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3678. + 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'
  3679. + ;;
  3680. + esac
  3681. + ;;
  3682. -EOF
  3683. - fi ;;
  3684. - esac
  3685. - fi
  3686. - break
  3687. - fi
  3688. - done
  3689. - IFS="$lt_save_ifs"
  3690. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3691. +beos*)
  3692. + library_names_spec='${libname}${shared_ext}'
  3693. + dynamic_linker="$host_os ld.so"
  3694. + shlibpath_var=LIBRARY_PATH
  3695. ;;
  3696. -esac])
  3697. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3698. -if test -n "$MAGIC_CMD"; then
  3699. - AC_MSG_RESULT($MAGIC_CMD)
  3700. -else
  3701. - AC_MSG_RESULT(no)
  3702. -fi
  3703. -])# AC_PATH_TOOL_PREFIX
  3704. +bsdi[[45]]*)
  3705. + version_type=linux
  3706. + need_version=no
  3707. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3708. + soname_spec='${libname}${release}${shared_ext}$major'
  3709. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3710. + shlibpath_var=LD_LIBRARY_PATH
  3711. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3712. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3713. + # the default ld.so.conf also contains /usr/contrib/lib and
  3714. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3715. + # libtool to hard-code these into programs
  3716. + ;;
  3717. -# AC_PATH_MAGIC
  3718. -# -------------
  3719. -# find a file program which can recognise a shared library
  3720. -AC_DEFUN([AC_PATH_MAGIC],
  3721. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3722. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3723. - if test -n "$ac_tool_prefix"; then
  3724. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3725. - else
  3726. - MAGIC_CMD=:
  3727. - fi
  3728. -fi
  3729. -])# AC_PATH_MAGIC
  3730. +cygwin* | mingw* | pw32* | cegcc*)
  3731. + version_type=windows
  3732. + shrext_cmds=".dll"
  3733. + need_version=no
  3734. + need_lib_prefix=no
  3735. + case $GCC,$host_os in
  3736. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3737. + library_names_spec='$libname.dll.a'
  3738. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3739. + postinstall_cmds='base_file=`basename \${file}`~
  3740. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3741. + dldir=$destdir/`dirname \$dlpath`~
  3742. + test -d \$dldir || mkdir -p \$dldir~
  3743. + $install_prog $dir/$dlname \$dldir/$dlname~
  3744. + chmod a+x \$dldir/$dlname~
  3745. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3746. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3747. + fi'
  3748. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3749. + dlpath=$dir/\$dldll~
  3750. + $RM \$dlpath'
  3751. + shlibpath_overrides_runpath=yes
  3752. -# AC_PROG_LD
  3753. -# ----------
  3754. -# find the pathname to the GNU or non-GNU linker
  3755. -AC_DEFUN([AC_PROG_LD],
  3756. -[AC_ARG_WITH([gnu-ld],
  3757. - [AC_HELP_STRING([--with-gnu-ld],
  3758. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3759. - [test "$withval" = no || with_gnu_ld=yes],
  3760. - [with_gnu_ld=no])
  3761. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3762. -AC_REQUIRE([AC_PROG_CC])dnl
  3763. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3764. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3765. -ac_prog=ld
  3766. -if test "$GCC" = yes; then
  3767. - # Check if gcc -print-prog-name=ld gives a path.
  3768. - AC_MSG_CHECKING([for ld used by $CC])
  3769. - case $host in
  3770. - *-*-mingw*)
  3771. - # gcc leaves a trailing carriage return which upsets mingw
  3772. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3773. - *)
  3774. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3775. - esac
  3776. - case $ac_prog in
  3777. - # Accept absolute paths.
  3778. - [[\\/]]* | ?:[[\\/]]*)
  3779. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3780. - # Canonicalize the pathname of ld
  3781. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3782. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3783. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3784. - done
  3785. - test -z "$LD" && LD="$ac_prog"
  3786. + case $host_os in
  3787. + cygwin*)
  3788. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3789. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3790. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3791. ;;
  3792. - "")
  3793. - # If it fails, then pretend we aren't using GCC.
  3794. - ac_prog=ld
  3795. + mingw* | cegcc*)
  3796. + # MinGW DLLs use traditional 'lib' prefix
  3797. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3798. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3799. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3800. + # It is most probably a Windows format PATH printed by
  3801. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3802. + # path with ; separators, and with drive letters. We can handle the
  3803. + # drive letters (cygwin fileutils understands them), so leave them,
  3804. + # especially as we might pass files found there to a mingw objdump,
  3805. + # which wouldn't understand a cygwinified path. Ahh.
  3806. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3807. + else
  3808. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3809. + fi
  3810. + ;;
  3811. + pw32*)
  3812. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3813. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3814. + ;;
  3815. + esac
  3816. ;;
  3817. +
  3818. *)
  3819. - # If it is relative, then search for the first ld in PATH.
  3820. - with_gnu_ld=unknown
  3821. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  3822. ;;
  3823. esac
  3824. -elif test "$with_gnu_ld" = yes; then
  3825. - AC_MSG_CHECKING([for GNU ld])
  3826. -else
  3827. - AC_MSG_CHECKING([for non-GNU ld])
  3828. -fi
  3829. -AC_CACHE_VAL(lt_cv_path_LD,
  3830. -[if test -z "$LD"; then
  3831. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3832. - for ac_dir in $PATH; do
  3833. - IFS="$lt_save_ifs"
  3834. - test -z "$ac_dir" && ac_dir=.
  3835. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3836. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3837. - # Check to see if the program is GNU ld. I'd rather use --version,
  3838. - # but apparently some GNU ld's only accept -v.
  3839. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3840. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3841. - *GNU* | *'with BFD'*)
  3842. - test "$with_gnu_ld" != no && break
  3843. - ;;
  3844. - *)
  3845. - test "$with_gnu_ld" != yes && break
  3846. - ;;
  3847. - esac
  3848. - fi
  3849. - done
  3850. - IFS="$lt_save_ifs"
  3851. -else
  3852. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3853. -fi])
  3854. -LD="$lt_cv_path_LD"
  3855. -if test -n "$LD"; then
  3856. - AC_MSG_RESULT($LD)
  3857. -else
  3858. - AC_MSG_RESULT(no)
  3859. -fi
  3860. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3861. -AC_PROG_LD_GNU
  3862. -])# AC_PROG_LD
  3863. -
  3864. -
  3865. -# AC_PROG_LD_GNU
  3866. -# --------------
  3867. -AC_DEFUN([AC_PROG_LD_GNU],
  3868. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3869. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3870. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3871. -case `$LD -v 2>&1 </dev/null` in
  3872. -*GNU* | *'with BFD'*)
  3873. - lt_cv_prog_gnu_ld=yes
  3874. - ;;
  3875. -*)
  3876. - lt_cv_prog_gnu_ld=no
  3877. + dynamic_linker='Win32 ld.exe'
  3878. + # FIXME: first we should search . and the directory the executable is in
  3879. + shlibpath_var=PATH
  3880. ;;
  3881. -esac])
  3882. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3883. -])# AC_PROG_LD_GNU
  3884. +darwin* | rhapsody*)
  3885. + dynamic_linker="$host_os dyld"
  3886. + version_type=darwin
  3887. + need_lib_prefix=no
  3888. + need_version=no
  3889. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3890. + soname_spec='${libname}${release}${major}$shared_ext'
  3891. + shlibpath_overrides_runpath=yes
  3892. + shlibpath_var=DYLD_LIBRARY_PATH
  3893. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3894. +m4_if([$1], [],[
  3895. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  3896. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3897. + ;;
  3898. -# AC_PROG_LD_RELOAD_FLAG
  3899. -# ----------------------
  3900. -# find reload flag for linker
  3901. -# -- PORTME Some linkers may need a different reload flag.
  3902. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3903. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3904. - lt_cv_ld_reload_flag,
  3905. - [lt_cv_ld_reload_flag='-r'])
  3906. -reload_flag=$lt_cv_ld_reload_flag
  3907. -case $reload_flag in
  3908. -"" | " "*) ;;
  3909. -*) reload_flag=" $reload_flag" ;;
  3910. -esac
  3911. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3912. -case $host_os in
  3913. - darwin*)
  3914. - if test "$GCC" = yes; then
  3915. - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3916. - else
  3917. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3918. - fi
  3919. - ;;
  3920. -esac
  3921. -])# AC_PROG_LD_RELOAD_FLAG
  3922. +dgux*)
  3923. + version_type=linux
  3924. + need_lib_prefix=no
  3925. + need_version=no
  3926. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  3927. + soname_spec='${libname}${release}${shared_ext}$major'
  3928. + shlibpath_var=LD_LIBRARY_PATH
  3929. + ;;
  3930. +freebsd1*)
  3931. + dynamic_linker=no
  3932. + ;;
  3933. -# AC_DEPLIBS_CHECK_METHOD
  3934. -# -----------------------
  3935. -# how to check for library dependencies
  3936. -# -- PORTME fill in with the dynamic library characteristics
  3937. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3938. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3939. -lt_cv_deplibs_check_method,
  3940. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3941. -lt_cv_file_magic_test_file=
  3942. -lt_cv_deplibs_check_method='unknown'
  3943. -# Need to set the preceding variable on all platforms that support
  3944. -# interlibrary dependencies.
  3945. -# 'none' -- dependencies not supported.
  3946. -# `unknown' -- same as none, but documents that we really don't know.
  3947. -# 'pass_all' -- all dependencies passed with no checks.
  3948. -# 'test_compile' -- check by making test program.
  3949. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3950. -# which responds to the $file_magic_cmd with a given extended regex.
  3951. -# If you have `file' or equivalent on your system and you're not sure
  3952. -# whether `pass_all' will *always* work, you probably want this one.
  3953. -
  3954. -case $host_os in
  3955. -aix4* | aix5*)
  3956. - lt_cv_deplibs_check_method=pass_all
  3957. - ;;
  3958. -
  3959. -beos*)
  3960. - lt_cv_deplibs_check_method=pass_all
  3961. - ;;
  3962. -
  3963. -bsdi[[45]]*)
  3964. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3965. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3966. - lt_cv_file_magic_test_file=/shlib/libc.so
  3967. - ;;
  3968. -
  3969. -cygwin*)
  3970. - # func_win32_libid is a shell function defined in ltmain.sh
  3971. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3972. - lt_cv_file_magic_cmd='func_win32_libid'
  3973. - ;;
  3974. -
  3975. -mingw* | pw32*)
  3976. - # Base MSYS/MinGW do not provide the 'file' command needed by
  3977. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3978. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3979. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  3980. - ;;
  3981. -
  3982. -darwin* | rhapsody*)
  3983. - lt_cv_deplibs_check_method=pass_all
  3984. - ;;
  3985. -
  3986. -freebsd* | kfreebsd*-gnu)
  3987. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3988. - case $host_cpu in
  3989. - i*86 )
  3990. - # Not sure whether the presence of OpenBSD here was a mistake.
  3991. - # Let's accept both of them until this is cleared up.
  3992. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3993. - lt_cv_file_magic_cmd=/usr/bin/file
  3994. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3995. - ;;
  3996. - esac
  3997. +freebsd* | dragonfly*)
  3998. + # DragonFly does not have aout. When/if they implement a new
  3999. + # versioning mechanism, adjust this.
  4000. + if test -x /usr/bin/objformat; then
  4001. + objformat=`/usr/bin/objformat`
  4002. else
  4003. - lt_cv_deplibs_check_method=pass_all
  4004. + case $host_os in
  4005. + freebsd[[123]]*) objformat=aout ;;
  4006. + *) objformat=elf ;;
  4007. + esac
  4008. fi
  4009. + version_type=freebsd-$objformat
  4010. + case $version_type in
  4011. + freebsd-elf*)
  4012. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4013. + need_version=no
  4014. + need_lib_prefix=no
  4015. + ;;
  4016. + freebsd-*)
  4017. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4018. + need_version=yes
  4019. + ;;
  4020. + esac
  4021. + shlibpath_var=LD_LIBRARY_PATH
  4022. + case $host_os in
  4023. + freebsd2*)
  4024. + shlibpath_overrides_runpath=yes
  4025. + ;;
  4026. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4027. + shlibpath_overrides_runpath=yes
  4028. + hardcode_into_libs=yes
  4029. + ;;
  4030. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4031. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4032. + shlibpath_overrides_runpath=no
  4033. + hardcode_into_libs=yes
  4034. + ;;
  4035. + *) # from 4.6 on, and DragonFly
  4036. + shlibpath_overrides_runpath=yes
  4037. + hardcode_into_libs=yes
  4038. + ;;
  4039. + esac
  4040. ;;
  4041. gnu*)
  4042. - lt_cv_deplibs_check_method=pass_all
  4043. + version_type=linux
  4044. + need_lib_prefix=no
  4045. + need_version=no
  4046. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4047. + soname_spec='${libname}${release}${shared_ext}$major'
  4048. + shlibpath_var=LD_LIBRARY_PATH
  4049. + hardcode_into_libs=yes
  4050. ;;
  4051. -hpux10.20* | hpux11*)
  4052. - lt_cv_file_magic_cmd=/usr/bin/file
  4053. - case "$host_cpu" in
  4054. +hpux9* | hpux10* | hpux11*)
  4055. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4056. + # link against other versions.
  4057. + version_type=sunos
  4058. + need_lib_prefix=no
  4059. + need_version=no
  4060. + case $host_cpu in
  4061. ia64*)
  4062. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4063. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4064. + shrext_cmds='.so'
  4065. + hardcode_into_libs=yes
  4066. + dynamic_linker="$host_os dld.so"
  4067. + shlibpath_var=LD_LIBRARY_PATH
  4068. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4069. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4070. + soname_spec='${libname}${release}${shared_ext}$major'
  4071. + if test "X$HPUX_IA64_MODE" = X32; then
  4072. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4073. + else
  4074. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4075. + fi
  4076. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4077. ;;
  4078. hppa*64*)
  4079. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  4080. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4081. + shrext_cmds='.sl'
  4082. + hardcode_into_libs=yes
  4083. + dynamic_linker="$host_os dld.sl"
  4084. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4085. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4086. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4087. + soname_spec='${libname}${release}${shared_ext}$major'
  4088. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4089. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4090. ;;
  4091. *)
  4092. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4093. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4094. + shrext_cmds='.sl'
  4095. + dynamic_linker="$host_os dld.sl"
  4096. + shlibpath_var=SHLIB_PATH
  4097. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4098. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4099. + soname_spec='${libname}${release}${shared_ext}$major'
  4100. ;;
  4101. esac
  4102. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4103. + postinstall_cmds='chmod 555 $lib'
  4104. + ;;
  4105. +
  4106. +interix[[3-9]]*)
  4107. + version_type=linux
  4108. + need_lib_prefix=no
  4109. + need_version=no
  4110. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4111. + soname_spec='${libname}${release}${shared_ext}$major'
  4112. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4113. + shlibpath_var=LD_LIBRARY_PATH
  4114. + shlibpath_overrides_runpath=no
  4115. + hardcode_into_libs=yes
  4116. ;;
  4117. irix5* | irix6* | nonstopux*)
  4118. - case $LD in
  4119. - *-32|*"-32 ") libmagic=32-bit;;
  4120. - *-n32|*"-n32 ") libmagic=N32;;
  4121. - *-64|*"-64 ") libmagic=64-bit;;
  4122. - *) libmagic=never-match;;
  4123. + case $host_os in
  4124. + nonstopux*) version_type=nonstopux ;;
  4125. + *)
  4126. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4127. + version_type=linux
  4128. + else
  4129. + version_type=irix
  4130. + fi ;;
  4131. esac
  4132. - lt_cv_deplibs_check_method=pass_all
  4133. + need_lib_prefix=no
  4134. + need_version=no
  4135. + soname_spec='${libname}${release}${shared_ext}$major'
  4136. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4137. + case $host_os in
  4138. + irix5* | nonstopux*)
  4139. + libsuff= shlibsuff=
  4140. + ;;
  4141. + *)
  4142. + case $LD in # libtool.m4 will add one of these switches to LD
  4143. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4144. + libsuff= shlibsuff= libmagic=32-bit;;
  4145. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4146. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4147. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4148. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4149. + *) libsuff= shlibsuff= libmagic=never-match;;
  4150. + esac
  4151. + ;;
  4152. + esac
  4153. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4154. + shlibpath_overrides_runpath=no
  4155. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4156. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4157. + hardcode_into_libs=yes
  4158. ;;
  4159. -# This must be Linux ELF.
  4160. -linux*)
  4161. - lt_cv_deplibs_check_method=pass_all
  4162. +# No shared lib support for Linux oldld, aout, or coff.
  4163. +linux*oldld* | linux*aout* | linux*coff*)
  4164. + dynamic_linker=no
  4165. ;;
  4166. -netbsd*)
  4167. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4168. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4169. - else
  4170. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4171. +# This must be Linux ELF.
  4172. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4173. + version_type=linux
  4174. + need_lib_prefix=no
  4175. + need_version=no
  4176. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4177. + soname_spec='${libname}${release}${shared_ext}$major'
  4178. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4179. + shlibpath_var=LD_LIBRARY_PATH
  4180. + shlibpath_overrides_runpath=no
  4181. + # Some binutils ld are patched to set DT_RUNPATH
  4182. + save_LDFLAGS=$LDFLAGS
  4183. + save_libdir=$libdir
  4184. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4185. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4186. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4187. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4188. + [shlibpath_overrides_runpath=yes])])
  4189. + LDFLAGS=$save_LDFLAGS
  4190. + libdir=$save_libdir
  4191. +
  4192. + # This implies no fast_install, which is unacceptable.
  4193. + # Some rework will be needed to allow for fast_install
  4194. + # before this can be enabled.
  4195. + hardcode_into_libs=yes
  4196. +
  4197. + # Append ld.so.conf contents to the search path
  4198. + if test -f /etc/ld.so.conf; then
  4199. + 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' ' '`
  4200. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4201. fi
  4202. - ;;
  4203. -newos6*)
  4204. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4205. - lt_cv_file_magic_cmd=/usr/bin/file
  4206. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4207. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4208. + # powerpc, because MkLinux only supported shared libraries with the
  4209. + # GNU dynamic linker. Since this was broken with cross compilers,
  4210. + # most powerpc-linux boxes support dynamic linking these days and
  4211. + # people can always --disable-shared, the test was removed, and we
  4212. + # assume the GNU/Linux dynamic linker is in use.
  4213. + dynamic_linker='GNU/Linux ld.so'
  4214. ;;
  4215. -nto-qnx*)
  4216. - lt_cv_deplibs_check_method=unknown
  4217. +netbsdelf*-gnu)
  4218. + version_type=linux
  4219. + need_lib_prefix=no
  4220. + need_version=no
  4221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4222. + soname_spec='${libname}${release}${shared_ext}$major'
  4223. + shlibpath_var=LD_LIBRARY_PATH
  4224. + shlibpath_overrides_runpath=no
  4225. + hardcode_into_libs=yes
  4226. + dynamic_linker='NetBSD ld.elf_so'
  4227. ;;
  4228. -openbsd*)
  4229. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4230. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4231. +netbsd*)
  4232. + version_type=sunos
  4233. + need_lib_prefix=no
  4234. + need_version=no
  4235. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4236. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4237. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4238. + dynamic_linker='NetBSD (a.out) ld.so'
  4239. else
  4240. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4241. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4242. + soname_spec='${libname}${release}${shared_ext}$major'
  4243. + dynamic_linker='NetBSD ld.elf_so'
  4244. fi
  4245. + shlibpath_var=LD_LIBRARY_PATH
  4246. + shlibpath_overrides_runpath=yes
  4247. + hardcode_into_libs=yes
  4248. ;;
  4249. -osf3* | osf4* | osf5*)
  4250. - lt_cv_deplibs_check_method=pass_all
  4251. - ;;
  4252. -
  4253. -sco3.2v5*)
  4254. - lt_cv_deplibs_check_method=pass_all
  4255. +newsos6)
  4256. + version_type=linux
  4257. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4258. + shlibpath_var=LD_LIBRARY_PATH
  4259. + shlibpath_overrides_runpath=yes
  4260. ;;
  4261. -solaris*)
  4262. - lt_cv_deplibs_check_method=pass_all
  4263. +*nto* | *qnx*)
  4264. + version_type=qnx
  4265. + need_lib_prefix=no
  4266. + need_version=no
  4267. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4268. + soname_spec='${libname}${release}${shared_ext}$major'
  4269. + shlibpath_var=LD_LIBRARY_PATH
  4270. + shlibpath_overrides_runpath=no
  4271. + hardcode_into_libs=yes
  4272. + dynamic_linker='ldqnx.so'
  4273. ;;
  4274. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4275. - case $host_vendor in
  4276. - motorola)
  4277. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  4278. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4279. - ;;
  4280. - ncr)
  4281. - lt_cv_deplibs_check_method=pass_all
  4282. - ;;
  4283. - sequent)
  4284. - lt_cv_file_magic_cmd='/bin/file'
  4285. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4286. - ;;
  4287. - sni)
  4288. - lt_cv_file_magic_cmd='/bin/file'
  4289. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4290. - lt_cv_file_magic_test_file=/lib/libc.so
  4291. - ;;
  4292. - siemens)
  4293. - lt_cv_deplibs_check_method=pass_all
  4294. - ;;
  4295. +openbsd*)
  4296. + version_type=sunos
  4297. + sys_lib_dlsearch_path_spec="/usr/lib"
  4298. + need_lib_prefix=no
  4299. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4300. + case $host_os in
  4301. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4302. + *) need_version=no ;;
  4303. esac
  4304. - ;;
  4305. -
  4306. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  4307. - lt_cv_deplibs_check_method=pass_all
  4308. - ;;
  4309. -esac
  4310. -])
  4311. -file_magic_cmd=$lt_cv_file_magic_cmd
  4312. -deplibs_check_method=$lt_cv_deplibs_check_method
  4313. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4314. -])# AC_DEPLIBS_CHECK_METHOD
  4315. -
  4316. -
  4317. -# AC_PROG_NM
  4318. -# ----------
  4319. -# find the pathname to a BSD-compatible name lister
  4320. -AC_DEFUN([AC_PROG_NM],
  4321. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4322. -[if test -n "$NM"; then
  4323. - # Let the user override the test.
  4324. - lt_cv_path_NM="$NM"
  4325. -else
  4326. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4327. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4328. - IFS="$lt_save_ifs"
  4329. - test -z "$ac_dir" && ac_dir=.
  4330. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4331. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4332. - # Check to see if the nm accepts a BSD-compat flag.
  4333. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4334. - # nm: unknown option "B" ignored
  4335. - # Tru64's nm complains that /dev/null is an invalid object file
  4336. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4337. - */dev/null* | *'Invalid file or object type'*)
  4338. - lt_cv_path_NM="$tmp_nm -B"
  4339. - break
  4340. - ;;
  4341. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4342. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4343. + shlibpath_var=LD_LIBRARY_PATH
  4344. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4345. + case $host_os in
  4346. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4347. + shlibpath_overrides_runpath=no
  4348. + ;;
  4349. *)
  4350. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4351. - */dev/null*)
  4352. - lt_cv_path_NM="$tmp_nm -p"
  4353. - break
  4354. - ;;
  4355. - *)
  4356. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4357. - continue # so that we can try to find one that supports BSD flags
  4358. - ;;
  4359. - esac
  4360. + shlibpath_overrides_runpath=yes
  4361. + ;;
  4362. esac
  4363. - fi
  4364. - done
  4365. - IFS="$lt_save_ifs"
  4366. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4367. -fi])
  4368. -NM="$lt_cv_path_NM"
  4369. -])# AC_PROG_NM
  4370. + else
  4371. + shlibpath_overrides_runpath=yes
  4372. + fi
  4373. + ;;
  4374. +os2*)
  4375. + libname_spec='$name'
  4376. + shrext_cmds=".dll"
  4377. + need_lib_prefix=no
  4378. + library_names_spec='$libname${shared_ext} $libname.a'
  4379. + dynamic_linker='OS/2 ld.exe'
  4380. + shlibpath_var=LIBPATH
  4381. + ;;
  4382. -# AC_CHECK_LIBM
  4383. -# -------------
  4384. -# check for math library
  4385. -AC_DEFUN([AC_CHECK_LIBM],
  4386. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4387. -LIBM=
  4388. -case $host in
  4389. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4390. - # These system don't have libm, or don't need it
  4391. +osf3* | osf4* | osf5*)
  4392. + version_type=osf
  4393. + need_lib_prefix=no
  4394. + need_version=no
  4395. + soname_spec='${libname}${release}${shared_ext}$major'
  4396. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4397. + shlibpath_var=LD_LIBRARY_PATH
  4398. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4399. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4400. ;;
  4401. -*-ncr-sysv4.3*)
  4402. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4403. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4404. +
  4405. +rdos*)
  4406. + dynamic_linker=no
  4407. ;;
  4408. -*)
  4409. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4410. +
  4411. +solaris*)
  4412. + version_type=linux
  4413. + need_lib_prefix=no
  4414. + need_version=no
  4415. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4416. + soname_spec='${libname}${release}${shared_ext}$major'
  4417. + shlibpath_var=LD_LIBRARY_PATH
  4418. + shlibpath_overrides_runpath=yes
  4419. + hardcode_into_libs=yes
  4420. + # ldd complains unless libraries are executable
  4421. + postinstall_cmds='chmod +x $lib'
  4422. ;;
  4423. -esac
  4424. -])# AC_CHECK_LIBM
  4425. +sunos4*)
  4426. + version_type=sunos
  4427. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4428. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4429. + shlibpath_var=LD_LIBRARY_PATH
  4430. + shlibpath_overrides_runpath=yes
  4431. + if test "$with_gnu_ld" = yes; then
  4432. + need_lib_prefix=no
  4433. + fi
  4434. + need_version=yes
  4435. + ;;
  4436. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4437. -# -----------------------------------
  4438. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4439. -# LTDLINCL to the include flags for the libltdl header and adds
  4440. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  4441. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4442. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  4443. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  4444. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4445. -# flat and you're not using automake, define top_builddir and
  4446. -# top_srcdir appropriately in the Makefiles.
  4447. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4448. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4449. - case $enable_ltdl_convenience in
  4450. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4451. - "") enable_ltdl_convenience=yes
  4452. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4453. - esac
  4454. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4455. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4456. - # For backwards non-gettext consistent compatibility...
  4457. - INCLTDL="$LTDLINCL"
  4458. -])# AC_LIBLTDL_CONVENIENCE
  4459. +sysv4 | sysv4.3*)
  4460. + version_type=linux
  4461. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4462. + soname_spec='${libname}${release}${shared_ext}$major'
  4463. + shlibpath_var=LD_LIBRARY_PATH
  4464. + case $host_vendor in
  4465. + sni)
  4466. + shlibpath_overrides_runpath=no
  4467. + need_lib_prefix=no
  4468. + runpath_var=LD_RUN_PATH
  4469. + ;;
  4470. + siemens)
  4471. + need_lib_prefix=no
  4472. + ;;
  4473. + motorola)
  4474. + need_lib_prefix=no
  4475. + need_version=no
  4476. + shlibpath_overrides_runpath=no
  4477. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4478. + ;;
  4479. + esac
  4480. + ;;
  4481. +sysv4*MP*)
  4482. + if test -d /usr/nec ;then
  4483. + version_type=linux
  4484. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4485. + soname_spec='$libname${shared_ext}.$major'
  4486. + shlibpath_var=LD_LIBRARY_PATH
  4487. + fi
  4488. + ;;
  4489. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4490. -# -----------------------------------
  4491. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4492. -# LTDLINCL to the include flags for the libltdl header and adds
  4493. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  4494. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4495. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  4496. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  4497. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  4498. -# quotes!). If your package is not flat and you're not using automake,
  4499. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  4500. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4501. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4502. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4503. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4504. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4505. - [if test x"$enable_ltdl_install" = xno; then
  4506. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4507. - else
  4508. - enable_ltdl_install=yes
  4509. - fi
  4510. - ])
  4511. - if test x"$enable_ltdl_install" = x"yes"; then
  4512. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4513. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4514. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4515. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4516. + version_type=freebsd-elf
  4517. + need_lib_prefix=no
  4518. + need_version=no
  4519. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4520. + soname_spec='${libname}${release}${shared_ext}$major'
  4521. + shlibpath_var=LD_LIBRARY_PATH
  4522. + shlibpath_overrides_runpath=yes
  4523. + hardcode_into_libs=yes
  4524. + if test "$with_gnu_ld" = yes; then
  4525. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4526. else
  4527. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4528. - LIBLTDL="-lltdl"
  4529. - LTDLINCL=
  4530. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4531. + case $host_os in
  4532. + sco3.2v5*)
  4533. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4534. + ;;
  4535. + esac
  4536. fi
  4537. - # For backwards non-gettext consistent compatibility...
  4538. - INCLTDL="$LTDLINCL"
  4539. -])# AC_LIBLTDL_INSTALLABLE
  4540. -
  4541. + sys_lib_dlsearch_path_spec='/usr/lib'
  4542. + ;;
  4543. -# AC_LIBTOOL_CXX
  4544. -# --------------
  4545. -# enable support for C++ libraries
  4546. -AC_DEFUN([AC_LIBTOOL_CXX],
  4547. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4548. -])# AC_LIBTOOL_CXX
  4549. +tpf*)
  4550. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4551. + version_type=linux
  4552. + need_lib_prefix=no
  4553. + need_version=no
  4554. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4555. + shlibpath_var=LD_LIBRARY_PATH
  4556. + shlibpath_overrides_runpath=no
  4557. + hardcode_into_libs=yes
  4558. + ;;
  4559. +uts4*)
  4560. + version_type=linux
  4561. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4562. + soname_spec='${libname}${release}${shared_ext}$major'
  4563. + shlibpath_var=LD_LIBRARY_PATH
  4564. + ;;
  4565. -# _LT_AC_LANG_CXX
  4566. -# ---------------
  4567. -AC_DEFUN([_LT_AC_LANG_CXX],
  4568. -[AC_REQUIRE([AC_PROG_CXX])
  4569. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4570. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4571. -])# _LT_AC_LANG_CXX
  4572. +*)
  4573. + dynamic_linker=no
  4574. + ;;
  4575. +esac
  4576. +AC_MSG_RESULT([$dynamic_linker])
  4577. +test "$dynamic_linker" = no && can_build_shared=no
  4578. -# _LT_AC_PROG_CXXCPP
  4579. -# ---------------
  4580. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4581. -[
  4582. -AC_REQUIRE([AC_PROG_CXX])
  4583. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4584. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4585. - (test "X$CXX" != "Xg++"))) ; then
  4586. - AC_PROG_CXXCPP
  4587. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4588. +if test "$GCC" = yes; then
  4589. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4590. fi
  4591. -])# _LT_AC_PROG_CXXCPP
  4592. -
  4593. -# AC_LIBTOOL_F77
  4594. -# --------------
  4595. -# enable support for Fortran 77 libraries
  4596. -AC_DEFUN([AC_LIBTOOL_F77],
  4597. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4598. -])# AC_LIBTOOL_F77
  4599. -
  4600. -
  4601. -# _LT_AC_LANG_F77
  4602. -# ---------------
  4603. -AC_DEFUN([_LT_AC_LANG_F77],
  4604. -[AC_REQUIRE([AC_PROG_F77])
  4605. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4606. -])# _LT_AC_LANG_F77
  4607. -
  4608. -
  4609. -# AC_LIBTOOL_GCJ
  4610. -# --------------
  4611. -# enable support for GCJ libraries
  4612. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4613. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4614. -])# AC_LIBTOOL_GCJ
  4615. -
  4616. -
  4617. -# _LT_AC_LANG_GCJ
  4618. -# ---------------
  4619. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4620. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4621. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4622. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4623. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4624. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4625. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4626. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4627. -])# _LT_AC_LANG_GCJ
  4628. -
  4629. -
  4630. -# AC_LIBTOOL_RC
  4631. -# --------------
  4632. -# enable support for Windows resource files
  4633. -AC_DEFUN([AC_LIBTOOL_RC],
  4634. -[AC_REQUIRE([LT_AC_PROG_RC])
  4635. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4636. -])# AC_LIBTOOL_RC
  4637. -
  4638. -
  4639. -# AC_LIBTOOL_LANG_C_CONFIG
  4640. -# ------------------------
  4641. -# Ensure that the configuration vars for the C compiler are
  4642. -# suitably defined. Those variables are subsequently used by
  4643. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4644. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4645. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4646. -[lt_save_CC="$CC"
  4647. -AC_LANG_PUSH(C)
  4648. -# Source file extension for C test sources.
  4649. -ac_ext=c
  4650. -
  4651. -# Object file extension for compiled C test sources.
  4652. -objext=o
  4653. -_LT_AC_TAGVAR(objext, $1)=$objext
  4654. -
  4655. -# Code to be used in simple compile tests
  4656. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4657. -
  4658. -# Code to be used in simple link tests
  4659. -lt_simple_link_test_code='int main(){return(0);}\n'
  4660. -
  4661. -_LT_AC_SYS_COMPILER
  4662. -
  4663. -#
  4664. -# Check for any special shared library compilation flags.
  4665. -#
  4666. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  4667. -if test "$GCC" = no; then
  4668. - case $host_os in
  4669. - sco3.2v5*)
  4670. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  4671. - ;;
  4672. - esac
  4673. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4674. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4675. fi
  4676. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  4677. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  4678. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  4679. - else
  4680. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  4681. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  4682. - fi
  4683. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4684. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4685. fi
  4686. -
  4687. -#
  4688. -# Check to make sure the static flag actually works.
  4689. -#
  4690. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4691. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4692. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4693. - [],
  4694. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4695. +_LT_DECL([], [variables_saved_for_relink], [1],
  4696. + [Variables whose values should be saved in libtool wrapper scripts and
  4697. + restored at link time])
  4698. +_LT_DECL([], [need_lib_prefix], [0],
  4699. + [Do we need the "lib" prefix for modules?])
  4700. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4701. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4702. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4703. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4704. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4705. + [Is shlibpath searched before the hard-coded library search path?])
  4706. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4707. +_LT_DECL([], [library_names_spec], [1],
  4708. + [[List of archive names. First name is the real one, the rest are links.
  4709. + The last name is the one that the linker finds with -lNAME]])
  4710. +_LT_DECL([], [soname_spec], [1],
  4711. + [[The coded name of the library, if different from the real name]])
  4712. +_LT_DECL([], [postinstall_cmds], [2],
  4713. + [Command to use after installation of a shared archive])
  4714. +_LT_DECL([], [postuninstall_cmds], [2],
  4715. + [Command to use after uninstallation of a shared archive])
  4716. +_LT_DECL([], [finish_cmds], [2],
  4717. + [Commands used to finish a libtool library installation in a directory])
  4718. +_LT_DECL([], [finish_eval], [1],
  4719. + [[As "finish_cmds", except a single script fragment to be evaled but
  4720. + not shown]])
  4721. +_LT_DECL([], [hardcode_into_libs], [0],
  4722. + [Whether we should hardcode library paths into libraries])
  4723. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4724. + [Compile-time system search path for libraries])
  4725. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4726. + [Run-time system search path for libraries])
  4727. +])# _LT_SYS_DYNAMIC_LINKER
  4728. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4729. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4730. -AC_LIBTOOL_PROG_CC_C_O($1)
  4731. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4732. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4733. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4734. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4735. -AC_LIBTOOL_SYS_LIB_STRIP
  4736. -AC_LIBTOOL_DLOPEN_SELF($1)
  4737. -
  4738. -# Report which librarie types wil actually be built
  4739. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4740. -AC_MSG_RESULT([$can_build_shared])
  4741. -
  4742. -AC_MSG_CHECKING([whether to build shared libraries])
  4743. -test "$can_build_shared" = "no" && enable_shared=no
  4744. -
  4745. -# On AIX, shared libraries and static libraries use the same namespace, and
  4746. -# are all built from PIC.
  4747. -case "$host_os" in
  4748. -aix3*)
  4749. - test "$enable_shared" = yes && enable_static=no
  4750. - if test -n "$RANLIB"; then
  4751. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4752. - postinstall_cmds='$RANLIB $lib'
  4753. - fi
  4754. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4755. +# --------------------------
  4756. +# find a file program which can recognize shared library
  4757. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4758. +[m4_require([_LT_DECL_EGREP])dnl
  4759. +AC_MSG_CHECKING([for $1])
  4760. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4761. +[case $MAGIC_CMD in
  4762. +[[\\/*] | ?:[\\/]*])
  4763. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4764. ;;
  4765. +*)
  4766. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4767. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4768. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4769. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4770. +dnl not every word. This closes a longstanding sh security hole.
  4771. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4772. + for ac_dir in $ac_dummy; do
  4773. + IFS="$lt_save_ifs"
  4774. + test -z "$ac_dir" && ac_dir=.
  4775. + if test -f $ac_dir/$1; then
  4776. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4777. + if test -n "$file_magic_test_file"; then
  4778. + case $deplibs_check_method in
  4779. + "file_magic "*)
  4780. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4781. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4782. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4783. + $EGREP "$file_magic_regex" > /dev/null; then
  4784. + :
  4785. + else
  4786. + cat <<_LT_EOF 1>&2
  4787. -aix4* | aix5*)
  4788. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4789. - test "$enable_shared" = yes && enable_static=no
  4790. - fi
  4791. - ;;
  4792. -esac
  4793. -AC_MSG_RESULT([$enable_shared])
  4794. -
  4795. -AC_MSG_CHECKING([whether to build static libraries])
  4796. -# Make sure either enable_shared or enable_static is yes.
  4797. -test "$enable_shared" = yes || enable_static=yes
  4798. -AC_MSG_RESULT([$enable_static])
  4799. -
  4800. -AC_LIBTOOL_CONFIG($1)
  4801. -
  4802. -AC_LANG_POP
  4803. -CC="$lt_save_CC"
  4804. -])# AC_LIBTOOL_LANG_C_CONFIG
  4805. -
  4806. +*** Warning: the command libtool uses to detect shared libraries,
  4807. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4808. +*** The result is that libtool may fail to recognize shared libraries
  4809. +*** as such. This will affect the creation of libtool libraries that
  4810. +*** depend on shared libraries, but programs linked with such libtool
  4811. +*** libraries will work regardless of this problem. Nevertheless, you
  4812. +*** may want to report the problem to your system manager and/or to
  4813. +*** bug-libtool@gnu.org
  4814. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4815. -# --------------------------
  4816. -# Ensure that the configuration vars for the C compiler are
  4817. -# suitably defined. Those variables are subsequently used by
  4818. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4819. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4820. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4821. -[AC_LANG_PUSH(C++)
  4822. -AC_REQUIRE([AC_PROG_CXX])
  4823. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4824. -
  4825. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4826. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4827. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4828. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4829. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4830. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4831. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4832. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4833. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4834. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4835. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4836. -_LT_AC_TAGVAR(module_cmds, $1)=
  4837. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4838. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4839. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4840. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4841. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4842. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4843. +_LT_EOF
  4844. + fi ;;
  4845. + esac
  4846. + fi
  4847. + break
  4848. + fi
  4849. + done
  4850. + IFS="$lt_save_ifs"
  4851. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4852. + ;;
  4853. +esac])
  4854. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4855. +if test -n "$MAGIC_CMD"; then
  4856. + AC_MSG_RESULT($MAGIC_CMD)
  4857. +else
  4858. + AC_MSG_RESULT(no)
  4859. +fi
  4860. +_LT_DECL([], [MAGIC_CMD], [0],
  4861. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4862. +])# _LT_PATH_TOOL_PREFIX
  4863. -# Dependencies to place before and after the object being linked:
  4864. -_LT_AC_TAGVAR(predep_objects, $1)=
  4865. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4866. -_LT_AC_TAGVAR(predeps, $1)=
  4867. -_LT_AC_TAGVAR(postdeps, $1)=
  4868. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4869. +# Old name:
  4870. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4871. +dnl aclocal-1.4 backwards compatibility:
  4872. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4873. -# Source file extension for C++ test sources.
  4874. -ac_ext=cc
  4875. -# Object file extension for compiled C++ test sources.
  4876. -objext=o
  4877. -_LT_AC_TAGVAR(objext, $1)=$objext
  4878. +# _LT_PATH_MAGIC
  4879. +# --------------
  4880. +# find a file program which can recognize a shared library
  4881. +m4_defun([_LT_PATH_MAGIC],
  4882. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4883. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4884. + if test -n "$ac_tool_prefix"; then
  4885. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  4886. + else
  4887. + MAGIC_CMD=:
  4888. + fi
  4889. +fi
  4890. +])# _LT_PATH_MAGIC
  4891. -# Code to be used in simple compile tests
  4892. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4893. -# Code to be used in simple link tests
  4894. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4895. +# LT_PATH_LD
  4896. +# ----------
  4897. +# find the pathname to the GNU or non-GNU linker
  4898. +AC_DEFUN([LT_PATH_LD],
  4899. +[AC_REQUIRE([AC_PROG_CC])dnl
  4900. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4901. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4902. +m4_require([_LT_DECL_SED])dnl
  4903. +m4_require([_LT_DECL_EGREP])dnl
  4904. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4905. -_LT_AC_SYS_COMPILER
  4906. +AC_ARG_WITH([gnu-ld],
  4907. + [AS_HELP_STRING([--with-gnu-ld],
  4908. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  4909. + [test "$withval" = no || with_gnu_ld=yes],
  4910. + [with_gnu_ld=no])dnl
  4911. -# Allow CC to be a program name with arguments.
  4912. -lt_save_CC=$CC
  4913. -lt_save_LD=$LD
  4914. -lt_save_GCC=$GCC
  4915. -GCC=$GXX
  4916. -lt_save_with_gnu_ld=$with_gnu_ld
  4917. -lt_save_path_LD=$lt_cv_path_LD
  4918. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4919. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4920. +ac_prog=ld
  4921. +if test "$GCC" = yes; then
  4922. + # Check if gcc -print-prog-name=ld gives a path.
  4923. + AC_MSG_CHECKING([for ld used by $CC])
  4924. + case $host in
  4925. + *-*-mingw*)
  4926. + # gcc leaves a trailing carriage return which upsets mingw
  4927. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4928. + *)
  4929. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4930. + esac
  4931. + case $ac_prog in
  4932. + # Accept absolute paths.
  4933. + [[\\/]]* | ?:[[\\/]]*)
  4934. + re_direlt='/[[^/]][[^/]]*/\.\./'
  4935. + # Canonicalize the pathname of ld
  4936. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4937. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4938. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4939. + done
  4940. + test -z "$LD" && LD="$ac_prog"
  4941. + ;;
  4942. + "")
  4943. + # If it fails, then pretend we aren't using GCC.
  4944. + ac_prog=ld
  4945. + ;;
  4946. + *)
  4947. + # If it is relative, then search for the first ld in PATH.
  4948. + with_gnu_ld=unknown
  4949. + ;;
  4950. + esac
  4951. +elif test "$with_gnu_ld" = yes; then
  4952. + AC_MSG_CHECKING([for GNU ld])
  4953. else
  4954. - unset lt_cv_prog_gnu_ld
  4955. + AC_MSG_CHECKING([for non-GNU ld])
  4956. fi
  4957. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4958. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4959. +AC_CACHE_VAL(lt_cv_path_LD,
  4960. +[if test -z "$LD"; then
  4961. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4962. + for ac_dir in $PATH; do
  4963. + IFS="$lt_save_ifs"
  4964. + test -z "$ac_dir" && ac_dir=.
  4965. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4966. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4967. + # Check to see if the program is GNU ld. I'd rather use --version,
  4968. + # but apparently some variants of GNU ld only accept -v.
  4969. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4970. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4971. + *GNU* | *'with BFD'*)
  4972. + test "$with_gnu_ld" != no && break
  4973. + ;;
  4974. + *)
  4975. + test "$with_gnu_ld" != yes && break
  4976. + ;;
  4977. + esac
  4978. + fi
  4979. + done
  4980. + IFS="$lt_save_ifs"
  4981. else
  4982. - unset lt_cv_path_LD
  4983. -fi
  4984. -test -z "${LDCXX+set}" || LD=$LDCXX
  4985. -CC=${CXX-"c++"}
  4986. -compiler=$CC
  4987. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4988. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4989. -
  4990. -# We don't want -fno-exception wen compiling C++ code, so set the
  4991. -# no_builtin_flag separately
  4992. -if test "$GXX" = yes; then
  4993. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4994. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4995. +fi])
  4996. +LD="$lt_cv_path_LD"
  4997. +if test -n "$LD"; then
  4998. + AC_MSG_RESULT($LD)
  4999. else
  5000. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5001. + AC_MSG_RESULT(no)
  5002. fi
  5003. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5004. +_LT_PATH_LD_GNU
  5005. +AC_SUBST([LD])
  5006. -if test "$GXX" = yes; then
  5007. - # Set up default GNU C++ configuration
  5008. -
  5009. - AC_PROG_LD
  5010. -
  5011. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5012. - # archiving commands below assume that GNU ld is being used.
  5013. - if test "$with_gnu_ld" = yes; then
  5014. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5015. - _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'
  5016. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5017. +])# LT_PATH_LD
  5018. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5019. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5020. +# Old names:
  5021. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5022. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5023. +dnl aclocal-1.4 backwards compatibility:
  5024. +dnl AC_DEFUN([AM_PROG_LD], [])
  5025. +dnl AC_DEFUN([AC_PROG_LD], [])
  5026. +
  5027. +
  5028. +# _LT_PATH_LD_GNU
  5029. +#- --------------
  5030. +m4_defun([_LT_PATH_LD_GNU],
  5031. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5032. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5033. +case `$LD -v 2>&1 </dev/null` in
  5034. +*GNU* | *'with BFD'*)
  5035. + lt_cv_prog_gnu_ld=yes
  5036. + ;;
  5037. +*)
  5038. + lt_cv_prog_gnu_ld=no
  5039. + ;;
  5040. +esac])
  5041. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5042. +])# _LT_PATH_LD_GNU
  5043. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5044. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5045. - # investigate it a little bit more. (MM)
  5046. - wlarc='${wl}'
  5047. - # ancient GNU ld didn't support --whole-archive et. al.
  5048. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5049. - grep 'no-whole-archive' > /dev/null; then
  5050. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5051. +# _LT_CMD_RELOAD
  5052. +# --------------
  5053. +# find reload flag for linker
  5054. +# -- PORTME Some linkers may need a different reload flag.
  5055. +m4_defun([_LT_CMD_RELOAD],
  5056. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5057. + lt_cv_ld_reload_flag,
  5058. + [lt_cv_ld_reload_flag='-r'])
  5059. +reload_flag=$lt_cv_ld_reload_flag
  5060. +case $reload_flag in
  5061. +"" | " "*) ;;
  5062. +*) reload_flag=" $reload_flag" ;;
  5063. +esac
  5064. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5065. +case $host_os in
  5066. + darwin*)
  5067. + if test "$GCC" = yes; then
  5068. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5069. else
  5070. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5071. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5072. fi
  5073. - else
  5074. - with_gnu_ld=no
  5075. - wlarc=
  5076. -
  5077. - # A generic and very simple default shared library creation
  5078. - # command for GNU C++ for the case where it uses the native
  5079. - # linker, instead of GNU ld. If possible, this setting should
  5080. - # overridden to take advantage of the native linker features on
  5081. - # the platform it is being used on.
  5082. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5083. - fi
  5084. + ;;
  5085. +esac
  5086. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5087. +_LT_DECL([], [reload_cmds], [2])dnl
  5088. +])# _LT_CMD_RELOAD
  5089. - # Commands to make compiler produce verbose output that lists
  5090. - # what "hidden" libraries, object files and flags are used when
  5091. - # linking a shared library.
  5092. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5093. -else
  5094. - GXX=no
  5095. - with_gnu_ld=no
  5096. - wlarc=
  5097. -fi
  5098. +# _LT_CHECK_MAGIC_METHOD
  5099. +# ----------------------
  5100. +# how to check for library dependencies
  5101. +# -- PORTME fill in with the dynamic library characteristics
  5102. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5103. +[m4_require([_LT_DECL_EGREP])
  5104. +m4_require([_LT_DECL_OBJDUMP])
  5105. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5106. +lt_cv_deplibs_check_method,
  5107. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5108. +lt_cv_file_magic_test_file=
  5109. +lt_cv_deplibs_check_method='unknown'
  5110. +# Need to set the preceding variable on all platforms that support
  5111. +# interlibrary dependencies.
  5112. +# 'none' -- dependencies not supported.
  5113. +# `unknown' -- same as none, but documents that we really don't know.
  5114. +# 'pass_all' -- all dependencies passed with no checks.
  5115. +# 'test_compile' -- check by making test program.
  5116. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5117. +# which responds to the $file_magic_cmd with a given extended regex.
  5118. +# If you have `file' or equivalent on your system and you're not sure
  5119. +# whether `pass_all' will *always* work, you probably want this one.
  5120. -# PORTME: fill in a description of your system's C++ link characteristics
  5121. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5122. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5123. case $host_os in
  5124. - aix3*)
  5125. - # FIXME: insert proper C++ library support
  5126. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5127. - ;;
  5128. - aix4* | aix5*)
  5129. - if test "$host_cpu" = ia64; then
  5130. - # On IA64, the linker does run time linking by default, so we don't
  5131. - # have to do anything special.
  5132. - aix_use_runtimelinking=no
  5133. - exp_sym_flag='-Bexport'
  5134. - no_entry_flag=""
  5135. - else
  5136. - aix_use_runtimelinking=no
  5137. +aix[[4-9]]*)
  5138. + lt_cv_deplibs_check_method=pass_all
  5139. + ;;
  5140. - # Test if we are trying to use run time linking or normal
  5141. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5142. - # need to do runtime linking.
  5143. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5144. - for ld_flag in $LDFLAGS; do
  5145. - case $ld_flag in
  5146. - *-brtl*)
  5147. - aix_use_runtimelinking=yes
  5148. - break
  5149. - ;;
  5150. - esac
  5151. - done
  5152. - esac
  5153. +beos*)
  5154. + lt_cv_deplibs_check_method=pass_all
  5155. + ;;
  5156. - exp_sym_flag='-bexport'
  5157. - no_entry_flag='-bnoentry'
  5158. - fi
  5159. +bsdi[[45]]*)
  5160. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5161. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5162. + lt_cv_file_magic_test_file=/shlib/libc.so
  5163. + ;;
  5164. - # When large executables or shared objects are built, AIX ld can
  5165. - # have problems creating the table of contents. If linking a library
  5166. - # or program results in "error TOC overflow" add -mminimal-toc to
  5167. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5168. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5169. -
  5170. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5171. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5172. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5173. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5174. +cygwin*)
  5175. + # func_win32_libid is a shell function defined in ltmain.sh
  5176. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5177. + lt_cv_file_magic_cmd='func_win32_libid'
  5178. + ;;
  5179. - if test "$GXX" = yes; then
  5180. - case $host_os in aix4.[012]|aix4.[012].*)
  5181. - # We only want to do this on AIX 4.2 and lower, the check
  5182. - # below for broken collect2 doesn't work under 4.3+
  5183. - collect2name=`${CC} -print-prog-name=collect2`
  5184. - if test -f "$collect2name" && \
  5185. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5186. - then
  5187. - # We have reworked collect2
  5188. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5189. - else
  5190. - # We have old collect2
  5191. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5192. - # It fails to find uninstalled libraries when the uninstalled
  5193. - # path is not listed in the libpath. Setting hardcode_minus_L
  5194. - # to unsupported forces relinking
  5195. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5196. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5197. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5198. - fi
  5199. - esac
  5200. - shared_flag='-shared'
  5201. - else
  5202. - # not using gcc
  5203. - if test "$host_cpu" = ia64; then
  5204. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5205. - # chokes on -Wl,-G. The following line is correct:
  5206. - shared_flag='-G'
  5207. - else
  5208. - if test "$aix_use_runtimelinking" = yes; then
  5209. - shared_flag='${wl}-G'
  5210. - else
  5211. - shared_flag='${wl}-bM:SRE'
  5212. - fi
  5213. - fi
  5214. - fi
  5215. +mingw* | pw32*)
  5216. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5217. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5218. + # unless we find 'file', for example because we are cross-compiling.
  5219. + if ( file / ) >/dev/null 2>&1; then
  5220. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5221. + lt_cv_file_magic_cmd='func_win32_libid'
  5222. + else
  5223. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5224. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5225. + fi
  5226. + ;;
  5227. - # It seems that -bexpall does not export symbols beginning with
  5228. - # underscore (_), so it is better to generate a list of symbols to export.
  5229. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5230. - if test "$aix_use_runtimelinking" = yes; then
  5231. - # Warning - without using the other runtime loading flags (-brtl),
  5232. - # -berok will link without error, but may produce a broken library.
  5233. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5234. - # Determine the default libpath from the value encoded in an empty executable.
  5235. - _LT_AC_SYS_LIBPATH_AIX
  5236. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5237. +cegcc)
  5238. + # use the weaker test based on 'objdump'. See mingw*.
  5239. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5240. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5241. + ;;
  5242. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5243. - else
  5244. - if test "$host_cpu" = ia64; then
  5245. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5246. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5247. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5248. - else
  5249. - # Determine the default libpath from the value encoded in an empty executable.
  5250. - _LT_AC_SYS_LIBPATH_AIX
  5251. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5252. - # Warning - without using the other run time loading flags,
  5253. - # -berok will link without error, but may produce a broken library.
  5254. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5255. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5256. - # -bexpall does not export symbols beginning with underscore (_)
  5257. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5258. - # Exported symbols can be pulled into shared objects from archives
  5259. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  5260. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5261. - # This is similar to how AIX traditionally builds it's shared libraries.
  5262. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5263. - fi
  5264. - fi
  5265. - ;;
  5266. - chorus*)
  5267. - case $cc_basename in
  5268. - *)
  5269. - # FIXME: insert proper C++ library support
  5270. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5271. - ;;
  5272. - esac
  5273. - ;;
  5274. +darwin* | rhapsody*)
  5275. + lt_cv_deplibs_check_method=pass_all
  5276. + ;;
  5277. +freebsd* | dragonfly*)
  5278. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5279. + case $host_cpu in
  5280. + i*86 )
  5281. + # Not sure whether the presence of OpenBSD here was a mistake.
  5282. + # Let's accept both of them until this is cleared up.
  5283. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5284. + lt_cv_file_magic_cmd=/usr/bin/file
  5285. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5286. + ;;
  5287. + esac
  5288. + else
  5289. + lt_cv_deplibs_check_method=pass_all
  5290. + fi
  5291. + ;;
  5292. - cygwin* | mingw* | pw32*)
  5293. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5294. - # as there is no search path for DLLs.
  5295. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5296. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5297. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5298. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5299. -
  5300. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5301. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5302. - # If the export-symbols file already is a .def file (1st line
  5303. - # is EXPORTS), use it as is; otherwise, prepend...
  5304. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5305. - cp $export_symbols $output_objdir/$soname.def;
  5306. - else
  5307. - echo EXPORTS > $output_objdir/$soname.def;
  5308. - cat $export_symbols >> $output_objdir/$soname.def;
  5309. - fi~
  5310. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5311. - else
  5312. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5313. - fi
  5314. +gnu*)
  5315. + lt_cv_deplibs_check_method=pass_all
  5316. ;;
  5317. - darwin* | rhapsody*)
  5318. - case "$host_os" in
  5319. - rhapsody* | darwin1.[[012]])
  5320. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5321. - ;;
  5322. - *) # Darwin 1.3 on
  5323. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5324. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5325. - else
  5326. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5327. - 10.[[012]])
  5328. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5329. - ;;
  5330. - 10.*)
  5331. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5332. - ;;
  5333. - esac
  5334. - fi
  5335. - ;;
  5336. - esac
  5337. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5338. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5339. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5340. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5341. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5342. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5343. -
  5344. - if test "$GXX" = yes ; then
  5345. - lt_int_apple_cc_single_mod=no
  5346. - output_verbose_link_cmd='echo'
  5347. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5348. - lt_int_apple_cc_single_mod=yes
  5349. - fi
  5350. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5351. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5352. - else
  5353. - _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'
  5354. - fi
  5355. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5356. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5357. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5358. - _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}'
  5359. - else
  5360. - _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}'
  5361. - fi
  5362. - _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}'
  5363. - else
  5364. - case "$cc_basename" in
  5365. - xlc*)
  5366. - output_verbose_link_cmd='echo'
  5367. - _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` $verstring'
  5368. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5369. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5370. - _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5371. - _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}'
  5372. - ;;
  5373. - *)
  5374. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5375. - ;;
  5376. - esac
  5377. - fi
  5378. - ;;
  5379. - dgux*)
  5380. - case $cc_basename in
  5381. - ec++)
  5382. - # FIXME: insert proper C++ library support
  5383. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5384. - ;;
  5385. - ghcx)
  5386. - # Green Hills C++ Compiler
  5387. - # FIXME: insert proper C++ library support
  5388. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5389. - ;;
  5390. - *)
  5391. - # FIXME: insert proper C++ library support
  5392. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5393. - ;;
  5394. - esac
  5395. - ;;
  5396. - freebsd[12]*)
  5397. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5398. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5399. - ;;
  5400. - freebsd-elf*)
  5401. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5402. - ;;
  5403. - freebsd* | kfreebsd*-gnu)
  5404. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5405. - # conventions
  5406. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5407. +hpux10.20* | hpux11*)
  5408. + lt_cv_file_magic_cmd=/usr/bin/file
  5409. + case $host_cpu in
  5410. + ia64*)
  5411. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5412. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5413. ;;
  5414. - gnu*)
  5415. + hppa*64*)
  5416. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  5417. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5418. ;;
  5419. - hpux9*)
  5420. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5421. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5422. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5423. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5424. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5425. - # but as the default
  5426. - # location of the library.
  5427. -
  5428. - case $cc_basename in
  5429. - CC)
  5430. - # FIXME: insert proper C++ library support
  5431. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5432. - ;;
  5433. - aCC)
  5434. - _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'
  5435. - # Commands to make compiler produce verbose output that lists
  5436. - # what "hidden" libraries, object files and flags are used when
  5437. - # linking a shared library.
  5438. - #
  5439. - # There doesn't appear to be a way to prevent this compiler from
  5440. - # explicitly linking system object files so we need to strip them
  5441. - # from the output so that they don't get included in the library
  5442. - # dependencies.
  5443. - 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'
  5444. - ;;
  5445. - *)
  5446. - if test "$GXX" = yes; then
  5447. - _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'
  5448. - else
  5449. - # FIXME: insert proper C++ library support
  5450. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5451. - fi
  5452. - ;;
  5453. - esac
  5454. + *)
  5455. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5456. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5457. ;;
  5458. - hpux10*|hpux11*)
  5459. - if test $with_gnu_ld = no; then
  5460. - case "$host_cpu" in
  5461. - hppa*64*)
  5462. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5463. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5464. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5465. - ;;
  5466. - ia64*)
  5467. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5468. - ;;
  5469. - *)
  5470. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5471. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5472. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5473. - ;;
  5474. - esac
  5475. - fi
  5476. - case "$host_cpu" in
  5477. - hppa*64*)
  5478. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5479. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5480. - ;;
  5481. - ia64*)
  5482. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5483. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5484. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5485. - # but as the default
  5486. - # location of the library.
  5487. - ;;
  5488. - *)
  5489. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5490. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5491. - # but as the default
  5492. - # location of the library.
  5493. - ;;
  5494. - esac
  5495. + esac
  5496. + ;;
  5497. - case $cc_basename in
  5498. - CC)
  5499. - # FIXME: insert proper C++ library support
  5500. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5501. - ;;
  5502. - aCC)
  5503. - case "$host_cpu" in
  5504. - hppa*64*|ia64*)
  5505. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5506. - ;;
  5507. - *)
  5508. - _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'
  5509. - ;;
  5510. - esac
  5511. - # Commands to make compiler produce verbose output that lists
  5512. - # what "hidden" libraries, object files and flags are used when
  5513. - # linking a shared library.
  5514. - #
  5515. - # There doesn't appear to be a way to prevent this compiler from
  5516. - # explicitly linking system object files so we need to strip them
  5517. - # from the output so that they don't get included in the library
  5518. - # dependencies.
  5519. - 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'
  5520. - ;;
  5521. - *)
  5522. - if test "$GXX" = yes; then
  5523. - if test $with_gnu_ld = no; then
  5524. - case "$host_cpu" in
  5525. - ia64*|hppa*64*)
  5526. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5527. - ;;
  5528. - *)
  5529. - _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'
  5530. - ;;
  5531. - esac
  5532. - fi
  5533. - else
  5534. - # FIXME: insert proper C++ library support
  5535. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5536. - fi
  5537. - ;;
  5538. - esac
  5539. - ;;
  5540. - irix5* | irix6*)
  5541. - case $cc_basename in
  5542. - CC)
  5543. - # SGI C++
  5544. - _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 ${objdir}/so_locations -o $lib'
  5545. -
  5546. - # Archives containing C++ object files must be created using
  5547. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5548. - # necessary to make sure instantiated templates are included
  5549. - # in the archive.
  5550. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5551. - ;;
  5552. - *)
  5553. - if test "$GXX" = yes; then
  5554. - if test "$with_gnu_ld" = no; then
  5555. - _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}${objdir}/so_locations -o $lib'
  5556. - else
  5557. - _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'
  5558. - fi
  5559. - fi
  5560. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5561. - ;;
  5562. - esac
  5563. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5564. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5565. - ;;
  5566. - linux*)
  5567. - case $cc_basename in
  5568. - KCC)
  5569. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5570. -
  5571. - # KCC will only create a shared library if the output file
  5572. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5573. - # to its proper name (with version) after linking.
  5574. - _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'
  5575. - _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'
  5576. - # Commands to make compiler produce verbose output that lists
  5577. - # what "hidden" libraries, object files and flags are used when
  5578. - # linking a shared library.
  5579. - #
  5580. - # There doesn't appear to be a way to prevent this compiler from
  5581. - # explicitly linking system object files so we need to strip them
  5582. - # from the output so that they don't get included in the library
  5583. - # dependencies.
  5584. - 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'
  5585. -
  5586. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5587. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5588. -
  5589. - # Archives containing C++ object files must be created using
  5590. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5591. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5592. - ;;
  5593. - icpc)
  5594. - # Intel C++
  5595. - with_gnu_ld=yes
  5596. - # version 8.0 and above of icpc choke on multiply defined symbols
  5597. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5598. - # earlier do not add the objects themselves.
  5599. - case `$CC -V 2>&1` in
  5600. - *"Version 7."*)
  5601. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5602. - _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'
  5603. - ;;
  5604. - *) # Version 8.0 or newer
  5605. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5606. - _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'
  5607. - ;;
  5608. - esac
  5609. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5610. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5611. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5612. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5613. - ;;
  5614. - cxx)
  5615. - # Compaq C++
  5616. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5617. - _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'
  5618. +interix[[3-9]]*)
  5619. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5620. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5621. + ;;
  5622. - runpath_var=LD_RUN_PATH
  5623. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5624. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5625. +irix5* | irix6* | nonstopux*)
  5626. + case $LD in
  5627. + *-32|*"-32 ") libmagic=32-bit;;
  5628. + *-n32|*"-n32 ") libmagic=N32;;
  5629. + *-64|*"-64 ") libmagic=64-bit;;
  5630. + *) libmagic=never-match;;
  5631. + esac
  5632. + lt_cv_deplibs_check_method=pass_all
  5633. + ;;
  5634. - # Commands to make compiler produce verbose output that lists
  5635. - # what "hidden" libraries, object files and flags are used when
  5636. - # linking a shared library.
  5637. - #
  5638. - # There doesn't appear to be a way to prevent this compiler from
  5639. - # explicitly linking system object files so we need to strip them
  5640. - # from the output so that they don't get included in the library
  5641. - # dependencies.
  5642. - 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'
  5643. - ;;
  5644. - esac
  5645. - ;;
  5646. - lynxos*)
  5647. - # FIXME: insert proper C++ library support
  5648. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5649. - ;;
  5650. - m88k*)
  5651. - # FIXME: insert proper C++ library support
  5652. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5653. - ;;
  5654. - mvs*)
  5655. - case $cc_basename in
  5656. - cxx)
  5657. - # FIXME: insert proper C++ library support
  5658. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5659. - ;;
  5660. - *)
  5661. - # FIXME: insert proper C++ library support
  5662. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5663. - ;;
  5664. - esac
  5665. - ;;
  5666. - netbsd*)
  5667. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5668. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5669. - wlarc=
  5670. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5671. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5672. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5673. - fi
  5674. - # Workaround some broken pre-1.5 toolchains
  5675. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5676. - ;;
  5677. - openbsd2*)
  5678. - # C++ shared libraries are fairly broken
  5679. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5680. - ;;
  5681. - openbsd*)
  5682. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5683. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5684. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5685. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5686. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5687. - _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'
  5688. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5689. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5690. - fi
  5691. - output_verbose_link_cmd='echo'
  5692. - ;;
  5693. - osf3*)
  5694. - case $cc_basename in
  5695. - KCC)
  5696. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5697. -
  5698. - # KCC will only create a shared library if the output file
  5699. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5700. - # to its proper name (with version) after linking.
  5701. - _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'
  5702. -
  5703. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5704. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5705. -
  5706. - # Archives containing C++ object files must be created using
  5707. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5708. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5709. -
  5710. - ;;
  5711. - RCC)
  5712. - # Rational C++ 2.4.1
  5713. - # FIXME: insert proper C++ library support
  5714. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5715. - ;;
  5716. - cxx)
  5717. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5718. - _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 ${objdir}/so_locations -o $lib'
  5719. -
  5720. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5721. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5722. -
  5723. - # Commands to make compiler produce verbose output that lists
  5724. - # what "hidden" libraries, object files and flags are used when
  5725. - # linking a shared library.
  5726. - #
  5727. - # There doesn't appear to be a way to prevent this compiler from
  5728. - # explicitly linking system object files so we need to strip them
  5729. - # from the output so that they don't get included in the library
  5730. - # dependencies.
  5731. - 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'
  5732. - ;;
  5733. - *)
  5734. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5735. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5736. - _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}${objdir}/so_locations -o $lib'
  5737. -
  5738. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5739. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5740. -
  5741. - # Commands to make compiler produce verbose output that lists
  5742. - # what "hidden" libraries, object files and flags are used when
  5743. - # linking a shared library.
  5744. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5745. +# This must be Linux ELF.
  5746. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5747. + lt_cv_deplibs_check_method=pass_all
  5748. + ;;
  5749. - else
  5750. - # FIXME: insert proper C++ library support
  5751. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5752. - fi
  5753. - ;;
  5754. - esac
  5755. - ;;
  5756. - osf4* | osf5*)
  5757. - case $cc_basename in
  5758. - KCC)
  5759. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5760. -
  5761. - # KCC will only create a shared library if the output file
  5762. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5763. - # to its proper name (with version) after linking.
  5764. - _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'
  5765. -
  5766. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5767. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5768. -
  5769. - # Archives containing C++ object files must be created using
  5770. - # the KAI C++ compiler.
  5771. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5772. - ;;
  5773. - RCC)
  5774. - # Rational C++ 2.4.1
  5775. - # FIXME: insert proper C++ library support
  5776. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5777. - ;;
  5778. - cxx)
  5779. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5780. - _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 ${objdir}/so_locations -o $lib'
  5781. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5782. - echo "-hidden">> $lib.exp~
  5783. - $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 $objdir/so_locations -o $lib~
  5784. - $rm $lib.exp'
  5785. -
  5786. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5787. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5788. -
  5789. - # Commands to make compiler produce verbose output that lists
  5790. - # what "hidden" libraries, object files and flags are used when
  5791. - # linking a shared library.
  5792. - #
  5793. - # There doesn't appear to be a way to prevent this compiler from
  5794. - # explicitly linking system object files so we need to strip them
  5795. - # from the output so that they don't get included in the library
  5796. - # dependencies.
  5797. - 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'
  5798. - ;;
  5799. - *)
  5800. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5801. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5802. - _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}${objdir}/so_locations -o $lib'
  5803. -
  5804. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5805. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5806. -
  5807. - # Commands to make compiler produce verbose output that lists
  5808. - # what "hidden" libraries, object files and flags are used when
  5809. - # linking a shared library.
  5810. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5811. +netbsd* | netbsdelf*-gnu)
  5812. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5813. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5814. + else
  5815. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5816. + fi
  5817. + ;;
  5818. - else
  5819. - # FIXME: insert proper C++ library support
  5820. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5821. - fi
  5822. - ;;
  5823. - esac
  5824. - ;;
  5825. - psos*)
  5826. - # FIXME: insert proper C++ library support
  5827. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5828. - ;;
  5829. - sco*)
  5830. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5831. - case $cc_basename in
  5832. - CC)
  5833. - # FIXME: insert proper C++ library support
  5834. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5835. - ;;
  5836. - *)
  5837. - # FIXME: insert proper C++ library support
  5838. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5839. - ;;
  5840. - esac
  5841. - ;;
  5842. - sunos4*)
  5843. - case $cc_basename in
  5844. - CC)
  5845. - # Sun C++ 4.x
  5846. - # FIXME: insert proper C++ library support
  5847. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5848. - ;;
  5849. - lcc)
  5850. - # Lucid
  5851. - # FIXME: insert proper C++ library support
  5852. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5853. - ;;
  5854. - *)
  5855. - # FIXME: insert proper C++ library support
  5856. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5857. - ;;
  5858. - esac
  5859. - ;;
  5860. - solaris*)
  5861. - case $cc_basename in
  5862. - CC)
  5863. - # Sun C++ 4.2, 5.x and Centerline C++
  5864. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5865. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5866. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5867. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5868. -
  5869. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5870. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5871. - case $host_os in
  5872. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  5873. - *)
  5874. - # The C++ compiler is used as linker so we must use $wl
  5875. - # flag to pass the commands to the underlying system
  5876. - # linker.
  5877. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5878. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5879. - ;;
  5880. - esac
  5881. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5882. +newos6*)
  5883. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5884. + lt_cv_file_magic_cmd=/usr/bin/file
  5885. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5886. + ;;
  5887. - # Commands to make compiler produce verbose output that lists
  5888. - # what "hidden" libraries, object files and flags are used when
  5889. - # linking a shared library.
  5890. - #
  5891. - # There doesn't appear to be a way to prevent this compiler from
  5892. - # explicitly linking system object files so we need to strip them
  5893. - # from the output so that they don't get included in the library
  5894. - # dependencies.
  5895. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5896. -
  5897. - # Archives containing C++ object files must be created using
  5898. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5899. - # necessary to make sure instantiated templates are included
  5900. - # in the archive.
  5901. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5902. - ;;
  5903. - gcx)
  5904. - # Green Hills C++ Compiler
  5905. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5906. +*nto* | *qnx*)
  5907. + lt_cv_deplibs_check_method=pass_all
  5908. + ;;
  5909. - # The C++ compiler must be used to create the archive.
  5910. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5911. - ;;
  5912. - *)
  5913. - # GNU C++ compiler with Solaris linker
  5914. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5915. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5916. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  5917. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5918. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5919. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5920. +openbsd*)
  5921. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5922. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5923. + else
  5924. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5925. + fi
  5926. + ;;
  5927. - # Commands to make compiler produce verbose output that lists
  5928. - # what "hidden" libraries, object files and flags are used when
  5929. - # linking a shared library.
  5930. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5931. - else
  5932. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5933. - # platform.
  5934. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5935. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5936. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5937. +osf3* | osf4* | osf5*)
  5938. + lt_cv_deplibs_check_method=pass_all
  5939. + ;;
  5940. - # Commands to make compiler produce verbose output that lists
  5941. - # what "hidden" libraries, object files and flags are used when
  5942. - # linking a shared library.
  5943. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5944. - fi
  5945. +rdos*)
  5946. + lt_cv_deplibs_check_method=pass_all
  5947. + ;;
  5948. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5949. - fi
  5950. - ;;
  5951. - esac
  5952. +solaris*)
  5953. + lt_cv_deplibs_check_method=pass_all
  5954. + ;;
  5955. +
  5956. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5957. + lt_cv_deplibs_check_method=pass_all
  5958. + ;;
  5959. +
  5960. +sysv4 | sysv4.3*)
  5961. + case $host_vendor in
  5962. + motorola)
  5963. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  5964. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5965. ;;
  5966. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5967. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5968. + ncr)
  5969. + lt_cv_deplibs_check_method=pass_all
  5970. ;;
  5971. - tandem*)
  5972. - case $cc_basename in
  5973. - NCC)
  5974. - # NonStop-UX NCC 3.20
  5975. - # FIXME: insert proper C++ library support
  5976. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5977. - ;;
  5978. - *)
  5979. - # FIXME: insert proper C++ library support
  5980. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5981. - ;;
  5982. - esac
  5983. + sequent)
  5984. + lt_cv_file_magic_cmd='/bin/file'
  5985. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  5986. ;;
  5987. - vxworks*)
  5988. - # FIXME: insert proper C++ library support
  5989. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5990. + sni)
  5991. + lt_cv_file_magic_cmd='/bin/file'
  5992. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  5993. + lt_cv_file_magic_test_file=/lib/libc.so
  5994. ;;
  5995. - *)
  5996. - # FIXME: insert proper C++ library support
  5997. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5998. + siemens)
  5999. + lt_cv_deplibs_check_method=pass_all
  6000. ;;
  6001. -esac
  6002. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6003. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6004. -
  6005. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6006. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6007. + pc)
  6008. + lt_cv_deplibs_check_method=pass_all
  6009. + ;;
  6010. + esac
  6011. + ;;
  6012. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6013. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6014. -AC_LIBTOOL_PROG_CC_C_O($1)
  6015. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6016. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6017. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6018. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6019. -AC_LIBTOOL_SYS_LIB_STRIP
  6020. -AC_LIBTOOL_DLOPEN_SELF($1)
  6021. +tpf*)
  6022. + lt_cv_deplibs_check_method=pass_all
  6023. + ;;
  6024. +esac
  6025. +])
  6026. +file_magic_cmd=$lt_cv_file_magic_cmd
  6027. +deplibs_check_method=$lt_cv_deplibs_check_method
  6028. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6029. -AC_LIBTOOL_CONFIG($1)
  6030. +_LT_DECL([], [deplibs_check_method], [1],
  6031. + [Method to check whether dependent libraries are shared objects])
  6032. +_LT_DECL([], [file_magic_cmd], [1],
  6033. + [Command to use when deplibs_check_method == "file_magic"])
  6034. +])# _LT_CHECK_MAGIC_METHOD
  6035. -AC_LANG_POP
  6036. -CC=$lt_save_CC
  6037. -LDCXX=$LD
  6038. -LD=$lt_save_LD
  6039. -GCC=$lt_save_GCC
  6040. -with_gnu_ldcxx=$with_gnu_ld
  6041. -with_gnu_ld=$lt_save_with_gnu_ld
  6042. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6043. -lt_cv_path_LD=$lt_save_path_LD
  6044. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6045. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6046. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6047. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6048. -# ------------------------
  6049. -# Figure out "hidden" library dependencies from verbose
  6050. -# compiler output when linking a shared library.
  6051. -# Parse the compiler output and extract the necessary
  6052. -# objects, libraries and library flags.
  6053. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6054. -dnl we can't use the lt_simple_compile_test_code here,
  6055. -dnl because it contains code intended for an executable,
  6056. -dnl not a library. It's possible we should let each
  6057. -dnl tag define a new lt_????_link_test_code variable,
  6058. -dnl but it's only used here...
  6059. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6060. -int a;
  6061. -void foo (void) { a = 0; }
  6062. -EOF
  6063. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6064. -class Foo
  6065. -{
  6066. -public:
  6067. - Foo (void) { a = 0; }
  6068. -private:
  6069. - int a;
  6070. -};
  6071. -EOF
  6072. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6073. - subroutine foo
  6074. - implicit none
  6075. - integer*4 a
  6076. - a=0
  6077. - return
  6078. - end
  6079. -EOF
  6080. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6081. -public class foo {
  6082. - private int a;
  6083. - public void bar (void) {
  6084. - a = 0;
  6085. - }
  6086. -};
  6087. -EOF
  6088. -])
  6089. -dnl Parse the compiler output and extract the necessary
  6090. -dnl objects, libraries and library flags.
  6091. -if AC_TRY_EVAL(ac_compile); then
  6092. - # Parse the compiler output and extract the necessary
  6093. - # objects, libraries and library flags.
  6094. -
  6095. - # Sentinel used to keep track of whether or not we are before
  6096. - # the conftest object file.
  6097. - pre_test_object_deps_done=no
  6098. -
  6099. - # The `*' in the case matches for architectures that use `case' in
  6100. - # $output_verbose_cmd can trigger glob expansion during the loop
  6101. - # eval without this substitution.
  6102. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  6103. -
  6104. - for p in `eval $output_verbose_link_cmd`; do
  6105. - case $p in
  6106. -
  6107. - -L* | -R* | -l*)
  6108. - # Some compilers place space between "-{L,R}" and the path.
  6109. - # Remove the space.
  6110. - if test $p = "-L" \
  6111. - || test $p = "-R"; then
  6112. - prev=$p
  6113. - continue
  6114. - else
  6115. - prev=
  6116. - fi
  6117. -
  6118. - if test "$pre_test_object_deps_done" = no; then
  6119. - case $p in
  6120. - -L* | -R*)
  6121. - # Internal compiler library paths should come after those
  6122. - # provided the user. The postdeps already come after the
  6123. - # user supplied libs so there is no need to process them.
  6124. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6125. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6126. - else
  6127. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6128. - fi
  6129. - ;;
  6130. - # The "-l" case would never come before the object being
  6131. - # linked, so don't bother handling this case.
  6132. - esac
  6133. - else
  6134. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6135. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6136. - else
  6137. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6138. - fi
  6139. - fi
  6140. - ;;
  6141. -
  6142. - *.$objext)
  6143. - # This assumes that the test object file only shows up
  6144. - # once in the compiler output.
  6145. - if test "$p" = "conftest.$objext"; then
  6146. - pre_test_object_deps_done=yes
  6147. - continue
  6148. - fi
  6149. -
  6150. - if test "$pre_test_object_deps_done" = no; then
  6151. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6152. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6153. - else
  6154. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6155. - fi
  6156. - else
  6157. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6158. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6159. - else
  6160. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6161. - fi
  6162. - fi
  6163. - ;;
  6164. -
  6165. - *) ;; # Ignore the rest.
  6166. -
  6167. - esac
  6168. +# LT_PATH_NM
  6169. +# ----------
  6170. +# find the pathname to a BSD- or MS-compatible name lister
  6171. +AC_DEFUN([LT_PATH_NM],
  6172. +[AC_REQUIRE([AC_PROG_CC])dnl
  6173. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6174. +[if test -n "$NM"; then
  6175. + # Let the user override the test.
  6176. + lt_cv_path_NM="$NM"
  6177. +else
  6178. + lt_nm_to_check="${ac_tool_prefix}nm"
  6179. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6180. + lt_nm_to_check="$lt_nm_to_check nm"
  6181. + fi
  6182. + for lt_tmp_nm in $lt_nm_to_check; do
  6183. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6184. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6185. + IFS="$lt_save_ifs"
  6186. + test -z "$ac_dir" && ac_dir=.
  6187. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6188. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6189. + # Check to see if the nm accepts a BSD-compat flag.
  6190. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6191. + # nm: unknown option "B" ignored
  6192. + # Tru64's nm complains that /dev/null is an invalid object file
  6193. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6194. + */dev/null* | *'Invalid file or object type'*)
  6195. + lt_cv_path_NM="$tmp_nm -B"
  6196. + break
  6197. + ;;
  6198. + *)
  6199. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6200. + */dev/null*)
  6201. + lt_cv_path_NM="$tmp_nm -p"
  6202. + break
  6203. + ;;
  6204. + *)
  6205. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6206. + continue # so that we can try to find one that supports BSD flags
  6207. + ;;
  6208. + esac
  6209. + ;;
  6210. + esac
  6211. + fi
  6212. + done
  6213. + IFS="$lt_save_ifs"
  6214. done
  6215. -
  6216. - # Clean up.
  6217. - rm -f a.out a.exe
  6218. + : ${lt_cv_path_NM=no}
  6219. +fi])
  6220. +if test "$lt_cv_path_NM" != "no"; then
  6221. + NM="$lt_cv_path_NM"
  6222. else
  6223. - echo "libtool.m4: error: problem compiling $1 test program"
  6224. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6225. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6226. + AC_SUBST([DUMPBIN])
  6227. + if test "$DUMPBIN" != ":"; then
  6228. + NM="$DUMPBIN"
  6229. + fi
  6230. fi
  6231. +test -z "$NM" && NM=nm
  6232. +AC_SUBST([NM])
  6233. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6234. -$rm -f confest.$objext
  6235. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6236. + [lt_cv_nm_interface="BSD nm"
  6237. + echo "int some_variable = 0;" > conftest.$ac_ext
  6238. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6239. + (eval "$ac_compile" 2>conftest.err)
  6240. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6241. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6242. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6243. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6244. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6245. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6246. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6247. + lt_cv_nm_interface="MS dumpbin"
  6248. + fi
  6249. + rm -f conftest*])
  6250. +])# LT_PATH_NM
  6251. +
  6252. +# Old names:
  6253. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6254. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6255. +dnl aclocal-1.4 backwards compatibility:
  6256. +dnl AC_DEFUN([AM_PROG_NM], [])
  6257. +dnl AC_DEFUN([AC_PROG_NM], [])
  6258. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6259. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6260. +
  6261. +# LT_LIB_M
  6262. +# --------
  6263. +# check for math library
  6264. +AC_DEFUN([LT_LIB_M],
  6265. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6266. +LIBM=
  6267. +case $host in
  6268. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6269. + # These system don't have libm, or don't need it
  6270. + ;;
  6271. +*-ncr-sysv4.3*)
  6272. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6273. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6274. + ;;
  6275. +*)
  6276. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6277. + ;;
  6278. esac
  6279. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6280. +AC_SUBST([LIBM])
  6281. +])# LT_LIB_M
  6282. -# AC_LIBTOOL_LANG_F77_CONFIG
  6283. -# ------------------------
  6284. -# Ensure that the configuration vars for the C compiler are
  6285. -# suitably defined. Those variables are subsequently used by
  6286. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6287. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6288. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6289. -[AC_REQUIRE([AC_PROG_F77])
  6290. -AC_LANG_PUSH(Fortran 77)
  6291. +# Old name:
  6292. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6293. +dnl aclocal-1.4 backwards compatibility:
  6294. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6295. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6296. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6297. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6298. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6299. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6300. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6301. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6302. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6303. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6304. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6305. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6306. -_LT_AC_TAGVAR(module_cmds, $1)=
  6307. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6308. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6309. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6310. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6311. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6312. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6313. -# Source file extension for f77 test sources.
  6314. -ac_ext=f
  6315. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6316. +# -------------------------------
  6317. +m4_defun([_LT_COMPILER_NO_RTTI],
  6318. +[m4_require([_LT_TAG_COMPILER])dnl
  6319. -# Object file extension for compiled f77 test sources.
  6320. -objext=o
  6321. -_LT_AC_TAGVAR(objext, $1)=$objext
  6322. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6323. -# Code to be used in simple compile tests
  6324. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6325. +if test "$GCC" = yes; then
  6326. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6327. -# Code to be used in simple link tests
  6328. -lt_simple_link_test_code=" program t\n end\n"
  6329. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6330. + lt_cv_prog_compiler_rtti_exceptions,
  6331. + [-fno-rtti -fno-exceptions], [],
  6332. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6333. +fi
  6334. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6335. + [Compiler flag to turn off builtin functions])
  6336. +])# _LT_COMPILER_NO_RTTI
  6337. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6338. -_LT_AC_SYS_COMPILER
  6339. -# Allow CC to be a program name with arguments.
  6340. -lt_save_CC="$CC"
  6341. -CC=${F77-"f77"}
  6342. -compiler=$CC
  6343. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6344. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  6345. +# _LT_CMD_GLOBAL_SYMBOLS
  6346. +# ----------------------
  6347. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6348. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6349. +AC_REQUIRE([AC_PROG_CC])dnl
  6350. +AC_REQUIRE([LT_PATH_NM])dnl
  6351. +AC_REQUIRE([LT_PATH_LD])dnl
  6352. +m4_require([_LT_DECL_SED])dnl
  6353. +m4_require([_LT_DECL_EGREP])dnl
  6354. +m4_require([_LT_TAG_COMPILER])dnl
  6355. +
  6356. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6357. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6358. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6359. +[
  6360. +# These are sane defaults that work on at least a few old systems.
  6361. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6362. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6363. -AC_MSG_RESULT([$can_build_shared])
  6364. +# Character class describing NM global symbol codes.
  6365. +symcode='[[BCDEGRST]]'
  6366. -AC_MSG_CHECKING([whether to build shared libraries])
  6367. -test "$can_build_shared" = "no" && enable_shared=no
  6368. +# Regexp to match symbols that can be accessed directly from C.
  6369. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6370. -# On AIX, shared libraries and static libraries use the same namespace, and
  6371. -# are all built from PIC.
  6372. -case "$host_os" in
  6373. -aix3*)
  6374. - test "$enable_shared" = yes && enable_static=no
  6375. - if test -n "$RANLIB"; then
  6376. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6377. - postinstall_cmds='$RANLIB $lib'
  6378. +# Define system-specific variables.
  6379. +case $host_os in
  6380. +aix*)
  6381. + symcode='[[BCDT]]'
  6382. + ;;
  6383. +cygwin* | mingw* | pw32* | cegcc*)
  6384. + symcode='[[ABCDGISTW]]'
  6385. + ;;
  6386. +hpux*)
  6387. + if test "$host_cpu" = ia64; then
  6388. + symcode='[[ABCDEGRST]]'
  6389. fi
  6390. ;;
  6391. -aix4* | aix5*)
  6392. - test "$enable_shared" = yes && enable_static=no
  6393. +irix* | nonstopux*)
  6394. + symcode='[[BCDEGRST]]'
  6395. + ;;
  6396. +osf*)
  6397. + symcode='[[BCDEGQRST]]'
  6398. + ;;
  6399. +solaris*)
  6400. + symcode='[[BDRT]]'
  6401. + ;;
  6402. +sco3.2v5*)
  6403. + symcode='[[DT]]'
  6404. + ;;
  6405. +sysv4.2uw2*)
  6406. + symcode='[[DT]]'
  6407. + ;;
  6408. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6409. + symcode='[[ABDT]]'
  6410. + ;;
  6411. +sysv4)
  6412. + symcode='[[DFNSTU]]'
  6413. ;;
  6414. esac
  6415. -AC_MSG_RESULT([$enable_shared])
  6416. -
  6417. -AC_MSG_CHECKING([whether to build static libraries])
  6418. -# Make sure either enable_shared or enable_static is yes.
  6419. -test "$enable_shared" = yes || enable_static=yes
  6420. -AC_MSG_RESULT([$enable_static])
  6421. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6422. -
  6423. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6424. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6425. -
  6426. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6427. -AC_LIBTOOL_PROG_CC_C_O($1)
  6428. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6429. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6430. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6431. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6432. -AC_LIBTOOL_SYS_LIB_STRIP
  6433. -
  6434. -
  6435. -AC_LIBTOOL_CONFIG($1)
  6436. -
  6437. -AC_LANG_POP
  6438. -CC="$lt_save_CC"
  6439. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6440. -
  6441. -
  6442. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6443. -# --------------------------
  6444. -# Ensure that the configuration vars for the C compiler are
  6445. -# suitably defined. Those variables are subsequently used by
  6446. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6447. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6448. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6449. -[AC_LANG_SAVE
  6450. -
  6451. -# Source file extension for Java test sources.
  6452. -ac_ext=java
  6453. +# If we're using GNU nm, then use its standard symbol codes.
  6454. +case `$NM -V 2>&1` in
  6455. +*GNU* | *'with BFD'*)
  6456. + symcode='[[ABCDGIRSTW]]' ;;
  6457. +esac
  6458. -# Object file extension for compiled Java test sources.
  6459. -objext=o
  6460. -_LT_AC_TAGVAR(objext, $1)=$objext
  6461. +# Transform an extracted symbol line into a proper C declaration.
  6462. +# Some systems (esp. on ia64) link data and code symbols differently,
  6463. +# so use this general approach.
  6464. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6465. -# Code to be used in simple compile tests
  6466. -lt_simple_compile_test_code="class foo {}\n"
  6467. +# Transform an extracted symbol line into symbol name and symbol address
  6468. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6469. +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'"
  6470. -# Code to be used in simple link tests
  6471. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  6472. +# Handle CRLF in mingw tool chain
  6473. +opt_cr=
  6474. +case $build_os in
  6475. +mingw*)
  6476. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6477. + ;;
  6478. +esac
  6479. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6480. -_LT_AC_SYS_COMPILER
  6481. +# Try without a prefix underscore, then with it.
  6482. +for ac_symprfx in "" "_"; do
  6483. -# Allow CC to be a program name with arguments.
  6484. -lt_save_CC="$CC"
  6485. -CC=${GCJ-"gcj"}
  6486. -compiler=$CC
  6487. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6488. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6489. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6490. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6491. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6492. + # Write the raw and C identifiers.
  6493. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6494. + # Fake it for dumpbin and say T for any non-static function
  6495. + # and D for any global variable.
  6496. + # Also find C++ and __fastcall symbols from MSVC++,
  6497. + # which start with @ or ?.
  6498. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6499. +" {last_section=section; section=\$ 3};"\
  6500. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6501. +" \$ 0!~/External *\|/{next};"\
  6502. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6503. +" {if(hide[section]) next};"\
  6504. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6505. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6506. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6507. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6508. +" ' prfx=^$ac_symprfx]"
  6509. + else
  6510. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6511. + fi
  6512. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6513. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6514. -AC_LIBTOOL_PROG_CC_C_O($1)
  6515. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6516. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6517. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6518. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6519. -AC_LIBTOOL_SYS_LIB_STRIP
  6520. -AC_LIBTOOL_DLOPEN_SELF($1)
  6521. + # Check to see that the pipe works correctly.
  6522. + pipe_works=no
  6523. -AC_LIBTOOL_CONFIG($1)
  6524. + rm -f conftest*
  6525. + cat > conftest.$ac_ext <<_LT_EOF
  6526. +#ifdef __cplusplus
  6527. +extern "C" {
  6528. +#endif
  6529. +char nm_test_var;
  6530. +void nm_test_func(void);
  6531. +void nm_test_func(void){}
  6532. +#ifdef __cplusplus
  6533. +}
  6534. +#endif
  6535. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6536. +_LT_EOF
  6537. -AC_LANG_RESTORE
  6538. -CC="$lt_save_CC"
  6539. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6540. + if AC_TRY_EVAL(ac_compile); then
  6541. + # Now try to grab the symbols.
  6542. + nlist=conftest.nm
  6543. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6544. + # Try sorting and uniquifying the output.
  6545. + if sort "$nlist" | uniq > "$nlist"T; then
  6546. + mv -f "$nlist"T "$nlist"
  6547. + else
  6548. + rm -f "$nlist"T
  6549. + fi
  6550. + # Make sure that we snagged all the symbols we need.
  6551. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6552. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6553. + cat <<_LT_EOF > conftest.$ac_ext
  6554. +#ifdef __cplusplus
  6555. +extern "C" {
  6556. +#endif
  6557. -# AC_LIBTOOL_LANG_RC_CONFIG
  6558. -# --------------------------
  6559. -# Ensure that the configuration vars for the Windows resource compiler are
  6560. -# suitably defined. Those variables are subsequently used by
  6561. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6562. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6563. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6564. -[AC_LANG_SAVE
  6565. +_LT_EOF
  6566. + # Now generate the symbol file.
  6567. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6568. -# Source file extension for RC test sources.
  6569. -ac_ext=rc
  6570. + cat <<_LT_EOF >> conftest.$ac_ext
  6571. -# Object file extension for compiled RC test sources.
  6572. -objext=o
  6573. -_LT_AC_TAGVAR(objext, $1)=$objext
  6574. +/* The mapping between symbol names and symbols. */
  6575. +const struct {
  6576. + const char *name;
  6577. + void *address;
  6578. +}
  6579. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6580. +{
  6581. + { "@PROGRAM@", (void *) 0 },
  6582. +_LT_EOF
  6583. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6584. + cat <<\_LT_EOF >> conftest.$ac_ext
  6585. + {0, (void *) 0}
  6586. +};
  6587. -# Code to be used in simple compile tests
  6588. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6589. +/* This works around a problem in FreeBSD linker */
  6590. +#ifdef FREEBSD_WORKAROUND
  6591. +static const void *lt_preloaded_setup() {
  6592. + return lt__PROGRAM__LTX_preloaded_symbols;
  6593. +}
  6594. +#endif
  6595. -# Code to be used in simple link tests
  6596. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6597. +#ifdef __cplusplus
  6598. +}
  6599. +#endif
  6600. +_LT_EOF
  6601. + # Now try linking the two files.
  6602. + mv conftest.$ac_objext conftstm.$ac_objext
  6603. + lt_save_LIBS="$LIBS"
  6604. + lt_save_CFLAGS="$CFLAGS"
  6605. + LIBS="conftstm.$ac_objext"
  6606. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6607. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6608. + pipe_works=yes
  6609. + fi
  6610. + LIBS="$lt_save_LIBS"
  6611. + CFLAGS="$lt_save_CFLAGS"
  6612. + else
  6613. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6614. + fi
  6615. + else
  6616. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6617. + fi
  6618. + else
  6619. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6620. + fi
  6621. + else
  6622. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6623. + cat conftest.$ac_ext >&5
  6624. + fi
  6625. + rm -rf conftest* conftst*
  6626. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6627. -_LT_AC_SYS_COMPILER
  6628. + # Do not use the global_symbol_pipe unless it works.
  6629. + if test "$pipe_works" = yes; then
  6630. + break
  6631. + else
  6632. + lt_cv_sys_global_symbol_pipe=
  6633. + fi
  6634. +done
  6635. +])
  6636. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6637. + lt_cv_sys_global_symbol_to_cdecl=
  6638. +fi
  6639. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6640. + AC_MSG_RESULT(failed)
  6641. +else
  6642. + AC_MSG_RESULT(ok)
  6643. +fi
  6644. -# Allow CC to be a program name with arguments.
  6645. -lt_save_CC="$CC"
  6646. -CC=${RC-"windres"}
  6647. -compiler=$CC
  6648. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6649. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6650. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6651. + [Take the output of nm and produce a listing of raw symbols and C names])
  6652. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6653. + [Transform the output of nm in a proper C declaration])
  6654. +_LT_DECL([global_symbol_to_c_name_address],
  6655. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6656. + [Transform the output of nm in a C name address pair])
  6657. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6658. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6659. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6660. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6661. -AC_LIBTOOL_CONFIG($1)
  6662. -AC_LANG_RESTORE
  6663. -CC="$lt_save_CC"
  6664. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6665. +# _LT_COMPILER_PIC([TAGNAME])
  6666. +# ---------------------------
  6667. +m4_defun([_LT_COMPILER_PIC],
  6668. +[m4_require([_LT_TAG_COMPILER])dnl
  6669. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6670. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6671. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6672. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6673. +m4_if([$1], [CXX], [
  6674. + # C++ specific cases for pic, static, wl, etc.
  6675. + if test "$GXX" = yes; then
  6676. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6677. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6678. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6679. -# ----------------------------
  6680. -# If TAGNAME is not passed, then create an initial libtool script
  6681. -# with a default configuration from the untagged config vars. Otherwise
  6682. -# add code to config.status for appending the configuration named by
  6683. -# TAGNAME from the matching tagged config vars.
  6684. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6685. -[# The else clause should only fire when bootstrapping the
  6686. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6687. -# with your package, and you will get complaints that there are
  6688. -# no rules to generate ltmain.sh.
  6689. -if test -f "$ltmain"; then
  6690. - # See if we are running on zsh, and set the options which allow our commands through
  6691. - # without removal of \ escapes.
  6692. - if test -n "${ZSH_VERSION+set}" ; then
  6693. - setopt NO_GLOB_SUBST
  6694. - fi
  6695. - # Now quote all the things that may contain metacharacters while being
  6696. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6697. - # variables and quote the copies for generation of the libtool script.
  6698. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6699. - SED SHELL STRIP \
  6700. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6701. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6702. - deplibs_check_method reload_flag reload_cmds need_locks \
  6703. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6704. - lt_cv_sys_global_symbol_to_c_name_address \
  6705. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6706. - old_postinstall_cmds old_postuninstall_cmds \
  6707. - _LT_AC_TAGVAR(compiler, $1) \
  6708. - _LT_AC_TAGVAR(CC, $1) \
  6709. - _LT_AC_TAGVAR(LD, $1) \
  6710. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6711. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6712. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6713. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6714. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6715. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6716. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6717. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6718. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6719. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6720. - _LT_AC_TAGVAR(predep_objects, $1) \
  6721. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6722. - _LT_AC_TAGVAR(predeps, $1) \
  6723. - _LT_AC_TAGVAR(postdeps, $1) \
  6724. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6725. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6726. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6727. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6728. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6729. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6730. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6731. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6732. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6733. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6734. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6735. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6736. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6737. - _LT_AC_TAGVAR(module_cmds, $1) \
  6738. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6739. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6740. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6741. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6742. -
  6743. - case $var in
  6744. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6745. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6746. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6747. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6748. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6749. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6750. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6751. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6752. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6753. - postinstall_cmds | postuninstall_cmds | \
  6754. - old_postinstall_cmds | old_postuninstall_cmds | \
  6755. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6756. - # Double-quote double-evaled strings.
  6757. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6758. + case $host_os in
  6759. + aix*)
  6760. + # All AIX code is PIC.
  6761. + if test "$host_cpu" = ia64; then
  6762. + # AIX 5 now supports IA64 processor
  6763. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6764. + fi
  6765. + ;;
  6766. +
  6767. + amigaos*)
  6768. + case $host_cpu in
  6769. + powerpc)
  6770. + # see comment about AmigaOS4 .so support
  6771. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6772. + ;;
  6773. + m68k)
  6774. + # FIXME: we need at least 68020 code to build shared libraries, but
  6775. + # adding the `-m68020' flag to GCC prevents building anything better,
  6776. + # like `-m68040'.
  6777. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6778. + ;;
  6779. + esac
  6780. + ;;
  6781. +
  6782. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6783. + # PIC is the default for these OSes.
  6784. + ;;
  6785. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  6786. + # This hack is so that the source file can tell whether it is being
  6787. + # built for inclusion in a dll (and should export symbols for example).
  6788. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6789. + # (--disable-auto-import) libraries
  6790. + m4_if([$1], [GCJ], [],
  6791. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6792. + ;;
  6793. + darwin* | rhapsody*)
  6794. + # PIC is the default on this platform
  6795. + # Common symbols not allowed in MH_DYLIB files
  6796. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6797. + ;;
  6798. + *djgpp*)
  6799. + # DJGPP does not support shared libraries at all
  6800. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6801. + ;;
  6802. + interix[[3-9]]*)
  6803. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6804. + # Instead, we relocate shared libraries at runtime.
  6805. + ;;
  6806. + sysv4*MP*)
  6807. + if test -d /usr/nec; then
  6808. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6809. + fi
  6810. + ;;
  6811. + hpux*)
  6812. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6813. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6814. + # sets the default TLS model and affects inlining.
  6815. + case $host_cpu in
  6816. + hppa*64*)
  6817. + ;;
  6818. + *)
  6819. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6820. + ;;
  6821. + esac
  6822. + ;;
  6823. + *qnx* | *nto*)
  6824. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6825. + # it will coredump.
  6826. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6827. ;;
  6828. *)
  6829. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6830. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6831. ;;
  6832. esac
  6833. - done
  6834. -
  6835. - case $lt_echo in
  6836. - *'\[$]0 --fallback-echo"')
  6837. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6838. - ;;
  6839. - esac
  6840. + else
  6841. + case $host_os in
  6842. + aix[[4-9]]*)
  6843. + # All AIX code is PIC.
  6844. + if test "$host_cpu" = ia64; then
  6845. + # AIX 5 now supports IA64 processor
  6846. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6847. + else
  6848. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6849. + fi
  6850. + ;;
  6851. + chorus*)
  6852. + case $cc_basename in
  6853. + cxch68*)
  6854. + # Green Hills C++ Compiler
  6855. + # _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"
  6856. + ;;
  6857. + esac
  6858. + ;;
  6859. + dgux*)
  6860. + case $cc_basename in
  6861. + ec++*)
  6862. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6863. + ;;
  6864. + ghcx*)
  6865. + # Green Hills C++ Compiler
  6866. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6867. + ;;
  6868. + *)
  6869. + ;;
  6870. + esac
  6871. + ;;
  6872. + freebsd* | dragonfly*)
  6873. + # FreeBSD uses GNU C++
  6874. + ;;
  6875. + hpux9* | hpux10* | hpux11*)
  6876. + case $cc_basename in
  6877. + CC*)
  6878. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6879. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6880. + if test "$host_cpu" != ia64; then
  6881. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6882. + fi
  6883. + ;;
  6884. + aCC*)
  6885. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6886. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6887. + case $host_cpu in
  6888. + hppa*64*|ia64*)
  6889. + # +Z the default
  6890. + ;;
  6891. + *)
  6892. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6893. + ;;
  6894. + esac
  6895. + ;;
  6896. + *)
  6897. + ;;
  6898. + esac
  6899. + ;;
  6900. + interix*)
  6901. + # This is c89, which is MS Visual C++ (no shared libs)
  6902. + # Anyone wants to do a port?
  6903. + ;;
  6904. + irix5* | irix6* | nonstopux*)
  6905. + case $cc_basename in
  6906. + CC*)
  6907. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6908. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6909. + # CC pic flag -KPIC is the default.
  6910. + ;;
  6911. + *)
  6912. + ;;
  6913. + esac
  6914. + ;;
  6915. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6916. + case $cc_basename in
  6917. + KCC*)
  6918. + # KAI C++ Compiler
  6919. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6920. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6921. + ;;
  6922. + ecpc* )
  6923. + # old Intel C++ for x86_64 which still supported -KPIC.
  6924. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6925. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6926. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6927. + ;;
  6928. + icpc* )
  6929. + # Intel C++, used to be incompatible with GCC.
  6930. + # ICC 10 doesn't accept -KPIC any more.
  6931. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6932. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6933. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6934. + ;;
  6935. + pgCC* | pgcpp*)
  6936. + # Portland Group C++ compiler
  6937. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6938. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6939. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6940. + ;;
  6941. + cxx*)
  6942. + # Compaq C++
  6943. + # Make sure the PIC flag is empty. It appears that all Alpha
  6944. + # Linux and Compaq Tru64 Unix objects are PIC.
  6945. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6946. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6947. + ;;
  6948. + xlc* | xlC*)
  6949. + # IBM XL 8.0 on PPC
  6950. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6951. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6952. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6953. + ;;
  6954. + *)
  6955. + case `$CC -V 2>&1 | sed 5q` in
  6956. + *Sun\ C*)
  6957. + # Sun C++ 5.9
  6958. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6959. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6960. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6961. + ;;
  6962. + esac
  6963. + ;;
  6964. + esac
  6965. + ;;
  6966. + lynxos*)
  6967. + ;;
  6968. + m88k*)
  6969. + ;;
  6970. + mvs*)
  6971. + case $cc_basename in
  6972. + cxx*)
  6973. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6974. + ;;
  6975. + *)
  6976. + ;;
  6977. + esac
  6978. + ;;
  6979. + netbsd* | netbsdelf*-gnu)
  6980. + ;;
  6981. + *qnx* | *nto*)
  6982. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6983. + # it will coredump.
  6984. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6985. + ;;
  6986. + osf3* | osf4* | osf5*)
  6987. + case $cc_basename in
  6988. + KCC*)
  6989. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6990. + ;;
  6991. + RCC*)
  6992. + # Rational C++ 2.4.1
  6993. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6994. + ;;
  6995. + cxx*)
  6996. + # Digital/Compaq C++
  6997. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6998. + # Make sure the PIC flag is empty. It appears that all Alpha
  6999. + # Linux and Compaq Tru64 Unix objects are PIC.
  7000. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7001. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7002. + ;;
  7003. + *)
  7004. + ;;
  7005. + esac
  7006. + ;;
  7007. + psos*)
  7008. + ;;
  7009. + solaris*)
  7010. + case $cc_basename in
  7011. + CC*)
  7012. + # Sun C++ 4.2, 5.x and Centerline C++
  7013. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7014. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7015. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7016. + ;;
  7017. + gcx*)
  7018. + # Green Hills C++ Compiler
  7019. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7020. + ;;
  7021. + *)
  7022. + ;;
  7023. + esac
  7024. + ;;
  7025. + sunos4*)
  7026. + case $cc_basename in
  7027. + CC*)
  7028. + # Sun C++ 4.x
  7029. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7030. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7031. + ;;
  7032. + lcc*)
  7033. + # Lucid
  7034. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7035. + ;;
  7036. + *)
  7037. + ;;
  7038. + esac
  7039. + ;;
  7040. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7041. + case $cc_basename in
  7042. + CC*)
  7043. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7044. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7045. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7046. + ;;
  7047. + esac
  7048. + ;;
  7049. + tandem*)
  7050. + case $cc_basename in
  7051. + NCC*)
  7052. + # NonStop-UX NCC 3.20
  7053. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7054. + ;;
  7055. + *)
  7056. + ;;
  7057. + esac
  7058. + ;;
  7059. + vxworks*)
  7060. + ;;
  7061. + *)
  7062. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7063. + ;;
  7064. + esac
  7065. + fi
  7066. +],
  7067. +[
  7068. + if test "$GCC" = yes; then
  7069. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7070. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7071. -ifelse([$1], [],
  7072. - [cfgfile="${ofile}T"
  7073. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7074. - $rm -f "$cfgfile"
  7075. - AC_MSG_NOTICE([creating $ofile])],
  7076. - [cfgfile="$ofile"])
  7077. + case $host_os in
  7078. + aix*)
  7079. + # All AIX code is PIC.
  7080. + if test "$host_cpu" = ia64; then
  7081. + # AIX 5 now supports IA64 processor
  7082. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7083. + fi
  7084. + ;;
  7085. - cat <<__EOF__ >> "$cfgfile"
  7086. -ifelse([$1], [],
  7087. -[#! $SHELL
  7088. + amigaos*)
  7089. + case $host_cpu in
  7090. + powerpc)
  7091. + # see comment about AmigaOS4 .so support
  7092. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7093. + ;;
  7094. + m68k)
  7095. + # FIXME: we need at least 68020 code to build shared libraries, but
  7096. + # adding the `-m68020' flag to GCC prevents building anything better,
  7097. + # like `-m68040'.
  7098. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7099. + ;;
  7100. + esac
  7101. + ;;
  7102. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7103. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7104. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7105. -#
  7106. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7107. -# Free Software Foundation, Inc.
  7108. -#
  7109. -# This file is part of GNU Libtool:
  7110. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7111. -#
  7112. -# This program is free software; you can redistribute it and/or modify
  7113. -# it under the terms of the GNU General Public License as published by
  7114. -# the Free Software Foundation; either version 2 of the License, or
  7115. -# (at your option) any later version.
  7116. -#
  7117. -# This program is distributed in the hope that it will be useful, but
  7118. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7119. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7120. -# General Public License for more details.
  7121. -#
  7122. -# You should have received a copy of the GNU General Public License
  7123. -# along with this program; if not, write to the Free Software
  7124. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7125. -#
  7126. -# As a special exception to the GNU General Public License, if you
  7127. -# distribute this file as part of a program that contains a
  7128. -# configuration script generated by Autoconf, you may include it under
  7129. -# the same distribution terms that you use for the rest of that program.
  7130. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7131. + # PIC is the default for these OSes.
  7132. + ;;
  7133. -# A sed program that does not truncate output.
  7134. -SED=$lt_SED
  7135. -
  7136. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7137. -Xsed="$SED -e s/^X//"
  7138. -
  7139. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7140. -# if CDPATH is set.
  7141. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7142. -
  7143. -# The names of the tagged configurations supported by this script.
  7144. -available_tags=
  7145. -
  7146. -# ### BEGIN LIBTOOL CONFIG],
  7147. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7148. -
  7149. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7150. -
  7151. -# Shell to use when invoking shell scripts.
  7152. -SHELL=$lt_SHELL
  7153. -
  7154. -# Whether or not to build shared libraries.
  7155. -build_libtool_libs=$enable_shared
  7156. -
  7157. -# Whether or not to build static libraries.
  7158. -build_old_libs=$enable_static
  7159. -
  7160. -# Whether or not to add -lc for building shared libraries.
  7161. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7162. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7163. + # This hack is so that the source file can tell whether it is being
  7164. + # built for inclusion in a dll (and should export symbols for example).
  7165. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7166. + # (--disable-auto-import) libraries
  7167. + m4_if([$1], [GCJ], [],
  7168. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7169. + ;;
  7170. -# Whether or not to disallow shared libs when runtime libs are static
  7171. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7172. + darwin* | rhapsody*)
  7173. + # PIC is the default on this platform
  7174. + # Common symbols not allowed in MH_DYLIB files
  7175. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7176. + ;;
  7177. -# Whether or not to optimize for fast installation.
  7178. -fast_install=$enable_fast_install
  7179. + hpux*)
  7180. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7181. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7182. + # sets the default TLS model and affects inlining.
  7183. + case $host_cpu in
  7184. + hppa*64*)
  7185. + # +Z the default
  7186. + ;;
  7187. + *)
  7188. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7189. + ;;
  7190. + esac
  7191. + ;;
  7192. -# The host system.
  7193. -host_alias=$host_alias
  7194. -host=$host
  7195. + interix[[3-9]]*)
  7196. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7197. + # Instead, we relocate shared libraries at runtime.
  7198. + ;;
  7199. -# An echo program that does not interpret backslashes.
  7200. -echo=$lt_echo
  7201. + msdosdjgpp*)
  7202. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7203. + # on systems that don't support them.
  7204. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7205. + enable_shared=no
  7206. + ;;
  7207. -# The archiver.
  7208. -AR=$lt_AR
  7209. -AR_FLAGS=$lt_AR_FLAGS
  7210. + *nto* | *qnx*)
  7211. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7212. + # it will coredump.
  7213. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7214. + ;;
  7215. -# A C compiler.
  7216. -LTCC=$lt_LTCC
  7217. + sysv4*MP*)
  7218. + if test -d /usr/nec; then
  7219. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7220. + fi
  7221. + ;;
  7222. -# A language-specific compiler.
  7223. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7224. + *)
  7225. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7226. + ;;
  7227. + esac
  7228. + else
  7229. + # PORTME Check for flag to pass linker flags through the system compiler.
  7230. + case $host_os in
  7231. + aix*)
  7232. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7233. + if test "$host_cpu" = ia64; then
  7234. + # AIX 5 now supports IA64 processor
  7235. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7236. + else
  7237. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7238. + fi
  7239. + ;;
  7240. -# Is the compiler the GNU C compiler?
  7241. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7242. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7243. + # This hack is so that the source file can tell whether it is being
  7244. + # built for inclusion in a dll (and should export symbols for example).
  7245. + m4_if([$1], [GCJ], [],
  7246. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7247. + ;;
  7248. -# An ERE matcher.
  7249. -EGREP=$lt_EGREP
  7250. + hpux9* | hpux10* | hpux11*)
  7251. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7252. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7253. + # not for PA HP-UX.
  7254. + case $host_cpu in
  7255. + hppa*64*|ia64*)
  7256. + # +Z the default
  7257. + ;;
  7258. + *)
  7259. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7260. + ;;
  7261. + esac
  7262. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7263. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7264. + ;;
  7265. -# The linker used to build libraries.
  7266. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7267. + irix5* | irix6* | nonstopux*)
  7268. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7269. + # PIC (with -KPIC) is the default.
  7270. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7271. + ;;
  7272. -# Whether we need hard or soft links.
  7273. -LN_S=$lt_LN_S
  7274. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7275. + case $cc_basename in
  7276. + # old Intel for x86_64 which still supported -KPIC.
  7277. + ecc*)
  7278. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7279. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7280. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7281. + ;;
  7282. + # icc used to be incompatible with GCC.
  7283. + # ICC 10 doesn't accept -KPIC any more.
  7284. + icc* | ifort*)
  7285. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7286. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7287. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7288. + ;;
  7289. + # Lahey Fortran 8.1.
  7290. + lf95*)
  7291. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7292. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7293. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7294. + ;;
  7295. + pgcc* | pgf77* | pgf90* | pgf95*)
  7296. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7297. + # which looks to be a dead project)
  7298. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7299. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7300. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7301. + ;;
  7302. + ccc*)
  7303. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7304. + # All Alpha code is PIC.
  7305. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7306. + ;;
  7307. + xl*)
  7308. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7309. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7310. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7311. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7312. + ;;
  7313. + *)
  7314. + case `$CC -V 2>&1 | sed 5q` in
  7315. + *Sun\ C*)
  7316. + # Sun C 5.9
  7317. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7318. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7319. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7320. + ;;
  7321. + *Sun\ F*)
  7322. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7323. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7324. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7325. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7326. + ;;
  7327. + esac
  7328. + ;;
  7329. + esac
  7330. + ;;
  7331. -# A BSD-compatible nm program.
  7332. -NM=$lt_NM
  7333. + newsos6)
  7334. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7335. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7336. + ;;
  7337. -# A symbol stripping program
  7338. -STRIP=$lt_STRIP
  7339. + *nto* | *qnx*)
  7340. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7341. + # it will coredump.
  7342. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7343. + ;;
  7344. -# Used to examine libraries when file_magic_cmd begins "file"
  7345. -MAGIC_CMD=$MAGIC_CMD
  7346. + osf3* | osf4* | osf5*)
  7347. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7348. + # All OSF/1 code is PIC.
  7349. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7350. + ;;
  7351. -# Used on cygwin: DLL creation program.
  7352. -DLLTOOL="$DLLTOOL"
  7353. + rdos*)
  7354. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7355. + ;;
  7356. -# Used on cygwin: object dumper.
  7357. -OBJDUMP="$OBJDUMP"
  7358. + solaris*)
  7359. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7360. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7361. + case $cc_basename in
  7362. + f77* | f90* | f95*)
  7363. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7364. + *)
  7365. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7366. + esac
  7367. + ;;
  7368. -# Used on cygwin: assembler.
  7369. -AS="$AS"
  7370. + sunos4*)
  7371. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7372. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7373. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7374. + ;;
  7375. -# The name of the directory that contains temporary libtool files.
  7376. -objdir=$objdir
  7377. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7378. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7379. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7380. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7381. + ;;
  7382. -# How to create reloadable object files.
  7383. -reload_flag=$lt_reload_flag
  7384. -reload_cmds=$lt_reload_cmds
  7385. + sysv4*MP*)
  7386. + if test -d /usr/nec ;then
  7387. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7388. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7389. + fi
  7390. + ;;
  7391. -# How to pass a linker flag through the compiler.
  7392. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7393. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7394. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7395. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7396. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7397. + ;;
  7398. -# Object file suffix (normally "o").
  7399. -objext="$ac_objext"
  7400. + unicos*)
  7401. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7402. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7403. + ;;
  7404. -# Old archive suffix (normally "a").
  7405. -libext="$libext"
  7406. + uts4*)
  7407. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7408. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7409. + ;;
  7410. -# Shared library suffix (normally ".so").
  7411. -shrext_cmds='$shrext_cmds'
  7412. + *)
  7413. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7414. + ;;
  7415. + esac
  7416. + fi
  7417. +])
  7418. +case $host_os in
  7419. + # For platforms which do not support PIC, -DPIC is meaningless:
  7420. + *djgpp*)
  7421. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7422. + ;;
  7423. + *)
  7424. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7425. + ;;
  7426. +esac
  7427. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7428. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7429. + [How to pass a linker flag through the compiler])
  7430. -# Executable file suffix (normally "").
  7431. -exeext="$exeext"
  7432. +#
  7433. +# Check to make sure the PIC flag actually works.
  7434. +#
  7435. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7436. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7437. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7438. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7439. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7440. + "" | " "*) ;;
  7441. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7442. + esac],
  7443. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7444. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7445. +fi
  7446. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7447. + [Additional compiler flags for building library objects])
  7448. -# Additional compiler flags for building library objects.
  7449. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7450. -pic_mode=$pic_mode
  7451. +#
  7452. +# Check to make sure the static flag actually works.
  7453. +#
  7454. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7455. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7456. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7457. + $lt_tmp_static_flag,
  7458. + [],
  7459. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7460. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7461. + [Compiler flag to prevent dynamic linking])
  7462. +])# _LT_COMPILER_PIC
  7463. -# What is the maximum length of a command?
  7464. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7465. -# Does compiler simultaneously support -c and -o options?
  7466. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7467. +# _LT_LINKER_SHLIBS([TAGNAME])
  7468. +# ----------------------------
  7469. +# See if the linker supports building shared libraries.
  7470. +m4_defun([_LT_LINKER_SHLIBS],
  7471. +[AC_REQUIRE([LT_PATH_LD])dnl
  7472. +AC_REQUIRE([LT_PATH_NM])dnl
  7473. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7474. +m4_require([_LT_DECL_EGREP])dnl
  7475. +m4_require([_LT_DECL_SED])dnl
  7476. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7477. +m4_require([_LT_TAG_COMPILER])dnl
  7478. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7479. +m4_if([$1], [CXX], [
  7480. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7481. + case $host_os in
  7482. + aix[[4-9]]*)
  7483. + # If we're using GNU nm, then we don't want the "-C" option.
  7484. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7485. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7486. + _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'
  7487. + else
  7488. + _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'
  7489. + fi
  7490. + ;;
  7491. + pw32*)
  7492. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7493. + ;;
  7494. + cygwin* | mingw* | cegcc*)
  7495. + _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'
  7496. + ;;
  7497. + linux* | k*bsd*-gnu)
  7498. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7499. + ;;
  7500. + *)
  7501. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7502. + ;;
  7503. + esac
  7504. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7505. +], [
  7506. + runpath_var=
  7507. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7508. + _LT_TAGVAR(always_export_symbols, $1)=no
  7509. + _LT_TAGVAR(archive_cmds, $1)=
  7510. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7511. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7512. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7513. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7514. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7515. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7516. + _LT_TAGVAR(hardcode_direct, $1)=no
  7517. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7518. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7519. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7520. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7521. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7522. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7523. + _LT_TAGVAR(inherit_rpath, $1)=no
  7524. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7525. + _LT_TAGVAR(module_cmds, $1)=
  7526. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7527. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7528. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7529. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7530. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7531. + # include_expsyms should be a list of space-separated symbols to be *always*
  7532. + # included in the symbol list
  7533. + _LT_TAGVAR(include_expsyms, $1)=
  7534. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7535. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7536. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7537. + # as well as any symbol that contains `d'.
  7538. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7539. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7540. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7541. + # the symbol is explicitly referenced. Since portable code cannot
  7542. + # rely on this symbol name, it's probably fine to never include it in
  7543. + # preloaded symbol tables.
  7544. + # Exclude shared library initialization/finalization symbols.
  7545. +dnl Note also adjust exclude_expsyms for C++ above.
  7546. + extract_expsyms_cmds=
  7547. -# Must we lock files when doing compilation ?
  7548. -need_locks=$lt_need_locks
  7549. + case $host_os in
  7550. + cygwin* | mingw* | pw32* | cegcc*)
  7551. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7552. + # When not using gcc, we currently assume that we are using
  7553. + # Microsoft Visual C++.
  7554. + if test "$GCC" != yes; then
  7555. + with_gnu_ld=no
  7556. + fi
  7557. + ;;
  7558. + interix*)
  7559. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7560. + with_gnu_ld=yes
  7561. + ;;
  7562. + openbsd*)
  7563. + with_gnu_ld=no
  7564. + ;;
  7565. + linux* | k*bsd*-gnu)
  7566. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7567. + ;;
  7568. + esac
  7569. -# Do we need the lib prefix for modules?
  7570. -need_lib_prefix=$need_lib_prefix
  7571. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7572. + if test "$with_gnu_ld" = yes; then
  7573. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7574. + wlarc='${wl}'
  7575. -# Do we need a version for libraries?
  7576. -need_version=$need_version
  7577. + # Set some defaults for GNU ld with shared library support. These
  7578. + # are reset later if shared libraries are not supported. Putting them
  7579. + # here allows them to be overridden if necessary.
  7580. + runpath_var=LD_RUN_PATH
  7581. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7582. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7583. + # ancient GNU ld didn't support --whole-archive et. al.
  7584. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7585. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7586. + else
  7587. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7588. + fi
  7589. + supports_anon_versioning=no
  7590. + case `$LD -v 2>&1` in
  7591. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7592. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7593. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7594. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7595. + *\ 2.11.*) ;; # other 2.11 versions
  7596. + *) supports_anon_versioning=yes ;;
  7597. + esac
  7598. -# Whether dlopen is supported.
  7599. -dlopen_support=$enable_dlopen
  7600. + # See if GNU ld supports shared libraries.
  7601. + case $host_os in
  7602. + aix[[3-9]]*)
  7603. + # On AIX/PPC, the GNU linker is very broken
  7604. + if test "$host_cpu" != ia64; then
  7605. + _LT_TAGVAR(ld_shlibs, $1)=no
  7606. + cat <<_LT_EOF 1>&2
  7607. -# Whether dlopen of programs is supported.
  7608. -dlopen_self=$enable_dlopen_self
  7609. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7610. +*** to be unable to reliably create shared libraries on AIX.
  7611. +*** Therefore, libtool is disabling shared libraries support. If you
  7612. +*** really care for shared libraries, you may want to modify your PATH
  7613. +*** so that a non-GNU linker is found, and then restart.
  7614. -# Whether dlopen of statically linked programs is supported.
  7615. -dlopen_self_static=$enable_dlopen_self_static
  7616. +_LT_EOF
  7617. + fi
  7618. + ;;
  7619. -# Compiler flag to prevent dynamic linking.
  7620. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7621. + amigaos*)
  7622. + case $host_cpu in
  7623. + powerpc)
  7624. + # see comment about AmigaOS4 .so support
  7625. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7626. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7627. + ;;
  7628. + m68k)
  7629. + _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)'
  7630. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7631. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7632. + ;;
  7633. + esac
  7634. + ;;
  7635. -# Compiler flag to turn off builtin functions.
  7636. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7637. + beos*)
  7638. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7639. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7640. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7641. + # support --undefined. This deserves some investigation. FIXME
  7642. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7643. + else
  7644. + _LT_TAGVAR(ld_shlibs, $1)=no
  7645. + fi
  7646. + ;;
  7647. -# Compiler flag to allow reflexive dlopens.
  7648. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7649. + cygwin* | mingw* | pw32* | cegcc*)
  7650. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7651. + # as there is no search path for DLLs.
  7652. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7653. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7654. + _LT_TAGVAR(always_export_symbols, $1)=no
  7655. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7656. + _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'
  7657. -# Compiler flag to generate shared objects directly from archives.
  7658. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7659. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7660. + _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'
  7661. + # If the export-symbols file already is a .def file (1st line
  7662. + # is EXPORTS), use it as is; otherwise, prepend...
  7663. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7664. + cp $export_symbols $output_objdir/$soname.def;
  7665. + else
  7666. + echo EXPORTS > $output_objdir/$soname.def;
  7667. + cat $export_symbols >> $output_objdir/$soname.def;
  7668. + fi~
  7669. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7670. + else
  7671. + _LT_TAGVAR(ld_shlibs, $1)=no
  7672. + fi
  7673. + ;;
  7674. -# Compiler flag to generate thread-safe objects.
  7675. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7676. + interix[[3-9]]*)
  7677. + _LT_TAGVAR(hardcode_direct, $1)=no
  7678. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7679. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7680. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7681. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7682. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7683. + # default) and relocated if they conflict, which is a slow very memory
  7684. + # consuming and fragmenting process. To avoid this, we pick a random,
  7685. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7686. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7687. + _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'
  7688. + _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'
  7689. + ;;
  7690. +
  7691. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7692. + tmp_diet=no
  7693. + if test "$host_os" = linux-dietlibc; then
  7694. + case $cc_basename in
  7695. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7696. + esac
  7697. + fi
  7698. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7699. + && test "$tmp_diet" = no
  7700. + then
  7701. + tmp_addflag=
  7702. + tmp_sharedflag='-shared'
  7703. + case $cc_basename,$host_cpu in
  7704. + pgcc*) # Portland Group C compiler
  7705. + _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'
  7706. + tmp_addflag=' $pic_flag'
  7707. + ;;
  7708. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7709. + _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'
  7710. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7711. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7712. + tmp_addflag=' -i_dynamic' ;;
  7713. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7714. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7715. + ifc* | ifort*) # Intel Fortran compiler
  7716. + tmp_addflag=' -nofor_main' ;;
  7717. + lf95*) # Lahey Fortran 8.1
  7718. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7719. + tmp_sharedflag='--shared' ;;
  7720. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7721. + tmp_sharedflag='-qmkshrobj'
  7722. + tmp_addflag= ;;
  7723. + esac
  7724. + case `$CC -V 2>&1 | sed 5q` in
  7725. + *Sun\ C*) # Sun C 5.9
  7726. + _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'
  7727. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7728. + tmp_sharedflag='-G' ;;
  7729. + *Sun\ F*) # Sun Fortran 8.3
  7730. + tmp_sharedflag='-G' ;;
  7731. + esac
  7732. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7733. -# Library versioning type.
  7734. -version_type=$version_type
  7735. + if test "x$supports_anon_versioning" = xyes; then
  7736. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7737. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7738. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7739. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7740. + fi
  7741. -# Format of library name prefix.
  7742. -libname_spec=$lt_libname_spec
  7743. + case $cc_basename in
  7744. + xlf*)
  7745. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7746. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  7747. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7748. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7749. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7750. + if test "x$supports_anon_versioning" = xyes; then
  7751. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7752. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7753. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7754. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7755. + fi
  7756. + ;;
  7757. + esac
  7758. + else
  7759. + _LT_TAGVAR(ld_shlibs, $1)=no
  7760. + fi
  7761. + ;;
  7762. -# List of archive names. First name is the real one, the rest are links.
  7763. -# The last name is the one that the linker finds with -lNAME.
  7764. -library_names_spec=$lt_library_names_spec
  7765. + netbsd* | netbsdelf*-gnu)
  7766. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7767. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7768. + wlarc=
  7769. + else
  7770. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7771. + _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'
  7772. + fi
  7773. + ;;
  7774. -# The coded name of the library, if different from the real name.
  7775. -soname_spec=$lt_soname_spec
  7776. + solaris*)
  7777. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7778. + _LT_TAGVAR(ld_shlibs, $1)=no
  7779. + cat <<_LT_EOF 1>&2
  7780. -# Commands used to build and install an old-style archive.
  7781. -RANLIB=$lt_RANLIB
  7782. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7783. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7784. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7785. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7786. +*** create shared libraries on Solaris systems. Therefore, libtool
  7787. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7788. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7789. +*** your PATH or compiler configuration so that the native linker is
  7790. +*** used, and then restart.
  7791. -# Create an old-style archive from a shared archive.
  7792. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7793. +_LT_EOF
  7794. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7795. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7796. + _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'
  7797. + else
  7798. + _LT_TAGVAR(ld_shlibs, $1)=no
  7799. + fi
  7800. + ;;
  7801. -# Create a temporary old-style archive to link instead of a shared archive.
  7802. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7803. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7804. + case `$LD -v 2>&1` in
  7805. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  7806. + _LT_TAGVAR(ld_shlibs, $1)=no
  7807. + cat <<_LT_EOF 1>&2
  7808. -# Commands used to build and install a shared archive.
  7809. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7810. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7811. -postinstall_cmds=$lt_postinstall_cmds
  7812. -postuninstall_cmds=$lt_postuninstall_cmds
  7813. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7814. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  7815. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7816. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7817. +*** your PATH or compiler configuration so that the native linker is
  7818. +*** used, and then restart.
  7819. -# Commands used to build a loadable module (assumed same as above if empty)
  7820. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7821. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7822. +_LT_EOF
  7823. + ;;
  7824. + *)
  7825. + # For security reasons, it is highly recommended that you always
  7826. + # use absolute paths for naming shared libraries, and exclude the
  7827. + # DT_RUNPATH tag from executables and libraries. But doing so
  7828. + # requires that you compile everything twice, which is a pain.
  7829. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7830. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7832. + _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'
  7833. + else
  7834. + _LT_TAGVAR(ld_shlibs, $1)=no
  7835. + fi
  7836. + ;;
  7837. + esac
  7838. + ;;
  7839. -# Commands to strip libraries.
  7840. -old_striplib=$lt_old_striplib
  7841. -striplib=$lt_striplib
  7842. + sunos4*)
  7843. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7844. + wlarc=
  7845. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7846. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7847. + ;;
  7848. -# Dependencies to place before the objects being linked to create a
  7849. -# shared library.
  7850. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7851. + *)
  7852. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7853. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7854. + _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'
  7855. + else
  7856. + _LT_TAGVAR(ld_shlibs, $1)=no
  7857. + fi
  7858. + ;;
  7859. + esac
  7860. -# Dependencies to place after the objects being linked to create a
  7861. -# shared library.
  7862. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7863. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  7864. + runpath_var=
  7865. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7866. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7867. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7868. + fi
  7869. + else
  7870. + # PORTME fill in a description of your system's linker (not GNU ld)
  7871. + case $host_os in
  7872. + aix3*)
  7873. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7874. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7875. + _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'
  7876. + # Note: this linker hardcodes the directories in LIBPATH if there
  7877. + # are no directories specified by -L.
  7878. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7879. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7880. + # Neither direct hardcoding nor static linking is supported with a
  7881. + # broken collect2.
  7882. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7883. + fi
  7884. + ;;
  7885. -# Dependencies to place before the objects being linked to create a
  7886. -# shared library.
  7887. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7888. + aix[[4-9]]*)
  7889. + if test "$host_cpu" = ia64; then
  7890. + # On IA64, the linker does run time linking by default, so we don't
  7891. + # have to do anything special.
  7892. + aix_use_runtimelinking=no
  7893. + exp_sym_flag='-Bexport'
  7894. + no_entry_flag=""
  7895. + else
  7896. + # If we're using GNU nm, then we don't want the "-C" option.
  7897. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7898. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7899. + _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'
  7900. + else
  7901. + _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'
  7902. + fi
  7903. + aix_use_runtimelinking=no
  7904. -# Dependencies to place after the objects being linked to create a
  7905. -# shared library.
  7906. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7907. + # Test if we are trying to use run time linking or normal
  7908. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7909. + # need to do runtime linking.
  7910. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7911. + for ld_flag in $LDFLAGS; do
  7912. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7913. + aix_use_runtimelinking=yes
  7914. + break
  7915. + fi
  7916. + done
  7917. + ;;
  7918. + esac
  7919. -# The library search path used internally by the compiler when linking
  7920. -# a shared library.
  7921. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7922. + exp_sym_flag='-bexport'
  7923. + no_entry_flag='-bnoentry'
  7924. + fi
  7925. -# Method to check whether dependent libraries are shared objects.
  7926. -deplibs_check_method=$lt_deplibs_check_method
  7927. + # When large executables or shared objects are built, AIX ld can
  7928. + # have problems creating the table of contents. If linking a library
  7929. + # or program results in "error TOC overflow" add -mminimal-toc to
  7930. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7931. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7932. -# Command to use when deplibs_check_method == file_magic.
  7933. -file_magic_cmd=$lt_file_magic_cmd
  7934. + _LT_TAGVAR(archive_cmds, $1)=''
  7935. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7936. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7937. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7938. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7939. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7940. -# Flag that allows shared libraries with undefined symbols to be built.
  7941. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7942. + if test "$GCC" = yes; then
  7943. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7944. + # We only want to do this on AIX 4.2 and lower, the check
  7945. + # below for broken collect2 doesn't work under 4.3+
  7946. + collect2name=`${CC} -print-prog-name=collect2`
  7947. + if test -f "$collect2name" &&
  7948. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7949. + then
  7950. + # We have reworked collect2
  7951. + :
  7952. + else
  7953. + # We have old collect2
  7954. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7955. + # It fails to find uninstalled libraries when the uninstalled
  7956. + # path is not listed in the libpath. Setting hardcode_minus_L
  7957. + # to unsupported forces relinking
  7958. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7959. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7960. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7961. + fi
  7962. + ;;
  7963. + esac
  7964. + shared_flag='-shared'
  7965. + if test "$aix_use_runtimelinking" = yes; then
  7966. + shared_flag="$shared_flag "'${wl}-G'
  7967. + fi
  7968. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7969. + else
  7970. + # not using gcc
  7971. + if test "$host_cpu" = ia64; then
  7972. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7973. + # chokes on -Wl,-G. The following line is correct:
  7974. + shared_flag='-G'
  7975. + else
  7976. + if test "$aix_use_runtimelinking" = yes; then
  7977. + shared_flag='${wl}-G'
  7978. + else
  7979. + shared_flag='${wl}-bM:SRE'
  7980. + fi
  7981. + fi
  7982. + fi
  7983. -# Flag that forces no undefined symbols.
  7984. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7985. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7986. + # It seems that -bexpall does not export symbols beginning with
  7987. + # underscore (_), so it is better to generate a list of symbols to export.
  7988. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7989. + if test "$aix_use_runtimelinking" = yes; then
  7990. + # Warning - without using the other runtime loading flags (-brtl),
  7991. + # -berok will link without error, but may produce a broken library.
  7992. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7993. + # Determine the default libpath from the value encoded in an
  7994. + # empty executable.
  7995. + _LT_SYS_MODULE_PATH_AIX
  7996. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7997. + _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"
  7998. + else
  7999. + if test "$host_cpu" = ia64; then
  8000. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8001. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8002. + _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"
  8003. + else
  8004. + # Determine the default libpath from the value encoded in an
  8005. + # empty executable.
  8006. + _LT_SYS_MODULE_PATH_AIX
  8007. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8008. + # Warning - without using the other run time loading flags,
  8009. + # -berok will link without error, but may produce a broken library.
  8010. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8011. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8012. + # Exported symbols can be pulled into shared objects from archives
  8013. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8014. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8015. + # This is similar to how AIX traditionally builds its shared libraries.
  8016. + _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'
  8017. + fi
  8018. + fi
  8019. + ;;
  8020. -# Commands used to finish a libtool library installation in a directory.
  8021. -finish_cmds=$lt_finish_cmds
  8022. + amigaos*)
  8023. + case $host_cpu in
  8024. + powerpc)
  8025. + # see comment about AmigaOS4 .so support
  8026. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8027. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8028. + ;;
  8029. + m68k)
  8030. + _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)'
  8031. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8032. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8033. + ;;
  8034. + esac
  8035. + ;;
  8036. -# Same as above, but a single script fragment to be evaled but not shown.
  8037. -finish_eval=$lt_finish_eval
  8038. + bsdi[[45]]*)
  8039. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8040. + ;;
  8041. -# Take the output of nm and produce a listing of raw symbols and C names.
  8042. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8043. + cygwin* | mingw* | pw32* | cegcc*)
  8044. + # When not using gcc, we currently assume that we are using
  8045. + # Microsoft Visual C++.
  8046. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8047. + # no search path for DLLs.
  8048. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8049. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8050. + # Tell ltmain to make .lib files, not .a files.
  8051. + libext=lib
  8052. + # Tell ltmain to make .dll files, not .so files.
  8053. + shrext_cmds=".dll"
  8054. + # FIXME: Setting linknames here is a bad hack.
  8055. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8056. + # The linker will automatically build a .lib file if we build a DLL.
  8057. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8058. + # FIXME: Should let the user specify the lib program.
  8059. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8060. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8061. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8062. + ;;
  8063. -# Transform the output of nm in a proper C declaration
  8064. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8065. + darwin* | rhapsody*)
  8066. + _LT_DARWIN_LINKER_FEATURES($1)
  8067. + ;;
  8068. -# Transform the output of nm in a C name address pair
  8069. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8070. + dgux*)
  8071. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8072. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8073. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8074. + ;;
  8075. -# This is the shared library runtime path variable.
  8076. -runpath_var=$runpath_var
  8077. + freebsd1*)
  8078. + _LT_TAGVAR(ld_shlibs, $1)=no
  8079. + ;;
  8080. -# This is the shared library path variable.
  8081. -shlibpath_var=$shlibpath_var
  8082. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8083. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8084. + # does not break anything, and helps significantly (at the cost of a little
  8085. + # extra space).
  8086. + freebsd2.2*)
  8087. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8088. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8089. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8090. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8091. + ;;
  8092. -# Is shlibpath searched before the hard-coded library search path?
  8093. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8094. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8095. + freebsd2*)
  8096. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8097. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8098. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8099. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8100. + ;;
  8101. -# How to hardcode a shared library path into an executable.
  8102. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8103. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8104. + freebsd* | dragonfly*)
  8105. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8106. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8107. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8108. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8109. + ;;
  8110. -# Whether we should hardcode library paths into libraries.
  8111. -hardcode_into_libs=$hardcode_into_libs
  8112. + hpux9*)
  8113. + if test "$GCC" = yes; then
  8114. + _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'
  8115. + else
  8116. + _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'
  8117. + fi
  8118. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8119. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8120. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8121. -# Flag to hardcode \$libdir into a binary during linking.
  8122. -# This must work even if \$libdir does not exist.
  8123. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8124. + # hardcode_minus_L: Not really in the search PATH,
  8125. + # but as the default location of the library.
  8126. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8127. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8128. + ;;
  8129. -# If ld is used when linking, flag to hardcode \$libdir into
  8130. -# a binary during linking. This must work even if \$libdir does
  8131. -# not exist.
  8132. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8133. + hpux10*)
  8134. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8135. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8136. + else
  8137. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8138. + fi
  8139. + if test "$with_gnu_ld" = no; then
  8140. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8141. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8142. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8143. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8144. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8145. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8146. + # hardcode_minus_L: Not really in the search PATH,
  8147. + # but as the default location of the library.
  8148. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8149. + fi
  8150. + ;;
  8151. -# Whether we need a single -rpath flag with a separated argument.
  8152. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8153. + hpux11*)
  8154. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8155. + case $host_cpu in
  8156. + hppa*64*)
  8157. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8158. + ;;
  8159. + ia64*)
  8160. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8161. + ;;
  8162. + *)
  8163. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8164. + ;;
  8165. + esac
  8166. + else
  8167. + case $host_cpu in
  8168. + hppa*64*)
  8169. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8170. + ;;
  8171. + ia64*)
  8172. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8173. + ;;
  8174. + *)
  8175. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8176. + ;;
  8177. + esac
  8178. + fi
  8179. + if test "$with_gnu_ld" = no; then
  8180. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8181. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8182. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8183. -# resulting binary.
  8184. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8185. + case $host_cpu in
  8186. + hppa*64*|ia64*)
  8187. + _LT_TAGVAR(hardcode_direct, $1)=no
  8188. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8189. + ;;
  8190. + *)
  8191. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8192. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8193. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8194. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8195. -# resulting binary.
  8196. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8197. + # hardcode_minus_L: Not really in the search PATH,
  8198. + # but as the default location of the library.
  8199. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8200. + ;;
  8201. + esac
  8202. + fi
  8203. + ;;
  8204. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8205. -# the resulting binary.
  8206. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8207. + irix5* | irix6* | nonstopux*)
  8208. + if test "$GCC" = yes; then
  8209. + _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'
  8210. + # Try to use the -exported_symbol ld option, if it does not
  8211. + # work, assume that -exports_file does not work either and
  8212. + # implicitly export all symbols.
  8213. + save_LDFLAGS="$LDFLAGS"
  8214. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8215. + AC_LINK_IFELSE(int foo(void) {},
  8216. + _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'
  8217. + )
  8218. + LDFLAGS="$save_LDFLAGS"
  8219. + else
  8220. + _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'
  8221. + _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'
  8222. + fi
  8223. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8224. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8225. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8226. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8227. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8228. + ;;
  8229. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8230. -# and all subsequent libraries and executables linked against it.
  8231. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8232. + netbsd* | netbsdelf*-gnu)
  8233. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8234. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8235. + else
  8236. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8237. + fi
  8238. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8239. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8240. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8241. + ;;
  8242. -# Variables whose values should be saved in libtool wrapper scripts and
  8243. -# restored at relink time.
  8244. -variables_saved_for_relink="$variables_saved_for_relink"
  8245. + newsos6)
  8246. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8247. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8249. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8250. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8251. + ;;
  8252. -# Whether libtool must link a program against all its dependency libraries.
  8253. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8254. + *nto* | *qnx*)
  8255. + ;;
  8256. -# Compile-time system search path for libraries
  8257. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8258. + openbsd*)
  8259. + if test -f /usr/libexec/ld.so; then
  8260. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8261. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8262. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8263. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8264. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8265. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8266. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8267. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8268. + else
  8269. + case $host_os in
  8270. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8271. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8272. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8273. + ;;
  8274. + *)
  8275. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8276. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8277. + ;;
  8278. + esac
  8279. + fi
  8280. + else
  8281. + _LT_TAGVAR(ld_shlibs, $1)=no
  8282. + fi
  8283. + ;;
  8284. -# Run-time system search path for libraries
  8285. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8286. + os2*)
  8287. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8288. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8289. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8290. + _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'
  8291. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8292. + ;;
  8293. -# Fix the shell variable \$srcfile for the compiler.
  8294. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8295. + osf3*)
  8296. + if test "$GCC" = yes; then
  8297. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8298. + _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'
  8299. + else
  8300. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8301. + _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'
  8302. + fi
  8303. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8304. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8305. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8306. + ;;
  8307. -# Set to yes if exported symbols are required.
  8308. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8309. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8310. + if test "$GCC" = yes; then
  8311. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8312. + _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'
  8313. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8314. + else
  8315. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8316. + _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'
  8317. + _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~
  8318. + $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'
  8319. -# The commands to list exported symbols.
  8320. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8321. + # Both c and cxx compiler support -rpath directly
  8322. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8323. + fi
  8324. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8325. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8326. + ;;
  8327. -# The commands to extract the exported symbol list from a shared archive.
  8328. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8329. + solaris*)
  8330. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8331. + if test "$GCC" = yes; then
  8332. + wlarc='${wl}'
  8333. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8334. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8335. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8336. + else
  8337. + case `$CC -V 2>&1` in
  8338. + *"Compilers 5.0"*)
  8339. + wlarc=''
  8340. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8341. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8342. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8343. + ;;
  8344. + *)
  8345. + wlarc='${wl}'
  8346. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8347. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8348. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8349. + ;;
  8350. + esac
  8351. + fi
  8352. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8353. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8354. + case $host_os in
  8355. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8356. + *)
  8357. + # The compiler driver will combine and reorder linker options,
  8358. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8359. + # but is careful enough not to reorder.
  8360. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8361. + if test "$GCC" = yes; then
  8362. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8363. + else
  8364. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8365. + fi
  8366. + ;;
  8367. + esac
  8368. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8369. + ;;
  8370. -# Symbols that should not be listed in the preloaded symbols.
  8371. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8372. + sunos4*)
  8373. + if test "x$host_vendor" = xsequent; then
  8374. + # Use $CC to link under sequent, because it throws in some extra .o
  8375. + # files that make .init and .fini sections work.
  8376. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8377. + else
  8378. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8379. + fi
  8380. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8381. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8382. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8383. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8384. + ;;
  8385. -# Symbols that must always be exported.
  8386. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8387. + sysv4)
  8388. + case $host_vendor in
  8389. + sni)
  8390. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8392. + ;;
  8393. + siemens)
  8394. + ## LD is ld it makes a PLAMLIB
  8395. + ## CC just makes a GrossModule.
  8396. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8397. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8398. + _LT_TAGVAR(hardcode_direct, $1)=no
  8399. + ;;
  8400. + motorola)
  8401. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8402. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8403. + ;;
  8404. + esac
  8405. + runpath_var='LD_RUN_PATH'
  8406. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8407. + ;;
  8408. -ifelse([$1],[],
  8409. -[# ### END LIBTOOL CONFIG],
  8410. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8411. + sysv4.3*)
  8412. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8413. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8414. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8415. + ;;
  8416. -__EOF__
  8417. + sysv4*MP*)
  8418. + if test -d /usr/nec; then
  8419. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8421. + runpath_var=LD_RUN_PATH
  8422. + hardcode_runpath_var=yes
  8423. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8424. + fi
  8425. + ;;
  8426. -ifelse([$1],[], [
  8427. - case $host_os in
  8428. - aix3*)
  8429. - cat <<\EOF >> "$cfgfile"
  8430. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8431. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8432. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8433. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8434. + runpath_var='LD_RUN_PATH'
  8435. -# AIX sometimes has problems with the GCC collect2 program. For some
  8436. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8437. -# vanish in a puff of smoke.
  8438. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8439. - COLLECT_NAMES=
  8440. - export COLLECT_NAMES
  8441. -fi
  8442. -EOF
  8443. - ;;
  8444. - esac
  8445. + if test "$GCC" = yes; then
  8446. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8447. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. + else
  8449. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8450. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8451. + fi
  8452. + ;;
  8453. - # We use sed instead of cat because bash on DJGPP gets confused if
  8454. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8455. - # text mode, it properly converts lines to CR/LF. This bash problem
  8456. - # is reportedly fixed, but why not run on old versions too?
  8457. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8458. + sysv5* | sco3.2v5* | sco5v6*)
  8459. + # Note: We can NOT use -z defs as we might desire, because we do not
  8460. + # link with -lc, and that would cause any symbols used from libc to
  8461. + # always be unresolved, which means just about no library would
  8462. + # ever link correctly. If we're not using GNU ld we use -z text
  8463. + # though, which does catch some bad symbols but isn't as heavy-handed
  8464. + # as -z defs.
  8465. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8466. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8467. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8468. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8469. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8470. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8471. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8472. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8473. + runpath_var='LD_RUN_PATH'
  8474. - mv -f "$cfgfile" "$ofile" || \
  8475. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8476. - chmod +x "$ofile"
  8477. -])
  8478. -else
  8479. - # If there is no Makefile yet, we rely on a make rule to execute
  8480. - # `config.status --recheck' to rerun these tests and create the
  8481. - # libtool script then.
  8482. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8483. - if test -f "$ltmain_in"; then
  8484. - test -f Makefile && make "$ltmain"
  8485. + if test "$GCC" = yes; then
  8486. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8488. + else
  8489. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8491. + fi
  8492. + ;;
  8493. +
  8494. + uts4*)
  8495. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8497. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8498. + ;;
  8499. +
  8500. + *)
  8501. + _LT_TAGVAR(ld_shlibs, $1)=no
  8502. + ;;
  8503. + esac
  8504. +
  8505. + if test x$host_vendor = xsni; then
  8506. + case $host in
  8507. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8508. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8509. + ;;
  8510. + esac
  8511. + fi
  8512. fi
  8513. -fi
  8514. -])# AC_LIBTOOL_CONFIG
  8515. +])
  8516. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8517. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8518. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8519. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8520. -# -------------------------------------------
  8521. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8522. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8523. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8524. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8525. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8526. + [The commands to extract the exported symbol list from a shared archive])
  8527. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8528. +#
  8529. +# Do we need to explicitly link libc?
  8530. +#
  8531. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8532. +x|xyes)
  8533. + # Assume -lc should be added
  8534. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8535. -if test "$GCC" = yes; then
  8536. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8537. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8538. + case $_LT_TAGVAR(archive_cmds, $1) in
  8539. + *'~'*)
  8540. + # FIXME: we may have to deal with multi-command sequences.
  8541. + ;;
  8542. + '$CC '*)
  8543. + # Test whether the compiler implicitly links with -lc since on some
  8544. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8545. + # to ld, don't add -lc before -lgcc.
  8546. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8547. + $RM conftest*
  8548. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8549. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8550. - lt_cv_prog_compiler_rtti_exceptions,
  8551. - [-fno-rtti -fno-exceptions], [],
  8552. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8553. -fi
  8554. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8555. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8556. + soname=conftest
  8557. + lib=conftest
  8558. + libobjs=conftest.$ac_objext
  8559. + deplibs=
  8560. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8561. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8562. + compiler_flags=-v
  8563. + linker_flags=-v
  8564. + verstring=
  8565. + output_objdir=.
  8566. + libname=conftest
  8567. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8568. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8569. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8570. + then
  8571. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8572. + else
  8573. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8574. + fi
  8575. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8576. + else
  8577. + cat conftest.err 1>&5
  8578. + fi
  8579. + $RM conftest*
  8580. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8581. + ;;
  8582. + esac
  8583. + fi
  8584. + ;;
  8585. +esac
  8586. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8587. + [Whether or not to add -lc for building shared libraries])
  8588. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8589. + [enable_shared_with_static_runtimes], [0],
  8590. + [Whether or not to disallow shared libs when runtime libs are static])
  8591. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8592. + [Compiler flag to allow reflexive dlopens])
  8593. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8594. + [Compiler flag to generate shared objects directly from archives])
  8595. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8596. + [Whether the compiler copes with passing no objects directly])
  8597. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8598. + [Create an old-style archive from a shared archive])
  8599. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8600. + [Create a temporary old-style archive to link instead of a shared archive])
  8601. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8602. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8603. +_LT_TAGDECL([], [module_cmds], [2],
  8604. + [Commands used to build a loadable module if different from building
  8605. + a shared archive.])
  8606. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8607. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8608. + [Whether we are building with GNU ld or not])
  8609. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8610. + [Flag that allows shared libraries with undefined symbols to be built])
  8611. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8612. + [Flag that enforces no undefined symbols])
  8613. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8614. + [Flag to hardcode $libdir into a binary during linking.
  8615. + This must work even if $libdir does not exist])
  8616. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8617. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8618. + during linking. This must work even if $libdir does not exist]])
  8619. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8620. + [Whether we need a single "-rpath" flag with a separated argument])
  8621. +_LT_TAGDECL([], [hardcode_direct], [0],
  8622. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8623. + DIR into the resulting binary])
  8624. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8625. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8626. + DIR into the resulting binary and the resulting library dependency is
  8627. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8628. + library is relocated])
  8629. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8630. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8631. + into the resulting binary])
  8632. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8633. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8634. + into the resulting binary])
  8635. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8636. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8637. + into the library and all subsequent libraries and executables linked
  8638. + against it])
  8639. +_LT_TAGDECL([], [inherit_rpath], [0],
  8640. + [Set to yes if linker adds runtime paths of dependent libraries
  8641. + to runtime path list])
  8642. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8643. + [Whether libtool must link a program against all its dependency libraries])
  8644. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8645. + [Fix the shell variable $srcfile for the compiler])
  8646. +_LT_TAGDECL([], [always_export_symbols], [0],
  8647. + [Set to "yes" if exported symbols are required])
  8648. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8649. + [The commands to list exported symbols])
  8650. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8651. + [Symbols that should not be listed in the preloaded symbols])
  8652. +_LT_TAGDECL([], [include_expsyms], [1],
  8653. + [Symbols that must always be exported])
  8654. +_LT_TAGDECL([], [prelink_cmds], [2],
  8655. + [Commands necessary for linking programs (against libraries) with templates])
  8656. +_LT_TAGDECL([], [file_list_spec], [1],
  8657. + [Specify filename containing input files])
  8658. +dnl FIXME: Not yet implemented
  8659. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8660. +dnl [Compiler flag to generate thread safe objects])
  8661. +])# _LT_LINKER_SHLIBS
  8662. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8663. -# ---------------------------------
  8664. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8665. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8666. -AC_REQUIRE([AC_PROG_NM])
  8667. -AC_REQUIRE([AC_OBJEXT])
  8668. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8669. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8670. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8671. -[
  8672. -# These are sane defaults that work on at least a few old systems.
  8673. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8674. -# Character class describing NM global symbol codes.
  8675. -symcode='[[BCDEGRST]]'
  8676. +# _LT_LANG_C_CONFIG([TAG])
  8677. +# ------------------------
  8678. +# Ensure that the configuration variables for a C compiler are suitably
  8679. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8680. +# the compiler configuration to `libtool'.
  8681. +m4_defun([_LT_LANG_C_CONFIG],
  8682. +[m4_require([_LT_DECL_EGREP])dnl
  8683. +lt_save_CC="$CC"
  8684. +AC_LANG_PUSH(C)
  8685. -# Regexp to match symbols that can be accessed directly from C.
  8686. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8687. +# Source file extension for C test sources.
  8688. +ac_ext=c
  8689. -# Transform the above into a raw symbol and a C symbol.
  8690. -symxfrm='\1 \2\3 \3'
  8691. +# Object file extension for compiled C test sources.
  8692. +objext=o
  8693. +_LT_TAGVAR(objext, $1)=$objext
  8694. -# Transform an extracted symbol line into a proper C declaration
  8695. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8696. +# Code to be used in simple compile tests
  8697. +lt_simple_compile_test_code="int some_variable = 0;"
  8698. -# Transform an extracted symbol line into symbol name and symbol address
  8699. -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'"
  8700. +# Code to be used in simple link tests
  8701. +lt_simple_link_test_code='int main(){return(0);}'
  8702. -# Define system-specific variables.
  8703. -case $host_os in
  8704. -aix*)
  8705. - symcode='[[BCDT]]'
  8706. - ;;
  8707. -cygwin* | mingw* | pw32*)
  8708. - symcode='[[ABCDGISTW]]'
  8709. - ;;
  8710. -hpux*) # Its linker distinguishes data from code symbols
  8711. - if test "$host_cpu" = ia64; then
  8712. - symcode='[[ABCDEGRST]]'
  8713. - fi
  8714. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8715. - 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'"
  8716. - ;;
  8717. -linux*)
  8718. - if test "$host_cpu" = ia64; then
  8719. - symcode='[[ABCDGIRSTW]]'
  8720. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8721. - 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'"
  8722. - fi
  8723. - ;;
  8724. -irix* | nonstopux*)
  8725. - symcode='[[BCDEGRST]]'
  8726. - ;;
  8727. -osf*)
  8728. - symcode='[[BCDEGQRST]]'
  8729. - ;;
  8730. -solaris* | sysv5*)
  8731. - symcode='[[BDRT]]'
  8732. - ;;
  8733. -sysv4)
  8734. - symcode='[[DFNSTU]]'
  8735. - ;;
  8736. -esac
  8737. +_LT_TAG_COMPILER
  8738. +# Save the default compiler, since it gets overwritten when the other
  8739. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8740. +compiler_DEFAULT=$CC
  8741. +
  8742. +# save warnings/boilerplate of simple test code
  8743. +_LT_COMPILER_BOILERPLATE
  8744. +_LT_LINKER_BOILERPLATE
  8745. +
  8746. +if test -n "$compiler"; then
  8747. + _LT_COMPILER_NO_RTTI($1)
  8748. + _LT_COMPILER_PIC($1)
  8749. + _LT_COMPILER_C_O($1)
  8750. + _LT_COMPILER_FILE_LOCKS($1)
  8751. + _LT_LINKER_SHLIBS($1)
  8752. + _LT_SYS_DYNAMIC_LINKER($1)
  8753. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8754. + LT_SYS_DLOPEN_SELF
  8755. + _LT_CMD_STRIPLIB
  8756. +
  8757. + # Report which library types will actually be built
  8758. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8759. + AC_MSG_RESULT([$can_build_shared])
  8760. -# Handle CRLF in mingw tool chain
  8761. -opt_cr=
  8762. -case $build_os in
  8763. -mingw*)
  8764. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8765. - ;;
  8766. -esac
  8767. + AC_MSG_CHECKING([whether to build shared libraries])
  8768. + test "$can_build_shared" = "no" && enable_shared=no
  8769. -# If we're using GNU nm, then use its standard symbol codes.
  8770. -case `$NM -V 2>&1` in
  8771. -*GNU* | *'with BFD'*)
  8772. - symcode='[[ABCDGIRSTW]]' ;;
  8773. -esac
  8774. + # On AIX, shared libraries and static libraries use the same namespace, and
  8775. + # are all built from PIC.
  8776. + case $host_os in
  8777. + aix3*)
  8778. + test "$enable_shared" = yes && enable_static=no
  8779. + if test -n "$RANLIB"; then
  8780. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8781. + postinstall_cmds='$RANLIB $lib'
  8782. + fi
  8783. + ;;
  8784. -# Try without a prefix undercore, then with it.
  8785. -for ac_symprfx in "" "_"; do
  8786. + aix[[4-9]]*)
  8787. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8788. + test "$enable_shared" = yes && enable_static=no
  8789. + fi
  8790. + ;;
  8791. + esac
  8792. + AC_MSG_RESULT([$enable_shared])
  8793. - # Write the raw and C identifiers.
  8794. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  8795. + AC_MSG_CHECKING([whether to build static libraries])
  8796. + # Make sure either enable_shared or enable_static is yes.
  8797. + test "$enable_shared" = yes || enable_static=yes
  8798. + AC_MSG_RESULT([$enable_static])
  8799. - # Check to see that the pipe works correctly.
  8800. - pipe_works=no
  8801. + _LT_CONFIG($1)
  8802. +fi
  8803. +AC_LANG_POP
  8804. +CC="$lt_save_CC"
  8805. +])# _LT_LANG_C_CONFIG
  8806. - rm -f conftest*
  8807. - cat > conftest.$ac_ext <<EOF
  8808. -#ifdef __cplusplus
  8809. -extern "C" {
  8810. -#endif
  8811. -char nm_test_var;
  8812. -void nm_test_func(){}
  8813. -#ifdef __cplusplus
  8814. -}
  8815. -#endif
  8816. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8817. -EOF
  8818. - if AC_TRY_EVAL(ac_compile); then
  8819. - # Now try to grab the symbols.
  8820. - nlist=conftest.nm
  8821. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8822. - # Try sorting and uniquifying the output.
  8823. - if sort "$nlist" | uniq > "$nlist"T; then
  8824. - mv -f "$nlist"T "$nlist"
  8825. - else
  8826. - rm -f "$nlist"T
  8827. - fi
  8828. +# _LT_PROG_CXX
  8829. +# ------------
  8830. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  8831. +# compiler, we have our own version here.
  8832. +m4_defun([_LT_PROG_CXX],
  8833. +[
  8834. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  8835. +AC_PROG_CXX
  8836. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8837. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8838. + (test "X$CXX" != "Xg++"))) ; then
  8839. + AC_PROG_CXXCPP
  8840. +else
  8841. + _lt_caught_CXX_error=yes
  8842. +fi
  8843. +popdef([AC_MSG_ERROR])
  8844. +])# _LT_PROG_CXX
  8845. - # Make sure that we snagged all the symbols we need.
  8846. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8847. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8848. - cat <<EOF > conftest.$ac_ext
  8849. -#ifdef __cplusplus
  8850. -extern "C" {
  8851. -#endif
  8852. +dnl aclocal-1.4 backwards compatibility:
  8853. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  8854. -EOF
  8855. - # Now generate the symbol file.
  8856. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8857. - cat <<EOF >> conftest.$ac_ext
  8858. -#if defined (__STDC__) && __STDC__
  8859. -# define lt_ptr_t void *
  8860. -#else
  8861. -# define lt_ptr_t char *
  8862. -# define const
  8863. -#endif
  8864. +# _LT_LANG_CXX_CONFIG([TAG])
  8865. +# --------------------------
  8866. +# Ensure that the configuration variables for a C++ compiler are suitably
  8867. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8868. +# the compiler configuration to `libtool'.
  8869. +m4_defun([_LT_LANG_CXX_CONFIG],
  8870. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  8871. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8872. +m4_require([_LT_DECL_EGREP])dnl
  8873. +
  8874. +AC_LANG_PUSH(C++)
  8875. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8876. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8877. +_LT_TAGVAR(always_export_symbols, $1)=no
  8878. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8879. +_LT_TAGVAR(compiler_needs_object, $1)=no
  8880. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8881. +_LT_TAGVAR(hardcode_direct, $1)=no
  8882. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8883. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8884. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8885. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8886. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8887. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8888. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8889. +_LT_TAGVAR(inherit_rpath, $1)=no
  8890. +_LT_TAGVAR(module_cmds, $1)=
  8891. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8892. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8893. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8894. +_LT_TAGVAR(no_undefined_flag, $1)=
  8895. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8896. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8897. -/* The mapping between symbol names and symbols. */
  8898. -const struct {
  8899. - const char *name;
  8900. - lt_ptr_t address;
  8901. -}
  8902. -lt_preloaded_symbols[[]] =
  8903. -{
  8904. -EOF
  8905. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8906. - cat <<\EOF >> conftest.$ac_ext
  8907. - {0, (lt_ptr_t) 0}
  8908. -};
  8909. +# Source file extension for C++ test sources.
  8910. +ac_ext=cpp
  8911. -#ifdef __cplusplus
  8912. -}
  8913. -#endif
  8914. -EOF
  8915. - # Now try linking the two files.
  8916. - mv conftest.$ac_objext conftstm.$ac_objext
  8917. - lt_save_LIBS="$LIBS"
  8918. - lt_save_CFLAGS="$CFLAGS"
  8919. - LIBS="conftstm.$ac_objext"
  8920. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8921. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8922. - pipe_works=yes
  8923. - fi
  8924. - LIBS="$lt_save_LIBS"
  8925. - CFLAGS="$lt_save_CFLAGS"
  8926. - else
  8927. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8928. - fi
  8929. - else
  8930. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8931. - fi
  8932. - else
  8933. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8934. - fi
  8935. +# Object file extension for compiled C++ test sources.
  8936. +objext=o
  8937. +_LT_TAGVAR(objext, $1)=$objext
  8938. +
  8939. +# No sense in running all these tests if we already determined that
  8940. +# the CXX compiler isn't working. Some variables (like enable_shared)
  8941. +# are currently assumed to apply to all compilers on this platform,
  8942. +# and will be corrupted by setting them based on a non-working compiler.
  8943. +if test "$_lt_caught_CXX_error" != yes; then
  8944. + # Code to be used in simple compile tests
  8945. + lt_simple_compile_test_code="int some_variable = 0;"
  8946. +
  8947. + # Code to be used in simple link tests
  8948. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  8949. +
  8950. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8951. + _LT_TAG_COMPILER
  8952. +
  8953. + # save warnings/boilerplate of simple test code
  8954. + _LT_COMPILER_BOILERPLATE
  8955. + _LT_LINKER_BOILERPLATE
  8956. +
  8957. + # Allow CC to be a program name with arguments.
  8958. + lt_save_CC=$CC
  8959. + lt_save_LD=$LD
  8960. + lt_save_GCC=$GCC
  8961. + GCC=$GXX
  8962. + lt_save_with_gnu_ld=$with_gnu_ld
  8963. + lt_save_path_LD=$lt_cv_path_LD
  8964. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8965. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8966. else
  8967. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8968. - cat conftest.$ac_ext >&5
  8969. + $as_unset lt_cv_prog_gnu_ld
  8970. fi
  8971. - rm -f conftest* conftst*
  8972. -
  8973. - # Do not use the global_symbol_pipe unless it works.
  8974. - if test "$pipe_works" = yes; then
  8975. - break
  8976. + if test -n "${lt_cv_path_LDCXX+set}"; then
  8977. + lt_cv_path_LD=$lt_cv_path_LDCXX
  8978. else
  8979. - lt_cv_sys_global_symbol_pipe=
  8980. + $as_unset lt_cv_path_LD
  8981. fi
  8982. -done
  8983. -])
  8984. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8985. - lt_cv_sys_global_symbol_to_cdecl=
  8986. -fi
  8987. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8988. - AC_MSG_RESULT(failed)
  8989. -else
  8990. - AC_MSG_RESULT(ok)
  8991. -fi
  8992. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8993. + test -z "${LDCXX+set}" || LD=$LDCXX
  8994. + CC=${CXX-"c++"}
  8995. + compiler=$CC
  8996. + _LT_TAGVAR(compiler, $1)=$CC
  8997. + _LT_CC_BASENAME([$compiler])
  8998. +
  8999. + if test -n "$compiler"; then
  9000. + # We don't want -fno-exception when compiling C++ code, so set the
  9001. + # no_builtin_flag separately
  9002. + if test "$GXX" = yes; then
  9003. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9004. + else
  9005. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9006. + fi
  9007. + if test "$GXX" = yes; then
  9008. + # Set up default GNU C++ configuration
  9009. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9010. -# ---------------------------------------
  9011. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9012. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9013. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9014. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9015. + LT_PATH_LD
  9016. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  9017. - ifelse([$1],[CXX],[
  9018. - # C++ specific cases for pic, static, wl, etc.
  9019. - if test "$GXX" = yes; then
  9020. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9021. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9022. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9023. + # archiving commands below assume that GNU ld is being used.
  9024. + if test "$with_gnu_ld" = yes; then
  9025. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9026. + _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'
  9027. +
  9028. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9029. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9030. +
  9031. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9032. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9033. + # investigate it a little bit more. (MM)
  9034. + wlarc='${wl}'
  9035. +
  9036. + # ancient GNU ld didn't support --whole-archive et. al.
  9037. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9038. + $GREP 'no-whole-archive' > /dev/null; then
  9039. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9040. + else
  9041. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9042. + fi
  9043. + else
  9044. + with_gnu_ld=no
  9045. + wlarc=
  9046. - case $host_os in
  9047. - aix*)
  9048. - # All AIX code is PIC.
  9049. - if test "$host_cpu" = ia64; then
  9050. - # AIX 5 now supports IA64 processor
  9051. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9052. - fi
  9053. - ;;
  9054. - amigaos*)
  9055. - # FIXME: we need at least 68020 code to build shared libraries, but
  9056. - # adding the `-m68020' flag to GCC prevents building anything better,
  9057. - # like `-m68040'.
  9058. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9059. - ;;
  9060. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9061. - # PIC is the default for these OSes.
  9062. - ;;
  9063. - mingw* | os2* | pw32*)
  9064. - # This hack is so that the source file can tell whether it is being
  9065. - # built for inclusion in a dll (and should export symbols for example).
  9066. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9067. - ;;
  9068. - darwin* | rhapsody*)
  9069. - # PIC is the default on this platform
  9070. - # Common symbols not allowed in MH_DYLIB files
  9071. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9072. - ;;
  9073. - *djgpp*)
  9074. - # DJGPP does not support shared libraries at all
  9075. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9076. - ;;
  9077. - sysv4*MP*)
  9078. - if test -d /usr/nec; then
  9079. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9080. + # A generic and very simple default shared library creation
  9081. + # command for GNU C++ for the case where it uses the native
  9082. + # linker, instead of GNU ld. If possible, this setting should
  9083. + # overridden to take advantage of the native linker features on
  9084. + # the platform it is being used on.
  9085. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9086. fi
  9087. - ;;
  9088. - hpux*)
  9089. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9090. - # not for PA HP-UX.
  9091. - case "$host_cpu" in
  9092. - hppa*64*|ia64*)
  9093. - ;;
  9094. - *)
  9095. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9096. - ;;
  9097. - esac
  9098. - ;;
  9099. - *)
  9100. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9101. - ;;
  9102. - esac
  9103. - else
  9104. +
  9105. + # Commands to make compiler produce verbose output that lists
  9106. + # what "hidden" libraries, object files and flags are used when
  9107. + # linking a shared library.
  9108. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9109. +
  9110. + else
  9111. + GXX=no
  9112. + with_gnu_ld=no
  9113. + wlarc=
  9114. + fi
  9115. +
  9116. + # PORTME: fill in a description of your system's C++ link characteristics
  9117. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9118. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9119. case $host_os in
  9120. - aix4* | aix5*)
  9121. - # All AIX code is PIC.
  9122. - if test "$host_cpu" = ia64; then
  9123. - # AIX 5 now supports IA64 processor
  9124. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9125. + aix3*)
  9126. + # FIXME: insert proper C++ library support
  9127. + _LT_TAGVAR(ld_shlibs, $1)=no
  9128. + ;;
  9129. + aix[[4-9]]*)
  9130. + if test "$host_cpu" = ia64; then
  9131. + # On IA64, the linker does run time linking by default, so we don't
  9132. + # have to do anything special.
  9133. + aix_use_runtimelinking=no
  9134. + exp_sym_flag='-Bexport'
  9135. + no_entry_flag=""
  9136. + else
  9137. + aix_use_runtimelinking=no
  9138. +
  9139. + # Test if we are trying to use run time linking or normal
  9140. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9141. + # need to do runtime linking.
  9142. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9143. + for ld_flag in $LDFLAGS; do
  9144. + case $ld_flag in
  9145. + *-brtl*)
  9146. + aix_use_runtimelinking=yes
  9147. + break
  9148. + ;;
  9149. + esac
  9150. + done
  9151. + ;;
  9152. + esac
  9153. +
  9154. + exp_sym_flag='-bexport'
  9155. + no_entry_flag='-bnoentry'
  9156. + fi
  9157. +
  9158. + # When large executables or shared objects are built, AIX ld can
  9159. + # have problems creating the table of contents. If linking a library
  9160. + # or program results in "error TOC overflow" add -mminimal-toc to
  9161. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9162. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9163. +
  9164. + _LT_TAGVAR(archive_cmds, $1)=''
  9165. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9166. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9167. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9168. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9169. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9170. +
  9171. + if test "$GXX" = yes; then
  9172. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9173. + # We only want to do this on AIX 4.2 and lower, the check
  9174. + # below for broken collect2 doesn't work under 4.3+
  9175. + collect2name=`${CC} -print-prog-name=collect2`
  9176. + if test -f "$collect2name" &&
  9177. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9178. + then
  9179. + # We have reworked collect2
  9180. + :
  9181. + else
  9182. + # We have old collect2
  9183. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9184. + # It fails to find uninstalled libraries when the uninstalled
  9185. + # path is not listed in the libpath. Setting hardcode_minus_L
  9186. + # to unsupported forces relinking
  9187. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9188. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9189. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9190. + fi
  9191. + esac
  9192. + shared_flag='-shared'
  9193. + if test "$aix_use_runtimelinking" = yes; then
  9194. + shared_flag="$shared_flag "'${wl}-G'
  9195. + fi
  9196. + else
  9197. + # not using gcc
  9198. + if test "$host_cpu" = ia64; then
  9199. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9200. + # chokes on -Wl,-G. The following line is correct:
  9201. + shared_flag='-G'
  9202. + else
  9203. + if test "$aix_use_runtimelinking" = yes; then
  9204. + shared_flag='${wl}-G'
  9205. + else
  9206. + shared_flag='${wl}-bM:SRE'
  9207. + fi
  9208. + fi
  9209. + fi
  9210. +
  9211. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9212. + # It seems that -bexpall does not export symbols beginning with
  9213. + # underscore (_), so it is better to generate a list of symbols to
  9214. + # export.
  9215. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9216. + if test "$aix_use_runtimelinking" = yes; then
  9217. + # Warning - without using the other runtime loading flags (-brtl),
  9218. + # -berok will link without error, but may produce a broken library.
  9219. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9220. + # Determine the default libpath from the value encoded in an empty
  9221. + # executable.
  9222. + _LT_SYS_MODULE_PATH_AIX
  9223. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9224. +
  9225. + _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"
  9226. + else
  9227. + if test "$host_cpu" = ia64; then
  9228. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9229. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9230. + _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"
  9231. + else
  9232. + # Determine the default libpath from the value encoded in an
  9233. + # empty executable.
  9234. + _LT_SYS_MODULE_PATH_AIX
  9235. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9236. + # Warning - without using the other run time loading flags,
  9237. + # -berok will link without error, but may produce a broken library.
  9238. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9239. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9240. + # Exported symbols can be pulled into shared objects from archives
  9241. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9242. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9243. + # This is similar to how AIX traditionally builds its shared
  9244. + # libraries.
  9245. + _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'
  9246. + fi
  9247. + fi
  9248. + ;;
  9249. +
  9250. + beos*)
  9251. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9252. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9253. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9254. + # support --undefined. This deserves some investigation. FIXME
  9255. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9256. else
  9257. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9258. + _LT_TAGVAR(ld_shlibs, $1)=no
  9259. fi
  9260. ;;
  9261. +
  9262. chorus*)
  9263. - case $cc_basename in
  9264. - cxch68)
  9265. - # Green Hills C++ Compiler
  9266. - # _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"
  9267. + case $cc_basename in
  9268. + *)
  9269. + # FIXME: insert proper C++ library support
  9270. + _LT_TAGVAR(ld_shlibs, $1)=no
  9271. ;;
  9272. - esac
  9273. + esac
  9274. + ;;
  9275. +
  9276. + cygwin* | mingw* | pw32* | cegcc*)
  9277. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9278. + # as there is no search path for DLLs.
  9279. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9280. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9281. + _LT_TAGVAR(always_export_symbols, $1)=no
  9282. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9283. +
  9284. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9285. + _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'
  9286. + # If the export-symbols file already is a .def file (1st line
  9287. + # is EXPORTS), use it as is; otherwise, prepend...
  9288. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9289. + cp $export_symbols $output_objdir/$soname.def;
  9290. + else
  9291. + echo EXPORTS > $output_objdir/$soname.def;
  9292. + cat $export_symbols >> $output_objdir/$soname.def;
  9293. + fi~
  9294. + $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'
  9295. + else
  9296. + _LT_TAGVAR(ld_shlibs, $1)=no
  9297. + fi
  9298. + ;;
  9299. + darwin* | rhapsody*)
  9300. + _LT_DARWIN_LINKER_FEATURES($1)
  9301. ;;
  9302. - darwin*)
  9303. - # PIC is the default on this platform
  9304. - # Common symbols not allowed in MH_DYLIB files
  9305. - case "$cc_basename" in
  9306. - xlc*)
  9307. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9308. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9309. - ;;
  9310. - esac
  9311. - ;;
  9312. +
  9313. dgux*)
  9314. - case $cc_basename in
  9315. - ec++)
  9316. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9317. + case $cc_basename in
  9318. + ec++*)
  9319. + # FIXME: insert proper C++ library support
  9320. + _LT_TAGVAR(ld_shlibs, $1)=no
  9321. ;;
  9322. - ghcx)
  9323. + ghcx*)
  9324. # Green Hills C++ Compiler
  9325. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9326. + # FIXME: insert proper C++ library support
  9327. + _LT_TAGVAR(ld_shlibs, $1)=no
  9328. ;;
  9329. - *)
  9330. + *)
  9331. + # FIXME: insert proper C++ library support
  9332. + _LT_TAGVAR(ld_shlibs, $1)=no
  9333. ;;
  9334. - esac
  9335. - ;;
  9336. - freebsd* | kfreebsd*-gnu)
  9337. - # FreeBSD uses GNU C++
  9338. - ;;
  9339. - hpux9* | hpux10* | hpux11*)
  9340. - case $cc_basename in
  9341. - CC)
  9342. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9343. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9344. - if test "$host_cpu" != ia64; then
  9345. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9346. - fi
  9347. + esac
  9348. + ;;
  9349. +
  9350. + freebsd[[12]]*)
  9351. + # C++ shared libraries reported to be fairly broken before
  9352. + # switch to ELF
  9353. + _LT_TAGVAR(ld_shlibs, $1)=no
  9354. + ;;
  9355. +
  9356. + freebsd-elf*)
  9357. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9358. + ;;
  9359. +
  9360. + freebsd* | dragonfly*)
  9361. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9362. + # conventions
  9363. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9364. + ;;
  9365. +
  9366. + gnu*)
  9367. + ;;
  9368. +
  9369. + hpux9*)
  9370. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9371. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9372. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9373. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9374. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9375. + # but as the default
  9376. + # location of the library.
  9377. +
  9378. + case $cc_basename in
  9379. + CC*)
  9380. + # FIXME: insert proper C++ library support
  9381. + _LT_TAGVAR(ld_shlibs, $1)=no
  9382. + ;;
  9383. + aCC*)
  9384. + _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'
  9385. + # Commands to make compiler produce verbose output that lists
  9386. + # what "hidden" libraries, object files and flags are used when
  9387. + # linking a shared library.
  9388. + #
  9389. + # There doesn't appear to be a way to prevent this compiler from
  9390. + # explicitly linking system object files so we need to strip them
  9391. + # from the output so that they don't get included in the library
  9392. + # dependencies.
  9393. + 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'
  9394. + ;;
  9395. + *)
  9396. + if test "$GXX" = yes; then
  9397. + _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'
  9398. + else
  9399. + # FIXME: insert proper C++ library support
  9400. + _LT_TAGVAR(ld_shlibs, $1)=no
  9401. + fi
  9402. + ;;
  9403. + esac
  9404. + ;;
  9405. +
  9406. + hpux10*|hpux11*)
  9407. + if test $with_gnu_ld = no; then
  9408. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9409. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9410. +
  9411. + case $host_cpu in
  9412. + hppa*64*|ia64*)
  9413. + ;;
  9414. + *)
  9415. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9416. + ;;
  9417. + esac
  9418. + fi
  9419. + case $host_cpu in
  9420. + hppa*64*|ia64*)
  9421. + _LT_TAGVAR(hardcode_direct, $1)=no
  9422. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9423. + ;;
  9424. + *)
  9425. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9426. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9427. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9428. + # but as the default
  9429. + # location of the library.
  9430. + ;;
  9431. + esac
  9432. +
  9433. + case $cc_basename in
  9434. + CC*)
  9435. + # FIXME: insert proper C++ library support
  9436. + _LT_TAGVAR(ld_shlibs, $1)=no
  9437. ;;
  9438. - aCC)
  9439. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9440. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9441. - case "$host_cpu" in
  9442. - hppa*64*|ia64*)
  9443. - # +Z the default
  9444. - ;;
  9445. - *)
  9446. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9447. - ;;
  9448. + aCC*)
  9449. + case $host_cpu in
  9450. + hppa*64*)
  9451. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9452. + ;;
  9453. + ia64*)
  9454. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9455. + ;;
  9456. + *)
  9457. + _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'
  9458. + ;;
  9459. esac
  9460. + # Commands to make compiler produce verbose output that lists
  9461. + # what "hidden" libraries, object files and flags are used when
  9462. + # linking a shared library.
  9463. + #
  9464. + # There doesn't appear to be a way to prevent this compiler from
  9465. + # explicitly linking system object files so we need to strip them
  9466. + # from the output so that they don't get included in the library
  9467. + # dependencies.
  9468. + 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'
  9469. ;;
  9470. - *)
  9471. + *)
  9472. + if test "$GXX" = yes; then
  9473. + if test $with_gnu_ld = no; then
  9474. + case $host_cpu in
  9475. + hppa*64*)
  9476. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9477. + ;;
  9478. + ia64*)
  9479. + _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'
  9480. + ;;
  9481. + *)
  9482. + _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'
  9483. + ;;
  9484. + esac
  9485. + fi
  9486. + else
  9487. + # FIXME: insert proper C++ library support
  9488. + _LT_TAGVAR(ld_shlibs, $1)=no
  9489. + fi
  9490. ;;
  9491. - esac
  9492. - ;;
  9493. - irix5* | irix6* | nonstopux*)
  9494. - case $cc_basename in
  9495. - CC)
  9496. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9497. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9498. - # CC pic flag -KPIC is the default.
  9499. + esac
  9500. + ;;
  9501. +
  9502. + interix[[3-9]]*)
  9503. + _LT_TAGVAR(hardcode_direct, $1)=no
  9504. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9505. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9506. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9507. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9508. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9509. + # default) and relocated if they conflict, which is a slow very memory
  9510. + # consuming and fragmenting process. To avoid this, we pick a random,
  9511. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9512. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9513. + _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'
  9514. + _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'
  9515. + ;;
  9516. + irix5* | irix6*)
  9517. + case $cc_basename in
  9518. + CC*)
  9519. + # SGI C++
  9520. + _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'
  9521. +
  9522. + # Archives containing C++ object files must be created using
  9523. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9524. + # necessary to make sure instantiated templates are included
  9525. + # in the archive.
  9526. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9527. ;;
  9528. - *)
  9529. + *)
  9530. + if test "$GXX" = yes; then
  9531. + if test "$with_gnu_ld" = no; then
  9532. + _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'
  9533. + else
  9534. + _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'
  9535. + fi
  9536. + fi
  9537. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9538. ;;
  9539. - esac
  9540. - ;;
  9541. - linux*)
  9542. - case $cc_basename in
  9543. - KCC)
  9544. - # KAI C++ Compiler
  9545. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9546. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9547. + esac
  9548. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9549. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9550. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9551. + ;;
  9552. +
  9553. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9554. + case $cc_basename in
  9555. + KCC*)
  9556. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9557. +
  9558. + # KCC will only create a shared library if the output file
  9559. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9560. + # to its proper name (with version) after linking.
  9561. + _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'
  9562. + _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'
  9563. + # Commands to make compiler produce verbose output that lists
  9564. + # what "hidden" libraries, object files and flags are used when
  9565. + # linking a shared library.
  9566. + #
  9567. + # There doesn't appear to be a way to prevent this compiler from
  9568. + # explicitly linking system object files so we need to strip them
  9569. + # from the output so that they don't get included in the library
  9570. + # dependencies.
  9571. + 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'
  9572. +
  9573. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9574. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9575. +
  9576. + # Archives containing C++ object files must be created using
  9577. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9578. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9579. ;;
  9580. - icpc)
  9581. + icpc* | ecpc* )
  9582. # Intel C++
  9583. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9584. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9585. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9586. + with_gnu_ld=yes
  9587. + # version 8.0 and above of icpc choke on multiply defined symbols
  9588. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9589. + # earlier do not add the objects themselves.
  9590. + case `$CC -V 2>&1` in
  9591. + *"Version 7."*)
  9592. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9593. + _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'
  9594. + ;;
  9595. + *) # Version 8.0 or newer
  9596. + tmp_idyn=
  9597. + case $host_cpu in
  9598. + ia64*) tmp_idyn=' -i_dynamic';;
  9599. + esac
  9600. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9601. + _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'
  9602. + ;;
  9603. + esac
  9604. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9605. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9606. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9607. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9608. ;;
  9609. - cxx)
  9610. + pgCC* | pgcpp*)
  9611. + # Portland Group C++ compiler
  9612. + case `$CC -V` in
  9613. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9614. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9615. + rm -rf $tpldir~
  9616. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9617. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9618. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9619. + rm -rf $tpldir~
  9620. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9621. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9622. + $RANLIB $oldlib'
  9623. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9624. + rm -rf $tpldir~
  9625. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9626. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9627. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9628. + rm -rf $tpldir~
  9629. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9630. + $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'
  9631. + ;;
  9632. + *) # Version 6 will use weak symbols
  9633. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9634. + _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'
  9635. + ;;
  9636. + esac
  9637. +
  9638. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9639. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9640. + _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'
  9641. + ;;
  9642. + cxx*)
  9643. # Compaq C++
  9644. - # Make sure the PIC flag is empty. It appears that all Alpha
  9645. - # Linux and Compaq Tru64 Unix objects are PIC.
  9646. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9647. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9648. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9649. + _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'
  9650. +
  9651. + runpath_var=LD_RUN_PATH
  9652. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9653. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9654. +
  9655. + # Commands to make compiler produce verbose output that lists
  9656. + # what "hidden" libraries, object files and flags are used when
  9657. + # linking a shared library.
  9658. + #
  9659. + # There doesn't appear to be a way to prevent this compiler from
  9660. + # explicitly linking system object files so we need to strip them
  9661. + # from the output so that they don't get included in the library
  9662. + # dependencies.
  9663. + 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'
  9664. + ;;
  9665. + xl*)
  9666. + # IBM XL 8.0 on PPC, with GNU ld
  9667. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9668. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9669. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9670. + if test "x$supports_anon_versioning" = xyes; then
  9671. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9672. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9673. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9674. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9675. + fi
  9676. ;;
  9677. *)
  9678. + case `$CC -V 2>&1 | sed 5q` in
  9679. + *Sun\ C*)
  9680. + # Sun C++ 5.9
  9681. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9682. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9683. + _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'
  9684. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9685. + _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'
  9686. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9687. +
  9688. + # Not sure whether something based on
  9689. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9690. + # would be better.
  9691. + output_verbose_link_cmd='echo'
  9692. +
  9693. + # Archives containing C++ object files must be created using
  9694. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9695. + # necessary to make sure instantiated templates are included
  9696. + # in the archive.
  9697. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9698. + ;;
  9699. + esac
  9700. ;;
  9701. esac
  9702. ;;
  9703. +
  9704. lynxos*)
  9705. + # FIXME: insert proper C++ library support
  9706. + _LT_TAGVAR(ld_shlibs, $1)=no
  9707. ;;
  9708. +
  9709. m88k*)
  9710. + # FIXME: insert proper C++ library support
  9711. + _LT_TAGVAR(ld_shlibs, $1)=no
  9712. ;;
  9713. +
  9714. mvs*)
  9715. - case $cc_basename in
  9716. - cxx)
  9717. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  9718. + case $cc_basename in
  9719. + cxx*)
  9720. + # FIXME: insert proper C++ library support
  9721. + _LT_TAGVAR(ld_shlibs, $1)=no
  9722. ;;
  9723. *)
  9724. + # FIXME: insert proper C++ library support
  9725. + _LT_TAGVAR(ld_shlibs, $1)=no
  9726. ;;
  9727. esac
  9728. ;;
  9729. +
  9730. netbsd*)
  9731. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9732. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9733. + wlarc=
  9734. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9735. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9736. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9737. + fi
  9738. + # Workaround some broken pre-1.5 toolchains
  9739. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9740. + ;;
  9741. +
  9742. + *nto* | *qnx*)
  9743. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9744. + ;;
  9745. +
  9746. + openbsd2*)
  9747. + # C++ shared libraries are fairly broken
  9748. + _LT_TAGVAR(ld_shlibs, $1)=no
  9749. + ;;
  9750. +
  9751. + openbsd*)
  9752. + if test -f /usr/libexec/ld.so; then
  9753. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9754. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9755. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9756. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9757. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9758. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9759. + _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'
  9760. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9761. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9762. + fi
  9763. + output_verbose_link_cmd=echo
  9764. + else
  9765. + _LT_TAGVAR(ld_shlibs, $1)=no
  9766. + fi
  9767. ;;
  9768. +
  9769. osf3* | osf4* | osf5*)
  9770. - case $cc_basename in
  9771. - KCC)
  9772. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9773. + case $cc_basename in
  9774. + KCC*)
  9775. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9776. +
  9777. + # KCC will only create a shared library if the output file
  9778. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9779. + # to its proper name (with version) after linking.
  9780. + _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'
  9781. +
  9782. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9783. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9784. +
  9785. + # Archives containing C++ object files must be created using
  9786. + # the KAI C++ compiler.
  9787. + case $host in
  9788. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  9789. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  9790. + esac
  9791. ;;
  9792. - RCC)
  9793. + RCC*)
  9794. # Rational C++ 2.4.1
  9795. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9796. + # FIXME: insert proper C++ library support
  9797. + _LT_TAGVAR(ld_shlibs, $1)=no
  9798. ;;
  9799. - cxx)
  9800. - # Digital/Compaq C++
  9801. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9802. - # Make sure the PIC flag is empty. It appears that all Alpha
  9803. - # Linux and Compaq Tru64 Unix objects are PIC.
  9804. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9805. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9806. + cxx*)
  9807. + case $host in
  9808. + osf3*)
  9809. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9810. + _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'
  9811. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9812. + ;;
  9813. + *)
  9814. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  9815. + _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'
  9816. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9817. + echo "-hidden">> $lib.exp~
  9818. + $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~
  9819. + $RM $lib.exp'
  9820. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9821. + ;;
  9822. + esac
  9823. +
  9824. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9825. +
  9826. + # Commands to make compiler produce verbose output that lists
  9827. + # what "hidden" libraries, object files and flags are used when
  9828. + # linking a shared library.
  9829. + #
  9830. + # There doesn't appear to be a way to prevent this compiler from
  9831. + # explicitly linking system object files so we need to strip them
  9832. + # from the output so that they don't get included in the library
  9833. + # dependencies.
  9834. + 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'
  9835. ;;
  9836. *)
  9837. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9838. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9839. + case $host in
  9840. + osf3*)
  9841. + _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'
  9842. + ;;
  9843. + *)
  9844. + _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'
  9845. + ;;
  9846. + esac
  9847. +
  9848. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9849. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9850. +
  9851. + # Commands to make compiler produce verbose output that lists
  9852. + # what "hidden" libraries, object files and flags are used when
  9853. + # linking a shared library.
  9854. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9855. +
  9856. + else
  9857. + # FIXME: insert proper C++ library support
  9858. + _LT_TAGVAR(ld_shlibs, $1)=no
  9859. + fi
  9860. ;;
  9861. - esac
  9862. - ;;
  9863. + esac
  9864. + ;;
  9865. +
  9866. psos*)
  9867. - ;;
  9868. - sco*)
  9869. - case $cc_basename in
  9870. - CC)
  9871. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9872. + # FIXME: insert proper C++ library support
  9873. + _LT_TAGVAR(ld_shlibs, $1)=no
  9874. + ;;
  9875. +
  9876. + sunos4*)
  9877. + case $cc_basename in
  9878. + CC*)
  9879. + # Sun C++ 4.x
  9880. + # FIXME: insert proper C++ library support
  9881. + _LT_TAGVAR(ld_shlibs, $1)=no
  9882. ;;
  9883. - *)
  9884. + lcc*)
  9885. + # Lucid
  9886. + # FIXME: insert proper C++ library support
  9887. + _LT_TAGVAR(ld_shlibs, $1)=no
  9888. ;;
  9889. - esac
  9890. - ;;
  9891. + *)
  9892. + # FIXME: insert proper C++ library support
  9893. + _LT_TAGVAR(ld_shlibs, $1)=no
  9894. + ;;
  9895. + esac
  9896. + ;;
  9897. +
  9898. solaris*)
  9899. - case $cc_basename in
  9900. - CC)
  9901. + case $cc_basename in
  9902. + CC*)
  9903. # Sun C++ 4.2, 5.x and Centerline C++
  9904. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9905. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9906. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9907. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  9908. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9909. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9910. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9911. + $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'
  9912. +
  9913. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9914. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9915. + case $host_os in
  9916. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9917. + *)
  9918. + # The compiler driver will combine and reorder linker options,
  9919. + # but understands `-z linker_flag'.
  9920. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9921. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9922. + ;;
  9923. + esac
  9924. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9925. +
  9926. + output_verbose_link_cmd='echo'
  9927. +
  9928. + # Archives containing C++ object files must be created using
  9929. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9930. + # necessary to make sure instantiated templates are included
  9931. + # in the archive.
  9932. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9933. ;;
  9934. - gcx)
  9935. + gcx*)
  9936. # Green Hills C++ Compiler
  9937. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9938. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9939. +
  9940. + # The C++ compiler must be used to create the archive.
  9941. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9942. ;;
  9943. - *)
  9944. + *)
  9945. + # GNU C++ compiler with Solaris linker
  9946. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9947. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  9948. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  9949. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9950. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9951. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  9952. +
  9953. + # Commands to make compiler produce verbose output that lists
  9954. + # what "hidden" libraries, object files and flags are used when
  9955. + # linking a shared library.
  9956. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9957. + else
  9958. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9959. + # platform.
  9960. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9961. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9962. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  9963. +
  9964. + # Commands to make compiler produce verbose output that lists
  9965. + # what "hidden" libraries, object files and flags are used when
  9966. + # linking a shared library.
  9967. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9968. + fi
  9969. +
  9970. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  9971. + case $host_os in
  9972. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9973. + *)
  9974. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9975. + ;;
  9976. + esac
  9977. + fi
  9978. ;;
  9979. - esac
  9980. - ;;
  9981. - sunos4*)
  9982. + esac
  9983. + ;;
  9984. +
  9985. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9986. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9987. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9988. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9989. + runpath_var='LD_RUN_PATH'
  9990. +
  9991. + case $cc_basename in
  9992. + CC*)
  9993. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9994. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9995. + ;;
  9996. + *)
  9997. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9998. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9999. + ;;
  10000. + esac
  10001. + ;;
  10002. +
  10003. + sysv5* | sco3.2v5* | sco5v6*)
  10004. + # Note: We can NOT use -z defs as we might desire, because we do not
  10005. + # link with -lc, and that would cause any symbols used from libc to
  10006. + # always be unresolved, which means just about no library would
  10007. + # ever link correctly. If we're not using GNU ld we use -z text
  10008. + # though, which does catch some bad symbols but isn't as heavy-handed
  10009. + # as -z defs.
  10010. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10011. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10012. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10013. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10014. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10015. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10016. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10017. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10018. + runpath_var='LD_RUN_PATH'
  10019. +
  10020. case $cc_basename in
  10021. - CC)
  10022. - # Sun C++ 4.x
  10023. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10024. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10025. - ;;
  10026. - lcc)
  10027. - # Lucid
  10028. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10029. + CC*)
  10030. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10031. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10032. ;;
  10033. *)
  10034. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10035. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10036. ;;
  10037. esac
  10038. - ;;
  10039. + ;;
  10040. +
  10041. tandem*)
  10042. - case $cc_basename in
  10043. - NCC)
  10044. + case $cc_basename in
  10045. + NCC*)
  10046. # NonStop-UX NCC 3.20
  10047. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10048. + # FIXME: insert proper C++ library support
  10049. + _LT_TAGVAR(ld_shlibs, $1)=no
  10050. ;;
  10051. - *)
  10052. + *)
  10053. + # FIXME: insert proper C++ library support
  10054. + _LT_TAGVAR(ld_shlibs, $1)=no
  10055. ;;
  10056. - esac
  10057. - ;;
  10058. - unixware*)
  10059. - ;;
  10060. + esac
  10061. + ;;
  10062. +
  10063. vxworks*)
  10064. - ;;
  10065. + # FIXME: insert proper C++ library support
  10066. + _LT_TAGVAR(ld_shlibs, $1)=no
  10067. + ;;
  10068. +
  10069. *)
  10070. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10071. - ;;
  10072. + # FIXME: insert proper C++ library support
  10073. + _LT_TAGVAR(ld_shlibs, $1)=no
  10074. + ;;
  10075. esac
  10076. - fi
  10077. -],
  10078. +
  10079. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10080. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10081. +
  10082. + _LT_TAGVAR(GCC, $1)="$GXX"
  10083. + _LT_TAGVAR(LD, $1)="$LD"
  10084. +
  10085. + ## CAVEAT EMPTOR:
  10086. + ## There is no encapsulation within the following macros, do not change
  10087. + ## the running order or otherwise move them around unless you know exactly
  10088. + ## what you are doing...
  10089. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10090. + _LT_COMPILER_PIC($1)
  10091. + _LT_COMPILER_C_O($1)
  10092. + _LT_COMPILER_FILE_LOCKS($1)
  10093. + _LT_LINKER_SHLIBS($1)
  10094. + _LT_SYS_DYNAMIC_LINKER($1)
  10095. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10096. +
  10097. + _LT_CONFIG($1)
  10098. + fi # test -n "$compiler"
  10099. +
  10100. + CC=$lt_save_CC
  10101. + LDCXX=$LD
  10102. + LD=$lt_save_LD
  10103. + GCC=$lt_save_GCC
  10104. + with_gnu_ld=$lt_save_with_gnu_ld
  10105. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10106. + lt_cv_path_LD=$lt_save_path_LD
  10107. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10108. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10109. +fi # test "$_lt_caught_CXX_error" != yes
  10110. +
  10111. +AC_LANG_POP
  10112. +])# _LT_LANG_CXX_CONFIG
  10113. +
  10114. +
  10115. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10116. +# ---------------------------------
  10117. +# Figure out "hidden" library dependencies from verbose
  10118. +# compiler output when linking a shared library.
  10119. +# Parse the compiler output and extract the necessary
  10120. +# objects, libraries and library flags.
  10121. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10122. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10123. +# Dependencies to place before and after the object being linked:
  10124. +_LT_TAGVAR(predep_objects, $1)=
  10125. +_LT_TAGVAR(postdep_objects, $1)=
  10126. +_LT_TAGVAR(predeps, $1)=
  10127. +_LT_TAGVAR(postdeps, $1)=
  10128. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10129. +
  10130. +dnl we can't use the lt_simple_compile_test_code here,
  10131. +dnl because it contains code intended for an executable,
  10132. +dnl not a library. It's possible we should let each
  10133. +dnl tag define a new lt_????_link_test_code variable,
  10134. +dnl but it's only used here...
  10135. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10136. +int a;
  10137. +void foo (void) { a = 0; }
  10138. +_LT_EOF
  10139. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10140. +class Foo
  10141. +{
  10142. +public:
  10143. + Foo (void) { a = 0; }
  10144. +private:
  10145. + int a;
  10146. +};
  10147. +_LT_EOF
  10148. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10149. + subroutine foo
  10150. + implicit none
  10151. + integer*4 a
  10152. + a=0
  10153. + return
  10154. + end
  10155. +_LT_EOF
  10156. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10157. + subroutine foo
  10158. + implicit none
  10159. + integer a
  10160. + a=0
  10161. + return
  10162. + end
  10163. +_LT_EOF
  10164. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10165. +public class foo {
  10166. + private int a;
  10167. + public void bar (void) {
  10168. + a = 0;
  10169. + }
  10170. +};
  10171. +_LT_EOF
  10172. +])
  10173. +dnl Parse the compiler output and extract the necessary
  10174. +dnl objects, libraries and library flags.
  10175. +if AC_TRY_EVAL(ac_compile); then
  10176. + # Parse the compiler output and extract the necessary
  10177. + # objects, libraries and library flags.
  10178. +
  10179. + # Sentinel used to keep track of whether or not we are before
  10180. + # the conftest object file.
  10181. + pre_test_object_deps_done=no
  10182. +
  10183. + for p in `eval "$output_verbose_link_cmd"`; do
  10184. + case $p in
  10185. +
  10186. + -L* | -R* | -l*)
  10187. + # Some compilers place space between "-{L,R}" and the path.
  10188. + # Remove the space.
  10189. + if test $p = "-L" ||
  10190. + test $p = "-R"; then
  10191. + prev=$p
  10192. + continue
  10193. + else
  10194. + prev=
  10195. + fi
  10196. +
  10197. + if test "$pre_test_object_deps_done" = no; then
  10198. + case $p in
  10199. + -L* | -R*)
  10200. + # Internal compiler library paths should come after those
  10201. + # provided the user. The postdeps already come after the
  10202. + # user supplied libs so there is no need to process them.
  10203. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10204. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10205. + else
  10206. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10207. + fi
  10208. + ;;
  10209. + # The "-l" case would never come before the object being
  10210. + # linked, so don't bother handling this case.
  10211. + esac
  10212. + else
  10213. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10214. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10215. + else
  10216. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10217. + fi
  10218. + fi
  10219. + ;;
  10220. +
  10221. + *.$objext)
  10222. + # This assumes that the test object file only shows up
  10223. + # once in the compiler output.
  10224. + if test "$p" = "conftest.$objext"; then
  10225. + pre_test_object_deps_done=yes
  10226. + continue
  10227. + fi
  10228. +
  10229. + if test "$pre_test_object_deps_done" = no; then
  10230. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10231. + _LT_TAGVAR(predep_objects, $1)="$p"
  10232. + else
  10233. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10234. + fi
  10235. + else
  10236. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10237. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10238. + else
  10239. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10240. + fi
  10241. + fi
  10242. + ;;
  10243. +
  10244. + *) ;; # Ignore the rest.
  10245. +
  10246. + esac
  10247. + done
  10248. +
  10249. + # Clean up.
  10250. + rm -f a.out a.exe
  10251. +else
  10252. + echo "libtool.m4: error: problem compiling $1 test program"
  10253. +fi
  10254. +
  10255. +$RM -f confest.$objext
  10256. +
  10257. +# PORTME: override above test on systems where it is broken
  10258. +m4_if([$1], [CXX],
  10259. +[case $host_os in
  10260. +interix[[3-9]]*)
  10261. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10262. + # hack all around it, let's just trust "g++" to DTRT.
  10263. + _LT_TAGVAR(predep_objects,$1)=
  10264. + _LT_TAGVAR(postdep_objects,$1)=
  10265. + _LT_TAGVAR(postdeps,$1)=
  10266. + ;;
  10267. +
  10268. +linux*)
  10269. + case `$CC -V 2>&1 | sed 5q` in
  10270. + *Sun\ C*)
  10271. + # Sun C++ 5.9
  10272. +
  10273. + # The more standards-conforming stlport4 library is
  10274. + # incompatible with the Cstd library. Avoid specifying
  10275. + # it if it's in CXXFLAGS. Ignore libCrun as
  10276. + # -library=stlport4 depends on it.
  10277. + case " $CXX $CXXFLAGS " in
  10278. + *" -library=stlport4 "*)
  10279. + solaris_use_stlport4=yes
  10280. + ;;
  10281. + esac
  10282. +
  10283. + if test "$solaris_use_stlport4" != yes; then
  10284. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10285. + fi
  10286. + ;;
  10287. + esac
  10288. + ;;
  10289. +
  10290. +solaris*)
  10291. + case $cc_basename in
  10292. + CC*)
  10293. + # The more standards-conforming stlport4 library is
  10294. + # incompatible with the Cstd library. Avoid specifying
  10295. + # it if it's in CXXFLAGS. Ignore libCrun as
  10296. + # -library=stlport4 depends on it.
  10297. + case " $CXX $CXXFLAGS " in
  10298. + *" -library=stlport4 "*)
  10299. + solaris_use_stlport4=yes
  10300. + ;;
  10301. + esac
  10302. +
  10303. + # Adding this requires a known-good setup of shared libraries for
  10304. + # Sun compiler versions before 5.6, else PIC objects from an old
  10305. + # archive will be linked into the output, leading to subtle bugs.
  10306. + if test "$solaris_use_stlport4" != yes; then
  10307. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10308. + fi
  10309. + ;;
  10310. + esac
  10311. + ;;
  10312. +esac
  10313. +])
  10314. +
  10315. +case " $_LT_TAGVAR(postdeps, $1) " in
  10316. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10317. +esac
  10318. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10319. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10320. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10321. +fi
  10322. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10323. + [The directories searched by this compiler when creating a shared library])
  10324. +_LT_TAGDECL([], [predep_objects], [1],
  10325. + [Dependencies to place before and after the objects being linked to
  10326. + create a shared library])
  10327. +_LT_TAGDECL([], [postdep_objects], [1])
  10328. +_LT_TAGDECL([], [predeps], [1])
  10329. +_LT_TAGDECL([], [postdeps], [1])
  10330. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10331. + [The library search path used internally by the compiler when linking
  10332. + a shared library])
  10333. +])# _LT_SYS_HIDDEN_LIBDEPS
  10334. +
  10335. +
  10336. +# _LT_PROG_F77
  10337. +# ------------
  10338. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10339. +# if there is no fortran compiler, we have our own version here.
  10340. +m4_defun([_LT_PROG_F77],
  10341. [
  10342. - if test "$GCC" = yes; then
  10343. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10344. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10345. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10346. +AC_PROG_F77
  10347. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10348. + _lt_disable_F77=yes
  10349. +fi
  10350. +popdef([AC_MSG_ERROR])
  10351. +])# _LT_PROG_F77
  10352. +
  10353. +dnl aclocal-1.4 backwards compatibility:
  10354. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10355. +
  10356. +
  10357. +# _LT_LANG_F77_CONFIG([TAG])
  10358. +# --------------------------
  10359. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10360. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10361. +# to write the compiler configuration to `libtool'.
  10362. +m4_defun([_LT_LANG_F77_CONFIG],
  10363. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10364. +AC_LANG_PUSH(Fortran 77)
  10365. +
  10366. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10367. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10368. +_LT_TAGVAR(always_export_symbols, $1)=no
  10369. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10370. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10371. +_LT_TAGVAR(hardcode_direct, $1)=no
  10372. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10373. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10374. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10375. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10376. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10377. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10378. +_LT_TAGVAR(inherit_rpath, $1)=no
  10379. +_LT_TAGVAR(module_cmds, $1)=
  10380. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10381. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10382. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10383. +_LT_TAGVAR(no_undefined_flag, $1)=
  10384. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10385. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10386. +
  10387. +# Source file extension for f77 test sources.
  10388. +ac_ext=f
  10389. +
  10390. +# Object file extension for compiled f77 test sources.
  10391. +objext=o
  10392. +_LT_TAGVAR(objext, $1)=$objext
  10393. +
  10394. +# No sense in running all these tests if we already determined that
  10395. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10396. +# are currently assumed to apply to all compilers on this platform,
  10397. +# and will be corrupted by setting them based on a non-working compiler.
  10398. +if test "$_lt_disable_F77" != yes; then
  10399. + # Code to be used in simple compile tests
  10400. + lt_simple_compile_test_code="\
  10401. + subroutine t
  10402. + return
  10403. + end
  10404. +"
  10405. +
  10406. + # Code to be used in simple link tests
  10407. + lt_simple_link_test_code="\
  10408. + program t
  10409. + end
  10410. +"
  10411. +
  10412. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10413. + _LT_TAG_COMPILER
  10414. +
  10415. + # save warnings/boilerplate of simple test code
  10416. + _LT_COMPILER_BOILERPLATE
  10417. + _LT_LINKER_BOILERPLATE
  10418. +
  10419. + # Allow CC to be a program name with arguments.
  10420. + lt_save_CC="$CC"
  10421. + lt_save_GCC=$GCC
  10422. + CC=${F77-"f77"}
  10423. + compiler=$CC
  10424. + _LT_TAGVAR(compiler, $1)=$CC
  10425. + _LT_CC_BASENAME([$compiler])
  10426. + GCC=$G77
  10427. + if test -n "$compiler"; then
  10428. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10429. + AC_MSG_RESULT([$can_build_shared])
  10430. +
  10431. + AC_MSG_CHECKING([whether to build shared libraries])
  10432. + test "$can_build_shared" = "no" && enable_shared=no
  10433. +
  10434. + # On AIX, shared libraries and static libraries use the same namespace, and
  10435. + # are all built from PIC.
  10436. + case $host_os in
  10437. + aix3*)
  10438. + test "$enable_shared" = yes && enable_static=no
  10439. + if test -n "$RANLIB"; then
  10440. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10441. + postinstall_cmds='$RANLIB $lib'
  10442. + fi
  10443. + ;;
  10444. + aix[[4-9]]*)
  10445. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10446. + test "$enable_shared" = yes && enable_static=no
  10447. + fi
  10448. + ;;
  10449. + esac
  10450. + AC_MSG_RESULT([$enable_shared])
  10451. +
  10452. + AC_MSG_CHECKING([whether to build static libraries])
  10453. + # Make sure either enable_shared or enable_static is yes.
  10454. + test "$enable_shared" = yes || enable_static=yes
  10455. + AC_MSG_RESULT([$enable_static])
  10456. +
  10457. + _LT_TAGVAR(GCC, $1)="$G77"
  10458. + _LT_TAGVAR(LD, $1)="$LD"
  10459. +
  10460. + ## CAVEAT EMPTOR:
  10461. + ## There is no encapsulation within the following macros, do not change
  10462. + ## the running order or otherwise move them around unless you know exactly
  10463. + ## what you are doing...
  10464. + _LT_COMPILER_PIC($1)
  10465. + _LT_COMPILER_C_O($1)
  10466. + _LT_COMPILER_FILE_LOCKS($1)
  10467. + _LT_LINKER_SHLIBS($1)
  10468. + _LT_SYS_DYNAMIC_LINKER($1)
  10469. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10470. +
  10471. + _LT_CONFIG($1)
  10472. + fi # test -n "$compiler"
  10473. +
  10474. + GCC=$lt_save_GCC
  10475. + CC="$lt_save_CC"
  10476. +fi # test "$_lt_disable_F77" != yes
  10477. +
  10478. +AC_LANG_POP
  10479. +])# _LT_LANG_F77_CONFIG
  10480. +
  10481. +
  10482. +# _LT_PROG_FC
  10483. +# -----------
  10484. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10485. +# if there is no fortran compiler, we have our own version here.
  10486. +m4_defun([_LT_PROG_FC],
  10487. +[
  10488. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10489. +AC_PROG_FC
  10490. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10491. + _lt_disable_FC=yes
  10492. +fi
  10493. +popdef([AC_MSG_ERROR])
  10494. +])# _LT_PROG_FC
  10495. +
  10496. +dnl aclocal-1.4 backwards compatibility:
  10497. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10498. +
  10499. +
  10500. +# _LT_LANG_FC_CONFIG([TAG])
  10501. +# -------------------------
  10502. +# Ensure that the configuration variables for a Fortran compiler are
  10503. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10504. +# to write the compiler configuration to `libtool'.
  10505. +m4_defun([_LT_LANG_FC_CONFIG],
  10506. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10507. +AC_LANG_PUSH(Fortran)
  10508. +
  10509. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10510. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10511. +_LT_TAGVAR(always_export_symbols, $1)=no
  10512. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10513. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10514. +_LT_TAGVAR(hardcode_direct, $1)=no
  10515. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10516. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10517. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10518. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10519. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10520. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10521. +_LT_TAGVAR(inherit_rpath, $1)=no
  10522. +_LT_TAGVAR(module_cmds, $1)=
  10523. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10524. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10525. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10526. +_LT_TAGVAR(no_undefined_flag, $1)=
  10527. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10528. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10529. +
  10530. +# Source file extension for fc test sources.
  10531. +ac_ext=${ac_fc_srcext-f}
  10532. +
  10533. +# Object file extension for compiled fc test sources.
  10534. +objext=o
  10535. +_LT_TAGVAR(objext, $1)=$objext
  10536. +
  10537. +# No sense in running all these tests if we already determined that
  10538. +# the FC compiler isn't working. Some variables (like enable_shared)
  10539. +# are currently assumed to apply to all compilers on this platform,
  10540. +# and will be corrupted by setting them based on a non-working compiler.
  10541. +if test "$_lt_disable_FC" != yes; then
  10542. + # Code to be used in simple compile tests
  10543. + lt_simple_compile_test_code="\
  10544. + subroutine t
  10545. + return
  10546. + end
  10547. +"
  10548. +
  10549. + # Code to be used in simple link tests
  10550. + lt_simple_link_test_code="\
  10551. + program t
  10552. + end
  10553. +"
  10554. +
  10555. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10556. + _LT_TAG_COMPILER
  10557. +
  10558. + # save warnings/boilerplate of simple test code
  10559. + _LT_COMPILER_BOILERPLATE
  10560. + _LT_LINKER_BOILERPLATE
  10561. +
  10562. + # Allow CC to be a program name with arguments.
  10563. + lt_save_CC="$CC"
  10564. + lt_save_GCC=$GCC
  10565. + CC=${FC-"f95"}
  10566. + compiler=$CC
  10567. + GCC=$ac_cv_fc_compiler_gnu
  10568. +
  10569. + _LT_TAGVAR(compiler, $1)=$CC
  10570. + _LT_CC_BASENAME([$compiler])
  10571. +
  10572. + if test -n "$compiler"; then
  10573. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10574. + AC_MSG_RESULT([$can_build_shared])
  10575. +
  10576. + AC_MSG_CHECKING([whether to build shared libraries])
  10577. + test "$can_build_shared" = "no" && enable_shared=no
  10578. +
  10579. + # On AIX, shared libraries and static libraries use the same namespace, and
  10580. + # are all built from PIC.
  10581. + case $host_os in
  10582. + aix3*)
  10583. + test "$enable_shared" = yes && enable_static=no
  10584. + if test -n "$RANLIB"; then
  10585. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10586. + postinstall_cmds='$RANLIB $lib'
  10587. + fi
  10588. + ;;
  10589. + aix[[4-9]]*)
  10590. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10591. + test "$enable_shared" = yes && enable_static=no
  10592. + fi
  10593. + ;;
  10594. + esac
  10595. + AC_MSG_RESULT([$enable_shared])
  10596. +
  10597. + AC_MSG_CHECKING([whether to build static libraries])
  10598. + # Make sure either enable_shared or enable_static is yes.
  10599. + test "$enable_shared" = yes || enable_static=yes
  10600. + AC_MSG_RESULT([$enable_static])
  10601. +
  10602. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10603. + _LT_TAGVAR(LD, $1)="$LD"
  10604. +
  10605. + ## CAVEAT EMPTOR:
  10606. + ## There is no encapsulation within the following macros, do not change
  10607. + ## the running order or otherwise move them around unless you know exactly
  10608. + ## what you are doing...
  10609. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10610. + _LT_COMPILER_PIC($1)
  10611. + _LT_COMPILER_C_O($1)
  10612. + _LT_COMPILER_FILE_LOCKS($1)
  10613. + _LT_LINKER_SHLIBS($1)
  10614. + _LT_SYS_DYNAMIC_LINKER($1)
  10615. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10616. +
  10617. + _LT_CONFIG($1)
  10618. + fi # test -n "$compiler"
  10619. +
  10620. + GCC=$lt_save_GCC
  10621. + CC="$lt_save_CC"
  10622. +fi # test "$_lt_disable_FC" != yes
  10623. +
  10624. +AC_LANG_POP
  10625. +])# _LT_LANG_FC_CONFIG
  10626. +
  10627. +
  10628. +# _LT_LANG_GCJ_CONFIG([TAG])
  10629. +# --------------------------
  10630. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10631. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10632. +# to write the compiler configuration to `libtool'.
  10633. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10634. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10635. +AC_LANG_SAVE
  10636. +
  10637. +# Source file extension for Java test sources.
  10638. +ac_ext=java
  10639. +
  10640. +# Object file extension for compiled Java test sources.
  10641. +objext=o
  10642. +_LT_TAGVAR(objext, $1)=$objext
  10643. +
  10644. +# Code to be used in simple compile tests
  10645. +lt_simple_compile_test_code="class foo {}"
  10646. +
  10647. +# Code to be used in simple link tests
  10648. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10649. +
  10650. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10651. +_LT_TAG_COMPILER
  10652. +
  10653. +# save warnings/boilerplate of simple test code
  10654. +_LT_COMPILER_BOILERPLATE
  10655. +_LT_LINKER_BOILERPLATE
  10656. +
  10657. +# Allow CC to be a program name with arguments.
  10658. +lt_save_CC="$CC"
  10659. +lt_save_GCC=$GCC
  10660. +GCC=yes
  10661. +CC=${GCJ-"gcj"}
  10662. +compiler=$CC
  10663. +_LT_TAGVAR(compiler, $1)=$CC
  10664. +_LT_TAGVAR(LD, $1)="$LD"
  10665. +_LT_CC_BASENAME([$compiler])
  10666. +
  10667. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10668. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10669. +
  10670. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10671. +
  10672. +if test -n "$compiler"; then
  10673. + _LT_COMPILER_NO_RTTI($1)
  10674. + _LT_COMPILER_PIC($1)
  10675. + _LT_COMPILER_C_O($1)
  10676. + _LT_COMPILER_FILE_LOCKS($1)
  10677. + _LT_LINKER_SHLIBS($1)
  10678. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10679. +
  10680. + _LT_CONFIG($1)
  10681. +fi
  10682. +
  10683. +AC_LANG_RESTORE
  10684. +
  10685. +GCC=$lt_save_GCC
  10686. +CC="$lt_save_CC"
  10687. +])# _LT_LANG_GCJ_CONFIG
  10688. +
  10689. +
  10690. +# _LT_LANG_RC_CONFIG([TAG])
  10691. +# -------------------------
  10692. +# Ensure that the configuration variables for the Windows resource compiler
  10693. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10694. +# to write the compiler configuration to `libtool'.
  10695. +m4_defun([_LT_LANG_RC_CONFIG],
  10696. +[AC_REQUIRE([LT_PROG_RC])dnl
  10697. +AC_LANG_SAVE
  10698. +
  10699. +# Source file extension for RC test sources.
  10700. +ac_ext=rc
  10701. +
  10702. +# Object file extension for compiled RC test sources.
  10703. +objext=o
  10704. +_LT_TAGVAR(objext, $1)=$objext
  10705. +
  10706. +# Code to be used in simple compile tests
  10707. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10708. +
  10709. +# Code to be used in simple link tests
  10710. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  10711. +
  10712. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10713. +_LT_TAG_COMPILER
  10714. +
  10715. +# save warnings/boilerplate of simple test code
  10716. +_LT_COMPILER_BOILERPLATE
  10717. +_LT_LINKER_BOILERPLATE
  10718. +
  10719. +# Allow CC to be a program name with arguments.
  10720. +lt_save_CC="$CC"
  10721. +lt_save_GCC=$GCC
  10722. +GCC=
  10723. +CC=${RC-"windres"}
  10724. +compiler=$CC
  10725. +_LT_TAGVAR(compiler, $1)=$CC
  10726. +_LT_CC_BASENAME([$compiler])
  10727. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  10728. +
  10729. +if test -n "$compiler"; then
  10730. + :
  10731. + _LT_CONFIG($1)
  10732. +fi
  10733. +
  10734. +GCC=$lt_save_GCC
  10735. +AC_LANG_RESTORE
  10736. +CC="$lt_save_CC"
  10737. +])# _LT_LANG_RC_CONFIG
  10738. +
  10739. +
  10740. +# LT_PROG_GCJ
  10741. +# -----------
  10742. +AC_DEFUN([LT_PROG_GCJ],
  10743. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  10744. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  10745. + [AC_CHECK_TOOL(GCJ, gcj,)
  10746. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10747. + AC_SUBST(GCJFLAGS)])])[]dnl
  10748. +])
  10749. - case $host_os in
  10750. - aix*)
  10751. - # All AIX code is PIC.
  10752. - if test "$host_cpu" = ia64; then
  10753. - # AIX 5 now supports IA64 processor
  10754. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10755. - fi
  10756. - ;;
  10757. +# Old name:
  10758. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  10759. +dnl aclocal-1.4 backwards compatibility:
  10760. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  10761. - amigaos*)
  10762. - # FIXME: we need at least 68020 code to build shared libraries, but
  10763. - # adding the `-m68020' flag to GCC prevents building anything better,
  10764. - # like `-m68040'.
  10765. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10766. - ;;
  10767. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10768. - # PIC is the default for these OSes.
  10769. - ;;
  10770. +# LT_PROG_RC
  10771. +# ----------
  10772. +AC_DEFUN([LT_PROG_RC],
  10773. +[AC_CHECK_TOOL(RC, windres,)
  10774. +])
  10775. - mingw* | pw32* | os2*)
  10776. - # This hack is so that the source file can tell whether it is being
  10777. - # built for inclusion in a dll (and should export symbols for example).
  10778. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10779. - ;;
  10780. +# Old name:
  10781. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  10782. +dnl aclocal-1.4 backwards compatibility:
  10783. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  10784. - darwin* | rhapsody*)
  10785. - # PIC is the default on this platform
  10786. - # Common symbols not allowed in MH_DYLIB files
  10787. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10788. - ;;
  10789. - msdosdjgpp*)
  10790. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10791. - # on systems that don't support them.
  10792. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10793. - enable_shared=no
  10794. - ;;
  10795. +# _LT_DECL_EGREP
  10796. +# --------------
  10797. +# If we don't have a new enough Autoconf to choose the best grep
  10798. +# available, choose the one first in the user's PATH.
  10799. +m4_defun([_LT_DECL_EGREP],
  10800. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  10801. +AC_REQUIRE([AC_PROG_FGREP])dnl
  10802. +test -z "$GREP" && GREP=grep
  10803. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  10804. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  10805. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  10806. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  10807. +AC_SUBST([GREP])
  10808. +])
  10809. - sysv4*MP*)
  10810. - if test -d /usr/nec; then
  10811. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10812. - fi
  10813. - ;;
  10814. - hpux*)
  10815. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10816. - # not for PA HP-UX.
  10817. - case "$host_cpu" in
  10818. - hppa*64*|ia64*)
  10819. - # +Z the default
  10820. - ;;
  10821. - *)
  10822. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10823. - ;;
  10824. - esac
  10825. - ;;
  10826. +# _LT_DECL_OBJDUMP
  10827. +# --------------
  10828. +# If we don't have a new enough Autoconf to choose the best objdump
  10829. +# available, choose the one first in the user's PATH.
  10830. +m4_defun([_LT_DECL_OBJDUMP],
  10831. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10832. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10833. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  10834. +AC_SUBST([OBJDUMP])
  10835. +])
  10836. - *)
  10837. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10838. - ;;
  10839. - esac
  10840. - else
  10841. - # PORTME Check for flag to pass linker flags through the system compiler.
  10842. - case $host_os in
  10843. - aix*)
  10844. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10845. - if test "$host_cpu" = ia64; then
  10846. - # AIX 5 now supports IA64 processor
  10847. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10848. - else
  10849. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  10850. +
  10851. +# _LT_DECL_SED
  10852. +# ------------
  10853. +# Check for a fully-functional sed program, that truncates
  10854. +# as few characters as possible. Prefer GNU sed if found.
  10855. +m4_defun([_LT_DECL_SED],
  10856. +[AC_PROG_SED
  10857. +test -z "$SED" && SED=sed
  10858. +Xsed="$SED -e 1s/^X//"
  10859. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  10860. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  10861. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  10862. +])# _LT_DECL_SED
  10863. +
  10864. +m4_ifndef([AC_PROG_SED], [
  10865. +# NOTE: This macro has been submitted for inclusion into #
  10866. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  10867. +# a released version of Autoconf we should remove this #
  10868. +# macro and use it instead. #
  10869. +
  10870. +m4_defun([AC_PROG_SED],
  10871. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  10872. +AC_CACHE_VAL(lt_cv_path_SED,
  10873. +[# Loop through the user's path and test for sed and gsed.
  10874. +# Then use that list of sed's as ones to test for truncation.
  10875. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10876. +for as_dir in $PATH
  10877. +do
  10878. + IFS=$as_save_IFS
  10879. + test -z "$as_dir" && as_dir=.
  10880. + for lt_ac_prog in sed gsed; do
  10881. + for ac_exec_ext in '' $ac_executable_extensions; do
  10882. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  10883. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10884. fi
  10885. - ;;
  10886. - darwin*)
  10887. - # PIC is the default on this platform
  10888. - # Common symbols not allowed in MH_DYLIB files
  10889. - case "$cc_basename" in
  10890. - xlc*)
  10891. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  10892. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10893. - ;;
  10894. - esac
  10895. - ;;
  10896. + done
  10897. + done
  10898. +done
  10899. +IFS=$as_save_IFS
  10900. +lt_ac_max=0
  10901. +lt_ac_count=0
  10902. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  10903. +# along with /bin/sed that truncates output.
  10904. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  10905. + test ! -f $lt_ac_sed && continue
  10906. + cat /dev/null > conftest.in
  10907. + lt_ac_count=0
  10908. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  10909. + # Check for GNU sed and select it if it is found.
  10910. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  10911. + lt_cv_path_SED=$lt_ac_sed
  10912. + break
  10913. + fi
  10914. + while true; do
  10915. + cat conftest.in conftest.in >conftest.tmp
  10916. + mv conftest.tmp conftest.in
  10917. + cp conftest.in conftest.nl
  10918. + echo >>conftest.nl
  10919. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  10920. + cmp -s conftest.out conftest.nl || break
  10921. + # 10000 chars as input seems more than enough
  10922. + test $lt_ac_count -gt 10 && break
  10923. + lt_ac_count=`expr $lt_ac_count + 1`
  10924. + if test $lt_ac_count -gt $lt_ac_max; then
  10925. + lt_ac_max=$lt_ac_count
  10926. + lt_cv_path_SED=$lt_ac_sed
  10927. + fi
  10928. + done
  10929. +done
  10930. +])
  10931. +SED=$lt_cv_path_SED
  10932. +AC_SUBST([SED])
  10933. +AC_MSG_RESULT([$SED])
  10934. +])#AC_PROG_SED
  10935. +])#m4_ifndef
  10936. - mingw* | pw32* | os2*)
  10937. - # This hack is so that the source file can tell whether it is being
  10938. - # built for inclusion in a dll (and should export symbols for example).
  10939. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10940. - ;;
  10941. +# Old name:
  10942. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  10943. +dnl aclocal-1.4 backwards compatibility:
  10944. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  10945. - hpux9* | hpux10* | hpux11*)
  10946. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10947. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10948. - # not for PA HP-UX.
  10949. - case "$host_cpu" in
  10950. - hppa*64*|ia64*)
  10951. - # +Z the default
  10952. - ;;
  10953. - *)
  10954. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10955. - ;;
  10956. - esac
  10957. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10958. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  10959. - ;;
  10960. - irix5* | irix6* | nonstopux*)
  10961. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10962. - # PIC (with -KPIC) is the default.
  10963. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10964. - ;;
  10965. +# _LT_CHECK_SHELL_FEATURES
  10966. +# ------------------------
  10967. +# Find out whether the shell is Bourne or XSI compatible,
  10968. +# or has some other useful features.
  10969. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  10970. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  10971. +# Try some XSI features
  10972. +xsi_shell=no
  10973. +( _lt_dummy="a/b/c"
  10974. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  10975. + = c,a/b,, \
  10976. + && eval 'test $(( 1 + 1 )) -eq 2 \
  10977. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  10978. + && xsi_shell=yes
  10979. +AC_MSG_RESULT([$xsi_shell])
  10980. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  10981. +
  10982. +AC_MSG_CHECKING([whether the shell understands "+="])
  10983. +lt_shell_append=no
  10984. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  10985. + >/dev/null 2>&1 \
  10986. + && lt_shell_append=yes
  10987. +AC_MSG_RESULT([$lt_shell_append])
  10988. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  10989. - newsos6)
  10990. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10991. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10992. - ;;
  10993. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10994. + lt_unset=unset
  10995. +else
  10996. + lt_unset=false
  10997. +fi
  10998. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  10999. - linux*)
  11000. - case $CC in
  11001. - icc* | ecc*)
  11002. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11003. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11004. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11005. - ;;
  11006. - ccc*)
  11007. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11008. - # All Alpha code is PIC.
  11009. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11010. - ;;
  11011. - esac
  11012. - ;;
  11013. +# test EBCDIC or ASCII
  11014. +case `echo X|tr X '\101'` in
  11015. + A) # ASCII based system
  11016. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11017. + lt_SP2NL='tr \040 \012'
  11018. + lt_NL2SP='tr \015\012 \040\040'
  11019. + ;;
  11020. + *) # EBCDIC based system
  11021. + lt_SP2NL='tr \100 \n'
  11022. + lt_NL2SP='tr \r\n \100\100'
  11023. + ;;
  11024. +esac
  11025. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11026. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11027. +])# _LT_CHECK_SHELL_FEATURES
  11028. +
  11029. +
  11030. +# _LT_PROG_XSI_SHELLFNS
  11031. +# ---------------------
  11032. +# Bourne and XSI compatible variants of some useful shell functions.
  11033. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11034. +[case $xsi_shell in
  11035. + yes)
  11036. + cat << \_LT_EOF >> "$cfgfile"
  11037. +
  11038. +# func_dirname file append nondir_replacement
  11039. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11040. +# otherwise set result to NONDIR_REPLACEMENT.
  11041. +func_dirname ()
  11042. +{
  11043. + case ${1} in
  11044. + */*) func_dirname_result="${1%/*}${2}" ;;
  11045. + * ) func_dirname_result="${3}" ;;
  11046. + esac
  11047. +}
  11048. - osf3* | osf4* | osf5*)
  11049. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11050. - # All OSF/1 code is PIC.
  11051. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11052. - ;;
  11053. +# func_basename file
  11054. +func_basename ()
  11055. +{
  11056. + func_basename_result="${1##*/}"
  11057. +}
  11058. - sco3.2v5*)
  11059. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  11060. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  11061. - ;;
  11062. +# func_dirname_and_basename file append nondir_replacement
  11063. +# perform func_basename and func_dirname in a single function
  11064. +# call:
  11065. +# dirname: Compute the dirname of FILE. If nonempty,
  11066. +# add APPEND to the result, otherwise set result
  11067. +# to NONDIR_REPLACEMENT.
  11068. +# value returned in "$func_dirname_result"
  11069. +# basename: Compute filename of FILE.
  11070. +# value retuned in "$func_basename_result"
  11071. +# Implementation must be kept synchronized with func_dirname
  11072. +# and func_basename. For efficiency, we do not delegate to
  11073. +# those functions but instead duplicate the functionality here.
  11074. +func_dirname_and_basename ()
  11075. +{
  11076. + case ${1} in
  11077. + */*) func_dirname_result="${1%/*}${2}" ;;
  11078. + * ) func_dirname_result="${3}" ;;
  11079. + esac
  11080. + func_basename_result="${1##*/}"
  11081. +}
  11082. - solaris*)
  11083. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11084. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11085. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11086. - ;;
  11087. +# func_stripname prefix suffix name
  11088. +# strip PREFIX and SUFFIX off of NAME.
  11089. +# PREFIX and SUFFIX must not contain globbing or regex special
  11090. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11091. +# dot (in which case that matches only a dot).
  11092. +func_stripname ()
  11093. +{
  11094. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11095. + # positional parameters, so assign one to ordinary parameter first.
  11096. + func_stripname_result=${3}
  11097. + func_stripname_result=${func_stripname_result#"${1}"}
  11098. + func_stripname_result=${func_stripname_result%"${2}"}
  11099. +}
  11100. - sunos4*)
  11101. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11102. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11103. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11104. - ;;
  11105. +# func_opt_split
  11106. +func_opt_split ()
  11107. +{
  11108. + func_opt_split_opt=${1%%=*}
  11109. + func_opt_split_arg=${1#*=}
  11110. +}
  11111. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11112. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11113. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11114. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11115. - ;;
  11116. +# func_lo2o object
  11117. +func_lo2o ()
  11118. +{
  11119. + case ${1} in
  11120. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11121. + *) func_lo2o_result=${1} ;;
  11122. + esac
  11123. +}
  11124. - sysv4*MP*)
  11125. - if test -d /usr/nec ;then
  11126. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11127. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11128. - fi
  11129. - ;;
  11130. +# func_xform libobj-or-source
  11131. +func_xform ()
  11132. +{
  11133. + func_xform_result=${1%.*}.lo
  11134. +}
  11135. - uts4*)
  11136. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11137. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11138. - ;;
  11139. +# func_arith arithmetic-term...
  11140. +func_arith ()
  11141. +{
  11142. + func_arith_result=$(( $[*] ))
  11143. +}
  11144. - *)
  11145. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11146. - ;;
  11147. - esac
  11148. - fi
  11149. -])
  11150. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11151. +# func_len string
  11152. +# STRING may not start with a hyphen.
  11153. +func_len ()
  11154. +{
  11155. + func_len_result=${#1}
  11156. +}
  11157. -#
  11158. -# Check to make sure the PIC flag actually works.
  11159. -#
  11160. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11161. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11162. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11163. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11164. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11165. - "" | " "*) ;;
  11166. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11167. - esac],
  11168. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11169. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11170. -fi
  11171. -case "$host_os" in
  11172. - # For platforms which do not support PIC, -DPIC is meaningless:
  11173. - *djgpp*)
  11174. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11175. - ;;
  11176. - *)
  11177. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11178. +_LT_EOF
  11179. ;;
  11180. -esac
  11181. -])
  11182. + *) # Bourne compatible functions.
  11183. + cat << \_LT_EOF >> "$cfgfile"
  11184. +# func_dirname file append nondir_replacement
  11185. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11186. +# otherwise set result to NONDIR_REPLACEMENT.
  11187. +func_dirname ()
  11188. +{
  11189. + # Extract subdirectory from the argument.
  11190. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11191. + if test "X$func_dirname_result" = "X${1}"; then
  11192. + func_dirname_result="${3}"
  11193. + else
  11194. + func_dirname_result="$func_dirname_result${2}"
  11195. + fi
  11196. +}
  11197. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11198. -# ------------------------------------
  11199. -# See if the linker supports building shared libraries.
  11200. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11201. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11202. -ifelse([$1],[CXX],[
  11203. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11204. - case $host_os in
  11205. - aix4* | aix5*)
  11206. - # If we're using GNU nm, then we don't want the "-C" option.
  11207. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11208. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11209. - _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'
  11210. - else
  11211. - _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'
  11212. - fi
  11213. - ;;
  11214. - pw32*)
  11215. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11216. - ;;
  11217. - cygwin* | mingw*)
  11218. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11219. - ;;
  11220. - *)
  11221. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11222. - ;;
  11223. +# func_basename file
  11224. +func_basename ()
  11225. +{
  11226. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11227. +}
  11228. +
  11229. +dnl func_dirname_and_basename
  11230. +dnl A portable version of this function is already defined in general.m4sh
  11231. +dnl so there is no need for it here.
  11232. +
  11233. +# func_stripname prefix suffix name
  11234. +# strip PREFIX and SUFFIX off of NAME.
  11235. +# PREFIX and SUFFIX must not contain globbing or regex special
  11236. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11237. +# dot (in which case that matches only a dot).
  11238. +# func_strip_suffix prefix name
  11239. +func_stripname ()
  11240. +{
  11241. + case ${2} in
  11242. + .*) func_stripname_result=`$ECHO "X${3}" \
  11243. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11244. + *) func_stripname_result=`$ECHO "X${3}" \
  11245. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11246. esac
  11247. -],[
  11248. - runpath_var=
  11249. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11250. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11251. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11252. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11253. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11254. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11255. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11256. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11257. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11258. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11259. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11260. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11261. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11262. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11263. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11264. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11265. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11266. - _LT_AC_TAGVAR(module_cmds, $1)=
  11267. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11268. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11269. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11270. - # include_expsyms should be a list of space-separated symbols to be *always*
  11271. - # included in the symbol list
  11272. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11273. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11274. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11275. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11276. - # as well as any symbol that contains `d'.
  11277. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11278. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11279. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11280. - # the symbol is explicitly referenced. Since portable code cannot
  11281. - # rely on this symbol name, it's probably fine to never include it in
  11282. - # preloaded symbol tables.
  11283. - extract_expsyms_cmds=
  11284. +}
  11285. - case $host_os in
  11286. - cygwin* | mingw* | pw32*)
  11287. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11288. - # When not using gcc, we currently assume that we are using
  11289. - # Microsoft Visual C++.
  11290. - if test "$GCC" != yes; then
  11291. - with_gnu_ld=no
  11292. - fi
  11293. +# sed scripts:
  11294. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11295. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11296. +
  11297. +# func_opt_split
  11298. +func_opt_split ()
  11299. +{
  11300. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11301. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11302. +}
  11303. +
  11304. +# func_lo2o object
  11305. +func_lo2o ()
  11306. +{
  11307. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11308. +}
  11309. +
  11310. +# func_xform libobj-or-source
  11311. +func_xform ()
  11312. +{
  11313. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11314. +}
  11315. +
  11316. +# func_arith arithmetic-term...
  11317. +func_arith ()
  11318. +{
  11319. + func_arith_result=`expr "$[@]"`
  11320. +}
  11321. +
  11322. +# func_len string
  11323. +# STRING may not start with a hyphen.
  11324. +func_len ()
  11325. +{
  11326. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11327. +}
  11328. +
  11329. +_LT_EOF
  11330. +esac
  11331. +
  11332. +case $lt_shell_append in
  11333. + yes)
  11334. + cat << \_LT_EOF >> "$cfgfile"
  11335. +
  11336. +# func_append var value
  11337. +# Append VALUE to the end of shell variable VAR.
  11338. +func_append ()
  11339. +{
  11340. + eval "$[1]+=\$[2]"
  11341. +}
  11342. +_LT_EOF
  11343. ;;
  11344. - openbsd*)
  11345. - with_gnu_ld=no
  11346. + *)
  11347. + cat << \_LT_EOF >> "$cfgfile"
  11348. +
  11349. +# func_append var value
  11350. +# Append VALUE to the end of shell variable VAR.
  11351. +func_append ()
  11352. +{
  11353. + eval "$[1]=\$$[1]\$[2]"
  11354. +}
  11355. +
  11356. +_LT_EOF
  11357. ;;
  11358. esac
  11359. +])
  11360. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11361. - if test "$with_gnu_ld" = yes; then
  11362. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11363. - wlarc='${wl}'
  11364. +# Helper functions for option handling. -*- Autoconf -*-
  11365. +#
  11366. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11367. +# Written by Gary V. Vaughan, 2004
  11368. +#
  11369. +# This file is free software; the Free Software Foundation gives
  11370. +# unlimited permission to copy and/or distribute it, with or without
  11371. +# modifications, as long as this notice is preserved.
  11372. - # See if GNU ld supports shared libraries.
  11373. - case $host_os in
  11374. - aix3* | aix4* | aix5*)
  11375. - # On AIX/PPC, the GNU linker is very broken
  11376. - if test "$host_cpu" != ia64; then
  11377. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11378. - cat <<EOF 1>&2
  11379. +# serial 6 ltoptions.m4
  11380. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11381. -*** to be unable to reliably create shared libraries on AIX.
  11382. -*** Therefore, libtool is disabling shared libraries support. If you
  11383. -*** really care for shared libraries, you may want to modify your PATH
  11384. -*** so that a non-GNU linker is found, and then restart.
  11385. +# This is to help aclocal find these macros, as it can't see m4_define.
  11386. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11387. -EOF
  11388. - fi
  11389. - ;;
  11390. - amigaos*)
  11391. - _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)'
  11392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11393. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11394. -
  11395. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11396. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11397. - # to version 4, is to share data among multiple programs linked
  11398. - # with the same dynamic library. Since this doesn't match the
  11399. - # behavior of shared libraries on other platforms, we can't use
  11400. - # them.
  11401. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11402. - ;;
  11403. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11404. +# ------------------------------------------
  11405. +m4_define([_LT_MANGLE_OPTION],
  11406. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11407. - beos*)
  11408. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11409. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11410. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11411. - # support --undefined. This deserves some investigation. FIXME
  11412. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11413. - else
  11414. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11415. - fi
  11416. - ;;
  11417. - cygwin* | mingw* | pw32*)
  11418. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11419. - # as there is no search path for DLLs.
  11420. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11421. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11422. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11423. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11424. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11425. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11426. +# ---------------------------------------
  11427. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11428. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11429. +# saved as a flag.
  11430. +m4_define([_LT_SET_OPTION],
  11431. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11432. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11433. + _LT_MANGLE_DEFUN([$1], [$2]),
  11434. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11435. +])
  11436. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11437. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11438. - # If the export-symbols file already is a .def file (1st line
  11439. - # is EXPORTS), use it as is; otherwise, prepend...
  11440. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11441. - cp $export_symbols $output_objdir/$soname.def;
  11442. - else
  11443. - echo EXPORTS > $output_objdir/$soname.def;
  11444. - cat $export_symbols >> $output_objdir/$soname.def;
  11445. - fi~
  11446. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11447. - else
  11448. - ld_shlibs=no
  11449. - fi
  11450. - ;;
  11451. - netbsd*)
  11452. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11453. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11454. - wlarc=
  11455. - else
  11456. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11457. - _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'
  11458. - fi
  11459. - ;;
  11460. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11461. +# ------------------------------------------------------------
  11462. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11463. +m4_define([_LT_IF_OPTION],
  11464. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11465. - solaris* | sysv5*)
  11466. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11467. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11468. - cat <<EOF 1>&2
  11469. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11470. -*** create shared libraries on Solaris systems. Therefore, libtool
  11471. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11472. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11473. -*** your PATH or compiler configuration so that the native linker is
  11474. -*** used, and then restart.
  11475. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11476. +# -------------------------------------------------------
  11477. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11478. +# are set.
  11479. +m4_define([_LT_UNLESS_OPTIONS],
  11480. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11481. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11482. + [m4_define([$0_found])])])[]dnl
  11483. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11484. +])[]dnl
  11485. +])
  11486. -EOF
  11487. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11488. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11489. - _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'
  11490. - else
  11491. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11492. - fi
  11493. - ;;
  11494. - sunos4*)
  11495. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11496. - wlarc=
  11497. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11498. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11499. - ;;
  11500. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11501. +# ----------------------------------------
  11502. +# OPTION-LIST is a space-separated list of Libtool options associated
  11503. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11504. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11505. +# the unknown option and exit.
  11506. +m4_defun([_LT_SET_OPTIONS],
  11507. +[# Set options
  11508. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11509. + [_LT_SET_OPTION([$1], _LT_Option)])
  11510. +
  11511. +m4_if([$1],[LT_INIT],[
  11512. + dnl
  11513. + dnl Simply set some default values (i.e off) if boolean options were not
  11514. + dnl specified:
  11515. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11516. + ])
  11517. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11518. + ])
  11519. + dnl
  11520. + dnl If no reference was made to various pairs of opposing options, then
  11521. + dnl we run the default mode handler for the pair. For example, if neither
  11522. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11523. + dnl archives by default:
  11524. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11525. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11526. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11527. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11528. + [_LT_ENABLE_FAST_INSTALL])
  11529. + ])
  11530. +])# _LT_SET_OPTIONS
  11531. - linux*)
  11532. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11533. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11534. - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  11535. - supports_anon_versioning=no
  11536. - case `$LD -v 2>/dev/null` in
  11537. - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11538. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11539. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11540. - *\ 2.11.*) ;; # other 2.11 versions
  11541. - *) supports_anon_versioning=yes ;;
  11542. - esac
  11543. - if test $supports_anon_versioning = yes; then
  11544. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11545. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11546. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  11547. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11548. - else
  11549. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  11550. - fi
  11551. - else
  11552. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11553. - fi
  11554. - ;;
  11555. - *)
  11556. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11557. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11558. - _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'
  11559. - else
  11560. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11561. - fi
  11562. - ;;
  11563. - esac
  11564. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  11565. - runpath_var=LD_RUN_PATH
  11566. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11567. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11568. - # ancient GNU ld didn't support --whole-archive et. al.
  11569. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11570. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11571. - else
  11572. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11573. - fi
  11574. - fi
  11575. - else
  11576. - # PORTME fill in a description of your system's linker (not GNU ld)
  11577. - case $host_os in
  11578. - aix3*)
  11579. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11580. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11581. - _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'
  11582. - # Note: this linker hardcodes the directories in LIBPATH if there
  11583. - # are no directories specified by -L.
  11584. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11585. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  11586. - # Neither direct hardcoding nor static linking is supported with a
  11587. - # broken collect2.
  11588. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11589. - fi
  11590. - ;;
  11591. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11592. +# -----------------------------------------
  11593. +m4_define([_LT_MANGLE_DEFUN],
  11594. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11595. - aix4* | aix5*)
  11596. - if test "$host_cpu" = ia64; then
  11597. - # On IA64, the linker does run time linking by default, so we don't
  11598. - # have to do anything special.
  11599. - aix_use_runtimelinking=no
  11600. - exp_sym_flag='-Bexport'
  11601. - no_entry_flag=""
  11602. - else
  11603. - # If we're using GNU nm, then we don't want the "-C" option.
  11604. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11605. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11606. - _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'
  11607. - else
  11608. - _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'
  11609. - fi
  11610. - aix_use_runtimelinking=no
  11611. - # Test if we are trying to use run time linking or normal
  11612. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11613. - # need to do runtime linking.
  11614. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11615. - for ld_flag in $LDFLAGS; do
  11616. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11617. - aix_use_runtimelinking=yes
  11618. - break
  11619. - fi
  11620. - done
  11621. - esac
  11622. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11623. +# -----------------------------------------------
  11624. +m4_define([LT_OPTION_DEFINE],
  11625. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11626. +])# LT_OPTION_DEFINE
  11627. - exp_sym_flag='-bexport'
  11628. - no_entry_flag='-bnoentry'
  11629. - fi
  11630. - # When large executables or shared objects are built, AIX ld can
  11631. - # have problems creating the table of contents. If linking a library
  11632. - # or program results in "error TOC overflow" add -mminimal-toc to
  11633. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11634. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11635. +# dlopen
  11636. +# ------
  11637. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  11638. +])
  11639. +
  11640. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  11641. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  11642. +AC_DIAGNOSE([obsolete],
  11643. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11644. +put the `dlopen' option into LT_INIT's first parameter.])
  11645. +])
  11646. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11647. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11648. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11649. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11650. +dnl aclocal-1.4 backwards compatibility:
  11651. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  11652. - if test "$GCC" = yes; then
  11653. - case $host_os in aix4.[012]|aix4.[012].*)
  11654. - # We only want to do this on AIX 4.2 and lower, the check
  11655. - # below for broken collect2 doesn't work under 4.3+
  11656. - collect2name=`${CC} -print-prog-name=collect2`
  11657. - if test -f "$collect2name" && \
  11658. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11659. - then
  11660. - # We have reworked collect2
  11661. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11662. - else
  11663. - # We have old collect2
  11664. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11665. - # It fails to find uninstalled libraries when the uninstalled
  11666. - # path is not listed in the libpath. Setting hardcode_minus_L
  11667. - # to unsupported forces relinking
  11668. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11669. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11670. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11671. - fi
  11672. - esac
  11673. - shared_flag='-shared'
  11674. - else
  11675. - # not using gcc
  11676. - if test "$host_cpu" = ia64; then
  11677. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11678. - # chokes on -Wl,-G. The following line is correct:
  11679. - shared_flag='-G'
  11680. - else
  11681. - if test "$aix_use_runtimelinking" = yes; then
  11682. - shared_flag='${wl}-G'
  11683. - else
  11684. - shared_flag='${wl}-bM:SRE'
  11685. - fi
  11686. - fi
  11687. - fi
  11688. - # It seems that -bexpall does not export symbols beginning with
  11689. - # underscore (_), so it is better to generate a list of symbols to export.
  11690. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11691. - if test "$aix_use_runtimelinking" = yes; then
  11692. - # Warning - without using the other runtime loading flags (-brtl),
  11693. - # -berok will link without error, but may produce a broken library.
  11694. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11695. - # Determine the default libpath from the value encoded in an empty executable.
  11696. - _LT_AC_SYS_LIBPATH_AIX
  11697. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11698. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11699. - else
  11700. - if test "$host_cpu" = ia64; then
  11701. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11702. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11703. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  11704. - else
  11705. - # Determine the default libpath from the value encoded in an empty executable.
  11706. - _LT_AC_SYS_LIBPATH_AIX
  11707. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11708. - # Warning - without using the other run time loading flags,
  11709. - # -berok will link without error, but may produce a broken library.
  11710. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11711. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11712. - # -bexpall does not export symbols beginning with underscore (_)
  11713. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11714. - # Exported symbols can be pulled into shared objects from archives
  11715. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  11716. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11717. - # This is similar to how AIX traditionally builds it's shared libraries.
  11718. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11719. - fi
  11720. - fi
  11721. - ;;
  11722. +# win32-dll
  11723. +# ---------
  11724. +# Declare package support for building win32 dll's.
  11725. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  11726. +[enable_win32_dll=yes
  11727. - amigaos*)
  11728. - _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)'
  11729. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11730. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11731. - # see comment about different semantics on the GNU ld section
  11732. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11733. - ;;
  11734. +case $host in
  11735. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  11736. + AC_CHECK_TOOL(AS, as, false)
  11737. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  11738. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11739. + ;;
  11740. +esac
  11741. - bsdi[[45]]*)
  11742. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11743. - ;;
  11744. +test -z "$AS" && AS=as
  11745. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  11746. - cygwin* | mingw* | pw32*)
  11747. - # When not using gcc, we currently assume that we are using
  11748. - # Microsoft Visual C++.
  11749. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11750. - # no search path for DLLs.
  11751. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11752. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11753. - # Tell ltmain to make .lib files, not .a files.
  11754. - libext=lib
  11755. - # Tell ltmain to make .dll files, not .so files.
  11756. - shrext_cmds=".dll"
  11757. - # FIXME: Setting linknames here is a bad hack.
  11758. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11759. - # The linker will automatically build a .lib file if we build a DLL.
  11760. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  11761. - # FIXME: Should let the user specify the lib program.
  11762. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11763. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  11764. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11765. - ;;
  11766. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  11767. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  11768. - darwin* | rhapsody*)
  11769. - case "$host_os" in
  11770. - rhapsody* | darwin1.[[012]])
  11771. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  11772. - ;;
  11773. - *) # Darwin 1.3 on
  11774. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11775. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11776. - else
  11777. - case ${MACOSX_DEPLOYMENT_TARGET} in
  11778. - 10.[[012]])
  11779. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11780. - ;;
  11781. - 10.*)
  11782. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  11783. - ;;
  11784. - esac
  11785. - fi
  11786. - ;;
  11787. - esac
  11788. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11789. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11790. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  11791. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11792. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  11793. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11794. - if test "$GCC" = yes ; then
  11795. - output_verbose_link_cmd='echo'
  11796. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11797. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11798. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  11799. - _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}'
  11800. - _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}'
  11801. - else
  11802. - case "$cc_basename" in
  11803. - xlc*)
  11804. - output_verbose_link_cmd='echo'
  11805. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11806. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11807. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  11808. - _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11809. - _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}'
  11810. - ;;
  11811. - *)
  11812. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11813. - ;;
  11814. - esac
  11815. - fi
  11816. - ;;
  11817. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11818. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  11819. +])# win32-dll
  11820. - dgux*)
  11821. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11822. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11823. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11824. - ;;
  11825. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  11826. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  11827. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  11828. +AC_DIAGNOSE([obsolete],
  11829. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11830. +put the `win32-dll' option into LT_INIT's first parameter.])
  11831. +])
  11832. - freebsd1*)
  11833. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11834. - ;;
  11835. +dnl aclocal-1.4 backwards compatibility:
  11836. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  11837. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11838. - # support. Future versions do this automatically, but an explicit c++rt0.o
  11839. - # does not break anything, and helps significantly (at the cost of a little
  11840. - # extra space).
  11841. - freebsd2.2*)
  11842. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11843. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11844. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11845. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11846. - ;;
  11847. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11848. - freebsd2*)
  11849. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11850. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11851. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11852. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11853. +# _LT_ENABLE_SHARED([DEFAULT])
  11854. +# ----------------------------
  11855. +# implement the --enable-shared flag, and supports the `shared' and
  11856. +# `disable-shared' LT_INIT options.
  11857. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  11858. +m4_define([_LT_ENABLE_SHARED],
  11859. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  11860. +AC_ARG_ENABLE([shared],
  11861. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  11862. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  11863. + [p=${PACKAGE-default}
  11864. + case $enableval in
  11865. + yes) enable_shared=yes ;;
  11866. + no) enable_shared=no ;;
  11867. + *)
  11868. + enable_shared=no
  11869. + # Look at the argument we got. We use all the common list separators.
  11870. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11871. + for pkg in $enableval; do
  11872. + IFS="$lt_save_ifs"
  11873. + if test "X$pkg" = "X$p"; then
  11874. + enable_shared=yes
  11875. + fi
  11876. + done
  11877. + IFS="$lt_save_ifs"
  11878. ;;
  11879. + esac],
  11880. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  11881. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11882. - freebsd* | kfreebsd*-gnu)
  11883. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11884. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11885. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11886. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11887. - ;;
  11888. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  11889. + [Whether or not to build shared libraries])
  11890. +])# _LT_ENABLE_SHARED
  11891. - hpux9*)
  11892. - if test "$GCC" = yes; then
  11893. - _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'
  11894. - else
  11895. - _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'
  11896. - fi
  11897. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11898. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11899. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11900. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  11901. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  11902. - # hardcode_minus_L: Not really in the search PATH,
  11903. - # but as the default location of the library.
  11904. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11905. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11906. - ;;
  11907. +# Old names:
  11908. +AC_DEFUN([AC_ENABLE_SHARED],
  11909. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  11910. +])
  11911. - hpux10* | hpux11*)
  11912. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11913. - case "$host_cpu" in
  11914. - hppa*64*|ia64*)
  11915. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11916. - ;;
  11917. - *)
  11918. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11919. - ;;
  11920. - esac
  11921. - else
  11922. - case "$host_cpu" in
  11923. - hppa*64*|ia64*)
  11924. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  11925. - ;;
  11926. - *)
  11927. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11928. - ;;
  11929. - esac
  11930. - fi
  11931. - if test "$with_gnu_ld" = no; then
  11932. - case "$host_cpu" in
  11933. - hppa*64*)
  11934. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11935. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  11936. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11937. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11938. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11939. - ;;
  11940. - ia64*)
  11941. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11942. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11943. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11944. +AC_DEFUN([AC_DISABLE_SHARED],
  11945. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  11946. +])
  11947. - # hardcode_minus_L: Not really in the search PATH,
  11948. - # but as the default location of the library.
  11949. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11950. - ;;
  11951. - *)
  11952. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11953. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11954. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11955. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11956. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  11957. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  11958. - # hardcode_minus_L: Not really in the search PATH,
  11959. - # but as the default location of the library.
  11960. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11961. - ;;
  11962. - esac
  11963. - fi
  11964. - ;;
  11965. +dnl aclocal-1.4 backwards compatibility:
  11966. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  11967. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  11968. - irix5* | irix6* | nonstopux*)
  11969. - if test "$GCC" = yes; then
  11970. - _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'
  11971. - else
  11972. - _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'
  11973. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  11974. - fi
  11975. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11976. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11977. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11978. - ;;
  11979. - netbsd*)
  11980. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11981. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11982. - else
  11983. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11984. - fi
  11985. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11986. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11987. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11988. - ;;
  11989. - newsos6)
  11990. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11991. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11992. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11993. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11994. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11995. +# _LT_ENABLE_STATIC([DEFAULT])
  11996. +# ----------------------------
  11997. +# implement the --enable-static flag, and support the `static' and
  11998. +# `disable-static' LT_INIT options.
  11999. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12000. +m4_define([_LT_ENABLE_STATIC],
  12001. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12002. +AC_ARG_ENABLE([static],
  12003. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12004. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12005. + [p=${PACKAGE-default}
  12006. + case $enableval in
  12007. + yes) enable_static=yes ;;
  12008. + no) enable_static=no ;;
  12009. + *)
  12010. + enable_static=no
  12011. + # Look at the argument we got. We use all the common list separators.
  12012. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12013. + for pkg in $enableval; do
  12014. + IFS="$lt_save_ifs"
  12015. + if test "X$pkg" = "X$p"; then
  12016. + enable_static=yes
  12017. + fi
  12018. + done
  12019. + IFS="$lt_save_ifs"
  12020. ;;
  12021. + esac],
  12022. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12023. - openbsd*)
  12024. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12025. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12026. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12027. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12028. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12029. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12030. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12031. - else
  12032. - case $host_os in
  12033. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12034. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12036. - ;;
  12037. - *)
  12038. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12039. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12040. - ;;
  12041. - esac
  12042. - fi
  12043. - ;;
  12044. + _LT_DECL([build_old_libs], [enable_static], [0],
  12045. + [Whether or not to build static libraries])
  12046. +])# _LT_ENABLE_STATIC
  12047. - os2*)
  12048. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12049. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12050. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12051. - _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'
  12052. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12053. - ;;
  12054. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12055. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12056. - osf3*)
  12057. - if test "$GCC" = yes; then
  12058. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12059. - _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'
  12060. - else
  12061. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12062. - _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'
  12063. - fi
  12064. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12065. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12066. - ;;
  12067. +# Old names:
  12068. +AC_DEFUN([AC_ENABLE_STATIC],
  12069. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12070. +])
  12071. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12072. - if test "$GCC" = yes; then
  12073. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12074. - _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'
  12075. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12076. - else
  12077. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12078. - _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'
  12079. - _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~
  12080. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  12081. +AC_DEFUN([AC_DISABLE_STATIC],
  12082. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12083. +])
  12084. - # Both c and cxx compiler support -rpath directly
  12085. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12086. - fi
  12087. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12088. - ;;
  12089. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12090. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12091. - sco3.2v5*)
  12092. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12093. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12094. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12095. - runpath_var=LD_RUN_PATH
  12096. - hardcode_runpath_var=yes
  12097. - ;;
  12098. +dnl aclocal-1.4 backwards compatibility:
  12099. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12100. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12101. - solaris*)
  12102. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12103. - if test "$GCC" = yes; then
  12104. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12105. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12106. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12107. - else
  12108. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12109. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12110. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12111. - fi
  12112. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12113. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12114. - case $host_os in
  12115. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12116. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  12117. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12118. - esac
  12119. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12120. - ;;
  12121. - sunos4*)
  12122. - if test "x$host_vendor" = xsequent; then
  12123. - # Use $CC to link under sequent, because it throws in some extra .o
  12124. - # files that make .init and .fini sections work.
  12125. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12126. - else
  12127. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12128. - fi
  12129. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12130. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12131. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12132. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12133. - ;;
  12134. - sysv4)
  12135. - case $host_vendor in
  12136. - sni)
  12137. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12138. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12139. - ;;
  12140. - siemens)
  12141. - ## LD is ld it makes a PLAMLIB
  12142. - ## CC just makes a GrossModule.
  12143. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12144. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12145. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12146. - ;;
  12147. - motorola)
  12148. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12149. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12150. - ;;
  12151. - esac
  12152. - runpath_var='LD_RUN_PATH'
  12153. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12154. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12155. +# ----------------------------------
  12156. +# implement the --enable-fast-install flag, and support the `fast-install'
  12157. +# and `disable-fast-install' LT_INIT options.
  12158. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12159. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12160. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12161. +AC_ARG_ENABLE([fast-install],
  12162. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12163. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12164. + [p=${PACKAGE-default}
  12165. + case $enableval in
  12166. + yes) enable_fast_install=yes ;;
  12167. + no) enable_fast_install=no ;;
  12168. + *)
  12169. + enable_fast_install=no
  12170. + # Look at the argument we got. We use all the common list separators.
  12171. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12172. + for pkg in $enableval; do
  12173. + IFS="$lt_save_ifs"
  12174. + if test "X$pkg" = "X$p"; then
  12175. + enable_fast_install=yes
  12176. + fi
  12177. + done
  12178. + IFS="$lt_save_ifs"
  12179. ;;
  12180. + esac],
  12181. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12182. - sysv4.3*)
  12183. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12184. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12185. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12186. - ;;
  12187. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12188. + [Whether or not to optimize for fast installation])dnl
  12189. +])# _LT_ENABLE_FAST_INSTALL
  12190. +
  12191. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12192. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12193. +
  12194. +# Old names:
  12195. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12196. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12197. +AC_DIAGNOSE([obsolete],
  12198. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12199. +the `fast-install' option into LT_INIT's first parameter.])
  12200. +])
  12201. - sysv4*MP*)
  12202. - if test -d /usr/nec; then
  12203. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12204. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12205. - runpath_var=LD_RUN_PATH
  12206. - hardcode_runpath_var=yes
  12207. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12208. - fi
  12209. - ;;
  12210. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12211. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12212. +AC_DIAGNOSE([obsolete],
  12213. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12214. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12215. +])
  12216. - sysv4.2uw2*)
  12217. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12218. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12219. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  12220. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12221. - hardcode_runpath_var=yes
  12222. - runpath_var=LD_RUN_PATH
  12223. - ;;
  12224. +dnl aclocal-1.4 backwards compatibility:
  12225. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12226. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12227. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  12228. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  12229. - if test "$GCC" = yes; then
  12230. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12231. - else
  12232. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12233. - fi
  12234. - runpath_var='LD_RUN_PATH'
  12235. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12236. - ;;
  12237. - sysv5*)
  12238. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12239. - # $CC -shared without GNU ld will not create a library from C++
  12240. - # object files and a static libstdc++, better avoid it by now
  12241. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12242. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12243. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12244. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  12245. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12246. - runpath_var='LD_RUN_PATH'
  12247. - ;;
  12248. +# _LT_WITH_PIC([MODE])
  12249. +# --------------------
  12250. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12251. +# LT_INIT options.
  12252. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12253. +m4_define([_LT_WITH_PIC],
  12254. +[AC_ARG_WITH([pic],
  12255. + [AS_HELP_STRING([--with-pic],
  12256. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12257. + [pic_mode="$withval"],
  12258. + [pic_mode=default])
  12259. - uts4*)
  12260. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12261. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12262. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12263. - ;;
  12264. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12265. - *)
  12266. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12267. - ;;
  12268. - esac
  12269. - fi
  12270. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12271. +])# _LT_WITH_PIC
  12272. +
  12273. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12274. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12275. +
  12276. +# Old name:
  12277. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12278. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12279. +AC_DIAGNOSE([obsolete],
  12280. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12281. +put the `pic-only' option into LT_INIT's first parameter.])
  12282. ])
  12283. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12284. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12285. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12286. -if test "$GCC" = yes; then
  12287. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12288. -fi
  12289. +dnl aclocal-1.4 backwards compatibility:
  12290. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12291. +
  12292. +m4_define([_LTDL_MODE], [])
  12293. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12294. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12295. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12296. + [m4_define([_LTDL_MODE], [recursive])])
  12297. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12298. + [m4_define([_LTDL_MODE], [subproject])])
  12299. +
  12300. +m4_define([_LTDL_TYPE], [])
  12301. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12302. + [m4_define([_LTDL_TYPE], [installable])])
  12303. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12304. + [m4_define([_LTDL_TYPE], [convenience])])
  12305. +
  12306. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12307. #
  12308. -# Do we need to explicitly link libc?
  12309. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12310. +# Written by Gary V. Vaughan, 2004
  12311. #
  12312. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12313. -x|xyes)
  12314. - # Assume -lc should be added
  12315. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12316. +# This file is free software; the Free Software Foundation gives
  12317. +# unlimited permission to copy and/or distribute it, with or without
  12318. +# modifications, as long as this notice is preserved.
  12319. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12320. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12321. - *'~'*)
  12322. - # FIXME: we may have to deal with multi-command sequences.
  12323. - ;;
  12324. - '$CC '*)
  12325. - # Test whether the compiler implicitly links with -lc since on some
  12326. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12327. - # to ld, don't add -lc before -lgcc.
  12328. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12329. - $rm conftest*
  12330. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12331. +# serial 6 ltsugar.m4
  12332. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12333. - soname=conftest
  12334. - lib=conftest
  12335. - libobjs=conftest.$ac_objext
  12336. - deplibs=
  12337. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12338. - compiler_flags=-v
  12339. - linker_flags=-v
  12340. - verstring=
  12341. - output_objdir=.
  12342. - libname=conftest
  12343. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12344. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12345. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12346. - then
  12347. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12348. - else
  12349. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12350. - fi
  12351. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12352. - else
  12353. - cat conftest.err 1>&5
  12354. - fi
  12355. - $rm conftest*
  12356. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12357. - ;;
  12358. - esac
  12359. - fi
  12360. - ;;
  12361. -esac
  12362. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12363. +# This is to help aclocal find these macros, as it can't see m4_define.
  12364. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12365. -# _LT_AC_FILE_LTDLL_C
  12366. -# -------------------
  12367. -# Be careful that the start marker always follows a newline.
  12368. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12369. -# /* ltdll.c starts here */
  12370. -# #define WIN32_LEAN_AND_MEAN
  12371. -# #include <windows.h>
  12372. -# #undef WIN32_LEAN_AND_MEAN
  12373. -# #include <stdio.h>
  12374. -#
  12375. -# #ifndef __CYGWIN__
  12376. -# # ifdef __CYGWIN32__
  12377. -# # define __CYGWIN__ __CYGWIN32__
  12378. -# # endif
  12379. -# #endif
  12380. -#
  12381. -# #ifdef __cplusplus
  12382. -# extern "C" {
  12383. -# #endif
  12384. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12385. -# #ifdef __cplusplus
  12386. -# }
  12387. -# #endif
  12388. -#
  12389. -# #ifdef __CYGWIN__
  12390. -# #include <cygwin/cygwin_dll.h>
  12391. -# DECLARE_CYGWIN_DLL( DllMain );
  12392. -# #endif
  12393. -# HINSTANCE __hDllInstance_base;
  12394. -#
  12395. -# BOOL APIENTRY
  12396. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12397. -# {
  12398. -# __hDllInstance_base = hInst;
  12399. -# return TRUE;
  12400. -# }
  12401. -# /* ltdll.c ends here */
  12402. -])# _LT_AC_FILE_LTDLL_C
  12403. +# lt_join(SEP, ARG1, [ARG2...])
  12404. +# -----------------------------
  12405. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12406. +# associated separator.
  12407. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12408. +# versions in m4sugar had bugs.
  12409. +m4_define([lt_join],
  12410. +[m4_if([$#], [1], [],
  12411. + [$#], [2], [[$2]],
  12412. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12413. +m4_define([_lt_join],
  12414. +[m4_if([$#$2], [2], [],
  12415. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12416. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12417. -# ---------------------------------
  12418. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12419. +# lt_car(LIST)
  12420. +# lt_cdr(LIST)
  12421. +# ------------
  12422. +# Manipulate m4 lists.
  12423. +# These macros are necessary as long as will still need to support
  12424. +# Autoconf-2.59 which quotes differently.
  12425. +m4_define([lt_car], [[$1]])
  12426. +m4_define([lt_cdr],
  12427. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12428. + [$#], 1, [],
  12429. + [m4_dquote(m4_shift($@))])])
  12430. +m4_define([lt_unquote], $1)
  12431. +
  12432. +
  12433. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12434. +# ------------------------------------------
  12435. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12436. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12437. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12438. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12439. +# than defined and empty).
  12440. +#
  12441. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12442. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12443. +m4_define([lt_append],
  12444. +[m4_define([$1],
  12445. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12446. -# old names
  12447. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12448. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12449. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12450. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12451. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12452. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12453. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12454. -# This is just to silence aclocal about the macro not being used
  12455. -ifelse([AC_DISABLE_FAST_INSTALL])
  12456. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12457. +# ----------------------------------------------------------
  12458. +# Produce a SEP delimited list of all paired combinations of elements of
  12459. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12460. +# has the form PREFIXmINFIXSUFFIXn.
  12461. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12462. +m4_define([lt_combine],
  12463. +[m4_if(m4_eval([$# > 3]), [1],
  12464. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12465. +[[m4_foreach([_Lt_prefix], [$2],
  12466. + [m4_foreach([_Lt_suffix],
  12467. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12468. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12469. +
  12470. +
  12471. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12472. +# -----------------------------------------------------------------------
  12473. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12474. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12475. +m4_define([lt_if_append_uniq],
  12476. +[m4_ifdef([$1],
  12477. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12478. + [lt_append([$1], [$2], [$3])$4],
  12479. + [$5])],
  12480. + [lt_append([$1], [$2], [$3])$4])])
  12481. -AC_DEFUN([LT_AC_PROG_GCJ],
  12482. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12483. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12484. - AC_SUBST(GCJFLAGS)
  12485. -])
  12486. -AC_DEFUN([LT_AC_PROG_RC],
  12487. -[AC_CHECK_TOOL(RC, windres, no)
  12488. -])
  12489. +# lt_dict_add(DICT, KEY, VALUE)
  12490. +# -----------------------------
  12491. +m4_define([lt_dict_add],
  12492. +[m4_define([$1($2)], [$3])])
  12493. -# NOTE: This macro has been submitted for inclusion into #
  12494. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12495. -# a released version of Autoconf we should remove this #
  12496. -# macro and use it instead. #
  12497. -# LT_AC_PROG_SED
  12498. -# --------------
  12499. -# Check for a fully-functional sed program, that truncates
  12500. -# as few characters as possible. Prefer GNU sed if found.
  12501. -AC_DEFUN([LT_AC_PROG_SED],
  12502. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12503. -AC_CACHE_VAL(lt_cv_path_SED,
  12504. -[# Loop through the user's path and test for sed and gsed.
  12505. -# Then use that list of sed's as ones to test for truncation.
  12506. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12507. -for as_dir in $PATH
  12508. -do
  12509. - IFS=$as_save_IFS
  12510. - test -z "$as_dir" && as_dir=.
  12511. - for lt_ac_prog in sed gsed; do
  12512. - for ac_exec_ext in '' $ac_executable_extensions; do
  12513. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12514. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12515. - fi
  12516. - done
  12517. - done
  12518. -done
  12519. -lt_ac_max=0
  12520. -lt_ac_count=0
  12521. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12522. -# along with /bin/sed that truncates output.
  12523. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12524. - test ! -f $lt_ac_sed && break
  12525. - cat /dev/null > conftest.in
  12526. - lt_ac_count=0
  12527. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12528. - # Check for GNU sed and select it if it is found.
  12529. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12530. - lt_cv_path_SED=$lt_ac_sed
  12531. - break
  12532. - fi
  12533. - while true; do
  12534. - cat conftest.in conftest.in >conftest.tmp
  12535. - mv conftest.tmp conftest.in
  12536. - cp conftest.in conftest.nl
  12537. - echo >>conftest.nl
  12538. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12539. - cmp -s conftest.out conftest.nl || break
  12540. - # 10000 chars as input seems more than enough
  12541. - test $lt_ac_count -gt 10 && break
  12542. - lt_ac_count=`expr $lt_ac_count + 1`
  12543. - if test $lt_ac_count -gt $lt_ac_max; then
  12544. - lt_ac_max=$lt_ac_count
  12545. - lt_cv_path_SED=$lt_ac_sed
  12546. - fi
  12547. - done
  12548. -done
  12549. +
  12550. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12551. +# --------------------------------------------
  12552. +m4_define([lt_dict_add_subkey],
  12553. +[m4_define([$1($2:$3)], [$4])])
  12554. +
  12555. +
  12556. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12557. +# ----------------------------------
  12558. +m4_define([lt_dict_fetch],
  12559. +[m4_ifval([$3],
  12560. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12561. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12562. +
  12563. +
  12564. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12565. +# -----------------------------------------------------------------
  12566. +m4_define([lt_if_dict_fetch],
  12567. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12568. + [$5],
  12569. + [$6])])
  12570. +
  12571. +
  12572. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12573. +# --------------------------------------------------------------
  12574. +m4_define([lt_dict_filter],
  12575. +[m4_if([$5], [], [],
  12576. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12577. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12578. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12579. ])
  12580. -SED=$lt_cv_path_SED
  12581. -AC_MSG_RESULT([$SED])
  12582. +
  12583. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12584. +#
  12585. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12586. +# Written by Scott James Remnant, 2004
  12587. +#
  12588. +# This file is free software; the Free Software Foundation gives
  12589. +# unlimited permission to copy and/or distribute it, with or without
  12590. +# modifications, as long as this notice is preserved.
  12591. +
  12592. +# Generated from ltversion.in.
  12593. +
  12594. +# serial 3017 ltversion.m4
  12595. +# This file is part of GNU Libtool
  12596. +
  12597. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12598. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12599. +
  12600. +AC_DEFUN([LTVERSION_VERSION],
  12601. +[macro_version='2.2.6b'
  12602. +macro_revision='1.3017'
  12603. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12604. +_LT_DECL(, macro_revision, 0)
  12605. ])
  12606. -# -*- Autoconf -*-
  12607. -# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  12608. -# Generated from amversion.in; do not edit by hand.
  12609. -
  12610. -# This program is free software; you can redistribute it and/or modify
  12611. -# it under the terms of the GNU General Public License as published by
  12612. -# the Free Software Foundation; either version 2, or (at your option)
  12613. -# any later version.
  12614. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12615. +#
  12616. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12617. +# Written by Scott James Remnant, 2004.
  12618. +#
  12619. +# This file is free software; the Free Software Foundation gives
  12620. +# unlimited permission to copy and/or distribute it, with or without
  12621. +# modifications, as long as this notice is preserved.
  12622. -# This program is distributed in the hope that it will be useful,
  12623. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12624. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12625. -# GNU General Public License for more details.
  12626. +# serial 4 lt~obsolete.m4
  12627. -# You should have received a copy of the GNU General Public License
  12628. -# along with this program; if not, write to the Free Software
  12629. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12630. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12631. +#
  12632. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12633. +# which have later been changed to m4_define as they aren't part of the
  12634. +# exported API, or moved to Autoconf or Automake where they belong.
  12635. +#
  12636. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12637. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12638. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12639. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12640. +# and doesn't know about Autoconf macros at all.)
  12641. +#
  12642. +# So we provide this file, which has a silly filename so it's always
  12643. +# included after everything else. This provides aclocal with the
  12644. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12645. +# because those macros already exist, or will be overwritten later.
  12646. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12647. +#
  12648. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12649. +# Yes, that means every name once taken will need to remain here until
  12650. +# we give up compatibility with versions before 1.7, at which point
  12651. +# we need to keep only those names which we still refer to.
  12652. +
  12653. +# This is to help aclocal find these macros, as it can't see m4_define.
  12654. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12655. +
  12656. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12657. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12658. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12659. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12660. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12661. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12662. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12663. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12664. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12665. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12666. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12667. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12668. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12669. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12670. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12671. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12672. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12673. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12674. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12675. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12676. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12677. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12678. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12679. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12680. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12681. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12682. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12683. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12684. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12685. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12686. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12687. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12688. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12689. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12690. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12691. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12692. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12693. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12694. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12695. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12696. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12697. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12698. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12699. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12700. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12701. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12702. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12703. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12704. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12705. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12706. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12707. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12708. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12709. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12710. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12711. +
  12712. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12713. +#
  12714. +# This file is free software; the Free Software Foundation
  12715. +# gives unlimited permission to copy and/or distribute it,
  12716. +# with or without modifications, as long as this notice is preserved.
  12717. # AM_AUTOMAKE_VERSION(VERSION)
  12718. # ----------------------------
  12719. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  12720. # generated from the m4 files accompanying Automake X.Y.
  12721. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  12722. +# (This private macro should not be called outside this file.)
  12723. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  12724. +[am__api_version='1.11'
  12725. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  12726. +dnl require some minimum version. Point them to the right macro.
  12727. +m4_if([$1], [1.11.1], [],
  12728. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  12729. +])
  12730. +
  12731. +# _AM_AUTOCONF_VERSION(VERSION)
  12732. +# -----------------------------
  12733. +# aclocal traces this macro to find the Autoconf version.
  12734. +# This is a private macro too. Using m4_define simplifies
  12735. +# the logic in aclocal, which can simply ignore this definition.
  12736. +m4_define([_AM_AUTOCONF_VERSION], [])
  12737. # AM_SET_CURRENT_AUTOMAKE_VERSION
  12738. # -------------------------------
  12739. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  12740. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  12741. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  12742. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  12743. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  12744. - [AM_AUTOMAKE_VERSION([1.9.4])])
  12745. -
  12746. -# AM_AUX_DIR_EXPAND
  12747. -
  12748. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  12749. -
  12750. -# This program is free software; you can redistribute it and/or modify
  12751. -# it under the terms of the GNU General Public License as published by
  12752. -# the Free Software Foundation; either version 2, or (at your option)
  12753. -# any later version.
  12754. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  12755. +m4_ifndef([AC_AUTOCONF_VERSION],
  12756. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  12757. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  12758. -# This program is distributed in the hope that it will be useful,
  12759. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12760. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12761. -# GNU General Public License for more details.
  12762. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  12763. -# You should have received a copy of the GNU General Public License
  12764. -# along with this program; if not, write to the Free Software
  12765. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12766. -# 02111-1307, USA.
  12767. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  12768. +#
  12769. +# This file is free software; the Free Software Foundation
  12770. +# gives unlimited permission to copy and/or distribute it,
  12771. +# with or without modifications, as long as this notice is preserved.
  12772. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  12773. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  12774. @@ -6071,26 +8074,16 @@
  12775. am_aux_dir=`cd $ac_aux_dir && pwd`
  12776. ])
  12777. -# AM_CONDITIONAL -*- Autoconf -*-
  12778. -
  12779. -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
  12780. -
  12781. -# This program is free software; you can redistribute it and/or modify
  12782. -# it under the terms of the GNU General Public License as published by
  12783. -# the Free Software Foundation; either version 2, or (at your option)
  12784. -# any later version.
  12785. -
  12786. -# This program is distributed in the hope that it will be useful,
  12787. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12788. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12789. -# GNU General Public License for more details.
  12790. +# AM_CONDITIONAL -*- Autoconf -*-
  12791. -# You should have received a copy of the GNU General Public License
  12792. -# along with this program; if not, write to the Free Software
  12793. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12794. -# 02111-1307, USA.
  12795. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  12796. +# Free Software Foundation, Inc.
  12797. +#
  12798. +# This file is free software; the Free Software Foundation
  12799. +# gives unlimited permission to copy and/or distribute it,
  12800. +# with or without modifications, as long as this notice is preserved.
  12801. -# serial 6
  12802. +# serial 9
  12803. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  12804. # -------------------------------------
  12805. @@ -6099,8 +8092,11 @@
  12806. [AC_PREREQ(2.52)dnl
  12807. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  12808. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  12809. -AC_SUBST([$1_TRUE])
  12810. -AC_SUBST([$1_FALSE])
  12811. +AC_SUBST([$1_TRUE])dnl
  12812. +AC_SUBST([$1_FALSE])dnl
  12813. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  12814. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  12815. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  12816. if $2; then
  12817. $1_TRUE=
  12818. $1_FALSE='#'
  12819. @@ -6114,26 +8110,14 @@
  12820. Usually this means the macro was only invoked conditionally.]])
  12821. fi])])
  12822. -# serial 7 -*- Autoconf -*-
  12823. -
  12824. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  12825. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  12826. # Free Software Foundation, Inc.
  12827. +#
  12828. +# This file is free software; the Free Software Foundation
  12829. +# gives unlimited permission to copy and/or distribute it,
  12830. +# with or without modifications, as long as this notice is preserved.
  12831. -# This program is free software; you can redistribute it and/or modify
  12832. -# it under the terms of the GNU General Public License as published by
  12833. -# the Free Software Foundation; either version 2, or (at your option)
  12834. -# any later version.
  12835. -
  12836. -# This program is distributed in the hope that it will be useful,
  12837. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12838. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12839. -# GNU General Public License for more details.
  12840. -
  12841. -# You should have received a copy of the GNU General Public License
  12842. -# along with this program; if not, write to the Free Software
  12843. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12844. -# 02111-1307, USA.
  12845. -
  12846. +# serial 10
  12847. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  12848. # written in clear, in which case automake, when reading aclocal.m4,
  12849. @@ -6142,7 +8126,6 @@
  12850. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  12851. -
  12852. # _AM_DEPENDENCIES(NAME)
  12853. # ----------------------
  12854. # See how the compiler implements dependency checking.
  12855. @@ -6162,6 +8145,7 @@
  12856. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  12857. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  12858. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  12859. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  12860. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  12861. [depcc="$$1" am_compiler_list=])
  12862. @@ -6190,6 +8174,16 @@
  12863. if test "$am_compiler_list" = ""; then
  12864. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  12865. fi
  12866. + am__universal=false
  12867. + m4_case([$1], [CC],
  12868. + [case " $depcc " in #(
  12869. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12870. + esac],
  12871. + [CXX],
  12872. + [case " $depcc " in #(
  12873. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12874. + esac])
  12875. +
  12876. for depmode in $am_compiler_list; do
  12877. # Setup a source with many dependencies, because some compilers
  12878. # like to wrap large dependency lists on column 80 (with \), and
  12879. @@ -6207,7 +8201,17 @@
  12880. done
  12881. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12882. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12883. + # mode. It turns out that the SunPro C++ compiler does not properly
  12884. + # handle `-M -o', and we need to detect this. Also, some Intel
  12885. + # versions had trouble with output in subdirs
  12886. + am__obj=sub/conftest.${OBJEXT-o}
  12887. + am__minus_obj="-o $am__obj"
  12888. case $depmode in
  12889. + gcc)
  12890. + # This depmode causes a compiler race in universal mode.
  12891. + test "$am__universal" = false || continue
  12892. + ;;
  12893. nosideeffect)
  12894. # after this tag, mechanisms are not by side-effect, so they'll
  12895. # only be used when explicitly requested
  12896. @@ -6217,18 +8221,23 @@
  12897. break
  12898. fi
  12899. ;;
  12900. + msvisualcpp | msvcmsys)
  12901. + # This compiler won't grok `-c -o', but also, the minuso test has
  12902. + # not run yet. These depmodes are late enough in the game, and
  12903. + # so weak that their functioning should not be impacted.
  12904. + am__obj=conftest.${OBJEXT-o}
  12905. + am__minus_obj=
  12906. + ;;
  12907. none) break ;;
  12908. esac
  12909. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12910. - # mode. It turns out that the SunPro C++ compiler does not properly
  12911. - # handle `-M -o', and we need to detect this.
  12912. if depmode=$depmode \
  12913. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12914. + source=sub/conftest.c object=$am__obj \
  12915. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12916. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12917. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12918. >/dev/null 2>conftest.err &&
  12919. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12920. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12921. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12922. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12923. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12924. # icc doesn't choke on unknown options, it will just issue warnings
  12925. # or remarks (even with -Werror). So we grep stderr for any message
  12926. @@ -6279,72 +8288,74 @@
  12927. AMDEPBACKSLASH='\'
  12928. fi
  12929. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  12930. -AC_SUBST([AMDEPBACKSLASH])
  12931. +AC_SUBST([AMDEPBACKSLASH])dnl
  12932. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  12933. ])
  12934. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  12935. -
  12936. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  12937. -# Free Software Foundation, Inc.
  12938. -
  12939. -# This program is free software; you can redistribute it and/or modify
  12940. -# it under the terms of the GNU General Public License as published by
  12941. -# the Free Software Foundation; either version 2, or (at your option)
  12942. -# any later version.
  12943. -
  12944. -# This program is distributed in the hope that it will be useful,
  12945. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12946. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12947. -# GNU General Public License for more details.
  12948. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  12949. -# You should have received a copy of the GNU General Public License
  12950. -# along with this program; if not, write to the Free Software
  12951. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12952. -# 02111-1307, USA.
  12953. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  12954. +# Free Software Foundation, Inc.
  12955. +#
  12956. +# This file is free software; the Free Software Foundation
  12957. +# gives unlimited permission to copy and/or distribute it,
  12958. +# with or without modifications, as long as this notice is preserved.
  12959. -#serial 2
  12960. +#serial 5
  12961. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  12962. # ------------------------------
  12963. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  12964. -[for mf in $CONFIG_FILES; do
  12965. - # Strip MF so we end up with the name of the file.
  12966. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  12967. - # Check whether this is an Automake generated Makefile or not.
  12968. - # We used to match only the files named `Makefile.in', but
  12969. - # some people rename them; so instead we look at the file content.
  12970. - # Grep'ing the first line is not enough: some people post-process
  12971. - # each Makefile.in and add a new line on top of each file to say so.
  12972. - # So let's grep whole file.
  12973. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12974. - dirpart=`AS_DIRNAME("$mf")`
  12975. - else
  12976. - continue
  12977. - fi
  12978. - # Extract the definition of DEPDIR, am__include, and am__quote
  12979. - # from the Makefile without running `make'.
  12980. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12981. - test -z "$DEPDIR" && continue
  12982. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12983. - test -z "am__include" && continue
  12984. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12985. - # When using ansi2knr, U may be empty or an underscore; expand it
  12986. - U=`sed -n 's/^U = //p' < "$mf"`
  12987. - # Find all dependency output files, they are included files with
  12988. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  12989. - # simplest approach to changing $(DEPDIR) to its actual value in the
  12990. - # expansion.
  12991. - for file in `sed -n "
  12992. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12993. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12994. - # Make sure the directory exists.
  12995. - test -f "$dirpart/$file" && continue
  12996. - fdir=`AS_DIRNAME(["$file"])`
  12997. - AS_MKDIR_P([$dirpart/$fdir])
  12998. - # echo "creating $dirpart/$file"
  12999. - echo '# dummy' > "$dirpart/$file"
  13000. +[{
  13001. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13002. + # are listed without --file. Let's play safe and only enable the eval
  13003. + # if we detect the quoting.
  13004. + case $CONFIG_FILES in
  13005. + *\'*) eval set x "$CONFIG_FILES" ;;
  13006. + *) set x $CONFIG_FILES ;;
  13007. + esac
  13008. + shift
  13009. + for mf
  13010. + do
  13011. + # Strip MF so we end up with the name of the file.
  13012. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13013. + # Check whether this is an Automake generated Makefile or not.
  13014. + # We used to match only the files named `Makefile.in', but
  13015. + # some people rename them; so instead we look at the file content.
  13016. + # Grep'ing the first line is not enough: some people post-process
  13017. + # each Makefile.in and add a new line on top of each file to say so.
  13018. + # Grep'ing the whole file is not good either: AIX grep has a line
  13019. + # limit of 2048, but all sed's we know have understand at least 4000.
  13020. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13021. + dirpart=`AS_DIRNAME("$mf")`
  13022. + else
  13023. + continue
  13024. + fi
  13025. + # Extract the definition of DEPDIR, am__include, and am__quote
  13026. + # from the Makefile without running `make'.
  13027. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13028. + test -z "$DEPDIR" && continue
  13029. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13030. + test -z "am__include" && continue
  13031. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13032. + # When using ansi2knr, U may be empty or an underscore; expand it
  13033. + U=`sed -n 's/^U = //p' < "$mf"`
  13034. + # Find all dependency output files, they are included files with
  13035. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13036. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13037. + # expansion.
  13038. + for file in `sed -n "
  13039. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13040. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13041. + # Make sure the directory exists.
  13042. + test -f "$dirpart/$file" && continue
  13043. + fdir=`AS_DIRNAME(["$file"])`
  13044. + AS_MKDIR_P([$dirpart/$fdir])
  13045. + # echo "creating $dirpart/$file"
  13046. + echo '# dummy' > "$dirpart/$file"
  13047. + done
  13048. done
  13049. -done
  13050. +}
  13051. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13052. @@ -6361,30 +8372,19 @@
  13053. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  13054. ])
  13055. -# Do all the work for Automake. -*- Autoconf -*-
  13056. -
  13057. -# This macro actually does too much some checks are only needed if
  13058. -# your package does certain things. But this isn't really a big deal.
  13059. -
  13060. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  13061. -# Free Software Foundation, Inc.
  13062. -
  13063. -# This program is free software; you can redistribute it and/or modify
  13064. -# it under the terms of the GNU General Public License as published by
  13065. -# the Free Software Foundation; either version 2, or (at your option)
  13066. -# any later version.
  13067. +# Do all the work for Automake. -*- Autoconf -*-
  13068. -# This program is distributed in the hope that it will be useful,
  13069. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13070. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13071. -# GNU General Public License for more details.
  13072. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13073. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13074. +#
  13075. +# This file is free software; the Free Software Foundation
  13076. +# gives unlimited permission to copy and/or distribute it,
  13077. +# with or without modifications, as long as this notice is preserved.
  13078. -# You should have received a copy of the GNU General Public License
  13079. -# along with this program; if not, write to the Free Software
  13080. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13081. -# 02111-1307, USA.
  13082. +# serial 16
  13083. -# serial 11
  13084. +# This macro actually does too much. Some checks are only needed if
  13085. +# your package does certain things. But this isn't really a big deal.
  13086. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  13087. # AM_INIT_AUTOMAKE([OPTIONS])
  13088. @@ -6398,16 +8398,20 @@
  13089. # arguments mandatory, and then we can depend on a new Autoconf
  13090. # release and drop the old call support.
  13091. AC_DEFUN([AM_INIT_AUTOMAKE],
  13092. -[AC_PREREQ([2.58])dnl
  13093. +[AC_PREREQ([2.62])dnl
  13094. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13095. dnl the ones we care about.
  13096. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13097. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13098. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13099. -# test to see if srcdir already configured
  13100. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13101. - test -f $srcdir/config.status; then
  13102. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13103. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13104. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13105. + # is not polluted with repeated "-I."
  13106. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13107. + # test to see if srcdir already configured
  13108. + if test -f $srcdir/config.status; then
  13109. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13110. + fi
  13111. fi
  13112. # test whether we have cygpath
  13113. @@ -6427,6 +8431,9 @@
  13114. AC_SUBST([PACKAGE], [$1])dnl
  13115. AC_SUBST([VERSION], [$2])],
  13116. [_AM_SET_OPTIONS([$1])dnl
  13117. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13118. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13119. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13120. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13121. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13122. @@ -6442,8 +8449,8 @@
  13123. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13124. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13125. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13126. -AM_PROG_INSTALL_SH
  13127. -AM_PROG_INSTALL_STRIP
  13128. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13129. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13130. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13131. # We need awk for the "check" target. The system "awk" is bad on
  13132. # some platforms.
  13133. @@ -6451,20 +8458,37 @@
  13134. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13135. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13136. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13137. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13138. - [_AM_PROG_TAR([v7])])])
  13139. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13140. + [_AM_PROG_TAR([v7])])])
  13141. _AM_IF_OPTION([no-dependencies],,
  13142. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13143. - [_AM_DEPENDENCIES(CC)],
  13144. - [define([AC_PROG_CC],
  13145. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13146. + [_AM_DEPENDENCIES(CC)],
  13147. + [define([AC_PROG_CC],
  13148. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13149. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13150. - [_AM_DEPENDENCIES(CXX)],
  13151. - [define([AC_PROG_CXX],
  13152. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13153. + [_AM_DEPENDENCIES(CXX)],
  13154. + [define([AC_PROG_CXX],
  13155. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13156. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13157. + [_AM_DEPENDENCIES(OBJC)],
  13158. + [define([AC_PROG_OBJC],
  13159. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13160. ])
  13161. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13162. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13163. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13164. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13165. +AC_CONFIG_COMMANDS_PRE(dnl
  13166. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13167. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13168. ])
  13169. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13170. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13171. +dnl mangled by Autoconf and run in a shell conditional statement.
  13172. +m4_define([_AC_COMPILER_EXEEXT],
  13173. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13174. +
  13175. # When config.status generates a header, we must update the stamp-h file.
  13176. # This file resides in the same directory as the config header
  13177. @@ -6475,62 +8499,46 @@
  13178. # our stamp files there.
  13179. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13180. [# Compute $1's index in $config_headers.
  13181. +_am_arg=$1
  13182. _am_stamp_count=1
  13183. for _am_header in $config_headers :; do
  13184. case $_am_header in
  13185. - $1 | $1:* )
  13186. + $_am_arg | $_am_arg:* )
  13187. break ;;
  13188. * )
  13189. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13190. esac
  13191. done
  13192. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13193. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13194. +
  13195. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13196. +#
  13197. +# This file is free software; the Free Software Foundation
  13198. +# gives unlimited permission to copy and/or distribute it,
  13199. +# with or without modifications, as long as this notice is preserved.
  13200. # AM_PROG_INSTALL_SH
  13201. # ------------------
  13202. # Define $install_sh.
  13203. -
  13204. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  13205. -
  13206. -# This program is free software; you can redistribute it and/or modify
  13207. -# it under the terms of the GNU General Public License as published by
  13208. -# the Free Software Foundation; either version 2, or (at your option)
  13209. -# any later version.
  13210. -
  13211. -# This program is distributed in the hope that it will be useful,
  13212. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13213. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13214. -# GNU General Public License for more details.
  13215. -
  13216. -# You should have received a copy of the GNU General Public License
  13217. -# along with this program; if not, write to the Free Software
  13218. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13219. -# 02111-1307, USA.
  13220. -
  13221. AC_DEFUN([AM_PROG_INSTALL_SH],
  13222. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13223. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13224. +if test x"${install_sh}" != xset; then
  13225. + case $am_aux_dir in
  13226. + *\ * | *\ *)
  13227. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13228. + *)
  13229. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13230. + esac
  13231. +fi
  13232. AC_SUBST(install_sh)])
  13233. -# -*- Autoconf -*-
  13234. -# Copyright (C) 2003 Free Software Foundation, Inc.
  13235. -
  13236. -# This program is free software; you can redistribute it and/or modify
  13237. -# it under the terms of the GNU General Public License as published by
  13238. -# the Free Software Foundation; either version 2, or (at your option)
  13239. -# any later version.
  13240. -
  13241. -# This program is distributed in the hope that it will be useful,
  13242. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13243. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13244. -# GNU General Public License for more details.
  13245. -
  13246. -# You should have received a copy of the GNU General Public License
  13247. -# along with this program; if not, write to the Free Software
  13248. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13249. -# 02111-1307, USA.
  13250. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13251. +#
  13252. +# This file is free software; the Free Software Foundation
  13253. +# gives unlimited permission to copy and/or distribute it,
  13254. +# with or without modifications, as long as this notice is preserved.
  13255. -# serial 1
  13256. +# serial 2
  13257. # Check whether the underlying file-system supports filenames
  13258. # with a leading dot. For instance MS-DOS doesn't.
  13259. @@ -6545,26 +8553,15 @@
  13260. rmdir .tst 2>/dev/null
  13261. AC_SUBST([am__leading_dot])])
  13262. -# Check to see how 'make' treats includes. -*- Autoconf -*-
  13263. -
  13264. -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  13265. -
  13266. -# This program is free software; you can redistribute it and/or modify
  13267. -# it under the terms of the GNU General Public License as published by
  13268. -# the Free Software Foundation; either version 2, or (at your option)
  13269. -# any later version.
  13270. -
  13271. -# This program is distributed in the hope that it will be useful,
  13272. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13273. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13274. -# GNU General Public License for more details.
  13275. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  13276. -# You should have received a copy of the GNU General Public License
  13277. -# along with this program; if not, write to the Free Software
  13278. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13279. -# 02111-1307, USA.
  13280. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13281. +#
  13282. +# This file is free software; the Free Software Foundation
  13283. +# gives unlimited permission to copy and/or distribute it,
  13284. +# with or without modifications, as long as this notice is preserved.
  13285. -# serial 2
  13286. +# serial 4
  13287. # AM_MAKE_INCLUDE()
  13288. # -----------------
  13289. @@ -6573,7 +8570,7 @@
  13290. [am_make=${MAKE-make}
  13291. cat > confinc << 'END'
  13292. am__doit:
  13293. - @echo done
  13294. + @echo this is the am__doit target
  13295. .PHONY: am__doit
  13296. END
  13297. # If we don't find an include directive, just comment out the code.
  13298. @@ -6583,24 +8580,24 @@
  13299. _am_result=none
  13300. # First try GNU make style include.
  13301. echo "include confinc" > confmf
  13302. -# We grep out `Entering directory' and `Leaving directory'
  13303. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13304. -# In particular we don't look at `^make:' because GNU make might
  13305. -# be invoked under some other name (usually "gmake"), in which
  13306. -# case it prints its new name instead of `make'.
  13307. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13308. - am__include=include
  13309. - am__quote=
  13310. - _am_result=GNU
  13311. -fi
  13312. +# Ignore all kinds of additional output from `make'.
  13313. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13314. +*the\ am__doit\ target*)
  13315. + am__include=include
  13316. + am__quote=
  13317. + _am_result=GNU
  13318. + ;;
  13319. +esac
  13320. # Now try BSD make style include.
  13321. if test "$am__include" = "#"; then
  13322. echo '.include "confinc"' > confmf
  13323. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13324. - am__include=.include
  13325. - am__quote="\""
  13326. - _am_result=BSD
  13327. - fi
  13328. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13329. + *the\ am__doit\ target*)
  13330. + am__include=.include
  13331. + am__quote="\""
  13332. + _am_result=BSD
  13333. + ;;
  13334. + esac
  13335. fi
  13336. AC_SUBST([am__include])
  13337. AC_SUBST([am__quote])
  13338. @@ -6608,27 +8605,16 @@
  13339. rm -f confinc confmf
  13340. ])
  13341. -# -*- Autoconf -*-
  13342. -
  13343. -
  13344. -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  13345. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13346. -# This program is free software; you can redistribute it and/or modify
  13347. -# it under the terms of the GNU General Public License as published by
  13348. -# the Free Software Foundation; either version 2, or (at your option)
  13349. -# any later version.
  13350. -
  13351. -# This program is distributed in the hope that it will be useful,
  13352. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13353. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13354. -# GNU General Public License for more details.
  13355. -
  13356. -# You should have received a copy of the GNU General Public License
  13357. -# along with this program; if not, write to the Free Software
  13358. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13359. -# 02111-1307, USA.
  13360. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13361. +# Free Software Foundation, Inc.
  13362. +#
  13363. +# This file is free software; the Free Software Foundation
  13364. +# gives unlimited permission to copy and/or distribute it,
  13365. +# with or without modifications, as long as this notice is preserved.
  13366. -# serial 3
  13367. +# serial 6
  13368. # AM_MISSING_PROG(NAME, PROGRAM)
  13369. # ------------------------------
  13370. @@ -6644,7 +8630,15 @@
  13371. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13372. AC_DEFUN([AM_MISSING_HAS_RUN],
  13373. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13374. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13375. +AC_REQUIRE_AUX_FILE([missing])dnl
  13376. +if test x"${MISSING+set}" != xset; then
  13377. + case $am_aux_dir in
  13378. + *\ * | *\ *)
  13379. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13380. + *)
  13381. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13382. + esac
  13383. +fi
  13384. # Use eval to expand $SHELL
  13385. if eval "$MISSING --run true"; then
  13386. am_missing_run="$MISSING --run "
  13387. @@ -6654,100 +8648,41 @@
  13388. fi
  13389. ])
  13390. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13391. +#
  13392. +# This file is free software; the Free Software Foundation
  13393. +# gives unlimited permission to copy and/or distribute it,
  13394. +# with or without modifications, as long as this notice is preserved.
  13395. +
  13396. # AM_PROG_MKDIR_P
  13397. # ---------------
  13398. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13399. -
  13400. -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  13401. -
  13402. -# This program is free software; you can redistribute it and/or modify
  13403. -# it under the terms of the GNU General Public License as published by
  13404. -# the Free Software Foundation; either version 2, or (at your option)
  13405. -# any later version.
  13406. -
  13407. -# This program is distributed in the hope that it will be useful,
  13408. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13409. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13410. -# GNU General Public License for more details.
  13411. -
  13412. -# You should have received a copy of the GNU General Public License
  13413. -# along with this program; if not, write to the Free Software
  13414. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13415. -# 02111-1307, USA.
  13416. -
  13417. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13418. -# created by `make install' are always world readable, even if the
  13419. -# installer happens to have an overly restrictive umask (e.g. 077).
  13420. -# This was a mistake. There are at least two reasons why we must not
  13421. -# use `-m 0755':
  13422. -# - it causes special bits like SGID to be ignored,
  13423. -# - it may be too restrictive (some setups expect 775 directories).
  13424. -#
  13425. -# Do not use -m 0755 and let people choose whatever they expect by
  13426. -# setting umask.
  13427. -#
  13428. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13429. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13430. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13431. -# concurrently, both version can detect that a/ is missing, but only
  13432. -# one can create it and the other will error out. Consequently we
  13433. -# restrict ourselves to GNU make (using the --version option ensures
  13434. -# this.)
  13435. +# Check for `mkdir -p'.
  13436. AC_DEFUN([AM_PROG_MKDIR_P],
  13437. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13438. - # We used to keeping the `.' as first argument, in order to
  13439. - # allow $(mkdir_p) to be used without argument. As in
  13440. - # $(mkdir_p) $(somedir)
  13441. - # where $(somedir) is conditionally defined. However this is wrong
  13442. - # for two reasons:
  13443. - # 1. if the package is installed by a user who cannot write `.'
  13444. - # make install will fail,
  13445. - # 2. the above comment should most certainly read
  13446. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13447. - # so it does not work when $(somedir) is undefined and
  13448. - # $(DESTDIR) is not.
  13449. - # To support the latter case, we have to write
  13450. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13451. - # so the `.' trick is pointless.
  13452. - mkdir_p='mkdir -p --'
  13453. -else
  13454. - # On NextStep and OpenStep, the `mkdir' command does not
  13455. - # recognize any option. It will interpret all options as
  13456. - # directories to create, and then abort because `.' already
  13457. - # exists.
  13458. - for d in ./-p ./--version;
  13459. - do
  13460. - test -d $d && rmdir $d
  13461. - done
  13462. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13463. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13464. - mkdir_p='$(mkinstalldirs)'
  13465. - else
  13466. - mkdir_p='$(install_sh) -d'
  13467. - fi
  13468. -fi
  13469. -AC_SUBST([mkdir_p])])
  13470. -
  13471. -# Helper functions for option handling. -*- Autoconf -*-
  13472. -
  13473. -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  13474. -
  13475. -# This program is free software; you can redistribute it and/or modify
  13476. -# it under the terms of the GNU General Public License as published by
  13477. -# the Free Software Foundation; either version 2, or (at your option)
  13478. -# any later version.
  13479. +[AC_PREREQ([2.60])dnl
  13480. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13481. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13482. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13483. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13484. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13485. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13486. +dnl adjustment using top_builddir (which is defined more often than
  13487. +dnl MKDIR_P).
  13488. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13489. +case $mkdir_p in
  13490. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13491. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13492. +esac
  13493. +])
  13494. -# This program is distributed in the hope that it will be useful,
  13495. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13496. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13497. -# GNU General Public License for more details.
  13498. +# Helper functions for option handling. -*- Autoconf -*-
  13499. -# You should have received a copy of the GNU General Public License
  13500. -# along with this program; if not, write to the Free Software
  13501. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13502. -# 02111-1307, USA.
  13503. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13504. +#
  13505. +# This file is free software; the Free Software Foundation
  13506. +# gives unlimited permission to copy and/or distribute it,
  13507. +# with or without modifications, as long as this notice is preserved.
  13508. -# serial 2
  13509. +# serial 4
  13510. # _AM_MANGLE_OPTION(NAME)
  13511. # -----------------------
  13512. @@ -6764,7 +8699,7 @@
  13513. # ----------------------------------
  13514. # OPTIONS is a space-separated list of Automake options.
  13515. AC_DEFUN([_AM_SET_OPTIONS],
  13516. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13517. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13518. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13519. # -------------------------------------------
  13520. @@ -6772,28 +8707,16 @@
  13521. AC_DEFUN([_AM_IF_OPTION],
  13522. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  13523. -#
  13524. -# Check to make sure that the build environment is sane.
  13525. -#
  13526. -
  13527. -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  13528. -
  13529. -# This program is free software; you can redistribute it and/or modify
  13530. -# it under the terms of the GNU General Public License as published by
  13531. -# the Free Software Foundation; either version 2, or (at your option)
  13532. -# any later version.
  13533. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  13534. -# This program is distributed in the hope that it will be useful,
  13535. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13536. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13537. -# GNU General Public License for more details.
  13538. -
  13539. -# You should have received a copy of the GNU General Public License
  13540. -# along with this program; if not, write to the Free Software
  13541. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13542. -# 02111-1307, USA.
  13543. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13544. +# Free Software Foundation, Inc.
  13545. +#
  13546. +# This file is free software; the Free Software Foundation
  13547. +# gives unlimited permission to copy and/or distribute it,
  13548. +# with or without modifications, as long as this notice is preserved.
  13549. -# serial 3
  13550. +# serial 5
  13551. # AM_SANITY_CHECK
  13552. # ---------------
  13553. @@ -6802,16 +8725,29 @@
  13554. # Just in case
  13555. sleep 1
  13556. echo timestamp > conftest.file
  13557. +# Reject unsafe characters in $srcdir or the absolute working directory
  13558. +# name. Accept space and tab only in the latter.
  13559. +am_lf='
  13560. +'
  13561. +case `pwd` in
  13562. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13563. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13564. +esac
  13565. +case $srcdir in
  13566. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13567. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13568. +esac
  13569. +
  13570. # Do `set' in a subshell so we don't clobber the current shell's
  13571. # arguments. Must try -L first in case configure is actually a
  13572. # symlink; some systems play weird games with the mod time of symlinks
  13573. # (eg FreeBSD returns the mod time of the symlink's containing
  13574. # directory).
  13575. if (
  13576. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13577. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13578. if test "$[*]" = "X"; then
  13579. # -L didn't work.
  13580. - set X `ls -t $srcdir/configure conftest.file`
  13581. + set X `ls -t "$srcdir/configure" conftest.file`
  13582. fi
  13583. rm -f conftest.file
  13584. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13585. @@ -6836,25 +8772,14 @@
  13586. fi
  13587. AC_MSG_RESULT(yes)])
  13588. -# AM_PROG_INSTALL_STRIP
  13589. -
  13590. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  13591. -
  13592. -# This program is free software; you can redistribute it and/or modify
  13593. -# it under the terms of the GNU General Public License as published by
  13594. -# the Free Software Foundation; either version 2, or (at your option)
  13595. -# any later version.
  13596. -
  13597. -# This program is distributed in the hope that it will be useful,
  13598. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13599. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13600. -# GNU General Public License for more details.
  13601. -
  13602. -# You should have received a copy of the GNU General Public License
  13603. -# along with this program; if not, write to the Free Software
  13604. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13605. -# 02111-1307, USA.
  13606. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13607. +#
  13608. +# This file is free software; the Free Software Foundation
  13609. +# gives unlimited permission to copy and/or distribute it,
  13610. +# with or without modifications, as long as this notice is preserved.
  13611. +# AM_PROG_INSTALL_STRIP
  13612. +# ---------------------
  13613. # One issue with vendor `install' (even GNU) is that you can't
  13614. # specify the program used to strip binaries. This is especially
  13615. # annoying in cross-compiling environments, where the build's strip
  13616. @@ -6872,30 +8797,37 @@
  13617. if test "$cross_compiling" != no; then
  13618. AC_CHECK_TOOL([STRIP], [strip], :)
  13619. fi
  13620. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13621. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13622. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13623. -# Check how to create a tarball. -*- Autoconf -*-
  13624. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13625. +#
  13626. +# This file is free software; the Free Software Foundation
  13627. +# gives unlimited permission to copy and/or distribute it,
  13628. +# with or without modifications, as long as this notice is preserved.
  13629. -# Copyright (C) 2004 Free Software Foundation, Inc.
  13630. +# serial 2
  13631. -# This program is free software; you can redistribute it and/or modify
  13632. -# it under the terms of the GNU General Public License as published by
  13633. -# the Free Software Foundation; either version 2, or (at your option)
  13634. -# any later version.
  13635. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13636. +# ---------------------------
  13637. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13638. +# This macro is traced by Automake.
  13639. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13640. -# This program is distributed in the hope that it will be useful,
  13641. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13642. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13643. -# GNU General Public License for more details.
  13644. +# AM_SUBST_NOTMAKE(VARIABLE)
  13645. +# ---------------------------
  13646. +# Public sister of _AM_SUBST_NOTMAKE.
  13647. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13648. -# You should have received a copy of the GNU General Public License
  13649. -# along with this program; if not, write to the Free Software
  13650. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13651. -# 02111-1307, USA.
  13652. +# Check how to create a tarball. -*- Autoconf -*-
  13653. -# serial 1
  13654. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13655. +#
  13656. +# This file is free software; the Free Software Foundation
  13657. +# gives unlimited permission to copy and/or distribute it,
  13658. +# with or without modifications, as long as this notice is preserved.
  13659. +# serial 2
  13660. # _AM_PROG_TAR(FORMAT)
  13661. # --------------------
  13662. diff -Nur audiofile-0.2.7.orig/config.guess audiofile-0.2.7/config.guess
  13663. --- audiofile-0.2.7.orig/config.guess 2010-03-22 04:48:34.000000000 +0100
  13664. +++ audiofile-0.2.7/config.guess 2011-02-24 20:00:34.234806303 +0100
  13665. @@ -1,9 +1,10 @@
  13666. #! /bin/sh
  13667. # Attempt to guess a canonical system name.
  13668. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13669. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  13670. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13671. +# Free Software Foundation, Inc.
  13672. -timestamp='2004-09-07'
  13673. +timestamp='2009-06-10'
  13674. # This file is free software; you can redistribute it and/or modify it
  13675. # under the terms of the GNU General Public License as published by
  13676. @@ -17,13 +18,15 @@
  13677. #
  13678. # You should have received a copy of the GNU General Public License
  13679. # along with this program; if not, write to the Free Software
  13680. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13681. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13682. +# 02110-1301, USA.
  13683. #
  13684. # As a special exception to the GNU General Public License, if you
  13685. # distribute this file as part of a program that contains a
  13686. # configuration script generated by Autoconf, you may include it under
  13687. # the same distribution terms that you use for the rest of that program.
  13688. +
  13689. # Originally written by Per Bothner <per@bothner.com>.
  13690. # Please send patches to <config-patches@gnu.org>. Submit a context
  13691. # diff and a properly formatted ChangeLog entry.
  13692. @@ -53,8 +56,8 @@
  13693. GNU config.guess ($timestamp)
  13694. Originally written by Per Bothner.
  13695. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  13696. -Free Software Foundation, Inc.
  13697. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13698. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13699. This is free software; see the source for copying conditions. There is NO
  13700. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13701. @@ -66,11 +69,11 @@
  13702. while test $# -gt 0 ; do
  13703. case $1 in
  13704. --time-stamp | --time* | -t )
  13705. - echo "$timestamp" ; exit 0 ;;
  13706. + echo "$timestamp" ; exit ;;
  13707. --version | -v )
  13708. - echo "$version" ; exit 0 ;;
  13709. + echo "$version" ; exit ;;
  13710. --help | --h* | -h )
  13711. - echo "$usage"; exit 0 ;;
  13712. + echo "$usage"; exit ;;
  13713. -- ) # Stop option processing
  13714. shift; break ;;
  13715. - ) # Use stdin as input.
  13716. @@ -104,7 +107,7 @@
  13717. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13718. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13719. : ${TMPDIR=/tmp} ;
  13720. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13721. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13722. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13723. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13724. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13725. @@ -123,7 +126,7 @@
  13726. ;;
  13727. ,,*) CC_FOR_BUILD=$CC ;;
  13728. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  13729. -esac ;'
  13730. +esac ; set_cc_for_build= ;'
  13731. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  13732. # (ghazi@noc.rutgers.edu 1994-08-24)
  13733. @@ -158,6 +161,7 @@
  13734. arm*) machine=arm-unknown ;;
  13735. sh3el) machine=shl-unknown ;;
  13736. sh3eb) machine=sh-unknown ;;
  13737. + sh5el) machine=sh5le-unknown ;;
  13738. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13739. esac
  13740. # The Operating System including object format, if it has switched
  13741. @@ -166,7 +170,7 @@
  13742. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13743. eval $set_cc_for_build
  13744. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13745. - | grep __ELF__ >/dev/null
  13746. + | grep -q __ELF__
  13747. then
  13748. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13749. # Return netbsd for either. FIX?
  13750. @@ -196,55 +200,23 @@
  13751. # contains redundant information, the shorter form:
  13752. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  13753. echo "${machine}-${os}${release}"
  13754. - exit 0 ;;
  13755. - amd64:OpenBSD:*:*)
  13756. - echo x86_64-unknown-openbsd${UNAME_RELEASE}
  13757. - exit 0 ;;
  13758. - amiga:OpenBSD:*:*)
  13759. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13760. - exit 0 ;;
  13761. - cats:OpenBSD:*:*)
  13762. - echo arm-unknown-openbsd${UNAME_RELEASE}
  13763. - exit 0 ;;
  13764. - hp300:OpenBSD:*:*)
  13765. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13766. - exit 0 ;;
  13767. - luna88k:OpenBSD:*:*)
  13768. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13769. - exit 0 ;;
  13770. - mac68k:OpenBSD:*:*)
  13771. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13772. - exit 0 ;;
  13773. - macppc:OpenBSD:*:*)
  13774. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13775. - exit 0 ;;
  13776. - mvme68k:OpenBSD:*:*)
  13777. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13778. - exit 0 ;;
  13779. - mvme88k:OpenBSD:*:*)
  13780. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13781. - exit 0 ;;
  13782. - mvmeppc:OpenBSD:*:*)
  13783. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13784. - exit 0 ;;
  13785. - sgi:OpenBSD:*:*)
  13786. - echo mips64-unknown-openbsd${UNAME_RELEASE}
  13787. - exit 0 ;;
  13788. - sun3:OpenBSD:*:*)
  13789. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13790. - exit 0 ;;
  13791. + exit ;;
  13792. *:OpenBSD:*:*)
  13793. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  13794. - exit 0 ;;
  13795. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  13796. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  13797. + exit ;;
  13798. *:ekkoBSD:*:*)
  13799. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13800. - exit 0 ;;
  13801. + exit ;;
  13802. + *:SolidBSD:*:*)
  13803. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13804. + exit ;;
  13805. macppc:MirBSD:*:*)
  13806. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  13807. - exit 0 ;;
  13808. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13809. + exit ;;
  13810. *:MirBSD:*:*)
  13811. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13812. - exit 0 ;;
  13813. + exit ;;
  13814. alpha:OSF1:*:*)
  13815. case $UNAME_RELEASE in
  13816. *4.0)
  13817. @@ -297,37 +269,43 @@
  13818. # A Xn.n version is an unreleased experimental baselevel.
  13819. # 1.2 uses "1.2" for uname -r.
  13820. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13821. - exit 0 ;;
  13822. + exit ;;
  13823. Alpha\ *:Windows_NT*:*)
  13824. # How do we know it's Interix rather than the generic POSIX subsystem?
  13825. # Should we change UNAME_MACHINE based on the output of uname instead
  13826. # of the specific Alpha model?
  13827. echo alpha-pc-interix
  13828. - exit 0 ;;
  13829. + exit ;;
  13830. 21064:Windows_NT:50:3)
  13831. echo alpha-dec-winnt3.5
  13832. - exit 0 ;;
  13833. + exit ;;
  13834. Amiga*:UNIX_System_V:4.0:*)
  13835. echo m68k-unknown-sysv4
  13836. - exit 0;;
  13837. + exit ;;
  13838. *:[Aa]miga[Oo][Ss]:*:*)
  13839. echo ${UNAME_MACHINE}-unknown-amigaos
  13840. - exit 0 ;;
  13841. + exit ;;
  13842. *:[Mm]orph[Oo][Ss]:*:*)
  13843. echo ${UNAME_MACHINE}-unknown-morphos
  13844. - exit 0 ;;
  13845. + exit ;;
  13846. *:OS/390:*:*)
  13847. echo i370-ibm-openedition
  13848. - exit 0 ;;
  13849. + exit ;;
  13850. + *:z/VM:*:*)
  13851. + echo s390-ibm-zvmoe
  13852. + exit ;;
  13853. *:OS400:*:*)
  13854. echo powerpc-ibm-os400
  13855. - exit 0 ;;
  13856. + exit ;;
  13857. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  13858. echo arm-acorn-riscix${UNAME_RELEASE}
  13859. - exit 0;;
  13860. + exit ;;
  13861. + arm:riscos:*:*|arm:RISCOS:*:*)
  13862. + echo arm-unknown-riscos
  13863. + exit ;;
  13864. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  13865. echo hppa1.1-hitachi-hiuxmpp
  13866. - exit 0;;
  13867. + exit ;;
  13868. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  13869. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  13870. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  13871. @@ -335,32 +313,48 @@
  13872. else
  13873. echo pyramid-pyramid-bsd
  13874. fi
  13875. - exit 0 ;;
  13876. + exit ;;
  13877. NILE*:*:*:dcosx)
  13878. echo pyramid-pyramid-svr4
  13879. - exit 0 ;;
  13880. + exit ;;
  13881. DRS?6000:unix:4.0:6*)
  13882. echo sparc-icl-nx6
  13883. - exit 0 ;;
  13884. - DRS?6000:UNIX_SV:4.2*:7*)
  13885. + exit ;;
  13886. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  13887. case `/usr/bin/uname -p` in
  13888. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  13889. + sparc) echo sparc-icl-nx7; exit ;;
  13890. esac ;;
  13891. + s390x:SunOS:*:*)
  13892. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13893. + exit ;;
  13894. sun4H:SunOS:5.*:*)
  13895. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13896. - exit 0 ;;
  13897. + exit ;;
  13898. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13899. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13900. - exit 0 ;;
  13901. - i86pc:SunOS:5.*:*)
  13902. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13903. - exit 0 ;;
  13904. + exit ;;
  13905. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13906. + eval $set_cc_for_build
  13907. + SUN_ARCH="i386"
  13908. + # If there is a compiler, see if it is configured for 64-bit objects.
  13909. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13910. + # This test works for both compilers.
  13911. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13912. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13913. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13914. + grep IS_64BIT_ARCH >/dev/null
  13915. + then
  13916. + SUN_ARCH="x86_64"
  13917. + fi
  13918. + fi
  13919. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13920. + exit ;;
  13921. sun4*:SunOS:6*:*)
  13922. # According to config.sub, this is the proper way to canonicalize
  13923. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  13924. # it's likely to be more like Solaris than SunOS4.
  13925. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13926. - exit 0 ;;
  13927. + exit ;;
  13928. sun4*:SunOS:*:*)
  13929. case "`/usr/bin/arch -k`" in
  13930. Series*|S4*)
  13931. @@ -369,10 +363,10 @@
  13932. esac
  13933. # Japanese Language versions have a version number like `4.1.3-JL'.
  13934. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  13935. - exit 0 ;;
  13936. + exit ;;
  13937. sun3*:SunOS:*:*)
  13938. echo m68k-sun-sunos${UNAME_RELEASE}
  13939. - exit 0 ;;
  13940. + exit ;;
  13941. sun*:*:4.2BSD:*)
  13942. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  13943. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  13944. @@ -384,10 +378,10 @@
  13945. echo sparc-sun-sunos${UNAME_RELEASE}
  13946. ;;
  13947. esac
  13948. - exit 0 ;;
  13949. + exit ;;
  13950. aushp:SunOS:*:*)
  13951. echo sparc-auspex-sunos${UNAME_RELEASE}
  13952. - exit 0 ;;
  13953. + exit ;;
  13954. # The situation for MiNT is a little confusing. The machine name
  13955. # can be virtually everything (everything which is not
  13956. # "atarist" or "atariste" at least should have a processor
  13957. @@ -398,40 +392,40 @@
  13958. # be no problem.
  13959. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  13960. echo m68k-atari-mint${UNAME_RELEASE}
  13961. - exit 0 ;;
  13962. + exit ;;
  13963. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  13964. echo m68k-atari-mint${UNAME_RELEASE}
  13965. - exit 0 ;;
  13966. + exit ;;
  13967. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  13968. echo m68k-atari-mint${UNAME_RELEASE}
  13969. - exit 0 ;;
  13970. + exit ;;
  13971. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  13972. echo m68k-milan-mint${UNAME_RELEASE}
  13973. - exit 0 ;;
  13974. + exit ;;
  13975. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  13976. echo m68k-hades-mint${UNAME_RELEASE}
  13977. - exit 0 ;;
  13978. + exit ;;
  13979. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  13980. echo m68k-unknown-mint${UNAME_RELEASE}
  13981. - exit 0 ;;
  13982. + exit ;;
  13983. m68k:machten:*:*)
  13984. echo m68k-apple-machten${UNAME_RELEASE}
  13985. - exit 0 ;;
  13986. + exit ;;
  13987. powerpc:machten:*:*)
  13988. echo powerpc-apple-machten${UNAME_RELEASE}
  13989. - exit 0 ;;
  13990. + exit ;;
  13991. RISC*:Mach:*:*)
  13992. echo mips-dec-mach_bsd4.3
  13993. - exit 0 ;;
  13994. + exit ;;
  13995. RISC*:ULTRIX:*:*)
  13996. echo mips-dec-ultrix${UNAME_RELEASE}
  13997. - exit 0 ;;
  13998. + exit ;;
  13999. VAX*:ULTRIX*:*:*)
  14000. echo vax-dec-ultrix${UNAME_RELEASE}
  14001. - exit 0 ;;
  14002. + exit ;;
  14003. 2020:CLIX:*:* | 2430:CLIX:*:*)
  14004. echo clipper-intergraph-clix${UNAME_RELEASE}
  14005. - exit 0 ;;
  14006. + exit ;;
  14007. mips:*:*:UMIPS | mips:*:*:RISCos)
  14008. eval $set_cc_for_build
  14009. sed 's/^ //' << EOF >$dummy.c
  14010. @@ -455,32 +449,33 @@
  14011. exit (-1);
  14012. }
  14013. EOF
  14014. - $CC_FOR_BUILD -o $dummy $dummy.c \
  14015. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  14016. - && exit 0
  14017. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  14018. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  14019. + SYSTEM_NAME=`$dummy $dummyarg` &&
  14020. + { echo "$SYSTEM_NAME"; exit; }
  14021. echo mips-mips-riscos${UNAME_RELEASE}
  14022. - exit 0 ;;
  14023. + exit ;;
  14024. Motorola:PowerMAX_OS:*:*)
  14025. echo powerpc-motorola-powermax
  14026. - exit 0 ;;
  14027. + exit ;;
  14028. Motorola:*:4.3:PL8-*)
  14029. echo powerpc-harris-powermax
  14030. - exit 0 ;;
  14031. + exit ;;
  14032. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  14033. echo powerpc-harris-powermax
  14034. - exit 0 ;;
  14035. + exit ;;
  14036. Night_Hawk:Power_UNIX:*:*)
  14037. echo powerpc-harris-powerunix
  14038. - exit 0 ;;
  14039. + exit ;;
  14040. m88k:CX/UX:7*:*)
  14041. echo m88k-harris-cxux7
  14042. - exit 0 ;;
  14043. + exit ;;
  14044. m88k:*:4*:R4*)
  14045. echo m88k-motorola-sysv4
  14046. - exit 0 ;;
  14047. + exit ;;
  14048. m88k:*:3*:R3*)
  14049. echo m88k-motorola-sysv3
  14050. - exit 0 ;;
  14051. + exit ;;
  14052. AViiON:dgux:*:*)
  14053. # DG/UX returns AViiON for all architectures
  14054. UNAME_PROCESSOR=`/usr/bin/uname -p`
  14055. @@ -496,29 +491,29 @@
  14056. else
  14057. echo i586-dg-dgux${UNAME_RELEASE}
  14058. fi
  14059. - exit 0 ;;
  14060. + exit ;;
  14061. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  14062. echo m88k-dolphin-sysv3
  14063. - exit 0 ;;
  14064. + exit ;;
  14065. M88*:*:R3*:*)
  14066. # Delta 88k system running SVR3
  14067. echo m88k-motorola-sysv3
  14068. - exit 0 ;;
  14069. + exit ;;
  14070. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  14071. echo m88k-tektronix-sysv3
  14072. - exit 0 ;;
  14073. + exit ;;
  14074. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  14075. echo m68k-tektronix-bsd
  14076. - exit 0 ;;
  14077. + exit ;;
  14078. *:IRIX*:*:*)
  14079. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  14080. - exit 0 ;;
  14081. + exit ;;
  14082. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  14083. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14084. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14085. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14086. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14087. i*86:AIX:*:*)
  14088. echo i386-ibm-aix
  14089. - exit 0 ;;
  14090. + exit ;;
  14091. ia64:AIX:*:*)
  14092. if [ -x /usr/bin/oslevel ] ; then
  14093. IBM_REV=`/usr/bin/oslevel`
  14094. @@ -526,7 +521,7 @@
  14095. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14096. fi
  14097. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  14098. - exit 0 ;;
  14099. + exit ;;
  14100. *:AIX:2:3)
  14101. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  14102. eval $set_cc_for_build
  14103. @@ -541,15 +536,19 @@
  14104. exit(0);
  14105. }
  14106. EOF
  14107. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14108. - echo rs6000-ibm-aix3.2.5
  14109. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  14110. + then
  14111. + echo "$SYSTEM_NAME"
  14112. + else
  14113. + echo rs6000-ibm-aix3.2.5
  14114. + fi
  14115. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  14116. echo rs6000-ibm-aix3.2.4
  14117. else
  14118. echo rs6000-ibm-aix3.2
  14119. fi
  14120. - exit 0 ;;
  14121. - *:AIX:*:[45])
  14122. + exit ;;
  14123. + *:AIX:*:[456])
  14124. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14125. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14126. IBM_ARCH=rs6000
  14127. @@ -562,28 +561,28 @@
  14128. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14129. fi
  14130. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  14131. - exit 0 ;;
  14132. + exit ;;
  14133. *:AIX:*:*)
  14134. echo rs6000-ibm-aix
  14135. - exit 0 ;;
  14136. + exit ;;
  14137. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  14138. echo romp-ibm-bsd4.4
  14139. - exit 0 ;;
  14140. + exit ;;
  14141. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  14142. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  14143. - exit 0 ;; # report: romp-ibm BSD 4.3
  14144. + exit ;; # report: romp-ibm BSD 4.3
  14145. *:BOSX:*:*)
  14146. echo rs6000-bull-bosx
  14147. - exit 0 ;;
  14148. + exit ;;
  14149. DPX/2?00:B.O.S.:*:*)
  14150. echo m68k-bull-sysv3
  14151. - exit 0 ;;
  14152. + exit ;;
  14153. 9000/[34]??:4.3bsd:1.*:*)
  14154. echo m68k-hp-bsd
  14155. - exit 0 ;;
  14156. + exit ;;
  14157. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  14158. echo m68k-hp-bsd4.4
  14159. - exit 0 ;;
  14160. + exit ;;
  14161. 9000/[34678]??:HP-UX:*:*)
  14162. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14163. case "${UNAME_MACHINE}" in
  14164. @@ -645,9 +644,19 @@
  14165. esac
  14166. if [ ${HP_ARCH} = "hppa2.0w" ]
  14167. then
  14168. - # avoid double evaluation of $set_cc_for_build
  14169. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  14170. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  14171. + eval $set_cc_for_build
  14172. +
  14173. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  14174. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  14175. + # generating 64-bit code. GNU and HP use different nomenclature:
  14176. + #
  14177. + # $ CC_FOR_BUILD=cc ./config.guess
  14178. + # => hppa2.0w-hp-hpux11.23
  14179. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  14180. + # => hppa64-hp-hpux11.23
  14181. +
  14182. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14183. + grep -q __LP64__
  14184. then
  14185. HP_ARCH="hppa2.0w"
  14186. else
  14187. @@ -655,11 +664,11 @@
  14188. fi
  14189. fi
  14190. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  14191. - exit 0 ;;
  14192. + exit ;;
  14193. ia64:HP-UX:*:*)
  14194. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14195. echo ia64-hp-hpux${HPUX_REV}
  14196. - exit 0 ;;
  14197. + exit ;;
  14198. 3050*:HI-UX:*:*)
  14199. eval $set_cc_for_build
  14200. sed 's/^ //' << EOF >$dummy.c
  14201. @@ -687,202 +696,227 @@
  14202. exit (0);
  14203. }
  14204. EOF
  14205. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14206. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  14207. + { echo "$SYSTEM_NAME"; exit; }
  14208. echo unknown-hitachi-hiuxwe2
  14209. - exit 0 ;;
  14210. + exit ;;
  14211. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  14212. echo hppa1.1-hp-bsd
  14213. - exit 0 ;;
  14214. + exit ;;
  14215. 9000/8??:4.3bsd:*:*)
  14216. echo hppa1.0-hp-bsd
  14217. - exit 0 ;;
  14218. + exit ;;
  14219. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  14220. echo hppa1.0-hp-mpeix
  14221. - exit 0 ;;
  14222. + exit ;;
  14223. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  14224. echo hppa1.1-hp-osf
  14225. - exit 0 ;;
  14226. + exit ;;
  14227. hp8??:OSF1:*:*)
  14228. echo hppa1.0-hp-osf
  14229. - exit 0 ;;
  14230. + exit ;;
  14231. i*86:OSF1:*:*)
  14232. if [ -x /usr/sbin/sysversion ] ; then
  14233. echo ${UNAME_MACHINE}-unknown-osf1mk
  14234. else
  14235. echo ${UNAME_MACHINE}-unknown-osf1
  14236. fi
  14237. - exit 0 ;;
  14238. + exit ;;
  14239. parisc*:Lites*:*:*)
  14240. echo hppa1.1-hp-lites
  14241. - exit 0 ;;
  14242. + exit ;;
  14243. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  14244. echo c1-convex-bsd
  14245. - exit 0 ;;
  14246. + exit ;;
  14247. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  14248. if getsysinfo -f scalar_acc
  14249. then echo c32-convex-bsd
  14250. else echo c2-convex-bsd
  14251. fi
  14252. - exit 0 ;;
  14253. + exit ;;
  14254. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  14255. echo c34-convex-bsd
  14256. - exit 0 ;;
  14257. + exit ;;
  14258. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  14259. echo c38-convex-bsd
  14260. - exit 0 ;;
  14261. + exit ;;
  14262. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  14263. echo c4-convex-bsd
  14264. - exit 0 ;;
  14265. + exit ;;
  14266. CRAY*Y-MP:*:*:*)
  14267. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14268. - exit 0 ;;
  14269. + exit ;;
  14270. CRAY*[A-Z]90:*:*:*)
  14271. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  14272. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  14273. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  14274. -e 's/\.[^.]*$/.X/'
  14275. - exit 0 ;;
  14276. + exit ;;
  14277. CRAY*TS:*:*:*)
  14278. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14279. - exit 0 ;;
  14280. + exit ;;
  14281. CRAY*T3E:*:*:*)
  14282. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14283. - exit 0 ;;
  14284. + exit ;;
  14285. CRAY*SV1:*:*:*)
  14286. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14287. - exit 0 ;;
  14288. + exit ;;
  14289. *:UNICOS/mp:*:*)
  14290. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14291. - exit 0 ;;
  14292. + exit ;;
  14293. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  14294. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  14295. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14296. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  14297. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14298. - exit 0 ;;
  14299. + exit ;;
  14300. 5000:UNIX_System_V:4.*:*)
  14301. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14302. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  14303. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14304. - exit 0 ;;
  14305. + exit ;;
  14306. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  14307. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  14308. - exit 0 ;;
  14309. + exit ;;
  14310. sparc*:BSD/OS:*:*)
  14311. echo sparc-unknown-bsdi${UNAME_RELEASE}
  14312. - exit 0 ;;
  14313. + exit ;;
  14314. *:BSD/OS:*:*)
  14315. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14316. - exit 0 ;;
  14317. + exit ;;
  14318. *:FreeBSD:*:*)
  14319. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14320. - exit 0 ;;
  14321. + case ${UNAME_MACHINE} in
  14322. + pc98)
  14323. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14324. + amd64)
  14325. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14326. + *)
  14327. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14328. + esac
  14329. + exit ;;
  14330. i*:CYGWIN*:*)
  14331. echo ${UNAME_MACHINE}-pc-cygwin
  14332. - exit 0 ;;
  14333. - i*:MINGW*:*)
  14334. + exit ;;
  14335. + *:MINGW*:*)
  14336. echo ${UNAME_MACHINE}-pc-mingw32
  14337. - exit 0 ;;
  14338. + exit ;;
  14339. + i*:windows32*:*)
  14340. + # uname -m includes "-pc" on this system.
  14341. + echo ${UNAME_MACHINE}-mingw32
  14342. + exit ;;
  14343. i*:PW*:*)
  14344. echo ${UNAME_MACHINE}-pc-pw32
  14345. - exit 0 ;;
  14346. - x86:Interix*:[34]*)
  14347. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  14348. - exit 0 ;;
  14349. + exit ;;
  14350. + *:Interix*:[3456]*)
  14351. + case ${UNAME_MACHINE} in
  14352. + x86)
  14353. + echo i586-pc-interix${UNAME_RELEASE}
  14354. + exit ;;
  14355. + EM64T | authenticamd | genuineintel)
  14356. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14357. + exit ;;
  14358. + IA64)
  14359. + echo ia64-unknown-interix${UNAME_RELEASE}
  14360. + exit ;;
  14361. + esac ;;
  14362. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14363. echo i${UNAME_MACHINE}-pc-mks
  14364. - exit 0 ;;
  14365. + exit ;;
  14366. + 8664:Windows_NT:*)
  14367. + echo x86_64-pc-mks
  14368. + exit ;;
  14369. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14370. # How do we know it's Interix rather than the generic POSIX subsystem?
  14371. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14372. # UNAME_MACHINE based on the output of uname instead of i386?
  14373. echo i586-pc-interix
  14374. - exit 0 ;;
  14375. + exit ;;
  14376. i*:UWIN*:*)
  14377. echo ${UNAME_MACHINE}-pc-uwin
  14378. - exit 0 ;;
  14379. + exit ;;
  14380. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  14381. + echo x86_64-unknown-cygwin
  14382. + exit ;;
  14383. p*:CYGWIN*:*)
  14384. echo powerpcle-unknown-cygwin
  14385. - exit 0 ;;
  14386. + exit ;;
  14387. prep*:SunOS:5.*:*)
  14388. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14389. - exit 0 ;;
  14390. + exit ;;
  14391. *:GNU:*:*)
  14392. # the GNU system
  14393. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  14394. - exit 0 ;;
  14395. + exit ;;
  14396. *:GNU/*:*:*)
  14397. # other systems with GNU libc and userland
  14398. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  14399. - exit 0 ;;
  14400. + exit ;;
  14401. i*86:Minix:*:*)
  14402. echo ${UNAME_MACHINE}-pc-minix
  14403. - exit 0 ;;
  14404. + exit ;;
  14405. arm*:Linux:*:*)
  14406. + eval $set_cc_for_build
  14407. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14408. + | grep -q __ARM_EABI__
  14409. + then
  14410. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14411. + else
  14412. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14413. + fi
  14414. + exit ;;
  14415. + avr32*:Linux:*:*)
  14416. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14417. - exit 0 ;;
  14418. + exit ;;
  14419. cris:Linux:*:*)
  14420. echo cris-axis-linux-gnu
  14421. - exit 0 ;;
  14422. + exit ;;
  14423. crisv32:Linux:*:*)
  14424. echo crisv32-axis-linux-gnu
  14425. - exit 0 ;;
  14426. + exit ;;
  14427. frv:Linux:*:*)
  14428. echo frv-unknown-linux-gnu
  14429. - exit 0 ;;
  14430. + exit ;;
  14431. ia64:Linux:*:*)
  14432. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14433. - exit 0 ;;
  14434. + exit ;;
  14435. m32r*:Linux:*:*)
  14436. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14437. - exit 0 ;;
  14438. + exit ;;
  14439. m68*:Linux:*:*)
  14440. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14441. - exit 0 ;;
  14442. - mips:Linux:*:*)
  14443. + exit ;;
  14444. + mips:Linux:*:* | mips64:Linux:*:*)
  14445. eval $set_cc_for_build
  14446. sed 's/^ //' << EOF >$dummy.c
  14447. #undef CPU
  14448. - #undef mips
  14449. - #undef mipsel
  14450. + #undef ${UNAME_MACHINE}
  14451. + #undef ${UNAME_MACHINE}el
  14452. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14453. - CPU=mipsel
  14454. + CPU=${UNAME_MACHINE}el
  14455. #else
  14456. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14457. - CPU=mips
  14458. + CPU=${UNAME_MACHINE}
  14459. #else
  14460. CPU=
  14461. #endif
  14462. #endif
  14463. EOF
  14464. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14465. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14466. - ;;
  14467. - mips64:Linux:*:*)
  14468. - eval $set_cc_for_build
  14469. - sed 's/^ //' << EOF >$dummy.c
  14470. - #undef CPU
  14471. - #undef mips64
  14472. - #undef mips64el
  14473. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14474. - CPU=mips64el
  14475. - #else
  14476. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14477. - CPU=mips64
  14478. - #else
  14479. - CPU=
  14480. - #endif
  14481. - #endif
  14482. -EOF
  14483. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14484. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14485. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14486. + /^CPU/{
  14487. + s: ::g
  14488. + p
  14489. + }'`"
  14490. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14491. ;;
  14492. + or32:Linux:*:*)
  14493. + echo or32-unknown-linux-gnu
  14494. + exit ;;
  14495. ppc:Linux:*:*)
  14496. echo powerpc-unknown-linux-gnu
  14497. - exit 0 ;;
  14498. + exit ;;
  14499. ppc64:Linux:*:*)
  14500. echo powerpc64-unknown-linux-gnu
  14501. - exit 0 ;;
  14502. + exit ;;
  14503. alpha:Linux:*:*)
  14504. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  14505. EV5) UNAME_MACHINE=alphaev5 ;;
  14506. @@ -893,10 +927,13 @@
  14507. EV67) UNAME_MACHINE=alphaev67 ;;
  14508. EV68*) UNAME_MACHINE=alphaev68 ;;
  14509. esac
  14510. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14511. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14512. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14513. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14514. - exit 0 ;;
  14515. + exit ;;
  14516. + padre:Linux:*:*)
  14517. + echo sparc-unknown-linux-gnu
  14518. + exit ;;
  14519. parisc:Linux:*:* | hppa:Linux:*:*)
  14520. # Look for CPU level
  14521. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14522. @@ -904,25 +941,31 @@
  14523. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  14524. *) echo hppa-unknown-linux-gnu ;;
  14525. esac
  14526. - exit 0 ;;
  14527. + exit ;;
  14528. parisc64:Linux:*:* | hppa64:Linux:*:*)
  14529. echo hppa64-unknown-linux-gnu
  14530. - exit 0 ;;
  14531. + exit ;;
  14532. s390:Linux:*:* | s390x:Linux:*:*)
  14533. echo ${UNAME_MACHINE}-ibm-linux
  14534. - exit 0 ;;
  14535. + exit ;;
  14536. sh64*:Linux:*:*)
  14537. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14538. - exit 0 ;;
  14539. + exit ;;
  14540. sh*:Linux:*:*)
  14541. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14542. - exit 0 ;;
  14543. + exit ;;
  14544. sparc:Linux:*:* | sparc64:Linux:*:*)
  14545. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14546. - exit 0 ;;
  14547. + exit ;;
  14548. + vax:Linux:*:*)
  14549. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14550. + exit ;;
  14551. x86_64:Linux:*:*)
  14552. echo x86_64-unknown-linux-gnu
  14553. - exit 0 ;;
  14554. + exit ;;
  14555. + xtensa*:Linux:*:*)
  14556. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14557. + exit ;;
  14558. i*86:Linux:*:*)
  14559. # The BFD linker knows what the default object file format is, so
  14560. # first see if it will tell us. cd to the root directory to prevent
  14561. @@ -938,17 +981,6 @@
  14562. elf32-i386)
  14563. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14564. ;;
  14565. - a.out-i386-linux)
  14566. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14567. - exit 0 ;;
  14568. - coff-i386)
  14569. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14570. - exit 0 ;;
  14571. - "")
  14572. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14573. - # one that does not give us useful --help.
  14574. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14575. - exit 0 ;;
  14576. esac
  14577. # Determine whether the default compiler is a.out or elf
  14578. eval $set_cc_for_build
  14579. @@ -965,7 +997,7 @@
  14580. LIBC=gnulibc1
  14581. # endif
  14582. #else
  14583. - #ifdef __INTEL_COMPILER
  14584. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14585. LIBC=gnu
  14586. #else
  14587. LIBC=gnuaout
  14588. @@ -975,16 +1007,23 @@
  14589. LIBC=dietlibc
  14590. #endif
  14591. EOF
  14592. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14593. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  14594. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  14595. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14596. + /^LIBC/{
  14597. + s: ::g
  14598. + p
  14599. + }'`"
  14600. + test x"${LIBC}" != x && {
  14601. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14602. + exit
  14603. + }
  14604. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  14605. ;;
  14606. i*86:DYNIX/ptx:4*:*)
  14607. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  14608. # earlier versions are messed up and put the nodename in both
  14609. # sysname and nodename.
  14610. echo i386-sequent-sysv4
  14611. - exit 0 ;;
  14612. + exit ;;
  14613. i*86:UNIX_SV:4.2MP:2.*)
  14614. # Unixware is an offshoot of SVR4, but it has its own version
  14615. # number series starting with 2...
  14616. @@ -992,27 +1031,27 @@
  14617. # I just have to hope. -- rms.
  14618. # Use sysv4.2uw... so that sysv4* matches it.
  14619. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  14620. - exit 0 ;;
  14621. + exit ;;
  14622. i*86:OS/2:*:*)
  14623. # If we were able to find `uname', then EMX Unix compatibility
  14624. # is probably installed.
  14625. echo ${UNAME_MACHINE}-pc-os2-emx
  14626. - exit 0 ;;
  14627. + exit ;;
  14628. i*86:XTS-300:*:STOP)
  14629. echo ${UNAME_MACHINE}-unknown-stop
  14630. - exit 0 ;;
  14631. + exit ;;
  14632. i*86:atheos:*:*)
  14633. echo ${UNAME_MACHINE}-unknown-atheos
  14634. - exit 0 ;;
  14635. - i*86:syllable:*:*)
  14636. + exit ;;
  14637. + i*86:syllable:*:*)
  14638. echo ${UNAME_MACHINE}-pc-syllable
  14639. - exit 0 ;;
  14640. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14641. + exit ;;
  14642. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14643. echo i386-unknown-lynxos${UNAME_RELEASE}
  14644. - exit 0 ;;
  14645. + exit ;;
  14646. i*86:*DOS:*:*)
  14647. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14648. - exit 0 ;;
  14649. + exit ;;
  14650. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  14651. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  14652. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  14653. @@ -1020,15 +1059,16 @@
  14654. else
  14655. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  14656. fi
  14657. - exit 0 ;;
  14658. - i*86:*:5:[78]*)
  14659. + exit ;;
  14660. + i*86:*:5:[678]*)
  14661. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  14662. case `/bin/uname -X | grep "^Machine"` in
  14663. *486*) UNAME_MACHINE=i486 ;;
  14664. *Pentium) UNAME_MACHINE=i586 ;;
  14665. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  14666. esac
  14667. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  14668. - exit 0 ;;
  14669. + exit ;;
  14670. i*86:*:3.2:*)
  14671. if test -f /usr/options/cb.name; then
  14672. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  14673. @@ -1046,73 +1086,86 @@
  14674. else
  14675. echo ${UNAME_MACHINE}-pc-sysv32
  14676. fi
  14677. - exit 0 ;;
  14678. + exit ;;
  14679. pc:*:*:*)
  14680. # Left here for compatibility:
  14681. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14682. - # the processor, so we play safe by assuming i386.
  14683. - echo i386-pc-msdosdjgpp
  14684. - exit 0 ;;
  14685. + # the processor, so we play safe by assuming i586.
  14686. + # Note: whatever this is, it MUST be the same as what config.sub
  14687. + # prints for the "djgpp" host, or else GDB configury will decide that
  14688. + # this is a cross-build.
  14689. + echo i586-pc-msdosdjgpp
  14690. + exit ;;
  14691. Intel:Mach:3*:*)
  14692. echo i386-pc-mach3
  14693. - exit 0 ;;
  14694. + exit ;;
  14695. paragon:*:*:*)
  14696. echo i860-intel-osf1
  14697. - exit 0 ;;
  14698. + exit ;;
  14699. i860:*:4.*:*) # i860-SVR4
  14700. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  14701. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  14702. else # Add other i860-SVR4 vendors below as they are discovered.
  14703. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  14704. fi
  14705. - exit 0 ;;
  14706. + exit ;;
  14707. mini*:CTIX:SYS*5:*)
  14708. # "miniframe"
  14709. echo m68010-convergent-sysv
  14710. - exit 0 ;;
  14711. + exit ;;
  14712. mc68k:UNIX:SYSTEM5:3.51m)
  14713. echo m68k-convergent-sysv
  14714. - exit 0 ;;
  14715. + exit ;;
  14716. M680?0:D-NIX:5.3:*)
  14717. echo m68k-diab-dnix
  14718. - exit 0 ;;
  14719. + exit ;;
  14720. M68*:*:R3V[5678]*:*)
  14721. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  14722. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  14723. 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)
  14724. OS_REL=''
  14725. test -r /etc/.relid \
  14726. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14727. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14728. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  14729. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14730. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14731. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  14732. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14733. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14734. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14735. - && echo i486-ncr-sysv4 && exit 0 ;;
  14736. + && { echo i486-ncr-sysv4; exit; } ;;
  14737. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14738. + OS_REL='.3'
  14739. + test -r /etc/.relid \
  14740. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14741. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14742. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14743. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14744. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14745. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14746. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14747. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14748. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14749. - exit 0 ;;
  14750. + exit ;;
  14751. mc68030:UNIX_System_V:4.*:*)
  14752. echo m68k-atari-sysv4
  14753. - exit 0 ;;
  14754. + exit ;;
  14755. TSUNAMI:LynxOS:2.*:*)
  14756. echo sparc-unknown-lynxos${UNAME_RELEASE}
  14757. - exit 0 ;;
  14758. + exit ;;
  14759. rs6000:LynxOS:2.*:*)
  14760. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14761. - exit 0 ;;
  14762. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14763. + exit ;;
  14764. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14765. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14766. - exit 0 ;;
  14767. + exit ;;
  14768. SM[BE]S:UNIX_SV:*:*)
  14769. echo mips-dde-sysv${UNAME_RELEASE}
  14770. - exit 0 ;;
  14771. + exit ;;
  14772. RM*:ReliantUNIX-*:*:*)
  14773. echo mips-sni-sysv4
  14774. - exit 0 ;;
  14775. + exit ;;
  14776. RM*:SINIX-*:*:*)
  14777. echo mips-sni-sysv4
  14778. - exit 0 ;;
  14779. + exit ;;
  14780. *:SINIX-*:*:*)
  14781. if uname -p 2>/dev/null >/dev/null ; then
  14782. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14783. @@ -1120,69 +1173,84 @@
  14784. else
  14785. echo ns32k-sni-sysv
  14786. fi
  14787. - exit 0 ;;
  14788. + exit ;;
  14789. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  14790. # says <Richard.M.Bartel@ccMail.Census.GOV>
  14791. echo i586-unisys-sysv4
  14792. - exit 0 ;;
  14793. + exit ;;
  14794. *:UNIX_System_V:4*:FTX*)
  14795. # From Gerald Hewes <hewes@openmarket.com>.
  14796. # How about differentiating between stratus architectures? -djm
  14797. echo hppa1.1-stratus-sysv4
  14798. - exit 0 ;;
  14799. + exit ;;
  14800. *:*:*:FTX*)
  14801. # From seanf@swdc.stratus.com.
  14802. echo i860-stratus-sysv4
  14803. - exit 0 ;;
  14804. + exit ;;
  14805. + i*86:VOS:*:*)
  14806. + # From Paul.Green@stratus.com.
  14807. + echo ${UNAME_MACHINE}-stratus-vos
  14808. + exit ;;
  14809. *:VOS:*:*)
  14810. # From Paul.Green@stratus.com.
  14811. echo hppa1.1-stratus-vos
  14812. - exit 0 ;;
  14813. + exit ;;
  14814. mc68*:A/UX:*:*)
  14815. echo m68k-apple-aux${UNAME_RELEASE}
  14816. - exit 0 ;;
  14817. + exit ;;
  14818. news*:NEWS-OS:6*:*)
  14819. echo mips-sony-newsos6
  14820. - exit 0 ;;
  14821. + exit ;;
  14822. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  14823. if [ -d /usr/nec ]; then
  14824. echo mips-nec-sysv${UNAME_RELEASE}
  14825. else
  14826. echo mips-unknown-sysv${UNAME_RELEASE}
  14827. fi
  14828. - exit 0 ;;
  14829. + exit ;;
  14830. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  14831. echo powerpc-be-beos
  14832. - exit 0 ;;
  14833. + exit ;;
  14834. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  14835. echo powerpc-apple-beos
  14836. - exit 0 ;;
  14837. + exit ;;
  14838. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14839. echo i586-pc-beos
  14840. - exit 0 ;;
  14841. + exit ;;
  14842. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14843. + echo i586-pc-haiku
  14844. + exit ;;
  14845. SX-4:SUPER-UX:*:*)
  14846. echo sx4-nec-superux${UNAME_RELEASE}
  14847. - exit 0 ;;
  14848. + exit ;;
  14849. SX-5:SUPER-UX:*:*)
  14850. echo sx5-nec-superux${UNAME_RELEASE}
  14851. - exit 0 ;;
  14852. + exit ;;
  14853. SX-6:SUPER-UX:*:*)
  14854. echo sx6-nec-superux${UNAME_RELEASE}
  14855. - exit 0 ;;
  14856. + exit ;;
  14857. + SX-7:SUPER-UX:*:*)
  14858. + echo sx7-nec-superux${UNAME_RELEASE}
  14859. + exit ;;
  14860. + SX-8:SUPER-UX:*:*)
  14861. + echo sx8-nec-superux${UNAME_RELEASE}
  14862. + exit ;;
  14863. + SX-8R:SUPER-UX:*:*)
  14864. + echo sx8r-nec-superux${UNAME_RELEASE}
  14865. + exit ;;
  14866. Power*:Rhapsody:*:*)
  14867. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14868. - exit 0 ;;
  14869. + exit ;;
  14870. *:Rhapsody:*:*)
  14871. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  14872. - exit 0 ;;
  14873. + exit ;;
  14874. *:Darwin:*:*)
  14875. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  14876. case $UNAME_PROCESSOR in
  14877. - *86) UNAME_PROCESSOR=i686 ;;
  14878. unknown) UNAME_PROCESSOR=powerpc ;;
  14879. esac
  14880. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  14881. - exit 0 ;;
  14882. + exit ;;
  14883. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  14884. UNAME_PROCESSOR=`uname -p`
  14885. if test "$UNAME_PROCESSOR" = "x86"; then
  14886. @@ -1190,22 +1258,25 @@
  14887. UNAME_MACHINE=pc
  14888. fi
  14889. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  14890. - exit 0 ;;
  14891. + exit ;;
  14892. *:QNX:*:4*)
  14893. echo i386-pc-qnx
  14894. - exit 0 ;;
  14895. + exit ;;
  14896. + NSE-?:NONSTOP_KERNEL:*:*)
  14897. + echo nse-tandem-nsk${UNAME_RELEASE}
  14898. + exit ;;
  14899. NSR-?:NONSTOP_KERNEL:*:*)
  14900. echo nsr-tandem-nsk${UNAME_RELEASE}
  14901. - exit 0 ;;
  14902. + exit ;;
  14903. *:NonStop-UX:*:*)
  14904. echo mips-compaq-nonstopux
  14905. - exit 0 ;;
  14906. + exit ;;
  14907. BS2000:POSIX*:*:*)
  14908. echo bs2000-siemens-sysv
  14909. - exit 0 ;;
  14910. + exit ;;
  14911. DS/*:UNIX_System_V:*:*)
  14912. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  14913. - exit 0 ;;
  14914. + exit ;;
  14915. *:Plan9:*:*)
  14916. # "uname -m" is not consistent, so use $cputype instead. 386
  14917. # is converted to i386 for consistency with other x86
  14918. @@ -1216,38 +1287,50 @@
  14919. UNAME_MACHINE="$cputype"
  14920. fi
  14921. echo ${UNAME_MACHINE}-unknown-plan9
  14922. - exit 0 ;;
  14923. + exit ;;
  14924. *:TOPS-10:*:*)
  14925. echo pdp10-unknown-tops10
  14926. - exit 0 ;;
  14927. + exit ;;
  14928. *:TENEX:*:*)
  14929. echo pdp10-unknown-tenex
  14930. - exit 0 ;;
  14931. + exit ;;
  14932. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  14933. echo pdp10-dec-tops20
  14934. - exit 0 ;;
  14935. + exit ;;
  14936. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  14937. echo pdp10-xkl-tops20
  14938. - exit 0 ;;
  14939. + exit ;;
  14940. *:TOPS-20:*:*)
  14941. echo pdp10-unknown-tops20
  14942. - exit 0 ;;
  14943. + exit ;;
  14944. *:ITS:*:*)
  14945. echo pdp10-unknown-its
  14946. - exit 0 ;;
  14947. + exit ;;
  14948. SEI:*:*:SEIUX)
  14949. echo mips-sei-seiux${UNAME_RELEASE}
  14950. - exit 0 ;;
  14951. + exit ;;
  14952. *:DragonFly:*:*)
  14953. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14954. - exit 0 ;;
  14955. + exit ;;
  14956. *:*VMS:*:*)
  14957. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14958. case "${UNAME_MACHINE}" in
  14959. - A*) echo alpha-dec-vms && exit 0 ;;
  14960. - I*) echo ia64-dec-vms && exit 0 ;;
  14961. - V*) echo vax-dec-vms && exit 0 ;;
  14962. - esac
  14963. + A*) echo alpha-dec-vms ; exit ;;
  14964. + I*) echo ia64-dec-vms ; exit ;;
  14965. + V*) echo vax-dec-vms ; exit ;;
  14966. + esac ;;
  14967. + *:XENIX:*:SysV)
  14968. + echo i386-pc-xenix
  14969. + exit ;;
  14970. + i*86:skyos:*:*)
  14971. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  14972. + exit ;;
  14973. + i*86:rdos:*:*)
  14974. + echo ${UNAME_MACHINE}-pc-rdos
  14975. + exit ;;
  14976. + i*86:AROS:*:*)
  14977. + echo ${UNAME_MACHINE}-pc-aros
  14978. + exit ;;
  14979. esac
  14980. #echo '(No uname command or uname output not recognized.)' 1>&2
  14981. @@ -1279,7 +1362,7 @@
  14982. #endif
  14983. #if defined (__arm) && defined (__acorn) && defined (__unix)
  14984. - printf ("arm-acorn-riscix"); exit (0);
  14985. + printf ("arm-acorn-riscix\n"); exit (0);
  14986. #endif
  14987. #if defined (hp300) && !defined (hpux)
  14988. @@ -1368,11 +1451,12 @@
  14989. }
  14990. EOF
  14991. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  14992. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  14993. + { echo "$SYSTEM_NAME"; exit; }
  14994. # Apollos put the system type in the environment.
  14995. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  14996. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  14997. # Convex versions that predate uname can use getsysinfo(1)
  14998. @@ -1381,22 +1465,22 @@
  14999. case `getsysinfo -f cpu_type` in
  15000. c1*)
  15001. echo c1-convex-bsd
  15002. - exit 0 ;;
  15003. + exit ;;
  15004. c2*)
  15005. if getsysinfo -f scalar_acc
  15006. then echo c32-convex-bsd
  15007. else echo c2-convex-bsd
  15008. fi
  15009. - exit 0 ;;
  15010. + exit ;;
  15011. c34*)
  15012. echo c34-convex-bsd
  15013. - exit 0 ;;
  15014. + exit ;;
  15015. c38*)
  15016. echo c38-convex-bsd
  15017. - exit 0 ;;
  15018. + exit ;;
  15019. c4*)
  15020. echo c4-convex-bsd
  15021. - exit 0 ;;
  15022. + exit ;;
  15023. esac
  15024. fi
  15025. @@ -1407,7 +1491,9 @@
  15026. the operating system you are using. It is advised that you
  15027. download the most up to date version of the config scripts from
  15028. - ftp://ftp.gnu.org/pub/gnu/config/
  15029. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  15030. +and
  15031. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  15032. If the version you run ($0) is already up to date, please
  15033. send the following data and any information you think might be
  15034. diff -Nur audiofile-0.2.7.orig/config.h.in audiofile-0.2.7/config.h.in
  15035. --- audiofile-0.2.7.orig/config.h.in 2010-03-22 06:46:33.000000000 +0100
  15036. +++ audiofile-0.2.7/config.h.in 2011-02-24 20:00:33.764803639 +0100
  15037. @@ -1,5 +1,8 @@
  15038. /* config.h.in. Generated from configure.ac by autoheader. */
  15039. +/* Define if building universal (internal helper macro) */
  15040. +#undef AC_APPLE_UNIVERSAL_BUILD
  15041. +
  15042. /* Define to 1 if you have the <dlfcn.h> header file. */
  15043. #undef HAVE_DLFCN_H
  15044. @@ -39,6 +42,10 @@
  15045. /* Define to 1 if you have the <unistd.h> header file. */
  15046. #undef HAVE_UNISTD_H
  15047. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  15048. + */
  15049. +#undef LT_OBJDIR
  15050. +
  15051. /* Name of package */
  15052. #undef PACKAGE
  15053. @@ -54,6 +61,9 @@
  15054. /* Define to the one symbol short name of this package. */
  15055. #undef PACKAGE_TARNAME
  15056. +/* Define to the home page for this package. */
  15057. +#undef PACKAGE_URL
  15058. +
  15059. /* Define to the version of this package. */
  15060. #undef PACKAGE_VERSION
  15061. @@ -72,9 +82,17 @@
  15062. /* Version number of package */
  15063. #undef VERSION
  15064. -/* Define to 1 if your processor stores words with the most significant byte
  15065. - first (like Motorola and SPARC, unlike Intel and VAX). */
  15066. -#undef WORDS_BIGENDIAN
  15067. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  15068. + significant byte first (like Motorola and SPARC, unlike Intel). */
  15069. +#if defined AC_APPLE_UNIVERSAL_BUILD
  15070. +# if defined __BIG_ENDIAN__
  15071. +# define WORDS_BIGENDIAN 1
  15072. +# endif
  15073. +#else
  15074. +# ifndef WORDS_BIGENDIAN
  15075. +# undef WORDS_BIGENDIAN
  15076. +# endif
  15077. +#endif
  15078. /* Number of bits in a file offset, on hosts where this is settable. */
  15079. #undef _FILE_OFFSET_BITS
  15080. diff -Nur audiofile-0.2.7.orig/config.h.in~ audiofile-0.2.7/config.h.in~
  15081. --- audiofile-0.2.7.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  15082. +++ audiofile-0.2.7/config.h.in~ 2010-03-22 06:46:33.000000000 +0100
  15083. @@ -0,0 +1,110 @@
  15084. +/* config.h.in. Generated from configure.ac by autoheader. */
  15085. +
  15086. +/* Define to 1 if you have the <dlfcn.h> header file. */
  15087. +#undef HAVE_DLFCN_H
  15088. +
  15089. +/* Define to 1 if you have the <fcntl.h> header file. */
  15090. +#undef HAVE_FCNTL_H
  15091. +
  15092. +/* Define to 1 if you have the <inttypes.h> header file. */
  15093. +#undef HAVE_INTTYPES_H
  15094. +
  15095. +/* Define to 1 if you have the `m' library (-lm). */
  15096. +#undef HAVE_LIBM
  15097. +
  15098. +/* Define to 1 if you have the <memory.h> header file. */
  15099. +#undef HAVE_MEMORY_H
  15100. +
  15101. +/* Define to 1 if you have the <stdint.h> header file. */
  15102. +#undef HAVE_STDINT_H
  15103. +
  15104. +/* Define to 1 if you have the <stdlib.h> header file. */
  15105. +#undef HAVE_STDLIB_H
  15106. +
  15107. +/* Define to 1 if you have the `strdup' function. */
  15108. +#undef HAVE_STRDUP
  15109. +
  15110. +/* Define to 1 if you have the <strings.h> header file. */
  15111. +#undef HAVE_STRINGS_H
  15112. +
  15113. +/* Define to 1 if you have the <string.h> header file. */
  15114. +#undef HAVE_STRING_H
  15115. +
  15116. +/* Define to 1 if you have the <sys/stat.h> header file. */
  15117. +#undef HAVE_SYS_STAT_H
  15118. +
  15119. +/* Define to 1 if you have the <sys/types.h> header file. */
  15120. +#undef HAVE_SYS_TYPES_H
  15121. +
  15122. +/* Define to 1 if you have the <unistd.h> header file. */
  15123. +#undef HAVE_UNISTD_H
  15124. +
  15125. +/* Name of package */
  15126. +#undef PACKAGE
  15127. +
  15128. +/* Define to the address where bug reports for this package should be sent. */
  15129. +#undef PACKAGE_BUGREPORT
  15130. +
  15131. +/* Define to the full name of this package. */
  15132. +#undef PACKAGE_NAME
  15133. +
  15134. +/* Define to the full name and version of this package. */
  15135. +#undef PACKAGE_STRING
  15136. +
  15137. +/* Define to the one symbol short name of this package. */
  15138. +#undef PACKAGE_TARNAME
  15139. +
  15140. +/* Define to the version of this package. */
  15141. +#undef PACKAGE_VERSION
  15142. +
  15143. +/* The size of `long', as computed by sizeof. */
  15144. +#undef SIZEOF_LONG
  15145. +
  15146. +/* The size of `off_t', as computed by sizeof. */
  15147. +#undef SIZEOF_OFF_T
  15148. +
  15149. +/* The size of `size_t', as computed by sizeof. */
  15150. +#undef SIZEOF_SIZE_T
  15151. +
  15152. +/* Define to 1 if you have the ANSI C header files. */
  15153. +#undef STDC_HEADERS
  15154. +
  15155. +/* Version number of package */
  15156. +#undef VERSION
  15157. +
  15158. +/* Define to 1 if your processor stores words with the most significant byte
  15159. + first (like Motorola and SPARC, unlike Intel and VAX). */
  15160. +#undef WORDS_BIGENDIAN
  15161. +
  15162. +/* Number of bits in a file offset, on hosts where this is settable. */
  15163. +#undef _FILE_OFFSET_BITS
  15164. +
  15165. +/* Define for large files, on AIX-style hosts. */
  15166. +#undef _LARGE_FILES
  15167. +
  15168. +/* Define to empty if `const' does not conform to ANSI C. */
  15169. +#undef const
  15170. +
  15171. +/* Define to `short' if <sys/types.h> does not define. */
  15172. +#undef int16_t
  15173. +
  15174. +/* Define to `int' if <sys/types.h> does not define. */
  15175. +#undef int32_t
  15176. +
  15177. +/* Define to `signed char' if <sys/types.h> does not define. */
  15178. +#undef int8_t
  15179. +
  15180. +/* Define to `long int' if <sys/types.h> does not define. */
  15181. +#undef off_t
  15182. +
  15183. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  15184. +#undef size_t
  15185. +
  15186. +/* Define to `unsigned short' if <sys/types.h> does not define. */
  15187. +#undef uint16_t
  15188. +
  15189. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  15190. +#undef uint32_t
  15191. +
  15192. +/* Define to `unsigned char' if <sys/types.h> does not define. */
  15193. +#undef uint8_t
  15194. diff -Nur audiofile-0.2.7.orig/config.sub audiofile-0.2.7/config.sub
  15195. --- audiofile-0.2.7.orig/config.sub 2010-03-22 04:48:34.000000000 +0100
  15196. +++ audiofile-0.2.7/config.sub 2011-02-24 20:00:34.234806303 +0100
  15197. @@ -1,9 +1,10 @@
  15198. #! /bin/sh
  15199. # Configuration validation subroutine script.
  15200. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  15201. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  15202. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  15203. +# Free Software Foundation, Inc.
  15204. -timestamp='2004-08-29'
  15205. +timestamp='2009-06-11'
  15206. # This file is (in principle) common to ALL GNU software.
  15207. # The presence of a machine in this file suggests that SOME GNU software
  15208. @@ -21,14 +22,15 @@
  15209. #
  15210. # You should have received a copy of the GNU General Public License
  15211. # along with this program; if not, write to the Free Software
  15212. -# Foundation, Inc., 59 Temple Place - Suite 330,
  15213. -# Boston, MA 02111-1307, USA.
  15214. -
  15215. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  15216. +# 02110-1301, USA.
  15217. +#
  15218. # As a special exception to the GNU General Public License, if you
  15219. # distribute this file as part of a program that contains a
  15220. # configuration script generated by Autoconf, you may include it under
  15221. # the same distribution terms that you use for the rest of that program.
  15222. +
  15223. # Please send patches to <config-patches@gnu.org>. Submit a context
  15224. # diff and a properly formatted ChangeLog entry.
  15225. #
  15226. @@ -70,8 +72,8 @@
  15227. version="\
  15228. GNU config.sub ($timestamp)
  15229. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  15230. -Free Software Foundation, Inc.
  15231. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15232. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15233. This is free software; see the source for copying conditions. There is NO
  15234. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15235. @@ -83,11 +85,11 @@
  15236. while test $# -gt 0 ; do
  15237. case $1 in
  15238. --time-stamp | --time* | -t )
  15239. - echo "$timestamp" ; exit 0 ;;
  15240. + echo "$timestamp" ; exit ;;
  15241. --version | -v )
  15242. - echo "$version" ; exit 0 ;;
  15243. + echo "$version" ; exit ;;
  15244. --help | --h* | -h )
  15245. - echo "$usage"; exit 0 ;;
  15246. + echo "$usage"; exit ;;
  15247. -- ) # Stop option processing
  15248. shift; break ;;
  15249. - ) # Use stdin as input.
  15250. @@ -99,7 +101,7 @@
  15251. *local*)
  15252. # First pass through any local machine types.
  15253. echo $1
  15254. - exit 0;;
  15255. + exit ;;
  15256. * )
  15257. break ;;
  15258. @@ -118,8 +120,10 @@
  15259. # Here we must recognize all the valid KERNEL-OS combinations.
  15260. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  15261. case $maybe_os in
  15262. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  15263. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  15264. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15265. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15266. + kopensolaris*-gnu* | \
  15267. + storm-chaos* | os2-emx* | rtmk-nova*)
  15268. os=-$maybe_os
  15269. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15270. ;;
  15271. @@ -149,6 +153,9 @@
  15272. os=
  15273. basic_machine=$1
  15274. ;;
  15275. + -bluegene*)
  15276. + os=-cnk
  15277. + ;;
  15278. -sim | -cisco | -oki | -wec | -winbond)
  15279. os=
  15280. basic_machine=$1
  15281. @@ -170,6 +177,10 @@
  15282. -hiux*)
  15283. os=-hiuxwe2
  15284. ;;
  15285. + -sco6)
  15286. + os=-sco5v6
  15287. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15288. + ;;
  15289. -sco5)
  15290. os=-sco3.2v5
  15291. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15292. @@ -186,6 +197,10 @@
  15293. # Don't forget version if it is 3.2v4 or newer.
  15294. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15295. ;;
  15296. + -sco5v6*)
  15297. + # Don't forget version if it is 3.2v4 or newer.
  15298. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15299. + ;;
  15300. -sco*)
  15301. os=-sco3.2v2
  15302. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15303. @@ -230,22 +245,28 @@
  15304. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  15305. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  15306. | am33_2.0 \
  15307. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  15308. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  15309. + | bfin \
  15310. | c4x | clipper \
  15311. | d10v | d30v | dlx | dsp16xx \
  15312. - | fr30 | frv \
  15313. + | fido | fr30 | frv \
  15314. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15315. | i370 | i860 | i960 | ia64 \
  15316. | ip2k | iq2000 \
  15317. - | m32r | m32rle | m68000 | m68k | m88k | mcore \
  15318. + | lm32 \
  15319. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15320. + | maxq | mb | microblaze | mcore | mep | metag \
  15321. | mips | mipsbe | mipseb | mipsel | mipsle \
  15322. | mips16 \
  15323. | mips64 | mips64el \
  15324. - | mips64vr | mips64vrel \
  15325. + | mips64octeon | mips64octeonel \
  15326. | mips64orion | mips64orionel \
  15327. + | mips64r5900 | mips64r5900el \
  15328. + | mips64vr | mips64vrel \
  15329. | mips64vr4100 | mips64vr4100el \
  15330. | mips64vr4300 | mips64vr4300el \
  15331. | mips64vr5000 | mips64vr5000el \
  15332. + | mips64vr5900 | mips64vr5900el \
  15333. | mipsisa32 | mipsisa32el \
  15334. | mipsisa32r2 | mipsisa32r2el \
  15335. | mipsisa64 | mipsisa64el \
  15336. @@ -254,21 +275,26 @@
  15337. | mipsisa64sr71k | mipsisa64sr71kel \
  15338. | mipstx39 | mipstx39el \
  15339. | mn10200 | mn10300 \
  15340. + | moxie \
  15341. + | mt \
  15342. | msp430 \
  15343. + | nios | nios2 \
  15344. | ns16k | ns32k \
  15345. - | openrisc | or32 \
  15346. + | or32 \
  15347. | pdp10 | pdp11 | pj | pjl \
  15348. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15349. | pyramid \
  15350. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  15351. + | score \
  15352. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15353. | sh64 | sh64le \
  15354. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  15355. - | strongarm \
  15356. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15357. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15358. + | spu | strongarm \
  15359. | tahoe | thumb | tic4x | tic80 | tron \
  15360. | v850 | v850e \
  15361. | we32k \
  15362. - | x86 | xscale | xstormy16 | xtensa \
  15363. - | z8k)
  15364. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15365. + | z8k | z80)
  15366. basic_machine=$basic_machine-unknown
  15367. ;;
  15368. m6811 | m68hc11 | m6812 | m68hc12)
  15369. @@ -278,6 +304,9 @@
  15370. ;;
  15371. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  15372. ;;
  15373. + ms1)
  15374. + basic_machine=mt-unknown
  15375. + ;;
  15376. # We use `pc' rather than `unknown'
  15377. # because (1) that's what they normally are, and
  15378. @@ -297,28 +326,32 @@
  15379. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  15380. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  15381. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  15382. - | avr-* \
  15383. - | bs2000-* \
  15384. + | avr-* | avr32-* \
  15385. + | bfin-* | bs2000-* \
  15386. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15387. | clipper-* | craynv-* | cydra-* \
  15388. | d10v-* | d30v-* | dlx-* \
  15389. | elxsi-* \
  15390. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15391. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15392. | h8300-* | h8500-* \
  15393. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15394. | i*86-* | i860-* | i960-* | ia64-* \
  15395. | ip2k-* | iq2000-* \
  15396. - | m32r-* | m32rle-* \
  15397. + | lm32-* \
  15398. + | m32c-* | m32r-* | m32rle-* \
  15399. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15400. - | m88110-* | m88k-* | mcore-* \
  15401. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15402. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15403. | mips16-* \
  15404. | mips64-* | mips64el-* \
  15405. - | mips64vr-* | mips64vrel-* \
  15406. + | mips64octeon-* | mips64octeonel-* \
  15407. | mips64orion-* | mips64orionel-* \
  15408. + | mips64r5900-* | mips64r5900el-* \
  15409. + | mips64vr-* | mips64vrel-* \
  15410. | mips64vr4100-* | mips64vr4100el-* \
  15411. | mips64vr4300-* | mips64vr4300el-* \
  15412. | mips64vr5000-* | mips64vr5000el-* \
  15413. + | mips64vr5900-* | mips64vr5900el-* \
  15414. | mipsisa32-* | mipsisa32el-* \
  15415. | mipsisa32r2-* | mipsisa32r2el-* \
  15416. | mipsisa64-* | mipsisa64el-* \
  15417. @@ -327,26 +360,33 @@
  15418. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15419. | mipstx39-* | mipstx39el-* \
  15420. | mmix-* \
  15421. + | mt-* \
  15422. | msp430-* \
  15423. + | nios-* | nios2-* \
  15424. | none-* | np1-* | ns16k-* | ns32k-* \
  15425. | orion-* \
  15426. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15427. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15428. | pyramid-* \
  15429. | romp-* | rs6000-* \
  15430. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  15431. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15432. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15433. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  15434. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  15435. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15436. + | sparclite-* \
  15437. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15438. | tahoe-* | thumb-* \
  15439. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  15440. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15441. | tron-* \
  15442. | v850-* | v850e-* | vax-* \
  15443. | we32k-* \
  15444. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  15445. - | xtensa-* \
  15446. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15447. + | xstormy16-* | xtensa*-* \
  15448. | ymp-* \
  15449. - | z8k-*)
  15450. + | z8k-* | z80-*)
  15451. + ;;
  15452. + # Recognize the basic CPU types without company name, with glob match.
  15453. + xtensa*)
  15454. + basic_machine=$basic_machine-unknown
  15455. ;;
  15456. # Recognize the various machine names and aliases which stand
  15457. # for a CPU type and a company and sometimes even an OS.
  15458. @@ -410,6 +450,10 @@
  15459. basic_machine=m68k-apollo
  15460. os=-bsd
  15461. ;;
  15462. + aros)
  15463. + basic_machine=i386-pc
  15464. + os=-aros
  15465. + ;;
  15466. aux)
  15467. basic_machine=m68k-apple
  15468. os=-aux
  15469. @@ -418,10 +462,26 @@
  15470. basic_machine=ns32k-sequent
  15471. os=-dynix
  15472. ;;
  15473. + blackfin)
  15474. + basic_machine=bfin-unknown
  15475. + os=-linux
  15476. + ;;
  15477. + blackfin-*)
  15478. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15479. + os=-linux
  15480. + ;;
  15481. + bluegene*)
  15482. + basic_machine=powerpc-ibm
  15483. + os=-cnk
  15484. + ;;
  15485. c90)
  15486. basic_machine=c90-cray
  15487. os=-unicos
  15488. ;;
  15489. + cegcc)
  15490. + basic_machine=arm-unknown
  15491. + os=-cegcc
  15492. + ;;
  15493. convex-c1)
  15494. basic_machine=c1-convex
  15495. os=-bsd
  15496. @@ -450,8 +510,8 @@
  15497. basic_machine=craynv-cray
  15498. os=-unicosmp
  15499. ;;
  15500. - cr16c)
  15501. - basic_machine=cr16c-unknown
  15502. + cr16)
  15503. + basic_machine=cr16-unknown
  15504. os=-elf
  15505. ;;
  15506. crds | unos)
  15507. @@ -489,6 +549,14 @@
  15508. basic_machine=m88k-motorola
  15509. os=-sysv3
  15510. ;;
  15511. + dicos)
  15512. + basic_machine=i686-pc
  15513. + os=-dicos
  15514. + ;;
  15515. + djgpp)
  15516. + basic_machine=i586-pc
  15517. + os=-msdosdjgpp
  15518. + ;;
  15519. dpx20 | dpx20-*)
  15520. basic_machine=rs6000-bull
  15521. os=-bosx
  15522. @@ -639,6 +707,14 @@
  15523. basic_machine=m68k-isi
  15524. os=-sysv
  15525. ;;
  15526. + m68knommu)
  15527. + basic_machine=m68k-unknown
  15528. + os=-linux
  15529. + ;;
  15530. + m68knommu-*)
  15531. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15532. + os=-linux
  15533. + ;;
  15534. m88k-omron*)
  15535. basic_machine=m88k-omron
  15536. ;;
  15537. @@ -654,6 +730,10 @@
  15538. basic_machine=i386-pc
  15539. os=-mingw32
  15540. ;;
  15541. + mingw32ce)
  15542. + basic_machine=arm-unknown
  15543. + os=-mingw32ce
  15544. + ;;
  15545. miniframe)
  15546. basic_machine=m68000-convergent
  15547. ;;
  15548. @@ -679,6 +759,9 @@
  15549. basic_machine=i386-pc
  15550. os=-msdos
  15551. ;;
  15552. + ms1-*)
  15553. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15554. + ;;
  15555. mvs)
  15556. basic_machine=i370-ibm
  15557. os=-mvs
  15558. @@ -754,9 +837,8 @@
  15559. basic_machine=hppa1.1-oki
  15560. os=-proelf
  15561. ;;
  15562. - or32 | or32-*)
  15563. + openrisc | openrisc-*)
  15564. basic_machine=or32-unknown
  15565. - os=-coff
  15566. ;;
  15567. os400)
  15568. basic_machine=powerpc-ibm
  15569. @@ -778,6 +860,14 @@
  15570. basic_machine=i860-intel
  15571. os=-osf
  15572. ;;
  15573. + parisc)
  15574. + basic_machine=hppa-unknown
  15575. + os=-linux
  15576. + ;;
  15577. + parisc-*)
  15578. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15579. + os=-linux
  15580. + ;;
  15581. pbd)
  15582. basic_machine=sparc-tti
  15583. ;;
  15584. @@ -787,6 +877,12 @@
  15585. pc532 | pc532-*)
  15586. basic_machine=ns32k-pc532
  15587. ;;
  15588. + pc98)
  15589. + basic_machine=i386-pc
  15590. + ;;
  15591. + pc98-*)
  15592. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15593. + ;;
  15594. pentium | p5 | k5 | k6 | nexgen | viac3)
  15595. basic_machine=i586-pc
  15596. ;;
  15597. @@ -843,6 +939,10 @@
  15598. basic_machine=i586-unknown
  15599. os=-pw32
  15600. ;;
  15601. + rdos)
  15602. + basic_machine=i386-pc
  15603. + os=-rdos
  15604. + ;;
  15605. rom68k)
  15606. basic_machine=m68k-rom68k
  15607. os=-coff
  15608. @@ -869,6 +969,10 @@
  15609. sb1el)
  15610. basic_machine=mipsisa64sb1el-unknown
  15611. ;;
  15612. + sde)
  15613. + basic_machine=mipsisa32-sde
  15614. + os=-elf
  15615. + ;;
  15616. sei)
  15617. basic_machine=mips-sei
  15618. os=-seiux
  15619. @@ -880,6 +984,9 @@
  15620. basic_machine=sh-hitachi
  15621. os=-hms
  15622. ;;
  15623. + sh5el)
  15624. + basic_machine=sh5le-unknown
  15625. + ;;
  15626. sh64)
  15627. basic_machine=sh64-unknown
  15628. ;;
  15629. @@ -969,6 +1076,10 @@
  15630. basic_machine=tic6x-unknown
  15631. os=-coff
  15632. ;;
  15633. + tile*)
  15634. + basic_machine=tile-unknown
  15635. + os=-linux-gnu
  15636. + ;;
  15637. tx39)
  15638. basic_machine=mipstx39-unknown
  15639. ;;
  15640. @@ -1029,6 +1140,10 @@
  15641. basic_machine=hppa1.1-winbond
  15642. os=-proelf
  15643. ;;
  15644. + xbox)
  15645. + basic_machine=i686-pc
  15646. + os=-mingw32
  15647. + ;;
  15648. xps | xps100)
  15649. basic_machine=xps100-honeywell
  15650. ;;
  15651. @@ -1040,6 +1155,10 @@
  15652. basic_machine=z8k-unknown
  15653. os=-sim
  15654. ;;
  15655. + z80-*-coff)
  15656. + basic_machine=z80-unknown
  15657. + os=-sim
  15658. + ;;
  15659. none)
  15660. basic_machine=none-none
  15661. os=-none
  15662. @@ -1078,13 +1197,10 @@
  15663. we32k)
  15664. basic_machine=we32k-att
  15665. ;;
  15666. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  15667. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15668. basic_machine=sh-unknown
  15669. ;;
  15670. - sh64)
  15671. - basic_machine=sh64-unknown
  15672. - ;;
  15673. - sparc | sparcv8 | sparcv9 | sparcv9b)
  15674. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15675. basic_machine=sparc-sun
  15676. ;;
  15677. cydra)
  15678. @@ -1151,26 +1267,30 @@
  15679. # Each alternative MUST END IN A *, to match a version number.
  15680. # -sysv* is not here because it comes later, after sysvr4.
  15681. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15682. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15683. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15684. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15685. + | -kopensolaris* \
  15686. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15687. - | -aos* \
  15688. + | -aos* | -aros* \
  15689. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15690. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15691. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  15692. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15693. + | -openbsd* | -solidbsd* \
  15694. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  15695. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15696. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15697. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15698. - | -chorusos* | -chorusrdb* \
  15699. + | -chorusos* | -chorusrdb* | -cegcc* \
  15700. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15701. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  15702. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15703. + | -uxpv* | -beos* | -mpeix* | -udk* \
  15704. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  15705. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  15706. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  15707. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15708. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15709. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  15710. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15711. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15712. # Remember, each alternative MUST END IN *, to match a version number.
  15713. ;;
  15714. -qnx*)
  15715. @@ -1188,7 +1308,7 @@
  15716. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  15717. ;;
  15718. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  15719. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  15720. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  15721. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  15722. ;;
  15723. -mac*)
  15724. @@ -1297,6 +1417,12 @@
  15725. -kaos*)
  15726. os=-kaos
  15727. ;;
  15728. + -zvmoe)
  15729. + os=-zvmoe
  15730. + ;;
  15731. + -dicos*)
  15732. + os=-dicos
  15733. + ;;
  15734. -none)
  15735. ;;
  15736. *)
  15737. @@ -1319,6 +1445,12 @@
  15738. # system, and we'll never get to this point.
  15739. case $basic_machine in
  15740. + score-*)
  15741. + os=-elf
  15742. + ;;
  15743. + spu-*)
  15744. + os=-elf
  15745. + ;;
  15746. *-acorn)
  15747. os=-riscix1.2
  15748. ;;
  15749. @@ -1328,9 +1460,9 @@
  15750. arm*-semi)
  15751. os=-aout
  15752. ;;
  15753. - c4x-* | tic4x-*)
  15754. - os=-coff
  15755. - ;;
  15756. + c4x-* | tic4x-*)
  15757. + os=-coff
  15758. + ;;
  15759. # This must come before the *-dec entry.
  15760. pdp10-*)
  15761. os=-tops20
  15762. @@ -1356,6 +1488,9 @@
  15763. m68*-cisco)
  15764. os=-aout
  15765. ;;
  15766. + mep-*)
  15767. + os=-elf
  15768. + ;;
  15769. mips*-cisco)
  15770. os=-elf
  15771. ;;
  15772. @@ -1374,6 +1509,9 @@
  15773. *-be)
  15774. os=-beos
  15775. ;;
  15776. + *-haiku)
  15777. + os=-haiku
  15778. + ;;
  15779. *-ibm)
  15780. os=-aix
  15781. ;;
  15782. @@ -1482,7 +1620,7 @@
  15783. -sunos*)
  15784. vendor=sun
  15785. ;;
  15786. - -aix*)
  15787. + -cnk*|-aix*)
  15788. vendor=ibm
  15789. ;;
  15790. -beos*)
  15791. @@ -1545,7 +1683,7 @@
  15792. esac
  15793. echo $basic_machine$os
  15794. -exit 0
  15795. +exit
  15796. # Local variables:
  15797. # eval: (add-hook 'write-file-hooks 'time-stamp)
  15798. diff -Nur audiofile-0.2.7.orig/configure audiofile-0.2.7/configure
  15799. --- audiofile-0.2.7.orig/configure 2010-03-22 06:45:55.000000000 +0100
  15800. +++ audiofile-0.2.7/configure 2011-02-24 20:00:33.184806700 +0100
  15801. @@ -1,56 +1,83 @@
  15802. #! /bin/sh
  15803. # Guess values for system-dependent variables and create Makefiles.
  15804. -# Generated by GNU Autoconf 2.60.
  15805. +# Generated by GNU Autoconf 2.65.
  15806. +#
  15807. #
  15808. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  15809. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  15810. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  15811. +# Inc.
  15812. +#
  15813. +#
  15814. # This configure script is free software; the Free Software Foundation
  15815. # gives unlimited permission to copy, distribute and modify it.
  15816. -## --------------------- ##
  15817. -## M4sh Initialization. ##
  15818. -## --------------------- ##
  15819. +## -------------------- ##
  15820. +## M4sh Initialization. ##
  15821. +## -------------------- ##
  15822. -# Be Bourne compatible
  15823. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15824. +# Be more Bourne compatible
  15825. +DUALCASE=1; export DUALCASE # for MKS sh
  15826. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15827. emulate sh
  15828. NULLCMD=:
  15829. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15830. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15831. # is contrary to our usage. Disable this feature.
  15832. alias -g '${1+"$@"}'='"$@"'
  15833. setopt NO_GLOB_SUBST
  15834. else
  15835. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  15836. + case `(set -o) 2>/dev/null` in #(
  15837. + *posix*) :
  15838. + set -o posix ;; #(
  15839. + *) :
  15840. + ;;
  15841. +esac
  15842. fi
  15843. -BIN_SH=xpg4; export BIN_SH # for Tru64
  15844. -DUALCASE=1; export DUALCASE # for MKS sh
  15845. -
  15846. -# PATH needs CR
  15847. -# Avoid depending upon Character Ranges.
  15848. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15849. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15850. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15851. -as_cr_digits='0123456789'
  15852. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  15853. -# The user is always right.
  15854. -if test "${PATH_SEPARATOR+set}" != set; then
  15855. - echo "#! /bin/sh" >conf$$.sh
  15856. - echo "exit 0" >>conf$$.sh
  15857. - chmod +x conf$$.sh
  15858. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15859. - PATH_SEPARATOR=';'
  15860. - else
  15861. - PATH_SEPARATOR=:
  15862. +as_nl='
  15863. +'
  15864. +export as_nl
  15865. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  15866. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15867. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15868. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15869. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  15870. +# but without wasting forks for bash or zsh.
  15871. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  15872. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15873. + as_echo='print -r --'
  15874. + as_echo_n='print -rn --'
  15875. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15876. + as_echo='printf %s\n'
  15877. + as_echo_n='printf %s'
  15878. +else
  15879. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15880. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15881. + as_echo_n='/usr/ucb/echo -n'
  15882. + else
  15883. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15884. + as_echo_n_body='eval
  15885. + arg=$1;
  15886. + case $arg in #(
  15887. + *"$as_nl"*)
  15888. + expr "X$arg" : "X\\(.*\\)$as_nl";
  15889. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15890. + esac;
  15891. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15892. + '
  15893. + export as_echo_n_body
  15894. + as_echo_n='sh -c $as_echo_n_body as_echo'
  15895. fi
  15896. - rm -f conf$$.sh
  15897. + export as_echo_body
  15898. + as_echo='sh -c $as_echo_body as_echo'
  15899. fi
  15900. -# Support unset when possible.
  15901. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15902. - as_unset=unset
  15903. -else
  15904. - as_unset=false
  15905. +# The user is always right.
  15906. +if test "${PATH_SEPARATOR+set}" != set; then
  15907. + PATH_SEPARATOR=:
  15908. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15909. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15910. + PATH_SEPARATOR=';'
  15911. + }
  15912. fi
  15913. @@ -59,20 +86,18 @@
  15914. # there to prevent editors from complaining about space-tab.
  15915. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15916. # splitting by setting IFS to empty value.)
  15917. -as_nl='
  15918. -'
  15919. IFS=" "" $as_nl"
  15920. # Find who we are. Look in the path if we contain no directory separator.
  15921. -case $0 in
  15922. +case $0 in #((
  15923. *[\\/]* ) as_myself=$0 ;;
  15924. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15925. for as_dir in $PATH
  15926. do
  15927. IFS=$as_save_IFS
  15928. test -z "$as_dir" && as_dir=.
  15929. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15930. -done
  15931. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15932. + done
  15933. IFS=$as_save_IFS
  15934. ;;
  15935. @@ -83,352 +108,321 @@
  15936. as_myself=$0
  15937. fi
  15938. if test ! -f "$as_myself"; then
  15939. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15940. - { (exit 1); exit 1; }
  15941. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15942. + exit 1
  15943. fi
  15944. -# Work around bugs in pre-3.0 UWIN ksh.
  15945. -for as_var in ENV MAIL MAILPATH
  15946. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15947. +# Unset variables that we do not need and which cause bugs (e.g. in
  15948. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15949. +# suppresses any "Segmentation fault" message there. '((' could
  15950. +# trigger a bug in pdksh 5.2.14.
  15951. +for as_var in BASH_ENV ENV MAIL MAILPATH
  15952. +do eval test x\${$as_var+set} = xset \
  15953. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15954. done
  15955. PS1='$ '
  15956. PS2='> '
  15957. PS4='+ '
  15958. # NLS nuisances.
  15959. -for as_var in \
  15960. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15961. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15962. - LC_TELEPHONE LC_TIME
  15963. -do
  15964. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15965. - eval $as_var=C; export $as_var
  15966. - else
  15967. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15968. - fi
  15969. -done
  15970. -
  15971. -# Required to use basename.
  15972. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15973. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15974. - as_expr=expr
  15975. -else
  15976. - as_expr=false
  15977. -fi
  15978. -
  15979. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15980. - as_basename=basename
  15981. -else
  15982. - as_basename=false
  15983. -fi
  15984. -
  15985. -
  15986. -# Name of the executable.
  15987. -as_me=`$as_basename -- "$0" ||
  15988. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15989. - X"$0" : 'X\(//\)$' \| \
  15990. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15991. -echo X/"$0" |
  15992. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  15993. - s//\1/
  15994. - q
  15995. - }
  15996. - /^X\/\(\/\/\)$/{
  15997. - s//\1/
  15998. - q
  15999. - }
  16000. - /^X\/\(\/\).*/{
  16001. - s//\1/
  16002. - q
  16003. - }
  16004. - s/.*/./; q'`
  16005. +LC_ALL=C
  16006. +export LC_ALL
  16007. +LANGUAGE=C
  16008. +export LANGUAGE
  16009. # CDPATH.
  16010. -$as_unset CDPATH
  16011. -
  16012. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16013. if test "x$CONFIG_SHELL" = x; then
  16014. - if (eval ":") 2>/dev/null; then
  16015. - as_have_required=yes
  16016. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  16017. + emulate sh
  16018. + NULLCMD=:
  16019. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  16020. + # is contrary to our usage. Disable this feature.
  16021. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  16022. + setopt NO_GLOB_SUBST
  16023. else
  16024. - as_have_required=no
  16025. + case \`(set -o) 2>/dev/null\` in #(
  16026. + *posix*) :
  16027. + set -o posix ;; #(
  16028. + *) :
  16029. + ;;
  16030. +esac
  16031. fi
  16032. -
  16033. - if test $as_have_required = yes && (eval ":
  16034. -(as_func_return () {
  16035. - (exit \$1)
  16036. -}
  16037. -as_func_success () {
  16038. - as_func_return 0
  16039. -}
  16040. -as_func_failure () {
  16041. - as_func_return 1
  16042. -}
  16043. -as_func_ret_success () {
  16044. - return 0
  16045. -}
  16046. -as_func_ret_failure () {
  16047. - return 1
  16048. -}
  16049. +"
  16050. + as_required="as_fn_return () { (exit \$1); }
  16051. +as_fn_success () { as_fn_return 0; }
  16052. +as_fn_failure () { as_fn_return 1; }
  16053. +as_fn_ret_success () { return 0; }
  16054. +as_fn_ret_failure () { return 1; }
  16055. exitcode=0
  16056. -if as_func_success; then
  16057. - :
  16058. -else
  16059. - exitcode=1
  16060. - echo as_func_success failed.
  16061. -fi
  16062. -
  16063. -if as_func_failure; then
  16064. - exitcode=1
  16065. - echo as_func_failure succeeded.
  16066. -fi
  16067. -
  16068. -if as_func_ret_success; then
  16069. - :
  16070. -else
  16071. - exitcode=1
  16072. - echo as_func_ret_success failed.
  16073. -fi
  16074. -
  16075. -if as_func_ret_failure; then
  16076. - exitcode=1
  16077. - echo as_func_ret_failure succeeded.
  16078. -fi
  16079. -
  16080. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16081. - :
  16082. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  16083. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  16084. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  16085. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  16086. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  16087. +
  16088. +else
  16089. + exitcode=1; echo positional parameters were not saved.
  16090. +fi
  16091. +test x\$exitcode = x0 || exit 1"
  16092. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  16093. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  16094. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  16095. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  16096. +test \$(( 1 + 1 )) = 2 || exit 1"
  16097. + if (eval "$as_required") 2>/dev/null; then :
  16098. + as_have_required=yes
  16099. else
  16100. - exitcode=1
  16101. - echo positional parameters were not saved.
  16102. + as_have_required=no
  16103. fi
  16104. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  16105. -test \$exitcode = 0) || { (exit 1); exit 1; }
  16106. -
  16107. -(
  16108. - as_lineno_1=\$LINENO
  16109. - as_lineno_2=\$LINENO
  16110. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  16111. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  16112. -") 2> /dev/null; then
  16113. - :
  16114. else
  16115. - as_candidate_shells=
  16116. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16117. -for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16118. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16119. +as_found=false
  16120. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16121. do
  16122. IFS=$as_save_IFS
  16123. test -z "$as_dir" && as_dir=.
  16124. - case $as_dir in
  16125. + as_found=:
  16126. + case $as_dir in #(
  16127. /*)
  16128. for as_base in sh bash ksh sh5; do
  16129. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  16130. + # Try only shells that exist, to save several forks.
  16131. + as_shell=$as_dir/$as_base
  16132. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16133. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16134. + CONFIG_SHELL=$as_shell as_have_required=yes
  16135. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16136. + break 2
  16137. +fi
  16138. +fi
  16139. done;;
  16140. esac
  16141. + as_found=false
  16142. done
  16143. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  16144. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  16145. + CONFIG_SHELL=$SHELL as_have_required=yes
  16146. +fi; }
  16147. IFS=$as_save_IFS
  16148. - for as_shell in $as_candidate_shells $SHELL; do
  16149. - # Try only shells that exist, to save several forks.
  16150. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16151. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  16152. -# Be Bourne compatible
  16153. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16154. - emulate sh
  16155. - NULLCMD=:
  16156. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16157. - # is contrary to our usage. Disable this feature.
  16158. - alias -g '${1+"$@"}'='"$@"'
  16159. - setopt NO_GLOB_SUBST
  16160. -else
  16161. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  16162. -fi
  16163. -BIN_SH=xpg4; export BIN_SH # for Tru64
  16164. -DUALCASE=1; export DUALCASE # for MKS sh
  16165. -
  16166. -:
  16167. -_ASEOF
  16168. -}; then
  16169. - CONFIG_SHELL=$as_shell
  16170. - as_have_required=yes
  16171. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  16172. -# Be Bourne compatible
  16173. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16174. - emulate sh
  16175. - NULLCMD=:
  16176. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16177. - # is contrary to our usage. Disable this feature.
  16178. - alias -g '${1+"$@"}'='"$@"'
  16179. - setopt NO_GLOB_SUBST
  16180. -else
  16181. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  16182. -fi
  16183. -BIN_SH=xpg4; export BIN_SH # for Tru64
  16184. -DUALCASE=1; export DUALCASE # for MKS sh
  16185. -
  16186. -:
  16187. -(as_func_return () {
  16188. - (exit $1)
  16189. -}
  16190. -as_func_success () {
  16191. - as_func_return 0
  16192. -}
  16193. -as_func_failure () {
  16194. - as_func_return 1
  16195. -}
  16196. -as_func_ret_success () {
  16197. - return 0
  16198. -}
  16199. -as_func_ret_failure () {
  16200. - return 1
  16201. -}
  16202. -
  16203. -exitcode=0
  16204. -if as_func_success; then
  16205. - :
  16206. -else
  16207. - exitcode=1
  16208. - echo as_func_success failed.
  16209. -fi
  16210. -
  16211. -if as_func_failure; then
  16212. - exitcode=1
  16213. - echo as_func_failure succeeded.
  16214. -fi
  16215. -
  16216. -if as_func_ret_success; then
  16217. - :
  16218. -else
  16219. - exitcode=1
  16220. - echo as_func_ret_success failed.
  16221. -fi
  16222. -
  16223. -if as_func_ret_failure; then
  16224. - exitcode=1
  16225. - echo as_func_ret_failure succeeded.
  16226. -fi
  16227. -
  16228. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  16229. - :
  16230. -else
  16231. - exitcode=1
  16232. - echo positional parameters were not saved.
  16233. + if test "x$CONFIG_SHELL" != x; then :
  16234. + # We cannot yet assume a decent shell, so we have to provide a
  16235. + # neutralization value for shells without unset; and this also
  16236. + # works around shells that cannot unset nonexistent variables.
  16237. + BASH_ENV=/dev/null
  16238. + ENV=/dev/null
  16239. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  16240. + export CONFIG_SHELL
  16241. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16242. fi
  16243. -test $exitcode = 0) || { (exit 1); exit 1; }
  16244. -
  16245. -(
  16246. - as_lineno_1=$LINENO
  16247. - as_lineno_2=$LINENO
  16248. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16249. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  16250. -
  16251. -_ASEOF
  16252. -}; then
  16253. - break
  16254. + if test x$as_have_required = xno; then :
  16255. + $as_echo "$0: This script requires a shell more modern than all"
  16256. + $as_echo "$0: the shells that I found on your system."
  16257. + if test x${ZSH_VERSION+set} = xset ; then
  16258. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  16259. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  16260. + else
  16261. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  16262. +$0: including any error possibly output before this
  16263. +$0: message. Then install a modern shell, or manually run
  16264. +$0: the script under such a shell if you do have one."
  16265. + fi
  16266. + exit 1
  16267. fi
  16268. -
  16269. fi
  16270. -
  16271. - done
  16272. -
  16273. - if test "x$CONFIG_SHELL" != x; then
  16274. - for as_var in BASH_ENV ENV
  16275. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16276. - done
  16277. - export CONFIG_SHELL
  16278. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16279. fi
  16280. +SHELL=${CONFIG_SHELL-/bin/sh}
  16281. +export SHELL
  16282. +# Unset more variables known to interfere with behavior of common tools.
  16283. +CLICOLOR_FORCE= GREP_OPTIONS=
  16284. +unset CLICOLOR_FORCE GREP_OPTIONS
  16285. +## --------------------- ##
  16286. +## M4sh Shell Functions. ##
  16287. +## --------------------- ##
  16288. +# as_fn_unset VAR
  16289. +# ---------------
  16290. +# Portably unset VAR.
  16291. +as_fn_unset ()
  16292. +{
  16293. + { eval $1=; unset $1;}
  16294. +}
  16295. +as_unset=as_fn_unset
  16296. +
  16297. +# as_fn_set_status STATUS
  16298. +# -----------------------
  16299. +# Set $? to STATUS, without forking.
  16300. +as_fn_set_status ()
  16301. +{
  16302. + return $1
  16303. +} # as_fn_set_status
  16304. +
  16305. +# as_fn_exit STATUS
  16306. +# -----------------
  16307. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16308. +as_fn_exit ()
  16309. +{
  16310. + set +e
  16311. + as_fn_set_status $1
  16312. + exit $1
  16313. +} # as_fn_exit
  16314. +
  16315. +# as_fn_mkdir_p
  16316. +# -------------
  16317. +# Create "$as_dir" as a directory, including parents if necessary.
  16318. +as_fn_mkdir_p ()
  16319. +{
  16320. - if test $as_have_required = no; then
  16321. - echo This script requires a shell more modern than all the
  16322. - echo shells that I found on your system. Please install a
  16323. - echo modern shell, or manually run the script under such a
  16324. - echo shell if you do have one.
  16325. - { (exit 1); exit 1; }
  16326. -fi
  16327. -
  16328. + case $as_dir in #(
  16329. + -*) as_dir=./$as_dir;;
  16330. + esac
  16331. + test -d "$as_dir" || eval $as_mkdir_p || {
  16332. + as_dirs=
  16333. + while :; do
  16334. + case $as_dir in #(
  16335. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16336. + *) as_qdir=$as_dir;;
  16337. + esac
  16338. + as_dirs="'$as_qdir' $as_dirs"
  16339. + as_dir=`$as_dirname -- "$as_dir" ||
  16340. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16341. + X"$as_dir" : 'X\(//\)[^/]' \| \
  16342. + X"$as_dir" : 'X\(//\)$' \| \
  16343. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16344. +$as_echo X"$as_dir" |
  16345. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16346. + s//\1/
  16347. + q
  16348. + }
  16349. + /^X\(\/\/\)[^/].*/{
  16350. + s//\1/
  16351. + q
  16352. + }
  16353. + /^X\(\/\/\)$/{
  16354. + s//\1/
  16355. + q
  16356. + }
  16357. + /^X\(\/\).*/{
  16358. + s//\1/
  16359. + q
  16360. + }
  16361. + s/.*/./; q'`
  16362. + test -d "$as_dir" && break
  16363. + done
  16364. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  16365. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16366. -fi
  16367. -fi
  16368. +} # as_fn_mkdir_p
  16369. +# as_fn_append VAR VALUE
  16370. +# ----------------------
  16371. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  16372. +# advantage of any shell optimizations that allow amortized linear growth over
  16373. +# repeated appends, instead of the typical quadratic growth present in naive
  16374. +# implementations.
  16375. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16376. + eval 'as_fn_append ()
  16377. + {
  16378. + eval $1+=\$2
  16379. + }'
  16380. +else
  16381. + as_fn_append ()
  16382. + {
  16383. + eval $1=\$$1\$2
  16384. + }
  16385. +fi # as_fn_append
  16386. +# as_fn_arith ARG...
  16387. +# ------------------
  16388. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  16389. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  16390. +# must be portable across $(()) and expr.
  16391. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16392. + eval 'as_fn_arith ()
  16393. + {
  16394. + as_val=$(( $* ))
  16395. + }'
  16396. +else
  16397. + as_fn_arith ()
  16398. + {
  16399. + as_val=`expr "$@" || test $? -eq 1`
  16400. + }
  16401. +fi # as_fn_arith
  16402. -(eval "as_func_return () {
  16403. - (exit \$1)
  16404. -}
  16405. -as_func_success () {
  16406. - as_func_return 0
  16407. -}
  16408. -as_func_failure () {
  16409. - as_func_return 1
  16410. -}
  16411. -as_func_ret_success () {
  16412. - return 0
  16413. -}
  16414. -as_func_ret_failure () {
  16415. - return 1
  16416. -}
  16417. +# as_fn_error ERROR [LINENO LOG_FD]
  16418. +# ---------------------------------
  16419. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16420. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16421. +# script with status $?, using 1 if that was 0.
  16422. +as_fn_error ()
  16423. +{
  16424. + as_status=$?; test $as_status -eq 0 && as_status=1
  16425. + if test "$3"; then
  16426. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16427. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16428. + fi
  16429. + $as_echo "$as_me: error: $1" >&2
  16430. + as_fn_exit $as_status
  16431. +} # as_fn_error
  16432. -exitcode=0
  16433. -if as_func_success; then
  16434. - :
  16435. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  16436. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16437. + as_expr=expr
  16438. else
  16439. - exitcode=1
  16440. - echo as_func_success failed.
  16441. -fi
  16442. -
  16443. -if as_func_failure; then
  16444. - exitcode=1
  16445. - echo as_func_failure succeeded.
  16446. + as_expr=false
  16447. fi
  16448. -if as_func_ret_success; then
  16449. - :
  16450. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16451. + as_basename=basename
  16452. else
  16453. - exitcode=1
  16454. - echo as_func_ret_success failed.
  16455. -fi
  16456. -
  16457. -if as_func_ret_failure; then
  16458. - exitcode=1
  16459. - echo as_func_ret_failure succeeded.
  16460. + as_basename=false
  16461. fi
  16462. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16463. - :
  16464. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16465. + as_dirname=dirname
  16466. else
  16467. - exitcode=1
  16468. - echo positional parameters were not saved.
  16469. + as_dirname=false
  16470. fi
  16471. -test \$exitcode = 0") || {
  16472. - echo No shell found that supports shell functions.
  16473. - echo Please tell autoconf@gnu.org about your system,
  16474. - echo including any error possibly output before this
  16475. - echo message
  16476. -}
  16477. +as_me=`$as_basename -- "$0" ||
  16478. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16479. + X"$0" : 'X\(//\)$' \| \
  16480. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16481. +$as_echo X/"$0" |
  16482. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  16483. + s//\1/
  16484. + q
  16485. + }
  16486. + /^X\/\(\/\/\)$/{
  16487. + s//\1/
  16488. + q
  16489. + }
  16490. + /^X\/\(\/\).*/{
  16491. + s//\1/
  16492. + q
  16493. + }
  16494. + s/.*/./; q'`
  16495. +# Avoid depending upon Character Ranges.
  16496. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16497. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16498. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16499. +as_cr_digits='0123456789'
  16500. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  16501. - as_lineno_1=$LINENO
  16502. - as_lineno_2=$LINENO
  16503. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16504. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  16505. -
  16506. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16507. - # uniformly replaced by the line number. The first 'sed' inserts a
  16508. - # line-number line after each line using $LINENO; the second 'sed'
  16509. - # does the real work. The second script uses 'N' to pair each
  16510. - # line-number line with the line containing $LINENO, and appends
  16511. - # trailing '-' during substitution so that $LINENO is not a special
  16512. - # case at line end.
  16513. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16514. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  16515. - # E. McMahon (1931-1989) for sed's syntax. :-)
  16516. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  16517. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  16518. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  16519. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  16520. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  16521. sed -n '
  16522. p
  16523. /[$]LINENO/=
  16524. @@ -445,8 +439,7 @@
  16525. s/-\n.*//
  16526. ' >$as_me.lineno &&
  16527. chmod +x "$as_me.lineno" ||
  16528. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16529. - { (exit 1); exit 1; }; }
  16530. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  16531. # Don't try to exec as it changes $[0], causing all sort of problems
  16532. # (the dirname of $[0] is not the place where we might find the
  16533. @@ -456,49 +449,40 @@
  16534. exit
  16535. }
  16536. -
  16537. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16538. - as_dirname=dirname
  16539. -else
  16540. - as_dirname=false
  16541. -fi
  16542. -
  16543. ECHO_C= ECHO_N= ECHO_T=
  16544. -case `echo -n x` in
  16545. +case `echo -n x` in #(((((
  16546. -n*)
  16547. - case `echo 'x\c'` in
  16548. + case `echo 'xy\c'` in
  16549. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16550. - *) ECHO_C='\c';;
  16551. + xy) ECHO_C='\c';;
  16552. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16553. + ECHO_T=' ';;
  16554. esac;;
  16555. *)
  16556. ECHO_N='-n';;
  16557. esac
  16558. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  16559. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16560. - as_expr=expr
  16561. -else
  16562. - as_expr=false
  16563. -fi
  16564. -
  16565. rm -f conf$$ conf$$.exe conf$$.file
  16566. if test -d conf$$.dir; then
  16567. rm -f conf$$.dir/conf$$.file
  16568. else
  16569. rm -f conf$$.dir
  16570. - mkdir conf$$.dir
  16571. + mkdir conf$$.dir 2>/dev/null
  16572. fi
  16573. -echo >conf$$.file
  16574. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  16575. - as_ln_s='ln -s'
  16576. - # ... but there are two gotchas:
  16577. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16578. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16579. - # In both cases, we have to default to `cp -p'.
  16580. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16581. +if (echo >conf$$.file) 2>/dev/null; then
  16582. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  16583. + as_ln_s='ln -s'
  16584. + # ... but there are two gotchas:
  16585. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16586. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16587. + # In both cases, we have to default to `cp -p'.
  16588. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16589. + as_ln_s='cp -p'
  16590. + elif ln conf$$.file conf$$ 2>/dev/null; then
  16591. + as_ln_s=ln
  16592. + else
  16593. as_ln_s='cp -p'
  16594. -elif ln conf$$.file conf$$ 2>/dev/null; then
  16595. - as_ln_s=ln
  16596. + fi
  16597. else
  16598. as_ln_s='cp -p'
  16599. fi
  16600. @@ -506,25 +490,34 @@
  16601. rmdir conf$$.dir 2>/dev/null
  16602. if mkdir -p . 2>/dev/null; then
  16603. - as_mkdir_p=:
  16604. + as_mkdir_p='mkdir -p "$as_dir"'
  16605. else
  16606. test -d ./-p && rmdir ./-p
  16607. as_mkdir_p=false
  16608. fi
  16609. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  16610. -# systems may use methods other than mode bits to determine executability.
  16611. -cat >conf$$.file <<_ASEOF
  16612. -#! /bin/sh
  16613. -exit 0
  16614. -_ASEOF
  16615. -chmod +x conf$$.file
  16616. -if test -x conf$$.file >/dev/null 2>&1; then
  16617. - as_executable_p="test -x"
  16618. +if test -x / >/dev/null 2>&1; then
  16619. + as_test_x='test -x'
  16620. else
  16621. - as_executable_p=:
  16622. + if ls -dL / >/dev/null 2>&1; then
  16623. + as_ls_L_option=L
  16624. + else
  16625. + as_ls_L_option=
  16626. + fi
  16627. + as_test_x='
  16628. + eval sh -c '\''
  16629. + if test -d "$1"; then
  16630. + test -d "$1/.";
  16631. + else
  16632. + case $1 in #(
  16633. + -*)set "./$1";;
  16634. + esac;
  16635. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16636. + ???[sx]*):;;*)false;;esac;fi
  16637. + '\'' sh
  16638. + '
  16639. fi
  16640. -rm -f conf$$.file
  16641. +as_executable_p=$as_test_x
  16642. # Sed expression to map a string onto a valid CPP name.
  16643. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16644. @@ -534,26 +527,25 @@
  16645. -
  16646. # Check that we are running under the correct shell.
  16647. SHELL=${CONFIG_SHELL-/bin/sh}
  16648. -case X$ECHO in
  16649. +case X$lt_ECHO in
  16650. X*--fallback-echo)
  16651. # Remove one level of quotation (which was required for Make).
  16652. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16653. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16654. ;;
  16655. esac
  16656. -echo=${ECHO-echo}
  16657. +ECHO=${lt_ECHO-echo}
  16658. if test "X$1" = X--no-reexec; then
  16659. # Discard the --no-reexec flag, and continue.
  16660. shift
  16661. elif test "X$1" = X--fallback-echo; then
  16662. # Avoid inline document here, it may be left over
  16663. :
  16664. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  16665. - # Yippee, $echo works!
  16666. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  16667. + # Yippee, $ECHO works!
  16668. :
  16669. else
  16670. # Restart under the correct shell.
  16671. @@ -563,9 +555,9 @@
  16672. if test "X$1" = X--fallback-echo; then
  16673. # used as fallback echo
  16674. shift
  16675. - cat <<EOF
  16676. + cat <<_LT_EOF
  16677. $*
  16678. -EOF
  16679. +_LT_EOF
  16680. exit 0
  16681. fi
  16682. @@ -573,122 +565,118 @@
  16683. # if CDPATH is set.
  16684. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16685. -if test -z "$ECHO"; then
  16686. -if test "X${echo_test_string+set}" != Xset; then
  16687. -# find a string as large as possible, as long as the shell can cope with it
  16688. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16689. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16690. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  16691. - echo_test_string="`eval $cmd`" &&
  16692. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  16693. - then
  16694. - break
  16695. - fi
  16696. - done
  16697. -fi
  16698. +if test -z "$lt_ECHO"; then
  16699. + if test "X${echo_test_string+set}" != Xset; then
  16700. + # find a string as large as possible, as long as the shell can cope with it
  16701. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16702. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16703. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  16704. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  16705. + then
  16706. + break
  16707. + fi
  16708. + done
  16709. + fi
  16710. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16711. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16712. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16713. - :
  16714. -else
  16715. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  16716. - # backslashes. This makes it impossible to quote backslashes using
  16717. - # echo "$something" | sed 's/\\/\\\\/g'
  16718. - #
  16719. - # So, first we look for a working echo in the user's PATH.
  16720. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16721. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16722. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16723. + :
  16724. + else
  16725. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  16726. + # backslashes. This makes it impossible to quote backslashes using
  16727. + # echo "$something" | sed 's/\\/\\\\/g'
  16728. + #
  16729. + # So, first we look for a working echo in the user's PATH.
  16730. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16731. - for dir in $PATH /usr/ucb; do
  16732. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16733. + for dir in $PATH /usr/ucb; do
  16734. + IFS="$lt_save_ifs"
  16735. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16736. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16737. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16738. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16739. + ECHO="$dir/echo"
  16740. + break
  16741. + fi
  16742. + done
  16743. IFS="$lt_save_ifs"
  16744. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16745. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16746. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16747. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16748. - echo="$dir/echo"
  16749. - break
  16750. - fi
  16751. - done
  16752. - IFS="$lt_save_ifs"
  16753. - if test "X$echo" = Xecho; then
  16754. - # We didn't find a better echo, so look for alternatives.
  16755. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  16756. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  16757. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16758. - # This shell has a builtin print -r that does the trick.
  16759. - echo='print -r'
  16760. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  16761. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  16762. - # If we have ksh, try running configure again with it.
  16763. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16764. - export ORIGINAL_CONFIG_SHELL
  16765. - CONFIG_SHELL=/bin/ksh
  16766. - export CONFIG_SHELL
  16767. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16768. - else
  16769. - # Try using printf.
  16770. - echo='printf %s\n'
  16771. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16772. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16773. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16774. - # Cool, printf works
  16775. - :
  16776. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16777. - test "X$echo_testing_string" = 'X\t' &&
  16778. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16779. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16780. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16781. - export CONFIG_SHELL
  16782. - SHELL="$CONFIG_SHELL"
  16783. - export SHELL
  16784. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16785. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16786. - test "X$echo_testing_string" = 'X\t' &&
  16787. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16788. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16789. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16790. + if test "X$ECHO" = Xecho; then
  16791. + # We didn't find a better echo, so look for alternatives.
  16792. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  16793. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  16794. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16795. + # This shell has a builtin print -r that does the trick.
  16796. + ECHO='print -r'
  16797. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  16798. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  16799. + # If we have ksh, try running configure again with it.
  16800. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16801. + export ORIGINAL_CONFIG_SHELL
  16802. + CONFIG_SHELL=/bin/ksh
  16803. + export CONFIG_SHELL
  16804. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16805. else
  16806. - # maybe with a smaller string...
  16807. - prev=:
  16808. + # Try using printf.
  16809. + ECHO='printf %s\n'
  16810. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16811. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16812. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16813. + # Cool, printf works
  16814. + :
  16815. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16816. + test "X$echo_testing_string" = 'X\t' &&
  16817. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16818. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16819. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16820. + export CONFIG_SHELL
  16821. + SHELL="$CONFIG_SHELL"
  16822. + export SHELL
  16823. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16824. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16825. + test "X$echo_testing_string" = 'X\t' &&
  16826. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16827. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16828. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16829. + else
  16830. + # maybe with a smaller string...
  16831. + prev=:
  16832. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16833. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  16834. - then
  16835. - break
  16836. - fi
  16837. - prev="$cmd"
  16838. - done
  16839. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16840. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  16841. + then
  16842. + break
  16843. + fi
  16844. + prev="$cmd"
  16845. + done
  16846. - if test "$prev" != 'sed 50q "$0"'; then
  16847. - echo_test_string=`eval $prev`
  16848. - export echo_test_string
  16849. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16850. - else
  16851. - # Oops. We lost completely, so just stick with echo.
  16852. - echo=echo
  16853. - fi
  16854. + if test "$prev" != 'sed 50q "$0"'; then
  16855. + echo_test_string=`eval $prev`
  16856. + export echo_test_string
  16857. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16858. + else
  16859. + # Oops. We lost completely, so just stick with echo.
  16860. + ECHO=echo
  16861. + fi
  16862. + fi
  16863. fi
  16864. fi
  16865. fi
  16866. fi
  16867. -fi
  16868. # Copy echo and quote the copy suitably for passing to libtool from
  16869. # the Makefile, instead of quoting the original, which is used later.
  16870. -ECHO=$echo
  16871. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16872. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16873. +lt_ECHO=$ECHO
  16874. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16875. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16876. fi
  16877. -tagnames=${tagnames+${tagnames},}CXX
  16878. -
  16879. -tagnames=${tagnames+${tagnames},}F77
  16880. -
  16881. -exec 7<&0 </dev/null 6>&1
  16882. +test -n "$DJDIR" || exec 7<&0 </dev/null
  16883. +exec 6>&1
  16884. # Name of the host.
  16885. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16886. @@ -706,7 +694,6 @@
  16887. subdirs=
  16888. MFLAGS=
  16889. MAKEFLAGS=
  16890. -SHELL=${CONFIG_SHELL-/bin/sh}
  16891. # Identity of this package.
  16892. PACKAGE_NAME=
  16893. @@ -714,176 +701,191 @@
  16894. PACKAGE_VERSION=
  16895. PACKAGE_STRING=
  16896. PACKAGE_BUGREPORT=
  16897. +PACKAGE_URL=
  16898. ac_unique_file="libaudiofile/aiff.c"
  16899. # Factoring default headers for most tests.
  16900. ac_includes_default="\
  16901. #include <stdio.h>
  16902. -#if HAVE_SYS_TYPES_H
  16903. +#ifdef HAVE_SYS_TYPES_H
  16904. # include <sys/types.h>
  16905. #endif
  16906. -#if HAVE_SYS_STAT_H
  16907. +#ifdef HAVE_SYS_STAT_H
  16908. # include <sys/stat.h>
  16909. #endif
  16910. -#if STDC_HEADERS
  16911. +#ifdef STDC_HEADERS
  16912. # include <stdlib.h>
  16913. # include <stddef.h>
  16914. #else
  16915. -# if HAVE_STDLIB_H
  16916. +# ifdef HAVE_STDLIB_H
  16917. # include <stdlib.h>
  16918. # endif
  16919. #endif
  16920. -#if HAVE_STRING_H
  16921. -# if !STDC_HEADERS && HAVE_MEMORY_H
  16922. +#ifdef HAVE_STRING_H
  16923. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  16924. # include <memory.h>
  16925. # endif
  16926. # include <string.h>
  16927. #endif
  16928. -#if HAVE_STRINGS_H
  16929. +#ifdef HAVE_STRINGS_H
  16930. # include <strings.h>
  16931. #endif
  16932. -#if HAVE_INTTYPES_H
  16933. +#ifdef HAVE_INTTYPES_H
  16934. # include <inttypes.h>
  16935. #endif
  16936. -#if HAVE_STDINT_H
  16937. +#ifdef HAVE_STDINT_H
  16938. # include <stdint.h>
  16939. #endif
  16940. -#if HAVE_UNISTD_H
  16941. +#ifdef HAVE_UNISTD_H
  16942. # include <unistd.h>
  16943. #endif"
  16944. -ac_subst_vars='SHELL
  16945. -PATH_SEPARATOR
  16946. -PACKAGE_NAME
  16947. -PACKAGE_TARNAME
  16948. -PACKAGE_VERSION
  16949. -PACKAGE_STRING
  16950. -PACKAGE_BUGREPORT
  16951. -exec_prefix
  16952. -prefix
  16953. -program_transform_name
  16954. -bindir
  16955. -sbindir
  16956. -libexecdir
  16957. -datarootdir
  16958. -datadir
  16959. -sysconfdir
  16960. -sharedstatedir
  16961. -localstatedir
  16962. -includedir
  16963. -oldincludedir
  16964. -docdir
  16965. -infodir
  16966. -htmldir
  16967. -dvidir
  16968. -pdfdir
  16969. -psdir
  16970. -libdir
  16971. -localedir
  16972. -mandir
  16973. -DEFS
  16974. -ECHO_C
  16975. -ECHO_N
  16976. -ECHO_T
  16977. -LIBS
  16978. +ac_subst_vars='am__EXEEXT_FALSE
  16979. +am__EXEEXT_TRUE
  16980. +LTLIBOBJS
  16981. +TEST_BIN
  16982. +LIBOBJS
  16983. +AUDIO_LIB
  16984. +CPP
  16985. +OTOOL64
  16986. +OTOOL
  16987. +LIPO
  16988. +NMEDIT
  16989. +DSYMUTIL
  16990. +lt_ECHO
  16991. +RANLIB
  16992. +AR
  16993. +LN_S
  16994. +NM
  16995. +ac_ct_DUMPBIN
  16996. +DUMPBIN
  16997. +LD
  16998. +FGREP
  16999. +EGREP
  17000. +GREP
  17001. +SED
  17002. +LIBTOOL
  17003. +OBJDUMP
  17004. +DLLTOOL
  17005. +AS
  17006. +host_os
  17007. +host_vendor
  17008. +host_cpu
  17009. +host
  17010. +build_os
  17011. +build_vendor
  17012. +build_cpu
  17013. +build
  17014. +am__fastdepCC_FALSE
  17015. +am__fastdepCC_TRUE
  17016. +CCDEPMODE
  17017. +AMDEPBACKSLASH
  17018. +AMDEP_FALSE
  17019. +AMDEP_TRUE
  17020. +am__quote
  17021. +am__include
  17022. +DEPDIR
  17023. +OBJEXT
  17024. +EXEEXT
  17025. +ac_ct_CC
  17026. +CPPFLAGS
  17027. +LDFLAGS
  17028. +CFLAGS
  17029. +CC
  17030. +am__untar
  17031. +am__tar
  17032. +AMTAR
  17033. +am__leading_dot
  17034. +SET_MAKE
  17035. +AWK
  17036. +mkdir_p
  17037. +MKDIR_P
  17038. +INSTALL_STRIP_PROGRAM
  17039. +STRIP
  17040. +install_sh
  17041. +MAKEINFO
  17042. +AUTOHEADER
  17043. +AUTOMAKE
  17044. +AUTOCONF
  17045. +ACLOCAL
  17046. +VERSION
  17047. +PACKAGE
  17048. +CYGPATH_W
  17049. +am__isrc
  17050. +INSTALL_DATA
  17051. +INSTALL_SCRIPT
  17052. +INSTALL_PROGRAM
  17053. +AUDIOFILE_VERSION_INFO
  17054. +AUDIOFILE_VERSION
  17055. +AUDIOFILE_MICRO_VERSION
  17056. +AUDIOFILE_MINOR_VERSION
  17057. +AUDIOFILE_MAJOR_VERSION
  17058. +target_alias
  17059. +host_alias
  17060. build_alias
  17061. +LIBS
  17062. +ECHO_T
  17063. +ECHO_N
  17064. +ECHO_C
  17065. +DEFS
  17066. +mandir
  17067. +localedir
  17068. +libdir
  17069. +psdir
  17070. +pdfdir
  17071. +dvidir
  17072. +htmldir
  17073. +infodir
  17074. +docdir
  17075. +oldincludedir
  17076. +includedir
  17077. +localstatedir
  17078. +sharedstatedir
  17079. +sysconfdir
  17080. +datadir
  17081. +datarootdir
  17082. +libexecdir
  17083. +sbindir
  17084. +bindir
  17085. +program_transform_name
  17086. +prefix
  17087. +exec_prefix
  17088. +PACKAGE_URL
  17089. +PACKAGE_BUGREPORT
  17090. +PACKAGE_STRING
  17091. +PACKAGE_VERSION
  17092. +PACKAGE_TARNAME
  17093. +PACKAGE_NAME
  17094. +PATH_SEPARATOR
  17095. +SHELL'
  17096. +ac_subst_files=''
  17097. +ac_user_opts='
  17098. +enable_option_checking
  17099. +enable_dependency_tracking
  17100. +enable_shared
  17101. +enable_static
  17102. +with_pic
  17103. +enable_fast_install
  17104. +with_gnu_ld
  17105. +enable_libtool_lock
  17106. +enable_largefile
  17107. +'
  17108. + ac_precious_vars='build_alias
  17109. host_alias
  17110. target_alias
  17111. -AUDIOFILE_MAJOR_VERSION
  17112. -AUDIOFILE_MINOR_VERSION
  17113. -AUDIOFILE_MICRO_VERSION
  17114. -AUDIOFILE_VERSION
  17115. -AUDIOFILE_VERSION_INFO
  17116. -INSTALL_PROGRAM
  17117. -INSTALL_SCRIPT
  17118. -INSTALL_DATA
  17119. -CYGPATH_W
  17120. -PACKAGE
  17121. -VERSION
  17122. -ACLOCAL
  17123. -AUTOCONF
  17124. -AUTOMAKE
  17125. -AUTOHEADER
  17126. -MAKEINFO
  17127. -install_sh
  17128. -STRIP
  17129. -INSTALL_STRIP_PROGRAM
  17130. -mkdir_p
  17131. -AWK
  17132. -SET_MAKE
  17133. -am__leading_dot
  17134. -AMTAR
  17135. -am__tar
  17136. -am__untar
  17137. CC
  17138. CFLAGS
  17139. LDFLAGS
  17140. +LIBS
  17141. CPPFLAGS
  17142. -ac_ct_CC
  17143. -EXEEXT
  17144. -OBJEXT
  17145. -DEPDIR
  17146. -am__include
  17147. -am__quote
  17148. -AMDEP_TRUE
  17149. -AMDEP_FALSE
  17150. -AMDEPBACKSLASH
  17151. -CCDEPMODE
  17152. -am__fastdepCC_TRUE
  17153. -am__fastdepCC_FALSE
  17154. -build
  17155. -build_cpu
  17156. -build_vendor
  17157. -build_os
  17158. -host
  17159. -host_cpu
  17160. -host_vendor
  17161. -host_os
  17162. -GREP
  17163. -EGREP
  17164. -LN_S
  17165. -ECHO
  17166. -AR
  17167. -RANLIB
  17168. -DLLTOOL
  17169. -AS
  17170. -OBJDUMP
  17171. -CPP
  17172. -CXX
  17173. -CXXFLAGS
  17174. -ac_ct_CXX
  17175. -CXXDEPMODE
  17176. -am__fastdepCXX_TRUE
  17177. -am__fastdepCXX_FALSE
  17178. -CXXCPP
  17179. -F77
  17180. -FFLAGS
  17181. -ac_ct_F77
  17182. -LIBTOOL
  17183. -AUDIO_LIB
  17184. -LIBOBJS
  17185. -TEST_BIN
  17186. -LTLIBOBJS'
  17187. -ac_subst_files=''
  17188. - ac_precious_vars='build_alias
  17189. -host_alias
  17190. -target_alias
  17191. -CC
  17192. -CFLAGS
  17193. -LDFLAGS
  17194. -CPPFLAGS
  17195. -CPP
  17196. -CXX
  17197. -CXXFLAGS
  17198. -CCC
  17199. -CXXCPP
  17200. -F77
  17201. -FFLAGS'
  17202. +CPP'
  17203. # Initialize some variables set by options.
  17204. ac_init_help=
  17205. ac_init_version=false
  17206. +ac_unrecognized_opts=
  17207. +ac_unrecognized_sep=
  17208. # The variables have the same names as the options, with
  17209. # dashes changed to underlines.
  17210. cache_file=/dev/null
  17211. @@ -982,13 +984,20 @@
  17212. datarootdir=$ac_optarg ;;
  17213. -disable-* | --disable-*)
  17214. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17215. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17216. # Reject names that are not valid shell variable names.
  17217. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17218. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17219. - { (exit 1); exit 1; }; }
  17220. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17221. - eval enable_$ac_feature=no ;;
  17222. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17223. + as_fn_error "invalid feature name: $ac_useropt"
  17224. + ac_useropt_orig=$ac_useropt
  17225. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17226. + case $ac_user_opts in
  17227. + *"
  17228. +"enable_$ac_useropt"
  17229. +"*) ;;
  17230. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  17231. + ac_unrecognized_sep=', ';;
  17232. + esac
  17233. + eval enable_$ac_useropt=no ;;
  17234. -docdir | --docdir | --docdi | --doc | --do)
  17235. ac_prev=docdir ;;
  17236. @@ -1001,13 +1010,20 @@
  17237. dvidir=$ac_optarg ;;
  17238. -enable-* | --enable-*)
  17239. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17240. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17241. # Reject names that are not valid shell variable names.
  17242. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17243. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17244. - { (exit 1); exit 1; }; }
  17245. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17246. - eval enable_$ac_feature=\$ac_optarg ;;
  17247. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17248. + as_fn_error "invalid feature name: $ac_useropt"
  17249. + ac_useropt_orig=$ac_useropt
  17250. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17251. + case $ac_user_opts in
  17252. + *"
  17253. +"enable_$ac_useropt"
  17254. +"*) ;;
  17255. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  17256. + ac_unrecognized_sep=', ';;
  17257. + esac
  17258. + eval enable_$ac_useropt=\$ac_optarg ;;
  17259. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  17260. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  17261. @@ -1198,22 +1214,36 @@
  17262. ac_init_version=: ;;
  17263. -with-* | --with-*)
  17264. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17265. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17266. # Reject names that are not valid shell variable names.
  17267. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17268. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17269. - { (exit 1); exit 1; }; }
  17270. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  17271. - eval with_$ac_package=\$ac_optarg ;;
  17272. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17273. + as_fn_error "invalid package name: $ac_useropt"
  17274. + ac_useropt_orig=$ac_useropt
  17275. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17276. + case $ac_user_opts in
  17277. + *"
  17278. +"with_$ac_useropt"
  17279. +"*) ;;
  17280. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  17281. + ac_unrecognized_sep=', ';;
  17282. + esac
  17283. + eval with_$ac_useropt=\$ac_optarg ;;
  17284. -without-* | --without-*)
  17285. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17286. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17287. # Reject names that are not valid shell variable names.
  17288. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17289. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17290. - { (exit 1); exit 1; }; }
  17291. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  17292. - eval with_$ac_package=no ;;
  17293. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17294. + as_fn_error "invalid package name: $ac_useropt"
  17295. + ac_useropt_orig=$ac_useropt
  17296. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17297. + case $ac_user_opts in
  17298. + *"
  17299. +"with_$ac_useropt"
  17300. +"*) ;;
  17301. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  17302. + ac_unrecognized_sep=', ';;
  17303. + esac
  17304. + eval with_$ac_useropt=no ;;
  17305. --x)
  17306. # Obsolete; use --with-x.
  17307. @@ -1233,25 +1263,25 @@
  17308. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  17309. x_libraries=$ac_optarg ;;
  17310. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  17311. -Try \`$0 --help' for more information." >&2
  17312. - { (exit 1); exit 1; }; }
  17313. + -*) as_fn_error "unrecognized option: \`$ac_option'
  17314. +Try \`$0 --help' for more information."
  17315. ;;
  17316. *=*)
  17317. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  17318. # Reject names that are not valid shell variable names.
  17319. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  17320. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  17321. - { (exit 1); exit 1; }; }
  17322. + case $ac_envvar in #(
  17323. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  17324. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  17325. + esac
  17326. eval $ac_envvar=\$ac_optarg
  17327. export $ac_envvar ;;
  17328. *)
  17329. # FIXME: should be removed in autoconf 3.0.
  17330. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17331. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17332. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17333. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17334. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17335. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  17336. ;;
  17337. @@ -1260,23 +1290,36 @@
  17338. if test -n "$ac_prev"; then
  17339. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  17340. - { echo "$as_me: error: missing argument to $ac_option" >&2
  17341. - { (exit 1); exit 1; }; }
  17342. + as_fn_error "missing argument to $ac_option"
  17343. +fi
  17344. +
  17345. +if test -n "$ac_unrecognized_opts"; then
  17346. + case $enable_option_checking in
  17347. + no) ;;
  17348. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  17349. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  17350. + esac
  17351. fi
  17352. -# Be sure to have absolute directory names.
  17353. +# Check all directory arguments for consistency.
  17354. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  17355. datadir sysconfdir sharedstatedir localstatedir includedir \
  17356. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  17357. libdir localedir mandir
  17358. do
  17359. eval ac_val=\$$ac_var
  17360. + # Remove trailing slashes.
  17361. + case $ac_val in
  17362. + */ )
  17363. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  17364. + eval $ac_var=\$ac_val;;
  17365. + esac
  17366. + # Be sure to have absolute directory names.
  17367. case $ac_val in
  17368. [\\/$]* | ?:[\\/]* ) continue;;
  17369. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  17370. esac
  17371. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17372. - { (exit 1); exit 1; }; }
  17373. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  17374. done
  17375. # There might be people who depend on the old broken behavior: `$host'
  17376. @@ -1290,7 +1333,7 @@
  17377. if test "x$host_alias" != x; then
  17378. if test "x$build_alias" = x; then
  17379. cross_compiling=maybe
  17380. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17381. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17382. If a cross compiler is detected then cross compile mode will be used." >&2
  17383. elif test "x$build_alias" != "x$host_alias"; then
  17384. cross_compiling=yes
  17385. @@ -1306,23 +1349,21 @@
  17386. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  17387. ac_ls_di=`ls -di .` &&
  17388. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  17389. - { echo "$as_me: error: Working directory cannot be determined" >&2
  17390. - { (exit 1); exit 1; }; }
  17391. + as_fn_error "working directory cannot be determined"
  17392. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  17393. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  17394. - { (exit 1); exit 1; }; }
  17395. + as_fn_error "pwd does not report name of working directory"
  17396. # Find the source files, if location was not specified.
  17397. if test -z "$srcdir"; then
  17398. ac_srcdir_defaulted=yes
  17399. # Try the directory containing this script, then the parent directory.
  17400. - ac_confdir=`$as_dirname -- "$0" ||
  17401. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17402. - X"$0" : 'X\(//\)[^/]' \| \
  17403. - X"$0" : 'X\(//\)$' \| \
  17404. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17405. -echo X"$0" |
  17406. + ac_confdir=`$as_dirname -- "$as_myself" ||
  17407. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17408. + X"$as_myself" : 'X\(//\)[^/]' \| \
  17409. + X"$as_myself" : 'X\(//\)$' \| \
  17410. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  17411. +$as_echo X"$as_myself" |
  17412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17413. s//\1/
  17414. q
  17415. @@ -1349,13 +1390,11 @@
  17416. fi
  17417. if test ! -r "$srcdir/$ac_unique_file"; then
  17418. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  17419. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  17420. - { (exit 1); exit 1; }; }
  17421. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  17422. fi
  17423. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  17424. ac_abs_confdir=`(
  17425. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  17426. - { (exit 1); exit 1; }; }
  17427. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  17428. pwd)`
  17429. # When building in place, set srcdir=.
  17430. if test "$ac_abs_confdir" = "$ac_pwd"; then
  17431. @@ -1403,9 +1442,9 @@
  17432. Installation directories:
  17433. --prefix=PREFIX install architecture-independent files in PREFIX
  17434. - [$ac_default_prefix]
  17435. + [$ac_default_prefix]
  17436. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  17437. - [PREFIX]
  17438. + [PREFIX]
  17439. By default, \`make install' will install all the files in
  17440. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  17441. @@ -1415,25 +1454,25 @@
  17442. For better control, use the options below.
  17443. Fine tuning of the installation directories:
  17444. - --bindir=DIR user executables [EPREFIX/bin]
  17445. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  17446. - --libexecdir=DIR program executables [EPREFIX/libexec]
  17447. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17448. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17449. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17450. - --libdir=DIR object code libraries [EPREFIX/lib]
  17451. - --includedir=DIR C header files [PREFIX/include]
  17452. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17453. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17454. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17455. - --infodir=DIR info documentation [DATAROOTDIR/info]
  17456. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17457. - --mandir=DIR man documentation [DATAROOTDIR/man]
  17458. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  17459. - --htmldir=DIR html documentation [DOCDIR]
  17460. - --dvidir=DIR dvi documentation [DOCDIR]
  17461. - --pdfdir=DIR pdf documentation [DOCDIR]
  17462. - --psdir=DIR ps documentation [DOCDIR]
  17463. + --bindir=DIR user executables [EPREFIX/bin]
  17464. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  17465. + --libexecdir=DIR program executables [EPREFIX/libexec]
  17466. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17467. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17468. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17469. + --libdir=DIR object code libraries [EPREFIX/lib]
  17470. + --includedir=DIR C header files [PREFIX/include]
  17471. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17472. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17473. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17474. + --infodir=DIR info documentation [DATAROOTDIR/info]
  17475. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17476. + --mandir=DIR man documentation [DATAROOTDIR/man]
  17477. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  17478. + --htmldir=DIR html documentation [DOCDIR]
  17479. + --dvidir=DIR dvi documentation [DOCDIR]
  17480. + --pdfdir=DIR pdf documentation [DOCDIR]
  17481. + --psdir=DIR ps documentation [DOCDIR]
  17482. _ACEOF
  17483. cat <<\_ACEOF
  17484. @@ -1454,6 +1493,7 @@
  17485. cat <<\_ACEOF
  17486. Optional Features:
  17487. + --disable-option-checking ignore unrecognized --enable/--with options
  17488. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  17489. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  17490. --disable-dependency-tracking speeds up one-time build
  17491. @@ -1468,28 +1508,24 @@
  17492. Optional Packages:
  17493. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  17494. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  17495. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17496. --with-pic try to use only PIC/non-PIC objects [default=use
  17497. both]
  17498. - --with-tags[=TAGS] include additional configurations [automatic]
  17499. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17500. Some influential environment variables:
  17501. CC C compiler command
  17502. CFLAGS C compiler flags
  17503. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  17504. nonstandard directory <lib dir>
  17505. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  17506. + LIBS libraries to pass to the linker, e.g. -l<library>
  17507. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  17508. you have headers in a nonstandard directory <include dir>
  17509. CPP C preprocessor
  17510. - CXX C++ compiler command
  17511. - CXXFLAGS C++ compiler flags
  17512. - CXXCPP C++ preprocessor
  17513. - F77 Fortran 77 compiler command
  17514. - FFLAGS Fortran 77 compiler flags
  17515. Use these variables to override the choices made by `configure' or to help
  17516. it to find libraries and programs with nonstandard names/locations.
  17517. +Report bugs to the package provider.
  17518. _ACEOF
  17519. ac_status=$?
  17520. fi
  17521. @@ -1497,15 +1533,17 @@
  17522. if test "$ac_init_help" = "recursive"; then
  17523. # If there are subdirs, report their specific --help.
  17524. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  17525. - test -d "$ac_dir" || continue
  17526. + test -d "$ac_dir" ||
  17527. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  17528. + continue
  17529. ac_builddir=.
  17530. case "$ac_dir" in
  17531. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17532. *)
  17533. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17534. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17535. # A ".." for each directory in $ac_dir_suffix.
  17536. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17537. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17538. case $ac_top_builddir_sub in
  17539. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17540. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17541. @@ -1541,7 +1579,7 @@
  17542. echo &&
  17543. $SHELL "$ac_srcdir/configure" --help=recursive
  17544. else
  17545. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17546. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17547. fi || ac_status=$?
  17548. cd "$ac_pwd" || { ac_status=$?; break; }
  17549. done
  17550. @@ -1551,356 +1589,941 @@
  17551. if $ac_init_version; then
  17552. cat <<\_ACEOF
  17553. configure
  17554. -generated by GNU Autoconf 2.60
  17555. +generated by GNU Autoconf 2.65
  17556. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  17557. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  17558. +Copyright (C) 2009 Free Software Foundation, Inc.
  17559. This configure script is free software; the Free Software Foundation
  17560. gives unlimited permission to copy, distribute and modify it.
  17561. _ACEOF
  17562. exit
  17563. fi
  17564. -cat >config.log <<_ACEOF
  17565. -This file contains any messages produced by compilers while
  17566. -running configure, to aid debugging if configure makes a mistake.
  17567. -It was created by $as_me, which was
  17568. -generated by GNU Autoconf 2.60. Invocation command line was
  17569. +## ------------------------ ##
  17570. +## Autoconf initialization. ##
  17571. +## ------------------------ ##
  17572. +
  17573. +# ac_fn_c_try_compile LINENO
  17574. +# --------------------------
  17575. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17576. +ac_fn_c_try_compile ()
  17577. +{
  17578. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17579. + rm -f conftest.$ac_objext
  17580. + if { { ac_try="$ac_compile"
  17581. +case "(($ac_try" in
  17582. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17583. + *) ac_try_echo=$ac_try;;
  17584. +esac
  17585. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17586. +$as_echo "$ac_try_echo"; } >&5
  17587. + (eval "$ac_compile") 2>conftest.err
  17588. + ac_status=$?
  17589. + if test -s conftest.err; then
  17590. + grep -v '^ *+' conftest.err >conftest.er1
  17591. + cat conftest.er1 >&5
  17592. + mv -f conftest.er1 conftest.err
  17593. + fi
  17594. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17595. + test $ac_status = 0; } && {
  17596. + test -z "$ac_c_werror_flag" ||
  17597. + test ! -s conftest.err
  17598. + } && test -s conftest.$ac_objext; then :
  17599. + ac_retval=0
  17600. +else
  17601. + $as_echo "$as_me: failed program was:" >&5
  17602. +sed 's/^/| /' conftest.$ac_ext >&5
  17603. - $ $0 $@
  17604. + ac_retval=1
  17605. +fi
  17606. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17607. + as_fn_set_status $ac_retval
  17608. -_ACEOF
  17609. -exec 5>>config.log
  17610. +} # ac_fn_c_try_compile
  17611. +
  17612. +# ac_fn_c_try_link LINENO
  17613. +# -----------------------
  17614. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17615. +ac_fn_c_try_link ()
  17616. {
  17617. -cat <<_ASUNAME
  17618. -## --------- ##
  17619. -## Platform. ##
  17620. -## --------- ##
  17621. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17622. + rm -f conftest.$ac_objext conftest$ac_exeext
  17623. + if { { ac_try="$ac_link"
  17624. +case "(($ac_try" in
  17625. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17626. + *) ac_try_echo=$ac_try;;
  17627. +esac
  17628. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17629. +$as_echo "$ac_try_echo"; } >&5
  17630. + (eval "$ac_link") 2>conftest.err
  17631. + ac_status=$?
  17632. + if test -s conftest.err; then
  17633. + grep -v '^ *+' conftest.err >conftest.er1
  17634. + cat conftest.er1 >&5
  17635. + mv -f conftest.er1 conftest.err
  17636. + fi
  17637. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17638. + test $ac_status = 0; } && {
  17639. + test -z "$ac_c_werror_flag" ||
  17640. + test ! -s conftest.err
  17641. + } && test -s conftest$ac_exeext && {
  17642. + test "$cross_compiling" = yes ||
  17643. + $as_test_x conftest$ac_exeext
  17644. + }; then :
  17645. + ac_retval=0
  17646. +else
  17647. + $as_echo "$as_me: failed program was:" >&5
  17648. +sed 's/^/| /' conftest.$ac_ext >&5
  17649. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  17650. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  17651. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  17652. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  17653. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  17654. + ac_retval=1
  17655. +fi
  17656. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  17657. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  17658. + # interfere with the next link command; also delete a directory that is
  17659. + # left behind by Apple's compiler. We do this before executing the actions.
  17660. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17661. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17662. + as_fn_set_status $ac_retval
  17663. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  17664. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  17665. +} # ac_fn_c_try_link
  17666. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  17667. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  17668. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  17669. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  17670. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  17671. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  17672. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  17673. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  17674. +# -------------------------------------------------------
  17675. +# Tests whether HEADER exists and can be compiled using the include files in
  17676. +# INCLUDES, setting the cache variable VAR accordingly.
  17677. +ac_fn_c_check_header_compile ()
  17678. +{
  17679. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17680. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17681. +$as_echo_n "checking for $2... " >&6; }
  17682. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17683. + $as_echo_n "(cached) " >&6
  17684. +else
  17685. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17686. +/* end confdefs.h. */
  17687. +$4
  17688. +#include <$2>
  17689. +_ACEOF
  17690. +if ac_fn_c_try_compile "$LINENO"; then :
  17691. + eval "$3=yes"
  17692. +else
  17693. + eval "$3=no"
  17694. +fi
  17695. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17696. +fi
  17697. +eval ac_res=\$$3
  17698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17699. +$as_echo "$ac_res" >&6; }
  17700. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17701. -_ASUNAME
  17702. +} # ac_fn_c_check_header_compile
  17703. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17704. -for as_dir in $PATH
  17705. -do
  17706. - IFS=$as_save_IFS
  17707. - test -z "$as_dir" && as_dir=.
  17708. - echo "PATH: $as_dir"
  17709. -done
  17710. -IFS=$as_save_IFS
  17711. +# ac_fn_c_try_cpp LINENO
  17712. +# ----------------------
  17713. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  17714. +ac_fn_c_try_cpp ()
  17715. +{
  17716. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17717. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  17718. +case "(($ac_try" in
  17719. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17720. + *) ac_try_echo=$ac_try;;
  17721. +esac
  17722. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17723. +$as_echo "$ac_try_echo"; } >&5
  17724. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  17725. + ac_status=$?
  17726. + if test -s conftest.err; then
  17727. + grep -v '^ *+' conftest.err >conftest.er1
  17728. + cat conftest.er1 >&5
  17729. + mv -f conftest.er1 conftest.err
  17730. + fi
  17731. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17732. + test $ac_status = 0; } >/dev/null && {
  17733. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17734. + test ! -s conftest.err
  17735. + }; then :
  17736. + ac_retval=0
  17737. +else
  17738. + $as_echo "$as_me: failed program was:" >&5
  17739. +sed 's/^/| /' conftest.$ac_ext >&5
  17740. -} >&5
  17741. + ac_retval=1
  17742. +fi
  17743. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17744. + as_fn_set_status $ac_retval
  17745. -cat >&5 <<_ACEOF
  17746. +} # ac_fn_c_try_cpp
  17747. +# ac_fn_c_try_run LINENO
  17748. +# ----------------------
  17749. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  17750. +# that executables *can* be run.
  17751. +ac_fn_c_try_run ()
  17752. +{
  17753. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17754. + if { { ac_try="$ac_link"
  17755. +case "(($ac_try" in
  17756. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17757. + *) ac_try_echo=$ac_try;;
  17758. +esac
  17759. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17760. +$as_echo "$ac_try_echo"; } >&5
  17761. + (eval "$ac_link") 2>&5
  17762. + ac_status=$?
  17763. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17764. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  17765. + { { case "(($ac_try" in
  17766. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17767. + *) ac_try_echo=$ac_try;;
  17768. +esac
  17769. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17770. +$as_echo "$ac_try_echo"; } >&5
  17771. + (eval "$ac_try") 2>&5
  17772. + ac_status=$?
  17773. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17774. + test $ac_status = 0; }; }; then :
  17775. + ac_retval=0
  17776. +else
  17777. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17778. + $as_echo "$as_me: failed program was:" >&5
  17779. +sed 's/^/| /' conftest.$ac_ext >&5
  17780. -## ----------- ##
  17781. -## Core tests. ##
  17782. -## ----------- ##
  17783. + ac_retval=$ac_status
  17784. +fi
  17785. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17786. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17787. + as_fn_set_status $ac_retval
  17788. -_ACEOF
  17789. +} # ac_fn_c_try_run
  17790. +# ac_fn_c_check_func LINENO FUNC VAR
  17791. +# ----------------------------------
  17792. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  17793. +ac_fn_c_check_func ()
  17794. +{
  17795. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17796. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17797. +$as_echo_n "checking for $2... " >&6; }
  17798. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17799. + $as_echo_n "(cached) " >&6
  17800. +else
  17801. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. +/* end confdefs.h. */
  17803. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  17804. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17805. +#define $2 innocuous_$2
  17806. -# Keep a trace of the command line.
  17807. -# Strip out --no-create and --no-recursion so they do not pile up.
  17808. -# Strip out --silent because we don't want to record it for future runs.
  17809. -# Also quote any args containing shell meta-characters.
  17810. -# Make two passes to allow for proper duplicate-argument suppression.
  17811. -ac_configure_args=
  17812. -ac_configure_args0=
  17813. -ac_configure_args1=
  17814. -ac_must_keep_next=false
  17815. -for ac_pass in 1 2
  17816. -do
  17817. - for ac_arg
  17818. - do
  17819. - case $ac_arg in
  17820. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  17821. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17822. - | -silent | --silent | --silen | --sile | --sil)
  17823. - continue ;;
  17824. - *\'*)
  17825. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17826. - esac
  17827. - case $ac_pass in
  17828. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  17829. - 2)
  17830. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  17831. - if test $ac_must_keep_next = true; then
  17832. - ac_must_keep_next=false # Got value, back to normal.
  17833. - else
  17834. - case $ac_arg in
  17835. - *=* | --config-cache | -C | -disable-* | --disable-* \
  17836. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  17837. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  17838. - | -with-* | --with-* | -without-* | --without-* | --x)
  17839. - case "$ac_configure_args0 " in
  17840. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  17841. - esac
  17842. - ;;
  17843. - -* ) ac_must_keep_next=true ;;
  17844. - esac
  17845. - fi
  17846. - ac_configure_args="$ac_configure_args '$ac_arg'"
  17847. - ;;
  17848. - esac
  17849. - done
  17850. -done
  17851. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  17852. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  17853. +/* System header to define __stub macros and hopefully few prototypes,
  17854. + which can conflict with char $2 (); below.
  17855. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17856. + <limits.h> exists even on freestanding compilers. */
  17857. -# When interrupted or exit'd, cleanup temporary files, and complete
  17858. -# config.log. We remove comments because anyway the quotes in there
  17859. -# would cause problems or look ugly.
  17860. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  17861. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  17862. -trap 'exit_status=$?
  17863. - # Save into config.log some information that might help in debugging.
  17864. - {
  17865. - echo
  17866. +#ifdef __STDC__
  17867. +# include <limits.h>
  17868. +#else
  17869. +# include <assert.h>
  17870. +#endif
  17871. - cat <<\_ASBOX
  17872. -## ---------------- ##
  17873. -## Cache variables. ##
  17874. -## ---------------- ##
  17875. -_ASBOX
  17876. - echo
  17877. - # The following way of writing the cache mishandles newlines in values,
  17878. -(
  17879. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  17880. - eval ac_val=\$$ac_var
  17881. - case $ac_val in #(
  17882. - *${as_nl}*)
  17883. - case $ac_var in #(
  17884. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  17885. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  17886. - esac
  17887. - case $ac_var in #(
  17888. - _ | IFS | as_nl) ;; #(
  17889. - *) $as_unset $ac_var ;;
  17890. - esac ;;
  17891. - esac
  17892. - done
  17893. - (set) 2>&1 |
  17894. - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  17895. - *${as_nl}ac_space=\ *)
  17896. - sed -n \
  17897. - "s/'\''/'\''\\\\'\'''\''/g;
  17898. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  17899. - ;; #(
  17900. - *)
  17901. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17902. - ;;
  17903. - esac |
  17904. - sort
  17905. -)
  17906. - echo
  17907. +#undef $2
  17908. - cat <<\_ASBOX
  17909. -## ----------------- ##
  17910. -## Output variables. ##
  17911. -## ----------------- ##
  17912. -_ASBOX
  17913. - echo
  17914. - for ac_var in $ac_subst_vars
  17915. - do
  17916. - eval ac_val=\$$ac_var
  17917. - case $ac_val in
  17918. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17919. - esac
  17920. - echo "$ac_var='\''$ac_val'\''"
  17921. - done | sort
  17922. - echo
  17923. +/* Override any GCC internal prototype to avoid an error.
  17924. + Use char because int might match the return type of a GCC
  17925. + builtin and then its argument prototype would still apply. */
  17926. +#ifdef __cplusplus
  17927. +extern "C"
  17928. +#endif
  17929. +char $2 ();
  17930. +/* The GNU C library defines this for functions which it implements
  17931. + to always fail with ENOSYS. Some functions are actually named
  17932. + something starting with __ and the normal name is an alias. */
  17933. +#if defined __stub_$2 || defined __stub___$2
  17934. +choke me
  17935. +#endif
  17936. - if test -n "$ac_subst_files"; then
  17937. - cat <<\_ASBOX
  17938. -## ------------------- ##
  17939. -## File substitutions. ##
  17940. -## ------------------- ##
  17941. -_ASBOX
  17942. - echo
  17943. - for ac_var in $ac_subst_files
  17944. - do
  17945. - eval ac_val=\$$ac_var
  17946. - case $ac_val in
  17947. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17948. - esac
  17949. - echo "$ac_var='\''$ac_val'\''"
  17950. - done | sort
  17951. - echo
  17952. - fi
  17953. +int
  17954. +main ()
  17955. +{
  17956. +return $2 ();
  17957. + ;
  17958. + return 0;
  17959. +}
  17960. +_ACEOF
  17961. +if ac_fn_c_try_link "$LINENO"; then :
  17962. + eval "$3=yes"
  17963. +else
  17964. + eval "$3=no"
  17965. +fi
  17966. +rm -f core conftest.err conftest.$ac_objext \
  17967. + conftest$ac_exeext conftest.$ac_ext
  17968. +fi
  17969. +eval ac_res=\$$3
  17970. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17971. +$as_echo "$ac_res" >&6; }
  17972. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17973. +
  17974. +} # ac_fn_c_check_func
  17975. +
  17976. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  17977. +# -------------------------------------------------------
  17978. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  17979. +# the include files in INCLUDES and setting the cache variable VAR
  17980. +# accordingly.
  17981. +ac_fn_c_check_header_mongrel ()
  17982. +{
  17983. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17984. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17985. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17986. +$as_echo_n "checking for $2... " >&6; }
  17987. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17988. + $as_echo_n "(cached) " >&6
  17989. +fi
  17990. +eval ac_res=\$$3
  17991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17992. +$as_echo "$ac_res" >&6; }
  17993. +else
  17994. + # Is the header compilable?
  17995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  17996. +$as_echo_n "checking $2 usability... " >&6; }
  17997. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17998. +/* end confdefs.h. */
  17999. +$4
  18000. +#include <$2>
  18001. +_ACEOF
  18002. +if ac_fn_c_try_compile "$LINENO"; then :
  18003. + ac_header_compiler=yes
  18004. +else
  18005. + ac_header_compiler=no
  18006. +fi
  18007. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  18009. +$as_echo "$ac_header_compiler" >&6; }
  18010. - if test -s confdefs.h; then
  18011. - cat <<\_ASBOX
  18012. -## ----------- ##
  18013. -## confdefs.h. ##
  18014. -## ----------- ##
  18015. -_ASBOX
  18016. - echo
  18017. - cat confdefs.h
  18018. - echo
  18019. - fi
  18020. - test "$ac_signal" != 0 &&
  18021. - echo "$as_me: caught signal $ac_signal"
  18022. - echo "$as_me: exit $exit_status"
  18023. - } >&5
  18024. - rm -f core *.core core.conftest.* &&
  18025. - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18026. - exit $exit_status
  18027. -' 0
  18028. -for ac_signal in 1 2 13 15; do
  18029. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  18030. -done
  18031. -ac_signal=0
  18032. +# Is the header present?
  18033. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  18034. +$as_echo_n "checking $2 presence... " >&6; }
  18035. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18036. +/* end confdefs.h. */
  18037. +#include <$2>
  18038. +_ACEOF
  18039. +if ac_fn_c_try_cpp "$LINENO"; then :
  18040. + ac_header_preproc=yes
  18041. +else
  18042. + ac_header_preproc=no
  18043. +fi
  18044. +rm -f conftest.err conftest.$ac_ext
  18045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18046. +$as_echo "$ac_header_preproc" >&6; }
  18047. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  18048. -rm -f -r conftest* confdefs.h
  18049. +# So? What about this header?
  18050. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18051. + yes:no: )
  18052. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18053. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18054. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18055. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18056. + ;;
  18057. + no:yes:* )
  18058. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18059. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18060. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18061. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18062. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18063. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18064. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18065. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18066. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18067. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18068. + ;;
  18069. +esac
  18070. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18071. +$as_echo_n "checking for $2... " >&6; }
  18072. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18073. + $as_echo_n "(cached) " >&6
  18074. +else
  18075. + eval "$3=\$ac_header_compiler"
  18076. +fi
  18077. +eval ac_res=\$$3
  18078. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18079. +$as_echo "$ac_res" >&6; }
  18080. +fi
  18081. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18082. -# Predefined preprocessor variables.
  18083. +} # ac_fn_c_check_header_mongrel
  18084. -cat >>confdefs.h <<_ACEOF
  18085. -#define PACKAGE_NAME "$PACKAGE_NAME"
  18086. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  18087. +# -------------------------------------------
  18088. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  18089. +# variable VAR accordingly.
  18090. +ac_fn_c_check_type ()
  18091. +{
  18092. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18093. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18094. +$as_echo_n "checking for $2... " >&6; }
  18095. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18096. + $as_echo_n "(cached) " >&6
  18097. +else
  18098. + eval "$3=no"
  18099. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18100. +/* end confdefs.h. */
  18101. +$4
  18102. +int
  18103. +main ()
  18104. +{
  18105. +if (sizeof ($2))
  18106. + return 0;
  18107. + ;
  18108. + return 0;
  18109. +}
  18110. _ACEOF
  18111. -
  18112. -
  18113. -cat >>confdefs.h <<_ACEOF
  18114. -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18115. +if ac_fn_c_try_compile "$LINENO"; then :
  18116. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. +/* end confdefs.h. */
  18118. +$4
  18119. +int
  18120. +main ()
  18121. +{
  18122. +if (sizeof (($2)))
  18123. + return 0;
  18124. + ;
  18125. + return 0;
  18126. +}
  18127. _ACEOF
  18128. +if ac_fn_c_try_compile "$LINENO"; then :
  18129. +else
  18130. + eval "$3=yes"
  18131. +fi
  18132. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18133. +fi
  18134. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18135. +fi
  18136. +eval ac_res=\$$3
  18137. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18138. +$as_echo "$ac_res" >&6; }
  18139. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18140. -cat >>confdefs.h <<_ACEOF
  18141. -#define PACKAGE_VERSION "$PACKAGE_VERSION"
  18142. -_ACEOF
  18143. +} # ac_fn_c_check_type
  18144. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  18145. +# --------------------------------------------
  18146. +# Tries to find the compile-time value of EXPR in a program that includes
  18147. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  18148. +# computed
  18149. +ac_fn_c_compute_int ()
  18150. +{
  18151. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18152. + if test "$cross_compiling" = yes; then
  18153. + # Depending upon the size, compute the lo and hi bounds.
  18154. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18155. +/* end confdefs.h. */
  18156. +$4
  18157. +int
  18158. +main ()
  18159. +{
  18160. +static int test_array [1 - 2 * !(($2) >= 0)];
  18161. +test_array [0] = 0
  18162. -cat >>confdefs.h <<_ACEOF
  18163. -#define PACKAGE_STRING "$PACKAGE_STRING"
  18164. + ;
  18165. + return 0;
  18166. +}
  18167. _ACEOF
  18168. +if ac_fn_c_try_compile "$LINENO"; then :
  18169. + ac_lo=0 ac_mid=0
  18170. + while :; do
  18171. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18172. +/* end confdefs.h. */
  18173. +$4
  18174. +int
  18175. +main ()
  18176. +{
  18177. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18178. +test_array [0] = 0
  18179. -
  18180. -cat >>confdefs.h <<_ACEOF
  18181. -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18182. + ;
  18183. + return 0;
  18184. +}
  18185. _ACEOF
  18186. +if ac_fn_c_try_compile "$LINENO"; then :
  18187. + ac_hi=$ac_mid; break
  18188. +else
  18189. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  18190. + if test $ac_lo -le $ac_mid; then
  18191. + ac_lo= ac_hi=
  18192. + break
  18193. + fi
  18194. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  18195. +fi
  18196. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18197. + done
  18198. +else
  18199. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18200. +/* end confdefs.h. */
  18201. +$4
  18202. +int
  18203. +main ()
  18204. +{
  18205. +static int test_array [1 - 2 * !(($2) < 0)];
  18206. +test_array [0] = 0
  18207. + ;
  18208. + return 0;
  18209. +}
  18210. +_ACEOF
  18211. +if ac_fn_c_try_compile "$LINENO"; then :
  18212. + ac_hi=-1 ac_mid=-1
  18213. + while :; do
  18214. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18215. +/* end confdefs.h. */
  18216. +$4
  18217. +int
  18218. +main ()
  18219. +{
  18220. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  18221. +test_array [0] = 0
  18222. -# Let the site file select an alternate cache file if it wants to.
  18223. -# Prefer explicitly selected file to automatically selected ones.
  18224. -if test -n "$CONFIG_SITE"; then
  18225. - set x "$CONFIG_SITE"
  18226. -elif test "x$prefix" != xNONE; then
  18227. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  18228. + ;
  18229. + return 0;
  18230. +}
  18231. +_ACEOF
  18232. +if ac_fn_c_try_compile "$LINENO"; then :
  18233. + ac_lo=$ac_mid; break
  18234. else
  18235. - set x "$ac_default_prefix/share/config.site" \
  18236. - "$ac_default_prefix/etc/config.site"
  18237. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  18238. + if test $ac_mid -le $ac_hi; then
  18239. + ac_lo= ac_hi=
  18240. + break
  18241. + fi
  18242. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  18243. fi
  18244. -shift
  18245. -for ac_site_file
  18246. -do
  18247. - if test -r "$ac_site_file"; then
  18248. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18249. -echo "$as_me: loading site script $ac_site_file" >&6;}
  18250. - sed 's/^/| /' "$ac_site_file" >&5
  18251. - . "$ac_site_file"
  18252. - fi
  18253. -done
  18254. -
  18255. -if test -r "$cache_file"; then
  18256. - # Some versions of bash will fail to source /dev/null (special
  18257. - # files actually), so we avoid doing that.
  18258. - if test -f "$cache_file"; then
  18259. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18260. -echo "$as_me: loading cache $cache_file" >&6;}
  18261. - case $cache_file in
  18262. - [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18263. - *) . "./$cache_file";;
  18264. - esac
  18265. - fi
  18266. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18267. + done
  18268. else
  18269. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18270. -echo "$as_me: creating cache $cache_file" >&6;}
  18271. - >$cache_file
  18272. + ac_lo= ac_hi=
  18273. fi
  18274. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. +fi
  18276. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18277. +# Binary search between lo and hi bounds.
  18278. +while test "x$ac_lo" != "x$ac_hi"; do
  18279. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  18280. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18281. +/* end confdefs.h. */
  18282. +$4
  18283. +int
  18284. +main ()
  18285. +{
  18286. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18287. +test_array [0] = 0
  18288. -# Check that the precious variables saved in the cache have kept the same
  18289. -# value.
  18290. -ac_cache_corrupted=false
  18291. -for ac_var in $ac_precious_vars; do
  18292. - eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18293. - eval ac_new_set=\$ac_env_${ac_var}_set
  18294. - eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18295. - eval ac_new_val=\$ac_env_${ac_var}_value
  18296. - case $ac_old_set,$ac_new_set in
  18297. - set,)
  18298. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18299. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18300. - ac_cache_corrupted=: ;;
  18301. - ,set)
  18302. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18303. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18304. - ac_cache_corrupted=: ;;
  18305. - ,);;
  18306. - *)
  18307. - if test "x$ac_old_val" != "x$ac_new_val"; then
  18308. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18309. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18310. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  18311. -echo "$as_me: former value: $ac_old_val" >&2;}
  18312. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  18313. -echo "$as_me: current value: $ac_new_val" >&2;}
  18314. - ac_cache_corrupted=:
  18315. - fi;;
  18316. - esac
  18317. - # Pass precious variables to config.status.
  18318. - if test "$ac_new_set" = set; then
  18319. - case $ac_new_val in
  18320. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18321. - *) ac_arg=$ac_var=$ac_new_val ;;
  18322. - esac
  18323. - case " $ac_configure_args " in
  18324. - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18325. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18326. - esac
  18327. - fi
  18328. -done
  18329. -if $ac_cache_corrupted; then
  18330. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18331. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18332. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18333. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18334. - { (exit 1); exit 1; }; }
  18335. + ;
  18336. + return 0;
  18337. +}
  18338. +_ACEOF
  18339. +if ac_fn_c_try_compile "$LINENO"; then :
  18340. + ac_hi=$ac_mid
  18341. +else
  18342. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  18343. fi
  18344. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18345. +done
  18346. +case $ac_lo in #((
  18347. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  18348. +'') ac_retval=1 ;;
  18349. +esac
  18350. + else
  18351. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. +/* end confdefs.h. */
  18353. +$4
  18354. +static long int longval () { return $2; }
  18355. +static unsigned long int ulongval () { return $2; }
  18356. +#include <stdio.h>
  18357. +#include <stdlib.h>
  18358. +int
  18359. +main ()
  18360. +{
  18361. + FILE *f = fopen ("conftest.val", "w");
  18362. + if (! f)
  18363. + return 1;
  18364. + if (($2) < 0)
  18365. + {
  18366. + long int i = longval ();
  18367. + if (i != ($2))
  18368. + return 1;
  18369. + fprintf (f, "%ld", i);
  18370. + }
  18371. + else
  18372. + {
  18373. + unsigned long int i = ulongval ();
  18374. + if (i != ($2))
  18375. + return 1;
  18376. + fprintf (f, "%lu", i);
  18377. + }
  18378. + /* Do not output a trailing newline, as this causes \r\n confusion
  18379. + on some platforms. */
  18380. + return ferror (f) || fclose (f) != 0;
  18381. + ;
  18382. + return 0;
  18383. +}
  18384. +_ACEOF
  18385. +if ac_fn_c_try_run "$LINENO"; then :
  18386. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  18387. +else
  18388. + ac_retval=1
  18389. +fi
  18390. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18391. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18392. +rm -f conftest.val
  18393. + fi
  18394. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18395. + as_fn_set_status $ac_retval
  18396. +} # ac_fn_c_compute_int
  18397. +cat >config.log <<_ACEOF
  18398. +This file contains any messages produced by compilers while
  18399. +running configure, to aid debugging if configure makes a mistake.
  18400. +It was created by $as_me, which was
  18401. +generated by GNU Autoconf 2.65. Invocation command line was
  18402. + $ $0 $@
  18403. +_ACEOF
  18404. +exec 5>>config.log
  18405. +{
  18406. +cat <<_ASUNAME
  18407. +## --------- ##
  18408. +## Platform. ##
  18409. +## --------- ##
  18410. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  18411. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  18412. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  18413. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  18414. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  18415. +
  18416. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  18417. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  18418. +
  18419. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18420. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  18421. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  18422. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  18423. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  18424. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  18425. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  18426. +
  18427. +_ASUNAME
  18428. +
  18429. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18430. +for as_dir in $PATH
  18431. +do
  18432. + IFS=$as_save_IFS
  18433. + test -z "$as_dir" && as_dir=.
  18434. + $as_echo "PATH: $as_dir"
  18435. + done
  18436. +IFS=$as_save_IFS
  18437. +
  18438. +} >&5
  18439. +
  18440. +cat >&5 <<_ACEOF
  18441. +
  18442. +
  18443. +## ----------- ##
  18444. +## Core tests. ##
  18445. +## ----------- ##
  18446. +
  18447. +_ACEOF
  18448. +
  18449. +
  18450. +# Keep a trace of the command line.
  18451. +# Strip out --no-create and --no-recursion so they do not pile up.
  18452. +# Strip out --silent because we don't want to record it for future runs.
  18453. +# Also quote any args containing shell meta-characters.
  18454. +# Make two passes to allow for proper duplicate-argument suppression.
  18455. +ac_configure_args=
  18456. +ac_configure_args0=
  18457. +ac_configure_args1=
  18458. +ac_must_keep_next=false
  18459. +for ac_pass in 1 2
  18460. +do
  18461. + for ac_arg
  18462. + do
  18463. + case $ac_arg in
  18464. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  18465. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18466. + | -silent | --silent | --silen | --sile | --sil)
  18467. + continue ;;
  18468. + *\'*)
  18469. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18470. + esac
  18471. + case $ac_pass in
  18472. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18473. + 2)
  18474. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18475. + if test $ac_must_keep_next = true; then
  18476. + ac_must_keep_next=false # Got value, back to normal.
  18477. + else
  18478. + case $ac_arg in
  18479. + *=* | --config-cache | -C | -disable-* | --disable-* \
  18480. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  18481. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  18482. + | -with-* | --with-* | -without-* | --without-* | --x)
  18483. + case "$ac_configure_args0 " in
  18484. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  18485. + esac
  18486. + ;;
  18487. + -* ) ac_must_keep_next=true ;;
  18488. + esac
  18489. + fi
  18490. + as_fn_append ac_configure_args " '$ac_arg'"
  18491. + ;;
  18492. + esac
  18493. + done
  18494. +done
  18495. +{ ac_configure_args0=; unset ac_configure_args0;}
  18496. +{ ac_configure_args1=; unset ac_configure_args1;}
  18497. +
  18498. +# When interrupted or exit'd, cleanup temporary files, and complete
  18499. +# config.log. We remove comments because anyway the quotes in there
  18500. +# would cause problems or look ugly.
  18501. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  18502. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  18503. +trap 'exit_status=$?
  18504. + # Save into config.log some information that might help in debugging.
  18505. + {
  18506. + echo
  18507. +
  18508. + cat <<\_ASBOX
  18509. +## ---------------- ##
  18510. +## Cache variables. ##
  18511. +## ---------------- ##
  18512. +_ASBOX
  18513. + echo
  18514. + # The following way of writing the cache mishandles newlines in values,
  18515. +(
  18516. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  18517. + eval ac_val=\$$ac_var
  18518. + case $ac_val in #(
  18519. + *${as_nl}*)
  18520. + case $ac_var in #(
  18521. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18522. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18523. + esac
  18524. + case $ac_var in #(
  18525. + _ | IFS | as_nl) ;; #(
  18526. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18527. + *) { eval $ac_var=; unset $ac_var;} ;;
  18528. + esac ;;
  18529. + esac
  18530. + done
  18531. + (set) 2>&1 |
  18532. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  18533. + *${as_nl}ac_space=\ *)
  18534. + sed -n \
  18535. + "s/'\''/'\''\\\\'\'''\''/g;
  18536. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  18537. + ;; #(
  18538. + *)
  18539. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18540. + ;;
  18541. + esac |
  18542. + sort
  18543. +)
  18544. + echo
  18545. +
  18546. + cat <<\_ASBOX
  18547. +## ----------------- ##
  18548. +## Output variables. ##
  18549. +## ----------------- ##
  18550. +_ASBOX
  18551. + echo
  18552. + for ac_var in $ac_subst_vars
  18553. + do
  18554. + eval ac_val=\$$ac_var
  18555. + case $ac_val in
  18556. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18557. + esac
  18558. + $as_echo "$ac_var='\''$ac_val'\''"
  18559. + done | sort
  18560. + echo
  18561. +
  18562. + if test -n "$ac_subst_files"; then
  18563. + cat <<\_ASBOX
  18564. +## ------------------- ##
  18565. +## File substitutions. ##
  18566. +## ------------------- ##
  18567. +_ASBOX
  18568. + echo
  18569. + for ac_var in $ac_subst_files
  18570. + do
  18571. + eval ac_val=\$$ac_var
  18572. + case $ac_val in
  18573. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18574. + esac
  18575. + $as_echo "$ac_var='\''$ac_val'\''"
  18576. + done | sort
  18577. + echo
  18578. + fi
  18579. +
  18580. + if test -s confdefs.h; then
  18581. + cat <<\_ASBOX
  18582. +## ----------- ##
  18583. +## confdefs.h. ##
  18584. +## ----------- ##
  18585. +_ASBOX
  18586. + echo
  18587. + cat confdefs.h
  18588. + echo
  18589. + fi
  18590. + test "$ac_signal" != 0 &&
  18591. + $as_echo "$as_me: caught signal $ac_signal"
  18592. + $as_echo "$as_me: exit $exit_status"
  18593. + } >&5
  18594. + rm -f core *.core core.conftest.* &&
  18595. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18596. + exit $exit_status
  18597. +' 0
  18598. +for ac_signal in 1 2 13 15; do
  18599. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18600. +done
  18601. +ac_signal=0
  18602. +
  18603. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  18604. +rm -f -r conftest* confdefs.h
  18605. +
  18606. +$as_echo "/* confdefs.h */" > confdefs.h
  18607. +
  18608. +# Predefined preprocessor variables.
  18609. +
  18610. +cat >>confdefs.h <<_ACEOF
  18611. +#define PACKAGE_NAME "$PACKAGE_NAME"
  18612. +_ACEOF
  18613. +cat >>confdefs.h <<_ACEOF
  18614. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18615. +_ACEOF
  18616. +
  18617. +cat >>confdefs.h <<_ACEOF
  18618. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  18619. +_ACEOF
  18620. +cat >>confdefs.h <<_ACEOF
  18621. +#define PACKAGE_STRING "$PACKAGE_STRING"
  18622. +_ACEOF
  18623. +cat >>confdefs.h <<_ACEOF
  18624. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18625. +_ACEOF
  18626. +cat >>confdefs.h <<_ACEOF
  18627. +#define PACKAGE_URL "$PACKAGE_URL"
  18628. +_ACEOF
  18629. +# Let the site file select an alternate cache file if it wants to.
  18630. +# Prefer an explicitly selected file to automatically selected ones.
  18631. +ac_site_file1=NONE
  18632. +ac_site_file2=NONE
  18633. +if test -n "$CONFIG_SITE"; then
  18634. + ac_site_file1=$CONFIG_SITE
  18635. +elif test "x$prefix" != xNONE; then
  18636. + ac_site_file1=$prefix/share/config.site
  18637. + ac_site_file2=$prefix/etc/config.site
  18638. +else
  18639. + ac_site_file1=$ac_default_prefix/share/config.site
  18640. + ac_site_file2=$ac_default_prefix/etc/config.site
  18641. +fi
  18642. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18643. +do
  18644. + test "x$ac_site_file" = xNONE && continue
  18645. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18646. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18647. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18648. + sed 's/^/| /' "$ac_site_file" >&5
  18649. + . "$ac_site_file"
  18650. + fi
  18651. +done
  18652. +if test -r "$cache_file"; then
  18653. + # Some versions of bash will fail to source /dev/null (special files
  18654. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18655. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18656. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18657. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  18658. + case $cache_file in
  18659. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18660. + *) . "./$cache_file";;
  18661. + esac
  18662. + fi
  18663. +else
  18664. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18665. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  18666. + >$cache_file
  18667. +fi
  18668. +# Check that the precious variables saved in the cache have kept the same
  18669. +# value.
  18670. +ac_cache_corrupted=false
  18671. +for ac_var in $ac_precious_vars; do
  18672. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18673. + eval ac_new_set=\$ac_env_${ac_var}_set
  18674. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18675. + eval ac_new_val=\$ac_env_${ac_var}_value
  18676. + case $ac_old_set,$ac_new_set in
  18677. + set,)
  18678. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18679. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18680. + ac_cache_corrupted=: ;;
  18681. + ,set)
  18682. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18683. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18684. + ac_cache_corrupted=: ;;
  18685. + ,);;
  18686. + *)
  18687. + if test "x$ac_old_val" != "x$ac_new_val"; then
  18688. + # differences in whitespace do not lead to failure.
  18689. + ac_old_val_w=`echo x $ac_old_val`
  18690. + ac_new_val_w=`echo x $ac_new_val`
  18691. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18692. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18693. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18694. + ac_cache_corrupted=:
  18695. + else
  18696. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18697. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18698. + eval $ac_var=\$ac_old_val
  18699. + fi
  18700. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18701. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18702. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18703. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18704. + fi;;
  18705. + esac
  18706. + # Pass precious variables to config.status.
  18707. + if test "$ac_new_set" = set; then
  18708. + case $ac_new_val in
  18709. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18710. + *) ac_arg=$ac_var=$ac_new_val ;;
  18711. + esac
  18712. + case " $ac_configure_args " in
  18713. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18714. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18715. + esac
  18716. + fi
  18717. +done
  18718. +if $ac_cache_corrupted; then
  18719. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18720. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18721. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18722. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18723. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18724. +fi
  18725. +## -------------------- ##
  18726. +## Main body of script. ##
  18727. +## -------------------- ##
  18728. ac_ext=c
  18729. ac_cpp='$CPP $CPPFLAGS'
  18730. @@ -1927,27 +2550,20 @@
  18731. VERSION=$AUDIOFILE_VERSION
  18732. -am__api_version="1.9"
  18733. +am__api_version='1.11'
  18734. +
  18735. ac_aux_dir=
  18736. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  18737. - if test -f "$ac_dir/install-sh"; then
  18738. - ac_aux_dir=$ac_dir
  18739. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18740. - break
  18741. - elif test -f "$ac_dir/install.sh"; then
  18742. - ac_aux_dir=$ac_dir
  18743. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18744. - break
  18745. - elif test -f "$ac_dir/shtool"; then
  18746. - ac_aux_dir=$ac_dir
  18747. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18748. - break
  18749. - fi
  18750. + for ac_t in install-sh install.sh shtool; do
  18751. + if test -f "$ac_dir/$ac_t"; then
  18752. + ac_aux_dir=$ac_dir
  18753. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18754. + break 2
  18755. + fi
  18756. + done
  18757. done
  18758. if test -z "$ac_aux_dir"; then
  18759. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  18760. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  18761. - { (exit 1); exit 1; }; }
  18762. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  18763. fi
  18764. # These three variables are undocumented and unsupported,
  18765. @@ -1972,22 +2588,23 @@
  18766. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18767. # OS/2's system install, which has a completely different semantic
  18768. # ./install, which can be erroneously created by make from ./install.sh.
  18769. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18770. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  18771. +# Reject install programs that cannot install multiple files.
  18772. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18773. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  18774. if test -z "$INSTALL"; then
  18775. -if test "${ac_cv_path_install+set}" = set; then
  18776. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18777. +if test "${ac_cv_path_install+set}" = set; then :
  18778. + $as_echo_n "(cached) " >&6
  18779. else
  18780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18781. for as_dir in $PATH
  18782. do
  18783. IFS=$as_save_IFS
  18784. test -z "$as_dir" && as_dir=.
  18785. - # Account for people who put trailing slashes in PATH elements.
  18786. -case $as_dir/ in
  18787. - ./ | .// | /cC/* | \
  18788. + # Account for people who put trailing slashes in PATH elements.
  18789. +case $as_dir/ in #((
  18790. + ./ | .// | /[cC]/* | \
  18791. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18792. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18793. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18794. /usr/ucb/* ) ;;
  18795. *)
  18796. # OSF1 and SCO ODT 3.0 have their own names for install.
  18797. @@ -1995,7 +2612,7 @@
  18798. # by default.
  18799. for ac_prog in ginstall scoinst install; do
  18800. for ac_exec_ext in '' $ac_executable_extensions; do
  18801. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18802. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18803. if test $ac_prog = install &&
  18804. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  18805. # AIX install. It has an incompatible calling convention.
  18806. @@ -2005,17 +2622,29 @@
  18807. # program-specific install script used by HP pwplus--don't use.
  18808. :
  18809. else
  18810. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18811. - break 3
  18812. + rm -rf conftest.one conftest.two conftest.dir
  18813. + echo one > conftest.one
  18814. + echo two > conftest.two
  18815. + mkdir conftest.dir
  18816. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  18817. + test -s conftest.one && test -s conftest.two &&
  18818. + test -s conftest.dir/conftest.one &&
  18819. + test -s conftest.dir/conftest.two
  18820. + then
  18821. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18822. + break 3
  18823. + fi
  18824. fi
  18825. fi
  18826. done
  18827. done
  18828. ;;
  18829. esac
  18830. -done
  18831. +
  18832. + done
  18833. IFS=$as_save_IFS
  18834. +rm -rf conftest.one conftest.two conftest.dir
  18835. fi
  18836. if test "${ac_cv_path_install+set}" = set; then
  18837. @@ -2028,8 +2657,8 @@
  18838. INSTALL=$ac_install_sh
  18839. fi
  18840. fi
  18841. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  18842. -echo "${ECHO_T}$INSTALL" >&6; }
  18843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18844. +$as_echo "$INSTALL" >&6; }
  18845. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18846. # It thinks the first close brace ends the variable substitution.
  18847. @@ -2039,21 +2668,34 @@
  18848. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18849. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  18850. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  18851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  18852. +$as_echo_n "checking whether build environment is sane... " >&6; }
  18853. # Just in case
  18854. sleep 1
  18855. echo timestamp > conftest.file
  18856. +# Reject unsafe characters in $srcdir or the absolute working directory
  18857. +# name. Accept space and tab only in the latter.
  18858. +am_lf='
  18859. +'
  18860. +case `pwd` in
  18861. + *[\\\"\#\$\&\'\`$am_lf]*)
  18862. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  18863. +esac
  18864. +case $srcdir in
  18865. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  18866. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  18867. +esac
  18868. +
  18869. # Do `set' in a subshell so we don't clobber the current shell's
  18870. # arguments. Must try -L first in case configure is actually a
  18871. # symlink; some systems play weird games with the mod time of symlinks
  18872. # (eg FreeBSD returns the mod time of the symlink's containing
  18873. # directory).
  18874. if (
  18875. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  18876. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  18877. if test "$*" = "X"; then
  18878. # -L didn't work.
  18879. - set X `ls -t $srcdir/configure conftest.file`
  18880. + set X `ls -t "$srcdir/configure" conftest.file`
  18881. fi
  18882. rm -f conftest.file
  18883. if test "$*" != "X $srcdir/configure conftest.file" \
  18884. @@ -2063,11 +2705,8 @@
  18885. # if, for instance, CONFIG_SHELL is bash and it inherits a
  18886. # broken ls alias from the environment. This has actually
  18887. # happened. Such a system could not be considered "sane".
  18888. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  18889. -alias in your environment" >&5
  18890. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  18891. -alias in your environment" >&2;}
  18892. - { (exit 1); exit 1; }; }
  18893. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  18894. +alias in your environment" "$LINENO" 5
  18895. fi
  18896. test "$2" = conftest.file
  18897. @@ -2076,81 +2715,206 @@
  18898. # Ok.
  18899. :
  18900. else
  18901. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  18902. -Check your system clock" >&5
  18903. -echo "$as_me: error: newly created file is older than distributed files!
  18904. -Check your system clock" >&2;}
  18905. - { (exit 1); exit 1; }; }
  18906. + as_fn_error "newly created file is older than distributed files!
  18907. +Check your system clock" "$LINENO" 5
  18908. fi
  18909. -{ echo "$as_me:$LINENO: result: yes" >&5
  18910. -echo "${ECHO_T}yes" >&6; }
  18911. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18912. +$as_echo "yes" >&6; }
  18913. test "$program_prefix" != NONE &&
  18914. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  18915. # Use a double $ so make ignores it.
  18916. test "$program_suffix" != NONE &&
  18917. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  18918. -# Double any \ or $. echo might interpret backslashes.
  18919. +# Double any \ or $.
  18920. # By default was `s,x,x', remove it if useless.
  18921. -cat <<\_ACEOF >conftest.sed
  18922. -s/[\\$]/&&/g;s/;s,x,x,$//
  18923. -_ACEOF
  18924. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  18925. -rm -f conftest.sed
  18926. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  18927. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  18928. # expand $ac_aux_dir to an absolute path
  18929. am_aux_dir=`cd $ac_aux_dir && pwd`
  18930. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  18931. +if test x"${MISSING+set}" != xset; then
  18932. + case $am_aux_dir in
  18933. + *\ * | *\ *)
  18934. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  18935. + *)
  18936. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  18937. + esac
  18938. +fi
  18939. # Use eval to expand $SHELL
  18940. if eval "$MISSING --run true"; then
  18941. am_missing_run="$MISSING --run "
  18942. else
  18943. am_missing_run=
  18944. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  18945. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18946. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  18947. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18948. fi
  18949. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  18950. - # We used to keeping the `.' as first argument, in order to
  18951. - # allow $(mkdir_p) to be used without argument. As in
  18952. - # $(mkdir_p) $(somedir)
  18953. - # where $(somedir) is conditionally defined. However this is wrong
  18954. - # for two reasons:
  18955. - # 1. if the package is installed by a user who cannot write `.'
  18956. - # make install will fail,
  18957. - # 2. the above comment should most certainly read
  18958. - # $(mkdir_p) $(DESTDIR)$(somedir)
  18959. - # so it does not work when $(somedir) is undefined and
  18960. - # $(DESTDIR) is not.
  18961. - # To support the latter case, we have to write
  18962. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  18963. - # so the `.' trick is pointless.
  18964. - mkdir_p='mkdir -p --'
  18965. -else
  18966. - # On NextStep and OpenStep, the `mkdir' command does not
  18967. - # recognize any option. It will interpret all options as
  18968. - # directories to create, and then abort because `.' already
  18969. - # exists.
  18970. - for d in ./-p ./--version;
  18971. - do
  18972. - test -d $d && rmdir $d
  18973. +if test x"${install_sh}" != xset; then
  18974. + case $am_aux_dir in
  18975. + *\ * | *\ *)
  18976. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  18977. + *)
  18978. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  18979. + esac
  18980. +fi
  18981. +
  18982. +# Installed binaries are usually stripped using `strip' when the user
  18983. +# run `make install-strip'. However `strip' might not be the right
  18984. +# tool to use in cross-compilation environments, therefore Automake
  18985. +# will honor the `STRIP' environment variable to overrule this program.
  18986. +if test "$cross_compiling" != no; then
  18987. + if test -n "$ac_tool_prefix"; then
  18988. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18989. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18991. +$as_echo_n "checking for $ac_word... " >&6; }
  18992. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18993. + $as_echo_n "(cached) " >&6
  18994. +else
  18995. + if test -n "$STRIP"; then
  18996. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18997. +else
  18998. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18999. +for as_dir in $PATH
  19000. +do
  19001. + IFS=$as_save_IFS
  19002. + test -z "$as_dir" && as_dir=.
  19003. + for ac_exec_ext in '' $ac_executable_extensions; do
  19004. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19005. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19006. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19007. + break 2
  19008. + fi
  19009. +done
  19010. + done
  19011. +IFS=$as_save_IFS
  19012. +
  19013. +fi
  19014. +fi
  19015. +STRIP=$ac_cv_prog_STRIP
  19016. +if test -n "$STRIP"; then
  19017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  19018. +$as_echo "$STRIP" >&6; }
  19019. +else
  19020. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19021. +$as_echo "no" >&6; }
  19022. +fi
  19023. +
  19024. +
  19025. +fi
  19026. +if test -z "$ac_cv_prog_STRIP"; then
  19027. + ac_ct_STRIP=$STRIP
  19028. + # Extract the first word of "strip", so it can be a program name with args.
  19029. +set dummy strip; ac_word=$2
  19030. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19031. +$as_echo_n "checking for $ac_word... " >&6; }
  19032. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  19033. + $as_echo_n "(cached) " >&6
  19034. +else
  19035. + if test -n "$ac_ct_STRIP"; then
  19036. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19037. +else
  19038. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19039. +for as_dir in $PATH
  19040. +do
  19041. + IFS=$as_save_IFS
  19042. + test -z "$as_dir" && as_dir=.
  19043. + for ac_exec_ext in '' $ac_executable_extensions; do
  19044. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19045. + ac_cv_prog_ac_ct_STRIP="strip"
  19046. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19047. + break 2
  19048. + fi
  19049. +done
  19050. + done
  19051. +IFS=$as_save_IFS
  19052. +
  19053. +fi
  19054. +fi
  19055. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19056. +if test -n "$ac_ct_STRIP"; then
  19057. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19058. +$as_echo "$ac_ct_STRIP" >&6; }
  19059. +else
  19060. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19061. +$as_echo "no" >&6; }
  19062. +fi
  19063. +
  19064. + if test "x$ac_ct_STRIP" = x; then
  19065. + STRIP=":"
  19066. + else
  19067. + case $cross_compiling:$ac_tool_warned in
  19068. +yes:)
  19069. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19070. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19071. +ac_tool_warned=yes ;;
  19072. +esac
  19073. + STRIP=$ac_ct_STRIP
  19074. + fi
  19075. +else
  19076. + STRIP="$ac_cv_prog_STRIP"
  19077. +fi
  19078. +
  19079. +fi
  19080. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  19081. +
  19082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  19083. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  19084. +if test -z "$MKDIR_P"; then
  19085. + if test "${ac_cv_path_mkdir+set}" = set; then :
  19086. + $as_echo_n "(cached) " >&6
  19087. +else
  19088. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19089. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  19090. +do
  19091. + IFS=$as_save_IFS
  19092. + test -z "$as_dir" && as_dir=.
  19093. + for ac_prog in mkdir gmkdir; do
  19094. + for ac_exec_ext in '' $ac_executable_extensions; do
  19095. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  19096. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  19097. + 'mkdir (GNU coreutils) '* | \
  19098. + 'mkdir (coreutils) '* | \
  19099. + 'mkdir (fileutils) '4.1*)
  19100. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  19101. + break 3;;
  19102. + esac
  19103. + done
  19104. + done
  19105. done
  19106. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  19107. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  19108. - mkdir_p='$(mkinstalldirs)'
  19109. +IFS=$as_save_IFS
  19110. +
  19111. +fi
  19112. +
  19113. + test -d ./--version && rmdir ./--version
  19114. + if test "${ac_cv_path_mkdir+set}" = set; then
  19115. + MKDIR_P="$ac_cv_path_mkdir -p"
  19116. else
  19117. - mkdir_p='$(install_sh) -d'
  19118. + # As a last resort, use the slow shell script. Don't cache a
  19119. + # value for MKDIR_P within a source directory, because that will
  19120. + # break other packages using the cache if that directory is
  19121. + # removed, or if the value is a relative name.
  19122. + MKDIR_P="$ac_install_sh -d"
  19123. fi
  19124. fi
  19125. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  19126. +$as_echo "$MKDIR_P" >&6; }
  19127. +
  19128. +mkdir_p="$MKDIR_P"
  19129. +case $mkdir_p in
  19130. + [\\/$]* | ?:[\\/]*) ;;
  19131. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  19132. +esac
  19133. for ac_prog in gawk mawk nawk awk
  19134. do
  19135. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19136. set dummy $ac_prog; ac_word=$2
  19137. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19138. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19139. -if test "${ac_cv_prog_AWK+set}" = set; then
  19140. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19141. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19142. +$as_echo_n "checking for $ac_word... " >&6; }
  19143. +if test "${ac_cv_prog_AWK+set}" = set; then :
  19144. + $as_echo_n "(cached) " >&6
  19145. else
  19146. if test -n "$AWK"; then
  19147. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19148. @@ -2160,36 +2924,37 @@
  19149. do
  19150. IFS=$as_save_IFS
  19151. test -z "$as_dir" && as_dir=.
  19152. - for ac_exec_ext in '' $ac_executable_extensions; do
  19153. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19154. + for ac_exec_ext in '' $ac_executable_extensions; do
  19155. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19156. ac_cv_prog_AWK="$ac_prog"
  19157. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19158. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19159. break 2
  19160. fi
  19161. done
  19162. -done
  19163. + done
  19164. IFS=$as_save_IFS
  19165. fi
  19166. fi
  19167. AWK=$ac_cv_prog_AWK
  19168. if test -n "$AWK"; then
  19169. - { echo "$as_me:$LINENO: result: $AWK" >&5
  19170. -echo "${ECHO_T}$AWK" >&6; }
  19171. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  19172. +$as_echo "$AWK" >&6; }
  19173. else
  19174. - { echo "$as_me:$LINENO: result: no" >&5
  19175. -echo "${ECHO_T}no" >&6; }
  19176. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19177. +$as_echo "no" >&6; }
  19178. fi
  19179. test -n "$AWK" && break
  19180. done
  19181. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19182. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19183. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19184. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19185. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19187. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19188. +set x ${MAKE-make}
  19189. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19190. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  19191. + $as_echo_n "(cached) " >&6
  19192. else
  19193. cat >conftest.make <<\_ACEOF
  19194. SHELL = /bin/sh
  19195. @@ -2206,12 +2971,12 @@
  19196. rm -f conftest.make
  19197. fi
  19198. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19199. - { echo "$as_me:$LINENO: result: yes" >&5
  19200. -echo "${ECHO_T}yes" >&6; }
  19201. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19202. +$as_echo "yes" >&6; }
  19203. SET_MAKE=
  19204. else
  19205. - { echo "$as_me:$LINENO: result: no" >&5
  19206. -echo "${ECHO_T}no" >&6; }
  19207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19208. +$as_echo "no" >&6; }
  19209. SET_MAKE="MAKE=${MAKE-make}"
  19210. fi
  19211. @@ -2224,12 +2989,14 @@
  19212. fi
  19213. rmdir .tst 2>/dev/null
  19214. -# test to see if srcdir already configured
  19215. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  19216. - test -f $srcdir/config.status; then
  19217. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  19218. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  19219. - { (exit 1); exit 1; }; }
  19220. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  19221. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  19222. + # is not polluted with repeated "-I."
  19223. + am__isrc=' -I$(srcdir)'
  19224. + # test to see if srcdir already configured
  19225. + if test -f $srcdir/config.status; then
  19226. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  19227. + fi
  19228. fi
  19229. # test whether we have cygpath
  19230. @@ -2272,112 +3039,6 @@
  19231. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  19232. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  19233. -
  19234. -# Installed binaries are usually stripped using `strip' when the user
  19235. -# run `make install-strip'. However `strip' might not be the right
  19236. -# tool to use in cross-compilation environments, therefore Automake
  19237. -# will honor the `STRIP' environment variable to overrule this program.
  19238. -if test "$cross_compiling" != no; then
  19239. - if test -n "$ac_tool_prefix"; then
  19240. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19241. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  19242. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19243. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19244. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19245. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19246. -else
  19247. - if test -n "$STRIP"; then
  19248. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19249. -else
  19250. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19251. -for as_dir in $PATH
  19252. -do
  19253. - IFS=$as_save_IFS
  19254. - test -z "$as_dir" && as_dir=.
  19255. - for ac_exec_ext in '' $ac_executable_extensions; do
  19256. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19257. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19258. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19259. - break 2
  19260. - fi
  19261. -done
  19262. -done
  19263. -IFS=$as_save_IFS
  19264. -
  19265. -fi
  19266. -fi
  19267. -STRIP=$ac_cv_prog_STRIP
  19268. -if test -n "$STRIP"; then
  19269. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  19270. -echo "${ECHO_T}$STRIP" >&6; }
  19271. -else
  19272. - { echo "$as_me:$LINENO: result: no" >&5
  19273. -echo "${ECHO_T}no" >&6; }
  19274. -fi
  19275. -
  19276. -
  19277. -fi
  19278. -if test -z "$ac_cv_prog_STRIP"; then
  19279. - ac_ct_STRIP=$STRIP
  19280. - # Extract the first word of "strip", so it can be a program name with args.
  19281. -set dummy strip; ac_word=$2
  19282. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19283. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19284. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  19285. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19286. -else
  19287. - if test -n "$ac_ct_STRIP"; then
  19288. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19289. -else
  19290. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19291. -for as_dir in $PATH
  19292. -do
  19293. - IFS=$as_save_IFS
  19294. - test -z "$as_dir" && as_dir=.
  19295. - for ac_exec_ext in '' $ac_executable_extensions; do
  19296. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19297. - ac_cv_prog_ac_ct_STRIP="strip"
  19298. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19299. - break 2
  19300. - fi
  19301. -done
  19302. -done
  19303. -IFS=$as_save_IFS
  19304. -
  19305. -fi
  19306. -fi
  19307. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19308. -if test -n "$ac_ct_STRIP"; then
  19309. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  19310. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  19311. -else
  19312. - { echo "$as_me:$LINENO: result: no" >&5
  19313. -echo "${ECHO_T}no" >&6; }
  19314. -fi
  19315. -
  19316. - if test "x$ac_ct_STRIP" = x; then
  19317. - STRIP=":"
  19318. - else
  19319. - case $cross_compiling:$ac_tool_warned in
  19320. -yes:)
  19321. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19322. -whose name does not start with the host triplet. If you think this
  19323. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19324. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19325. -whose name does not start with the host triplet. If you think this
  19326. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19327. -ac_tool_warned=yes ;;
  19328. -esac
  19329. - STRIP=$ac_ct_STRIP
  19330. - fi
  19331. -else
  19332. - STRIP="$ac_cv_prog_STRIP"
  19333. -fi
  19334. -
  19335. -fi
  19336. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  19337. -
  19338. # We need awk for the "check" target. The system "awk" is bad on
  19339. # some platforms.
  19340. # Always define AMTAR for backward compatibility.
  19341. @@ -2401,44 +3062,44 @@
  19342. am_make=${MAKE-make}
  19343. cat > confinc << 'END'
  19344. am__doit:
  19345. - @echo done
  19346. + @echo this is the am__doit target
  19347. .PHONY: am__doit
  19348. END
  19349. # If we don't find an include directive, just comment out the code.
  19350. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  19351. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  19352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  19353. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  19354. am__include="#"
  19355. am__quote=
  19356. _am_result=none
  19357. # First try GNU make style include.
  19358. echo "include confinc" > confmf
  19359. -# We grep out `Entering directory' and `Leaving directory'
  19360. -# messages which can occur if `w' ends up in MAKEFLAGS.
  19361. -# In particular we don't look at `^make:' because GNU make might
  19362. -# be invoked under some other name (usually "gmake"), in which
  19363. -# case it prints its new name instead of `make'.
  19364. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  19365. - am__include=include
  19366. - am__quote=
  19367. - _am_result=GNU
  19368. -fi
  19369. +# Ignore all kinds of additional output from `make'.
  19370. +case `$am_make -s -f confmf 2> /dev/null` in #(
  19371. +*the\ am__doit\ target*)
  19372. + am__include=include
  19373. + am__quote=
  19374. + _am_result=GNU
  19375. + ;;
  19376. +esac
  19377. # Now try BSD make style include.
  19378. if test "$am__include" = "#"; then
  19379. echo '.include "confinc"' > confmf
  19380. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  19381. - am__include=.include
  19382. - am__quote="\""
  19383. - _am_result=BSD
  19384. - fi
  19385. + case `$am_make -s -f confmf 2> /dev/null` in #(
  19386. + *the\ am__doit\ target*)
  19387. + am__include=.include
  19388. + am__quote="\""
  19389. + _am_result=BSD
  19390. + ;;
  19391. + esac
  19392. fi
  19393. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  19394. -echo "${ECHO_T}$_am_result" >&6; }
  19395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  19396. +$as_echo "$_am_result" >&6; }
  19397. rm -f confinc confmf
  19398. # Check whether --enable-dependency-tracking was given.
  19399. -if test "${enable_dependency_tracking+set}" = set; then
  19400. +if test "${enable_dependency_tracking+set}" = set; then :
  19401. enableval=$enable_dependency_tracking;
  19402. fi
  19403. @@ -2446,9 +3107,7 @@
  19404. am_depcomp="$ac_aux_dir/depcomp"
  19405. AMDEPBACKSLASH='\'
  19406. fi
  19407. -
  19408. -
  19409. -if test "x$enable_dependency_tracking" != xno; then
  19410. + if test "x$enable_dependency_tracking" != xno; then
  19411. AMDEP_TRUE=
  19412. AMDEP_FALSE='#'
  19413. else
  19414. @@ -2457,7 +3116,6 @@
  19415. fi
  19416. -
  19417. ac_ext=c
  19418. ac_cpp='$CPP $CPPFLAGS'
  19419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19420. @@ -2466,10 +3124,10 @@
  19421. if test -n "$ac_tool_prefix"; then
  19422. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19423. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19424. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19425. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19426. -if test "${ac_cv_prog_CC+set}" = set; then
  19427. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19429. +$as_echo_n "checking for $ac_word... " >&6; }
  19430. +if test "${ac_cv_prog_CC+set}" = set; then :
  19431. + $as_echo_n "(cached) " >&6
  19432. else
  19433. if test -n "$CC"; then
  19434. ac_cv_prog_CC="$CC" # Let the user override the test.
  19435. @@ -2479,25 +3137,25 @@
  19436. do
  19437. IFS=$as_save_IFS
  19438. test -z "$as_dir" && as_dir=.
  19439. - for ac_exec_ext in '' $ac_executable_extensions; do
  19440. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19441. + for ac_exec_ext in '' $ac_executable_extensions; do
  19442. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19443. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19444. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19445. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19446. break 2
  19447. fi
  19448. done
  19449. -done
  19450. + done
  19451. IFS=$as_save_IFS
  19452. fi
  19453. fi
  19454. CC=$ac_cv_prog_CC
  19455. if test -n "$CC"; then
  19456. - { echo "$as_me:$LINENO: result: $CC" >&5
  19457. -echo "${ECHO_T}$CC" >&6; }
  19458. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19459. +$as_echo "$CC" >&6; }
  19460. else
  19461. - { echo "$as_me:$LINENO: result: no" >&5
  19462. -echo "${ECHO_T}no" >&6; }
  19463. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19464. +$as_echo "no" >&6; }
  19465. fi
  19466. @@ -2506,10 +3164,10 @@
  19467. ac_ct_CC=$CC
  19468. # Extract the first word of "gcc", so it can be a program name with args.
  19469. set dummy gcc; ac_word=$2
  19470. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19471. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19472. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19474. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19475. +$as_echo_n "checking for $ac_word... " >&6; }
  19476. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19477. + $as_echo_n "(cached) " >&6
  19478. else
  19479. if test -n "$ac_ct_CC"; then
  19480. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19481. @@ -2519,25 +3177,25 @@
  19482. do
  19483. IFS=$as_save_IFS
  19484. test -z "$as_dir" && as_dir=.
  19485. - for ac_exec_ext in '' $ac_executable_extensions; do
  19486. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19487. + for ac_exec_ext in '' $ac_executable_extensions; do
  19488. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19489. ac_cv_prog_ac_ct_CC="gcc"
  19490. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19491. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19492. break 2
  19493. fi
  19494. done
  19495. -done
  19496. + done
  19497. IFS=$as_save_IFS
  19498. fi
  19499. fi
  19500. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19501. if test -n "$ac_ct_CC"; then
  19502. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19503. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19504. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19505. +$as_echo "$ac_ct_CC" >&6; }
  19506. else
  19507. - { echo "$as_me:$LINENO: result: no" >&5
  19508. -echo "${ECHO_T}no" >&6; }
  19509. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19510. +$as_echo "no" >&6; }
  19511. fi
  19512. if test "x$ac_ct_CC" = x; then
  19513. @@ -2545,12 +3203,8 @@
  19514. else
  19515. case $cross_compiling:$ac_tool_warned in
  19516. yes:)
  19517. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19518. -whose name does not start with the host triplet. If you think this
  19519. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19520. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19521. -whose name does not start with the host triplet. If you think this
  19522. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19523. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19524. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19525. ac_tool_warned=yes ;;
  19526. esac
  19527. CC=$ac_ct_CC
  19528. @@ -2563,10 +3217,10 @@
  19529. if test -n "$ac_tool_prefix"; then
  19530. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19531. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19532. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19533. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19534. -if test "${ac_cv_prog_CC+set}" = set; then
  19535. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19537. +$as_echo_n "checking for $ac_word... " >&6; }
  19538. +if test "${ac_cv_prog_CC+set}" = set; then :
  19539. + $as_echo_n "(cached) " >&6
  19540. else
  19541. if test -n "$CC"; then
  19542. ac_cv_prog_CC="$CC" # Let the user override the test.
  19543. @@ -2576,25 +3230,25 @@
  19544. do
  19545. IFS=$as_save_IFS
  19546. test -z "$as_dir" && as_dir=.
  19547. - for ac_exec_ext in '' $ac_executable_extensions; do
  19548. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19549. + for ac_exec_ext in '' $ac_executable_extensions; do
  19550. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19551. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19552. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19553. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19554. break 2
  19555. fi
  19556. done
  19557. -done
  19558. + done
  19559. IFS=$as_save_IFS
  19560. fi
  19561. fi
  19562. CC=$ac_cv_prog_CC
  19563. if test -n "$CC"; then
  19564. - { echo "$as_me:$LINENO: result: $CC" >&5
  19565. -echo "${ECHO_T}$CC" >&6; }
  19566. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19567. +$as_echo "$CC" >&6; }
  19568. else
  19569. - { echo "$as_me:$LINENO: result: no" >&5
  19570. -echo "${ECHO_T}no" >&6; }
  19571. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19572. +$as_echo "no" >&6; }
  19573. fi
  19574. @@ -2603,10 +3257,10 @@
  19575. if test -z "$CC"; then
  19576. # Extract the first word of "cc", so it can be a program name with args.
  19577. set dummy cc; ac_word=$2
  19578. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19579. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19580. -if test "${ac_cv_prog_CC+set}" = set; then
  19581. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19582. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19583. +$as_echo_n "checking for $ac_word... " >&6; }
  19584. +if test "${ac_cv_prog_CC+set}" = set; then :
  19585. + $as_echo_n "(cached) " >&6
  19586. else
  19587. if test -n "$CC"; then
  19588. ac_cv_prog_CC="$CC" # Let the user override the test.
  19589. @@ -2617,18 +3271,18 @@
  19590. do
  19591. IFS=$as_save_IFS
  19592. test -z "$as_dir" && as_dir=.
  19593. - for ac_exec_ext in '' $ac_executable_extensions; do
  19594. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19595. + for ac_exec_ext in '' $ac_executable_extensions; do
  19596. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19597. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19598. ac_prog_rejected=yes
  19599. continue
  19600. fi
  19601. ac_cv_prog_CC="cc"
  19602. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19603. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19604. break 2
  19605. fi
  19606. done
  19607. -done
  19608. + done
  19609. IFS=$as_save_IFS
  19610. if test $ac_prog_rejected = yes; then
  19611. @@ -2647,11 +3301,11 @@
  19612. fi
  19613. CC=$ac_cv_prog_CC
  19614. if test -n "$CC"; then
  19615. - { echo "$as_me:$LINENO: result: $CC" >&5
  19616. -echo "${ECHO_T}$CC" >&6; }
  19617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19618. +$as_echo "$CC" >&6; }
  19619. else
  19620. - { echo "$as_me:$LINENO: result: no" >&5
  19621. -echo "${ECHO_T}no" >&6; }
  19622. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19623. +$as_echo "no" >&6; }
  19624. fi
  19625. @@ -2662,10 +3316,10 @@
  19626. do
  19627. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19628. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19629. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19630. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19631. -if test "${ac_cv_prog_CC+set}" = set; then
  19632. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19634. +$as_echo_n "checking for $ac_word... " >&6; }
  19635. +if test "${ac_cv_prog_CC+set}" = set; then :
  19636. + $as_echo_n "(cached) " >&6
  19637. else
  19638. if test -n "$CC"; then
  19639. ac_cv_prog_CC="$CC" # Let the user override the test.
  19640. @@ -2675,25 +3329,25 @@
  19641. do
  19642. IFS=$as_save_IFS
  19643. test -z "$as_dir" && as_dir=.
  19644. - for ac_exec_ext in '' $ac_executable_extensions; do
  19645. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19646. + for ac_exec_ext in '' $ac_executable_extensions; do
  19647. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19648. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19649. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19650. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19651. break 2
  19652. fi
  19653. done
  19654. -done
  19655. + done
  19656. IFS=$as_save_IFS
  19657. fi
  19658. fi
  19659. CC=$ac_cv_prog_CC
  19660. if test -n "$CC"; then
  19661. - { echo "$as_me:$LINENO: result: $CC" >&5
  19662. -echo "${ECHO_T}$CC" >&6; }
  19663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19664. +$as_echo "$CC" >&6; }
  19665. else
  19666. - { echo "$as_me:$LINENO: result: no" >&5
  19667. -echo "${ECHO_T}no" >&6; }
  19668. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19669. +$as_echo "no" >&6; }
  19670. fi
  19671. @@ -2706,10 +3360,10 @@
  19672. do
  19673. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19674. set dummy $ac_prog; ac_word=$2
  19675. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19676. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19677. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19678. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19680. +$as_echo_n "checking for $ac_word... " >&6; }
  19681. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19682. + $as_echo_n "(cached) " >&6
  19683. else
  19684. if test -n "$ac_ct_CC"; then
  19685. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19686. @@ -2719,25 +3373,25 @@
  19687. do
  19688. IFS=$as_save_IFS
  19689. test -z "$as_dir" && as_dir=.
  19690. - for ac_exec_ext in '' $ac_executable_extensions; do
  19691. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19692. + for ac_exec_ext in '' $ac_executable_extensions; do
  19693. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19694. ac_cv_prog_ac_ct_CC="$ac_prog"
  19695. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19696. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19697. break 2
  19698. fi
  19699. done
  19700. -done
  19701. + done
  19702. IFS=$as_save_IFS
  19703. fi
  19704. fi
  19705. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19706. if test -n "$ac_ct_CC"; then
  19707. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19708. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19709. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19710. +$as_echo "$ac_ct_CC" >&6; }
  19711. else
  19712. - { echo "$as_me:$LINENO: result: no" >&5
  19713. -echo "${ECHO_T}no" >&6; }
  19714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19715. +$as_echo "no" >&6; }
  19716. fi
  19717. @@ -2749,12 +3403,8 @@
  19718. else
  19719. case $cross_compiling:$ac_tool_warned in
  19720. yes:)
  19721. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19722. -whose name does not start with the host triplet. If you think this
  19723. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19724. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19725. -whose name does not start with the host triplet. If you think this
  19726. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19728. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19729. ac_tool_warned=yes ;;
  19730. esac
  19731. CC=$ac_ct_CC
  19732. @@ -2764,51 +3414,37 @@
  19733. fi
  19734. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  19735. -See \`config.log' for more details." >&5
  19736. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  19737. -See \`config.log' for more details." >&2;}
  19738. - { (exit 1); exit 1; }; }
  19739. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19740. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19741. +as_fn_error "no acceptable C compiler found in \$PATH
  19742. +See \`config.log' for more details." "$LINENO" 5; }
  19743. # Provide some information about the compiler.
  19744. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  19745. -ac_compiler=`set X $ac_compile; echo $2`
  19746. -{ (ac_try="$ac_compiler --version >&5"
  19747. -case "(($ac_try" in
  19748. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19749. - *) ac_try_echo=$ac_try;;
  19750. -esac
  19751. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19752. - (eval "$ac_compiler --version >&5") 2>&5
  19753. - ac_status=$?
  19754. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19755. - (exit $ac_status); }
  19756. -{ (ac_try="$ac_compiler -v >&5"
  19757. -case "(($ac_try" in
  19758. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19759. - *) ac_try_echo=$ac_try;;
  19760. -esac
  19761. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19762. - (eval "$ac_compiler -v >&5") 2>&5
  19763. - ac_status=$?
  19764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19765. - (exit $ac_status); }
  19766. -{ (ac_try="$ac_compiler -V >&5"
  19767. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19768. +set X $ac_compile
  19769. +ac_compiler=$2
  19770. +for ac_option in --version -v -V -qversion; do
  19771. + { { ac_try="$ac_compiler $ac_option >&5"
  19772. case "(($ac_try" in
  19773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19774. *) ac_try_echo=$ac_try;;
  19775. esac
  19776. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19777. - (eval "$ac_compiler -V >&5") 2>&5
  19778. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19779. +$as_echo "$ac_try_echo"; } >&5
  19780. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19781. ac_status=$?
  19782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19783. - (exit $ac_status); }
  19784. + if test -s conftest.err; then
  19785. + sed '10a\
  19786. +... rest of stderr output deleted ...
  19787. + 10q' conftest.err >conftest.er1
  19788. + cat conftest.er1 >&5
  19789. + fi
  19790. + rm -f conftest.er1 conftest.err
  19791. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19792. + test $ac_status = 0; }
  19793. +done
  19794. -cat >conftest.$ac_ext <<_ACEOF
  19795. -/* confdefs.h. */
  19796. -_ACEOF
  19797. -cat confdefs.h >>conftest.$ac_ext
  19798. -cat >>conftest.$ac_ext <<_ACEOF
  19799. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19800. /* end confdefs.h. */
  19801. int
  19802. @@ -2820,59 +3456,55 @@
  19803. }
  19804. _ACEOF
  19805. ac_clean_files_save=$ac_clean_files
  19806. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  19807. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  19808. # Try to create an executable without -o first, disregard a.out.
  19809. # It will help us diagnose broken compilers, and finding out an intuition
  19810. # of exeext.
  19811. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19812. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  19813. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19814. -#
  19815. -# List of possible output files, starting from the most likely.
  19816. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  19817. -# only as a last resort. b.out is created by i960 compilers.
  19818. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  19819. -#
  19820. -# The IRIX 6 linker writes into existing files which may not be
  19821. -# executable, retaining their permissions. Remove them first so a
  19822. -# subsequent execution test works.
  19823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  19824. +$as_echo_n "checking whether the C compiler works... " >&6; }
  19825. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19826. +
  19827. +# The possible output files:
  19828. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  19829. +
  19830. ac_rmfiles=
  19831. for ac_file in $ac_files
  19832. do
  19833. case $ac_file in
  19834. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  19835. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19836. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  19837. esac
  19838. done
  19839. rm -f $ac_rmfiles
  19840. -if { (ac_try="$ac_link_default"
  19841. +if { { ac_try="$ac_link_default"
  19842. case "(($ac_try" in
  19843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19844. *) ac_try_echo=$ac_try;;
  19845. esac
  19846. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19847. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19848. +$as_echo "$ac_try_echo"; } >&5
  19849. (eval "$ac_link_default") 2>&5
  19850. ac_status=$?
  19851. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19852. - (exit $ac_status); }; then
  19853. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19854. + test $ac_status = 0; }; then :
  19855. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  19856. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  19857. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  19858. # so that the user can short-circuit this test for compilers unknown to
  19859. # Autoconf.
  19860. -for ac_file in $ac_files
  19861. +for ac_file in $ac_files ''
  19862. do
  19863. test -f "$ac_file" || continue
  19864. case $ac_file in
  19865. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  19866. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  19867. ;;
  19868. [ab].out )
  19869. # We found the default executable, but exeext='' is most
  19870. # certainly right.
  19871. break;;
  19872. *.* )
  19873. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19874. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19875. then :; else
  19876. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19877. fi
  19878. @@ -2889,76 +3521,44 @@
  19879. test "$ac_cv_exeext" = no && ac_cv_exeext=
  19880. else
  19881. - echo "$as_me: failed program was:" >&5
  19882. -sed 's/^/| /' conftest.$ac_ext >&5
  19883. -
  19884. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  19885. -See \`config.log' for more details." >&5
  19886. -echo "$as_me: error: C compiler cannot create executables
  19887. -See \`config.log' for more details." >&2;}
  19888. - { (exit 77); exit 77; }; }
  19889. + ac_file=''
  19890. fi
  19891. -
  19892. +if test -z "$ac_file"; then :
  19893. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19894. +$as_echo "no" >&6; }
  19895. +$as_echo "$as_me: failed program was:" >&5
  19896. +sed 's/^/| /' conftest.$ac_ext >&5
  19897. +
  19898. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19899. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19900. +{ as_fn_set_status 77
  19901. +as_fn_error "C compiler cannot create executables
  19902. +See \`config.log' for more details." "$LINENO" 5; }; }
  19903. +else
  19904. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19905. +$as_echo "yes" >&6; }
  19906. +fi
  19907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  19908. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  19909. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  19910. +$as_echo "$ac_file" >&6; }
  19911. ac_exeext=$ac_cv_exeext
  19912. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  19913. -echo "${ECHO_T}$ac_file" >&6; }
  19914. -# Check that the compiler produces executables we can run. If not, either
  19915. -# the compiler is broken, or we cross compile.
  19916. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  19917. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  19918. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  19919. -# If not cross compiling, check that we can run a simple program.
  19920. -if test "$cross_compiling" != yes; then
  19921. - if { ac_try='./$ac_file'
  19922. - { (case "(($ac_try" in
  19923. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  19924. +ac_clean_files=$ac_clean_files_save
  19925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  19926. +$as_echo_n "checking for suffix of executables... " >&6; }
  19927. +if { { ac_try="$ac_link"
  19928. +case "(($ac_try" in
  19929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19930. *) ac_try_echo=$ac_try;;
  19931. esac
  19932. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19933. - (eval "$ac_try") 2>&5
  19934. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19935. +$as_echo "$ac_try_echo"; } >&5
  19936. + (eval "$ac_link") 2>&5
  19937. ac_status=$?
  19938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19939. - (exit $ac_status); }; }; then
  19940. - cross_compiling=no
  19941. - else
  19942. - if test "$cross_compiling" = maybe; then
  19943. - cross_compiling=yes
  19944. - else
  19945. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  19946. -If you meant to cross compile, use \`--host'.
  19947. -See \`config.log' for more details." >&5
  19948. -echo "$as_me: error: cannot run C compiled programs.
  19949. -If you meant to cross compile, use \`--host'.
  19950. -See \`config.log' for more details." >&2;}
  19951. - { (exit 1); exit 1; }; }
  19952. - fi
  19953. - fi
  19954. -fi
  19955. -{ echo "$as_me:$LINENO: result: yes" >&5
  19956. -echo "${ECHO_T}yes" >&6; }
  19957. -
  19958. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  19959. -ac_clean_files=$ac_clean_files_save
  19960. -# Check that the compiler produces executables we can run. If not, either
  19961. -# the compiler is broken, or we cross compile.
  19962. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  19963. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  19964. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  19965. -echo "${ECHO_T}$cross_compiling" >&6; }
  19966. -
  19967. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  19968. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  19969. -if { (ac_try="$ac_link"
  19970. -case "(($ac_try" in
  19971. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19972. - *) ac_try_echo=$ac_try;;
  19973. -esac
  19974. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19975. - (eval "$ac_link") 2>&5
  19976. - ac_status=$?
  19977. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19978. - (exit $ac_status); }; then
  19979. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19980. + test $ac_status = 0; }; then :
  19981. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  19982. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  19983. # work properly (i.e., refer to `conftest.exe'), while it won't with
  19984. @@ -2966,37 +3566,90 @@
  19985. for ac_file in conftest.exe conftest conftest.*; do
  19986. test -f "$ac_file" || continue
  19987. case $ac_file in
  19988. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  19989. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19990. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19991. break;;
  19992. * ) break;;
  19993. esac
  19994. done
  19995. else
  19996. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  19997. -See \`config.log' for more details." >&5
  19998. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  19999. -See \`config.log' for more details." >&2;}
  20000. - { (exit 1); exit 1; }; }
  20001. -fi
  20002. -
  20003. -rm -f conftest$ac_cv_exeext
  20004. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  20005. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  20006. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20007. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20008. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  20009. +See \`config.log' for more details." "$LINENO" 5; }
  20010. +fi
  20011. +rm -f conftest conftest$ac_cv_exeext
  20012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  20013. +$as_echo "$ac_cv_exeext" >&6; }
  20014. rm -f conftest.$ac_ext
  20015. EXEEXT=$ac_cv_exeext
  20016. ac_exeext=$EXEEXT
  20017. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  20018. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  20019. -if test "${ac_cv_objext+set}" = set; then
  20020. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20021. -else
  20022. - cat >conftest.$ac_ext <<_ACEOF
  20023. -/* confdefs.h. */
  20024. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20025. +/* end confdefs.h. */
  20026. +#include <stdio.h>
  20027. +int
  20028. +main ()
  20029. +{
  20030. +FILE *f = fopen ("conftest.out", "w");
  20031. + return ferror (f) || fclose (f) != 0;
  20032. +
  20033. + ;
  20034. + return 0;
  20035. +}
  20036. _ACEOF
  20037. -cat confdefs.h >>conftest.$ac_ext
  20038. -cat >>conftest.$ac_ext <<_ACEOF
  20039. +ac_clean_files="$ac_clean_files conftest.out"
  20040. +# Check that the compiler produces executables we can run. If not, either
  20041. +# the compiler is broken, or we cross compile.
  20042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  20043. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  20044. +if test "$cross_compiling" != yes; then
  20045. + { { ac_try="$ac_link"
  20046. +case "(($ac_try" in
  20047. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20048. + *) ac_try_echo=$ac_try;;
  20049. +esac
  20050. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20051. +$as_echo "$ac_try_echo"; } >&5
  20052. + (eval "$ac_link") 2>&5
  20053. + ac_status=$?
  20054. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20055. + test $ac_status = 0; }
  20056. + if { ac_try='./conftest$ac_cv_exeext'
  20057. + { { case "(($ac_try" in
  20058. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20059. + *) ac_try_echo=$ac_try;;
  20060. +esac
  20061. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20062. +$as_echo "$ac_try_echo"; } >&5
  20063. + (eval "$ac_try") 2>&5
  20064. + ac_status=$?
  20065. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20066. + test $ac_status = 0; }; }; then
  20067. + cross_compiling=no
  20068. + else
  20069. + if test "$cross_compiling" = maybe; then
  20070. + cross_compiling=yes
  20071. + else
  20072. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20073. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20074. +as_fn_error "cannot run C compiled programs.
  20075. +If you meant to cross compile, use \`--host'.
  20076. +See \`config.log' for more details." "$LINENO" 5; }
  20077. + fi
  20078. + fi
  20079. +fi
  20080. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  20081. +$as_echo "$cross_compiling" >&6; }
  20082. +
  20083. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  20084. +ac_clean_files=$ac_clean_files_save
  20085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  20086. +$as_echo_n "checking for suffix of object files... " >&6; }
  20087. +if test "${ac_cv_objext+set}" = set; then :
  20088. + $as_echo_n "(cached) " >&6
  20089. +else
  20090. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20091. /* end confdefs.h. */
  20092. int
  20093. @@ -3008,51 +3661,46 @@
  20094. }
  20095. _ACEOF
  20096. rm -f conftest.o conftest.obj
  20097. -if { (ac_try="$ac_compile"
  20098. +if { { ac_try="$ac_compile"
  20099. case "(($ac_try" in
  20100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20101. *) ac_try_echo=$ac_try;;
  20102. esac
  20103. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20104. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20105. +$as_echo "$ac_try_echo"; } >&5
  20106. (eval "$ac_compile") 2>&5
  20107. ac_status=$?
  20108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20109. - (exit $ac_status); }; then
  20110. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20111. + test $ac_status = 0; }; then :
  20112. for ac_file in conftest.o conftest.obj conftest.*; do
  20113. test -f "$ac_file" || continue;
  20114. case $ac_file in
  20115. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  20116. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  20117. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  20118. break;;
  20119. esac
  20120. done
  20121. else
  20122. - echo "$as_me: failed program was:" >&5
  20123. + $as_echo "$as_me: failed program was:" >&5
  20124. sed 's/^/| /' conftest.$ac_ext >&5
  20125. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  20126. -See \`config.log' for more details." >&5
  20127. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  20128. -See \`config.log' for more details." >&2;}
  20129. - { (exit 1); exit 1; }; }
  20130. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20131. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20132. +as_fn_error "cannot compute suffix of object files: cannot compile
  20133. +See \`config.log' for more details." "$LINENO" 5; }
  20134. fi
  20135. -
  20136. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  20137. fi
  20138. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  20139. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  20140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  20141. +$as_echo "$ac_cv_objext" >&6; }
  20142. OBJEXT=$ac_cv_objext
  20143. ac_objext=$OBJEXT
  20144. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  20145. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  20146. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  20147. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20148. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  20149. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  20150. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  20151. + $as_echo_n "(cached) " >&6
  20152. else
  20153. - cat >conftest.$ac_ext <<_ACEOF
  20154. -/* confdefs.h. */
  20155. -_ACEOF
  20156. -cat confdefs.h >>conftest.$ac_ext
  20157. -cat >>conftest.$ac_ext <<_ACEOF
  20158. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20159. /* end confdefs.h. */
  20160. int
  20161. @@ -3066,71 +3714,34 @@
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. -rm -f conftest.$ac_objext
  20166. -if { (ac_try="$ac_compile"
  20167. -case "(($ac_try" in
  20168. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20169. - *) ac_try_echo=$ac_try;;
  20170. -esac
  20171. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20172. - (eval "$ac_compile") 2>conftest.er1
  20173. - ac_status=$?
  20174. - grep -v '^ *+' conftest.er1 >conftest.err
  20175. - rm -f conftest.er1
  20176. - cat conftest.err >&5
  20177. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20178. - (exit $ac_status); } &&
  20179. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20180. - { (case "(($ac_try" in
  20181. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20182. - *) ac_try_echo=$ac_try;;
  20183. -esac
  20184. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20185. - (eval "$ac_try") 2>&5
  20186. - ac_status=$?
  20187. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20188. - (exit $ac_status); }; } &&
  20189. - { ac_try='test -s conftest.$ac_objext'
  20190. - { (case "(($ac_try" in
  20191. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20192. - *) ac_try_echo=$ac_try;;
  20193. -esac
  20194. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20195. - (eval "$ac_try") 2>&5
  20196. - ac_status=$?
  20197. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20198. - (exit $ac_status); }; }; then
  20199. +if ac_fn_c_try_compile "$LINENO"; then :
  20200. ac_compiler_gnu=yes
  20201. else
  20202. - echo "$as_me: failed program was:" >&5
  20203. -sed 's/^/| /' conftest.$ac_ext >&5
  20204. -
  20205. - ac_compiler_gnu=no
  20206. + ac_compiler_gnu=no
  20207. fi
  20208. -
  20209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20210. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20211. fi
  20212. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  20213. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  20214. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  20215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  20216. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  20217. +if test $ac_compiler_gnu = yes; then
  20218. + GCC=yes
  20219. +else
  20220. + GCC=
  20221. +fi
  20222. ac_test_CFLAGS=${CFLAGS+set}
  20223. ac_save_CFLAGS=$CFLAGS
  20224. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  20225. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  20226. -if test "${ac_cv_prog_cc_g+set}" = set; then
  20227. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20228. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  20229. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  20230. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  20231. + $as_echo_n "(cached) " >&6
  20232. else
  20233. ac_save_c_werror_flag=$ac_c_werror_flag
  20234. ac_c_werror_flag=yes
  20235. ac_cv_prog_cc_g=no
  20236. CFLAGS="-g"
  20237. - cat >conftest.$ac_ext <<_ACEOF
  20238. -/* confdefs.h. */
  20239. -_ACEOF
  20240. -cat confdefs.h >>conftest.$ac_ext
  20241. -cat >>conftest.$ac_ext <<_ACEOF
  20242. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20243. /* end confdefs.h. */
  20244. int
  20245. @@ -3141,51 +3752,11 @@
  20246. return 0;
  20247. }
  20248. _ACEOF
  20249. -rm -f conftest.$ac_objext
  20250. -if { (ac_try="$ac_compile"
  20251. -case "(($ac_try" in
  20252. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20253. - *) ac_try_echo=$ac_try;;
  20254. -esac
  20255. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20256. - (eval "$ac_compile") 2>conftest.er1
  20257. - ac_status=$?
  20258. - grep -v '^ *+' conftest.er1 >conftest.err
  20259. - rm -f conftest.er1
  20260. - cat conftest.err >&5
  20261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20262. - (exit $ac_status); } &&
  20263. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20264. - { (case "(($ac_try" in
  20265. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20266. - *) ac_try_echo=$ac_try;;
  20267. -esac
  20268. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20269. - (eval "$ac_try") 2>&5
  20270. - ac_status=$?
  20271. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20272. - (exit $ac_status); }; } &&
  20273. - { ac_try='test -s conftest.$ac_objext'
  20274. - { (case "(($ac_try" in
  20275. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20276. - *) ac_try_echo=$ac_try;;
  20277. -esac
  20278. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20279. - (eval "$ac_try") 2>&5
  20280. - ac_status=$?
  20281. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20282. - (exit $ac_status); }; }; then
  20283. +if ac_fn_c_try_compile "$LINENO"; then :
  20284. ac_cv_prog_cc_g=yes
  20285. else
  20286. - echo "$as_me: failed program was:" >&5
  20287. -sed 's/^/| /' conftest.$ac_ext >&5
  20288. -
  20289. - CFLAGS=""
  20290. - cat >conftest.$ac_ext <<_ACEOF
  20291. -/* confdefs.h. */
  20292. -_ACEOF
  20293. -cat confdefs.h >>conftest.$ac_ext
  20294. -cat >>conftest.$ac_ext <<_ACEOF
  20295. + CFLAGS=""
  20296. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20297. /* end confdefs.h. */
  20298. int
  20299. @@ -3196,52 +3767,12 @@
  20300. return 0;
  20301. }
  20302. _ACEOF
  20303. -rm -f conftest.$ac_objext
  20304. -if { (ac_try="$ac_compile"
  20305. -case "(($ac_try" in
  20306. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20307. - *) ac_try_echo=$ac_try;;
  20308. -esac
  20309. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20310. - (eval "$ac_compile") 2>conftest.er1
  20311. - ac_status=$?
  20312. - grep -v '^ *+' conftest.er1 >conftest.err
  20313. - rm -f conftest.er1
  20314. - cat conftest.err >&5
  20315. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20316. - (exit $ac_status); } &&
  20317. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20318. - { (case "(($ac_try" in
  20319. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20320. - *) ac_try_echo=$ac_try;;
  20321. -esac
  20322. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20323. - (eval "$ac_try") 2>&5
  20324. - ac_status=$?
  20325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20326. - (exit $ac_status); }; } &&
  20327. - { ac_try='test -s conftest.$ac_objext'
  20328. - { (case "(($ac_try" in
  20329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20330. - *) ac_try_echo=$ac_try;;
  20331. -esac
  20332. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20333. - (eval "$ac_try") 2>&5
  20334. - ac_status=$?
  20335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20336. - (exit $ac_status); }; }; then
  20337. - :
  20338. -else
  20339. - echo "$as_me: failed program was:" >&5
  20340. -sed 's/^/| /' conftest.$ac_ext >&5
  20341. +if ac_fn_c_try_compile "$LINENO"; then :
  20342. - ac_c_werror_flag=$ac_save_c_werror_flag
  20343. +else
  20344. + ac_c_werror_flag=$ac_save_c_werror_flag
  20345. CFLAGS="-g"
  20346. - cat >conftest.$ac_ext <<_ACEOF
  20347. -/* confdefs.h. */
  20348. -_ACEOF
  20349. -cat confdefs.h >>conftest.$ac_ext
  20350. -cat >>conftest.$ac_ext <<_ACEOF
  20351. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20352. /* end confdefs.h. */
  20353. int
  20354. @@ -3252,59 +3783,18 @@
  20355. return 0;
  20356. }
  20357. _ACEOF
  20358. -rm -f conftest.$ac_objext
  20359. -if { (ac_try="$ac_compile"
  20360. -case "(($ac_try" in
  20361. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20362. - *) ac_try_echo=$ac_try;;
  20363. -esac
  20364. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20365. - (eval "$ac_compile") 2>conftest.er1
  20366. - ac_status=$?
  20367. - grep -v '^ *+' conftest.er1 >conftest.err
  20368. - rm -f conftest.er1
  20369. - cat conftest.err >&5
  20370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20371. - (exit $ac_status); } &&
  20372. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20373. - { (case "(($ac_try" in
  20374. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20375. - *) ac_try_echo=$ac_try;;
  20376. -esac
  20377. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20378. - (eval "$ac_try") 2>&5
  20379. - ac_status=$?
  20380. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20381. - (exit $ac_status); }; } &&
  20382. - { ac_try='test -s conftest.$ac_objext'
  20383. - { (case "(($ac_try" in
  20384. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20385. - *) ac_try_echo=$ac_try;;
  20386. -esac
  20387. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20388. - (eval "$ac_try") 2>&5
  20389. - ac_status=$?
  20390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20391. - (exit $ac_status); }; }; then
  20392. +if ac_fn_c_try_compile "$LINENO"; then :
  20393. ac_cv_prog_cc_g=yes
  20394. -else
  20395. - echo "$as_me: failed program was:" >&5
  20396. -sed 's/^/| /' conftest.$ac_ext >&5
  20397. -
  20398. -
  20399. fi
  20400. -
  20401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20402. fi
  20403. -
  20404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20405. fi
  20406. -
  20407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20408. ac_c_werror_flag=$ac_save_c_werror_flag
  20409. fi
  20410. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20411. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  20412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  20413. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  20414. if test "$ac_test_CFLAGS" = set; then
  20415. CFLAGS=$ac_save_CFLAGS
  20416. elif test $ac_cv_prog_cc_g = yes; then
  20417. @@ -3320,18 +3810,14 @@
  20418. CFLAGS=
  20419. fi
  20420. fi
  20421. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  20422. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  20423. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  20424. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  20426. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  20427. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  20428. + $as_echo_n "(cached) " >&6
  20429. else
  20430. ac_cv_prog_cc_c89=no
  20431. ac_save_CC=$CC
  20432. -cat >conftest.$ac_ext <<_ACEOF
  20433. -/* confdefs.h. */
  20434. -_ACEOF
  20435. -cat confdefs.h >>conftest.$ac_ext
  20436. -cat >>conftest.$ac_ext <<_ACEOF
  20437. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20438. /* end confdefs.h. */
  20439. #include <stdarg.h>
  20440. #include <stdio.h>
  20441. @@ -3388,48 +3874,9 @@
  20442. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20443. do
  20444. CC="$ac_save_CC $ac_arg"
  20445. - rm -f conftest.$ac_objext
  20446. -if { (ac_try="$ac_compile"
  20447. -case "(($ac_try" in
  20448. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20449. - *) ac_try_echo=$ac_try;;
  20450. -esac
  20451. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20452. - (eval "$ac_compile") 2>conftest.er1
  20453. - ac_status=$?
  20454. - grep -v '^ *+' conftest.er1 >conftest.err
  20455. - rm -f conftest.er1
  20456. - cat conftest.err >&5
  20457. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20458. - (exit $ac_status); } &&
  20459. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20460. - { (case "(($ac_try" in
  20461. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20462. - *) ac_try_echo=$ac_try;;
  20463. -esac
  20464. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20465. - (eval "$ac_try") 2>&5
  20466. - ac_status=$?
  20467. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20468. - (exit $ac_status); }; } &&
  20469. - { ac_try='test -s conftest.$ac_objext'
  20470. - { (case "(($ac_try" in
  20471. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20472. - *) ac_try_echo=$ac_try;;
  20473. -esac
  20474. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20475. - (eval "$ac_try") 2>&5
  20476. - ac_status=$?
  20477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20478. - (exit $ac_status); }; }; then
  20479. + if ac_fn_c_try_compile "$LINENO"; then :
  20480. ac_cv_prog_cc_c89=$ac_arg
  20481. -else
  20482. - echo "$as_me: failed program was:" >&5
  20483. -sed 's/^/| /' conftest.$ac_ext >&5
  20484. -
  20485. -
  20486. fi
  20487. -
  20488. rm -f core conftest.err conftest.$ac_objext
  20489. test "x$ac_cv_prog_cc_c89" != "xno" && break
  20490. done
  20491. @@ -3440,17 +3887,19 @@
  20492. # AC_CACHE_VAL
  20493. case "x$ac_cv_prog_cc_c89" in
  20494. x)
  20495. - { echo "$as_me:$LINENO: result: none needed" >&5
  20496. -echo "${ECHO_T}none needed" >&6; } ;;
  20497. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20498. +$as_echo "none needed" >&6; } ;;
  20499. xno)
  20500. - { echo "$as_me:$LINENO: result: unsupported" >&5
  20501. -echo "${ECHO_T}unsupported" >&6; } ;;
  20502. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20503. +$as_echo "unsupported" >&6; } ;;
  20504. *)
  20505. CC="$CC $ac_cv_prog_cc_c89"
  20506. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  20507. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  20508. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  20509. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  20510. esac
  20511. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  20512. +fi
  20513. ac_ext=c
  20514. ac_cpp='$CPP $CPPFLAGS'
  20515. @@ -3460,10 +3909,10 @@
  20516. depcc="$CC" am_compiler_list=
  20517. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20518. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  20519. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20520. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20522. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  20523. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20524. + $as_echo_n "(cached) " >&6
  20525. else
  20526. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20527. # We make a subdir and do the tests there. Otherwise we can end up
  20528. @@ -3488,6 +3937,11 @@
  20529. if test "$am_compiler_list" = ""; then
  20530. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20531. fi
  20532. + am__universal=false
  20533. + case " $depcc " in #(
  20534. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  20535. + esac
  20536. +
  20537. for depmode in $am_compiler_list; do
  20538. # Setup a source with many dependencies, because some compilers
  20539. # like to wrap large dependency lists on column 80 (with \), and
  20540. @@ -3505,7 +3959,17 @@
  20541. done
  20542. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20543. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20544. + # mode. It turns out that the SunPro C++ compiler does not properly
  20545. + # handle `-M -o', and we need to detect this. Also, some Intel
  20546. + # versions had trouble with output in subdirs
  20547. + am__obj=sub/conftest.${OBJEXT-o}
  20548. + am__minus_obj="-o $am__obj"
  20549. case $depmode in
  20550. + gcc)
  20551. + # This depmode causes a compiler race in universal mode.
  20552. + test "$am__universal" = false || continue
  20553. + ;;
  20554. nosideeffect)
  20555. # after this tag, mechanisms are not by side-effect, so they'll
  20556. # only be used when explicitly requested
  20557. @@ -3515,18 +3979,23 @@
  20558. break
  20559. fi
  20560. ;;
  20561. + msvisualcpp | msvcmsys)
  20562. + # This compiler won't grok `-c -o', but also, the minuso test has
  20563. + # not run yet. These depmodes are late enough in the game, and
  20564. + # so weak that their functioning should not be impacted.
  20565. + am__obj=conftest.${OBJEXT-o}
  20566. + am__minus_obj=
  20567. + ;;
  20568. none) break ;;
  20569. esac
  20570. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20571. - # mode. It turns out that the SunPro C++ compiler does not properly
  20572. - # handle `-M -o', and we need to detect this.
  20573. if depmode=$depmode \
  20574. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  20575. + source=sub/conftest.c object=$am__obj \
  20576. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  20577. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  20578. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  20579. >/dev/null 2>conftest.err &&
  20580. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  20581. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  20582. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  20583. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  20584. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  20585. # icc doesn't choke on unknown options, it will just issue warnings
  20586. # or remarks (even with -Werror). So we grep stderr for any message
  20587. @@ -3550,13 +4019,11 @@
  20588. fi
  20589. fi
  20590. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  20591. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  20592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20593. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20594. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20595. -
  20596. -
  20597. -if
  20598. + if
  20599. test "x$enable_dependency_tracking" != xno \
  20600. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  20601. am__fastdepCC_TRUE=
  20602. @@ -3567,18 +4034,14 @@
  20603. fi
  20604. - { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  20605. -echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  20606. -if test "${ac_cv_prog_cc_c99+set}" = set; then
  20607. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20608. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  20609. +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  20610. +if test "${ac_cv_prog_cc_c99+set}" = set; then :
  20611. + $as_echo_n "(cached) " >&6
  20612. else
  20613. ac_cv_prog_cc_c99=no
  20614. ac_save_CC=$CC
  20615. -cat >conftest.$ac_ext <<_ACEOF
  20616. -/* confdefs.h. */
  20617. -_ACEOF
  20618. -cat confdefs.h >>conftest.$ac_ext
  20619. -cat >>conftest.$ac_ext <<_ACEOF
  20620. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20621. /* end confdefs.h. */
  20622. #include <stdarg.h>
  20623. #include <stdbool.h>
  20624. @@ -3586,6 +4049,35 @@
  20625. #include <wchar.h>
  20626. #include <stdio.h>
  20627. +// Check varargs macros. These examples are taken from C99 6.10.3.5.
  20628. +#define debug(...) fprintf (stderr, __VA_ARGS__)
  20629. +#define showlist(...) puts (#__VA_ARGS__)
  20630. +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  20631. +static void
  20632. +test_varargs_macros (void)
  20633. +{
  20634. + int x = 1234;
  20635. + int y = 5678;
  20636. + debug ("Flag");
  20637. + debug ("X = %d\n", x);
  20638. + showlist (The first, second, and third items.);
  20639. + report (x>y, "x is %d but y is %d", x, y);
  20640. +}
  20641. +
  20642. +// Check long long types.
  20643. +#define BIG64 18446744073709551615ull
  20644. +#define BIG32 4294967295ul
  20645. +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  20646. +#if !BIG_OK
  20647. + your preprocessor is broken;
  20648. +#endif
  20649. +#if BIG_OK
  20650. +#else
  20651. + your preprocessor is broken;
  20652. +#endif
  20653. +static long long int bignum = -9223372036854775807LL;
  20654. +static unsigned long long int ubignum = BIG64;
  20655. +
  20656. struct incomplete_array
  20657. {
  20658. int datasize;
  20659. @@ -3601,7 +4093,7 @@
  20660. typedef const char *ccp;
  20661. static inline int
  20662. -test_restrict(ccp restrict text)
  20663. +test_restrict (ccp restrict text)
  20664. {
  20665. // See if C++-style comments work.
  20666. // Iterate through items via the restricted pointer.
  20667. @@ -3611,14 +4103,14 @@
  20668. return 0;
  20669. }
  20670. -// Check varargs and va_copy work.
  20671. +// Check varargs and va_copy.
  20672. static void
  20673. -test_varargs(const char *format, ...)
  20674. +test_varargs (const char *format, ...)
  20675. {
  20676. va_list args;
  20677. - va_start(args, format);
  20678. + va_start (args, format);
  20679. va_list args_copy;
  20680. - va_copy(args_copy, args);
  20681. + va_copy (args_copy, args);
  20682. const char *str;
  20683. int number;
  20684. @@ -3629,47 +4121,46 @@
  20685. switch (*format++)
  20686. {
  20687. case 's': // string
  20688. - str = va_arg(args_copy, const char *);
  20689. + str = va_arg (args_copy, const char *);
  20690. break;
  20691. case 'd': // int
  20692. - number = va_arg(args_copy, int);
  20693. + number = va_arg (args_copy, int);
  20694. break;
  20695. case 'f': // float
  20696. - fnumber = (float) va_arg(args_copy, double);
  20697. + fnumber = va_arg (args_copy, double);
  20698. break;
  20699. default:
  20700. break;
  20701. }
  20702. }
  20703. - va_end(args_copy);
  20704. - va_end(args);
  20705. + va_end (args_copy);
  20706. + va_end (args);
  20707. }
  20708. int
  20709. main ()
  20710. {
  20711. - // Check bool and long long datatypes.
  20712. + // Check bool.
  20713. _Bool success = false;
  20714. - long long int bignum = -1234567890LL;
  20715. - unsigned long long int ubignum = 1234567890uLL;
  20716. // Check restrict.
  20717. - if (test_restrict("String literal") != 0)
  20718. + if (test_restrict ("String literal") == 0)
  20719. success = true;
  20720. char *restrict newvar = "Another string";
  20721. // Check varargs.
  20722. - test_varargs("s, d' f .", "string", 65, 34.234);
  20723. + test_varargs ("s, d' f .", "string", 65, 34.234);
  20724. + test_varargs_macros ();
  20725. - // Check incomplete arrays work.
  20726. + // Check flexible array members.
  20727. struct incomplete_array *ia =
  20728. - malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
  20729. + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  20730. ia->datasize = 10;
  20731. for (int i = 0; i < ia->datasize; ++i)
  20732. - ia->data[i] = (double) i * 1.234;
  20733. + ia->data[i] = i * 1.234;
  20734. - // Check named initialisers.
  20735. + // Check named initializers.
  20736. struct named_init ni = {
  20737. .number = 34,
  20738. .name = L"Test wide string",
  20739. @@ -3679,60 +4170,22 @@
  20740. ni.number = 58;
  20741. int dynamic_array[ni.number];
  20742. - dynamic_array[43] = 543;
  20743. + dynamic_array[ni.number - 1] = 543;
  20744. // work around unused variable warnings
  20745. - return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
  20746. + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  20747. + || dynamic_array[ni.number - 1] != 543);
  20748. ;
  20749. return 0;
  20750. }
  20751. _ACEOF
  20752. -for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  20753. +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  20754. do
  20755. CC="$ac_save_CC $ac_arg"
  20756. - rm -f conftest.$ac_objext
  20757. -if { (ac_try="$ac_compile"
  20758. -case "(($ac_try" in
  20759. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20760. - *) ac_try_echo=$ac_try;;
  20761. -esac
  20762. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20763. - (eval "$ac_compile") 2>conftest.er1
  20764. - ac_status=$?
  20765. - grep -v '^ *+' conftest.er1 >conftest.err
  20766. - rm -f conftest.er1
  20767. - cat conftest.err >&5
  20768. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20769. - (exit $ac_status); } &&
  20770. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20771. - { (case "(($ac_try" in
  20772. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20773. - *) ac_try_echo=$ac_try;;
  20774. -esac
  20775. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20776. - (eval "$ac_try") 2>&5
  20777. - ac_status=$?
  20778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20779. - (exit $ac_status); }; } &&
  20780. - { ac_try='test -s conftest.$ac_objext'
  20781. - { (case "(($ac_try" in
  20782. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20783. - *) ac_try_echo=$ac_try;;
  20784. -esac
  20785. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20786. - (eval "$ac_try") 2>&5
  20787. - ac_status=$?
  20788. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20789. - (exit $ac_status); }; }; then
  20790. + if ac_fn_c_try_compile "$LINENO"; then :
  20791. ac_cv_prog_cc_c99=$ac_arg
  20792. -else
  20793. - echo "$as_me: failed program was:" >&5
  20794. -sed 's/^/| /' conftest.$ac_ext >&5
  20795. -
  20796. -
  20797. fi
  20798. -
  20799. rm -f core conftest.err conftest.$ac_objext
  20800. test "x$ac_cv_prog_cc_c99" != "xno" && break
  20801. done
  20802. @@ -3743,234 +4196,76 @@
  20803. # AC_CACHE_VAL
  20804. case "x$ac_cv_prog_cc_c99" in
  20805. x)
  20806. - { echo "$as_me:$LINENO: result: none needed" >&5
  20807. -echo "${ECHO_T}none needed" >&6; } ;;
  20808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20809. +$as_echo "none needed" >&6; } ;;
  20810. xno)
  20811. - { echo "$as_me:$LINENO: result: unsupported" >&5
  20812. -echo "${ECHO_T}unsupported" >&6; } ;;
  20813. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20814. +$as_echo "unsupported" >&6; } ;;
  20815. *)
  20816. CC="$CC $ac_cv_prog_cc_c99"
  20817. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  20818. -echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  20819. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  20820. +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  20821. esac
  20822. +if test "x$ac_cv_prog_cc_c99" != xno; then :
  20823. +fi
  20824. -# Find a good install program. We prefer a C program (faster),
  20825. -# so one script is as good as another. But avoid the broken or
  20826. -# incompatible versions:
  20827. -# SysV /etc/install, /usr/sbin/install
  20828. -# SunOS /usr/etc/install
  20829. -# IRIX /sbin/install
  20830. -# AIX /bin/install
  20831. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  20832. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  20833. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  20834. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  20835. -# OS/2's system install, which has a completely different semantic
  20836. -# ./install, which can be erroneously created by make from ./install.sh.
  20837. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  20838. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  20839. -if test -z "$INSTALL"; then
  20840. -if test "${ac_cv_path_install+set}" = set; then
  20841. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20842. +
  20843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  20844. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  20845. +set x ${MAKE-make}
  20846. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  20847. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  20848. + $as_echo_n "(cached) " >&6
  20849. else
  20850. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20851. -for as_dir in $PATH
  20852. -do
  20853. - IFS=$as_save_IFS
  20854. - test -z "$as_dir" && as_dir=.
  20855. - # Account for people who put trailing slashes in PATH elements.
  20856. -case $as_dir/ in
  20857. - ./ | .// | /cC/* | \
  20858. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  20859. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  20860. - /usr/ucb/* ) ;;
  20861. + cat >conftest.make <<\_ACEOF
  20862. +SHELL = /bin/sh
  20863. +all:
  20864. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  20865. +_ACEOF
  20866. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20867. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  20868. + *@@@%%%=?*=@@@%%%*)
  20869. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  20870. *)
  20871. - # OSF1 and SCO ODT 3.0 have their own names for install.
  20872. - # Don't use installbsd from OSF since it installs stuff as root
  20873. - # by default.
  20874. - for ac_prog in ginstall scoinst install; do
  20875. - for ac_exec_ext in '' $ac_executable_extensions; do
  20876. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  20877. - if test $ac_prog = install &&
  20878. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20879. - # AIX install. It has an incompatible calling convention.
  20880. - :
  20881. - elif test $ac_prog = install &&
  20882. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20883. - # program-specific install script used by HP pwplus--don't use.
  20884. - :
  20885. - else
  20886. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  20887. - break 3
  20888. - fi
  20889. - fi
  20890. - done
  20891. - done
  20892. - ;;
  20893. + eval ac_cv_prog_make_${ac_make}_set=no;;
  20894. esac
  20895. -done
  20896. -IFS=$as_save_IFS
  20897. -
  20898. -
  20899. -fi
  20900. - if test "${ac_cv_path_install+set}" = set; then
  20901. - INSTALL=$ac_cv_path_install
  20902. - else
  20903. - # As a last resort, use the slow shell script. Don't cache a
  20904. - # value for INSTALL within a source directory, because that will
  20905. - # break other packages using the cache if that directory is
  20906. - # removed, or if the value is a relative name.
  20907. - INSTALL=$ac_install_sh
  20908. - fi
  20909. -fi
  20910. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  20911. -echo "${ECHO_T}$INSTALL" >&6; }
  20912. -
  20913. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  20914. -# It thinks the first close brace ends the variable substitution.
  20915. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  20916. -
  20917. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  20918. -
  20919. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  20920. -
  20921. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  20922. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  20923. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  20924. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  20925. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20926. -else
  20927. - cat >conftest.make <<\_ACEOF
  20928. -SHELL = /bin/sh
  20929. -all:
  20930. - @echo '@@@%%%=$(MAKE)=@@@%%%'
  20931. -_ACEOF
  20932. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20933. -case `${MAKE-make} -f conftest.make 2>/dev/null` in
  20934. - *@@@%%%=?*=@@@%%%*)
  20935. - eval ac_cv_prog_make_${ac_make}_set=yes;;
  20936. - *)
  20937. - eval ac_cv_prog_make_${ac_make}_set=no;;
  20938. -esac
  20939. -rm -f conftest.make
  20940. +rm -f conftest.make
  20941. fi
  20942. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  20943. - { echo "$as_me:$LINENO: result: yes" >&5
  20944. -echo "${ECHO_T}yes" >&6; }
  20945. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20946. +$as_echo "yes" >&6; }
  20947. SET_MAKE=
  20948. else
  20949. - { echo "$as_me:$LINENO: result: no" >&5
  20950. -echo "${ECHO_T}no" >&6; }
  20951. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20952. +$as_echo "no" >&6; }
  20953. SET_MAKE="MAKE=${MAKE-make}"
  20954. fi
  20955. -
  20956. -
  20957. -# Check whether --enable-shared was given.
  20958. -if test "${enable_shared+set}" = set; then
  20959. - enableval=$enable_shared; p=${PACKAGE-default}
  20960. - case $enableval in
  20961. - yes) enable_shared=yes ;;
  20962. - no) enable_shared=no ;;
  20963. - *)
  20964. - enable_shared=no
  20965. - # Look at the argument we got. We use all the common list separators.
  20966. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20967. - for pkg in $enableval; do
  20968. - IFS="$lt_save_ifs"
  20969. - if test "X$pkg" = "X$p"; then
  20970. - enable_shared=yes
  20971. - fi
  20972. - done
  20973. - IFS="$lt_save_ifs"
  20974. - ;;
  20975. - esac
  20976. -else
  20977. - enable_shared=yes
  20978. -fi
  20979. -
  20980. -
  20981. -# Check whether --enable-static was given.
  20982. -if test "${enable_static+set}" = set; then
  20983. - enableval=$enable_static; p=${PACKAGE-default}
  20984. - case $enableval in
  20985. - yes) enable_static=yes ;;
  20986. - no) enable_static=no ;;
  20987. - *)
  20988. - enable_static=no
  20989. - # Look at the argument we got. We use all the common list separators.
  20990. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20991. - for pkg in $enableval; do
  20992. - IFS="$lt_save_ifs"
  20993. - if test "X$pkg" = "X$p"; then
  20994. - enable_static=yes
  20995. - fi
  20996. - done
  20997. - IFS="$lt_save_ifs"
  20998. - ;;
  20999. - esac
  21000. -else
  21001. - enable_static=yes
  21002. -fi
  21003. -
  21004. -
  21005. -# Check whether --enable-fast-install was given.
  21006. -if test "${enable_fast_install+set}" = set; then
  21007. - enableval=$enable_fast_install; p=${PACKAGE-default}
  21008. - case $enableval in
  21009. - yes) enable_fast_install=yes ;;
  21010. - no) enable_fast_install=no ;;
  21011. - *)
  21012. - enable_fast_install=no
  21013. - # Look at the argument we got. We use all the common list separators.
  21014. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21015. - for pkg in $enableval; do
  21016. - IFS="$lt_save_ifs"
  21017. - if test "X$pkg" = "X$p"; then
  21018. - enable_fast_install=yes
  21019. - fi
  21020. - done
  21021. - IFS="$lt_save_ifs"
  21022. - ;;
  21023. - esac
  21024. -else
  21025. - enable_fast_install=yes
  21026. -fi
  21027. -
  21028. -
  21029. # Make sure we can run config.sub.
  21030. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  21031. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  21032. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  21033. - { (exit 1); exit 1; }; }
  21034. -
  21035. -{ echo "$as_me:$LINENO: checking build system type" >&5
  21036. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  21037. -if test "${ac_cv_build+set}" = set; then
  21038. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21039. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  21040. +
  21041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  21042. +$as_echo_n "checking build system type... " >&6; }
  21043. +if test "${ac_cv_build+set}" = set; then :
  21044. + $as_echo_n "(cached) " >&6
  21045. else
  21046. ac_build_alias=$build_alias
  21047. test "x$ac_build_alias" = x &&
  21048. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  21049. test "x$ac_build_alias" = x &&
  21050. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  21051. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  21052. - { (exit 1); exit 1; }; }
  21053. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  21054. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  21055. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  21056. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  21057. - { (exit 1); exit 1; }; }
  21058. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  21059. fi
  21060. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  21061. -echo "${ECHO_T}$ac_cv_build" >&6; }
  21062. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  21063. +$as_echo "$ac_cv_build" >&6; }
  21064. case $ac_cv_build in
  21065. *-*-*) ;;
  21066. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  21067. -echo "$as_me: error: invalid value of canonical build" >&2;}
  21068. - { (exit 1); exit 1; }; };;
  21069. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  21070. esac
  21071. build=$ac_cv_build
  21072. ac_save_IFS=$IFS; IFS='-'
  21073. @@ -3986,28 +4281,24 @@
  21074. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  21075. -{ echo "$as_me:$LINENO: checking host system type" >&5
  21076. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  21077. -if test "${ac_cv_host+set}" = set; then
  21078. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  21080. +$as_echo_n "checking host system type... " >&6; }
  21081. +if test "${ac_cv_host+set}" = set; then :
  21082. + $as_echo_n "(cached) " >&6
  21083. else
  21084. if test "x$host_alias" = x; then
  21085. ac_cv_host=$ac_cv_build
  21086. else
  21087. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  21088. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  21089. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  21090. - { (exit 1); exit 1; }; }
  21091. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  21092. fi
  21093. fi
  21094. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  21095. -echo "${ECHO_T}$ac_cv_host" >&6; }
  21096. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  21097. +$as_echo "$ac_cv_host" >&6; }
  21098. case $ac_cv_host in
  21099. *-*-*) ;;
  21100. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  21101. -echo "$as_me: error: invalid value of canonical host" >&2;}
  21102. - { (exit 1); exit 1; }; };;
  21103. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  21104. esac
  21105. host=$ac_cv_host
  21106. ac_save_IFS=$IFS; IFS='-'
  21107. @@ -4023,2994 +4314,1851 @@
  21108. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  21109. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  21110. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  21111. -if test "${lt_cv_path_SED+set}" = set; then
  21112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21113. +enable_win32_dll=yes
  21114. +
  21115. +case $host in
  21116. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  21117. + if test -n "$ac_tool_prefix"; then
  21118. + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  21119. +set dummy ${ac_tool_prefix}as; ac_word=$2
  21120. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21121. +$as_echo_n "checking for $ac_word... " >&6; }
  21122. +if test "${ac_cv_prog_AS+set}" = set; then :
  21123. + $as_echo_n "(cached) " >&6
  21124. +else
  21125. + if test -n "$AS"; then
  21126. + ac_cv_prog_AS="$AS" # Let the user override the test.
  21127. else
  21128. - # Loop through the user's path and test for sed and gsed.
  21129. -# Then use that list of sed's as ones to test for truncation.
  21130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21131. for as_dir in $PATH
  21132. do
  21133. IFS=$as_save_IFS
  21134. test -z "$as_dir" && as_dir=.
  21135. - for lt_ac_prog in sed gsed; do
  21136. for ac_exec_ext in '' $ac_executable_extensions; do
  21137. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  21138. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  21139. - fi
  21140. - done
  21141. - done
  21142. -done
  21143. -lt_ac_max=0
  21144. -lt_ac_count=0
  21145. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  21146. -# along with /bin/sed that truncates output.
  21147. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  21148. - test ! -f $lt_ac_sed && break
  21149. - cat /dev/null > conftest.in
  21150. - lt_ac_count=0
  21151. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  21152. - # Check for GNU sed and select it if it is found.
  21153. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  21154. - lt_cv_path_SED=$lt_ac_sed
  21155. - break
  21156. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21157. + ac_cv_prog_AS="${ac_tool_prefix}as"
  21158. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21159. + break 2
  21160. fi
  21161. - while true; do
  21162. - cat conftest.in conftest.in >conftest.tmp
  21163. - mv conftest.tmp conftest.in
  21164. - cp conftest.in conftest.nl
  21165. - echo >>conftest.nl
  21166. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  21167. - cmp -s conftest.out conftest.nl || break
  21168. - # 10000 chars as input seems more than enough
  21169. - test $lt_ac_count -gt 10 && break
  21170. - lt_ac_count=`expr $lt_ac_count + 1`
  21171. - if test $lt_ac_count -gt $lt_ac_max; then
  21172. - lt_ac_max=$lt_ac_count
  21173. - lt_cv_path_SED=$lt_ac_sed
  21174. - fi
  21175. - done
  21176. done
  21177. + done
  21178. +IFS=$as_save_IFS
  21179. fi
  21180. +fi
  21181. +AS=$ac_cv_prog_AS
  21182. +if test -n "$AS"; then
  21183. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  21184. +$as_echo "$AS" >&6; }
  21185. +else
  21186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21187. +$as_echo "no" >&6; }
  21188. +fi
  21189. +
  21190. -SED=$lt_cv_path_SED
  21191. -{ echo "$as_me:$LINENO: result: $SED" >&5
  21192. -echo "${ECHO_T}$SED" >&6; }
  21193. -
  21194. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  21195. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  21196. -if test "${ac_cv_path_GREP+set}" = set; then
  21197. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21198. -else
  21199. - # Extract the first word of "grep ggrep" to use in msg output
  21200. -if test -z "$GREP"; then
  21201. -set dummy grep ggrep; ac_prog_name=$2
  21202. -if test "${ac_cv_path_GREP+set}" = set; then
  21203. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21204. +fi
  21205. +if test -z "$ac_cv_prog_AS"; then
  21206. + ac_ct_AS=$AS
  21207. + # Extract the first word of "as", so it can be a program name with args.
  21208. +set dummy as; ac_word=$2
  21209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21210. +$as_echo_n "checking for $ac_word... " >&6; }
  21211. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  21212. + $as_echo_n "(cached) " >&6
  21213. +else
  21214. + if test -n "$ac_ct_AS"; then
  21215. + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  21216. else
  21217. - ac_path_GREP_found=false
  21218. -# Loop through the user's path and test for each of PROGNAME-LIST
  21219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21220. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21221. +for as_dir in $PATH
  21222. do
  21223. IFS=$as_save_IFS
  21224. test -z "$as_dir" && as_dir=.
  21225. - for ac_prog in grep ggrep; do
  21226. - for ac_exec_ext in '' $ac_executable_extensions; do
  21227. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  21228. - { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  21229. - # Check for GNU ac_path_GREP and select it if it is found.
  21230. - # Check for GNU $ac_path_GREP
  21231. -case `"$ac_path_GREP" --version 2>&1` in
  21232. -*GNU*)
  21233. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  21234. -*)
  21235. - ac_count=0
  21236. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  21237. - while :
  21238. - do
  21239. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  21240. - mv "conftest.tmp" "conftest.in"
  21241. - cp "conftest.in" "conftest.nl"
  21242. - echo 'GREP' >> "conftest.nl"
  21243. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21244. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21245. - ac_count=`expr $ac_count + 1`
  21246. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  21247. - # Best one so far, save it but keep looking for a better one
  21248. - ac_cv_path_GREP="$ac_path_GREP"
  21249. - ac_path_GREP_max=$ac_count
  21250. - fi
  21251. - # 10*(2^10) chars as input seems more than enough
  21252. - test $ac_count -gt 10 && break
  21253. - done
  21254. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21255. -esac
  21256. -
  21257. -
  21258. - $ac_path_GREP_found && break 3
  21259. - done
  21260. -done
  21261. -
  21262. + for ac_exec_ext in '' $ac_executable_extensions; do
  21263. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21264. + ac_cv_prog_ac_ct_AS="as"
  21265. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21266. + break 2
  21267. + fi
  21268. done
  21269. + done
  21270. IFS=$as_save_IFS
  21271. -
  21272. fi
  21273. -
  21274. -GREP="$ac_cv_path_GREP"
  21275. -if test -z "$GREP"; then
  21276. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  21277. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  21278. - { (exit 1); exit 1; }; }
  21279. fi
  21280. -
  21281. +ac_ct_AS=$ac_cv_prog_ac_ct_AS
  21282. +if test -n "$ac_ct_AS"; then
  21283. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  21284. +$as_echo "$ac_ct_AS" >&6; }
  21285. else
  21286. - ac_cv_path_GREP=$GREP
  21287. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21288. +$as_echo "no" >&6; }
  21289. fi
  21290. -
  21291. + if test "x$ac_ct_AS" = x; then
  21292. + AS="false"
  21293. + else
  21294. + case $cross_compiling:$ac_tool_warned in
  21295. +yes:)
  21296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21297. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21298. +ac_tool_warned=yes ;;
  21299. +esac
  21300. + AS=$ac_ct_AS
  21301. + fi
  21302. +else
  21303. + AS="$ac_cv_prog_AS"
  21304. fi
  21305. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  21306. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  21307. - GREP="$ac_cv_path_GREP"
  21308. -
  21309. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  21310. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  21311. -if test "${ac_cv_path_EGREP+set}" = set; then
  21312. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21313. + if test -n "$ac_tool_prefix"; then
  21314. + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  21315. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  21316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21317. +$as_echo_n "checking for $ac_word... " >&6; }
  21318. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  21319. + $as_echo_n "(cached) " >&6
  21320. else
  21321. - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  21322. - then ac_cv_path_EGREP="$GREP -E"
  21323. - else
  21324. - # Extract the first word of "egrep" to use in msg output
  21325. -if test -z "$EGREP"; then
  21326. -set dummy egrep; ac_prog_name=$2
  21327. -if test "${ac_cv_path_EGREP+set}" = set; then
  21328. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21329. + if test -n "$DLLTOOL"; then
  21330. + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  21331. else
  21332. - ac_path_EGREP_found=false
  21333. -# Loop through the user's path and test for each of PROGNAME-LIST
  21334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21335. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21336. +for as_dir in $PATH
  21337. do
  21338. IFS=$as_save_IFS
  21339. test -z "$as_dir" && as_dir=.
  21340. - for ac_prog in egrep; do
  21341. - for ac_exec_ext in '' $ac_executable_extensions; do
  21342. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  21343. - { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  21344. - # Check for GNU ac_path_EGREP and select it if it is found.
  21345. - # Check for GNU $ac_path_EGREP
  21346. -case `"$ac_path_EGREP" --version 2>&1` in
  21347. -*GNU*)
  21348. - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  21349. -*)
  21350. - ac_count=0
  21351. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  21352. - while :
  21353. - do
  21354. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  21355. - mv "conftest.tmp" "conftest.in"
  21356. - cp "conftest.in" "conftest.nl"
  21357. - echo 'EGREP' >> "conftest.nl"
  21358. - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21359. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21360. - ac_count=`expr $ac_count + 1`
  21361. - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  21362. - # Best one so far, save it but keep looking for a better one
  21363. - ac_cv_path_EGREP="$ac_path_EGREP"
  21364. - ac_path_EGREP_max=$ac_count
  21365. - fi
  21366. - # 10*(2^10) chars as input seems more than enough
  21367. - test $ac_count -gt 10 && break
  21368. - done
  21369. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21370. -esac
  21371. -
  21372. -
  21373. - $ac_path_EGREP_found && break 3
  21374. - done
  21375. -done
  21376. -
  21377. + for ac_exec_ext in '' $ac_executable_extensions; do
  21378. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21379. + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  21380. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21381. + break 2
  21382. + fi
  21383. done
  21384. + done
  21385. IFS=$as_save_IFS
  21386. -
  21387. fi
  21388. -
  21389. -EGREP="$ac_cv_path_EGREP"
  21390. -if test -z "$EGREP"; then
  21391. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  21392. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  21393. - { (exit 1); exit 1; }; }
  21394. fi
  21395. -
  21396. +DLLTOOL=$ac_cv_prog_DLLTOOL
  21397. +if test -n "$DLLTOOL"; then
  21398. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  21399. +$as_echo "$DLLTOOL" >&6; }
  21400. else
  21401. - ac_cv_path_EGREP=$EGREP
  21402. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21403. +$as_echo "no" >&6; }
  21404. fi
  21405. - fi
  21406. fi
  21407. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  21408. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  21409. - EGREP="$ac_cv_path_EGREP"
  21410. -
  21411. -
  21412. -
  21413. -# Check whether --with-gnu-ld was given.
  21414. -if test "${with_gnu_ld+set}" = set; then
  21415. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21416. +if test -z "$ac_cv_prog_DLLTOOL"; then
  21417. + ac_ct_DLLTOOL=$DLLTOOL
  21418. + # Extract the first word of "dlltool", so it can be a program name with args.
  21419. +set dummy dlltool; ac_word=$2
  21420. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21421. +$as_echo_n "checking for $ac_word... " >&6; }
  21422. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  21423. + $as_echo_n "(cached) " >&6
  21424. else
  21425. - with_gnu_ld=no
  21426. -fi
  21427. -
  21428. -ac_prog=ld
  21429. -if test "$GCC" = yes; then
  21430. - # Check if gcc -print-prog-name=ld gives a path.
  21431. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  21432. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  21433. - case $host in
  21434. - *-*-mingw*)
  21435. - # gcc leaves a trailing carriage return which upsets mingw
  21436. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  21437. - *)
  21438. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  21439. - esac
  21440. - case $ac_prog in
  21441. - # Accept absolute paths.
  21442. - [\\/]* | ?:[\\/]*)
  21443. - re_direlt='/[^/][^/]*/\.\./'
  21444. - # Canonicalize the pathname of ld
  21445. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  21446. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  21447. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  21448. - done
  21449. - test -z "$LD" && LD="$ac_prog"
  21450. - ;;
  21451. - "")
  21452. - # If it fails, then pretend we aren't using GCC.
  21453. - ac_prog=ld
  21454. - ;;
  21455. - *)
  21456. - # If it is relative, then search for the first ld in PATH.
  21457. - with_gnu_ld=unknown
  21458. - ;;
  21459. - esac
  21460. -elif test "$with_gnu_ld" = yes; then
  21461. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  21462. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  21463. -else
  21464. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  21465. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  21466. -fi
  21467. -if test "${lt_cv_path_LD+set}" = set; then
  21468. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21469. + if test -n "$ac_ct_DLLTOOL"; then
  21470. + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  21471. else
  21472. - if test -z "$LD"; then
  21473. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21474. - for ac_dir in $PATH; do
  21475. - IFS="$lt_save_ifs"
  21476. - test -z "$ac_dir" && ac_dir=.
  21477. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  21478. - lt_cv_path_LD="$ac_dir/$ac_prog"
  21479. - # Check to see if the program is GNU ld. I'd rather use --version,
  21480. - # but apparently some GNU ld's only accept -v.
  21481. - # Break only if it was the GNU/non-GNU ld that we prefer.
  21482. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  21483. - *GNU* | *'with BFD'*)
  21484. - test "$with_gnu_ld" != no && break
  21485. - ;;
  21486. - *)
  21487. - test "$with_gnu_ld" != yes && break
  21488. - ;;
  21489. - esac
  21490. - fi
  21491. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21492. +for as_dir in $PATH
  21493. +do
  21494. + IFS=$as_save_IFS
  21495. + test -z "$as_dir" && as_dir=.
  21496. + for ac_exec_ext in '' $ac_executable_extensions; do
  21497. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21498. + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  21499. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21500. + break 2
  21501. + fi
  21502. +done
  21503. done
  21504. - IFS="$lt_save_ifs"
  21505. -else
  21506. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  21507. +IFS=$as_save_IFS
  21508. +
  21509. fi
  21510. fi
  21511. -
  21512. -LD="$lt_cv_path_LD"
  21513. -if test -n "$LD"; then
  21514. - { echo "$as_me:$LINENO: result: $LD" >&5
  21515. -echo "${ECHO_T}$LD" >&6; }
  21516. +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  21517. +if test -n "$ac_ct_DLLTOOL"; then
  21518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  21519. +$as_echo "$ac_ct_DLLTOOL" >&6; }
  21520. else
  21521. - { echo "$as_me:$LINENO: result: no" >&5
  21522. -echo "${ECHO_T}no" >&6; }
  21523. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21524. +$as_echo "no" >&6; }
  21525. fi
  21526. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  21527. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  21528. - { (exit 1); exit 1; }; }
  21529. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  21530. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  21531. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  21532. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21533. -else
  21534. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  21535. -case `$LD -v 2>&1 </dev/null` in
  21536. -*GNU* | *'with BFD'*)
  21537. - lt_cv_prog_gnu_ld=yes
  21538. - ;;
  21539. -*)
  21540. - lt_cv_prog_gnu_ld=no
  21541. - ;;
  21542. +
  21543. + if test "x$ac_ct_DLLTOOL" = x; then
  21544. + DLLTOOL="false"
  21545. + else
  21546. + case $cross_compiling:$ac_tool_warned in
  21547. +yes:)
  21548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21549. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21550. +ac_tool_warned=yes ;;
  21551. esac
  21552. + DLLTOOL=$ac_ct_DLLTOOL
  21553. + fi
  21554. +else
  21555. + DLLTOOL="$ac_cv_prog_DLLTOOL"
  21556. fi
  21557. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  21558. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  21559. -with_gnu_ld=$lt_cv_prog_gnu_ld
  21560. + if test -n "$ac_tool_prefix"; then
  21561. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  21562. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  21563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21564. +$as_echo_n "checking for $ac_word... " >&6; }
  21565. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  21566. + $as_echo_n "(cached) " >&6
  21567. +else
  21568. + if test -n "$OBJDUMP"; then
  21569. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21570. +else
  21571. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21572. +for as_dir in $PATH
  21573. +do
  21574. + IFS=$as_save_IFS
  21575. + test -z "$as_dir" && as_dir=.
  21576. + for ac_exec_ext in '' $ac_executable_extensions; do
  21577. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21578. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21579. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21580. + break 2
  21581. + fi
  21582. +done
  21583. + done
  21584. +IFS=$as_save_IFS
  21585. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  21586. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  21587. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  21588. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21589. +fi
  21590. +fi
  21591. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21592. +if test -n "$OBJDUMP"; then
  21593. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21594. +$as_echo "$OBJDUMP" >&6; }
  21595. else
  21596. - lt_cv_ld_reload_flag='-r'
  21597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21598. +$as_echo "no" >&6; }
  21599. fi
  21600. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  21601. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  21602. -reload_flag=$lt_cv_ld_reload_flag
  21603. -case $reload_flag in
  21604. -"" | " "*) ;;
  21605. -*) reload_flag=" $reload_flag" ;;
  21606. -esac
  21607. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21608. -case $host_os in
  21609. - darwin*)
  21610. - if test "$GCC" = yes; then
  21611. - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  21612. - else
  21613. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21614. - fi
  21615. - ;;
  21616. -esac
  21617. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  21618. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  21619. -if test "${lt_cv_path_NM+set}" = set; then
  21620. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21621. +
  21622. +fi
  21623. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21624. + ac_ct_OBJDUMP=$OBJDUMP
  21625. + # Extract the first word of "objdump", so it can be a program name with args.
  21626. +set dummy objdump; ac_word=$2
  21627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21628. +$as_echo_n "checking for $ac_word... " >&6; }
  21629. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21630. + $as_echo_n "(cached) " >&6
  21631. else
  21632. - if test -n "$NM"; then
  21633. - # Let the user override the test.
  21634. - lt_cv_path_NM="$NM"
  21635. + if test -n "$ac_ct_OBJDUMP"; then
  21636. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21637. else
  21638. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21639. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  21640. - IFS="$lt_save_ifs"
  21641. - test -z "$ac_dir" && ac_dir=.
  21642. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  21643. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21644. - # Check to see if the nm accepts a BSD-compat flag.
  21645. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21646. - # nm: unknown option "B" ignored
  21647. - # Tru64's nm complains that /dev/null is an invalid object file
  21648. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21649. - */dev/null* | *'Invalid file or object type'*)
  21650. - lt_cv_path_NM="$tmp_nm -B"
  21651. - break
  21652. - ;;
  21653. - *)
  21654. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21655. - */dev/null*)
  21656. - lt_cv_path_NM="$tmp_nm -p"
  21657. - break
  21658. - ;;
  21659. - *)
  21660. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21661. - continue # so that we can try to find one that supports BSD flags
  21662. - ;;
  21663. - esac
  21664. - esac
  21665. - fi
  21666. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21667. +for as_dir in $PATH
  21668. +do
  21669. + IFS=$as_save_IFS
  21670. + test -z "$as_dir" && as_dir=.
  21671. + for ac_exec_ext in '' $ac_executable_extensions; do
  21672. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21673. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21674. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21675. + break 2
  21676. + fi
  21677. +done
  21678. done
  21679. - IFS="$lt_save_ifs"
  21680. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  21681. +IFS=$as_save_IFS
  21682. +
  21683. fi
  21684. fi
  21685. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  21686. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  21687. -NM="$lt_cv_path_NM"
  21688. -
  21689. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  21690. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  21691. -LN_S=$as_ln_s
  21692. -if test "$LN_S" = "ln -s"; then
  21693. - { echo "$as_me:$LINENO: result: yes" >&5
  21694. -echo "${ECHO_T}yes" >&6; }
  21695. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21696. +if test -n "$ac_ct_OBJDUMP"; then
  21697. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21698. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21699. else
  21700. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  21701. -echo "${ECHO_T}no, using $LN_S" >&6; }
  21702. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21703. +$as_echo "no" >&6; }
  21704. fi
  21705. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  21706. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  21707. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  21708. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21709. + if test "x$ac_ct_OBJDUMP" = x; then
  21710. + OBJDUMP="false"
  21711. + else
  21712. + case $cross_compiling:$ac_tool_warned in
  21713. +yes:)
  21714. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21715. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21716. +ac_tool_warned=yes ;;
  21717. +esac
  21718. + OBJDUMP=$ac_ct_OBJDUMP
  21719. + fi
  21720. else
  21721. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  21722. -lt_cv_file_magic_test_file=
  21723. -lt_cv_deplibs_check_method='unknown'
  21724. -# Need to set the preceding variable on all platforms that support
  21725. -# interlibrary dependencies.
  21726. -# 'none' -- dependencies not supported.
  21727. -# `unknown' -- same as none, but documents that we really don't know.
  21728. -# 'pass_all' -- all dependencies passed with no checks.
  21729. -# 'test_compile' -- check by making test program.
  21730. -# 'file_magic [[regex]]' -- check by looking for files in library path
  21731. -# which responds to the $file_magic_cmd with a given extended regex.
  21732. -# If you have `file' or equivalent on your system and you're not sure
  21733. -# whether `pass_all' will *always* work, you probably want this one.
  21734. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21735. +fi
  21736. -case $host_os in
  21737. -aix4* | aix5*)
  21738. - lt_cv_deplibs_check_method=pass_all
  21739. ;;
  21740. +esac
  21741. -beos*)
  21742. - lt_cv_deplibs_check_method=pass_all
  21743. - ;;
  21744. +test -z "$AS" && AS=as
  21745. -bsdi[45]*)
  21746. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21747. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  21748. - lt_cv_file_magic_test_file=/shlib/libc.so
  21749. - ;;
  21750. -cygwin*)
  21751. - # func_win32_libid is a shell function defined in ltmain.sh
  21752. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21753. - lt_cv_file_magic_cmd='func_win32_libid'
  21754. - ;;
  21755. -mingw* | pw32*)
  21756. - # Base MSYS/MinGW do not provide the 'file' command needed by
  21757. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  21758. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21759. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  21760. - ;;
  21761. -darwin* | rhapsody*)
  21762. - lt_cv_deplibs_check_method=pass_all
  21763. - ;;
  21764. -freebsd* | kfreebsd*-gnu)
  21765. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21766. - case $host_cpu in
  21767. - i*86 )
  21768. - # Not sure whether the presence of OpenBSD here was a mistake.
  21769. - # Let's accept both of them until this is cleared up.
  21770. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  21771. - lt_cv_file_magic_cmd=/usr/bin/file
  21772. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21773. - ;;
  21774. - esac
  21775. - else
  21776. - lt_cv_deplibs_check_method=pass_all
  21777. - fi
  21778. - ;;
  21779. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  21780. -gnu*)
  21781. - lt_cv_deplibs_check_method=pass_all
  21782. - ;;
  21783. -hpux10.20* | hpux11*)
  21784. - lt_cv_file_magic_cmd=/usr/bin/file
  21785. - case "$host_cpu" in
  21786. - ia64*)
  21787. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21788. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21789. - ;;
  21790. - hppa*64*)
  21791. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  21792. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21793. - ;;
  21794. - *)
  21795. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21796. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21797. - ;;
  21798. - esac
  21799. - ;;
  21800. -irix5* | irix6* | nonstopux*)
  21801. - case $LD in
  21802. - *-32|*"-32 ") libmagic=32-bit;;
  21803. - *-n32|*"-n32 ") libmagic=N32;;
  21804. - *-64|*"-64 ") libmagic=64-bit;;
  21805. - *) libmagic=never-match;;
  21806. - esac
  21807. - lt_cv_deplibs_check_method=pass_all
  21808. - ;;
  21809. -
  21810. -# This must be Linux ELF.
  21811. -linux*)
  21812. - lt_cv_deplibs_check_method=pass_all
  21813. - ;;
  21814. -netbsd*)
  21815. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21816. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21817. - else
  21818. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21819. - fi
  21820. - ;;
  21821. -newos6*)
  21822. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21823. - lt_cv_file_magic_cmd=/usr/bin/file
  21824. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21825. - ;;
  21826. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21827. -nto-qnx*)
  21828. - lt_cv_deplibs_check_method=unknown
  21829. - ;;
  21830. -openbsd*)
  21831. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21832. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21833. - else
  21834. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21835. - fi
  21836. - ;;
  21837. -osf3* | osf4* | osf5*)
  21838. - lt_cv_deplibs_check_method=pass_all
  21839. - ;;
  21840. -sco3.2v5*)
  21841. - lt_cv_deplibs_check_method=pass_all
  21842. - ;;
  21843. -solaris*)
  21844. - lt_cv_deplibs_check_method=pass_all
  21845. - ;;
  21846. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  21847. - case $host_vendor in
  21848. - motorola)
  21849. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  21850. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21851. - ;;
  21852. - ncr)
  21853. - lt_cv_deplibs_check_method=pass_all
  21854. - ;;
  21855. - sequent)
  21856. - lt_cv_file_magic_cmd='/bin/file'
  21857. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21858. - ;;
  21859. - sni)
  21860. - lt_cv_file_magic_cmd='/bin/file'
  21861. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21862. - lt_cv_file_magic_test_file=/lib/libc.so
  21863. - ;;
  21864. - siemens)
  21865. - lt_cv_deplibs_check_method=pass_all
  21866. - ;;
  21867. - esac
  21868. - ;;
  21869. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  21870. - lt_cv_deplibs_check_method=pass_all
  21871. - ;;
  21872. +case `pwd` in
  21873. + *\ * | *\ *)
  21874. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  21875. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  21876. esac
  21877. -fi
  21878. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  21879. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  21880. -file_magic_cmd=$lt_cv_file_magic_cmd
  21881. -deplibs_check_method=$lt_cv_deplibs_check_method
  21882. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21883. -
  21884. +macro_version='2.2.6b'
  21885. +macro_revision='1.3017'
  21886. -# If no C compiler was specified, use CC.
  21887. -LTCC=${LTCC-"$CC"}
  21888. -# Allow CC to be a program name with arguments.
  21889. -compiler=$CC
  21890. -# Check whether --enable-libtool-lock was given.
  21891. -if test "${enable_libtool_lock+set}" = set; then
  21892. - enableval=$enable_libtool_lock;
  21893. -fi
  21894. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21895. -# Some flags need to be propagated to the compiler or linker for good
  21896. -# libtool support.
  21897. -case $host in
  21898. -ia64-*-hpux*)
  21899. - # Find out which ABI we are using.
  21900. - echo 'int i;' > conftest.$ac_ext
  21901. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21902. - (eval $ac_compile) 2>&5
  21903. - ac_status=$?
  21904. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21905. - (exit $ac_status); }; then
  21906. - case `/usr/bin/file conftest.$ac_objext` in
  21907. - *ELF-32*)
  21908. - HPUX_IA64_MODE="32"
  21909. - ;;
  21910. - *ELF-64*)
  21911. - HPUX_IA64_MODE="64"
  21912. - ;;
  21913. - esac
  21914. - fi
  21915. - rm -rf conftest*
  21916. - ;;
  21917. -*-*-irix6*)
  21918. - # Find out which ABI we are using.
  21919. - echo '#line 4653 "configure"' > conftest.$ac_ext
  21920. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21921. - (eval $ac_compile) 2>&5
  21922. - ac_status=$?
  21923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21924. - (exit $ac_status); }; then
  21925. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21926. - case `/usr/bin/file conftest.$ac_objext` in
  21927. - *32-bit*)
  21928. - LD="${LD-ld} -melf32bsmip"
  21929. - ;;
  21930. - *N32*)
  21931. - LD="${LD-ld} -melf32bmipn32"
  21932. - ;;
  21933. - *64-bit*)
  21934. - LD="${LD-ld} -melf64bmip"
  21935. - ;;
  21936. - esac
  21937. - else
  21938. - case `/usr/bin/file conftest.$ac_objext` in
  21939. - *32-bit*)
  21940. - LD="${LD-ld} -32"
  21941. - ;;
  21942. - *N32*)
  21943. - LD="${LD-ld} -n32"
  21944. - ;;
  21945. - *64-bit*)
  21946. - LD="${LD-ld} -64"
  21947. - ;;
  21948. - esac
  21949. - fi
  21950. - fi
  21951. - rm -rf conftest*
  21952. - ;;
  21953. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  21954. - # Find out which ABI we are using.
  21955. - echo 'int i;' > conftest.$ac_ext
  21956. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21957. - (eval $ac_compile) 2>&5
  21958. - ac_status=$?
  21959. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21960. - (exit $ac_status); }; then
  21961. - case "`/usr/bin/file conftest.o`" in
  21962. - *32-bit*)
  21963. - case $host in
  21964. - x86_64-*linux*)
  21965. - LD="${LD-ld} -m elf_i386"
  21966. - ;;
  21967. - ppc64-*linux*|powerpc64-*linux*)
  21968. - LD="${LD-ld} -m elf32ppclinux"
  21969. - ;;
  21970. - s390x-*linux*)
  21971. - LD="${LD-ld} -m elf_s390"
  21972. - ;;
  21973. - sparc64-*linux*)
  21974. - LD="${LD-ld} -m elf32_sparc"
  21975. - ;;
  21976. - esac
  21977. - ;;
  21978. - *64-bit*)
  21979. - case $host in
  21980. - x86_64-*linux*)
  21981. - LD="${LD-ld} -m elf_x86_64"
  21982. - ;;
  21983. - ppc*-*linux*|powerpc*-*linux*)
  21984. - LD="${LD-ld} -m elf64ppc"
  21985. - ;;
  21986. - s390*-*linux*)
  21987. - LD="${LD-ld} -m elf64_s390"
  21988. - ;;
  21989. - sparc*-*linux*)
  21990. - LD="${LD-ld} -m elf64_sparc"
  21991. - ;;
  21992. - esac
  21993. - ;;
  21994. - esac
  21995. - fi
  21996. - rm -rf conftest*
  21997. - ;;
  21998. -*-*-sco3.2v5*)
  21999. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  22000. - SAVE_CFLAGS="$CFLAGS"
  22001. - CFLAGS="$CFLAGS -belf"
  22002. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  22003. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  22004. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  22005. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22006. -else
  22007. - ac_ext=c
  22008. -ac_cpp='$CPP $CPPFLAGS'
  22009. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22010. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22011. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22012. - cat >conftest.$ac_ext <<_ACEOF
  22013. -/* confdefs.h. */
  22014. -_ACEOF
  22015. -cat confdefs.h >>conftest.$ac_ext
  22016. -cat >>conftest.$ac_ext <<_ACEOF
  22017. -/* end confdefs.h. */
  22018. -int
  22019. -main ()
  22020. -{
  22021. - ;
  22022. - return 0;
  22023. -}
  22024. -_ACEOF
  22025. -rm -f conftest.$ac_objext conftest$ac_exeext
  22026. -if { (ac_try="$ac_link"
  22027. -case "(($ac_try" in
  22028. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22029. - *) ac_try_echo=$ac_try;;
  22030. -esac
  22031. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22032. - (eval "$ac_link") 2>conftest.er1
  22033. - ac_status=$?
  22034. - grep -v '^ *+' conftest.er1 >conftest.err
  22035. - rm -f conftest.er1
  22036. - cat conftest.err >&5
  22037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22038. - (exit $ac_status); } &&
  22039. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22040. - { (case "(($ac_try" in
  22041. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22042. - *) ac_try_echo=$ac_try;;
  22043. -esac
  22044. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22045. - (eval "$ac_try") 2>&5
  22046. - ac_status=$?
  22047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22048. - (exit $ac_status); }; } &&
  22049. - { ac_try='test -s conftest$ac_exeext'
  22050. - { (case "(($ac_try" in
  22051. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22052. - *) ac_try_echo=$ac_try;;
  22053. -esac
  22054. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22055. - (eval "$ac_try") 2>&5
  22056. - ac_status=$?
  22057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22058. - (exit $ac_status); }; }; then
  22059. - lt_cv_cc_needs_belf=yes
  22060. -else
  22061. - echo "$as_me: failed program was:" >&5
  22062. -sed 's/^/| /' conftest.$ac_ext >&5
  22063. - lt_cv_cc_needs_belf=no
  22064. -fi
  22065. -rm -f core conftest.err conftest.$ac_objext \
  22066. - conftest$ac_exeext conftest.$ac_ext
  22067. - ac_ext=c
  22068. -ac_cpp='$CPP $CPPFLAGS'
  22069. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22070. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22071. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22072. +ltmain="$ac_aux_dir/ltmain.sh"
  22073. -fi
  22074. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  22075. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  22076. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  22077. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  22078. - CFLAGS="$SAVE_CFLAGS"
  22079. - fi
  22080. - ;;
  22081. -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  22082. - if test -n "$ac_tool_prefix"; then
  22083. - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  22084. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  22085. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22086. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22087. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  22088. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22089. -else
  22090. - if test -n "$DLLTOOL"; then
  22091. - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  22092. -else
  22093. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  22095. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  22096. +if test "${ac_cv_path_SED+set}" = set; then :
  22097. + $as_echo_n "(cached) " >&6
  22098. +else
  22099. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  22100. + for ac_i in 1 2 3 4 5 6 7; do
  22101. + ac_script="$ac_script$as_nl$ac_script"
  22102. + done
  22103. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  22104. + { ac_script=; unset ac_script;}
  22105. + if test -z "$SED"; then
  22106. + ac_path_SED_found=false
  22107. + # Loop through the user's path and test for each of PROGNAME-LIST
  22108. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22109. for as_dir in $PATH
  22110. do
  22111. IFS=$as_save_IFS
  22112. test -z "$as_dir" && as_dir=.
  22113. - for ac_exec_ext in '' $ac_executable_extensions; do
  22114. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22115. - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  22116. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22117. - break 2
  22118. - fi
  22119. -done
  22120. -done
  22121. -IFS=$as_save_IFS
  22122. + for ac_prog in sed gsed; do
  22123. + for ac_exec_ext in '' $ac_executable_extensions; do
  22124. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  22125. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  22126. +# Check for GNU ac_path_SED and select it if it is found.
  22127. + # Check for GNU $ac_path_SED
  22128. +case `"$ac_path_SED" --version 2>&1` in
  22129. +*GNU*)
  22130. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  22131. +*)
  22132. + ac_count=0
  22133. + $as_echo_n 0123456789 >"conftest.in"
  22134. + while :
  22135. + do
  22136. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22137. + mv "conftest.tmp" "conftest.in"
  22138. + cp "conftest.in" "conftest.nl"
  22139. + $as_echo '' >> "conftest.nl"
  22140. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22141. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22142. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22143. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  22144. + # Best one so far, save it but keep looking for a better one
  22145. + ac_cv_path_SED="$ac_path_SED"
  22146. + ac_path_SED_max=$ac_count
  22147. + fi
  22148. + # 10*(2^10) chars as input seems more than enough
  22149. + test $ac_count -gt 10 && break
  22150. + done
  22151. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22152. +esac
  22153. -fi
  22154. -fi
  22155. -DLLTOOL=$ac_cv_prog_DLLTOOL
  22156. -if test -n "$DLLTOOL"; then
  22157. - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  22158. -echo "${ECHO_T}$DLLTOOL" >&6; }
  22159. + $ac_path_SED_found && break 3
  22160. + done
  22161. + done
  22162. + done
  22163. +IFS=$as_save_IFS
  22164. + if test -z "$ac_cv_path_SED"; then
  22165. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  22166. + fi
  22167. else
  22168. - { echo "$as_me:$LINENO: result: no" >&5
  22169. -echo "${ECHO_T}no" >&6; }
  22170. + ac_cv_path_SED=$SED
  22171. fi
  22172. -
  22173. fi
  22174. -if test -z "$ac_cv_prog_DLLTOOL"; then
  22175. - ac_ct_DLLTOOL=$DLLTOOL
  22176. - # Extract the first word of "dlltool", so it can be a program name with args.
  22177. -set dummy dlltool; ac_word=$2
  22178. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22179. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22180. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  22181. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22182. -else
  22183. - if test -n "$ac_ct_DLLTOOL"; then
  22184. - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  22185. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  22186. +$as_echo "$ac_cv_path_SED" >&6; }
  22187. + SED="$ac_cv_path_SED"
  22188. + rm -f conftest.sed
  22189. +
  22190. +test -z "$SED" && SED=sed
  22191. +Xsed="$SED -e 1s/^X//"
  22192. +
  22193. +
  22194. +
  22195. +
  22196. +
  22197. +
  22198. +
  22199. +
  22200. +
  22201. +
  22202. +
  22203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  22204. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  22205. +if test "${ac_cv_path_GREP+set}" = set; then :
  22206. + $as_echo_n "(cached) " >&6
  22207. else
  22208. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22209. -for as_dir in $PATH
  22210. + if test -z "$GREP"; then
  22211. + ac_path_GREP_found=false
  22212. + # Loop through the user's path and test for each of PROGNAME-LIST
  22213. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22214. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  22215. do
  22216. IFS=$as_save_IFS
  22217. test -z "$as_dir" && as_dir=.
  22218. - for ac_exec_ext in '' $ac_executable_extensions; do
  22219. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22220. - ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  22221. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22222. - break 2
  22223. - fi
  22224. -done
  22225. -done
  22226. -IFS=$as_save_IFS
  22227. -
  22228. -fi
  22229. -fi
  22230. -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  22231. -if test -n "$ac_ct_DLLTOOL"; then
  22232. - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  22233. -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  22234. -else
  22235. - { echo "$as_me:$LINENO: result: no" >&5
  22236. -echo "${ECHO_T}no" >&6; }
  22237. -fi
  22238. -
  22239. - if test "x$ac_ct_DLLTOOL" = x; then
  22240. - DLLTOOL="false"
  22241. - else
  22242. - case $cross_compiling:$ac_tool_warned in
  22243. -yes:)
  22244. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22245. -whose name does not start with the host triplet. If you think this
  22246. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22247. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22248. -whose name does not start with the host triplet. If you think this
  22249. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22250. -ac_tool_warned=yes ;;
  22251. + for ac_prog in grep ggrep; do
  22252. + for ac_exec_ext in '' $ac_executable_extensions; do
  22253. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  22254. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  22255. +# Check for GNU ac_path_GREP and select it if it is found.
  22256. + # Check for GNU $ac_path_GREP
  22257. +case `"$ac_path_GREP" --version 2>&1` in
  22258. +*GNU*)
  22259. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  22260. +*)
  22261. + ac_count=0
  22262. + $as_echo_n 0123456789 >"conftest.in"
  22263. + while :
  22264. + do
  22265. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22266. + mv "conftest.tmp" "conftest.in"
  22267. + cp "conftest.in" "conftest.nl"
  22268. + $as_echo 'GREP' >> "conftest.nl"
  22269. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22270. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22271. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22272. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  22273. + # Best one so far, save it but keep looking for a better one
  22274. + ac_cv_path_GREP="$ac_path_GREP"
  22275. + ac_path_GREP_max=$ac_count
  22276. + fi
  22277. + # 10*(2^10) chars as input seems more than enough
  22278. + test $ac_count -gt 10 && break
  22279. + done
  22280. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22281. esac
  22282. - DLLTOOL=$ac_ct_DLLTOOL
  22283. +
  22284. + $ac_path_GREP_found && break 3
  22285. + done
  22286. + done
  22287. + done
  22288. +IFS=$as_save_IFS
  22289. + if test -z "$ac_cv_path_GREP"; then
  22290. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  22291. fi
  22292. else
  22293. - DLLTOOL="$ac_cv_prog_DLLTOOL"
  22294. + ac_cv_path_GREP=$GREP
  22295. fi
  22296. - if test -n "$ac_tool_prefix"; then
  22297. - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  22298. -set dummy ${ac_tool_prefix}as; ac_word=$2
  22299. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22300. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22301. -if test "${ac_cv_prog_AS+set}" = set; then
  22302. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22303. -else
  22304. - if test -n "$AS"; then
  22305. - ac_cv_prog_AS="$AS" # Let the user override the test.
  22306. -else
  22307. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22308. -for as_dir in $PATH
  22309. -do
  22310. - IFS=$as_save_IFS
  22311. - test -z "$as_dir" && as_dir=.
  22312. - for ac_exec_ext in '' $ac_executable_extensions; do
  22313. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22314. - ac_cv_prog_AS="${ac_tool_prefix}as"
  22315. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22316. - break 2
  22317. - fi
  22318. -done
  22319. -done
  22320. -IFS=$as_save_IFS
  22321. -
  22322. -fi
  22323. -fi
  22324. -AS=$ac_cv_prog_AS
  22325. -if test -n "$AS"; then
  22326. - { echo "$as_me:$LINENO: result: $AS" >&5
  22327. -echo "${ECHO_T}$AS" >&6; }
  22328. -else
  22329. - { echo "$as_me:$LINENO: result: no" >&5
  22330. -echo "${ECHO_T}no" >&6; }
  22331. fi
  22332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  22333. +$as_echo "$ac_cv_path_GREP" >&6; }
  22334. + GREP="$ac_cv_path_GREP"
  22335. -fi
  22336. -if test -z "$ac_cv_prog_AS"; then
  22337. - ac_ct_AS=$AS
  22338. - # Extract the first word of "as", so it can be a program name with args.
  22339. -set dummy as; ac_word=$2
  22340. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22341. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22342. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  22343. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22344. -else
  22345. - if test -n "$ac_ct_AS"; then
  22346. - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  22347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  22348. +$as_echo_n "checking for egrep... " >&6; }
  22349. +if test "${ac_cv_path_EGREP+set}" = set; then :
  22350. + $as_echo_n "(cached) " >&6
  22351. else
  22352. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22353. -for as_dir in $PATH
  22354. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  22355. + then ac_cv_path_EGREP="$GREP -E"
  22356. + else
  22357. + if test -z "$EGREP"; then
  22358. + ac_path_EGREP_found=false
  22359. + # Loop through the user's path and test for each of PROGNAME-LIST
  22360. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22361. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  22362. do
  22363. IFS=$as_save_IFS
  22364. test -z "$as_dir" && as_dir=.
  22365. - for ac_exec_ext in '' $ac_executable_extensions; do
  22366. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22367. - ac_cv_prog_ac_ct_AS="as"
  22368. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22369. - break 2
  22370. - fi
  22371. -done
  22372. -done
  22373. -IFS=$as_save_IFS
  22374. -
  22375. -fi
  22376. -fi
  22377. -ac_ct_AS=$ac_cv_prog_ac_ct_AS
  22378. -if test -n "$ac_ct_AS"; then
  22379. - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  22380. -echo "${ECHO_T}$ac_ct_AS" >&6; }
  22381. -else
  22382. - { echo "$as_me:$LINENO: result: no" >&5
  22383. -echo "${ECHO_T}no" >&6; }
  22384. -fi
  22385. -
  22386. - if test "x$ac_ct_AS" = x; then
  22387. - AS="false"
  22388. - else
  22389. - case $cross_compiling:$ac_tool_warned in
  22390. -yes:)
  22391. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22392. -whose name does not start with the host triplet. If you think this
  22393. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22394. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22395. -whose name does not start with the host triplet. If you think this
  22396. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22397. -ac_tool_warned=yes ;;
  22398. + for ac_prog in egrep; do
  22399. + for ac_exec_ext in '' $ac_executable_extensions; do
  22400. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  22401. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  22402. +# Check for GNU ac_path_EGREP and select it if it is found.
  22403. + # Check for GNU $ac_path_EGREP
  22404. +case `"$ac_path_EGREP" --version 2>&1` in
  22405. +*GNU*)
  22406. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  22407. +*)
  22408. + ac_count=0
  22409. + $as_echo_n 0123456789 >"conftest.in"
  22410. + while :
  22411. + do
  22412. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22413. + mv "conftest.tmp" "conftest.in"
  22414. + cp "conftest.in" "conftest.nl"
  22415. + $as_echo 'EGREP' >> "conftest.nl"
  22416. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22417. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22418. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22419. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  22420. + # Best one so far, save it but keep looking for a better one
  22421. + ac_cv_path_EGREP="$ac_path_EGREP"
  22422. + ac_path_EGREP_max=$ac_count
  22423. + fi
  22424. + # 10*(2^10) chars as input seems more than enough
  22425. + test $ac_count -gt 10 && break
  22426. + done
  22427. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22428. esac
  22429. - AS=$ac_ct_AS
  22430. +
  22431. + $ac_path_EGREP_found && break 3
  22432. + done
  22433. + done
  22434. + done
  22435. +IFS=$as_save_IFS
  22436. + if test -z "$ac_cv_path_EGREP"; then
  22437. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  22438. fi
  22439. else
  22440. - AS="$ac_cv_prog_AS"
  22441. + ac_cv_path_EGREP=$EGREP
  22442. fi
  22443. - if test -n "$ac_tool_prefix"; then
  22444. - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  22445. -set dummy ${ac_tool_prefix}objdump; ac_word=$2
  22446. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22447. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22448. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  22449. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22450. -else
  22451. - if test -n "$OBJDUMP"; then
  22452. - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  22453. -else
  22454. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22455. -for as_dir in $PATH
  22456. -do
  22457. - IFS=$as_save_IFS
  22458. - test -z "$as_dir" && as_dir=.
  22459. - for ac_exec_ext in '' $ac_executable_extensions; do
  22460. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22461. - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  22462. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22463. - break 2
  22464. - fi
  22465. -done
  22466. -done
  22467. -IFS=$as_save_IFS
  22468. -
  22469. -fi
  22470. -fi
  22471. -OBJDUMP=$ac_cv_prog_OBJDUMP
  22472. -if test -n "$OBJDUMP"; then
  22473. - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  22474. -echo "${ECHO_T}$OBJDUMP" >&6; }
  22475. -else
  22476. - { echo "$as_me:$LINENO: result: no" >&5
  22477. -echo "${ECHO_T}no" >&6; }
  22478. + fi
  22479. fi
  22480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  22481. +$as_echo "$ac_cv_path_EGREP" >&6; }
  22482. + EGREP="$ac_cv_path_EGREP"
  22483. -fi
  22484. -if test -z "$ac_cv_prog_OBJDUMP"; then
  22485. - ac_ct_OBJDUMP=$OBJDUMP
  22486. - # Extract the first word of "objdump", so it can be a program name with args.
  22487. -set dummy objdump; ac_word=$2
  22488. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22489. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22490. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  22491. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22492. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  22493. +$as_echo_n "checking for fgrep... " >&6; }
  22494. +if test "${ac_cv_path_FGREP+set}" = set; then :
  22495. + $as_echo_n "(cached) " >&6
  22496. else
  22497. - if test -n "$ac_ct_OBJDUMP"; then
  22498. - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  22499. -else
  22500. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22501. -for as_dir in $PATH
  22502. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  22503. + then ac_cv_path_FGREP="$GREP -F"
  22504. + else
  22505. + if test -z "$FGREP"; then
  22506. + ac_path_FGREP_found=false
  22507. + # Loop through the user's path and test for each of PROGNAME-LIST
  22508. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22509. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  22510. do
  22511. IFS=$as_save_IFS
  22512. test -z "$as_dir" && as_dir=.
  22513. - for ac_exec_ext in '' $ac_executable_extensions; do
  22514. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22515. - ac_cv_prog_ac_ct_OBJDUMP="objdump"
  22516. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22517. - break 2
  22518. - fi
  22519. -done
  22520. -done
  22521. -IFS=$as_save_IFS
  22522. + for ac_prog in fgrep; do
  22523. + for ac_exec_ext in '' $ac_executable_extensions; do
  22524. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  22525. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  22526. +# Check for GNU ac_path_FGREP and select it if it is found.
  22527. + # Check for GNU $ac_path_FGREP
  22528. +case `"$ac_path_FGREP" --version 2>&1` in
  22529. +*GNU*)
  22530. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  22531. +*)
  22532. + ac_count=0
  22533. + $as_echo_n 0123456789 >"conftest.in"
  22534. + while :
  22535. + do
  22536. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22537. + mv "conftest.tmp" "conftest.in"
  22538. + cp "conftest.in" "conftest.nl"
  22539. + $as_echo 'FGREP' >> "conftest.nl"
  22540. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22541. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22542. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22543. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  22544. + # Best one so far, save it but keep looking for a better one
  22545. + ac_cv_path_FGREP="$ac_path_FGREP"
  22546. + ac_path_FGREP_max=$ac_count
  22547. + fi
  22548. + # 10*(2^10) chars as input seems more than enough
  22549. + test $ac_count -gt 10 && break
  22550. + done
  22551. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22552. +esac
  22553. -fi
  22554. -fi
  22555. -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  22556. -if test -n "$ac_ct_OBJDUMP"; then
  22557. - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  22558. -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  22559. + $ac_path_FGREP_found && break 3
  22560. + done
  22561. + done
  22562. + done
  22563. +IFS=$as_save_IFS
  22564. + if test -z "$ac_cv_path_FGREP"; then
  22565. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  22566. + fi
  22567. else
  22568. - { echo "$as_me:$LINENO: result: no" >&5
  22569. -echo "${ECHO_T}no" >&6; }
  22570. + ac_cv_path_FGREP=$FGREP
  22571. fi
  22572. - if test "x$ac_ct_OBJDUMP" = x; then
  22573. - OBJDUMP="false"
  22574. - else
  22575. - case $cross_compiling:$ac_tool_warned in
  22576. -yes:)
  22577. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22578. -whose name does not start with the host triplet. If you think this
  22579. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22580. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22581. -whose name does not start with the host triplet. If you think this
  22582. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22583. -ac_tool_warned=yes ;;
  22584. -esac
  22585. - OBJDUMP=$ac_ct_OBJDUMP
  22586. - fi
  22587. -else
  22588. - OBJDUMP="$ac_cv_prog_OBJDUMP"
  22589. + fi
  22590. fi
  22591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  22592. +$as_echo "$ac_cv_path_FGREP" >&6; }
  22593. + FGREP="$ac_cv_path_FGREP"
  22594. - ;;
  22595. -esac
  22596. +test -z "$GREP" && GREP=grep
  22597. -need_locks="$enable_libtool_lock"
  22598. -ac_ext=c
  22599. -ac_cpp='$CPP $CPPFLAGS'
  22600. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22601. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22602. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22603. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  22604. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  22605. -# On Suns, sometimes $CPP names a directory.
  22606. -if test -n "$CPP" && test -d "$CPP"; then
  22607. - CPP=
  22608. -fi
  22609. -if test -z "$CPP"; then
  22610. - if test "${ac_cv_prog_CPP+set}" = set; then
  22611. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22612. +
  22613. +
  22614. +
  22615. +
  22616. +
  22617. +
  22618. +
  22619. +
  22620. +
  22621. +
  22622. +
  22623. +
  22624. +
  22625. +
  22626. +
  22627. +
  22628. +# Check whether --with-gnu-ld was given.
  22629. +if test "${with_gnu_ld+set}" = set; then :
  22630. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  22631. else
  22632. - # Double quotes because CPP needs to be expanded
  22633. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  22634. - do
  22635. - ac_preproc_ok=false
  22636. -for ac_c_preproc_warn_flag in '' yes
  22637. -do
  22638. - # Use a header file that comes with gcc, so configuring glibc
  22639. - # with a fresh cross-compiler works.
  22640. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22641. - # <limits.h> exists even on freestanding compilers.
  22642. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22643. - # not just through cpp. "Syntax error" is here to catch this case.
  22644. - cat >conftest.$ac_ext <<_ACEOF
  22645. -/* confdefs.h. */
  22646. -_ACEOF
  22647. -cat confdefs.h >>conftest.$ac_ext
  22648. -cat >>conftest.$ac_ext <<_ACEOF
  22649. -/* end confdefs.h. */
  22650. -#ifdef __STDC__
  22651. -# include <limits.h>
  22652. -#else
  22653. -# include <assert.h>
  22654. -#endif
  22655. - Syntax error
  22656. -_ACEOF
  22657. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22658. -case "(($ac_try" in
  22659. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22660. - *) ac_try_echo=$ac_try;;
  22661. -esac
  22662. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22663. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22664. - ac_status=$?
  22665. - grep -v '^ *+' conftest.er1 >conftest.err
  22666. - rm -f conftest.er1
  22667. - cat conftest.err >&5
  22668. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22669. - (exit $ac_status); } >/dev/null; then
  22670. - if test -s conftest.err; then
  22671. - ac_cpp_err=$ac_c_preproc_warn_flag
  22672. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22673. - else
  22674. - ac_cpp_err=
  22675. - fi
  22676. + with_gnu_ld=no
  22677. +fi
  22678. +
  22679. +ac_prog=ld
  22680. +if test "$GCC" = yes; then
  22681. + # Check if gcc -print-prog-name=ld gives a path.
  22682. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  22683. +$as_echo_n "checking for ld used by $CC... " >&6; }
  22684. + case $host in
  22685. + *-*-mingw*)
  22686. + # gcc leaves a trailing carriage return which upsets mingw
  22687. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  22688. + *)
  22689. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  22690. + esac
  22691. + case $ac_prog in
  22692. + # Accept absolute paths.
  22693. + [\\/]* | ?:[\\/]*)
  22694. + re_direlt='/[^/][^/]*/\.\./'
  22695. + # Canonicalize the pathname of ld
  22696. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  22697. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  22698. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  22699. + done
  22700. + test -z "$LD" && LD="$ac_prog"
  22701. + ;;
  22702. + "")
  22703. + # If it fails, then pretend we aren't using GCC.
  22704. + ac_prog=ld
  22705. + ;;
  22706. + *)
  22707. + # If it is relative, then search for the first ld in PATH.
  22708. + with_gnu_ld=unknown
  22709. + ;;
  22710. + esac
  22711. +elif test "$with_gnu_ld" = yes; then
  22712. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  22713. +$as_echo_n "checking for GNU ld... " >&6; }
  22714. else
  22715. - ac_cpp_err=yes
  22716. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  22717. +$as_echo_n "checking for non-GNU ld... " >&6; }
  22718. fi
  22719. -if test -z "$ac_cpp_err"; then
  22720. - :
  22721. +if test "${lt_cv_path_LD+set}" = set; then :
  22722. + $as_echo_n "(cached) " >&6
  22723. else
  22724. - echo "$as_me: failed program was:" >&5
  22725. -sed 's/^/| /' conftest.$ac_ext >&5
  22726. -
  22727. - # Broken: fails on valid input.
  22728. -continue
  22729. + if test -z "$LD"; then
  22730. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22731. + for ac_dir in $PATH; do
  22732. + IFS="$lt_save_ifs"
  22733. + test -z "$ac_dir" && ac_dir=.
  22734. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  22735. + lt_cv_path_LD="$ac_dir/$ac_prog"
  22736. + # Check to see if the program is GNU ld. I'd rather use --version,
  22737. + # but apparently some variants of GNU ld only accept -v.
  22738. + # Break only if it was the GNU/non-GNU ld that we prefer.
  22739. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  22740. + *GNU* | *'with BFD'*)
  22741. + test "$with_gnu_ld" != no && break
  22742. + ;;
  22743. + *)
  22744. + test "$with_gnu_ld" != yes && break
  22745. + ;;
  22746. + esac
  22747. + fi
  22748. + done
  22749. + IFS="$lt_save_ifs"
  22750. +else
  22751. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  22752. +fi
  22753. fi
  22754. -rm -f conftest.err conftest.$ac_ext
  22755. -
  22756. - # OK, works on sane cases. Now check whether nonexistent headers
  22757. - # can be detected and how.
  22758. - cat >conftest.$ac_ext <<_ACEOF
  22759. -/* confdefs.h. */
  22760. -_ACEOF
  22761. -cat confdefs.h >>conftest.$ac_ext
  22762. -cat >>conftest.$ac_ext <<_ACEOF
  22763. -/* end confdefs.h. */
  22764. -#include <ac_nonexistent.h>
  22765. -_ACEOF
  22766. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22767. -case "(($ac_try" in
  22768. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22769. - *) ac_try_echo=$ac_try;;
  22770. -esac
  22771. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22772. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22773. - ac_status=$?
  22774. - grep -v '^ *+' conftest.er1 >conftest.err
  22775. - rm -f conftest.er1
  22776. - cat conftest.err >&5
  22777. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22778. - (exit $ac_status); } >/dev/null; then
  22779. - if test -s conftest.err; then
  22780. - ac_cpp_err=$ac_c_preproc_warn_flag
  22781. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22782. - else
  22783. - ac_cpp_err=
  22784. - fi
  22785. +LD="$lt_cv_path_LD"
  22786. +if test -n "$LD"; then
  22787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  22788. +$as_echo "$LD" >&6; }
  22789. else
  22790. - ac_cpp_err=yes
  22791. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22792. +$as_echo "no" >&6; }
  22793. fi
  22794. -if test -z "$ac_cpp_err"; then
  22795. - # Broken: success on invalid input.
  22796. -continue
  22797. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  22798. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  22799. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  22800. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  22801. + $as_echo_n "(cached) " >&6
  22802. else
  22803. - echo "$as_me: failed program was:" >&5
  22804. -sed 's/^/| /' conftest.$ac_ext >&5
  22805. -
  22806. - # Passes both tests.
  22807. -ac_preproc_ok=:
  22808. -break
  22809. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22810. +case `$LD -v 2>&1 </dev/null` in
  22811. +*GNU* | *'with BFD'*)
  22812. + lt_cv_prog_gnu_ld=yes
  22813. + ;;
  22814. +*)
  22815. + lt_cv_prog_gnu_ld=no
  22816. + ;;
  22817. +esac
  22818. fi
  22819. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  22820. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  22821. +with_gnu_ld=$lt_cv_prog_gnu_ld
  22822. -rm -f conftest.err conftest.$ac_ext
  22823. -done
  22824. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22825. -rm -f conftest.err conftest.$ac_ext
  22826. -if $ac_preproc_ok; then
  22827. - break
  22828. -fi
  22829. - done
  22830. - ac_cv_prog_CPP=$CPP
  22831. -fi
  22832. - CPP=$ac_cv_prog_CPP
  22833. +
  22834. +
  22835. +
  22836. +
  22837. +
  22838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  22839. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  22840. +if test "${lt_cv_path_NM+set}" = set; then :
  22841. + $as_echo_n "(cached) " >&6
  22842. else
  22843. - ac_cv_prog_CPP=$CPP
  22844. + if test -n "$NM"; then
  22845. + # Let the user override the test.
  22846. + lt_cv_path_NM="$NM"
  22847. +else
  22848. + lt_nm_to_check="${ac_tool_prefix}nm"
  22849. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  22850. + lt_nm_to_check="$lt_nm_to_check nm"
  22851. + fi
  22852. + for lt_tmp_nm in $lt_nm_to_check; do
  22853. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22854. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  22855. + IFS="$lt_save_ifs"
  22856. + test -z "$ac_dir" && ac_dir=.
  22857. + tmp_nm="$ac_dir/$lt_tmp_nm"
  22858. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  22859. + # Check to see if the nm accepts a BSD-compat flag.
  22860. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  22861. + # nm: unknown option "B" ignored
  22862. + # Tru64's nm complains that /dev/null is an invalid object file
  22863. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  22864. + */dev/null* | *'Invalid file or object type'*)
  22865. + lt_cv_path_NM="$tmp_nm -B"
  22866. + break
  22867. + ;;
  22868. + *)
  22869. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  22870. + */dev/null*)
  22871. + lt_cv_path_NM="$tmp_nm -p"
  22872. + break
  22873. + ;;
  22874. + *)
  22875. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  22876. + continue # so that we can try to find one that supports BSD flags
  22877. + ;;
  22878. + esac
  22879. + ;;
  22880. + esac
  22881. + fi
  22882. + done
  22883. + IFS="$lt_save_ifs"
  22884. + done
  22885. + : ${lt_cv_path_NM=no}
  22886. fi
  22887. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  22888. -echo "${ECHO_T}$CPP" >&6; }
  22889. -ac_preproc_ok=false
  22890. -for ac_c_preproc_warn_flag in '' yes
  22891. +fi
  22892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  22893. +$as_echo "$lt_cv_path_NM" >&6; }
  22894. +if test "$lt_cv_path_NM" != "no"; then
  22895. + NM="$lt_cv_path_NM"
  22896. +else
  22897. + # Didn't find any BSD compatible name lister, look for dumpbin.
  22898. + if test -n "$ac_tool_prefix"; then
  22899. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  22900. + do
  22901. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22902. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22904. +$as_echo_n "checking for $ac_word... " >&6; }
  22905. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  22906. + $as_echo_n "(cached) " >&6
  22907. +else
  22908. + if test -n "$DUMPBIN"; then
  22909. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  22910. +else
  22911. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22912. +for as_dir in $PATH
  22913. do
  22914. - # Use a header file that comes with gcc, so configuring glibc
  22915. - # with a fresh cross-compiler works.
  22916. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22917. - # <limits.h> exists even on freestanding compilers.
  22918. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22919. - # not just through cpp. "Syntax error" is here to catch this case.
  22920. - cat >conftest.$ac_ext <<_ACEOF
  22921. -/* confdefs.h. */
  22922. -_ACEOF
  22923. -cat confdefs.h >>conftest.$ac_ext
  22924. -cat >>conftest.$ac_ext <<_ACEOF
  22925. -/* end confdefs.h. */
  22926. -#ifdef __STDC__
  22927. -# include <limits.h>
  22928. -#else
  22929. -# include <assert.h>
  22930. -#endif
  22931. - Syntax error
  22932. -_ACEOF
  22933. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22934. -case "(($ac_try" in
  22935. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22936. - *) ac_try_echo=$ac_try;;
  22937. -esac
  22938. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22939. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22940. - ac_status=$?
  22941. - grep -v '^ *+' conftest.er1 >conftest.err
  22942. - rm -f conftest.er1
  22943. - cat conftest.err >&5
  22944. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22945. - (exit $ac_status); } >/dev/null; then
  22946. - if test -s conftest.err; then
  22947. - ac_cpp_err=$ac_c_preproc_warn_flag
  22948. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22949. - else
  22950. - ac_cpp_err=
  22951. + IFS=$as_save_IFS
  22952. + test -z "$as_dir" && as_dir=.
  22953. + for ac_exec_ext in '' $ac_executable_extensions; do
  22954. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22955. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  22956. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22957. + break 2
  22958. fi
  22959. -else
  22960. - ac_cpp_err=yes
  22961. +done
  22962. + done
  22963. +IFS=$as_save_IFS
  22964. +
  22965. fi
  22966. -if test -z "$ac_cpp_err"; then
  22967. - :
  22968. +fi
  22969. +DUMPBIN=$ac_cv_prog_DUMPBIN
  22970. +if test -n "$DUMPBIN"; then
  22971. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  22972. +$as_echo "$DUMPBIN" >&6; }
  22973. else
  22974. - echo "$as_me: failed program was:" >&5
  22975. -sed 's/^/| /' conftest.$ac_ext >&5
  22976. -
  22977. - # Broken: fails on valid input.
  22978. -continue
  22979. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22980. +$as_echo "no" >&6; }
  22981. fi
  22982. -rm -f conftest.err conftest.$ac_ext
  22983. - # OK, works on sane cases. Now check whether nonexistent headers
  22984. - # can be detected and how.
  22985. - cat >conftest.$ac_ext <<_ACEOF
  22986. -/* confdefs.h. */
  22987. -_ACEOF
  22988. -cat confdefs.h >>conftest.$ac_ext
  22989. -cat >>conftest.$ac_ext <<_ACEOF
  22990. -/* end confdefs.h. */
  22991. -#include <ac_nonexistent.h>
  22992. -_ACEOF
  22993. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22994. -case "(($ac_try" in
  22995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22996. - *) ac_try_echo=$ac_try;;
  22997. -esac
  22998. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22999. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23000. - ac_status=$?
  23001. - grep -v '^ *+' conftest.er1 >conftest.err
  23002. - rm -f conftest.er1
  23003. - cat conftest.err >&5
  23004. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23005. - (exit $ac_status); } >/dev/null; then
  23006. - if test -s conftest.err; then
  23007. - ac_cpp_err=$ac_c_preproc_warn_flag
  23008. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23009. - else
  23010. - ac_cpp_err=
  23011. - fi
  23012. -else
  23013. - ac_cpp_err=yes
  23014. + test -n "$DUMPBIN" && break
  23015. + done
  23016. fi
  23017. -if test -z "$ac_cpp_err"; then
  23018. - # Broken: success on invalid input.
  23019. -continue
  23020. +if test -z "$DUMPBIN"; then
  23021. + ac_ct_DUMPBIN=$DUMPBIN
  23022. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  23023. +do
  23024. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  23025. +set dummy $ac_prog; ac_word=$2
  23026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23027. +$as_echo_n "checking for $ac_word... " >&6; }
  23028. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  23029. + $as_echo_n "(cached) " >&6
  23030. else
  23031. - echo "$as_me: failed program was:" >&5
  23032. -sed 's/^/| /' conftest.$ac_ext >&5
  23033. + if test -n "$ac_ct_DUMPBIN"; then
  23034. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  23035. +else
  23036. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23037. +for as_dir in $PATH
  23038. +do
  23039. + IFS=$as_save_IFS
  23040. + test -z "$as_dir" && as_dir=.
  23041. + for ac_exec_ext in '' $ac_executable_extensions; do
  23042. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23043. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  23044. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23045. + break 2
  23046. + fi
  23047. +done
  23048. + done
  23049. +IFS=$as_save_IFS
  23050. - # Passes both tests.
  23051. -ac_preproc_ok=:
  23052. -break
  23053. +fi
  23054. +fi
  23055. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  23056. +if test -n "$ac_ct_DUMPBIN"; then
  23057. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  23058. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  23059. +else
  23060. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23061. +$as_echo "no" >&6; }
  23062. fi
  23063. -rm -f conftest.err conftest.$ac_ext
  23064. + test -n "$ac_ct_DUMPBIN" && break
  23065. done
  23066. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23067. -rm -f conftest.err conftest.$ac_ext
  23068. -if $ac_preproc_ok; then
  23069. - :
  23070. -else
  23071. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  23072. -See \`config.log' for more details." >&5
  23073. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  23074. -See \`config.log' for more details." >&2;}
  23075. - { (exit 1); exit 1; }; }
  23076. -fi
  23077. -ac_ext=c
  23078. -ac_cpp='$CPP $CPPFLAGS'
  23079. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23080. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23081. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23082. + if test "x$ac_ct_DUMPBIN" = x; then
  23083. + DUMPBIN=":"
  23084. + else
  23085. + case $cross_compiling:$ac_tool_warned in
  23086. +yes:)
  23087. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23088. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23089. +ac_tool_warned=yes ;;
  23090. +esac
  23091. + DUMPBIN=$ac_ct_DUMPBIN
  23092. + fi
  23093. +fi
  23094. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23095. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  23096. -if test "${ac_cv_header_stdc+set}" = set; then
  23097. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23098. -else
  23099. - cat >conftest.$ac_ext <<_ACEOF
  23100. -/* confdefs.h. */
  23101. -_ACEOF
  23102. -cat confdefs.h >>conftest.$ac_ext
  23103. -cat >>conftest.$ac_ext <<_ACEOF
  23104. -/* end confdefs.h. */
  23105. -#include <stdlib.h>
  23106. -#include <stdarg.h>
  23107. -#include <string.h>
  23108. -#include <float.h>
  23109. + if test "$DUMPBIN" != ":"; then
  23110. + NM="$DUMPBIN"
  23111. + fi
  23112. +fi
  23113. +test -z "$NM" && NM=nm
  23114. -int
  23115. -main ()
  23116. -{
  23117. - ;
  23118. - return 0;
  23119. -}
  23120. -_ACEOF
  23121. -rm -f conftest.$ac_objext
  23122. -if { (ac_try="$ac_compile"
  23123. -case "(($ac_try" in
  23124. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23125. - *) ac_try_echo=$ac_try;;
  23126. -esac
  23127. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23128. - (eval "$ac_compile") 2>conftest.er1
  23129. - ac_status=$?
  23130. - grep -v '^ *+' conftest.er1 >conftest.err
  23131. - rm -f conftest.er1
  23132. - cat conftest.err >&5
  23133. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23134. - (exit $ac_status); } &&
  23135. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23136. - { (case "(($ac_try" in
  23137. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23138. - *) ac_try_echo=$ac_try;;
  23139. -esac
  23140. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23141. - (eval "$ac_try") 2>&5
  23142. - ac_status=$?
  23143. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23144. - (exit $ac_status); }; } &&
  23145. - { ac_try='test -s conftest.$ac_objext'
  23146. - { (case "(($ac_try" in
  23147. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23148. - *) ac_try_echo=$ac_try;;
  23149. -esac
  23150. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23151. - (eval "$ac_try") 2>&5
  23152. - ac_status=$?
  23153. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23154. - (exit $ac_status); }; }; then
  23155. - ac_cv_header_stdc=yes
  23156. -else
  23157. - echo "$as_me: failed program was:" >&5
  23158. -sed 's/^/| /' conftest.$ac_ext >&5
  23159. - ac_cv_header_stdc=no
  23160. -fi
  23161. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23162. -if test $ac_cv_header_stdc = yes; then
  23163. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23164. - cat >conftest.$ac_ext <<_ACEOF
  23165. -/* confdefs.h. */
  23166. -_ACEOF
  23167. -cat confdefs.h >>conftest.$ac_ext
  23168. -cat >>conftest.$ac_ext <<_ACEOF
  23169. -/* end confdefs.h. */
  23170. -#include <string.h>
  23171. -_ACEOF
  23172. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23173. - $EGREP "memchr" >/dev/null 2>&1; then
  23174. - :
  23175. -else
  23176. - ac_cv_header_stdc=no
  23177. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  23178. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  23179. +if test "${lt_cv_nm_interface+set}" = set; then :
  23180. + $as_echo_n "(cached) " >&6
  23181. +else
  23182. + lt_cv_nm_interface="BSD nm"
  23183. + echo "int some_variable = 0;" > conftest.$ac_ext
  23184. + (eval echo "\"\$as_me:5229: $ac_compile\"" >&5)
  23185. + (eval "$ac_compile" 2>conftest.err)
  23186. + cat conftest.err >&5
  23187. + (eval echo "\"\$as_me:5232: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  23188. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  23189. + cat conftest.err >&5
  23190. + (eval echo "\"\$as_me:5235: output\"" >&5)
  23191. + cat conftest.out >&5
  23192. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  23193. + lt_cv_nm_interface="MS dumpbin"
  23194. + fi
  23195. + rm -f conftest*
  23196. fi
  23197. -rm -f conftest*
  23198. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  23199. +$as_echo "$lt_cv_nm_interface" >&6; }
  23200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  23201. +$as_echo_n "checking whether ln -s works... " >&6; }
  23202. +LN_S=$as_ln_s
  23203. +if test "$LN_S" = "ln -s"; then
  23204. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23205. +$as_echo "yes" >&6; }
  23206. +else
  23207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  23208. +$as_echo "no, using $LN_S" >&6; }
  23209. fi
  23210. -if test $ac_cv_header_stdc = yes; then
  23211. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23212. - cat >conftest.$ac_ext <<_ACEOF
  23213. -/* confdefs.h. */
  23214. -_ACEOF
  23215. -cat confdefs.h >>conftest.$ac_ext
  23216. -cat >>conftest.$ac_ext <<_ACEOF
  23217. -/* end confdefs.h. */
  23218. -#include <stdlib.h>
  23219. -
  23220. -_ACEOF
  23221. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23222. - $EGREP "free" >/dev/null 2>&1; then
  23223. - :
  23224. +# find the maximum length of command line arguments
  23225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  23226. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  23227. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  23228. + $as_echo_n "(cached) " >&6
  23229. else
  23230. - ac_cv_header_stdc=no
  23231. -fi
  23232. -rm -f conftest*
  23233. + i=0
  23234. + teststring="ABCD"
  23235. -fi
  23236. + case $build_os in
  23237. + msdosdjgpp*)
  23238. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  23239. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  23240. + # during glob expansion). Even if it were fixed, the result of this
  23241. + # check would be larger than it should be.
  23242. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23243. + ;;
  23244. -if test $ac_cv_header_stdc = yes; then
  23245. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23246. - if test "$cross_compiling" = yes; then
  23247. - :
  23248. -else
  23249. - cat >conftest.$ac_ext <<_ACEOF
  23250. -/* confdefs.h. */
  23251. -_ACEOF
  23252. -cat confdefs.h >>conftest.$ac_ext
  23253. -cat >>conftest.$ac_ext <<_ACEOF
  23254. -/* end confdefs.h. */
  23255. -#include <ctype.h>
  23256. -#include <stdlib.h>
  23257. -#if ((' ' & 0x0FF) == 0x020)
  23258. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23259. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23260. -#else
  23261. -# define ISLOWER(c) \
  23262. - (('a' <= (c) && (c) <= 'i') \
  23263. - || ('j' <= (c) && (c) <= 'r') \
  23264. - || ('s' <= (c) && (c) <= 'z'))
  23265. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23266. -#endif
  23267. + gnu*)
  23268. + # Under GNU Hurd, this test is not required because there is
  23269. + # no limit to the length of command line arguments.
  23270. + # Libtool will interpret -1 as no limit whatsoever
  23271. + lt_cv_sys_max_cmd_len=-1;
  23272. + ;;
  23273. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23274. -int
  23275. -main ()
  23276. -{
  23277. - int i;
  23278. - for (i = 0; i < 256; i++)
  23279. - if (XOR (islower (i), ISLOWER (i))
  23280. - || toupper (i) != TOUPPER (i))
  23281. - return 2;
  23282. - return 0;
  23283. -}
  23284. -_ACEOF
  23285. -rm -f conftest$ac_exeext
  23286. -if { (ac_try="$ac_link"
  23287. -case "(($ac_try" in
  23288. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23289. - *) ac_try_echo=$ac_try;;
  23290. -esac
  23291. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23292. - (eval "$ac_link") 2>&5
  23293. - ac_status=$?
  23294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23295. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23296. - { (case "(($ac_try" in
  23297. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23298. - *) ac_try_echo=$ac_try;;
  23299. -esac
  23300. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23301. - (eval "$ac_try") 2>&5
  23302. - ac_status=$?
  23303. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23304. - (exit $ac_status); }; }; then
  23305. - :
  23306. -else
  23307. - echo "$as_me: program exited with status $ac_status" >&5
  23308. -echo "$as_me: failed program was:" >&5
  23309. -sed 's/^/| /' conftest.$ac_ext >&5
  23310. + cygwin* | mingw* | cegcc*)
  23311. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  23312. + # about 5 minutes as the teststring grows exponentially.
  23313. + # Worse, since 9x/ME are not pre-emptively multitasking,
  23314. + # you end up with a "frozen" computer, even though with patience
  23315. + # the test eventually succeeds (with a max line length of 256k).
  23316. + # Instead, let's just punt: use the minimum linelength reported by
  23317. + # all of the supported platforms: 8192 (on NT/2K/XP).
  23318. + lt_cv_sys_max_cmd_len=8192;
  23319. + ;;
  23320. -( exit $ac_status )
  23321. -ac_cv_header_stdc=no
  23322. -fi
  23323. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23324. -fi
  23325. + amigaos*)
  23326. + # On AmigaOS with pdksh, this test takes hours, literally.
  23327. + # So we just punt and use a minimum line length of 8192.
  23328. + lt_cv_sys_max_cmd_len=8192;
  23329. + ;;
  23330. +
  23331. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23332. + # This has been around since 386BSD, at least. Likely further.
  23333. + if test -x /sbin/sysctl; then
  23334. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23335. + elif test -x /usr/sbin/sysctl; then
  23336. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23337. + else
  23338. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  23339. + fi
  23340. + # And add a safety zone
  23341. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23342. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23343. + ;;
  23344. + interix*)
  23345. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  23346. + lt_cv_sys_max_cmd_len=196608
  23347. + ;;
  23348. +
  23349. + osf*)
  23350. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23351. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23352. + # nice to cause kernel panics so lets avoid the loop below.
  23353. + # First set a reasonable default.
  23354. + lt_cv_sys_max_cmd_len=16384
  23355. + #
  23356. + if test -x /sbin/sysconfig; then
  23357. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23358. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23359. + esac
  23360. + fi
  23361. + ;;
  23362. + sco3.2v5*)
  23363. + lt_cv_sys_max_cmd_len=102400
  23364. + ;;
  23365. + sysv5* | sco5v6* | sysv4.2uw2*)
  23366. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  23367. + if test -n "$kargmax"; then
  23368. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  23369. + else
  23370. + lt_cv_sys_max_cmd_len=32768
  23371. + fi
  23372. + ;;
  23373. + *)
  23374. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  23375. + if test -n "$lt_cv_sys_max_cmd_len"; then
  23376. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23377. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23378. + else
  23379. + # Make teststring a little bigger before we do anything with it.
  23380. + # a 1K string should be a reasonable start.
  23381. + for i in 1 2 3 4 5 6 7 8 ; do
  23382. + teststring=$teststring$teststring
  23383. + done
  23384. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  23385. + # If test is not a shell built-in, we'll probably end up computing a
  23386. + # maximum length that is only half of the actual maximum length, but
  23387. + # we can't tell.
  23388. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  23389. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  23390. + test $i != 17 # 1/2 MB should be enough
  23391. + do
  23392. + i=`expr $i + 1`
  23393. + teststring=$teststring$teststring
  23394. + done
  23395. + # Only check the string length outside the loop.
  23396. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  23397. + teststring=
  23398. + # Add a significant safety factor because C++ compilers can tack on
  23399. + # massive amounts of additional arguments before passing them to the
  23400. + # linker. It appears as though 1/2 is a usable value.
  23401. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23402. + fi
  23403. + ;;
  23404. + esac
  23405. fi
  23406. +
  23407. +if test -n $lt_cv_sys_max_cmd_len ; then
  23408. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  23409. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  23410. +else
  23411. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  23412. +$as_echo "none" >&6; }
  23413. fi
  23414. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  23415. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  23416. -if test $ac_cv_header_stdc = yes; then
  23417. +max_cmd_len=$lt_cv_sys_max_cmd_len
  23418. -cat >>confdefs.h <<\_ACEOF
  23419. -#define STDC_HEADERS 1
  23420. -_ACEOF
  23421. -fi
  23422. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  23423. +: ${CP="cp -f"}
  23424. +: ${MV="mv -f"}
  23425. +: ${RM="rm -f"}
  23426. +
  23427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  23428. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  23429. +# Try some XSI features
  23430. +xsi_shell=no
  23431. +( _lt_dummy="a/b/c"
  23432. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  23433. + = c,a/b,, \
  23434. + && eval 'test $(( 1 + 1 )) -eq 2 \
  23435. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  23436. + && xsi_shell=yes
  23437. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  23438. +$as_echo "$xsi_shell" >&6; }
  23439. +
  23440. +
  23441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  23442. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  23443. +lt_shell_append=no
  23444. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  23445. + >/dev/null 2>&1 \
  23446. + && lt_shell_append=yes
  23447. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  23448. +$as_echo "$lt_shell_append" >&6; }
  23449. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  23450. + lt_unset=unset
  23451. +else
  23452. + lt_unset=false
  23453. +fi
  23454. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  23455. - inttypes.h stdint.h unistd.h
  23456. -do
  23457. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23458. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  23459. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  23460. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23461. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23462. -else
  23463. - cat >conftest.$ac_ext <<_ACEOF
  23464. -/* confdefs.h. */
  23465. -_ACEOF
  23466. -cat confdefs.h >>conftest.$ac_ext
  23467. -cat >>conftest.$ac_ext <<_ACEOF
  23468. -/* end confdefs.h. */
  23469. -$ac_includes_default
  23470. -#include <$ac_header>
  23471. -_ACEOF
  23472. -rm -f conftest.$ac_objext
  23473. -if { (ac_try="$ac_compile"
  23474. -case "(($ac_try" in
  23475. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23476. - *) ac_try_echo=$ac_try;;
  23477. -esac
  23478. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23479. - (eval "$ac_compile") 2>conftest.er1
  23480. - ac_status=$?
  23481. - grep -v '^ *+' conftest.er1 >conftest.err
  23482. - rm -f conftest.er1
  23483. - cat conftest.err >&5
  23484. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23485. - (exit $ac_status); } &&
  23486. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23487. - { (case "(($ac_try" in
  23488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23489. - *) ac_try_echo=$ac_try;;
  23490. -esac
  23491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23492. - (eval "$ac_try") 2>&5
  23493. - ac_status=$?
  23494. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23495. - (exit $ac_status); }; } &&
  23496. - { ac_try='test -s conftest.$ac_objext'
  23497. - { (case "(($ac_try" in
  23498. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23499. - *) ac_try_echo=$ac_try;;
  23500. +# test EBCDIC or ASCII
  23501. +case `echo X|tr X '\101'` in
  23502. + A) # ASCII based system
  23503. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  23504. + lt_SP2NL='tr \040 \012'
  23505. + lt_NL2SP='tr \015\012 \040\040'
  23506. + ;;
  23507. + *) # EBCDIC based system
  23508. + lt_SP2NL='tr \100 \n'
  23509. + lt_NL2SP='tr \r\n \100\100'
  23510. + ;;
  23511. esac
  23512. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23513. - (eval "$ac_try") 2>&5
  23514. - ac_status=$?
  23515. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23516. - (exit $ac_status); }; }; then
  23517. - eval "$as_ac_Header=yes"
  23518. -else
  23519. - echo "$as_me: failed program was:" >&5
  23520. -sed 's/^/| /' conftest.$ac_ext >&5
  23521. - eval "$as_ac_Header=no"
  23522. -fi
  23523. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23524. -fi
  23525. -ac_res=`eval echo '${'$as_ac_Header'}'`
  23526. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  23527. -echo "${ECHO_T}$ac_res" >&6; }
  23528. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23529. - cat >>confdefs.h <<_ACEOF
  23530. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23531. -_ACEOF
  23532. -fi
  23533. -done
  23534. -for ac_header in dlfcn.h
  23535. -do
  23536. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23537. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23538. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  23539. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  23540. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23541. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23542. -fi
  23543. -ac_res=`eval echo '${'$as_ac_Header'}'`
  23544. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  23545. -echo "${ECHO_T}$ac_res" >&6; }
  23546. +
  23547. +
  23548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  23549. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  23550. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  23551. + $as_echo_n "(cached) " >&6
  23552. else
  23553. - # Is the header compilable?
  23554. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23555. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  23556. -cat >conftest.$ac_ext <<_ACEOF
  23557. -/* confdefs.h. */
  23558. -_ACEOF
  23559. -cat confdefs.h >>conftest.$ac_ext
  23560. -cat >>conftest.$ac_ext <<_ACEOF
  23561. -/* end confdefs.h. */
  23562. -$ac_includes_default
  23563. -#include <$ac_header>
  23564. -_ACEOF
  23565. -rm -f conftest.$ac_objext
  23566. -if { (ac_try="$ac_compile"
  23567. -case "(($ac_try" in
  23568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23569. - *) ac_try_echo=$ac_try;;
  23570. -esac
  23571. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23572. - (eval "$ac_compile") 2>conftest.er1
  23573. - ac_status=$?
  23574. - grep -v '^ *+' conftest.er1 >conftest.err
  23575. - rm -f conftest.er1
  23576. - cat conftest.err >&5
  23577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23578. - (exit $ac_status); } &&
  23579. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23580. - { (case "(($ac_try" in
  23581. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23582. - *) ac_try_echo=$ac_try;;
  23583. + lt_cv_ld_reload_flag='-r'
  23584. +fi
  23585. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  23586. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  23587. +reload_flag=$lt_cv_ld_reload_flag
  23588. +case $reload_flag in
  23589. +"" | " "*) ;;
  23590. +*) reload_flag=" $reload_flag" ;;
  23591. esac
  23592. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23593. - (eval "$ac_try") 2>&5
  23594. - ac_status=$?
  23595. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23596. - (exit $ac_status); }; } &&
  23597. - { ac_try='test -s conftest.$ac_objext'
  23598. - { (case "(($ac_try" in
  23599. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23600. - *) ac_try_echo=$ac_try;;
  23601. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  23602. +case $host_os in
  23603. + darwin*)
  23604. + if test "$GCC" = yes; then
  23605. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  23606. + else
  23607. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  23608. + fi
  23609. + ;;
  23610. esac
  23611. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23612. - (eval "$ac_try") 2>&5
  23613. - ac_status=$?
  23614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23615. - (exit $ac_status); }; }; then
  23616. - ac_header_compiler=yes
  23617. -else
  23618. - echo "$as_me: failed program was:" >&5
  23619. -sed 's/^/| /' conftest.$ac_ext >&5
  23620. -
  23621. - ac_header_compiler=no
  23622. -fi
  23623. -
  23624. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23625. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23626. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  23627. -# Is the header present?
  23628. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23629. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  23630. -cat >conftest.$ac_ext <<_ACEOF
  23631. -/* confdefs.h. */
  23632. -_ACEOF
  23633. -cat confdefs.h >>conftest.$ac_ext
  23634. -cat >>conftest.$ac_ext <<_ACEOF
  23635. -/* end confdefs.h. */
  23636. -#include <$ac_header>
  23637. -_ACEOF
  23638. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23639. -case "(($ac_try" in
  23640. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23641. - *) ac_try_echo=$ac_try;;
  23642. -esac
  23643. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23644. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23645. - ac_status=$?
  23646. - grep -v '^ *+' conftest.er1 >conftest.err
  23647. - rm -f conftest.er1
  23648. - cat conftest.err >&5
  23649. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23650. - (exit $ac_status); } >/dev/null; then
  23651. - if test -s conftest.err; then
  23652. - ac_cpp_err=$ac_c_preproc_warn_flag
  23653. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23654. - else
  23655. - ac_cpp_err=
  23656. - fi
  23657. -else
  23658. - ac_cpp_err=yes
  23659. -fi
  23660. -if test -z "$ac_cpp_err"; then
  23661. - ac_header_preproc=yes
  23662. -else
  23663. - echo "$as_me: failed program was:" >&5
  23664. -sed 's/^/| /' conftest.$ac_ext >&5
  23665. - ac_header_preproc=no
  23666. -fi
  23667. -rm -f conftest.err conftest.$ac_ext
  23668. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23669. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  23670. -# So? What about this header?
  23671. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23672. - yes:no: )
  23673. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23674. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23675. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23676. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23677. - ac_header_preproc=yes
  23678. - ;;
  23679. - no:yes:* )
  23680. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23681. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23682. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23683. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23684. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23685. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23686. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23687. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23688. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23689. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23690. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23691. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23692. - ;;
  23693. -esac
  23694. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  23695. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  23696. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23697. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23698. -else
  23699. - eval "$as_ac_Header=\$ac_header_preproc"
  23700. -fi
  23701. -ac_res=`eval echo '${'$as_ac_Header'}'`
  23702. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  23703. -echo "${ECHO_T}$ac_res" >&6; }
  23704. -fi
  23705. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23706. - cat >>confdefs.h <<_ACEOF
  23707. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23708. -_ACEOF
  23709. -fi
  23710. -done
  23711. -ac_ext=cpp
  23712. -ac_cpp='$CXXCPP $CPPFLAGS'
  23713. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23714. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23715. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23716. -if test -z "$CXX"; then
  23717. - if test -n "$CCC"; then
  23718. - CXX=$CCC
  23719. - else
  23720. - if test -n "$ac_tool_prefix"; then
  23721. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  23722. - do
  23723. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23724. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23725. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23726. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23727. -if test "${ac_cv_prog_CXX+set}" = set; then
  23728. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23729. +if test -n "$ac_tool_prefix"; then
  23730. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  23731. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  23732. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23733. +$as_echo_n "checking for $ac_word... " >&6; }
  23734. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  23735. + $as_echo_n "(cached) " >&6
  23736. else
  23737. - if test -n "$CXX"; then
  23738. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  23739. + if test -n "$OBJDUMP"; then
  23740. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  23741. else
  23742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23743. for as_dir in $PATH
  23744. do
  23745. IFS=$as_save_IFS
  23746. test -z "$as_dir" && as_dir=.
  23747. - for ac_exec_ext in '' $ac_executable_extensions; do
  23748. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23749. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  23750. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23751. + for ac_exec_ext in '' $ac_executable_extensions; do
  23752. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23753. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  23754. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23755. break 2
  23756. fi
  23757. done
  23758. -done
  23759. + done
  23760. IFS=$as_save_IFS
  23761. fi
  23762. fi
  23763. -CXX=$ac_cv_prog_CXX
  23764. -if test -n "$CXX"; then
  23765. - { echo "$as_me:$LINENO: result: $CXX" >&5
  23766. -echo "${ECHO_T}$CXX" >&6; }
  23767. +OBJDUMP=$ac_cv_prog_OBJDUMP
  23768. +if test -n "$OBJDUMP"; then
  23769. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  23770. +$as_echo "$OBJDUMP" >&6; }
  23771. else
  23772. - { echo "$as_me:$LINENO: result: no" >&5
  23773. -echo "${ECHO_T}no" >&6; }
  23774. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23775. +$as_echo "no" >&6; }
  23776. fi
  23777. - test -n "$CXX" && break
  23778. - done
  23779. fi
  23780. -if test -z "$CXX"; then
  23781. - ac_ct_CXX=$CXX
  23782. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  23783. -do
  23784. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23785. -set dummy $ac_prog; ac_word=$2
  23786. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23787. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23788. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  23789. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23790. +if test -z "$ac_cv_prog_OBJDUMP"; then
  23791. + ac_ct_OBJDUMP=$OBJDUMP
  23792. + # Extract the first word of "objdump", so it can be a program name with args.
  23793. +set dummy objdump; ac_word=$2
  23794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23795. +$as_echo_n "checking for $ac_word... " >&6; }
  23796. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  23797. + $as_echo_n "(cached) " >&6
  23798. else
  23799. - if test -n "$ac_ct_CXX"; then
  23800. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  23801. + if test -n "$ac_ct_OBJDUMP"; then
  23802. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  23803. else
  23804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23805. for as_dir in $PATH
  23806. do
  23807. IFS=$as_save_IFS
  23808. test -z "$as_dir" && as_dir=.
  23809. - for ac_exec_ext in '' $ac_executable_extensions; do
  23810. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23811. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  23812. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23813. + for ac_exec_ext in '' $ac_executable_extensions; do
  23814. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23815. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  23816. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23817. break 2
  23818. fi
  23819. done
  23820. -done
  23821. + done
  23822. IFS=$as_save_IFS
  23823. fi
  23824. fi
  23825. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  23826. -if test -n "$ac_ct_CXX"; then
  23827. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  23828. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  23829. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  23830. +if test -n "$ac_ct_OBJDUMP"; then
  23831. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  23832. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  23833. else
  23834. - { echo "$as_me:$LINENO: result: no" >&5
  23835. -echo "${ECHO_T}no" >&6; }
  23836. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23837. +$as_echo "no" >&6; }
  23838. fi
  23839. -
  23840. - test -n "$ac_ct_CXX" && break
  23841. -done
  23842. -
  23843. - if test "x$ac_ct_CXX" = x; then
  23844. - CXX="g++"
  23845. + if test "x$ac_ct_OBJDUMP" = x; then
  23846. + OBJDUMP="false"
  23847. else
  23848. case $cross_compiling:$ac_tool_warned in
  23849. yes:)
  23850. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23851. -whose name does not start with the host triplet. If you think this
  23852. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23853. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23854. -whose name does not start with the host triplet. If you think this
  23855. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23856. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23857. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23858. ac_tool_warned=yes ;;
  23859. esac
  23860. - CXX=$ac_ct_CXX
  23861. - fi
  23862. -fi
  23863. -
  23864. + OBJDUMP=$ac_ct_OBJDUMP
  23865. fi
  23866. -fi
  23867. -# Provide some information about the compiler.
  23868. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  23869. -ac_compiler=`set X $ac_compile; echo $2`
  23870. -{ (ac_try="$ac_compiler --version >&5"
  23871. -case "(($ac_try" in
  23872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23873. - *) ac_try_echo=$ac_try;;
  23874. -esac
  23875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23876. - (eval "$ac_compiler --version >&5") 2>&5
  23877. - ac_status=$?
  23878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23879. - (exit $ac_status); }
  23880. -{ (ac_try="$ac_compiler -v >&5"
  23881. -case "(($ac_try" in
  23882. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23883. - *) ac_try_echo=$ac_try;;
  23884. -esac
  23885. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23886. - (eval "$ac_compiler -v >&5") 2>&5
  23887. - ac_status=$?
  23888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23889. - (exit $ac_status); }
  23890. -{ (ac_try="$ac_compiler -V >&5"
  23891. -case "(($ac_try" in
  23892. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23893. - *) ac_try_echo=$ac_try;;
  23894. -esac
  23895. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23896. - (eval "$ac_compiler -V >&5") 2>&5
  23897. - ac_status=$?
  23898. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23899. - (exit $ac_status); }
  23900. -
  23901. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  23902. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  23903. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  23904. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23905. -else
  23906. - cat >conftest.$ac_ext <<_ACEOF
  23907. -/* confdefs.h. */
  23908. -_ACEOF
  23909. -cat confdefs.h >>conftest.$ac_ext
  23910. -cat >>conftest.$ac_ext <<_ACEOF
  23911. -/* end confdefs.h. */
  23912. -
  23913. -int
  23914. -main ()
  23915. -{
  23916. -#ifndef __GNUC__
  23917. - choke me
  23918. -#endif
  23919. -
  23920. - ;
  23921. - return 0;
  23922. -}
  23923. -_ACEOF
  23924. -rm -f conftest.$ac_objext
  23925. -if { (ac_try="$ac_compile"
  23926. -case "(($ac_try" in
  23927. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23928. - *) ac_try_echo=$ac_try;;
  23929. -esac
  23930. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23931. - (eval "$ac_compile") 2>conftest.er1
  23932. - ac_status=$?
  23933. - grep -v '^ *+' conftest.er1 >conftest.err
  23934. - rm -f conftest.er1
  23935. - cat conftest.err >&5
  23936. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23937. - (exit $ac_status); } &&
  23938. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23939. - { (case "(($ac_try" in
  23940. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23941. - *) ac_try_echo=$ac_try;;
  23942. -esac
  23943. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23944. - (eval "$ac_try") 2>&5
  23945. - ac_status=$?
  23946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23947. - (exit $ac_status); }; } &&
  23948. - { ac_try='test -s conftest.$ac_objext'
  23949. - { (case "(($ac_try" in
  23950. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23951. - *) ac_try_echo=$ac_try;;
  23952. -esac
  23953. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23954. - (eval "$ac_try") 2>&5
  23955. - ac_status=$?
  23956. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23957. - (exit $ac_status); }; }; then
  23958. - ac_compiler_gnu=yes
  23959. else
  23960. - echo "$as_me: failed program was:" >&5
  23961. -sed 's/^/| /' conftest.$ac_ext >&5
  23962. -
  23963. - ac_compiler_gnu=no
  23964. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  23965. fi
  23966. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23967. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  23968. +test -z "$OBJDUMP" && OBJDUMP=objdump
  23969. -fi
  23970. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  23971. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  23972. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  23973. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  23974. -ac_save_CXXFLAGS=$CXXFLAGS
  23975. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  23976. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  23977. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  23978. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23979. -else
  23980. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  23981. - ac_cxx_werror_flag=yes
  23982. - ac_cv_prog_cxx_g=no
  23983. - CXXFLAGS="-g"
  23984. - cat >conftest.$ac_ext <<_ACEOF
  23985. -/* confdefs.h. */
  23986. -_ACEOF
  23987. -cat confdefs.h >>conftest.$ac_ext
  23988. -cat >>conftest.$ac_ext <<_ACEOF
  23989. -/* end confdefs.h. */
  23990. -int
  23991. -main ()
  23992. -{
  23993. - ;
  23994. - return 0;
  23995. -}
  23996. -_ACEOF
  23997. -rm -f conftest.$ac_objext
  23998. -if { (ac_try="$ac_compile"
  23999. -case "(($ac_try" in
  24000. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24001. - *) ac_try_echo=$ac_try;;
  24002. -esac
  24003. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24004. - (eval "$ac_compile") 2>conftest.er1
  24005. - ac_status=$?
  24006. - grep -v '^ *+' conftest.er1 >conftest.err
  24007. - rm -f conftest.er1
  24008. - cat conftest.err >&5
  24009. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24010. - (exit $ac_status); } &&
  24011. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  24012. - { (case "(($ac_try" in
  24013. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24014. - *) ac_try_echo=$ac_try;;
  24015. -esac
  24016. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24017. - (eval "$ac_try") 2>&5
  24018. - ac_status=$?
  24019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24020. - (exit $ac_status); }; } &&
  24021. - { ac_try='test -s conftest.$ac_objext'
  24022. - { (case "(($ac_try" in
  24023. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24024. - *) ac_try_echo=$ac_try;;
  24025. -esac
  24026. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24027. - (eval "$ac_try") 2>&5
  24028. - ac_status=$?
  24029. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24030. - (exit $ac_status); }; }; then
  24031. - ac_cv_prog_cxx_g=yes
  24032. -else
  24033. - echo "$as_me: failed program was:" >&5
  24034. -sed 's/^/| /' conftest.$ac_ext >&5
  24035. - CXXFLAGS=""
  24036. - cat >conftest.$ac_ext <<_ACEOF
  24037. -/* confdefs.h. */
  24038. -_ACEOF
  24039. -cat confdefs.h >>conftest.$ac_ext
  24040. -cat >>conftest.$ac_ext <<_ACEOF
  24041. -/* end confdefs.h. */
  24042. -int
  24043. -main ()
  24044. -{
  24045. - ;
  24046. - return 0;
  24047. -}
  24048. -_ACEOF
  24049. -rm -f conftest.$ac_objext
  24050. -if { (ac_try="$ac_compile"
  24051. -case "(($ac_try" in
  24052. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24053. - *) ac_try_echo=$ac_try;;
  24054. -esac
  24055. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24056. - (eval "$ac_compile") 2>conftest.er1
  24057. - ac_status=$?
  24058. - grep -v '^ *+' conftest.er1 >conftest.err
  24059. - rm -f conftest.er1
  24060. - cat conftest.err >&5
  24061. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24062. - (exit $ac_status); } &&
  24063. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  24064. - { (case "(($ac_try" in
  24065. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24066. - *) ac_try_echo=$ac_try;;
  24067. -esac
  24068. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24069. - (eval "$ac_try") 2>&5
  24070. - ac_status=$?
  24071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24072. - (exit $ac_status); }; } &&
  24073. - { ac_try='test -s conftest.$ac_objext'
  24074. - { (case "(($ac_try" in
  24075. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24076. - *) ac_try_echo=$ac_try;;
  24077. -esac
  24078. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24079. - (eval "$ac_try") 2>&5
  24080. - ac_status=$?
  24081. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24082. - (exit $ac_status); }; }; then
  24083. - :
  24084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  24085. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  24086. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  24087. + $as_echo_n "(cached) " >&6
  24088. else
  24089. - echo "$as_me: failed program was:" >&5
  24090. -sed 's/^/| /' conftest.$ac_ext >&5
  24091. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  24092. +lt_cv_file_magic_test_file=
  24093. +lt_cv_deplibs_check_method='unknown'
  24094. +# Need to set the preceding variable on all platforms that support
  24095. +# interlibrary dependencies.
  24096. +# 'none' -- dependencies not supported.
  24097. +# `unknown' -- same as none, but documents that we really don't know.
  24098. +# 'pass_all' -- all dependencies passed with no checks.
  24099. +# 'test_compile' -- check by making test program.
  24100. +# 'file_magic [[regex]]' -- check by looking for files in library path
  24101. +# which responds to the $file_magic_cmd with a given extended regex.
  24102. +# If you have `file' or equivalent on your system and you're not sure
  24103. +# whether `pass_all' will *always* work, you probably want this one.
  24104. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  24105. - CXXFLAGS="-g"
  24106. - cat >conftest.$ac_ext <<_ACEOF
  24107. -/* confdefs.h. */
  24108. -_ACEOF
  24109. -cat confdefs.h >>conftest.$ac_ext
  24110. -cat >>conftest.$ac_ext <<_ACEOF
  24111. -/* end confdefs.h. */
  24112. +case $host_os in
  24113. +aix[4-9]*)
  24114. + lt_cv_deplibs_check_method=pass_all
  24115. + ;;
  24116. -int
  24117. -main ()
  24118. -{
  24119. +beos*)
  24120. + lt_cv_deplibs_check_method=pass_all
  24121. + ;;
  24122. - ;
  24123. - return 0;
  24124. -}
  24125. -_ACEOF
  24126. -rm -f conftest.$ac_objext
  24127. -if { (ac_try="$ac_compile"
  24128. -case "(($ac_try" in
  24129. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24130. - *) ac_try_echo=$ac_try;;
  24131. -esac
  24132. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24133. - (eval "$ac_compile") 2>conftest.er1
  24134. - ac_status=$?
  24135. - grep -v '^ *+' conftest.er1 >conftest.err
  24136. - rm -f conftest.er1
  24137. - cat conftest.err >&5
  24138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24139. - (exit $ac_status); } &&
  24140. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  24141. - { (case "(($ac_try" in
  24142. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24143. - *) ac_try_echo=$ac_try;;
  24144. -esac
  24145. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24146. - (eval "$ac_try") 2>&5
  24147. - ac_status=$?
  24148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24149. - (exit $ac_status); }; } &&
  24150. - { ac_try='test -s conftest.$ac_objext'
  24151. - { (case "(($ac_try" in
  24152. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24153. - *) ac_try_echo=$ac_try;;
  24154. -esac
  24155. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24156. - (eval "$ac_try") 2>&5
  24157. - ac_status=$?
  24158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24159. - (exit $ac_status); }; }; then
  24160. - ac_cv_prog_cxx_g=yes
  24161. -else
  24162. - echo "$as_me: failed program was:" >&5
  24163. -sed 's/^/| /' conftest.$ac_ext >&5
  24164. +bsdi[45]*)
  24165. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  24166. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  24167. + lt_cv_file_magic_test_file=/shlib/libc.so
  24168. + ;;
  24169. +cygwin*)
  24170. + # func_win32_libid is a shell function defined in ltmain.sh
  24171. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  24172. + lt_cv_file_magic_cmd='func_win32_libid'
  24173. + ;;
  24174. -fi
  24175. +mingw* | pw32*)
  24176. + # Base MSYS/MinGW do not provide the 'file' command needed by
  24177. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  24178. + # unless we find 'file', for example because we are cross-compiling.
  24179. + if ( file / ) >/dev/null 2>&1; then
  24180. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  24181. + lt_cv_file_magic_cmd='func_win32_libid'
  24182. + else
  24183. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  24184. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  24185. + fi
  24186. + ;;
  24187. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24188. -fi
  24189. +cegcc)
  24190. + # use the weaker test based on 'objdump'. See mingw*.
  24191. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  24192. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  24193. + ;;
  24194. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24195. -fi
  24196. +darwin* | rhapsody*)
  24197. + lt_cv_deplibs_check_method=pass_all
  24198. + ;;
  24199. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24200. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  24201. -fi
  24202. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  24203. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  24204. -if test "$ac_test_CXXFLAGS" = set; then
  24205. - CXXFLAGS=$ac_save_CXXFLAGS
  24206. -elif test $ac_cv_prog_cxx_g = yes; then
  24207. - if test "$GXX" = yes; then
  24208. - CXXFLAGS="-g -O2"
  24209. +freebsd* | dragonfly*)
  24210. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  24211. + case $host_cpu in
  24212. + i*86 )
  24213. + # Not sure whether the presence of OpenBSD here was a mistake.
  24214. + # Let's accept both of them until this is cleared up.
  24215. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  24216. + lt_cv_file_magic_cmd=/usr/bin/file
  24217. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  24218. + ;;
  24219. + esac
  24220. else
  24221. - CXXFLAGS="-g"
  24222. + lt_cv_deplibs_check_method=pass_all
  24223. fi
  24224. -else
  24225. - if test "$GXX" = yes; then
  24226. - CXXFLAGS="-O2"
  24227. + ;;
  24228. +
  24229. +gnu*)
  24230. + lt_cv_deplibs_check_method=pass_all
  24231. + ;;
  24232. +
  24233. +hpux10.20* | hpux11*)
  24234. + lt_cv_file_magic_cmd=/usr/bin/file
  24235. + case $host_cpu in
  24236. + ia64*)
  24237. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  24238. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  24239. + ;;
  24240. + hppa*64*)
  24241. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  24242. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  24243. + ;;
  24244. + *)
  24245. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  24246. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  24247. + ;;
  24248. + esac
  24249. + ;;
  24250. +
  24251. +interix[3-9]*)
  24252. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  24253. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  24254. + ;;
  24255. +
  24256. +irix5* | irix6* | nonstopux*)
  24257. + case $LD in
  24258. + *-32|*"-32 ") libmagic=32-bit;;
  24259. + *-n32|*"-n32 ") libmagic=N32;;
  24260. + *-64|*"-64 ") libmagic=64-bit;;
  24261. + *) libmagic=never-match;;
  24262. + esac
  24263. + lt_cv_deplibs_check_method=pass_all
  24264. + ;;
  24265. +
  24266. +# This must be Linux ELF.
  24267. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  24268. + lt_cv_deplibs_check_method=pass_all
  24269. + ;;
  24270. +
  24271. +netbsd* | netbsdelf*-gnu)
  24272. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  24273. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  24274. else
  24275. - CXXFLAGS=
  24276. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  24277. fi
  24278. -fi
  24279. -ac_ext=cpp
  24280. -ac_cpp='$CXXCPP $CPPFLAGS'
  24281. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24282. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24283. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24284. + ;;
  24285. -depcc="$CXX" am_compiler_list=
  24286. +newos6*)
  24287. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  24288. + lt_cv_file_magic_cmd=/usr/bin/file
  24289. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  24290. + ;;
  24291. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  24292. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  24293. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  24294. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24295. -else
  24296. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  24297. - # We make a subdir and do the tests there. Otherwise we can end up
  24298. - # making bogus files that we don't know about and never remove. For
  24299. - # instance it was reported that on HP-UX the gcc test will end up
  24300. - # making a dummy file named `D' -- because `-MD' means `put the output
  24301. - # in D'.
  24302. - mkdir conftest.dir
  24303. - # Copy depcomp to subdir because otherwise we won't find it if we're
  24304. - # using a relative directory.
  24305. - cp "$am_depcomp" conftest.dir
  24306. - cd conftest.dir
  24307. - # We will build objects and dependencies in a subdirectory because
  24308. - # it helps to detect inapplicable dependency modes. For instance
  24309. - # both Tru64's cc and ICC support -MD to output dependencies as a
  24310. - # side effect of compilation, but ICC will put the dependencies in
  24311. - # the current directory while Tru64 will put them in the object
  24312. - # directory.
  24313. - mkdir sub
  24314. +*nto* | *qnx*)
  24315. + lt_cv_deplibs_check_method=pass_all
  24316. + ;;
  24317. - am_cv_CXX_dependencies_compiler_type=none
  24318. - if test "$am_compiler_list" = ""; then
  24319. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  24320. +openbsd*)
  24321. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24322. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  24323. + else
  24324. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  24325. fi
  24326. - for depmode in $am_compiler_list; do
  24327. - # Setup a source with many dependencies, because some compilers
  24328. - # like to wrap large dependency lists on column 80 (with \), and
  24329. - # we should not choose a depcomp mode which is confused by this.
  24330. - #
  24331. - # We need to recreate these files for each test, as the compiler may
  24332. - # overwrite some of them when testing with obscure command lines.
  24333. - # This happens at least with the AIX C compiler.
  24334. - : > sub/conftest.c
  24335. - for i in 1 2 3 4 5 6; do
  24336. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  24337. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  24338. - # Solaris 8's {/usr,}/bin/sh.
  24339. - touch sub/conftst$i.h
  24340. - done
  24341. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  24342. + ;;
  24343. - case $depmode in
  24344. - nosideeffect)
  24345. - # after this tag, mechanisms are not by side-effect, so they'll
  24346. - # only be used when explicitly requested
  24347. - if test "x$enable_dependency_tracking" = xyes; then
  24348. - continue
  24349. - else
  24350. - break
  24351. - fi
  24352. - ;;
  24353. - none) break ;;
  24354. - esac
  24355. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  24356. - # mode. It turns out that the SunPro C++ compiler does not properly
  24357. - # handle `-M -o', and we need to detect this.
  24358. - if depmode=$depmode \
  24359. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  24360. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  24361. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  24362. - >/dev/null 2>conftest.err &&
  24363. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  24364. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  24365. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  24366. - # icc doesn't choke on unknown options, it will just issue warnings
  24367. - # or remarks (even with -Werror). So we grep stderr for any message
  24368. - # that says an option was ignored or not supported.
  24369. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  24370. - # icc: Command line warning: ignoring option '-M'; no argument required
  24371. - # The diagnosis changed in icc 8.0:
  24372. - # icc: Command line remark: option '-MP' not supported
  24373. - if (grep 'ignoring option' conftest.err ||
  24374. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  24375. - am_cv_CXX_dependencies_compiler_type=$depmode
  24376. - break
  24377. - fi
  24378. - fi
  24379. - done
  24380. +osf3* | osf4* | osf5*)
  24381. + lt_cv_deplibs_check_method=pass_all
  24382. + ;;
  24383. - cd ..
  24384. - rm -rf conftest.dir
  24385. -else
  24386. - am_cv_CXX_dependencies_compiler_type=none
  24387. -fi
  24388. +rdos*)
  24389. + lt_cv_deplibs_check_method=pass_all
  24390. + ;;
  24391. -fi
  24392. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  24393. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  24394. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  24395. +solaris*)
  24396. + lt_cv_deplibs_check_method=pass_all
  24397. + ;;
  24398. +
  24399. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  24400. + lt_cv_deplibs_check_method=pass_all
  24401. + ;;
  24402. +sysv4 | sysv4.3*)
  24403. + case $host_vendor in
  24404. + motorola)
  24405. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  24406. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  24407. + ;;
  24408. + ncr)
  24409. + lt_cv_deplibs_check_method=pass_all
  24410. + ;;
  24411. + sequent)
  24412. + lt_cv_file_magic_cmd='/bin/file'
  24413. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  24414. + ;;
  24415. + sni)
  24416. + lt_cv_file_magic_cmd='/bin/file'
  24417. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  24418. + lt_cv_file_magic_test_file=/lib/libc.so
  24419. + ;;
  24420. + siemens)
  24421. + lt_cv_deplibs_check_method=pass_all
  24422. + ;;
  24423. + pc)
  24424. + lt_cv_deplibs_check_method=pass_all
  24425. + ;;
  24426. + esac
  24427. + ;;
  24428. +tpf*)
  24429. + lt_cv_deplibs_check_method=pass_all
  24430. + ;;
  24431. +esac
  24432. -if
  24433. - test "x$enable_dependency_tracking" != xno \
  24434. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  24435. - am__fastdepCXX_TRUE=
  24436. - am__fastdepCXX_FALSE='#'
  24437. -else
  24438. - am__fastdepCXX_TRUE='#'
  24439. - am__fastdepCXX_FALSE=
  24440. fi
  24441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  24442. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  24443. +file_magic_cmd=$lt_cv_file_magic_cmd
  24444. +deplibs_check_method=$lt_cv_deplibs_check_method
  24445. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  24446. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  24447. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  24448. - (test "X$CXX" != "Xg++"))) ; then
  24449. - ac_ext=cpp
  24450. -ac_cpp='$CXXCPP $CPPFLAGS'
  24451. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24452. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24453. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24454. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  24455. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  24456. -if test -z "$CXXCPP"; then
  24457. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  24458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24459. +
  24460. +
  24461. +
  24462. +
  24463. +
  24464. +
  24465. +
  24466. +
  24467. +if test -n "$ac_tool_prefix"; then
  24468. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  24469. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  24470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24471. +$as_echo_n "checking for $ac_word... " >&6; }
  24472. +if test "${ac_cv_prog_AR+set}" = set; then :
  24473. + $as_echo_n "(cached) " >&6
  24474. else
  24475. - # Double quotes because CXXCPP needs to be expanded
  24476. - for CXXCPP in "$CXX -E" "/lib/cpp"
  24477. - do
  24478. - ac_preproc_ok=false
  24479. -for ac_cxx_preproc_warn_flag in '' yes
  24480. + if test -n "$AR"; then
  24481. + ac_cv_prog_AR="$AR" # Let the user override the test.
  24482. +else
  24483. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24484. +for as_dir in $PATH
  24485. do
  24486. - # Use a header file that comes with gcc, so configuring glibc
  24487. - # with a fresh cross-compiler works.
  24488. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24489. - # <limits.h> exists even on freestanding compilers.
  24490. - # On the NeXT, cc -E runs the code through the compiler's parser,
  24491. - # not just through cpp. "Syntax error" is here to catch this case.
  24492. - cat >conftest.$ac_ext <<_ACEOF
  24493. -/* confdefs.h. */
  24494. -_ACEOF
  24495. -cat confdefs.h >>conftest.$ac_ext
  24496. -cat >>conftest.$ac_ext <<_ACEOF
  24497. -/* end confdefs.h. */
  24498. -#ifdef __STDC__
  24499. -# include <limits.h>
  24500. -#else
  24501. -# include <assert.h>
  24502. -#endif
  24503. - Syntax error
  24504. -_ACEOF
  24505. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24506. -case "(($ac_try" in
  24507. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24508. - *) ac_try_echo=$ac_try;;
  24509. -esac
  24510. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24511. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24512. - ac_status=$?
  24513. - grep -v '^ *+' conftest.er1 >conftest.err
  24514. - rm -f conftest.er1
  24515. - cat conftest.err >&5
  24516. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24517. - (exit $ac_status); } >/dev/null; then
  24518. - if test -s conftest.err; then
  24519. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24520. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24521. - else
  24522. - ac_cpp_err=
  24523. + IFS=$as_save_IFS
  24524. + test -z "$as_dir" && as_dir=.
  24525. + for ac_exec_ext in '' $ac_executable_extensions; do
  24526. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24527. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  24528. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24529. + break 2
  24530. fi
  24531. -else
  24532. - ac_cpp_err=yes
  24533. +done
  24534. + done
  24535. +IFS=$as_save_IFS
  24536. +
  24537. fi
  24538. -if test -z "$ac_cpp_err"; then
  24539. - :
  24540. +fi
  24541. +AR=$ac_cv_prog_AR
  24542. +if test -n "$AR"; then
  24543. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  24544. +$as_echo "$AR" >&6; }
  24545. else
  24546. - echo "$as_me: failed program was:" >&5
  24547. -sed 's/^/| /' conftest.$ac_ext >&5
  24548. -
  24549. - # Broken: fails on valid input.
  24550. -continue
  24551. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24552. +$as_echo "no" >&6; }
  24553. fi
  24554. -rm -f conftest.err conftest.$ac_ext
  24555. - # OK, works on sane cases. Now check whether nonexistent headers
  24556. - # can be detected and how.
  24557. - cat >conftest.$ac_ext <<_ACEOF
  24558. -/* confdefs.h. */
  24559. -_ACEOF
  24560. -cat confdefs.h >>conftest.$ac_ext
  24561. -cat >>conftest.$ac_ext <<_ACEOF
  24562. -/* end confdefs.h. */
  24563. -#include <ac_nonexistent.h>
  24564. -_ACEOF
  24565. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24566. -case "(($ac_try" in
  24567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24568. - *) ac_try_echo=$ac_try;;
  24569. -esac
  24570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24571. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24572. - ac_status=$?
  24573. - grep -v '^ *+' conftest.er1 >conftest.err
  24574. - rm -f conftest.er1
  24575. - cat conftest.err >&5
  24576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24577. - (exit $ac_status); } >/dev/null; then
  24578. - if test -s conftest.err; then
  24579. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24580. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24581. - else
  24582. - ac_cpp_err=
  24583. - fi
  24584. -else
  24585. - ac_cpp_err=yes
  24586. fi
  24587. -if test -z "$ac_cpp_err"; then
  24588. - # Broken: success on invalid input.
  24589. -continue
  24590. +if test -z "$ac_cv_prog_AR"; then
  24591. + ac_ct_AR=$AR
  24592. + # Extract the first word of "ar", so it can be a program name with args.
  24593. +set dummy ar; ac_word=$2
  24594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24595. +$as_echo_n "checking for $ac_word... " >&6; }
  24596. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  24597. + $as_echo_n "(cached) " >&6
  24598. else
  24599. - echo "$as_me: failed program was:" >&5
  24600. -sed 's/^/| /' conftest.$ac_ext >&5
  24601. -
  24602. - # Passes both tests.
  24603. -ac_preproc_ok=:
  24604. -break
  24605. -fi
  24606. -
  24607. -rm -f conftest.err conftest.$ac_ext
  24608. -
  24609. + if test -n "$ac_ct_AR"; then
  24610. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  24611. +else
  24612. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24613. +for as_dir in $PATH
  24614. +do
  24615. + IFS=$as_save_IFS
  24616. + test -z "$as_dir" && as_dir=.
  24617. + for ac_exec_ext in '' $ac_executable_extensions; do
  24618. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24619. + ac_cv_prog_ac_ct_AR="ar"
  24620. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24621. + break 2
  24622. + fi
  24623. done
  24624. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24625. -rm -f conftest.err conftest.$ac_ext
  24626. -if $ac_preproc_ok; then
  24627. - break
  24628. -fi
  24629. -
  24630. - done
  24631. - ac_cv_prog_CXXCPP=$CXXCPP
  24632. + done
  24633. +IFS=$as_save_IFS
  24634. fi
  24635. - CXXCPP=$ac_cv_prog_CXXCPP
  24636. +fi
  24637. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  24638. +if test -n "$ac_ct_AR"; then
  24639. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  24640. +$as_echo "$ac_ct_AR" >&6; }
  24641. else
  24642. - ac_cv_prog_CXXCPP=$CXXCPP
  24643. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24644. +$as_echo "no" >&6; }
  24645. fi
  24646. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  24647. -echo "${ECHO_T}$CXXCPP" >&6; }
  24648. -ac_preproc_ok=false
  24649. -for ac_cxx_preproc_warn_flag in '' yes
  24650. -do
  24651. - # Use a header file that comes with gcc, so configuring glibc
  24652. - # with a fresh cross-compiler works.
  24653. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24654. - # <limits.h> exists even on freestanding compilers.
  24655. - # On the NeXT, cc -E runs the code through the compiler's parser,
  24656. - # not just through cpp. "Syntax error" is here to catch this case.
  24657. - cat >conftest.$ac_ext <<_ACEOF
  24658. -/* confdefs.h. */
  24659. -_ACEOF
  24660. -cat confdefs.h >>conftest.$ac_ext
  24661. -cat >>conftest.$ac_ext <<_ACEOF
  24662. -/* end confdefs.h. */
  24663. -#ifdef __STDC__
  24664. -# include <limits.h>
  24665. -#else
  24666. -# include <assert.h>
  24667. -#endif
  24668. - Syntax error
  24669. -_ACEOF
  24670. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24671. -case "(($ac_try" in
  24672. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24673. - *) ac_try_echo=$ac_try;;
  24674. -esac
  24675. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24676. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24677. - ac_status=$?
  24678. - grep -v '^ *+' conftest.er1 >conftest.err
  24679. - rm -f conftest.er1
  24680. - cat conftest.err >&5
  24681. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24682. - (exit $ac_status); } >/dev/null; then
  24683. - if test -s conftest.err; then
  24684. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24685. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24686. +
  24687. + if test "x$ac_ct_AR" = x; then
  24688. + AR="false"
  24689. else
  24690. - ac_cpp_err=
  24691. + case $cross_compiling:$ac_tool_warned in
  24692. +yes:)
  24693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24694. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24695. +ac_tool_warned=yes ;;
  24696. +esac
  24697. + AR=$ac_ct_AR
  24698. fi
  24699. else
  24700. - ac_cpp_err=yes
  24701. + AR="$ac_cv_prog_AR"
  24702. fi
  24703. -if test -z "$ac_cpp_err"; then
  24704. - :
  24705. -else
  24706. - echo "$as_me: failed program was:" >&5
  24707. -sed 's/^/| /' conftest.$ac_ext >&5
  24708. - # Broken: fails on valid input.
  24709. -continue
  24710. -fi
  24711. +test -z "$AR" && AR=ar
  24712. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  24713. +
  24714. +
  24715. -rm -f conftest.err conftest.$ac_ext
  24716. - # OK, works on sane cases. Now check whether nonexistent headers
  24717. - # can be detected and how.
  24718. - cat >conftest.$ac_ext <<_ACEOF
  24719. -/* confdefs.h. */
  24720. -_ACEOF
  24721. -cat confdefs.h >>conftest.$ac_ext
  24722. -cat >>conftest.$ac_ext <<_ACEOF
  24723. -/* end confdefs.h. */
  24724. -#include <ac_nonexistent.h>
  24725. -_ACEOF
  24726. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  24727. -case "(($ac_try" in
  24728. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24729. - *) ac_try_echo=$ac_try;;
  24730. -esac
  24731. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24732. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24733. - ac_status=$?
  24734. - grep -v '^ *+' conftest.er1 >conftest.err
  24735. - rm -f conftest.er1
  24736. - cat conftest.err >&5
  24737. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24738. - (exit $ac_status); } >/dev/null; then
  24739. - if test -s conftest.err; then
  24740. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24741. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24742. - else
  24743. - ac_cpp_err=
  24744. - fi
  24745. -else
  24746. - ac_cpp_err=yes
  24747. -fi
  24748. -if test -z "$ac_cpp_err"; then
  24749. - # Broken: success on invalid input.
  24750. -continue
  24751. -else
  24752. - echo "$as_me: failed program was:" >&5
  24753. -sed 's/^/| /' conftest.$ac_ext >&5
  24754. - # Passes both tests.
  24755. -ac_preproc_ok=:
  24756. -break
  24757. -fi
  24758. -rm -f conftest.err conftest.$ac_ext
  24759. -done
  24760. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24761. -rm -f conftest.err conftest.$ac_ext
  24762. -if $ac_preproc_ok; then
  24763. - :
  24764. -else
  24765. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  24766. -See \`config.log' for more details." >&5
  24767. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  24768. -See \`config.log' for more details." >&2;}
  24769. - { (exit 1); exit 1; }; }
  24770. -fi
  24771. -ac_ext=cpp
  24772. -ac_cpp='$CXXCPP $CPPFLAGS'
  24773. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24774. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24775. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24776. -fi
  24777. -ac_ext=f
  24778. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  24779. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24780. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  24781. if test -n "$ac_tool_prefix"; then
  24782. - for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  24783. - do
  24784. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  24785. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  24786. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24787. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24788. -if test "${ac_cv_prog_F77+set}" = set; then
  24789. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24790. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  24791. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  24792. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24793. +$as_echo_n "checking for $ac_word... " >&6; }
  24794. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  24795. + $as_echo_n "(cached) " >&6
  24796. else
  24797. - if test -n "$F77"; then
  24798. - ac_cv_prog_F77="$F77" # Let the user override the test.
  24799. + if test -n "$STRIP"; then
  24800. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  24801. else
  24802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24803. for as_dir in $PATH
  24804. do
  24805. IFS=$as_save_IFS
  24806. test -z "$as_dir" && as_dir=.
  24807. - for ac_exec_ext in '' $ac_executable_extensions; do
  24808. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24809. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  24810. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24811. + for ac_exec_ext in '' $ac_executable_extensions; do
  24812. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24813. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  24814. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24815. break 2
  24816. fi
  24817. done
  24818. -done
  24819. + done
  24820. IFS=$as_save_IFS
  24821. fi
  24822. fi
  24823. -F77=$ac_cv_prog_F77
  24824. -if test -n "$F77"; then
  24825. - { echo "$as_me:$LINENO: result: $F77" >&5
  24826. -echo "${ECHO_T}$F77" >&6; }
  24827. +STRIP=$ac_cv_prog_STRIP
  24828. +if test -n "$STRIP"; then
  24829. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  24830. +$as_echo "$STRIP" >&6; }
  24831. else
  24832. - { echo "$as_me:$LINENO: result: no" >&5
  24833. -echo "${ECHO_T}no" >&6; }
  24834. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24835. +$as_echo "no" >&6; }
  24836. fi
  24837. - test -n "$F77" && break
  24838. - done
  24839. fi
  24840. -if test -z "$F77"; then
  24841. - ac_ct_F77=$F77
  24842. - for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  24843. -do
  24844. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  24845. -set dummy $ac_prog; ac_word=$2
  24846. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24847. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24848. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  24849. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24850. +if test -z "$ac_cv_prog_STRIP"; then
  24851. + ac_ct_STRIP=$STRIP
  24852. + # Extract the first word of "strip", so it can be a program name with args.
  24853. +set dummy strip; ac_word=$2
  24854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24855. +$as_echo_n "checking for $ac_word... " >&6; }
  24856. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  24857. + $as_echo_n "(cached) " >&6
  24858. else
  24859. - if test -n "$ac_ct_F77"; then
  24860. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  24861. + if test -n "$ac_ct_STRIP"; then
  24862. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  24863. else
  24864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24865. for as_dir in $PATH
  24866. do
  24867. IFS=$as_save_IFS
  24868. test -z "$as_dir" && as_dir=.
  24869. - for ac_exec_ext in '' $ac_executable_extensions; do
  24870. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24871. - ac_cv_prog_ac_ct_F77="$ac_prog"
  24872. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24873. + for ac_exec_ext in '' $ac_executable_extensions; do
  24874. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24875. + ac_cv_prog_ac_ct_STRIP="strip"
  24876. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24877. break 2
  24878. fi
  24879. done
  24880. -done
  24881. + done
  24882. IFS=$as_save_IFS
  24883. fi
  24884. fi
  24885. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  24886. -if test -n "$ac_ct_F77"; then
  24887. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  24888. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  24889. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24890. +if test -n "$ac_ct_STRIP"; then
  24891. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  24892. +$as_echo "$ac_ct_STRIP" >&6; }
  24893. else
  24894. - { echo "$as_me:$LINENO: result: no" >&5
  24895. -echo "${ECHO_T}no" >&6; }
  24896. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24897. +$as_echo "no" >&6; }
  24898. fi
  24899. -
  24900. - test -n "$ac_ct_F77" && break
  24901. -done
  24902. -
  24903. - if test "x$ac_ct_F77" = x; then
  24904. - F77=""
  24905. + if test "x$ac_ct_STRIP" = x; then
  24906. + STRIP=":"
  24907. else
  24908. case $cross_compiling:$ac_tool_warned in
  24909. yes:)
  24910. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24911. -whose name does not start with the host triplet. If you think this
  24912. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24913. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24914. -whose name does not start with the host triplet. If you think this
  24915. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24916. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24917. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24918. ac_tool_warned=yes ;;
  24919. esac
  24920. - F77=$ac_ct_F77
  24921. + STRIP=$ac_ct_STRIP
  24922. fi
  24923. +else
  24924. + STRIP="$ac_cv_prog_STRIP"
  24925. fi
  24926. +test -z "$STRIP" && STRIP=:
  24927. -# Provide some information about the compiler.
  24928. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  24929. -ac_compiler=`set X $ac_compile; echo $2`
  24930. -{ (ac_try="$ac_compiler --version >&5"
  24931. -case "(($ac_try" in
  24932. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24933. - *) ac_try_echo=$ac_try;;
  24934. -esac
  24935. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24936. - (eval "$ac_compiler --version >&5") 2>&5
  24937. - ac_status=$?
  24938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24939. - (exit $ac_status); }
  24940. -{ (ac_try="$ac_compiler -v >&5"
  24941. -case "(($ac_try" in
  24942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24943. - *) ac_try_echo=$ac_try;;
  24944. -esac
  24945. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24946. - (eval "$ac_compiler -v >&5") 2>&5
  24947. - ac_status=$?
  24948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24949. - (exit $ac_status); }
  24950. -{ (ac_try="$ac_compiler -V >&5"
  24951. -case "(($ac_try" in
  24952. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24953. - *) ac_try_echo=$ac_try;;
  24954. -esac
  24955. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24956. - (eval "$ac_compiler -V >&5") 2>&5
  24957. - ac_status=$?
  24958. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24959. - (exit $ac_status); }
  24960. -rm -f a.out
  24961. -
  24962. -# If we don't use `.F' as extension, the preprocessor is not run on the
  24963. -# input file. (Note that this only needs to work for GNU compilers.)
  24964. -ac_save_ext=$ac_ext
  24965. -ac_ext=F
  24966. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  24967. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  24968. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  24969. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24970. -else
  24971. - cat >conftest.$ac_ext <<_ACEOF
  24972. - program main
  24973. -#ifndef __GNUC__
  24974. - choke me
  24975. -#endif
  24976. - end
  24977. -_ACEOF
  24978. -rm -f conftest.$ac_objext
  24979. -if { (ac_try="$ac_compile"
  24980. -case "(($ac_try" in
  24981. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24982. - *) ac_try_echo=$ac_try;;
  24983. -esac
  24984. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24985. - (eval "$ac_compile") 2>conftest.er1
  24986. - ac_status=$?
  24987. - grep -v '^ *+' conftest.er1 >conftest.err
  24988. - rm -f conftest.er1
  24989. - cat conftest.err >&5
  24990. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24991. - (exit $ac_status); } &&
  24992. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  24993. - { (case "(($ac_try" in
  24994. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24995. - *) ac_try_echo=$ac_try;;
  24996. -esac
  24997. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24998. - (eval "$ac_try") 2>&5
  24999. - ac_status=$?
  25000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25001. - (exit $ac_status); }; } &&
  25002. - { ac_try='test -s conftest.$ac_objext'
  25003. - { (case "(($ac_try" in
  25004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25005. - *) ac_try_echo=$ac_try;;
  25006. -esac
  25007. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25008. - (eval "$ac_try") 2>&5
  25009. - ac_status=$?
  25010. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25011. - (exit $ac_status); }; }; then
  25012. - ac_compiler_gnu=yes
  25013. -else
  25014. - echo "$as_me: failed program was:" >&5
  25015. -sed 's/^/| /' conftest.$ac_ext >&5
  25016. - ac_compiler_gnu=no
  25017. -fi
  25018. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25019. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  25020. -fi
  25021. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  25022. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  25023. -ac_ext=$ac_save_ext
  25024. -ac_test_FFLAGS=${FFLAGS+set}
  25025. -ac_save_FFLAGS=$FFLAGS
  25026. -FFLAGS=
  25027. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  25028. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  25029. -if test "${ac_cv_prog_f77_g+set}" = set; then
  25030. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25031. -else
  25032. - FFLAGS=-g
  25033. -cat >conftest.$ac_ext <<_ACEOF
  25034. - program main
  25035. - end
  25036. -_ACEOF
  25037. -rm -f conftest.$ac_objext
  25038. -if { (ac_try="$ac_compile"
  25039. -case "(($ac_try" in
  25040. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25041. - *) ac_try_echo=$ac_try;;
  25042. -esac
  25043. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25044. - (eval "$ac_compile") 2>conftest.er1
  25045. - ac_status=$?
  25046. - grep -v '^ *+' conftest.er1 >conftest.err
  25047. - rm -f conftest.er1
  25048. - cat conftest.err >&5
  25049. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25050. - (exit $ac_status); } &&
  25051. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  25052. - { (case "(($ac_try" in
  25053. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25054. - *) ac_try_echo=$ac_try;;
  25055. -esac
  25056. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25057. - (eval "$ac_try") 2>&5
  25058. - ac_status=$?
  25059. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25060. - (exit $ac_status); }; } &&
  25061. - { ac_try='test -s conftest.$ac_objext'
  25062. - { (case "(($ac_try" in
  25063. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25064. - *) ac_try_echo=$ac_try;;
  25065. -esac
  25066. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25067. - (eval "$ac_try") 2>&5
  25068. - ac_status=$?
  25069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25070. - (exit $ac_status); }; }; then
  25071. - ac_cv_prog_f77_g=yes
  25072. +if test -n "$ac_tool_prefix"; then
  25073. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  25074. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  25075. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25076. +$as_echo_n "checking for $ac_word... " >&6; }
  25077. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  25078. + $as_echo_n "(cached) " >&6
  25079. else
  25080. - echo "$as_me: failed program was:" >&5
  25081. -sed 's/^/| /' conftest.$ac_ext >&5
  25082. + if test -n "$RANLIB"; then
  25083. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  25084. +else
  25085. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25086. +for as_dir in $PATH
  25087. +do
  25088. + IFS=$as_save_IFS
  25089. + test -z "$as_dir" && as_dir=.
  25090. + for ac_exec_ext in '' $ac_executable_extensions; do
  25091. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25092. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  25093. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25094. + break 2
  25095. + fi
  25096. +done
  25097. + done
  25098. +IFS=$as_save_IFS
  25099. - ac_cv_prog_f77_g=no
  25100. fi
  25101. -
  25102. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25103. -
  25104. fi
  25105. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  25106. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  25107. -if test "$ac_test_FFLAGS" = set; then
  25108. - FFLAGS=$ac_save_FFLAGS
  25109. -elif test $ac_cv_prog_f77_g = yes; then
  25110. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  25111. - FFLAGS="-g -O2"
  25112. - else
  25113. - FFLAGS="-g"
  25114. - fi
  25115. +RANLIB=$ac_cv_prog_RANLIB
  25116. +if test -n "$RANLIB"; then
  25117. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  25118. +$as_echo "$RANLIB" >&6; }
  25119. else
  25120. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  25121. - FFLAGS="-O2"
  25122. - else
  25123. - FFLAGS=
  25124. - fi
  25125. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25126. +$as_echo "no" >&6; }
  25127. fi
  25128. -G77=`test $ac_compiler_gnu = yes && echo yes`
  25129. -ac_ext=c
  25130. -ac_cpp='$CPP $CPPFLAGS'
  25131. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25132. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25133. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25134. -
  25135. +fi
  25136. +if test -z "$ac_cv_prog_RANLIB"; then
  25137. + ac_ct_RANLIB=$RANLIB
  25138. + # Extract the first word of "ranlib", so it can be a program name with args.
  25139. +set dummy ranlib; ac_word=$2
  25140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25141. +$as_echo_n "checking for $ac_word... " >&6; }
  25142. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  25143. + $as_echo_n "(cached) " >&6
  25144. +else
  25145. + if test -n "$ac_ct_RANLIB"; then
  25146. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  25147. +else
  25148. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25149. +for as_dir in $PATH
  25150. +do
  25151. + IFS=$as_save_IFS
  25152. + test -z "$as_dir" && as_dir=.
  25153. + for ac_exec_ext in '' $ac_executable_extensions; do
  25154. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25155. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  25156. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25157. + break 2
  25158. + fi
  25159. +done
  25160. + done
  25161. +IFS=$as_save_IFS
  25162. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  25163. +fi
  25164. +fi
  25165. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  25166. +if test -n "$ac_ct_RANLIB"; then
  25167. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  25168. +$as_echo "$ac_ct_RANLIB" >&6; }
  25169. +else
  25170. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25171. +$as_echo "no" >&6; }
  25172. +fi
  25173. -# find the maximum length of command line arguments
  25174. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  25175. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  25176. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  25177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25178. + if test "x$ac_ct_RANLIB" = x; then
  25179. + RANLIB=":"
  25180. + else
  25181. + case $cross_compiling:$ac_tool_warned in
  25182. +yes:)
  25183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25184. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25185. +ac_tool_warned=yes ;;
  25186. +esac
  25187. + RANLIB=$ac_ct_RANLIB
  25188. + fi
  25189. else
  25190. - i=0
  25191. - teststring="ABCD"
  25192. + RANLIB="$ac_cv_prog_RANLIB"
  25193. +fi
  25194. - case $build_os in
  25195. - msdosdjgpp*)
  25196. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  25197. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  25198. - # during glob expansion). Even if it were fixed, the result of this
  25199. - # check would be larger than it should be.
  25200. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  25201. - ;;
  25202. +test -z "$RANLIB" && RANLIB=:
  25203. - gnu*)
  25204. - # Under GNU Hurd, this test is not required because there is
  25205. - # no limit to the length of command line arguments.
  25206. - # Libtool will interpret -1 as no limit whatsoever
  25207. - lt_cv_sys_max_cmd_len=-1;
  25208. - ;;
  25209. - cygwin* | mingw*)
  25210. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  25211. - # about 5 minutes as the teststring grows exponentially.
  25212. - # Worse, since 9x/ME are not pre-emptively multitasking,
  25213. - # you end up with a "frozen" computer, even though with patience
  25214. - # the test eventually succeeds (with a max line length of 256k).
  25215. - # Instead, let's just punt: use the minimum linelength reported by
  25216. - # all of the supported platforms: 8192 (on NT/2K/XP).
  25217. - lt_cv_sys_max_cmd_len=8192;
  25218. - ;;
  25219. - amigaos*)
  25220. - # On AmigaOS with pdksh, this test takes hours, literally.
  25221. - # So we just punt and use a minimum line length of 8192.
  25222. - lt_cv_sys_max_cmd_len=8192;
  25223. - ;;
  25224. - netbsd* | freebsd* | openbsd* | darwin* )
  25225. - # This has been around since 386BSD, at least. Likely further.
  25226. - if test -x /sbin/sysctl; then
  25227. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  25228. - elif test -x /usr/sbin/sysctl; then
  25229. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  25230. - else
  25231. - lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  25232. - fi
  25233. - # And add a safety zone
  25234. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  25235. - ;;
  25236. - *)
  25237. - # If test is not a shell built-in, we'll probably end up computing a
  25238. - # maximum length that is only half of the actual maximum length, but
  25239. - # we can't tell.
  25240. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  25241. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  25242. - = "XX$teststring") >/dev/null 2>&1 &&
  25243. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  25244. - lt_cv_sys_max_cmd_len=$new_result &&
  25245. - test $i != 17 # 1/2 MB should be enough
  25246. - do
  25247. - i=`expr $i + 1`
  25248. - teststring=$teststring$teststring
  25249. - done
  25250. - teststring=
  25251. - # Add a significant safety factor because C++ compilers can tack on massive
  25252. - # amounts of additional arguments before passing them to the linker.
  25253. - # It appears as though 1/2 is a usable value.
  25254. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  25255. +
  25256. +# Determine commands to create old-style static archives.
  25257. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  25258. +old_postinstall_cmds='chmod 644 $oldlib'
  25259. +old_postuninstall_cmds=
  25260. +
  25261. +if test -n "$RANLIB"; then
  25262. + case $host_os in
  25263. + openbsd*)
  25264. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  25265. + ;;
  25266. + *)
  25267. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  25268. ;;
  25269. esac
  25270. -
  25271. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  25272. fi
  25273. -if test -n $lt_cv_sys_max_cmd_len ; then
  25274. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  25275. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  25276. -else
  25277. - { echo "$as_me:$LINENO: result: none" >&5
  25278. -echo "${ECHO_T}none" >&6; }
  25279. -fi
  25280. +
  25281. +
  25282. +
  25283. +
  25284. +
  25285. +
  25286. +
  25287. +
  25288. +
  25289. +
  25290. +
  25291. +
  25292. +
  25293. +
  25294. +
  25295. +
  25296. +
  25297. +
  25298. +
  25299. +
  25300. +
  25301. +
  25302. +
  25303. +
  25304. +
  25305. +
  25306. +
  25307. +
  25308. +
  25309. +# If no C compiler was specified, use CC.
  25310. +LTCC=${LTCC-"$CC"}
  25311. +
  25312. +# If no C compiler flags were specified, use CFLAGS.
  25313. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25314. +
  25315. +# Allow CC to be a program name with arguments.
  25316. +compiler=$CC
  25317. +
  25318. +
  25319. # Check for command to grab the raw symbol name followed by C symbol from nm.
  25320. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  25321. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  25322. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  25323. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25324. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  25325. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  25326. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  25327. + $as_echo_n "(cached) " >&6
  25328. else
  25329. # These are sane defaults that work on at least a few old systems.
  25330. @@ -7022,36 +6170,18 @@
  25331. # Regexp to match symbols that can be accessed directly from C.
  25332. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  25333. -# Transform the above into a raw symbol and a C symbol.
  25334. -symxfrm='\1 \2\3 \3'
  25335. -
  25336. -# Transform an extracted symbol line into a proper C declaration
  25337. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  25338. -
  25339. -# Transform an extracted symbol line into symbol name and symbol address
  25340. -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'"
  25341. -
  25342. # Define system-specific variables.
  25343. case $host_os in
  25344. aix*)
  25345. symcode='[BCDT]'
  25346. ;;
  25347. -cygwin* | mingw* | pw32*)
  25348. +cygwin* | mingw* | pw32* | cegcc*)
  25349. symcode='[ABCDGISTW]'
  25350. ;;
  25351. -hpux*) # Its linker distinguishes data from code symbols
  25352. +hpux*)
  25353. if test "$host_cpu" = ia64; then
  25354. symcode='[ABCDEGRST]'
  25355. fi
  25356. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  25357. - 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'"
  25358. - ;;
  25359. -linux*)
  25360. - if test "$host_cpu" = ia64; then
  25361. - symcode='[ABCDGIRSTW]'
  25362. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  25363. - 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'"
  25364. - fi
  25365. ;;
  25366. irix* | nonstopux*)
  25367. symcode='[BCDEGRST]'
  25368. @@ -7059,62 +6189,102 @@
  25369. osf*)
  25370. symcode='[BCDEGQRST]'
  25371. ;;
  25372. -solaris* | sysv5*)
  25373. +solaris*)
  25374. symcode='[BDRT]'
  25375. ;;
  25376. +sco3.2v5*)
  25377. + symcode='[DT]'
  25378. + ;;
  25379. +sysv4.2uw2*)
  25380. + symcode='[DT]'
  25381. + ;;
  25382. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  25383. + symcode='[ABDT]'
  25384. + ;;
  25385. sysv4)
  25386. symcode='[DFNSTU]'
  25387. ;;
  25388. esac
  25389. +# If we're using GNU nm, then use its standard symbol codes.
  25390. +case `$NM -V 2>&1` in
  25391. +*GNU* | *'with BFD'*)
  25392. + symcode='[ABCDGIRSTW]' ;;
  25393. +esac
  25394. +
  25395. +# Transform an extracted symbol line into a proper C declaration.
  25396. +# Some systems (esp. on ia64) link data and code symbols differently,
  25397. +# so use this general approach.
  25398. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  25399. +
  25400. +# Transform an extracted symbol line into symbol name and symbol address
  25401. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  25402. +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'"
  25403. +
  25404. # Handle CRLF in mingw tool chain
  25405. opt_cr=
  25406. case $build_os in
  25407. mingw*)
  25408. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  25409. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  25410. ;;
  25411. esac
  25412. -# If we're using GNU nm, then use its standard symbol codes.
  25413. -case `$NM -V 2>&1` in
  25414. -*GNU* | *'with BFD'*)
  25415. - symcode='[ABCDGIRSTW]' ;;
  25416. -esac
  25417. -
  25418. -# Try without a prefix undercore, then with it.
  25419. +# Try without a prefix underscore, then with it.
  25420. for ac_symprfx in "" "_"; do
  25421. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  25422. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  25423. +
  25424. # Write the raw and C identifiers.
  25425. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  25426. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  25427. + # Fake it for dumpbin and say T for any non-static function
  25428. + # and D for any global variable.
  25429. + # Also find C++ and __fastcall symbols from MSVC++,
  25430. + # which start with @ or ?.
  25431. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  25432. +" {last_section=section; section=\$ 3};"\
  25433. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  25434. +" \$ 0!~/External *\|/{next};"\
  25435. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  25436. +" {if(hide[section]) next};"\
  25437. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  25438. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  25439. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  25440. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  25441. +" ' prfx=^$ac_symprfx"
  25442. + else
  25443. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  25444. + fi
  25445. # Check to see that the pipe works correctly.
  25446. pipe_works=no
  25447. rm -f conftest*
  25448. - cat > conftest.$ac_ext <<EOF
  25449. + cat > conftest.$ac_ext <<_LT_EOF
  25450. #ifdef __cplusplus
  25451. extern "C" {
  25452. #endif
  25453. char nm_test_var;
  25454. -void nm_test_func(){}
  25455. +void nm_test_func(void);
  25456. +void nm_test_func(void){}
  25457. #ifdef __cplusplus
  25458. }
  25459. #endif
  25460. int main(){nm_test_var='a';nm_test_func();return(0);}
  25461. -EOF
  25462. +_LT_EOF
  25463. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25464. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25465. (eval $ac_compile) 2>&5
  25466. ac_status=$?
  25467. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25468. - (exit $ac_status); }; then
  25469. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25470. + test $ac_status = 0; }; then
  25471. # Now try to grab the symbols.
  25472. nlist=conftest.nm
  25473. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  25474. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  25475. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  25476. ac_status=$?
  25477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25478. - (exit $ac_status); } && test -s "$nlist"; then
  25479. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25480. + test $ac_status = 0; } && test -s "$nlist"; then
  25481. # Try sorting and uniquifying the output.
  25482. if sort "$nlist" | uniq > "$nlist"T; then
  25483. mv -f "$nlist"T "$nlist"
  25484. @@ -7123,53 +6293,55 @@
  25485. fi
  25486. # Make sure that we snagged all the symbols we need.
  25487. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  25488. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  25489. - cat <<EOF > conftest.$ac_ext
  25490. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  25491. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  25492. + cat <<_LT_EOF > conftest.$ac_ext
  25493. #ifdef __cplusplus
  25494. extern "C" {
  25495. #endif
  25496. -EOF
  25497. +_LT_EOF
  25498. # Now generate the symbol file.
  25499. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  25500. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  25501. - cat <<EOF >> conftest.$ac_ext
  25502. -#if defined (__STDC__) && __STDC__
  25503. -# define lt_ptr_t void *
  25504. -#else
  25505. -# define lt_ptr_t char *
  25506. -# define const
  25507. -#endif
  25508. + cat <<_LT_EOF >> conftest.$ac_ext
  25509. -/* The mapping between symbol names and symbols. */
  25510. +/* The mapping between symbol names and symbols. */
  25511. const struct {
  25512. const char *name;
  25513. - lt_ptr_t address;
  25514. + void *address;
  25515. }
  25516. -lt_preloaded_symbols[] =
  25517. +lt__PROGRAM__LTX_preloaded_symbols[] =
  25518. {
  25519. -EOF
  25520. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  25521. - cat <<\EOF >> conftest.$ac_ext
  25522. - {0, (lt_ptr_t) 0}
  25523. + { "@PROGRAM@", (void *) 0 },
  25524. +_LT_EOF
  25525. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  25526. + cat <<\_LT_EOF >> conftest.$ac_ext
  25527. + {0, (void *) 0}
  25528. };
  25529. +/* This works around a problem in FreeBSD linker */
  25530. +#ifdef FREEBSD_WORKAROUND
  25531. +static const void *lt_preloaded_setup() {
  25532. + return lt__PROGRAM__LTX_preloaded_symbols;
  25533. +}
  25534. +#endif
  25535. +
  25536. #ifdef __cplusplus
  25537. }
  25538. #endif
  25539. -EOF
  25540. +_LT_EOF
  25541. # Now try linking the two files.
  25542. mv conftest.$ac_objext conftstm.$ac_objext
  25543. lt_save_LIBS="$LIBS"
  25544. lt_save_CFLAGS="$CFLAGS"
  25545. LIBS="conftstm.$ac_objext"
  25546. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  25547. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25548. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  25549. (eval $ac_link) 2>&5
  25550. ac_status=$?
  25551. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25552. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  25553. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25554. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  25555. pipe_works=yes
  25556. fi
  25557. LIBS="$lt_save_LIBS"
  25558. @@ -7187,7 +6359,7 @@
  25559. echo "$progname: failed program was:" >&5
  25560. cat conftest.$ac_ext >&5
  25561. fi
  25562. - rm -f conftest* conftst*
  25563. + rm -rf conftest* conftst*
  25564. # Do not use the global_symbol_pipe unless it works.
  25565. if test "$pipe_works" = yes; then
  25566. @@ -7203,5880 +6375,3500 @@
  25567. lt_cv_sys_global_symbol_to_cdecl=
  25568. fi
  25569. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  25570. - { echo "$as_me:$LINENO: result: failed" >&5
  25571. -echo "${ECHO_T}failed" >&6; }
  25572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  25573. +$as_echo "failed" >&6; }
  25574. else
  25575. - { echo "$as_me:$LINENO: result: ok" >&5
  25576. -echo "${ECHO_T}ok" >&6; }
  25577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  25578. +$as_echo "ok" >&6; }
  25579. fi
  25580. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  25581. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  25582. -if test "${lt_cv_objdir+set}" = set; then
  25583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25584. -else
  25585. - rm -f .libs 2>/dev/null
  25586. -mkdir .libs 2>/dev/null
  25587. -if test -d .libs; then
  25588. - lt_cv_objdir=.libs
  25589. -else
  25590. - # MS-DOS does not allow filenames that begin with a dot.
  25591. - lt_cv_objdir=_libs
  25592. -fi
  25593. -rmdir .libs 2>/dev/null
  25594. -fi
  25595. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  25596. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  25597. -objdir=$lt_cv_objdir
  25598. -case $host_os in
  25599. -aix3*)
  25600. - # AIX sometimes has problems with the GCC collect2 program. For some
  25601. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  25602. - # vanish in a puff of smoke.
  25603. - if test "X${COLLECT_NAMES+set}" != Xset; then
  25604. - COLLECT_NAMES=
  25605. - export COLLECT_NAMES
  25606. - fi
  25607. - ;;
  25608. -esac
  25609. -# Sed substitution that helps us do robust quoting. It backslashifies
  25610. -# metacharacters that are still active within double-quoted strings.
  25611. -Xsed='sed -e s/^X//'
  25612. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  25613. -# Same as above, but do not quote variable references.
  25614. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  25615. -# Sed substitution to delay expansion of an escaped shell variable in a
  25616. -# double_quote_subst'ed string.
  25617. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  25618. -# Sed substitution to avoid accidental globbing in evaled expressions
  25619. -no_glob_subst='s/\*/\\\*/g'
  25620. -# Constants:
  25621. -rm="rm -f"
  25622. -# Global variables:
  25623. -default_ofile=libtool
  25624. -can_build_shared=yes
  25625. -# All known linkers require a `.a' archive for static linking (except M$VC,
  25626. -# which needs '.lib').
  25627. -libext=a
  25628. -ltmain="$ac_aux_dir/ltmain.sh"
  25629. -ofile="$default_ofile"
  25630. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  25631. -if test -n "$ac_tool_prefix"; then
  25632. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  25633. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  25634. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25635. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25636. -if test "${ac_cv_prog_AR+set}" = set; then
  25637. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25638. -else
  25639. - if test -n "$AR"; then
  25640. - ac_cv_prog_AR="$AR" # Let the user override the test.
  25641. -else
  25642. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25643. -for as_dir in $PATH
  25644. -do
  25645. - IFS=$as_save_IFS
  25646. - test -z "$as_dir" && as_dir=.
  25647. - for ac_exec_ext in '' $ac_executable_extensions; do
  25648. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25649. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  25650. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25651. - break 2
  25652. - fi
  25653. -done
  25654. -done
  25655. -IFS=$as_save_IFS
  25656. -fi
  25657. -fi
  25658. -AR=$ac_cv_prog_AR
  25659. -if test -n "$AR"; then
  25660. - { echo "$as_me:$LINENO: result: $AR" >&5
  25661. -echo "${ECHO_T}$AR" >&6; }
  25662. -else
  25663. - { echo "$as_me:$LINENO: result: no" >&5
  25664. -echo "${ECHO_T}no" >&6; }
  25665. -fi
  25666. -fi
  25667. -if test -z "$ac_cv_prog_AR"; then
  25668. - ac_ct_AR=$AR
  25669. - # Extract the first word of "ar", so it can be a program name with args.
  25670. -set dummy ar; ac_word=$2
  25671. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25672. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25673. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  25674. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25675. -else
  25676. - if test -n "$ac_ct_AR"; then
  25677. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  25678. -else
  25679. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25680. -for as_dir in $PATH
  25681. -do
  25682. - IFS=$as_save_IFS
  25683. - test -z "$as_dir" && as_dir=.
  25684. - for ac_exec_ext in '' $ac_executable_extensions; do
  25685. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25686. - ac_cv_prog_ac_ct_AR="ar"
  25687. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25688. - break 2
  25689. - fi
  25690. -done
  25691. -done
  25692. -IFS=$as_save_IFS
  25693. -fi
  25694. -fi
  25695. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  25696. -if test -n "$ac_ct_AR"; then
  25697. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  25698. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  25699. +
  25700. +
  25701. +
  25702. +
  25703. +
  25704. +# Check whether --enable-libtool-lock was given.
  25705. +if test "${enable_libtool_lock+set}" = set; then :
  25706. + enableval=$enable_libtool_lock;
  25707. +fi
  25708. +
  25709. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  25710. +
  25711. +# Some flags need to be propagated to the compiler or linker for good
  25712. +# libtool support.
  25713. +case $host in
  25714. +ia64-*-hpux*)
  25715. + # Find out which ABI we are using.
  25716. + echo 'int i;' > conftest.$ac_ext
  25717. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25718. + (eval $ac_compile) 2>&5
  25719. + ac_status=$?
  25720. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25721. + test $ac_status = 0; }; then
  25722. + case `/usr/bin/file conftest.$ac_objext` in
  25723. + *ELF-32*)
  25724. + HPUX_IA64_MODE="32"
  25725. + ;;
  25726. + *ELF-64*)
  25727. + HPUX_IA64_MODE="64"
  25728. + ;;
  25729. + esac
  25730. + fi
  25731. + rm -rf conftest*
  25732. + ;;
  25733. +*-*-irix6*)
  25734. + # Find out which ABI we are using.
  25735. + echo '#line 6438 "configure"' > conftest.$ac_ext
  25736. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25737. + (eval $ac_compile) 2>&5
  25738. + ac_status=$?
  25739. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25740. + test $ac_status = 0; }; then
  25741. + if test "$lt_cv_prog_gnu_ld" = yes; then
  25742. + case `/usr/bin/file conftest.$ac_objext` in
  25743. + *32-bit*)
  25744. + LD="${LD-ld} -melf32bsmip"
  25745. + ;;
  25746. + *N32*)
  25747. + LD="${LD-ld} -melf32bmipn32"
  25748. + ;;
  25749. + *64-bit*)
  25750. + LD="${LD-ld} -melf64bmip"
  25751. + ;;
  25752. + esac
  25753. + else
  25754. + case `/usr/bin/file conftest.$ac_objext` in
  25755. + *32-bit*)
  25756. + LD="${LD-ld} -32"
  25757. + ;;
  25758. + *N32*)
  25759. + LD="${LD-ld} -n32"
  25760. + ;;
  25761. + *64-bit*)
  25762. + LD="${LD-ld} -64"
  25763. + ;;
  25764. + esac
  25765. + fi
  25766. + fi
  25767. + rm -rf conftest*
  25768. + ;;
  25769. +
  25770. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  25771. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  25772. + # Find out which ABI we are using.
  25773. + echo 'int i;' > conftest.$ac_ext
  25774. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25775. + (eval $ac_compile) 2>&5
  25776. + ac_status=$?
  25777. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25778. + test $ac_status = 0; }; then
  25779. + case `/usr/bin/file conftest.o` in
  25780. + *32-bit*)
  25781. + case $host in
  25782. + x86_64-*kfreebsd*-gnu)
  25783. + LD="${LD-ld} -m elf_i386_fbsd"
  25784. + ;;
  25785. + x86_64-*linux*)
  25786. + LD="${LD-ld} -m elf_i386"
  25787. + ;;
  25788. + ppc64-*linux*|powerpc64-*linux*)
  25789. + LD="${LD-ld} -m elf32ppclinux"
  25790. + ;;
  25791. + s390x-*linux*)
  25792. + LD="${LD-ld} -m elf_s390"
  25793. + ;;
  25794. + sparc64-*linux*)
  25795. + LD="${LD-ld} -m elf32_sparc"
  25796. + ;;
  25797. + esac
  25798. + ;;
  25799. + *64-bit*)
  25800. + case $host in
  25801. + x86_64-*kfreebsd*-gnu)
  25802. + LD="${LD-ld} -m elf_x86_64_fbsd"
  25803. + ;;
  25804. + x86_64-*linux*)
  25805. + LD="${LD-ld} -m elf_x86_64"
  25806. + ;;
  25807. + ppc*-*linux*|powerpc*-*linux*)
  25808. + LD="${LD-ld} -m elf64ppc"
  25809. + ;;
  25810. + s390*-*linux*|s390*-*tpf*)
  25811. + LD="${LD-ld} -m elf64_s390"
  25812. + ;;
  25813. + sparc*-*linux*)
  25814. + LD="${LD-ld} -m elf64_sparc"
  25815. + ;;
  25816. + esac
  25817. + ;;
  25818. + esac
  25819. + fi
  25820. + rm -rf conftest*
  25821. + ;;
  25822. +
  25823. +*-*-sco3.2v5*)
  25824. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  25825. + SAVE_CFLAGS="$CFLAGS"
  25826. + CFLAGS="$CFLAGS -belf"
  25827. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  25828. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  25829. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  25830. + $as_echo_n "(cached) " >&6
  25831. +else
  25832. + ac_ext=c
  25833. +ac_cpp='$CPP $CPPFLAGS'
  25834. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25835. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25836. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25837. +
  25838. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25839. +/* end confdefs.h. */
  25840. +
  25841. +int
  25842. +main ()
  25843. +{
  25844. +
  25845. + ;
  25846. + return 0;
  25847. +}
  25848. +_ACEOF
  25849. +if ac_fn_c_try_link "$LINENO"; then :
  25850. + lt_cv_cc_needs_belf=yes
  25851. else
  25852. - { echo "$as_me:$LINENO: result: no" >&5
  25853. -echo "${ECHO_T}no" >&6; }
  25854. + lt_cv_cc_needs_belf=no
  25855. +fi
  25856. +rm -f core conftest.err conftest.$ac_objext \
  25857. + conftest$ac_exeext conftest.$ac_ext
  25858. + ac_ext=c
  25859. +ac_cpp='$CPP $CPPFLAGS'
  25860. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25861. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25862. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25863. +
  25864. fi
  25865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  25866. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  25867. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  25868. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  25869. + CFLAGS="$SAVE_CFLAGS"
  25870. + fi
  25871. + ;;
  25872. +sparc*-*solaris*)
  25873. + # Find out which ABI we are using.
  25874. + echo 'int i;' > conftest.$ac_ext
  25875. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25876. + (eval $ac_compile) 2>&5
  25877. + ac_status=$?
  25878. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25879. + test $ac_status = 0; }; then
  25880. + case `/usr/bin/file conftest.o` in
  25881. + *64-bit*)
  25882. + case $lt_cv_prog_gnu_ld in
  25883. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  25884. + *)
  25885. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  25886. + LD="${LD-ld} -64"
  25887. + fi
  25888. + ;;
  25889. + esac
  25890. + ;;
  25891. + esac
  25892. + fi
  25893. + rm -rf conftest*
  25894. + ;;
  25895. +esac
  25896. - if test "x$ac_ct_AR" = x; then
  25897. - AR="false"
  25898. +need_locks="$enable_libtool_lock"
  25899. +
  25900. +
  25901. + case $host_os in
  25902. + rhapsody* | darwin*)
  25903. + if test -n "$ac_tool_prefix"; then
  25904. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  25905. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  25906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25907. +$as_echo_n "checking for $ac_word... " >&6; }
  25908. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  25909. + $as_echo_n "(cached) " >&6
  25910. +else
  25911. + if test -n "$DSYMUTIL"; then
  25912. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  25913. +else
  25914. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25915. +for as_dir in $PATH
  25916. +do
  25917. + IFS=$as_save_IFS
  25918. + test -z "$as_dir" && as_dir=.
  25919. + for ac_exec_ext in '' $ac_executable_extensions; do
  25920. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25921. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  25922. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25923. + break 2
  25924. + fi
  25925. +done
  25926. + done
  25927. +IFS=$as_save_IFS
  25928. +
  25929. +fi
  25930. +fi
  25931. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  25932. +if test -n "$DSYMUTIL"; then
  25933. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  25934. +$as_echo "$DSYMUTIL" >&6; }
  25935. +else
  25936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25937. +$as_echo "no" >&6; }
  25938. +fi
  25939. +
  25940. +
  25941. +fi
  25942. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  25943. + ac_ct_DSYMUTIL=$DSYMUTIL
  25944. + # Extract the first word of "dsymutil", so it can be a program name with args.
  25945. +set dummy dsymutil; ac_word=$2
  25946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25947. +$as_echo_n "checking for $ac_word... " >&6; }
  25948. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  25949. + $as_echo_n "(cached) " >&6
  25950. +else
  25951. + if test -n "$ac_ct_DSYMUTIL"; then
  25952. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  25953. +else
  25954. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25955. +for as_dir in $PATH
  25956. +do
  25957. + IFS=$as_save_IFS
  25958. + test -z "$as_dir" && as_dir=.
  25959. + for ac_exec_ext in '' $ac_executable_extensions; do
  25960. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25961. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  25962. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25963. + break 2
  25964. + fi
  25965. +done
  25966. + done
  25967. +IFS=$as_save_IFS
  25968. +
  25969. +fi
  25970. +fi
  25971. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  25972. +if test -n "$ac_ct_DSYMUTIL"; then
  25973. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  25974. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  25975. +else
  25976. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25977. +$as_echo "no" >&6; }
  25978. +fi
  25979. +
  25980. + if test "x$ac_ct_DSYMUTIL" = x; then
  25981. + DSYMUTIL=":"
  25982. else
  25983. case $cross_compiling:$ac_tool_warned in
  25984. yes:)
  25985. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  25986. -whose name does not start with the host triplet. If you think this
  25987. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  25988. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  25989. -whose name does not start with the host triplet. If you think this
  25990. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  25991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25992. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25993. ac_tool_warned=yes ;;
  25994. esac
  25995. - AR=$ac_ct_AR
  25996. + DSYMUTIL=$ac_ct_DSYMUTIL
  25997. fi
  25998. else
  25999. - AR="$ac_cv_prog_AR"
  26000. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  26001. fi
  26002. -if test -n "$ac_tool_prefix"; then
  26003. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  26004. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  26005. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26006. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26007. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  26008. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26009. + if test -n "$ac_tool_prefix"; then
  26010. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  26011. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  26012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26013. +$as_echo_n "checking for $ac_word... " >&6; }
  26014. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  26015. + $as_echo_n "(cached) " >&6
  26016. else
  26017. - if test -n "$RANLIB"; then
  26018. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  26019. + if test -n "$NMEDIT"; then
  26020. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  26021. else
  26022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26023. for as_dir in $PATH
  26024. do
  26025. IFS=$as_save_IFS
  26026. test -z "$as_dir" && as_dir=.
  26027. - for ac_exec_ext in '' $ac_executable_extensions; do
  26028. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  26029. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  26030. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26031. + for ac_exec_ext in '' $ac_executable_extensions; do
  26032. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26033. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  26034. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26035. break 2
  26036. fi
  26037. done
  26038. -done
  26039. + done
  26040. IFS=$as_save_IFS
  26041. fi
  26042. fi
  26043. -RANLIB=$ac_cv_prog_RANLIB
  26044. -if test -n "$RANLIB"; then
  26045. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  26046. -echo "${ECHO_T}$RANLIB" >&6; }
  26047. +NMEDIT=$ac_cv_prog_NMEDIT
  26048. +if test -n "$NMEDIT"; then
  26049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  26050. +$as_echo "$NMEDIT" >&6; }
  26051. else
  26052. - { echo "$as_me:$LINENO: result: no" >&5
  26053. -echo "${ECHO_T}no" >&6; }
  26054. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26055. +$as_echo "no" >&6; }
  26056. fi
  26057. fi
  26058. -if test -z "$ac_cv_prog_RANLIB"; then
  26059. - ac_ct_RANLIB=$RANLIB
  26060. - # Extract the first word of "ranlib", so it can be a program name with args.
  26061. -set dummy ranlib; ac_word=$2
  26062. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26063. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26064. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  26065. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26066. +if test -z "$ac_cv_prog_NMEDIT"; then
  26067. + ac_ct_NMEDIT=$NMEDIT
  26068. + # Extract the first word of "nmedit", so it can be a program name with args.
  26069. +set dummy nmedit; ac_word=$2
  26070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26071. +$as_echo_n "checking for $ac_word... " >&6; }
  26072. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  26073. + $as_echo_n "(cached) " >&6
  26074. else
  26075. - if test -n "$ac_ct_RANLIB"; then
  26076. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  26077. + if test -n "$ac_ct_NMEDIT"; then
  26078. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  26079. else
  26080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26081. for as_dir in $PATH
  26082. do
  26083. IFS=$as_save_IFS
  26084. test -z "$as_dir" && as_dir=.
  26085. - for ac_exec_ext in '' $ac_executable_extensions; do
  26086. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  26087. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  26088. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26089. + for ac_exec_ext in '' $ac_executable_extensions; do
  26090. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26091. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  26092. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26093. break 2
  26094. fi
  26095. done
  26096. -done
  26097. + done
  26098. IFS=$as_save_IFS
  26099. fi
  26100. fi
  26101. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  26102. -if test -n "$ac_ct_RANLIB"; then
  26103. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  26104. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  26105. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  26106. +if test -n "$ac_ct_NMEDIT"; then
  26107. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  26108. +$as_echo "$ac_ct_NMEDIT" >&6; }
  26109. else
  26110. - { echo "$as_me:$LINENO: result: no" >&5
  26111. -echo "${ECHO_T}no" >&6; }
  26112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26113. +$as_echo "no" >&6; }
  26114. fi
  26115. - if test "x$ac_ct_RANLIB" = x; then
  26116. - RANLIB=":"
  26117. + if test "x$ac_ct_NMEDIT" = x; then
  26118. + NMEDIT=":"
  26119. else
  26120. case $cross_compiling:$ac_tool_warned in
  26121. yes:)
  26122. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  26123. -whose name does not start with the host triplet. If you think this
  26124. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  26125. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  26126. -whose name does not start with the host triplet. If you think this
  26127. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  26128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26129. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26130. ac_tool_warned=yes ;;
  26131. esac
  26132. - RANLIB=$ac_ct_RANLIB
  26133. + NMEDIT=$ac_ct_NMEDIT
  26134. fi
  26135. else
  26136. - RANLIB="$ac_cv_prog_RANLIB"
  26137. + NMEDIT="$ac_cv_prog_NMEDIT"
  26138. fi
  26139. -if test -n "$ac_tool_prefix"; then
  26140. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  26141. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  26142. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26143. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26144. -if test "${ac_cv_prog_STRIP+set}" = set; then
  26145. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26146. + if test -n "$ac_tool_prefix"; then
  26147. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  26148. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  26149. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26150. +$as_echo_n "checking for $ac_word... " >&6; }
  26151. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  26152. + $as_echo_n "(cached) " >&6
  26153. else
  26154. - if test -n "$STRIP"; then
  26155. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  26156. + if test -n "$LIPO"; then
  26157. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  26158. else
  26159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26160. for as_dir in $PATH
  26161. do
  26162. IFS=$as_save_IFS
  26163. test -z "$as_dir" && as_dir=.
  26164. - for ac_exec_ext in '' $ac_executable_extensions; do
  26165. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  26166. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  26167. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26168. + for ac_exec_ext in '' $ac_executable_extensions; do
  26169. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26170. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  26171. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26172. break 2
  26173. fi
  26174. done
  26175. -done
  26176. + done
  26177. IFS=$as_save_IFS
  26178. fi
  26179. fi
  26180. -STRIP=$ac_cv_prog_STRIP
  26181. -if test -n "$STRIP"; then
  26182. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  26183. -echo "${ECHO_T}$STRIP" >&6; }
  26184. +LIPO=$ac_cv_prog_LIPO
  26185. +if test -n "$LIPO"; then
  26186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  26187. +$as_echo "$LIPO" >&6; }
  26188. else
  26189. - { echo "$as_me:$LINENO: result: no" >&5
  26190. -echo "${ECHO_T}no" >&6; }
  26191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26192. +$as_echo "no" >&6; }
  26193. fi
  26194. fi
  26195. -if test -z "$ac_cv_prog_STRIP"; then
  26196. - ac_ct_STRIP=$STRIP
  26197. - # Extract the first word of "strip", so it can be a program name with args.
  26198. -set dummy strip; ac_word=$2
  26199. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  26200. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  26201. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  26202. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26203. +if test -z "$ac_cv_prog_LIPO"; then
  26204. + ac_ct_LIPO=$LIPO
  26205. + # Extract the first word of "lipo", so it can be a program name with args.
  26206. +set dummy lipo; ac_word=$2
  26207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26208. +$as_echo_n "checking for $ac_word... " >&6; }
  26209. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  26210. + $as_echo_n "(cached) " >&6
  26211. else
  26212. - if test -n "$ac_ct_STRIP"; then
  26213. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  26214. + if test -n "$ac_ct_LIPO"; then
  26215. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  26216. else
  26217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26218. for as_dir in $PATH
  26219. do
  26220. IFS=$as_save_IFS
  26221. test -z "$as_dir" && as_dir=.
  26222. - for ac_exec_ext in '' $ac_executable_extensions; do
  26223. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  26224. - ac_cv_prog_ac_ct_STRIP="strip"
  26225. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26226. + for ac_exec_ext in '' $ac_executable_extensions; do
  26227. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26228. + ac_cv_prog_ac_ct_LIPO="lipo"
  26229. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26230. break 2
  26231. fi
  26232. done
  26233. -done
  26234. + done
  26235. IFS=$as_save_IFS
  26236. fi
  26237. fi
  26238. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  26239. -if test -n "$ac_ct_STRIP"; then
  26240. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  26241. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  26242. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  26243. +if test -n "$ac_ct_LIPO"; then
  26244. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  26245. +$as_echo "$ac_ct_LIPO" >&6; }
  26246. else
  26247. - { echo "$as_me:$LINENO: result: no" >&5
  26248. -echo "${ECHO_T}no" >&6; }
  26249. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26250. +$as_echo "no" >&6; }
  26251. fi
  26252. - if test "x$ac_ct_STRIP" = x; then
  26253. - STRIP=":"
  26254. + if test "x$ac_ct_LIPO" = x; then
  26255. + LIPO=":"
  26256. else
  26257. case $cross_compiling:$ac_tool_warned in
  26258. yes:)
  26259. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  26260. -whose name does not start with the host triplet. If you think this
  26261. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  26262. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  26263. -whose name does not start with the host triplet. If you think this
  26264. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  26265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26266. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26267. ac_tool_warned=yes ;;
  26268. esac
  26269. - STRIP=$ac_ct_STRIP
  26270. + LIPO=$ac_ct_LIPO
  26271. fi
  26272. else
  26273. - STRIP="$ac_cv_prog_STRIP"
  26274. + LIPO="$ac_cv_prog_LIPO"
  26275. fi
  26276. + if test -n "$ac_tool_prefix"; then
  26277. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  26278. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  26279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26280. +$as_echo_n "checking for $ac_word... " >&6; }
  26281. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  26282. + $as_echo_n "(cached) " >&6
  26283. +else
  26284. + if test -n "$OTOOL"; then
  26285. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  26286. +else
  26287. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26288. +for as_dir in $PATH
  26289. +do
  26290. + IFS=$as_save_IFS
  26291. + test -z "$as_dir" && as_dir=.
  26292. + for ac_exec_ext in '' $ac_executable_extensions; do
  26293. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26294. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  26295. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26296. + break 2
  26297. + fi
  26298. +done
  26299. + done
  26300. +IFS=$as_save_IFS
  26301. -old_CC="$CC"
  26302. -old_CFLAGS="$CFLAGS"
  26303. +fi
  26304. +fi
  26305. +OTOOL=$ac_cv_prog_OTOOL
  26306. +if test -n "$OTOOL"; then
  26307. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  26308. +$as_echo "$OTOOL" >&6; }
  26309. +else
  26310. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26311. +$as_echo "no" >&6; }
  26312. +fi
  26313. -# Set sane defaults for various variables
  26314. -test -z "$AR" && AR=ar
  26315. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  26316. -test -z "$AS" && AS=as
  26317. -test -z "$CC" && CC=cc
  26318. -test -z "$LTCC" && LTCC=$CC
  26319. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  26320. -test -z "$LD" && LD=ld
  26321. -test -z "$LN_S" && LN_S="ln -s"
  26322. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  26323. -test -z "$NM" && NM=nm
  26324. -test -z "$SED" && SED=sed
  26325. -test -z "$OBJDUMP" && OBJDUMP=objdump
  26326. -test -z "$RANLIB" && RANLIB=:
  26327. -test -z "$STRIP" && STRIP=:
  26328. -test -z "$ac_objext" && ac_objext=o
  26329. -
  26330. -# Determine commands to create old-style static archives.
  26331. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  26332. -old_postinstall_cmds='chmod 644 $oldlib'
  26333. -old_postuninstall_cmds=
  26334. -if test -n "$RANLIB"; then
  26335. - case $host_os in
  26336. - openbsd*)
  26337. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  26338. - ;;
  26339. - *)
  26340. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  26341. - ;;
  26342. - esac
  26343. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  26344. fi
  26345. -
  26346. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  26347. -
  26348. -# Only perform the check for file, if the check method requires it
  26349. -case $deplibs_check_method in
  26350. -file_magic*)
  26351. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  26352. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  26353. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  26354. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  26355. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26356. +if test -z "$ac_cv_prog_OTOOL"; then
  26357. + ac_ct_OTOOL=$OTOOL
  26358. + # Extract the first word of "otool", so it can be a program name with args.
  26359. +set dummy otool; ac_word=$2
  26360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26361. +$as_echo_n "checking for $ac_word... " >&6; }
  26362. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  26363. + $as_echo_n "(cached) " >&6
  26364. else
  26365. - case $MAGIC_CMD in
  26366. -[\\/*] | ?:[\\/]*)
  26367. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26368. - ;;
  26369. -*)
  26370. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  26371. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26372. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26373. - for ac_dir in $ac_dummy; do
  26374. - IFS="$lt_save_ifs"
  26375. - test -z "$ac_dir" && ac_dir=.
  26376. - if test -f $ac_dir/${ac_tool_prefix}file; then
  26377. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  26378. - if test -n "$file_magic_test_file"; then
  26379. - case $deplibs_check_method in
  26380. - "file_magic "*)
  26381. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  26382. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26383. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26384. - $EGREP "$file_magic_regex" > /dev/null; then
  26385. - :
  26386. - else
  26387. - cat <<EOF 1>&2
  26388. + if test -n "$ac_ct_OTOOL"; then
  26389. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  26390. +else
  26391. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26392. +for as_dir in $PATH
  26393. +do
  26394. + IFS=$as_save_IFS
  26395. + test -z "$as_dir" && as_dir=.
  26396. + for ac_exec_ext in '' $ac_executable_extensions; do
  26397. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26398. + ac_cv_prog_ac_ct_OTOOL="otool"
  26399. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26400. + break 2
  26401. + fi
  26402. +done
  26403. + done
  26404. +IFS=$as_save_IFS
  26405. -*** Warning: the command libtool uses to detect shared libraries,
  26406. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  26407. -*** The result is that libtool may fail to recognize shared libraries
  26408. -*** as such. This will affect the creation of libtool libraries that
  26409. -*** depend on shared libraries, but programs linked with such libtool
  26410. -*** libraries will work regardless of this problem. Nevertheless, you
  26411. -*** may want to report the problem to your system manager and/or to
  26412. -*** bug-libtool@gnu.org
  26413. +fi
  26414. +fi
  26415. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  26416. +if test -n "$ac_ct_OTOOL"; then
  26417. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  26418. +$as_echo "$ac_ct_OTOOL" >&6; }
  26419. +else
  26420. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26421. +$as_echo "no" >&6; }
  26422. +fi
  26423. -EOF
  26424. - fi ;;
  26425. - esac
  26426. - fi
  26427. - break
  26428. - fi
  26429. - done
  26430. - IFS="$lt_save_ifs"
  26431. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  26432. - ;;
  26433. + if test "x$ac_ct_OTOOL" = x; then
  26434. + OTOOL=":"
  26435. + else
  26436. + case $cross_compiling:$ac_tool_warned in
  26437. +yes:)
  26438. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26439. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26440. +ac_tool_warned=yes ;;
  26441. esac
  26442. + OTOOL=$ac_ct_OTOOL
  26443. + fi
  26444. +else
  26445. + OTOOL="$ac_cv_prog_OTOOL"
  26446. fi
  26447. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26448. -if test -n "$MAGIC_CMD"; then
  26449. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  26450. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  26451. + if test -n "$ac_tool_prefix"; then
  26452. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  26453. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  26454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26455. +$as_echo_n "checking for $ac_word... " >&6; }
  26456. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  26457. + $as_echo_n "(cached) " >&6
  26458. else
  26459. - { echo "$as_me:$LINENO: result: no" >&5
  26460. -echo "${ECHO_T}no" >&6; }
  26461. -fi
  26462. + if test -n "$OTOOL64"; then
  26463. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  26464. +else
  26465. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26466. +for as_dir in $PATH
  26467. +do
  26468. + IFS=$as_save_IFS
  26469. + test -z "$as_dir" && as_dir=.
  26470. + for ac_exec_ext in '' $ac_executable_extensions; do
  26471. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26472. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  26473. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26474. + break 2
  26475. + fi
  26476. +done
  26477. + done
  26478. +IFS=$as_save_IFS
  26479. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  26480. - if test -n "$ac_tool_prefix"; then
  26481. - { echo "$as_me:$LINENO: checking for file" >&5
  26482. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  26483. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  26484. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26485. +fi
  26486. +fi
  26487. +OTOOL64=$ac_cv_prog_OTOOL64
  26488. +if test -n "$OTOOL64"; then
  26489. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  26490. +$as_echo "$OTOOL64" >&6; }
  26491. else
  26492. - case $MAGIC_CMD in
  26493. -[\\/*] | ?:[\\/]*)
  26494. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26495. - ;;
  26496. -*)
  26497. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  26498. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26499. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26500. - for ac_dir in $ac_dummy; do
  26501. - IFS="$lt_save_ifs"
  26502. - test -z "$ac_dir" && ac_dir=.
  26503. - if test -f $ac_dir/file; then
  26504. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  26505. - if test -n "$file_magic_test_file"; then
  26506. - case $deplibs_check_method in
  26507. - "file_magic "*)
  26508. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  26509. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26510. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26511. - $EGREP "$file_magic_regex" > /dev/null; then
  26512. - :
  26513. - else
  26514. - cat <<EOF 1>&2
  26515. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26516. +$as_echo "no" >&6; }
  26517. +fi
  26518. -*** Warning: the command libtool uses to detect shared libraries,
  26519. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  26520. -*** The result is that libtool may fail to recognize shared libraries
  26521. -*** as such. This will affect the creation of libtool libraries that
  26522. -*** depend on shared libraries, but programs linked with such libtool
  26523. -*** libraries will work regardless of this problem. Nevertheless, you
  26524. -*** may want to report the problem to your system manager and/or to
  26525. -*** bug-libtool@gnu.org
  26526. -EOF
  26527. - fi ;;
  26528. - esac
  26529. - fi
  26530. - break
  26531. - fi
  26532. - done
  26533. - IFS="$lt_save_ifs"
  26534. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  26535. - ;;
  26536. -esac
  26537. fi
  26538. +if test -z "$ac_cv_prog_OTOOL64"; then
  26539. + ac_ct_OTOOL64=$OTOOL64
  26540. + # Extract the first word of "otool64", so it can be a program name with args.
  26541. +set dummy otool64; ac_word=$2
  26542. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26543. +$as_echo_n "checking for $ac_word... " >&6; }
  26544. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  26545. + $as_echo_n "(cached) " >&6
  26546. +else
  26547. + if test -n "$ac_ct_OTOOL64"; then
  26548. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  26549. +else
  26550. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26551. +for as_dir in $PATH
  26552. +do
  26553. + IFS=$as_save_IFS
  26554. + test -z "$as_dir" && as_dir=.
  26555. + for ac_exec_ext in '' $ac_executable_extensions; do
  26556. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26557. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  26558. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26559. + break 2
  26560. + fi
  26561. +done
  26562. + done
  26563. +IFS=$as_save_IFS
  26564. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26565. -if test -n "$MAGIC_CMD"; then
  26566. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  26567. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  26568. +fi
  26569. +fi
  26570. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  26571. +if test -n "$ac_ct_OTOOL64"; then
  26572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  26573. +$as_echo "$ac_ct_OTOOL64" >&6; }
  26574. else
  26575. - { echo "$as_me:$LINENO: result: no" >&5
  26576. -echo "${ECHO_T}no" >&6; }
  26577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26578. +$as_echo "no" >&6; }
  26579. fi
  26580. + if test "x$ac_ct_OTOOL64" = x; then
  26581. + OTOOL64=":"
  26582. else
  26583. - MAGIC_CMD=:
  26584. + case $cross_compiling:$ac_tool_warned in
  26585. +yes:)
  26586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26587. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26588. +ac_tool_warned=yes ;;
  26589. +esac
  26590. + OTOOL64=$ac_ct_OTOOL64
  26591. fi
  26592. +else
  26593. + OTOOL64="$ac_cv_prog_OTOOL64"
  26594. fi
  26595. - fi
  26596. - ;;
  26597. -esac
  26598. -
  26599. -enable_dlopen=no
  26600. -enable_win32_dll=yes
  26601. -
  26602. -# Check whether --enable-libtool-lock was given.
  26603. -if test "${enable_libtool_lock+set}" = set; then
  26604. - enableval=$enable_libtool_lock;
  26605. -fi
  26606. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  26607. -# Check whether --with-pic was given.
  26608. -if test "${with_pic+set}" = set; then
  26609. - withval=$with_pic; pic_mode="$withval"
  26610. -else
  26611. - pic_mode=default
  26612. -fi
  26613. -test -z "$pic_mode" && pic_mode=default
  26614. -# Use C for the default configuration in the libtool script
  26615. -tagname=
  26616. -lt_save_CC="$CC"
  26617. -ac_ext=c
  26618. -ac_cpp='$CPP $CPPFLAGS'
  26619. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26620. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26621. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26622. -# Source file extension for C test sources.
  26623. -ac_ext=c
  26624. -# Object file extension for compiled C test sources.
  26625. -objext=o
  26626. -objext=$objext
  26627. -# Code to be used in simple compile tests
  26628. -lt_simple_compile_test_code="int some_variable = 0;\n"
  26629. -# Code to be used in simple link tests
  26630. -lt_simple_link_test_code='int main(){return(0);}\n'
  26631. -# If no C compiler was specified, use CC.
  26632. -LTCC=${LTCC-"$CC"}
  26633. -# Allow CC to be a program name with arguments.
  26634. -compiler=$CC
  26635. -#
  26636. -# Check for any special shared library compilation flags.
  26637. -#
  26638. -lt_prog_cc_shlib=
  26639. -if test "$GCC" = no; then
  26640. - case $host_os in
  26641. - sco3.2v5*)
  26642. - lt_prog_cc_shlib='-belf'
  26643. - ;;
  26644. - esac
  26645. -fi
  26646. -if test -n "$lt_prog_cc_shlib"; then
  26647. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  26648. -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  26649. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  26650. - else
  26651. - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  26652. -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  26653. - lt_cv_prog_cc_can_build_shared=no
  26654. - fi
  26655. -fi
  26656. -#
  26657. -# Check to make sure the static flag actually works.
  26658. -#
  26659. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  26660. -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  26661. -if test "${lt_prog_compiler_static_works+set}" = set; then
  26662. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26663. -else
  26664. - lt_prog_compiler_static_works=no
  26665. - save_LDFLAGS="$LDFLAGS"
  26666. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  26667. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  26668. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26669. - # The compiler can only warn and ignore the option if not recognized
  26670. - # So say no if there are warnings
  26671. - if test -s conftest.err; then
  26672. - # Append any errors to the config.log.
  26673. - cat conftest.err 1>&5
  26674. - else
  26675. - lt_prog_compiler_static_works=yes
  26676. - fi
  26677. - fi
  26678. - $rm conftest*
  26679. - LDFLAGS="$save_LDFLAGS"
  26680. -fi
  26681. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  26682. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  26683. -if test x"$lt_prog_compiler_static_works" = xyes; then
  26684. - :
  26685. -else
  26686. - lt_prog_compiler_static=
  26687. -fi
  26688. -lt_prog_compiler_no_builtin_flag=
  26689. -if test "$GCC" = yes; then
  26690. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  26691. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26692. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  26693. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  26694. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26695. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  26696. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  26697. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  26698. + $as_echo_n "(cached) " >&6
  26699. else
  26700. - lt_cv_prog_compiler_rtti_exceptions=no
  26701. - ac_outfile=conftest.$ac_objext
  26702. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26703. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  26704. - # Insert the option either (1) after the last *FLAGS variable, or
  26705. - # (2) before a word containing "conftest.", or (3) at the end.
  26706. - # Note that $ac_compile itself does not contain backslashes and begins
  26707. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26708. - # The option is referenced via a variable to avoid confusing sed.
  26709. - lt_compile=`echo "$ac_compile" | $SED \
  26710. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  26711. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26712. - -e 's:$: $lt_compiler_flag:'`
  26713. - (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
  26714. - (eval "$lt_compile" 2>conftest.err)
  26715. - ac_status=$?
  26716. - cat conftest.err >&5
  26717. - echo "$as_me:7880: \$? = $ac_status" >&5
  26718. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26719. - # The compiler can only warn and ignore the option if not recognized
  26720. - # So say no if there are warnings
  26721. - if test ! -s conftest.err; then
  26722. - lt_cv_prog_compiler_rtti_exceptions=yes
  26723. - fi
  26724. - fi
  26725. - $rm conftest*
  26726. -
  26727. + lt_cv_apple_cc_single_mod=no
  26728. + if test -z "${LT_MULTI_MODULE}"; then
  26729. + # By default we will add the -single_module flag. You can override
  26730. + # by either setting the environment variable LT_MULTI_MODULE
  26731. + # non-empty at configure time, or by adding -multi_module to the
  26732. + # link flags.
  26733. + rm -rf libconftest.dylib*
  26734. + echo "int foo(void){return 1;}" > conftest.c
  26735. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  26736. +-dynamiclib -Wl,-single_module conftest.c" >&5
  26737. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  26738. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  26739. + _lt_result=$?
  26740. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  26741. + lt_cv_apple_cc_single_mod=yes
  26742. + else
  26743. + cat conftest.err >&5
  26744. + fi
  26745. + rm -rf libconftest.dylib*
  26746. + rm -f conftest.*
  26747. + fi
  26748. fi
  26749. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26750. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  26752. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  26753. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  26754. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  26755. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  26756. + $as_echo_n "(cached) " >&6
  26757. +else
  26758. + lt_cv_ld_exported_symbols_list=no
  26759. + save_LDFLAGS=$LDFLAGS
  26760. + echo "_main" > conftest.sym
  26761. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  26762. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26763. +/* end confdefs.h. */
  26764. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26765. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26766. +int
  26767. +main ()
  26768. +{
  26769. +
  26770. + ;
  26771. + return 0;
  26772. +}
  26773. +_ACEOF
  26774. +if ac_fn_c_try_link "$LINENO"; then :
  26775. + lt_cv_ld_exported_symbols_list=yes
  26776. else
  26777. - :
  26778. + lt_cv_ld_exported_symbols_list=no
  26779. fi
  26780. +rm -f core conftest.err conftest.$ac_objext \
  26781. + conftest$ac_exeext conftest.$ac_ext
  26782. + LDFLAGS="$save_LDFLAGS"
  26783. fi
  26784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  26785. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  26786. + case $host_os in
  26787. + rhapsody* | darwin1.[012])
  26788. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  26789. + darwin1.*)
  26790. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  26791. + darwin*) # darwin 5.x on
  26792. + # if running on 10.5 or later, the deployment target defaults
  26793. + # to the OS version, if on x86, and 10.4, the deployment
  26794. + # target defaults to 10.4. Don't you love it?
  26795. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  26796. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  26797. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  26798. + 10.[012]*)
  26799. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  26800. + 10.*)
  26801. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  26802. + esac
  26803. + ;;
  26804. + esac
  26805. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  26806. + _lt_dar_single_mod='$single_module'
  26807. + fi
  26808. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  26809. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  26810. + else
  26811. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26812. + fi
  26813. + if test "$DSYMUTIL" != ":"; then
  26814. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  26815. + else
  26816. + _lt_dsymutil=
  26817. + fi
  26818. + ;;
  26819. + esac
  26820. -lt_prog_compiler_wl=
  26821. -lt_prog_compiler_pic=
  26822. -lt_prog_compiler_static=
  26823. +ac_ext=c
  26824. +ac_cpp='$CPP $CPPFLAGS'
  26825. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26826. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26827. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26828. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  26829. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  26830. +# On Suns, sometimes $CPP names a directory.
  26831. +if test -n "$CPP" && test -d "$CPP"; then
  26832. + CPP=
  26833. +fi
  26834. +if test -z "$CPP"; then
  26835. + if test "${ac_cv_prog_CPP+set}" = set; then :
  26836. + $as_echo_n "(cached) " >&6
  26837. +else
  26838. + # Double quotes because CPP needs to be expanded
  26839. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  26840. + do
  26841. + ac_preproc_ok=false
  26842. +for ac_c_preproc_warn_flag in '' yes
  26843. +do
  26844. + # Use a header file that comes with gcc, so configuring glibc
  26845. + # with a fresh cross-compiler works.
  26846. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26847. + # <limits.h> exists even on freestanding compilers.
  26848. + # On the NeXT, cc -E runs the code through the compiler's parser,
  26849. + # not just through cpp. "Syntax error" is here to catch this case.
  26850. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26851. +/* end confdefs.h. */
  26852. +#ifdef __STDC__
  26853. +# include <limits.h>
  26854. +#else
  26855. +# include <assert.h>
  26856. +#endif
  26857. + Syntax error
  26858. +_ACEOF
  26859. +if ac_fn_c_try_cpp "$LINENO"; then :
  26860. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26861. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  26862. +else
  26863. + # Broken: fails on valid input.
  26864. +continue
  26865. +fi
  26866. +rm -f conftest.err conftest.$ac_ext
  26867. - if test "$GCC" = yes; then
  26868. - lt_prog_compiler_wl='-Wl,'
  26869. - lt_prog_compiler_static='-static'
  26870. + # OK, works on sane cases. Now check whether nonexistent headers
  26871. + # can be detected and how.
  26872. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26873. +/* end confdefs.h. */
  26874. +#include <ac_nonexistent.h>
  26875. +_ACEOF
  26876. +if ac_fn_c_try_cpp "$LINENO"; then :
  26877. + # Broken: success on invalid input.
  26878. +continue
  26879. +else
  26880. + # Passes both tests.
  26881. +ac_preproc_ok=:
  26882. +break
  26883. +fi
  26884. +rm -f conftest.err conftest.$ac_ext
  26885. - case $host_os in
  26886. - aix*)
  26887. - # All AIX code is PIC.
  26888. - if test "$host_cpu" = ia64; then
  26889. - # AIX 5 now supports IA64 processor
  26890. - lt_prog_compiler_static='-Bstatic'
  26891. - fi
  26892. - ;;
  26893. +done
  26894. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  26895. +rm -f conftest.err conftest.$ac_ext
  26896. +if $ac_preproc_ok; then :
  26897. + break
  26898. +fi
  26899. - amigaos*)
  26900. - # FIXME: we need at least 68020 code to build shared libraries, but
  26901. - # adding the `-m68020' flag to GCC prevents building anything better,
  26902. - # like `-m68040'.
  26903. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26904. - ;;
  26905. + done
  26906. + ac_cv_prog_CPP=$CPP
  26907. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26908. - # PIC is the default for these OSes.
  26909. - ;;
  26910. +fi
  26911. + CPP=$ac_cv_prog_CPP
  26912. +else
  26913. + ac_cv_prog_CPP=$CPP
  26914. +fi
  26915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  26916. +$as_echo "$CPP" >&6; }
  26917. +ac_preproc_ok=false
  26918. +for ac_c_preproc_warn_flag in '' yes
  26919. +do
  26920. + # Use a header file that comes with gcc, so configuring glibc
  26921. + # with a fresh cross-compiler works.
  26922. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26923. + # <limits.h> exists even on freestanding compilers.
  26924. + # On the NeXT, cc -E runs the code through the compiler's parser,
  26925. + # not just through cpp. "Syntax error" is here to catch this case.
  26926. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26927. +/* end confdefs.h. */
  26928. +#ifdef __STDC__
  26929. +# include <limits.h>
  26930. +#else
  26931. +# include <assert.h>
  26932. +#endif
  26933. + Syntax error
  26934. +_ACEOF
  26935. +if ac_fn_c_try_cpp "$LINENO"; then :
  26936. - mingw* | pw32* | os2*)
  26937. - # This hack is so that the source file can tell whether it is being
  26938. - # built for inclusion in a dll (and should export symbols for example).
  26939. - lt_prog_compiler_pic='-DDLL_EXPORT'
  26940. - ;;
  26941. +else
  26942. + # Broken: fails on valid input.
  26943. +continue
  26944. +fi
  26945. +rm -f conftest.err conftest.$ac_ext
  26946. - darwin* | rhapsody*)
  26947. - # PIC is the default on this platform
  26948. - # Common symbols not allowed in MH_DYLIB files
  26949. - lt_prog_compiler_pic='-fno-common'
  26950. - ;;
  26951. + # OK, works on sane cases. Now check whether nonexistent headers
  26952. + # can be detected and how.
  26953. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26954. +/* end confdefs.h. */
  26955. +#include <ac_nonexistent.h>
  26956. +_ACEOF
  26957. +if ac_fn_c_try_cpp "$LINENO"; then :
  26958. + # Broken: success on invalid input.
  26959. +continue
  26960. +else
  26961. + # Passes both tests.
  26962. +ac_preproc_ok=:
  26963. +break
  26964. +fi
  26965. +rm -f conftest.err conftest.$ac_ext
  26966. - msdosdjgpp*)
  26967. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  26968. - # on systems that don't support them.
  26969. - lt_prog_compiler_can_build_shared=no
  26970. - enable_shared=no
  26971. - ;;
  26972. +done
  26973. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  26974. +rm -f conftest.err conftest.$ac_ext
  26975. +if $ac_preproc_ok; then :
  26976. - sysv4*MP*)
  26977. - if test -d /usr/nec; then
  26978. - lt_prog_compiler_pic=-Kconform_pic
  26979. - fi
  26980. - ;;
  26981. +else
  26982. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26983. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26984. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  26985. +See \`config.log' for more details." "$LINENO" 5; }
  26986. +fi
  26987. - hpux*)
  26988. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26989. - # not for PA HP-UX.
  26990. - case "$host_cpu" in
  26991. - hppa*64*|ia64*)
  26992. - # +Z the default
  26993. - ;;
  26994. - *)
  26995. - lt_prog_compiler_pic='-fPIC'
  26996. - ;;
  26997. - esac
  26998. - ;;
  26999. +ac_ext=c
  27000. +ac_cpp='$CPP $CPPFLAGS'
  27001. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27002. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27003. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27004. - *)
  27005. - lt_prog_compiler_pic='-fPIC'
  27006. - ;;
  27007. - esac
  27008. - else
  27009. - # PORTME Check for flag to pass linker flags through the system compiler.
  27010. - case $host_os in
  27011. - aix*)
  27012. - lt_prog_compiler_wl='-Wl,'
  27013. - if test "$host_cpu" = ia64; then
  27014. - # AIX 5 now supports IA64 processor
  27015. - lt_prog_compiler_static='-Bstatic'
  27016. - else
  27017. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  27018. - fi
  27019. - ;;
  27020. - darwin*)
  27021. - # PIC is the default on this platform
  27022. - # Common symbols not allowed in MH_DYLIB files
  27023. - case "$cc_basename" in
  27024. - xlc*)
  27025. - lt_prog_compiler_pic='-qnocommon'
  27026. - lt_prog_compiler_wl='-Wl,'
  27027. - ;;
  27028. - esac
  27029. - ;;
  27030. - mingw* | pw32* | os2*)
  27031. - # This hack is so that the source file can tell whether it is being
  27032. - # built for inclusion in a dll (and should export symbols for example).
  27033. - lt_prog_compiler_pic='-DDLL_EXPORT'
  27034. - ;;
  27035. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  27036. +$as_echo_n "checking for ANSI C header files... " >&6; }
  27037. +if test "${ac_cv_header_stdc+set}" = set; then :
  27038. + $as_echo_n "(cached) " >&6
  27039. +else
  27040. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27041. +/* end confdefs.h. */
  27042. +#include <stdlib.h>
  27043. +#include <stdarg.h>
  27044. +#include <string.h>
  27045. +#include <float.h>
  27046. - hpux9* | hpux10* | hpux11*)
  27047. - lt_prog_compiler_wl='-Wl,'
  27048. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27049. - # not for PA HP-UX.
  27050. - case "$host_cpu" in
  27051. - hppa*64*|ia64*)
  27052. - # +Z the default
  27053. - ;;
  27054. - *)
  27055. - lt_prog_compiler_pic='+Z'
  27056. - ;;
  27057. - esac
  27058. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  27059. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  27060. - ;;
  27061. +int
  27062. +main ()
  27063. +{
  27064. - irix5* | irix6* | nonstopux*)
  27065. - lt_prog_compiler_wl='-Wl,'
  27066. - # PIC (with -KPIC) is the default.
  27067. - lt_prog_compiler_static='-non_shared'
  27068. - ;;
  27069. + ;
  27070. + return 0;
  27071. +}
  27072. +_ACEOF
  27073. +if ac_fn_c_try_compile "$LINENO"; then :
  27074. + ac_cv_header_stdc=yes
  27075. +else
  27076. + ac_cv_header_stdc=no
  27077. +fi
  27078. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27079. - newsos6)
  27080. - lt_prog_compiler_pic='-KPIC'
  27081. - lt_prog_compiler_static='-Bstatic'
  27082. - ;;
  27083. +if test $ac_cv_header_stdc = yes; then
  27084. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  27085. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27086. +/* end confdefs.h. */
  27087. +#include <string.h>
  27088. - linux*)
  27089. - case $CC in
  27090. - icc* | ecc*)
  27091. - lt_prog_compiler_wl='-Wl,'
  27092. - lt_prog_compiler_pic='-KPIC'
  27093. - lt_prog_compiler_static='-static'
  27094. - ;;
  27095. - ccc*)
  27096. - lt_prog_compiler_wl='-Wl,'
  27097. - # All Alpha code is PIC.
  27098. - lt_prog_compiler_static='-non_shared'
  27099. - ;;
  27100. - esac
  27101. - ;;
  27102. +_ACEOF
  27103. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27104. + $EGREP "memchr" >/dev/null 2>&1; then :
  27105. - osf3* | osf4* | osf5*)
  27106. - lt_prog_compiler_wl='-Wl,'
  27107. - # All OSF/1 code is PIC.
  27108. - lt_prog_compiler_static='-non_shared'
  27109. - ;;
  27110. +else
  27111. + ac_cv_header_stdc=no
  27112. +fi
  27113. +rm -f conftest*
  27114. - sco3.2v5*)
  27115. - lt_prog_compiler_pic='-Kpic'
  27116. - lt_prog_compiler_static='-dn'
  27117. - ;;
  27118. +fi
  27119. - solaris*)
  27120. - lt_prog_compiler_wl='-Wl,'
  27121. - lt_prog_compiler_pic='-KPIC'
  27122. - lt_prog_compiler_static='-Bstatic'
  27123. - ;;
  27124. +if test $ac_cv_header_stdc = yes; then
  27125. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  27126. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27127. +/* end confdefs.h. */
  27128. +#include <stdlib.h>
  27129. - sunos4*)
  27130. - lt_prog_compiler_wl='-Qoption ld '
  27131. - lt_prog_compiler_pic='-PIC'
  27132. - lt_prog_compiler_static='-Bstatic'
  27133. - ;;
  27134. +_ACEOF
  27135. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27136. + $EGREP "free" >/dev/null 2>&1; then :
  27137. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  27138. - lt_prog_compiler_wl='-Wl,'
  27139. - lt_prog_compiler_pic='-KPIC'
  27140. - lt_prog_compiler_static='-Bstatic'
  27141. - ;;
  27142. +else
  27143. + ac_cv_header_stdc=no
  27144. +fi
  27145. +rm -f conftest*
  27146. - sysv4*MP*)
  27147. - if test -d /usr/nec ;then
  27148. - lt_prog_compiler_pic='-Kconform_pic'
  27149. - lt_prog_compiler_static='-Bstatic'
  27150. - fi
  27151. - ;;
  27152. +fi
  27153. - uts4*)
  27154. - lt_prog_compiler_pic='-pic'
  27155. - lt_prog_compiler_static='-Bstatic'
  27156. - ;;
  27157. +if test $ac_cv_header_stdc = yes; then
  27158. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  27159. + if test "$cross_compiling" = yes; then :
  27160. + :
  27161. +else
  27162. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27163. +/* end confdefs.h. */
  27164. +#include <ctype.h>
  27165. +#include <stdlib.h>
  27166. +#if ((' ' & 0x0FF) == 0x020)
  27167. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  27168. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  27169. +#else
  27170. +# define ISLOWER(c) \
  27171. + (('a' <= (c) && (c) <= 'i') \
  27172. + || ('j' <= (c) && (c) <= 'r') \
  27173. + || ('s' <= (c) && (c) <= 'z'))
  27174. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  27175. +#endif
  27176. - *)
  27177. - lt_prog_compiler_can_build_shared=no
  27178. - ;;
  27179. - esac
  27180. - fi
  27181. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  27182. +int
  27183. +main ()
  27184. +{
  27185. + int i;
  27186. + for (i = 0; i < 256; i++)
  27187. + if (XOR (islower (i), ISLOWER (i))
  27188. + || toupper (i) != TOUPPER (i))
  27189. + return 2;
  27190. + return 0;
  27191. +}
  27192. +_ACEOF
  27193. +if ac_fn_c_try_run "$LINENO"; then :
  27194. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  27195. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  27196. +else
  27197. + ac_cv_header_stdc=no
  27198. +fi
  27199. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27200. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  27201. +fi
  27202. -#
  27203. -# Check to make sure the PIC flag actually works.
  27204. -#
  27205. -if test -n "$lt_prog_compiler_pic"; then
  27206. +fi
  27207. +fi
  27208. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  27209. +$as_echo "$ac_cv_header_stdc" >&6; }
  27210. +if test $ac_cv_header_stdc = yes; then
  27211. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  27212. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  27213. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  27214. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27215. -else
  27216. - lt_prog_compiler_pic_works=no
  27217. - ac_outfile=conftest.$ac_objext
  27218. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27219. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  27220. - # Insert the option either (1) after the last *FLAGS variable, or
  27221. - # (2) before a word containing "conftest.", or (3) at the end.
  27222. - # Note that $ac_compile itself does not contain backslashes and begins
  27223. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  27224. - # The option is referenced via a variable to avoid confusing sed.
  27225. - lt_compile=`echo "$ac_compile" | $SED \
  27226. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  27227. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27228. - -e 's:$: $lt_compiler_flag:'`
  27229. - (eval echo "\"\$as_me:8119: $lt_compile\"" >&5)
  27230. - (eval "$lt_compile" 2>conftest.err)
  27231. - ac_status=$?
  27232. - cat conftest.err >&5
  27233. - echo "$as_me:8123: \$? = $ac_status" >&5
  27234. - if (exit $ac_status) && test -s "$ac_outfile"; then
  27235. - # The compiler can only warn and ignore the option if not recognized
  27236. - # So say no if there are warnings
  27237. - if test ! -s conftest.err; then
  27238. - lt_prog_compiler_pic_works=yes
  27239. - fi
  27240. - fi
  27241. - $rm conftest*
  27242. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  27243. fi
  27244. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  27245. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  27246. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  27247. - case $lt_prog_compiler_pic in
  27248. - "" | " "*) ;;
  27249. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  27250. - esac
  27251. -else
  27252. - lt_prog_compiler_pic=
  27253. - lt_prog_compiler_can_build_shared=no
  27254. -fi
  27255. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  27256. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  27257. + inttypes.h stdint.h unistd.h
  27258. +do :
  27259. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27260. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  27261. +"
  27262. +eval as_val=\$$as_ac_Header
  27263. + if test "x$as_val" = x""yes; then :
  27264. + cat >>confdefs.h <<_ACEOF
  27265. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27266. +_ACEOF
  27267. fi
  27268. -case "$host_os" in
  27269. - # For platforms which do not support PIC, -DPIC is meaningless:
  27270. - *djgpp*)
  27271. - lt_prog_compiler_pic=
  27272. - ;;
  27273. - *)
  27274. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  27275. - ;;
  27276. -esac
  27277. -
  27278. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  27279. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  27280. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  27281. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27282. -else
  27283. - lt_cv_prog_compiler_c_o=no
  27284. - $rm -r conftest 2>/dev/null
  27285. - mkdir conftest
  27286. - cd conftest
  27287. - mkdir out
  27288. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27289. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  27290. - # Insert the option either (1) after the last *FLAGS variable, or
  27291. - # (2) before a word containing "conftest.", or (3) at the end.
  27292. - # Note that $ac_compile itself does not contain backslashes and begins
  27293. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  27294. - lt_compile=`echo "$ac_compile" | $SED \
  27295. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  27296. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27297. - -e 's:$: $lt_compiler_flag:'`
  27298. - (eval echo "\"\$as_me:8179: $lt_compile\"" >&5)
  27299. - (eval "$lt_compile" 2>out/conftest.err)
  27300. - ac_status=$?
  27301. - cat out/conftest.err >&5
  27302. - echo "$as_me:8183: \$? = $ac_status" >&5
  27303. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27304. - then
  27305. - # The compiler can only warn and ignore the option if not recognized
  27306. - # So say no if there are warnings
  27307. - if test ! -s out/conftest.err; then
  27308. - lt_cv_prog_compiler_c_o=yes
  27309. - fi
  27310. - fi
  27311. - chmod u+w .
  27312. - $rm conftest*
  27313. - # SGI C++ compiler will create directory out/ii_files/ for
  27314. - # template instantiation
  27315. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  27316. - $rm out/* && rmdir out
  27317. - cd ..
  27318. - rmdir conftest
  27319. - $rm conftest*
  27320. +done
  27321. -fi
  27322. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  27323. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  27324. +for ac_header in dlfcn.h
  27325. +do :
  27326. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  27327. +"
  27328. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  27329. + cat >>confdefs.h <<_ACEOF
  27330. +#define HAVE_DLFCN_H 1
  27331. +_ACEOF
  27332. -hard_links="nottested"
  27333. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  27334. - # do not overwrite the value of need_locks provided by the user
  27335. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  27336. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  27337. - hard_links=yes
  27338. - $rm conftest*
  27339. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27340. - touch conftest.a
  27341. - ln conftest.a conftest.b 2>&5 || hard_links=no
  27342. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27343. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  27344. -echo "${ECHO_T}$hard_links" >&6; }
  27345. - if test "$hard_links" = no; then
  27346. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27347. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27348. - need_locks=warn
  27349. - fi
  27350. -else
  27351. - need_locks=no
  27352. fi
  27353. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27354. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27355. -
  27356. - runpath_var=
  27357. - allow_undefined_flag=
  27358. - enable_shared_with_static_runtimes=no
  27359. - archive_cmds=
  27360. - archive_expsym_cmds=
  27361. - old_archive_From_new_cmds=
  27362. - old_archive_from_expsyms_cmds=
  27363. - export_dynamic_flag_spec=
  27364. - whole_archive_flag_spec=
  27365. - thread_safe_flag_spec=
  27366. - hardcode_libdir_flag_spec=
  27367. - hardcode_libdir_flag_spec_ld=
  27368. - hardcode_libdir_separator=
  27369. - hardcode_direct=no
  27370. - hardcode_minus_L=no
  27371. - hardcode_shlibpath_var=unsupported
  27372. - link_all_deplibs=unknown
  27373. - hardcode_automatic=no
  27374. - module_cmds=
  27375. - module_expsym_cmds=
  27376. - always_export_symbols=no
  27377. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27378. - # include_expsyms should be a list of space-separated symbols to be *always*
  27379. - # included in the symbol list
  27380. - include_expsyms=
  27381. - # exclude_expsyms can be an extended regexp of symbols to exclude
  27382. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  27383. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  27384. - # as well as any symbol that contains `d'.
  27385. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  27386. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  27387. - # platforms (ab)use it in PIC code, but their linkers get confused if
  27388. - # the symbol is explicitly referenced. Since portable code cannot
  27389. - # rely on this symbol name, it's probably fine to never include it in
  27390. - # preloaded symbol tables.
  27391. - extract_expsyms_cmds=
  27392. +done
  27393. - case $host_os in
  27394. - cygwin* | mingw* | pw32*)
  27395. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  27396. - # When not using gcc, we currently assume that we are using
  27397. - # Microsoft Visual C++.
  27398. - if test "$GCC" != yes; then
  27399. - with_gnu_ld=no
  27400. - fi
  27401. - ;;
  27402. - openbsd*)
  27403. - with_gnu_ld=no
  27404. - ;;
  27405. - esac
  27406. - ld_shlibs=yes
  27407. - if test "$with_gnu_ld" = yes; then
  27408. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27409. - wlarc='${wl}'
  27410. - # See if GNU ld supports shared libraries.
  27411. - case $host_os in
  27412. - aix3* | aix4* | aix5*)
  27413. - # On AIX/PPC, the GNU linker is very broken
  27414. - if test "$host_cpu" != ia64; then
  27415. - ld_shlibs=no
  27416. - cat <<EOF 1>&2
  27417. +# Set options
  27418. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  27419. -*** to be unable to reliably create shared libraries on AIX.
  27420. -*** Therefore, libtool is disabling shared libraries support. If you
  27421. -*** really care for shared libraries, you may want to modify your PATH
  27422. -*** so that a non-GNU linker is found, and then restart.
  27423. -EOF
  27424. - fi
  27425. - ;;
  27426. - amigaos*)
  27427. - 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)'
  27428. - hardcode_libdir_flag_spec='-L$libdir'
  27429. - hardcode_minus_L=yes
  27430. + enable_dlopen=no
  27431. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  27432. - # that the semantics of dynamic libraries on AmigaOS, at least up
  27433. - # to version 4, is to share data among multiple programs linked
  27434. - # with the same dynamic library. Since this doesn't match the
  27435. - # behavior of shared libraries on other platforms, we can't use
  27436. - # them.
  27437. - ld_shlibs=no
  27438. - ;;
  27439. - beos*)
  27440. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27441. - allow_undefined_flag=unsupported
  27442. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27443. - # support --undefined. This deserves some investigation. FIXME
  27444. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27445. - else
  27446. - ld_shlibs=no
  27447. - fi
  27448. - ;;
  27449. - cygwin* | mingw* | pw32*)
  27450. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  27451. - # as there is no search path for DLLs.
  27452. - hardcode_libdir_flag_spec='-L$libdir'
  27453. - allow_undefined_flag=unsupported
  27454. - always_export_symbols=no
  27455. - enable_shared_with_static_runtimes=yes
  27456. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  27457. -
  27458. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27459. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27460. - # If the export-symbols file already is a .def file (1st line
  27461. - # is EXPORTS), use it as is; otherwise, prepend...
  27462. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27463. - cp $export_symbols $output_objdir/$soname.def;
  27464. - else
  27465. - echo EXPORTS > $output_objdir/$soname.def;
  27466. - cat $export_symbols >> $output_objdir/$soname.def;
  27467. - fi~
  27468. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27469. - else
  27470. - ld_shlibs=no
  27471. - fi
  27472. + # Check whether --enable-shared was given.
  27473. +if test "${enable_shared+set}" = set; then :
  27474. + enableval=$enable_shared; p=${PACKAGE-default}
  27475. + case $enableval in
  27476. + yes) enable_shared=yes ;;
  27477. + no) enable_shared=no ;;
  27478. + *)
  27479. + enable_shared=no
  27480. + # Look at the argument we got. We use all the common list separators.
  27481. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27482. + for pkg in $enableval; do
  27483. + IFS="$lt_save_ifs"
  27484. + if test "X$pkg" = "X$p"; then
  27485. + enable_shared=yes
  27486. + fi
  27487. + done
  27488. + IFS="$lt_save_ifs"
  27489. ;;
  27490. + esac
  27491. +else
  27492. + enable_shared=yes
  27493. +fi
  27494. +
  27495. - netbsd*)
  27496. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27497. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  27498. - wlarc=
  27499. - else
  27500. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27501. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27502. - fi
  27503. - ;;
  27504. - solaris* | sysv5*)
  27505. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  27506. - ld_shlibs=no
  27507. - cat <<EOF 1>&2
  27508. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  27509. -*** create shared libraries on Solaris systems. Therefore, libtool
  27510. -*** is disabling shared libraries support. We urge you to upgrade GNU
  27511. -*** binutils to release 2.9.1 or newer. Another option is to modify
  27512. -*** your PATH or compiler configuration so that the native linker is
  27513. -*** used, and then restart.
  27514. -EOF
  27515. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27516. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27517. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27518. - else
  27519. - ld_shlibs=no
  27520. - fi
  27521. - ;;
  27522. - sunos4*)
  27523. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27524. - wlarc=
  27525. - hardcode_direct=yes
  27526. - hardcode_shlibpath_var=no
  27527. - ;;
  27528. - linux*)
  27529. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27530. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27531. - archive_cmds="$tmp_archive_cmds"
  27532. - supports_anon_versioning=no
  27533. - case `$LD -v 2>/dev/null` in
  27534. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  27535. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27536. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27537. - *\ 2.11.*) ;; # other 2.11 versions
  27538. - *) supports_anon_versioning=yes ;;
  27539. - esac
  27540. - if test $supports_anon_versioning = yes; then
  27541. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  27542. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27543. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  27544. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  27545. - else
  27546. - archive_expsym_cmds="$tmp_archive_cmds"
  27547. - fi
  27548. - else
  27549. - ld_shlibs=no
  27550. - fi
  27551. - ;;
  27552. +
  27553. + # Check whether --enable-static was given.
  27554. +if test "${enable_static+set}" = set; then :
  27555. + enableval=$enable_static; p=${PACKAGE-default}
  27556. + case $enableval in
  27557. + yes) enable_static=yes ;;
  27558. + no) enable_static=no ;;
  27559. *)
  27560. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27561. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27562. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27563. - else
  27564. - ld_shlibs=no
  27565. - fi
  27566. + enable_static=no
  27567. + # Look at the argument we got. We use all the common list separators.
  27568. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27569. + for pkg in $enableval; do
  27570. + IFS="$lt_save_ifs"
  27571. + if test "X$pkg" = "X$p"; then
  27572. + enable_static=yes
  27573. + fi
  27574. + done
  27575. + IFS="$lt_save_ifs"
  27576. ;;
  27577. esac
  27578. +else
  27579. + enable_static=yes
  27580. +fi
  27581. - if test "$ld_shlibs" = yes; then
  27582. - runpath_var=LD_RUN_PATH
  27583. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  27584. - export_dynamic_flag_spec='${wl}--export-dynamic'
  27585. - # ancient GNU ld didn't support --whole-archive et. al.
  27586. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  27587. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27588. - else
  27589. - whole_archive_flag_spec=
  27590. - fi
  27591. - fi
  27592. - else
  27593. - # PORTME fill in a description of your system's linker (not GNU ld)
  27594. - case $host_os in
  27595. - aix3*)
  27596. - allow_undefined_flag=unsupported
  27597. - always_export_symbols=yes
  27598. - 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'
  27599. - # Note: this linker hardcodes the directories in LIBPATH if there
  27600. - # are no directories specified by -L.
  27601. - hardcode_minus_L=yes
  27602. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  27603. - # Neither direct hardcoding nor static linking is supported with a
  27604. - # broken collect2.
  27605. - hardcode_direct=unsupported
  27606. - fi
  27607. - ;;
  27608. -
  27609. - aix4* | aix5*)
  27610. - if test "$host_cpu" = ia64; then
  27611. - # On IA64, the linker does run time linking by default, so we don't
  27612. - # have to do anything special.
  27613. - aix_use_runtimelinking=no
  27614. - exp_sym_flag='-Bexport'
  27615. - no_entry_flag=""
  27616. - else
  27617. - # If we're using GNU nm, then we don't want the "-C" option.
  27618. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  27619. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  27620. - 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'
  27621. - else
  27622. - 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'
  27623. - fi
  27624. - aix_use_runtimelinking=no
  27625. - # Test if we are trying to use run time linking or normal
  27626. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27627. - # need to do runtime linking.
  27628. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  27629. - for ld_flag in $LDFLAGS; do
  27630. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  27631. - aix_use_runtimelinking=yes
  27632. - break
  27633. - fi
  27634. - done
  27635. - esac
  27636. - exp_sym_flag='-bexport'
  27637. - no_entry_flag='-bnoentry'
  27638. - fi
  27639. - # When large executables or shared objects are built, AIX ld can
  27640. - # have problems creating the table of contents. If linking a library
  27641. - # or program results in "error TOC overflow" add -mminimal-toc to
  27642. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27643. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27644. - archive_cmds=''
  27645. - hardcode_direct=yes
  27646. - hardcode_libdir_separator=':'
  27647. - link_all_deplibs=yes
  27648. - if test "$GCC" = yes; then
  27649. - case $host_os in aix4.012|aix4.012.*)
  27650. - # We only want to do this on AIX 4.2 and lower, the check
  27651. - # below for broken collect2 doesn't work under 4.3+
  27652. - collect2name=`${CC} -print-prog-name=collect2`
  27653. - if test -f "$collect2name" && \
  27654. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27655. - then
  27656. - # We have reworked collect2
  27657. - hardcode_direct=yes
  27658. - else
  27659. - # We have old collect2
  27660. - hardcode_direct=unsupported
  27661. - # It fails to find uninstalled libraries when the uninstalled
  27662. - # path is not listed in the libpath. Setting hardcode_minus_L
  27663. - # to unsupported forces relinking
  27664. - hardcode_minus_L=yes
  27665. - hardcode_libdir_flag_spec='-L$libdir'
  27666. - hardcode_libdir_separator=
  27667. - fi
  27668. - esac
  27669. - shared_flag='-shared'
  27670. - else
  27671. - # not using gcc
  27672. - if test "$host_cpu" = ia64; then
  27673. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27674. - # chokes on -Wl,-G. The following line is correct:
  27675. - shared_flag='-G'
  27676. - else
  27677. - if test "$aix_use_runtimelinking" = yes; then
  27678. - shared_flag='${wl}-G'
  27679. - else
  27680. - shared_flag='${wl}-bM:SRE'
  27681. - fi
  27682. - fi
  27683. - fi
  27684. - # It seems that -bexpall does not export symbols beginning with
  27685. - # underscore (_), so it is better to generate a list of symbols to export.
  27686. - always_export_symbols=yes
  27687. - if test "$aix_use_runtimelinking" = yes; then
  27688. - # Warning - without using the other runtime loading flags (-brtl),
  27689. - # -berok will link without error, but may produce a broken library.
  27690. - allow_undefined_flag='-berok'
  27691. - # Determine the default libpath from the value encoded in an empty executable.
  27692. - cat >conftest.$ac_ext <<_ACEOF
  27693. -/* confdefs.h. */
  27694. -_ACEOF
  27695. -cat confdefs.h >>conftest.$ac_ext
  27696. -cat >>conftest.$ac_ext <<_ACEOF
  27697. -/* end confdefs.h. */
  27698. -int
  27699. -main ()
  27700. -{
  27701. - ;
  27702. - return 0;
  27703. -}
  27704. -_ACEOF
  27705. -rm -f conftest.$ac_objext conftest$ac_exeext
  27706. -if { (ac_try="$ac_link"
  27707. -case "(($ac_try" in
  27708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27709. - *) ac_try_echo=$ac_try;;
  27710. -esac
  27711. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27712. - (eval "$ac_link") 2>conftest.er1
  27713. - ac_status=$?
  27714. - grep -v '^ *+' conftest.er1 >conftest.err
  27715. - rm -f conftest.er1
  27716. - cat conftest.err >&5
  27717. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27718. - (exit $ac_status); } &&
  27719. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27720. - { (case "(($ac_try" in
  27721. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27722. - *) ac_try_echo=$ac_try;;
  27723. -esac
  27724. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27725. - (eval "$ac_try") 2>&5
  27726. - ac_status=$?
  27727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27728. - (exit $ac_status); }; } &&
  27729. - { ac_try='test -s conftest$ac_exeext'
  27730. - { (case "(($ac_try" in
  27731. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27732. - *) ac_try_echo=$ac_try;;
  27733. -esac
  27734. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27735. - (eval "$ac_try") 2>&5
  27736. - ac_status=$?
  27737. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27738. - (exit $ac_status); }; }; then
  27739. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27740. -}'`
  27741. -# Check for a 64-bit object if we didn't find anything.
  27742. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27743. -}'`; fi
  27744. +# Check whether --with-pic was given.
  27745. +if test "${with_pic+set}" = set; then :
  27746. + withval=$with_pic; pic_mode="$withval"
  27747. else
  27748. - echo "$as_me: failed program was:" >&5
  27749. -sed 's/^/| /' conftest.$ac_ext >&5
  27750. -
  27751. -
  27752. + pic_mode=default
  27753. fi
  27754. -rm -f core conftest.err conftest.$ac_objext \
  27755. - conftest$ac_exeext conftest.$ac_ext
  27756. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27757. -
  27758. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27759. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  27760. - else
  27761. - if test "$host_cpu" = ia64; then
  27762. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  27763. - allow_undefined_flag="-z nodefs"
  27764. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  27765. - else
  27766. - # Determine the default libpath from the value encoded in an empty executable.
  27767. - cat >conftest.$ac_ext <<_ACEOF
  27768. -/* confdefs.h. */
  27769. -_ACEOF
  27770. -cat confdefs.h >>conftest.$ac_ext
  27771. -cat >>conftest.$ac_ext <<_ACEOF
  27772. -/* end confdefs.h. */
  27773. -int
  27774. -main ()
  27775. -{
  27776. +test -z "$pic_mode" && pic_mode=default
  27777. - ;
  27778. - return 0;
  27779. -}
  27780. -_ACEOF
  27781. -rm -f conftest.$ac_objext conftest$ac_exeext
  27782. -if { (ac_try="$ac_link"
  27783. -case "(($ac_try" in
  27784. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27785. - *) ac_try_echo=$ac_try;;
  27786. -esac
  27787. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27788. - (eval "$ac_link") 2>conftest.er1
  27789. - ac_status=$?
  27790. - grep -v '^ *+' conftest.er1 >conftest.err
  27791. - rm -f conftest.er1
  27792. - cat conftest.err >&5
  27793. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27794. - (exit $ac_status); } &&
  27795. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27796. - { (case "(($ac_try" in
  27797. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27798. - *) ac_try_echo=$ac_try;;
  27799. -esac
  27800. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27801. - (eval "$ac_try") 2>&5
  27802. - ac_status=$?
  27803. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27804. - (exit $ac_status); }; } &&
  27805. - { ac_try='test -s conftest$ac_exeext'
  27806. - { (case "(($ac_try" in
  27807. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27808. - *) ac_try_echo=$ac_try;;
  27809. -esac
  27810. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27811. - (eval "$ac_try") 2>&5
  27812. - ac_status=$?
  27813. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27814. - (exit $ac_status); }; }; then
  27815. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27816. -}'`
  27817. -# Check for a 64-bit object if we didn't find anything.
  27818. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27819. -}'`; fi
  27820. -else
  27821. - echo "$as_me: failed program was:" >&5
  27822. -sed 's/^/| /' conftest.$ac_ext >&5
  27823. -fi
  27824. -rm -f core conftest.err conftest.$ac_objext \
  27825. - conftest$ac_exeext conftest.$ac_ext
  27826. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27827. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27828. - # Warning - without using the other run time loading flags,
  27829. - # -berok will link without error, but may produce a broken library.
  27830. - no_undefined_flag=' ${wl}-bernotok'
  27831. - allow_undefined_flag=' ${wl}-berok'
  27832. - # -bexpall does not export symbols beginning with underscore (_)
  27833. - always_export_symbols=yes
  27834. - # Exported symbols can be pulled into shared objects from archives
  27835. - whole_archive_flag_spec=' '
  27836. - archive_cmds_need_lc=yes
  27837. - # This is similar to how AIX traditionally builds it's shared libraries.
  27838. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  27839. - fi
  27840. - fi
  27841. - ;;
  27842. - amigaos*)
  27843. - 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)'
  27844. - hardcode_libdir_flag_spec='-L$libdir'
  27845. - hardcode_minus_L=yes
  27846. - # see comment about different semantics on the GNU ld section
  27847. - ld_shlibs=no
  27848. + # Check whether --enable-fast-install was given.
  27849. +if test "${enable_fast_install+set}" = set; then :
  27850. + enableval=$enable_fast_install; p=${PACKAGE-default}
  27851. + case $enableval in
  27852. + yes) enable_fast_install=yes ;;
  27853. + no) enable_fast_install=no ;;
  27854. + *)
  27855. + enable_fast_install=no
  27856. + # Look at the argument we got. We use all the common list separators.
  27857. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27858. + for pkg in $enableval; do
  27859. + IFS="$lt_save_ifs"
  27860. + if test "X$pkg" = "X$p"; then
  27861. + enable_fast_install=yes
  27862. + fi
  27863. + done
  27864. + IFS="$lt_save_ifs"
  27865. ;;
  27866. + esac
  27867. +else
  27868. + enable_fast_install=yes
  27869. +fi
  27870. - bsdi[45]*)
  27871. - export_dynamic_flag_spec=-rdynamic
  27872. - ;;
  27873. - cygwin* | mingw* | pw32*)
  27874. - # When not using gcc, we currently assume that we are using
  27875. - # Microsoft Visual C++.
  27876. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  27877. - # no search path for DLLs.
  27878. - hardcode_libdir_flag_spec=' '
  27879. - allow_undefined_flag=unsupported
  27880. - # Tell ltmain to make .lib files, not .a files.
  27881. - libext=lib
  27882. - # Tell ltmain to make .dll files, not .so files.
  27883. - shrext_cmds=".dll"
  27884. - # FIXME: Setting linknames here is a bad hack.
  27885. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27886. - # The linker will automatically build a .lib file if we build a DLL.
  27887. - old_archive_From_new_cmds='true'
  27888. - # FIXME: Should let the user specify the lib program.
  27889. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  27890. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  27891. - enable_shared_with_static_runtimes=yes
  27892. - ;;
  27893. - darwin* | rhapsody*)
  27894. - case "$host_os" in
  27895. - rhapsody* | darwin1.[012])
  27896. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  27897. - ;;
  27898. - *) # Darwin 1.3 on
  27899. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  27900. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27901. - else
  27902. - case ${MACOSX_DEPLOYMENT_TARGET} in
  27903. - 10.[012])
  27904. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27905. - ;;
  27906. - 10.*)
  27907. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  27908. - ;;
  27909. - esac
  27910. - fi
  27911. - ;;
  27912. - esac
  27913. - archive_cmds_need_lc=no
  27914. - hardcode_direct=no
  27915. - hardcode_automatic=yes
  27916. - hardcode_shlibpath_var=unsupported
  27917. - whole_archive_flag_spec=''
  27918. - link_all_deplibs=yes
  27919. - if test "$GCC" = yes ; then
  27920. - output_verbose_link_cmd='echo'
  27921. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  27922. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27923. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  27924. - 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}'
  27925. - 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}'
  27926. - else
  27927. - case "$cc_basename" in
  27928. - xlc*)
  27929. - output_verbose_link_cmd='echo'
  27930. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  27931. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27932. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  27933. - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27934. - 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}'
  27935. - ;;
  27936. - *)
  27937. - ld_shlibs=no
  27938. - ;;
  27939. - esac
  27940. - fi
  27941. - ;;
  27942. - dgux*)
  27943. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27944. - hardcode_libdir_flag_spec='-L$libdir'
  27945. - hardcode_shlibpath_var=no
  27946. - ;;
  27947. - freebsd1*)
  27948. - ld_shlibs=no
  27949. - ;;
  27950. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  27951. - # support. Future versions do this automatically, but an explicit c++rt0.o
  27952. - # does not break anything, and helps significantly (at the cost of a little
  27953. - # extra space).
  27954. - freebsd2.2*)
  27955. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  27956. - hardcode_libdir_flag_spec='-R$libdir'
  27957. - hardcode_direct=yes
  27958. - hardcode_shlibpath_var=no
  27959. - ;;
  27960. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  27961. - freebsd2*)
  27962. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27963. - hardcode_direct=yes
  27964. - hardcode_minus_L=yes
  27965. - hardcode_shlibpath_var=no
  27966. - ;;
  27967. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  27968. - freebsd* | kfreebsd*-gnu)
  27969. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  27970. - hardcode_libdir_flag_spec='-R$libdir'
  27971. - hardcode_direct=yes
  27972. - hardcode_shlibpath_var=no
  27973. - ;;
  27974. - hpux9*)
  27975. - if test "$GCC" = yes; then
  27976. - 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'
  27977. - else
  27978. - 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'
  27979. - fi
  27980. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27981. - hardcode_libdir_separator=:
  27982. - hardcode_direct=yes
  27983. - # hardcode_minus_L: Not really in the search PATH,
  27984. - # but as the default location of the library.
  27985. - hardcode_minus_L=yes
  27986. - export_dynamic_flag_spec='${wl}-E'
  27987. - ;;
  27988. - hpux10* | hpux11*)
  27989. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27990. - case "$host_cpu" in
  27991. - hppa*64*|ia64*)
  27992. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27993. - ;;
  27994. - *)
  27995. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27996. - ;;
  27997. - esac
  27998. - else
  27999. - case "$host_cpu" in
  28000. - hppa*64*|ia64*)
  28001. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  28002. - ;;
  28003. - *)
  28004. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28005. - ;;
  28006. - esac
  28007. - fi
  28008. - if test "$with_gnu_ld" = no; then
  28009. - case "$host_cpu" in
  28010. - hppa*64*)
  28011. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28012. - hardcode_libdir_flag_spec_ld='+b $libdir'
  28013. - hardcode_libdir_separator=:
  28014. - hardcode_direct=no
  28015. - hardcode_shlibpath_var=no
  28016. - ;;
  28017. - ia64*)
  28018. - hardcode_libdir_flag_spec='-L$libdir'
  28019. - hardcode_direct=no
  28020. - hardcode_shlibpath_var=no
  28021. +# This can be used to rebuild libtool when needed
  28022. +LIBTOOL_DEPS="$ltmain"
  28023. - # hardcode_minus_L: Not really in the search PATH,
  28024. - # but as the default location of the library.
  28025. - hardcode_minus_L=yes
  28026. - ;;
  28027. - *)
  28028. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28029. - hardcode_libdir_separator=:
  28030. - hardcode_direct=yes
  28031. - export_dynamic_flag_spec='${wl}-E'
  28032. +# Always use our own libtool.
  28033. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  28034. - # hardcode_minus_L: Not really in the search PATH,
  28035. - # but as the default location of the library.
  28036. - hardcode_minus_L=yes
  28037. - ;;
  28038. - esac
  28039. - fi
  28040. - ;;
  28041. - irix5* | irix6* | nonstopux*)
  28042. - if test "$GCC" = yes; then
  28043. - 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'
  28044. - else
  28045. - 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'
  28046. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  28047. - fi
  28048. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28049. - hardcode_libdir_separator=:
  28050. - link_all_deplibs=yes
  28051. - ;;
  28052. - netbsd*)
  28053. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28054. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  28055. - else
  28056. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  28057. - fi
  28058. - hardcode_libdir_flag_spec='-R$libdir'
  28059. - hardcode_direct=yes
  28060. - hardcode_shlibpath_var=no
  28061. - ;;
  28062. - newsos6)
  28063. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28064. - hardcode_direct=yes
  28065. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28066. - hardcode_libdir_separator=:
  28067. - hardcode_shlibpath_var=no
  28068. - ;;
  28069. - openbsd*)
  28070. - hardcode_direct=yes
  28071. - hardcode_shlibpath_var=no
  28072. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28073. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28074. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  28075. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28076. - export_dynamic_flag_spec='${wl}-E'
  28077. - else
  28078. - case $host_os in
  28079. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  28080. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28081. - hardcode_libdir_flag_spec='-R$libdir'
  28082. - ;;
  28083. - *)
  28084. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28085. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28086. - ;;
  28087. - esac
  28088. - fi
  28089. - ;;
  28090. - os2*)
  28091. - hardcode_libdir_flag_spec='-L$libdir'
  28092. - hardcode_minus_L=yes
  28093. - allow_undefined_flag=unsupported
  28094. - 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'
  28095. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28096. - ;;
  28097. - osf3*)
  28098. - if test "$GCC" = yes; then
  28099. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  28100. - 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'
  28101. - else
  28102. - allow_undefined_flag=' -expect_unresolved \*'
  28103. - 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'
  28104. - fi
  28105. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28106. - hardcode_libdir_separator=:
  28107. - ;;
  28108. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  28109. - if test "$GCC" = yes; then
  28110. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  28111. - 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'
  28112. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28113. - else
  28114. - allow_undefined_flag=' -expect_unresolved \*'
  28115. - 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'
  28116. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  28117. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  28118. - # Both c and cxx compiler support -rpath directly
  28119. - hardcode_libdir_flag_spec='-rpath $libdir'
  28120. - fi
  28121. - hardcode_libdir_separator=:
  28122. - ;;
  28123. - sco3.2v5*)
  28124. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28125. - hardcode_shlibpath_var=no
  28126. - export_dynamic_flag_spec='${wl}-Bexport'
  28127. - runpath_var=LD_RUN_PATH
  28128. - hardcode_runpath_var=yes
  28129. - ;;
  28130. - solaris*)
  28131. - no_undefined_flag=' -z text'
  28132. - if test "$GCC" = yes; then
  28133. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28134. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28135. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  28136. - else
  28137. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28138. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28139. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28140. - fi
  28141. - hardcode_libdir_flag_spec='-R$libdir'
  28142. - hardcode_shlibpath_var=no
  28143. - case $host_os in
  28144. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28145. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  28146. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  28147. - esac
  28148. - link_all_deplibs=yes
  28149. - ;;
  28150. - sunos4*)
  28151. - if test "x$host_vendor" = xsequent; then
  28152. - # Use $CC to link under sequent, because it throws in some extra .o
  28153. - # files that make .init and .fini sections work.
  28154. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  28155. - else
  28156. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  28157. - fi
  28158. - hardcode_libdir_flag_spec='-L$libdir'
  28159. - hardcode_direct=yes
  28160. - hardcode_minus_L=yes
  28161. - hardcode_shlibpath_var=no
  28162. - ;;
  28163. - sysv4)
  28164. - case $host_vendor in
  28165. - sni)
  28166. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28167. - hardcode_direct=yes # is this really true???
  28168. - ;;
  28169. - siemens)
  28170. - ## LD is ld it makes a PLAMLIB
  28171. - ## CC just makes a GrossModule.
  28172. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28173. - reload_cmds='$CC -r -o $output$reload_objs'
  28174. - hardcode_direct=no
  28175. - ;;
  28176. - motorola)
  28177. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28178. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  28179. - ;;
  28180. - esac
  28181. - runpath_var='LD_RUN_PATH'
  28182. - hardcode_shlibpath_var=no
  28183. - ;;
  28184. - sysv4.3*)
  28185. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28186. - hardcode_shlibpath_var=no
  28187. - export_dynamic_flag_spec='-Bexport'
  28188. - ;;
  28189. - sysv4*MP*)
  28190. - if test -d /usr/nec; then
  28191. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28192. - hardcode_shlibpath_var=no
  28193. - runpath_var=LD_RUN_PATH
  28194. - hardcode_runpath_var=yes
  28195. - ld_shlibs=yes
  28196. - fi
  28197. - ;;
  28198. - sysv4.2uw2*)
  28199. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28200. - hardcode_direct=yes
  28201. - hardcode_minus_L=no
  28202. - hardcode_shlibpath_var=no
  28203. - hardcode_runpath_var=yes
  28204. - runpath_var=LD_RUN_PATH
  28205. - ;;
  28206. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  28207. - no_undefined_flag='${wl}-z ${wl}text'
  28208. - if test "$GCC" = yes; then
  28209. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28210. - else
  28211. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28212. - fi
  28213. - runpath_var='LD_RUN_PATH'
  28214. - hardcode_shlibpath_var=no
  28215. - ;;
  28216. - sysv5*)
  28217. - no_undefined_flag=' -z text'
  28218. - # $CC -shared without GNU ld will not create a library from C++
  28219. - # object files and a static libstdc++, better avoid it by now
  28220. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28221. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28222. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28223. - hardcode_libdir_flag_spec=
  28224. - hardcode_shlibpath_var=no
  28225. - runpath_var='LD_RUN_PATH'
  28226. - ;;
  28227. - uts4*)
  28228. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28229. - hardcode_libdir_flag_spec='-L$libdir'
  28230. - hardcode_shlibpath_var=no
  28231. - ;;
  28232. - *)
  28233. - ld_shlibs=no
  28234. - ;;
  28235. - esac
  28236. - fi
  28237. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  28238. -echo "${ECHO_T}$ld_shlibs" >&6; }
  28239. -test "$ld_shlibs" = no && can_build_shared=no
  28240. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28241. -if test "$GCC" = yes; then
  28242. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28243. -fi
  28244. -#
  28245. -# Do we need to explicitly link libc?
  28246. -#
  28247. -case "x$archive_cmds_need_lc" in
  28248. -x|xyes)
  28249. - # Assume -lc should be added
  28250. - archive_cmds_need_lc=yes
  28251. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28252. - case $archive_cmds in
  28253. - *'~'*)
  28254. - # FIXME: we may have to deal with multi-command sequences.
  28255. - ;;
  28256. - '$CC '*)
  28257. - # Test whether the compiler implicitly links with -lc since on some
  28258. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28259. - # to ld, don't add -lc before -lgcc.
  28260. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28261. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  28262. - $rm conftest*
  28263. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28264. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28265. - (eval $ac_compile) 2>&5
  28266. - ac_status=$?
  28267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28268. - (exit $ac_status); } 2>conftest.err; then
  28269. - soname=conftest
  28270. - lib=conftest
  28271. - libobjs=conftest.$ac_objext
  28272. - deplibs=
  28273. - wl=$lt_prog_compiler_wl
  28274. - compiler_flags=-v
  28275. - linker_flags=-v
  28276. - verstring=
  28277. - output_objdir=.
  28278. - libname=conftest
  28279. - lt_save_allow_undefined_flag=$allow_undefined_flag
  28280. - allow_undefined_flag=
  28281. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28282. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28283. - ac_status=$?
  28284. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28285. - (exit $ac_status); }
  28286. - then
  28287. - archive_cmds_need_lc=no
  28288. - else
  28289. - archive_cmds_need_lc=yes
  28290. - fi
  28291. - allow_undefined_flag=$lt_save_allow_undefined_flag
  28292. - else
  28293. - cat conftest.err 1>&5
  28294. - fi
  28295. - $rm conftest*
  28296. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  28297. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  28298. - ;;
  28299. - esac
  28300. - fi
  28301. - ;;
  28302. -esac
  28303. +test -z "$LN_S" && LN_S="ln -s"
  28304. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28305. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  28306. -library_names_spec=
  28307. -libname_spec='lib$name'
  28308. -soname_spec=
  28309. -shrext_cmds=".so"
  28310. -postinstall_cmds=
  28311. -postuninstall_cmds=
  28312. -finish_cmds=
  28313. -finish_eval=
  28314. -shlibpath_var=
  28315. -shlibpath_overrides_runpath=unknown
  28316. -version_type=none
  28317. -dynamic_linker="$host_os ld.so"
  28318. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28319. -if test "$GCC" = yes; then
  28320. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28321. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  28322. - # if the path contains ";" then we assume it to be the separator
  28323. - # otherwise default to the standard path separator (i.e. ":") - it is
  28324. - # assumed that no part of a normal pathname contains ";" but that should
  28325. - # okay in the real world where ";" in dirpaths is itself problematic.
  28326. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28327. - else
  28328. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28329. - fi
  28330. -else
  28331. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28332. -fi
  28333. -need_lib_prefix=unknown
  28334. -hardcode_into_libs=no
  28335. -# when you set need_version to no, make sure it does not cause -set_version
  28336. -# flags to be left without arguments
  28337. -need_version=unknown
  28338. -case $host_os in
  28339. -aix3*)
  28340. - version_type=linux
  28341. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28342. - shlibpath_var=LIBPATH
  28343. - # AIX 3 has no versioning support, so we append a major version to the name.
  28344. - soname_spec='${libname}${release}${shared_ext}$major'
  28345. - ;;
  28346. -aix4* | aix5*)
  28347. - version_type=linux
  28348. - need_lib_prefix=no
  28349. - need_version=no
  28350. - hardcode_into_libs=yes
  28351. - if test "$host_cpu" = ia64; then
  28352. - # AIX 5 supports IA64
  28353. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28354. - shlibpath_var=LD_LIBRARY_PATH
  28355. - else
  28356. - # With GCC up to 2.95.x, collect2 would create an import file
  28357. - # for dependence libraries. The import file would start with
  28358. - # the line `#! .'. This would cause the generated library to
  28359. - # depend on `.', always an invalid library. This was fixed in
  28360. - # development snapshots of GCC prior to 3.0.
  28361. - case $host_os in
  28362. - aix4 | aix4.[01] | aix4.[01].*)
  28363. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28364. - echo ' yes '
  28365. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28366. - :
  28367. - else
  28368. - can_build_shared=no
  28369. - fi
  28370. - ;;
  28371. - esac
  28372. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28373. - # soname into executable. Probably we can add versioning support to
  28374. - # collect2, so additional links can be useful in future.
  28375. - if test "$aix_use_runtimelinking" = yes; then
  28376. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28377. - # instead of lib<name>.a to let people know that these are not
  28378. - # typical AIX shared libraries.
  28379. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28380. - else
  28381. - # We preserve .a as extension for shared libraries through AIX4.2
  28382. - # and later when we are not doing run time linking.
  28383. - library_names_spec='${libname}${release}.a $libname.a'
  28384. - soname_spec='${libname}${release}${shared_ext}$major'
  28385. - fi
  28386. - shlibpath_var=LIBPATH
  28387. - fi
  28388. - ;;
  28389. -amigaos*)
  28390. - library_names_spec='$libname.ixlibrary $libname.a'
  28391. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28392. - 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'
  28393. - ;;
  28394. -beos*)
  28395. - library_names_spec='${libname}${shared_ext}'
  28396. - dynamic_linker="$host_os ld.so"
  28397. - shlibpath_var=LIBRARY_PATH
  28398. - ;;
  28399. -bsdi[45]*)
  28400. - version_type=linux
  28401. - need_version=no
  28402. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28403. - soname_spec='${libname}${release}${shared_ext}$major'
  28404. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28405. - shlibpath_var=LD_LIBRARY_PATH
  28406. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28407. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28408. - # the default ld.so.conf also contains /usr/contrib/lib and
  28409. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28410. - # libtool to hard-code these into programs
  28411. - ;;
  28412. -cygwin* | mingw* | pw32*)
  28413. - version_type=windows
  28414. - shrext_cmds=".dll"
  28415. - need_version=no
  28416. - need_lib_prefix=no
  28417. - case $GCC,$host_os in
  28418. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28419. - library_names_spec='$libname.dll.a'
  28420. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28421. - postinstall_cmds='base_file=`basename \${file}`~
  28422. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28423. - dldir=$destdir/`dirname \$dlpath`~
  28424. - test -d \$dldir || mkdir -p \$dldir~
  28425. - $install_prog $dir/$dlname \$dldir/$dlname'
  28426. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28427. - dlpath=$dir/\$dldll~
  28428. - $rm \$dlpath'
  28429. - shlibpath_overrides_runpath=yes
  28430. - case $host_os in
  28431. - cygwin*)
  28432. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28433. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28434. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28435. - ;;
  28436. - mingw*)
  28437. - # MinGW DLLs use traditional 'lib' prefix
  28438. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28439. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28440. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28441. - # It is most probably a Windows format PATH printed by
  28442. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28443. - # path with ; separators, and with drive letters. We can handle the
  28444. - # drive letters (cygwin fileutils understands them), so leave them,
  28445. - # especially as we might pass files found there to a mingw objdump,
  28446. - # which wouldn't understand a cygwinified path. Ahh.
  28447. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28448. - else
  28449. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28450. - fi
  28451. - ;;
  28452. - pw32*)
  28453. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  28454. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  28455. - ;;
  28456. - esac
  28457. - ;;
  28458. - *)
  28459. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  28460. - ;;
  28461. - esac
  28462. - dynamic_linker='Win32 ld.exe'
  28463. - # FIXME: first we should search . and the directory the executable is in
  28464. - shlibpath_var=PATH
  28465. - ;;
  28466. -darwin* | rhapsody*)
  28467. - dynamic_linker="$host_os dyld"
  28468. - version_type=darwin
  28469. - need_lib_prefix=no
  28470. - need_version=no
  28471. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28472. - soname_spec='${libname}${release}${major}$shared_ext'
  28473. - shlibpath_overrides_runpath=yes
  28474. - shlibpath_var=DYLD_LIBRARY_PATH
  28475. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  28476. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  28477. - if test "$GCC" = yes; then
  28478. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  28479. - else
  28480. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  28481. - fi
  28482. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28483. - ;;
  28484. -dgux*)
  28485. - version_type=linux
  28486. - need_lib_prefix=no
  28487. - need_version=no
  28488. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  28489. - soname_spec='${libname}${release}${shared_ext}$major'
  28490. - shlibpath_var=LD_LIBRARY_PATH
  28491. - ;;
  28492. +if test -n "${ZSH_VERSION+set}" ; then
  28493. + setopt NO_GLOB_SUBST
  28494. +fi
  28495. -freebsd1*)
  28496. - dynamic_linker=no
  28497. - ;;
  28498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  28499. +$as_echo_n "checking for objdir... " >&6; }
  28500. +if test "${lt_cv_objdir+set}" = set; then :
  28501. + $as_echo_n "(cached) " >&6
  28502. +else
  28503. + rm -f .libs 2>/dev/null
  28504. +mkdir .libs 2>/dev/null
  28505. +if test -d .libs; then
  28506. + lt_cv_objdir=.libs
  28507. +else
  28508. + # MS-DOS does not allow filenames that begin with a dot.
  28509. + lt_cv_objdir=_libs
  28510. +fi
  28511. +rmdir .libs 2>/dev/null
  28512. +fi
  28513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  28514. +$as_echo "$lt_cv_objdir" >&6; }
  28515. +objdir=$lt_cv_objdir
  28516. -kfreebsd*-gnu)
  28517. - version_type=linux
  28518. - need_lib_prefix=no
  28519. - need_version=no
  28520. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28521. - soname_spec='${libname}${release}${shared_ext}$major'
  28522. - shlibpath_var=LD_LIBRARY_PATH
  28523. - shlibpath_overrides_runpath=no
  28524. - hardcode_into_libs=yes
  28525. - dynamic_linker='GNU ld.so'
  28526. - ;;
  28527. -freebsd*)
  28528. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  28529. - version_type=freebsd-$objformat
  28530. - case $version_type in
  28531. - freebsd-elf*)
  28532. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28533. - need_version=no
  28534. - need_lib_prefix=no
  28535. - ;;
  28536. - freebsd-*)
  28537. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  28538. - need_version=yes
  28539. - ;;
  28540. - esac
  28541. - shlibpath_var=LD_LIBRARY_PATH
  28542. - case $host_os in
  28543. - freebsd2*)
  28544. - shlibpath_overrides_runpath=yes
  28545. - ;;
  28546. - freebsd3.01* | freebsdelf3.01*)
  28547. - shlibpath_overrides_runpath=yes
  28548. - hardcode_into_libs=yes
  28549. - ;;
  28550. - *) # from 3.2 on
  28551. - shlibpath_overrides_runpath=no
  28552. - hardcode_into_libs=yes
  28553. - ;;
  28554. - esac
  28555. - ;;
  28556. -gnu*)
  28557. - version_type=linux
  28558. - need_lib_prefix=no
  28559. - need_version=no
  28560. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  28561. - soname_spec='${libname}${release}${shared_ext}$major'
  28562. - shlibpath_var=LD_LIBRARY_PATH
  28563. - hardcode_into_libs=yes
  28564. - ;;
  28565. -hpux9* | hpux10* | hpux11*)
  28566. - # Give a soname corresponding to the major version so that dld.sl refuses to
  28567. - # link against other versions.
  28568. - version_type=sunos
  28569. - need_lib_prefix=no
  28570. - need_version=no
  28571. - case "$host_cpu" in
  28572. - ia64*)
  28573. - shrext_cmds='.so'
  28574. - hardcode_into_libs=yes
  28575. - dynamic_linker="$host_os dld.so"
  28576. - shlibpath_var=LD_LIBRARY_PATH
  28577. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28578. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28579. - soname_spec='${libname}${release}${shared_ext}$major'
  28580. - if test "X$HPUX_IA64_MODE" = X32; then
  28581. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  28582. - else
  28583. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  28584. - fi
  28585. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28586. - ;;
  28587. - hppa*64*)
  28588. - shrext_cmds='.sl'
  28589. - hardcode_into_libs=yes
  28590. - dynamic_linker="$host_os dld.sl"
  28591. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28592. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28594. - soname_spec='${libname}${release}${shared_ext}$major'
  28595. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28596. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28597. - ;;
  28598. - *)
  28599. - shrext_cmds='.sl'
  28600. - dynamic_linker="$host_os dld.sl"
  28601. - shlibpath_var=SHLIB_PATH
  28602. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  28603. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28604. - soname_spec='${libname}${release}${shared_ext}$major'
  28605. - ;;
  28606. - esac
  28607. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  28608. - postinstall_cmds='chmod 555 $lib'
  28609. - ;;
  28610. -irix5* | irix6* | nonstopux*)
  28611. - case $host_os in
  28612. - nonstopux*) version_type=nonstopux ;;
  28613. - *)
  28614. - if test "$lt_cv_prog_gnu_ld" = yes; then
  28615. - version_type=linux
  28616. - else
  28617. - version_type=irix
  28618. - fi ;;
  28619. - esac
  28620. - need_lib_prefix=no
  28621. - need_version=no
  28622. - soname_spec='${libname}${release}${shared_ext}$major'
  28623. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  28624. - case $host_os in
  28625. - irix5* | nonstopux*)
  28626. - libsuff= shlibsuff=
  28627. - ;;
  28628. - *)
  28629. - case $LD in # libtool.m4 will add one of these switches to LD
  28630. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  28631. - libsuff= shlibsuff= libmagic=32-bit;;
  28632. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  28633. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  28634. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  28635. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  28636. - *) libsuff= shlibsuff= libmagic=never-match;;
  28637. - esac
  28638. - ;;
  28639. - esac
  28640. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  28641. - shlibpath_overrides_runpath=no
  28642. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28643. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28644. - hardcode_into_libs=yes
  28645. - ;;
  28646. +cat >>confdefs.h <<_ACEOF
  28647. +#define LT_OBJDIR "$lt_cv_objdir/"
  28648. +_ACEOF
  28649. -# No shared lib support for Linux oldld, aout, or coff.
  28650. -linux*oldld* | linux*aout* | linux*coff*)
  28651. - dynamic_linker=no
  28652. - ;;
  28653. -# This must be Linux ELF.
  28654. -linux*)
  28655. - version_type=linux
  28656. - need_lib_prefix=no
  28657. - need_version=no
  28658. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28659. - soname_spec='${libname}${release}${shared_ext}$major'
  28660. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28661. - shlibpath_var=LD_LIBRARY_PATH
  28662. - shlibpath_overrides_runpath=no
  28663. - # This implies no fast_install, which is unacceptable.
  28664. - # Some rework will be needed to allow for fast_install
  28665. - # before this can be enabled.
  28666. - hardcode_into_libs=yes
  28667. - # Append ld.so.conf contents to the search path
  28668. - if test -f /etc/ld.so.conf; then
  28669. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  28670. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  28671. - fi
  28672. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  28673. - # powerpc, because MkLinux only supported shared libraries with the
  28674. - # GNU dynamic linker. Since this was broken with cross compilers,
  28675. - # most powerpc-linux boxes support dynamic linking these days and
  28676. - # people can always --disable-shared, the test was removed, and we
  28677. - # assume the GNU/Linux dynamic linker is in use.
  28678. - dynamic_linker='GNU/Linux ld.so'
  28679. - ;;
  28680. -knetbsd*-gnu)
  28681. - version_type=linux
  28682. - need_lib_prefix=no
  28683. - need_version=no
  28684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28685. - soname_spec='${libname}${release}${shared_ext}$major'
  28686. - shlibpath_var=LD_LIBRARY_PATH
  28687. - shlibpath_overrides_runpath=no
  28688. - hardcode_into_libs=yes
  28689. - dynamic_linker='GNU ld.so'
  28690. - ;;
  28691. -netbsd*)
  28692. - version_type=sunos
  28693. - need_lib_prefix=no
  28694. - need_version=no
  28695. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28696. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28697. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28698. - dynamic_linker='NetBSD (a.out) ld.so'
  28699. - else
  28700. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28701. - soname_spec='${libname}${release}${shared_ext}$major'
  28702. - dynamic_linker='NetBSD ld.elf_so'
  28703. - fi
  28704. - shlibpath_var=LD_LIBRARY_PATH
  28705. - shlibpath_overrides_runpath=yes
  28706. - hardcode_into_libs=yes
  28707. - ;;
  28708. -newsos6)
  28709. - version_type=linux
  28710. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28711. - shlibpath_var=LD_LIBRARY_PATH
  28712. - shlibpath_overrides_runpath=yes
  28713. - ;;
  28714. -nto-qnx*)
  28715. - version_type=linux
  28716. - need_lib_prefix=no
  28717. - need_version=no
  28718. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28719. - soname_spec='${libname}${release}${shared_ext}$major'
  28720. - shlibpath_var=LD_LIBRARY_PATH
  28721. - shlibpath_overrides_runpath=yes
  28722. - ;;
  28723. -openbsd*)
  28724. - version_type=sunos
  28725. - need_lib_prefix=no
  28726. - need_version=no
  28727. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28728. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28729. - shlibpath_var=LD_LIBRARY_PATH
  28730. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28731. - case $host_os in
  28732. - openbsd2.[89] | openbsd2.[89].*)
  28733. - shlibpath_overrides_runpath=no
  28734. - ;;
  28735. - *)
  28736. - shlibpath_overrides_runpath=yes
  28737. - ;;
  28738. - esac
  28739. - else
  28740. - shlibpath_overrides_runpath=yes
  28741. - fi
  28742. - ;;
  28743. -os2*)
  28744. - libname_spec='$name'
  28745. - shrext_cmds=".dll"
  28746. - need_lib_prefix=no
  28747. - library_names_spec='$libname${shared_ext} $libname.a'
  28748. - dynamic_linker='OS/2 ld.exe'
  28749. - shlibpath_var=LIBPATH
  28750. - ;;
  28751. -osf3* | osf4* | osf5*)
  28752. - version_type=osf
  28753. - need_lib_prefix=no
  28754. - need_version=no
  28755. - soname_spec='${libname}${release}${shared_ext}$major'
  28756. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28757. - shlibpath_var=LD_LIBRARY_PATH
  28758. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  28759. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  28760. - ;;
  28761. -sco3.2v5*)
  28762. - version_type=osf
  28763. - soname_spec='${libname}${release}${shared_ext}$major'
  28764. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28765. - shlibpath_var=LD_LIBRARY_PATH
  28766. - ;;
  28767. -solaris*)
  28768. - version_type=linux
  28769. - need_lib_prefix=no
  28770. - need_version=no
  28771. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28772. - soname_spec='${libname}${release}${shared_ext}$major'
  28773. - shlibpath_var=LD_LIBRARY_PATH
  28774. - shlibpath_overrides_runpath=yes
  28775. - hardcode_into_libs=yes
  28776. - # ldd complains unless libraries are executable
  28777. - postinstall_cmds='chmod +x $lib'
  28778. - ;;
  28779. -sunos4*)
  28780. - version_type=sunos
  28781. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28782. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  28783. - shlibpath_var=LD_LIBRARY_PATH
  28784. - shlibpath_overrides_runpath=yes
  28785. - if test "$with_gnu_ld" = yes; then
  28786. - need_lib_prefix=no
  28787. +
  28788. +
  28789. +
  28790. +case $host_os in
  28791. +aix3*)
  28792. + # AIX sometimes has problems with the GCC collect2 program. For some
  28793. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  28794. + # vanish in a puff of smoke.
  28795. + if test "X${COLLECT_NAMES+set}" != Xset; then
  28796. + COLLECT_NAMES=
  28797. + export COLLECT_NAMES
  28798. fi
  28799. - need_version=yes
  28800. ;;
  28801. +esac
  28802. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  28803. - version_type=linux
  28804. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28805. - soname_spec='${libname}${release}${shared_ext}$major'
  28806. - shlibpath_var=LD_LIBRARY_PATH
  28807. - case $host_vendor in
  28808. - sni)
  28809. - shlibpath_overrides_runpath=no
  28810. - need_lib_prefix=no
  28811. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  28812. - runpath_var=LD_RUN_PATH
  28813. - ;;
  28814. - siemens)
  28815. - need_lib_prefix=no
  28816. - ;;
  28817. - motorola)
  28818. - need_lib_prefix=no
  28819. - need_version=no
  28820. - shlibpath_overrides_runpath=no
  28821. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  28822. - ;;
  28823. - esac
  28824. - ;;
  28825. +# Sed substitution that helps us do robust quoting. It backslashifies
  28826. +# metacharacters that are still active within double-quoted strings.
  28827. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  28828. -sysv4*MP*)
  28829. - if test -d /usr/nec ;then
  28830. - version_type=linux
  28831. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  28832. - soname_spec='$libname${shared_ext}.$major'
  28833. - shlibpath_var=LD_LIBRARY_PATH
  28834. - fi
  28835. - ;;
  28836. +# Same as above, but do not quote variable references.
  28837. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  28838. -uts4*)
  28839. - version_type=linux
  28840. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28841. - soname_spec='${libname}${release}${shared_ext}$major'
  28842. - shlibpath_var=LD_LIBRARY_PATH
  28843. - ;;
  28844. +# Sed substitution to delay expansion of an escaped shell variable in a
  28845. +# double_quote_subst'ed string.
  28846. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  28847. -*)
  28848. - dynamic_linker=no
  28849. - ;;
  28850. -esac
  28851. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  28852. -echo "${ECHO_T}$dynamic_linker" >&6; }
  28853. -test "$dynamic_linker" = no && can_build_shared=no
  28854. +# Sed substitution to delay expansion of an escaped single quote.
  28855. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  28856. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  28857. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  28858. -hardcode_action=
  28859. -if test -n "$hardcode_libdir_flag_spec" || \
  28860. - test -n "$runpath_var" || \
  28861. - test "X$hardcode_automatic" = "Xyes" ; then
  28862. +# Sed substitution to avoid accidental globbing in evaled expressions
  28863. +no_glob_subst='s/\*/\\\*/g'
  28864. - # We can hardcode non-existant directories.
  28865. - if test "$hardcode_direct" != no &&
  28866. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28867. - # have to relink, otherwise we might link with an installed library
  28868. - # when we should be linking with a yet-to-be-installed one
  28869. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  28870. - test "$hardcode_minus_L" != no; then
  28871. - # Linking always hardcodes the temporary library directory.
  28872. - hardcode_action=relink
  28873. - else
  28874. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28875. - hardcode_action=immediate
  28876. - fi
  28877. +# Global variables:
  28878. +ofile=libtool
  28879. +can_build_shared=yes
  28880. +
  28881. +# All known linkers require a `.a' archive for static linking (except MSVC,
  28882. +# which needs '.lib').
  28883. +libext=a
  28884. +
  28885. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  28886. +
  28887. +old_CC="$CC"
  28888. +old_CFLAGS="$CFLAGS"
  28889. +
  28890. +# Set sane defaults for various variables
  28891. +test -z "$CC" && CC=cc
  28892. +test -z "$LTCC" && LTCC=$CC
  28893. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  28894. +test -z "$LD" && LD=ld
  28895. +test -z "$ac_objext" && ac_objext=o
  28896. +
  28897. +for cc_temp in $compiler""; do
  28898. + case $cc_temp in
  28899. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28900. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28901. + \-*) ;;
  28902. + *) break;;
  28903. + esac
  28904. +done
  28905. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28906. +
  28907. +
  28908. +# Only perform the check for file, if the check method requires it
  28909. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  28910. +case $deplibs_check_method in
  28911. +file_magic*)
  28912. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  28913. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  28914. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  28915. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  28916. + $as_echo_n "(cached) " >&6
  28917. else
  28918. - # We cannot hardcode anything, or else we can only hardcode existing
  28919. - # directories.
  28920. - hardcode_action=unsupported
  28921. -fi
  28922. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  28923. -echo "${ECHO_T}$hardcode_action" >&6; }
  28924. + case $MAGIC_CMD in
  28925. +[\\/*] | ?:[\\/]*)
  28926. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  28927. + ;;
  28928. +*)
  28929. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  28930. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  28931. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  28932. + for ac_dir in $ac_dummy; do
  28933. + IFS="$lt_save_ifs"
  28934. + test -z "$ac_dir" && ac_dir=.
  28935. + if test -f $ac_dir/${ac_tool_prefix}file; then
  28936. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  28937. + if test -n "$file_magic_test_file"; then
  28938. + case $deplibs_check_method in
  28939. + "file_magic "*)
  28940. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  28941. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  28942. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  28943. + $EGREP "$file_magic_regex" > /dev/null; then
  28944. + :
  28945. + else
  28946. + cat <<_LT_EOF 1>&2
  28947. -if test "$hardcode_action" = relink; then
  28948. - # Fast installation is not supported
  28949. - enable_fast_install=no
  28950. -elif test "$shlibpath_overrides_runpath" = yes ||
  28951. - test "$enable_shared" = no; then
  28952. - # Fast installation is not necessary
  28953. - enable_fast_install=needless
  28954. +*** Warning: the command libtool uses to detect shared libraries,
  28955. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  28956. +*** The result is that libtool may fail to recognize shared libraries
  28957. +*** as such. This will affect the creation of libtool libraries that
  28958. +*** depend on shared libraries, but programs linked with such libtool
  28959. +*** libraries will work regardless of this problem. Nevertheless, you
  28960. +*** may want to report the problem to your system manager and/or to
  28961. +*** bug-libtool@gnu.org
  28962. +
  28963. +_LT_EOF
  28964. + fi ;;
  28965. + esac
  28966. + fi
  28967. + break
  28968. + fi
  28969. + done
  28970. + IFS="$lt_save_ifs"
  28971. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  28972. + ;;
  28973. +esac
  28974. fi
  28975. -striplib=
  28976. -old_striplib=
  28977. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  28978. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  28979. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  28980. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  28981. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  28982. - { echo "$as_me:$LINENO: result: yes" >&5
  28983. -echo "${ECHO_T}yes" >&6; }
  28984. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  28985. +if test -n "$MAGIC_CMD"; then
  28986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  28987. +$as_echo "$MAGIC_CMD" >&6; }
  28988. else
  28989. -# FIXME - insert some real tests, host_os isn't really good enough
  28990. - case $host_os in
  28991. - darwin*)
  28992. - if test -n "$STRIP" ; then
  28993. - striplib="$STRIP -x"
  28994. - { echo "$as_me:$LINENO: result: yes" >&5
  28995. -echo "${ECHO_T}yes" >&6; }
  28996. - else
  28997. - { echo "$as_me:$LINENO: result: no" >&5
  28998. -echo "${ECHO_T}no" >&6; }
  28999. -fi
  29000. - ;;
  29001. - *)
  29002. - { echo "$as_me:$LINENO: result: no" >&5
  29003. -echo "${ECHO_T}no" >&6; }
  29004. - ;;
  29005. - esac
  29006. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29007. +$as_echo "no" >&6; }
  29008. fi
  29009. -if test "x$enable_dlopen" != xyes; then
  29010. - enable_dlopen=unknown
  29011. - enable_dlopen_self=unknown
  29012. - enable_dlopen_self_static=unknown
  29013. -else
  29014. - lt_cv_dlopen=no
  29015. - lt_cv_dlopen_libs=
  29016. - case $host_os in
  29017. - beos*)
  29018. - lt_cv_dlopen="load_add_on"
  29019. - lt_cv_dlopen_libs=
  29020. - lt_cv_dlopen_self=yes
  29021. - ;;
  29022. - mingw* | pw32*)
  29023. - lt_cv_dlopen="LoadLibrary"
  29024. - lt_cv_dlopen_libs=
  29025. - ;;
  29026. - cygwin*)
  29027. - lt_cv_dlopen="dlopen"
  29028. - lt_cv_dlopen_libs=
  29029. - ;;
  29030. - darwin*)
  29031. - # if libdl is installed we need to link against it
  29032. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29033. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  29034. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29035. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29036. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  29037. + if test -n "$ac_tool_prefix"; then
  29038. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  29039. +$as_echo_n "checking for file... " >&6; }
  29040. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  29041. + $as_echo_n "(cached) " >&6
  29042. else
  29043. - ac_check_lib_save_LIBS=$LIBS
  29044. -LIBS="-ldl $LIBS"
  29045. -cat >conftest.$ac_ext <<_ACEOF
  29046. -/* confdefs.h. */
  29047. -_ACEOF
  29048. -cat confdefs.h >>conftest.$ac_ext
  29049. -cat >>conftest.$ac_ext <<_ACEOF
  29050. -/* end confdefs.h. */
  29051. + case $MAGIC_CMD in
  29052. +[\\/*] | ?:[\\/]*)
  29053. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  29054. + ;;
  29055. +*)
  29056. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  29057. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  29058. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  29059. + for ac_dir in $ac_dummy; do
  29060. + IFS="$lt_save_ifs"
  29061. + test -z "$ac_dir" && ac_dir=.
  29062. + if test -f $ac_dir/file; then
  29063. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  29064. + if test -n "$file_magic_test_file"; then
  29065. + case $deplibs_check_method in
  29066. + "file_magic "*)
  29067. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  29068. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  29069. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  29070. + $EGREP "$file_magic_regex" > /dev/null; then
  29071. + :
  29072. + else
  29073. + cat <<_LT_EOF 1>&2
  29074. -/* Override any GCC internal prototype to avoid an error.
  29075. - Use char because int might match the return type of a GCC
  29076. - builtin and then its argument prototype would still apply. */
  29077. -#ifdef __cplusplus
  29078. -extern "C"
  29079. -#endif
  29080. -char dlopen ();
  29081. -int
  29082. -main ()
  29083. -{
  29084. -return dlopen ();
  29085. - ;
  29086. - return 0;
  29087. -}
  29088. -_ACEOF
  29089. -rm -f conftest.$ac_objext conftest$ac_exeext
  29090. -if { (ac_try="$ac_link"
  29091. -case "(($ac_try" in
  29092. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29093. - *) ac_try_echo=$ac_try;;
  29094. -esac
  29095. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29096. - (eval "$ac_link") 2>conftest.er1
  29097. - ac_status=$?
  29098. - grep -v '^ *+' conftest.er1 >conftest.err
  29099. - rm -f conftest.er1
  29100. - cat conftest.err >&5
  29101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29102. - (exit $ac_status); } &&
  29103. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29104. - { (case "(($ac_try" in
  29105. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29106. - *) ac_try_echo=$ac_try;;
  29107. -esac
  29108. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29109. - (eval "$ac_try") 2>&5
  29110. - ac_status=$?
  29111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29112. - (exit $ac_status); }; } &&
  29113. - { ac_try='test -s conftest$ac_exeext'
  29114. - { (case "(($ac_try" in
  29115. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29116. - *) ac_try_echo=$ac_try;;
  29117. -esac
  29118. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29119. - (eval "$ac_try") 2>&5
  29120. - ac_status=$?
  29121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29122. - (exit $ac_status); }; }; then
  29123. - ac_cv_lib_dl_dlopen=yes
  29124. -else
  29125. - echo "$as_me: failed program was:" >&5
  29126. -sed 's/^/| /' conftest.$ac_ext >&5
  29127. +*** Warning: the command libtool uses to detect shared libraries,
  29128. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  29129. +*** The result is that libtool may fail to recognize shared libraries
  29130. +*** as such. This will affect the creation of libtool libraries that
  29131. +*** depend on shared libraries, but programs linked with such libtool
  29132. +*** libraries will work regardless of this problem. Nevertheless, you
  29133. +*** may want to report the problem to your system manager and/or to
  29134. +*** bug-libtool@gnu.org
  29135. - ac_cv_lib_dl_dlopen=no
  29136. +_LT_EOF
  29137. + fi ;;
  29138. + esac
  29139. + fi
  29140. + break
  29141. + fi
  29142. + done
  29143. + IFS="$lt_save_ifs"
  29144. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  29145. + ;;
  29146. +esac
  29147. fi
  29148. -rm -f core conftest.err conftest.$ac_objext \
  29149. - conftest$ac_exeext conftest.$ac_ext
  29150. -LIBS=$ac_check_lib_save_LIBS
  29151. -fi
  29152. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29153. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  29154. -if test $ac_cv_lib_dl_dlopen = yes; then
  29155. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29156. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  29157. +if test -n "$MAGIC_CMD"; then
  29158. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  29159. +$as_echo "$MAGIC_CMD" >&6; }
  29160. else
  29161. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29162. +$as_echo "no" >&6; }
  29163. +fi
  29164. - lt_cv_dlopen="dyld"
  29165. - lt_cv_dlopen_libs=
  29166. - lt_cv_dlopen_self=yes
  29167. + else
  29168. + MAGIC_CMD=:
  29169. + fi
  29170. fi
  29171. - ;;
  29172. -
  29173. - *)
  29174. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  29175. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  29176. -if test "${ac_cv_func_shl_load+set}" = set; then
  29177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29178. -else
  29179. - cat >conftest.$ac_ext <<_ACEOF
  29180. -/* confdefs.h. */
  29181. -_ACEOF
  29182. -cat confdefs.h >>conftest.$ac_ext
  29183. -cat >>conftest.$ac_ext <<_ACEOF
  29184. -/* end confdefs.h. */
  29185. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  29186. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29187. -#define shl_load innocuous_shl_load
  29188. + fi
  29189. + ;;
  29190. +esac
  29191. -/* System header to define __stub macros and hopefully few prototypes,
  29192. - which can conflict with char shl_load (); below.
  29193. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29194. - <limits.h> exists even on freestanding compilers. */
  29195. +# Use C for the default configuration in the libtool script
  29196. -#ifdef __STDC__
  29197. -# include <limits.h>
  29198. -#else
  29199. -# include <assert.h>
  29200. -#endif
  29201. +lt_save_CC="$CC"
  29202. +ac_ext=c
  29203. +ac_cpp='$CPP $CPPFLAGS'
  29204. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29205. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29206. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29207. -#undef shl_load
  29208. -/* Override any GCC internal prototype to avoid an error.
  29209. - Use char because int might match the return type of a GCC
  29210. - builtin and then its argument prototype would still apply. */
  29211. -#ifdef __cplusplus
  29212. -extern "C"
  29213. -#endif
  29214. -char shl_load ();
  29215. -/* The GNU C library defines this for functions which it implements
  29216. - to always fail with ENOSYS. Some functions are actually named
  29217. - something starting with __ and the normal name is an alias. */
  29218. -#if defined __stub_shl_load || defined __stub___shl_load
  29219. -choke me
  29220. -#endif
  29221. +# Source file extension for C test sources.
  29222. +ac_ext=c
  29223. -int
  29224. -main ()
  29225. -{
  29226. -return shl_load ();
  29227. - ;
  29228. - return 0;
  29229. -}
  29230. -_ACEOF
  29231. -rm -f conftest.$ac_objext conftest$ac_exeext
  29232. -if { (ac_try="$ac_link"
  29233. -case "(($ac_try" in
  29234. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29235. - *) ac_try_echo=$ac_try;;
  29236. -esac
  29237. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29238. - (eval "$ac_link") 2>conftest.er1
  29239. - ac_status=$?
  29240. - grep -v '^ *+' conftest.er1 >conftest.err
  29241. - rm -f conftest.er1
  29242. - cat conftest.err >&5
  29243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29244. - (exit $ac_status); } &&
  29245. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29246. - { (case "(($ac_try" in
  29247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29248. - *) ac_try_echo=$ac_try;;
  29249. -esac
  29250. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29251. - (eval "$ac_try") 2>&5
  29252. - ac_status=$?
  29253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29254. - (exit $ac_status); }; } &&
  29255. - { ac_try='test -s conftest$ac_exeext'
  29256. - { (case "(($ac_try" in
  29257. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29258. - *) ac_try_echo=$ac_try;;
  29259. -esac
  29260. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29261. - (eval "$ac_try") 2>&5
  29262. - ac_status=$?
  29263. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29264. - (exit $ac_status); }; }; then
  29265. - ac_cv_func_shl_load=yes
  29266. -else
  29267. - echo "$as_me: failed program was:" >&5
  29268. -sed 's/^/| /' conftest.$ac_ext >&5
  29269. +# Object file extension for compiled C test sources.
  29270. +objext=o
  29271. +objext=$objext
  29272. - ac_cv_func_shl_load=no
  29273. -fi
  29274. +# Code to be used in simple compile tests
  29275. +lt_simple_compile_test_code="int some_variable = 0;"
  29276. -rm -f core conftest.err conftest.$ac_objext \
  29277. - conftest$ac_exeext conftest.$ac_ext
  29278. -fi
  29279. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  29280. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  29281. -if test $ac_cv_func_shl_load = yes; then
  29282. - lt_cv_dlopen="shl_load"
  29283. -else
  29284. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  29285. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  29286. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  29287. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29288. -else
  29289. - ac_check_lib_save_LIBS=$LIBS
  29290. -LIBS="-ldld $LIBS"
  29291. -cat >conftest.$ac_ext <<_ACEOF
  29292. -/* confdefs.h. */
  29293. -_ACEOF
  29294. -cat confdefs.h >>conftest.$ac_ext
  29295. -cat >>conftest.$ac_ext <<_ACEOF
  29296. -/* end confdefs.h. */
  29297. +# Code to be used in simple link tests
  29298. +lt_simple_link_test_code='int main(){return(0);}'
  29299. -/* Override any GCC internal prototype to avoid an error.
  29300. - Use char because int might match the return type of a GCC
  29301. - builtin and then its argument prototype would still apply. */
  29302. -#ifdef __cplusplus
  29303. -extern "C"
  29304. -#endif
  29305. -char shl_load ();
  29306. -int
  29307. -main ()
  29308. -{
  29309. -return shl_load ();
  29310. - ;
  29311. - return 0;
  29312. -}
  29313. -_ACEOF
  29314. -rm -f conftest.$ac_objext conftest$ac_exeext
  29315. -if { (ac_try="$ac_link"
  29316. -case "(($ac_try" in
  29317. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29318. - *) ac_try_echo=$ac_try;;
  29319. -esac
  29320. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29321. - (eval "$ac_link") 2>conftest.er1
  29322. - ac_status=$?
  29323. - grep -v '^ *+' conftest.er1 >conftest.err
  29324. - rm -f conftest.er1
  29325. - cat conftest.err >&5
  29326. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29327. - (exit $ac_status); } &&
  29328. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29329. - { (case "(($ac_try" in
  29330. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29331. - *) ac_try_echo=$ac_try;;
  29332. -esac
  29333. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29334. - (eval "$ac_try") 2>&5
  29335. - ac_status=$?
  29336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29337. - (exit $ac_status); }; } &&
  29338. - { ac_try='test -s conftest$ac_exeext'
  29339. - { (case "(($ac_try" in
  29340. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29341. - *) ac_try_echo=$ac_try;;
  29342. -esac
  29343. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29344. - (eval "$ac_try") 2>&5
  29345. - ac_status=$?
  29346. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29347. - (exit $ac_status); }; }; then
  29348. - ac_cv_lib_dld_shl_load=yes
  29349. -else
  29350. - echo "$as_me: failed program was:" >&5
  29351. -sed 's/^/| /' conftest.$ac_ext >&5
  29352. - ac_cv_lib_dld_shl_load=no
  29353. -fi
  29354. -rm -f core conftest.err conftest.$ac_objext \
  29355. - conftest$ac_exeext conftest.$ac_ext
  29356. -LIBS=$ac_check_lib_save_LIBS
  29357. -fi
  29358. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  29359. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  29360. -if test $ac_cv_lib_dld_shl_load = yes; then
  29361. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  29362. -else
  29363. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  29364. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  29365. -if test "${ac_cv_func_dlopen+set}" = set; then
  29366. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29367. -else
  29368. - cat >conftest.$ac_ext <<_ACEOF
  29369. -/* confdefs.h. */
  29370. -_ACEOF
  29371. -cat confdefs.h >>conftest.$ac_ext
  29372. -cat >>conftest.$ac_ext <<_ACEOF
  29373. -/* end confdefs.h. */
  29374. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  29375. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29376. -#define dlopen innocuous_dlopen
  29377. -/* System header to define __stub macros and hopefully few prototypes,
  29378. - which can conflict with char dlopen (); below.
  29379. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29380. - <limits.h> exists even on freestanding compilers. */
  29381. -#ifdef __STDC__
  29382. -# include <limits.h>
  29383. -#else
  29384. -# include <assert.h>
  29385. -#endif
  29386. -#undef dlopen
  29387. -/* Override any GCC internal prototype to avoid an error.
  29388. - Use char because int might match the return type of a GCC
  29389. - builtin and then its argument prototype would still apply. */
  29390. -#ifdef __cplusplus
  29391. -extern "C"
  29392. -#endif
  29393. -char dlopen ();
  29394. -/* The GNU C library defines this for functions which it implements
  29395. - to always fail with ENOSYS. Some functions are actually named
  29396. - something starting with __ and the normal name is an alias. */
  29397. -#if defined __stub_dlopen || defined __stub___dlopen
  29398. -choke me
  29399. -#endif
  29400. +# If no C compiler was specified, use CC.
  29401. +LTCC=${LTCC-"$CC"}
  29402. -int
  29403. -main ()
  29404. -{
  29405. -return dlopen ();
  29406. - ;
  29407. - return 0;
  29408. -}
  29409. -_ACEOF
  29410. -rm -f conftest.$ac_objext conftest$ac_exeext
  29411. -if { (ac_try="$ac_link"
  29412. -case "(($ac_try" in
  29413. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29414. - *) ac_try_echo=$ac_try;;
  29415. -esac
  29416. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29417. - (eval "$ac_link") 2>conftest.er1
  29418. - ac_status=$?
  29419. - grep -v '^ *+' conftest.er1 >conftest.err
  29420. - rm -f conftest.er1
  29421. - cat conftest.err >&5
  29422. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29423. - (exit $ac_status); } &&
  29424. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29425. - { (case "(($ac_try" in
  29426. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29427. - *) ac_try_echo=$ac_try;;
  29428. -esac
  29429. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29430. - (eval "$ac_try") 2>&5
  29431. - ac_status=$?
  29432. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29433. - (exit $ac_status); }; } &&
  29434. - { ac_try='test -s conftest$ac_exeext'
  29435. - { (case "(($ac_try" in
  29436. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29437. - *) ac_try_echo=$ac_try;;
  29438. -esac
  29439. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29440. - (eval "$ac_try") 2>&5
  29441. - ac_status=$?
  29442. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29443. - (exit $ac_status); }; }; then
  29444. - ac_cv_func_dlopen=yes
  29445. -else
  29446. - echo "$as_me: failed program was:" >&5
  29447. -sed 's/^/| /' conftest.$ac_ext >&5
  29448. +# If no C compiler flags were specified, use CFLAGS.
  29449. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29450. - ac_cv_func_dlopen=no
  29451. -fi
  29452. +# Allow CC to be a program name with arguments.
  29453. +compiler=$CC
  29454. -rm -f core conftest.err conftest.$ac_objext \
  29455. - conftest$ac_exeext conftest.$ac_ext
  29456. -fi
  29457. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  29458. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  29459. -if test $ac_cv_func_dlopen = yes; then
  29460. - lt_cv_dlopen="dlopen"
  29461. -else
  29462. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29463. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  29464. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29465. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29466. -else
  29467. - ac_check_lib_save_LIBS=$LIBS
  29468. -LIBS="-ldl $LIBS"
  29469. -cat >conftest.$ac_ext <<_ACEOF
  29470. -/* confdefs.h. */
  29471. -_ACEOF
  29472. -cat confdefs.h >>conftest.$ac_ext
  29473. -cat >>conftest.$ac_ext <<_ACEOF
  29474. -/* end confdefs.h. */
  29475. +# Save the default compiler, since it gets overwritten when the other
  29476. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  29477. +compiler_DEFAULT=$CC
  29478. +
  29479. +# save warnings/boilerplate of simple test code
  29480. +ac_outfile=conftest.$ac_objext
  29481. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  29482. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29483. +_lt_compiler_boilerplate=`cat conftest.err`
  29484. +$RM conftest*
  29485. +
  29486. +ac_outfile=conftest.$ac_objext
  29487. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  29488. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29489. +_lt_linker_boilerplate=`cat conftest.err`
  29490. +$RM -r conftest*
  29491. -/* Override any GCC internal prototype to avoid an error.
  29492. - Use char because int might match the return type of a GCC
  29493. - builtin and then its argument prototype would still apply. */
  29494. -#ifdef __cplusplus
  29495. -extern "C"
  29496. -#endif
  29497. -char dlopen ();
  29498. -int
  29499. -main ()
  29500. -{
  29501. -return dlopen ();
  29502. - ;
  29503. - return 0;
  29504. -}
  29505. -_ACEOF
  29506. -rm -f conftest.$ac_objext conftest$ac_exeext
  29507. -if { (ac_try="$ac_link"
  29508. -case "(($ac_try" in
  29509. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29510. - *) ac_try_echo=$ac_try;;
  29511. -esac
  29512. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29513. - (eval "$ac_link") 2>conftest.er1
  29514. - ac_status=$?
  29515. - grep -v '^ *+' conftest.er1 >conftest.err
  29516. - rm -f conftest.er1
  29517. - cat conftest.err >&5
  29518. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29519. - (exit $ac_status); } &&
  29520. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29521. - { (case "(($ac_try" in
  29522. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29523. - *) ac_try_echo=$ac_try;;
  29524. -esac
  29525. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29526. - (eval "$ac_try") 2>&5
  29527. - ac_status=$?
  29528. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29529. - (exit $ac_status); }; } &&
  29530. - { ac_try='test -s conftest$ac_exeext'
  29531. - { (case "(($ac_try" in
  29532. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29533. - *) ac_try_echo=$ac_try;;
  29534. -esac
  29535. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29536. - (eval "$ac_try") 2>&5
  29537. - ac_status=$?
  29538. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29539. - (exit $ac_status); }; }; then
  29540. - ac_cv_lib_dl_dlopen=yes
  29541. +
  29542. +if test -n "$compiler"; then
  29543. +
  29544. +lt_prog_compiler_no_builtin_flag=
  29545. +
  29546. +if test "$GCC" = yes; then
  29547. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  29548. +
  29549. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  29550. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  29551. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  29552. + $as_echo_n "(cached) " >&6
  29553. else
  29554. - echo "$as_me: failed program was:" >&5
  29555. -sed 's/^/| /' conftest.$ac_ext >&5
  29556. + lt_cv_prog_compiler_rtti_exceptions=no
  29557. + ac_outfile=conftest.$ac_objext
  29558. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29559. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  29560. + # Insert the option either (1) after the last *FLAGS variable, or
  29561. + # (2) before a word containing "conftest.", or (3) at the end.
  29562. + # Note that $ac_compile itself does not contain backslashes and begins
  29563. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  29564. + # The option is referenced via a variable to avoid confusing sed.
  29565. + lt_compile=`echo "$ac_compile" | $SED \
  29566. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29567. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29568. + -e 's:$: $lt_compiler_flag:'`
  29569. + (eval echo "\"\$as_me:7962: $lt_compile\"" >&5)
  29570. + (eval "$lt_compile" 2>conftest.err)
  29571. + ac_status=$?
  29572. + cat conftest.err >&5
  29573. + echo "$as_me:7966: \$? = $ac_status" >&5
  29574. + if (exit $ac_status) && test -s "$ac_outfile"; then
  29575. + # The compiler can only warn and ignore the option if not recognized
  29576. + # So say no if there are warnings other than the usual output.
  29577. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29578. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29579. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29580. + lt_cv_prog_compiler_rtti_exceptions=yes
  29581. + fi
  29582. + fi
  29583. + $RM conftest*
  29584. - ac_cv_lib_dl_dlopen=no
  29585. fi
  29586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  29587. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  29588. -rm -f core conftest.err conftest.$ac_objext \
  29589. - conftest$ac_exeext conftest.$ac_ext
  29590. -LIBS=$ac_check_lib_save_LIBS
  29591. -fi
  29592. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29593. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  29594. -if test $ac_cv_lib_dl_dlopen = yes; then
  29595. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29596. -else
  29597. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  29598. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  29599. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  29600. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29601. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  29602. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  29603. else
  29604. - ac_check_lib_save_LIBS=$LIBS
  29605. -LIBS="-lsvld $LIBS"
  29606. -cat >conftest.$ac_ext <<_ACEOF
  29607. -/* confdefs.h. */
  29608. -_ACEOF
  29609. -cat confdefs.h >>conftest.$ac_ext
  29610. -cat >>conftest.$ac_ext <<_ACEOF
  29611. -/* end confdefs.h. */
  29612. + :
  29613. +fi
  29614. -/* Override any GCC internal prototype to avoid an error.
  29615. - Use char because int might match the return type of a GCC
  29616. - builtin and then its argument prototype would still apply. */
  29617. -#ifdef __cplusplus
  29618. -extern "C"
  29619. -#endif
  29620. -char dlopen ();
  29621. -int
  29622. -main ()
  29623. -{
  29624. -return dlopen ();
  29625. - ;
  29626. - return 0;
  29627. -}
  29628. -_ACEOF
  29629. -rm -f conftest.$ac_objext conftest$ac_exeext
  29630. -if { (ac_try="$ac_link"
  29631. -case "(($ac_try" in
  29632. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29633. - *) ac_try_echo=$ac_try;;
  29634. -esac
  29635. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29636. - (eval "$ac_link") 2>conftest.er1
  29637. - ac_status=$?
  29638. - grep -v '^ *+' conftest.er1 >conftest.err
  29639. - rm -f conftest.er1
  29640. - cat conftest.err >&5
  29641. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29642. - (exit $ac_status); } &&
  29643. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29644. - { (case "(($ac_try" in
  29645. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29646. - *) ac_try_echo=$ac_try;;
  29647. -esac
  29648. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29649. - (eval "$ac_try") 2>&5
  29650. - ac_status=$?
  29651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29652. - (exit $ac_status); }; } &&
  29653. - { ac_try='test -s conftest$ac_exeext'
  29654. - { (case "(($ac_try" in
  29655. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29656. - *) ac_try_echo=$ac_try;;
  29657. -esac
  29658. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29659. - (eval "$ac_try") 2>&5
  29660. - ac_status=$?
  29661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29662. - (exit $ac_status); }; }; then
  29663. - ac_cv_lib_svld_dlopen=yes
  29664. -else
  29665. - echo "$as_me: failed program was:" >&5
  29666. -sed 's/^/| /' conftest.$ac_ext >&5
  29667. -
  29668. - ac_cv_lib_svld_dlopen=no
  29669. fi
  29670. -rm -f core conftest.err conftest.$ac_objext \
  29671. - conftest$ac_exeext conftest.$ac_ext
  29672. -LIBS=$ac_check_lib_save_LIBS
  29673. -fi
  29674. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  29675. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  29676. -if test $ac_cv_lib_svld_dlopen = yes; then
  29677. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  29678. -else
  29679. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  29680. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  29681. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  29682. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29683. -else
  29684. - ac_check_lib_save_LIBS=$LIBS
  29685. -LIBS="-ldld $LIBS"
  29686. -cat >conftest.$ac_ext <<_ACEOF
  29687. -/* confdefs.h. */
  29688. -_ACEOF
  29689. -cat confdefs.h >>conftest.$ac_ext
  29690. -cat >>conftest.$ac_ext <<_ACEOF
  29691. -/* end confdefs.h. */
  29692. -/* Override any GCC internal prototype to avoid an error.
  29693. - Use char because int might match the return type of a GCC
  29694. - builtin and then its argument prototype would still apply. */
  29695. -#ifdef __cplusplus
  29696. -extern "C"
  29697. -#endif
  29698. -char dld_link ();
  29699. -int
  29700. -main ()
  29701. -{
  29702. -return dld_link ();
  29703. - ;
  29704. - return 0;
  29705. -}
  29706. -_ACEOF
  29707. -rm -f conftest.$ac_objext conftest$ac_exeext
  29708. -if { (ac_try="$ac_link"
  29709. -case "(($ac_try" in
  29710. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29711. - *) ac_try_echo=$ac_try;;
  29712. -esac
  29713. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29714. - (eval "$ac_link") 2>conftest.er1
  29715. - ac_status=$?
  29716. - grep -v '^ *+' conftest.er1 >conftest.err
  29717. - rm -f conftest.er1
  29718. - cat conftest.err >&5
  29719. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29720. - (exit $ac_status); } &&
  29721. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29722. - { (case "(($ac_try" in
  29723. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29724. - *) ac_try_echo=$ac_try;;
  29725. -esac
  29726. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29727. - (eval "$ac_try") 2>&5
  29728. - ac_status=$?
  29729. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29730. - (exit $ac_status); }; } &&
  29731. - { ac_try='test -s conftest$ac_exeext'
  29732. - { (case "(($ac_try" in
  29733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29734. - *) ac_try_echo=$ac_try;;
  29735. -esac
  29736. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29737. - (eval "$ac_try") 2>&5
  29738. - ac_status=$?
  29739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29740. - (exit $ac_status); }; }; then
  29741. - ac_cv_lib_dld_dld_link=yes
  29742. -else
  29743. - echo "$as_me: failed program was:" >&5
  29744. -sed 's/^/| /' conftest.$ac_ext >&5
  29745. - ac_cv_lib_dld_dld_link=no
  29746. -fi
  29747. -rm -f core conftest.err conftest.$ac_objext \
  29748. - conftest$ac_exeext conftest.$ac_ext
  29749. -LIBS=$ac_check_lib_save_LIBS
  29750. -fi
  29751. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  29752. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  29753. -if test $ac_cv_lib_dld_dld_link = yes; then
  29754. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  29755. -fi
  29756. -fi
  29757. + lt_prog_compiler_wl=
  29758. +lt_prog_compiler_pic=
  29759. +lt_prog_compiler_static=
  29760. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  29761. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  29762. -fi
  29763. + if test "$GCC" = yes; then
  29764. + lt_prog_compiler_wl='-Wl,'
  29765. + lt_prog_compiler_static='-static'
  29766. + case $host_os in
  29767. + aix*)
  29768. + # All AIX code is PIC.
  29769. + if test "$host_cpu" = ia64; then
  29770. + # AIX 5 now supports IA64 processor
  29771. + lt_prog_compiler_static='-Bstatic'
  29772. + fi
  29773. + ;;
  29774. -fi
  29775. + amigaos*)
  29776. + case $host_cpu in
  29777. + powerpc)
  29778. + # see comment about AmigaOS4 .so support
  29779. + lt_prog_compiler_pic='-fPIC'
  29780. + ;;
  29781. + m68k)
  29782. + # FIXME: we need at least 68020 code to build shared libraries, but
  29783. + # adding the `-m68020' flag to GCC prevents building anything better,
  29784. + # like `-m68040'.
  29785. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  29786. + ;;
  29787. + esac
  29788. + ;;
  29789. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29790. + # PIC is the default for these OSes.
  29791. + ;;
  29792. -fi
  29793. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  29794. + # This hack is so that the source file can tell whether it is being
  29795. + # built for inclusion in a dll (and should export symbols for example).
  29796. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  29797. + # (--disable-auto-import) libraries
  29798. + lt_prog_compiler_pic='-DDLL_EXPORT'
  29799. + ;;
  29800. + darwin* | rhapsody*)
  29801. + # PIC is the default on this platform
  29802. + # Common symbols not allowed in MH_DYLIB files
  29803. + lt_prog_compiler_pic='-fno-common'
  29804. + ;;
  29805. -fi
  29806. + hpux*)
  29807. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  29808. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  29809. + # sets the default TLS model and affects inlining.
  29810. + case $host_cpu in
  29811. + hppa*64*)
  29812. + # +Z the default
  29813. + ;;
  29814. + *)
  29815. + lt_prog_compiler_pic='-fPIC'
  29816. + ;;
  29817. + esac
  29818. + ;;
  29819. - ;;
  29820. - esac
  29821. + interix[3-9]*)
  29822. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29823. + # Instead, we relocate shared libraries at runtime.
  29824. + ;;
  29825. - if test "x$lt_cv_dlopen" != xno; then
  29826. - enable_dlopen=yes
  29827. + msdosdjgpp*)
  29828. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  29829. + # on systems that don't support them.
  29830. + lt_prog_compiler_can_build_shared=no
  29831. + enable_shared=no
  29832. + ;;
  29833. +
  29834. + *nto* | *qnx*)
  29835. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  29836. + # it will coredump.
  29837. + lt_prog_compiler_pic='-fPIC -shared'
  29838. + ;;
  29839. +
  29840. + sysv4*MP*)
  29841. + if test -d /usr/nec; then
  29842. + lt_prog_compiler_pic=-Kconform_pic
  29843. + fi
  29844. + ;;
  29845. +
  29846. + *)
  29847. + lt_prog_compiler_pic='-fPIC'
  29848. + ;;
  29849. + esac
  29850. else
  29851. - enable_dlopen=no
  29852. - fi
  29853. + # PORTME Check for flag to pass linker flags through the system compiler.
  29854. + case $host_os in
  29855. + aix*)
  29856. + lt_prog_compiler_wl='-Wl,'
  29857. + if test "$host_cpu" = ia64; then
  29858. + # AIX 5 now supports IA64 processor
  29859. + lt_prog_compiler_static='-Bstatic'
  29860. + else
  29861. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  29862. + fi
  29863. + ;;
  29864. - case $lt_cv_dlopen in
  29865. - dlopen)
  29866. - save_CPPFLAGS="$CPPFLAGS"
  29867. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  29868. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  29869. + # This hack is so that the source file can tell whether it is being
  29870. + # built for inclusion in a dll (and should export symbols for example).
  29871. + lt_prog_compiler_pic='-DDLL_EXPORT'
  29872. + ;;
  29873. - save_LDFLAGS="$LDFLAGS"
  29874. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29875. + hpux9* | hpux10* | hpux11*)
  29876. + lt_prog_compiler_wl='-Wl,'
  29877. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29878. + # not for PA HP-UX.
  29879. + case $host_cpu in
  29880. + hppa*64*|ia64*)
  29881. + # +Z the default
  29882. + ;;
  29883. + *)
  29884. + lt_prog_compiler_pic='+Z'
  29885. + ;;
  29886. + esac
  29887. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  29888. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  29889. + ;;
  29890. - save_LIBS="$LIBS"
  29891. - LIBS="$lt_cv_dlopen_libs $LIBS"
  29892. + irix5* | irix6* | nonstopux*)
  29893. + lt_prog_compiler_wl='-Wl,'
  29894. + # PIC (with -KPIC) is the default.
  29895. + lt_prog_compiler_static='-non_shared'
  29896. + ;;
  29897. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  29898. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  29899. -if test "${lt_cv_dlopen_self+set}" = set; then
  29900. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29901. -else
  29902. - if test "$cross_compiling" = yes; then :
  29903. - lt_cv_dlopen_self=cross
  29904. -else
  29905. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29906. - lt_status=$lt_dlunknown
  29907. - cat > conftest.$ac_ext <<EOF
  29908. -#line 10471 "configure"
  29909. -#include "confdefs.h"
  29910. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  29911. + case $cc_basename in
  29912. + # old Intel for x86_64 which still supported -KPIC.
  29913. + ecc*)
  29914. + lt_prog_compiler_wl='-Wl,'
  29915. + lt_prog_compiler_pic='-KPIC'
  29916. + lt_prog_compiler_static='-static'
  29917. + ;;
  29918. + # icc used to be incompatible with GCC.
  29919. + # ICC 10 doesn't accept -KPIC any more.
  29920. + icc* | ifort*)
  29921. + lt_prog_compiler_wl='-Wl,'
  29922. + lt_prog_compiler_pic='-fPIC'
  29923. + lt_prog_compiler_static='-static'
  29924. + ;;
  29925. + # Lahey Fortran 8.1.
  29926. + lf95*)
  29927. + lt_prog_compiler_wl='-Wl,'
  29928. + lt_prog_compiler_pic='--shared'
  29929. + lt_prog_compiler_static='--static'
  29930. + ;;
  29931. + pgcc* | pgf77* | pgf90* | pgf95*)
  29932. + # Portland Group compilers (*not* the Pentium gcc compiler,
  29933. + # which looks to be a dead project)
  29934. + lt_prog_compiler_wl='-Wl,'
  29935. + lt_prog_compiler_pic='-fpic'
  29936. + lt_prog_compiler_static='-Bstatic'
  29937. + ;;
  29938. + ccc*)
  29939. + lt_prog_compiler_wl='-Wl,'
  29940. + # All Alpha code is PIC.
  29941. + lt_prog_compiler_static='-non_shared'
  29942. + ;;
  29943. + xl*)
  29944. + # IBM XL C 8.0/Fortran 10.1 on PPC
  29945. + lt_prog_compiler_wl='-Wl,'
  29946. + lt_prog_compiler_pic='-qpic'
  29947. + lt_prog_compiler_static='-qstaticlink'
  29948. + ;;
  29949. + *)
  29950. + case `$CC -V 2>&1 | sed 5q` in
  29951. + *Sun\ C*)
  29952. + # Sun C 5.9
  29953. + lt_prog_compiler_pic='-KPIC'
  29954. + lt_prog_compiler_static='-Bstatic'
  29955. + lt_prog_compiler_wl='-Wl,'
  29956. + ;;
  29957. + *Sun\ F*)
  29958. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  29959. + lt_prog_compiler_pic='-KPIC'
  29960. + lt_prog_compiler_static='-Bstatic'
  29961. + lt_prog_compiler_wl=''
  29962. + ;;
  29963. + esac
  29964. + ;;
  29965. + esac
  29966. + ;;
  29967. -#if HAVE_DLFCN_H
  29968. -#include <dlfcn.h>
  29969. -#endif
  29970. + newsos6)
  29971. + lt_prog_compiler_pic='-KPIC'
  29972. + lt_prog_compiler_static='-Bstatic'
  29973. + ;;
  29974. -#include <stdio.h>
  29975. + *nto* | *qnx*)
  29976. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  29977. + # it will coredump.
  29978. + lt_prog_compiler_pic='-fPIC -shared'
  29979. + ;;
  29980. -#ifdef RTLD_GLOBAL
  29981. -# define LT_DLGLOBAL RTLD_GLOBAL
  29982. -#else
  29983. -# ifdef DL_GLOBAL
  29984. -# define LT_DLGLOBAL DL_GLOBAL
  29985. -# else
  29986. -# define LT_DLGLOBAL 0
  29987. -# endif
  29988. -#endif
  29989. + osf3* | osf4* | osf5*)
  29990. + lt_prog_compiler_wl='-Wl,'
  29991. + # All OSF/1 code is PIC.
  29992. + lt_prog_compiler_static='-non_shared'
  29993. + ;;
  29994. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29995. - find out it does not work in some platform. */
  29996. -#ifndef LT_DLLAZY_OR_NOW
  29997. -# ifdef RTLD_LAZY
  29998. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29999. -# else
  30000. -# ifdef DL_LAZY
  30001. -# define LT_DLLAZY_OR_NOW DL_LAZY
  30002. -# else
  30003. -# ifdef RTLD_NOW
  30004. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  30005. -# else
  30006. -# ifdef DL_NOW
  30007. -# define LT_DLLAZY_OR_NOW DL_NOW
  30008. -# else
  30009. -# define LT_DLLAZY_OR_NOW 0
  30010. -# endif
  30011. -# endif
  30012. -# endif
  30013. -# endif
  30014. -#endif
  30015. -
  30016. -#ifdef __cplusplus
  30017. -extern "C" void exit (int);
  30018. -#endif
  30019. + rdos*)
  30020. + lt_prog_compiler_static='-non_shared'
  30021. + ;;
  30022. -void fnord() { int i=42;}
  30023. -int main ()
  30024. -{
  30025. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  30026. - int status = $lt_dlunknown;
  30027. + solaris*)
  30028. + lt_prog_compiler_pic='-KPIC'
  30029. + lt_prog_compiler_static='-Bstatic'
  30030. + case $cc_basename in
  30031. + f77* | f90* | f95*)
  30032. + lt_prog_compiler_wl='-Qoption ld ';;
  30033. + *)
  30034. + lt_prog_compiler_wl='-Wl,';;
  30035. + esac
  30036. + ;;
  30037. - if (self)
  30038. - {
  30039. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  30040. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  30041. - /* dlclose (self); */
  30042. - }
  30043. + sunos4*)
  30044. + lt_prog_compiler_wl='-Qoption ld '
  30045. + lt_prog_compiler_pic='-PIC'
  30046. + lt_prog_compiler_static='-Bstatic'
  30047. + ;;
  30048. - exit (status);
  30049. -}
  30050. -EOF
  30051. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30052. - (eval $ac_link) 2>&5
  30053. - ac_status=$?
  30054. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30055. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  30056. - (./conftest; exit; ) 2>/dev/null
  30057. - lt_status=$?
  30058. - case x$lt_status in
  30059. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  30060. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  30061. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  30062. - esac
  30063. - else :
  30064. - # compilation failed
  30065. - lt_cv_dlopen_self=no
  30066. - fi
  30067. -fi
  30068. -rm -fr conftest*
  30069. + sysv4 | sysv4.2uw2* | sysv4.3*)
  30070. + lt_prog_compiler_wl='-Wl,'
  30071. + lt_prog_compiler_pic='-KPIC'
  30072. + lt_prog_compiler_static='-Bstatic'
  30073. + ;;
  30074. + sysv4*MP*)
  30075. + if test -d /usr/nec ;then
  30076. + lt_prog_compiler_pic='-Kconform_pic'
  30077. + lt_prog_compiler_static='-Bstatic'
  30078. + fi
  30079. + ;;
  30080. -fi
  30081. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  30082. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  30083. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30084. + lt_prog_compiler_wl='-Wl,'
  30085. + lt_prog_compiler_pic='-KPIC'
  30086. + lt_prog_compiler_static='-Bstatic'
  30087. + ;;
  30088. - if test "x$lt_cv_dlopen_self" = xyes; then
  30089. - LDFLAGS="$LDFLAGS $link_static_flag"
  30090. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  30091. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  30092. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  30093. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30094. -else
  30095. - if test "$cross_compiling" = yes; then :
  30096. - lt_cv_dlopen_self_static=cross
  30097. -else
  30098. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  30099. - lt_status=$lt_dlunknown
  30100. - cat > conftest.$ac_ext <<EOF
  30101. -#line 10569 "configure"
  30102. -#include "confdefs.h"
  30103. + unicos*)
  30104. + lt_prog_compiler_wl='-Wl,'
  30105. + lt_prog_compiler_can_build_shared=no
  30106. + ;;
  30107. -#if HAVE_DLFCN_H
  30108. -#include <dlfcn.h>
  30109. -#endif
  30110. + uts4*)
  30111. + lt_prog_compiler_pic='-pic'
  30112. + lt_prog_compiler_static='-Bstatic'
  30113. + ;;
  30114. -#include <stdio.h>
  30115. + *)
  30116. + lt_prog_compiler_can_build_shared=no
  30117. + ;;
  30118. + esac
  30119. + fi
  30120. -#ifdef RTLD_GLOBAL
  30121. -# define LT_DLGLOBAL RTLD_GLOBAL
  30122. -#else
  30123. -# ifdef DL_GLOBAL
  30124. -# define LT_DLGLOBAL DL_GLOBAL
  30125. -# else
  30126. -# define LT_DLGLOBAL 0
  30127. -# endif
  30128. -#endif
  30129. +case $host_os in
  30130. + # For platforms which do not support PIC, -DPIC is meaningless:
  30131. + *djgpp*)
  30132. + lt_prog_compiler_pic=
  30133. + ;;
  30134. + *)
  30135. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  30136. + ;;
  30137. +esac
  30138. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  30139. +$as_echo "$lt_prog_compiler_pic" >&6; }
  30140. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  30141. - find out it does not work in some platform. */
  30142. -#ifndef LT_DLLAZY_OR_NOW
  30143. -# ifdef RTLD_LAZY
  30144. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  30145. -# else
  30146. -# ifdef DL_LAZY
  30147. -# define LT_DLLAZY_OR_NOW DL_LAZY
  30148. -# else
  30149. -# ifdef RTLD_NOW
  30150. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  30151. -# else
  30152. -# ifdef DL_NOW
  30153. -# define LT_DLLAZY_OR_NOW DL_NOW
  30154. -# else
  30155. -# define LT_DLLAZY_OR_NOW 0
  30156. -# endif
  30157. -# endif
  30158. -# endif
  30159. -# endif
  30160. -#endif
  30161. -#ifdef __cplusplus
  30162. -extern "C" void exit (int);
  30163. -#endif
  30164. -void fnord() { int i=42;}
  30165. -int main ()
  30166. -{
  30167. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  30168. - int status = $lt_dlunknown;
  30169. - if (self)
  30170. - {
  30171. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  30172. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  30173. - /* dlclose (self); */
  30174. - }
  30175. - exit (status);
  30176. -}
  30177. -EOF
  30178. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30179. - (eval $ac_link) 2>&5
  30180. - ac_status=$?
  30181. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30182. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  30183. - (./conftest; exit; ) 2>/dev/null
  30184. - lt_status=$?
  30185. - case x$lt_status in
  30186. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  30187. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  30188. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  30189. - esac
  30190. - else :
  30191. - # compilation failed
  30192. - lt_cv_dlopen_self_static=no
  30193. - fi
  30194. -fi
  30195. -rm -fr conftest*
  30196. +#
  30197. +# Check to make sure the PIC flag actually works.
  30198. +#
  30199. +if test -n "$lt_prog_compiler_pic"; then
  30200. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  30201. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  30202. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  30203. + $as_echo_n "(cached) " >&6
  30204. +else
  30205. + lt_cv_prog_compiler_pic_works=no
  30206. + ac_outfile=conftest.$ac_objext
  30207. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30208. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  30209. + # Insert the option either (1) after the last *FLAGS variable, or
  30210. + # (2) before a word containing "conftest.", or (3) at the end.
  30211. + # Note that $ac_compile itself does not contain backslashes and begins
  30212. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30213. + # The option is referenced via a variable to avoid confusing sed.
  30214. + lt_compile=`echo "$ac_compile" | $SED \
  30215. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30216. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30217. + -e 's:$: $lt_compiler_flag:'`
  30218. + (eval echo "\"\$as_me:8301: $lt_compile\"" >&5)
  30219. + (eval "$lt_compile" 2>conftest.err)
  30220. + ac_status=$?
  30221. + cat conftest.err >&5
  30222. + echo "$as_me:8305: \$? = $ac_status" >&5
  30223. + if (exit $ac_status) && test -s "$ac_outfile"; then
  30224. + # The compiler can only warn and ignore the option if not recognized
  30225. + # So say no if there are warnings other than the usual output.
  30226. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30227. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30228. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30229. + lt_cv_prog_compiler_pic_works=yes
  30230. + fi
  30231. + fi
  30232. + $RM conftest*
  30233. fi
  30234. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  30235. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  30236. - fi
  30237. -
  30238. - CPPFLAGS="$save_CPPFLAGS"
  30239. - LDFLAGS="$save_LDFLAGS"
  30240. - LIBS="$save_LIBS"
  30241. - ;;
  30242. - esac
  30243. -
  30244. - case $lt_cv_dlopen_self in
  30245. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  30246. - *) enable_dlopen_self=unknown ;;
  30247. - esac
  30248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  30249. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  30250. - case $lt_cv_dlopen_self_static in
  30251. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  30252. - *) enable_dlopen_self_static=unknown ;;
  30253. - esac
  30254. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  30255. + case $lt_prog_compiler_pic in
  30256. + "" | " "*) ;;
  30257. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  30258. + esac
  30259. +else
  30260. + lt_prog_compiler_pic=
  30261. + lt_prog_compiler_can_build_shared=no
  30262. fi
  30263. +fi
  30264. -# Report which librarie types wil actually be built
  30265. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30266. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  30267. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30268. -echo "${ECHO_T}$can_build_shared" >&6; }
  30269. -
  30270. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30271. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  30272. -test "$can_build_shared" = "no" && enable_shared=no
  30273. -
  30274. -# On AIX, shared libraries and static libraries use the same namespace, and
  30275. -# are all built from PIC.
  30276. -case "$host_os" in
  30277. -aix3*)
  30278. - test "$enable_shared" = yes && enable_static=no
  30279. - if test -n "$RANLIB"; then
  30280. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30281. - postinstall_cmds='$RANLIB $lib'
  30282. - fi
  30283. - ;;
  30284. -
  30285. -aix4* | aix5*)
  30286. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30287. - test "$enable_shared" = yes && enable_static=no
  30288. - fi
  30289. - ;;
  30290. -esac
  30291. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  30292. -echo "${ECHO_T}$enable_shared" >&6; }
  30293. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30294. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  30295. -# Make sure either enable_shared or enable_static is yes.
  30296. -test "$enable_shared" = yes || enable_static=yes
  30297. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  30298. -echo "${ECHO_T}$enable_static" >&6; }
  30299. -
  30300. -# The else clause should only fire when bootstrapping the
  30301. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30302. -# with your package, and you will get complaints that there are
  30303. -# no rules to generate ltmain.sh.
  30304. -if test -f "$ltmain"; then
  30305. - # See if we are running on zsh, and set the options which allow our commands through
  30306. - # without removal of \ escapes.
  30307. - if test -n "${ZSH_VERSION+set}" ; then
  30308. - setopt NO_GLOB_SUBST
  30309. - fi
  30310. - # Now quote all the things that may contain metacharacters while being
  30311. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30312. - # variables and quote the copies for generation of the libtool script.
  30313. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  30314. - SED SHELL STRIP \
  30315. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30316. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30317. - deplibs_check_method reload_flag reload_cmds need_locks \
  30318. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30319. - lt_cv_sys_global_symbol_to_c_name_address \
  30320. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30321. - old_postinstall_cmds old_postuninstall_cmds \
  30322. - compiler \
  30323. - CC \
  30324. - LD \
  30325. - lt_prog_compiler_wl \
  30326. - lt_prog_compiler_pic \
  30327. - lt_prog_compiler_static \
  30328. - lt_prog_compiler_no_builtin_flag \
  30329. - export_dynamic_flag_spec \
  30330. - thread_safe_flag_spec \
  30331. - whole_archive_flag_spec \
  30332. - enable_shared_with_static_runtimes \
  30333. - old_archive_cmds \
  30334. - old_archive_from_new_cmds \
  30335. - predep_objects \
  30336. - postdep_objects \
  30337. - predeps \
  30338. - postdeps \
  30339. - compiler_lib_search_path \
  30340. - archive_cmds \
  30341. - archive_expsym_cmds \
  30342. - postinstall_cmds \
  30343. - postuninstall_cmds \
  30344. - old_archive_from_expsyms_cmds \
  30345. - allow_undefined_flag \
  30346. - no_undefined_flag \
  30347. - export_symbols_cmds \
  30348. - hardcode_libdir_flag_spec \
  30349. - hardcode_libdir_flag_spec_ld \
  30350. - hardcode_libdir_separator \
  30351. - hardcode_automatic \
  30352. - module_cmds \
  30353. - module_expsym_cmds \
  30354. - lt_cv_prog_compiler_c_o \
  30355. - exclude_expsyms \
  30356. - include_expsyms; do
  30357. -
  30358. - case $var in
  30359. - old_archive_cmds | \
  30360. - old_archive_from_new_cmds | \
  30361. - archive_cmds | \
  30362. - archive_expsym_cmds | \
  30363. - module_cmds | \
  30364. - module_expsym_cmds | \
  30365. - old_archive_from_expsyms_cmds | \
  30366. - export_symbols_cmds | \
  30367. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30368. - postinstall_cmds | postuninstall_cmds | \
  30369. - old_postinstall_cmds | old_postuninstall_cmds | \
  30370. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30371. - # Double-quote double-evaled strings.
  30372. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30373. - ;;
  30374. - *)
  30375. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30376. - ;;
  30377. - esac
  30378. - done
  30379. - case $lt_echo in
  30380. - *'\$0 --fallback-echo"')
  30381. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30382. - ;;
  30383. - esac
  30384. -cfgfile="${ofile}T"
  30385. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  30386. - $rm -f "$cfgfile"
  30387. - { echo "$as_me:$LINENO: creating $ofile" >&5
  30388. -echo "$as_me: creating $ofile" >&6;}
  30389. - cat <<__EOF__ >> "$cfgfile"
  30390. -#! $SHELL
  30391. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  30392. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  30393. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30394. -#
  30395. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  30396. -# Free Software Foundation, Inc.
  30397. -#
  30398. -# This file is part of GNU Libtool:
  30399. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  30400. -#
  30401. -# This program is free software; you can redistribute it and/or modify
  30402. -# it under the terms of the GNU General Public License as published by
  30403. -# the Free Software Foundation; either version 2 of the License, or
  30404. -# (at your option) any later version.
  30405. -#
  30406. -# This program is distributed in the hope that it will be useful, but
  30407. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  30408. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  30409. -# General Public License for more details.
  30410. #
  30411. -# You should have received a copy of the GNU General Public License
  30412. -# along with this program; if not, write to the Free Software
  30413. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  30414. +# Check to make sure the static flag actually works.
  30415. #
  30416. -# As a special exception to the GNU General Public License, if you
  30417. -# distribute this file as part of a program that contains a
  30418. -# configuration script generated by Autoconf, you may include it under
  30419. -# the same distribution terms that you use for the rest of that program.
  30420. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  30421. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30422. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  30423. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  30424. + $as_echo_n "(cached) " >&6
  30425. +else
  30426. + lt_cv_prog_compiler_static_works=no
  30427. + save_LDFLAGS="$LDFLAGS"
  30428. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30429. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30430. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30431. + # The linker can only warn and ignore the option if not recognized
  30432. + # So say no if there are warnings
  30433. + if test -s conftest.err; then
  30434. + # Append any errors to the config.log.
  30435. + cat conftest.err 1>&5
  30436. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30437. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30438. + if diff conftest.exp conftest.er2 >/dev/null; then
  30439. + lt_cv_prog_compiler_static_works=yes
  30440. + fi
  30441. + else
  30442. + lt_cv_prog_compiler_static_works=yes
  30443. + fi
  30444. + fi
  30445. + $RM -r conftest*
  30446. + LDFLAGS="$save_LDFLAGS"
  30447. -# A sed program that does not truncate output.
  30448. -SED=$lt_SED
  30449. +fi
  30450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  30451. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  30452. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30453. -Xsed="$SED -e s/^X//"
  30454. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  30455. + :
  30456. +else
  30457. + lt_prog_compiler_static=
  30458. +fi
  30459. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  30460. -# if CDPATH is set.
  30461. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30462. -# The names of the tagged configurations supported by this script.
  30463. -available_tags=
  30464. -# ### BEGIN LIBTOOL CONFIG
  30465. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30466. -# Shell to use when invoking shell scripts.
  30467. -SHELL=$lt_SHELL
  30468. -# Whether or not to build shared libraries.
  30469. -build_libtool_libs=$enable_shared
  30470. -# Whether or not to build static libraries.
  30471. -build_old_libs=$enable_static
  30472. -
  30473. -# Whether or not to add -lc for building shared libraries.
  30474. -build_libtool_need_lc=$archive_cmds_need_lc
  30475. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  30476. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30477. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  30478. + $as_echo_n "(cached) " >&6
  30479. +else
  30480. + lt_cv_prog_compiler_c_o=no
  30481. + $RM -r conftest 2>/dev/null
  30482. + mkdir conftest
  30483. + cd conftest
  30484. + mkdir out
  30485. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30486. -# Whether or not to disallow shared libs when runtime libs are static
  30487. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30488. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  30489. + # Insert the option either (1) after the last *FLAGS variable, or
  30490. + # (2) before a word containing "conftest.", or (3) at the end.
  30491. + # Note that $ac_compile itself does not contain backslashes and begins
  30492. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30493. + lt_compile=`echo "$ac_compile" | $SED \
  30494. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30495. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30496. + -e 's:$: $lt_compiler_flag:'`
  30497. + (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
  30498. + (eval "$lt_compile" 2>out/conftest.err)
  30499. + ac_status=$?
  30500. + cat out/conftest.err >&5
  30501. + echo "$as_me:8410: \$? = $ac_status" >&5
  30502. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30503. + then
  30504. + # The compiler can only warn and ignore the option if not recognized
  30505. + # So say no if there are warnings
  30506. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30507. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30508. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30509. + lt_cv_prog_compiler_c_o=yes
  30510. + fi
  30511. + fi
  30512. + chmod u+w . 2>&5
  30513. + $RM conftest*
  30514. + # SGI C++ compiler will create directory out/ii_files/ for
  30515. + # template instantiation
  30516. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  30517. + $RM out/* && rmdir out
  30518. + cd ..
  30519. + $RM -r conftest
  30520. + $RM conftest*
  30521. -# Whether or not to optimize for fast installation.
  30522. -fast_install=$enable_fast_install
  30523. +fi
  30524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  30525. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  30526. -# The host system.
  30527. -host_alias=$host_alias
  30528. -host=$host
  30529. -# An echo program that does not interpret backslashes.
  30530. -echo=$lt_echo
  30531. -# The archiver.
  30532. -AR=$lt_AR
  30533. -AR_FLAGS=$lt_AR_FLAGS
  30534. -# A C compiler.
  30535. -LTCC=$lt_LTCC
  30536. -# A language-specific compiler.
  30537. -CC=$lt_compiler
  30538. -# Is the compiler the GNU C compiler?
  30539. -with_gcc=$GCC
  30540. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  30541. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30542. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  30543. + $as_echo_n "(cached) " >&6
  30544. +else
  30545. + lt_cv_prog_compiler_c_o=no
  30546. + $RM -r conftest 2>/dev/null
  30547. + mkdir conftest
  30548. + cd conftest
  30549. + mkdir out
  30550. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30551. -# An ERE matcher.
  30552. -EGREP=$lt_EGREP
  30553. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  30554. + # Insert the option either (1) after the last *FLAGS variable, or
  30555. + # (2) before a word containing "conftest.", or (3) at the end.
  30556. + # Note that $ac_compile itself does not contain backslashes and begins
  30557. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30558. + lt_compile=`echo "$ac_compile" | $SED \
  30559. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30560. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30561. + -e 's:$: $lt_compiler_flag:'`
  30562. + (eval echo "\"\$as_me:8461: $lt_compile\"" >&5)
  30563. + (eval "$lt_compile" 2>out/conftest.err)
  30564. + ac_status=$?
  30565. + cat out/conftest.err >&5
  30566. + echo "$as_me:8465: \$? = $ac_status" >&5
  30567. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30568. + then
  30569. + # The compiler can only warn and ignore the option if not recognized
  30570. + # So say no if there are warnings
  30571. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30572. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30573. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30574. + lt_cv_prog_compiler_c_o=yes
  30575. + fi
  30576. + fi
  30577. + chmod u+w . 2>&5
  30578. + $RM conftest*
  30579. + # SGI C++ compiler will create directory out/ii_files/ for
  30580. + # template instantiation
  30581. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  30582. + $RM out/* && rmdir out
  30583. + cd ..
  30584. + $RM -r conftest
  30585. + $RM conftest*
  30586. -# The linker used to build libraries.
  30587. -LD=$lt_LD
  30588. +fi
  30589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  30590. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  30591. -# Whether we need hard or soft links.
  30592. -LN_S=$lt_LN_S
  30593. -# A BSD-compatible nm program.
  30594. -NM=$lt_NM
  30595. -# A symbol stripping program
  30596. -STRIP=$lt_STRIP
  30597. -# Used to examine libraries when file_magic_cmd begins "file"
  30598. -MAGIC_CMD=$MAGIC_CMD
  30599. +hard_links="nottested"
  30600. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  30601. + # do not overwrite the value of need_locks provided by the user
  30602. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  30603. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  30604. + hard_links=yes
  30605. + $RM conftest*
  30606. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30607. + touch conftest.a
  30608. + ln conftest.a conftest.b 2>&5 || hard_links=no
  30609. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  30611. +$as_echo "$hard_links" >&6; }
  30612. + if test "$hard_links" = no; then
  30613. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30614. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30615. + need_locks=warn
  30616. + fi
  30617. +else
  30618. + need_locks=no
  30619. +fi
  30620. -# Used on cygwin: DLL creation program.
  30621. -DLLTOOL="$DLLTOOL"
  30622. -# Used on cygwin: object dumper.
  30623. -OBJDUMP="$OBJDUMP"
  30624. -# Used on cygwin: assembler.
  30625. -AS="$AS"
  30626. -# The name of the directory that contains temporary libtool files.
  30627. -objdir=$objdir
  30628. -# How to create reloadable object files.
  30629. -reload_flag=$lt_reload_flag
  30630. -reload_cmds=$lt_reload_cmds
  30631. -# How to pass a linker flag through the compiler.
  30632. -wl=$lt_lt_prog_compiler_wl
  30633. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30634. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  30635. -# Object file suffix (normally "o").
  30636. -objext="$ac_objext"
  30637. + runpath_var=
  30638. + allow_undefined_flag=
  30639. + always_export_symbols=no
  30640. + archive_cmds=
  30641. + archive_expsym_cmds=
  30642. + compiler_needs_object=no
  30643. + enable_shared_with_static_runtimes=no
  30644. + export_dynamic_flag_spec=
  30645. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30646. + hardcode_automatic=no
  30647. + hardcode_direct=no
  30648. + hardcode_direct_absolute=no
  30649. + hardcode_libdir_flag_spec=
  30650. + hardcode_libdir_flag_spec_ld=
  30651. + hardcode_libdir_separator=
  30652. + hardcode_minus_L=no
  30653. + hardcode_shlibpath_var=unsupported
  30654. + inherit_rpath=no
  30655. + link_all_deplibs=unknown
  30656. + module_cmds=
  30657. + module_expsym_cmds=
  30658. + old_archive_from_new_cmds=
  30659. + old_archive_from_expsyms_cmds=
  30660. + thread_safe_flag_spec=
  30661. + whole_archive_flag_spec=
  30662. + # include_expsyms should be a list of space-separated symbols to be *always*
  30663. + # included in the symbol list
  30664. + include_expsyms=
  30665. + # exclude_expsyms can be an extended regexp of symbols to exclude
  30666. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30667. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30668. + # as well as any symbol that contains `d'.
  30669. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30670. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30671. + # platforms (ab)use it in PIC code, but their linkers get confused if
  30672. + # the symbol is explicitly referenced. Since portable code cannot
  30673. + # rely on this symbol name, it's probably fine to never include it in
  30674. + # preloaded symbol tables.
  30675. + # Exclude shared library initialization/finalization symbols.
  30676. + extract_expsyms_cmds=
  30677. -# Old archive suffix (normally "a").
  30678. -libext="$libext"
  30679. + case $host_os in
  30680. + cygwin* | mingw* | pw32* | cegcc*)
  30681. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30682. + # When not using gcc, we currently assume that we are using
  30683. + # Microsoft Visual C++.
  30684. + if test "$GCC" != yes; then
  30685. + with_gnu_ld=no
  30686. + fi
  30687. + ;;
  30688. + interix*)
  30689. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  30690. + with_gnu_ld=yes
  30691. + ;;
  30692. + openbsd*)
  30693. + with_gnu_ld=no
  30694. + ;;
  30695. + linux* | k*bsd*-gnu)
  30696. + link_all_deplibs=no
  30697. + ;;
  30698. + esac
  30699. -# Shared library suffix (normally ".so").
  30700. -shrext_cmds='$shrext_cmds'
  30701. + ld_shlibs=yes
  30702. + if test "$with_gnu_ld" = yes; then
  30703. + # If archive_cmds runs LD, not CC, wlarc should be empty
  30704. + wlarc='${wl}'
  30705. -# Executable file suffix (normally "").
  30706. -exeext="$exeext"
  30707. + # Set some defaults for GNU ld with shared library support. These
  30708. + # are reset later if shared libraries are not supported. Putting them
  30709. + # here allows them to be overridden if necessary.
  30710. + runpath_var=LD_RUN_PATH
  30711. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30712. + export_dynamic_flag_spec='${wl}--export-dynamic'
  30713. + # ancient GNU ld didn't support --whole-archive et. al.
  30714. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  30715. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30716. + else
  30717. + whole_archive_flag_spec=
  30718. + fi
  30719. + supports_anon_versioning=no
  30720. + case `$LD -v 2>&1` in
  30721. + *GNU\ gold*) supports_anon_versioning=yes ;;
  30722. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30723. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30724. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30725. + *\ 2.11.*) ;; # other 2.11 versions
  30726. + *) supports_anon_versioning=yes ;;
  30727. + esac
  30728. -# Additional compiler flags for building library objects.
  30729. -pic_flag=$lt_lt_prog_compiler_pic
  30730. -pic_mode=$pic_mode
  30731. + # See if GNU ld supports shared libraries.
  30732. + case $host_os in
  30733. + aix[3-9]*)
  30734. + # On AIX/PPC, the GNU linker is very broken
  30735. + if test "$host_cpu" != ia64; then
  30736. + ld_shlibs=no
  30737. + cat <<_LT_EOF 1>&2
  30738. -# What is the maximum length of a command?
  30739. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30740. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30741. +*** to be unable to reliably create shared libraries on AIX.
  30742. +*** Therefore, libtool is disabling shared libraries support. If you
  30743. +*** really care for shared libraries, you may want to modify your PATH
  30744. +*** so that a non-GNU linker is found, and then restart.
  30745. -# Does compiler simultaneously support -c and -o options?
  30746. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30747. +_LT_EOF
  30748. + fi
  30749. + ;;
  30750. -# Must we lock files when doing compilation ?
  30751. -need_locks=$lt_need_locks
  30752. + amigaos*)
  30753. + case $host_cpu in
  30754. + powerpc)
  30755. + # see comment about AmigaOS4 .so support
  30756. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30757. + archive_expsym_cmds=''
  30758. + ;;
  30759. + m68k)
  30760. + 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)'
  30761. + hardcode_libdir_flag_spec='-L$libdir'
  30762. + hardcode_minus_L=yes
  30763. + ;;
  30764. + esac
  30765. + ;;
  30766. -# Do we need the lib prefix for modules?
  30767. -need_lib_prefix=$need_lib_prefix
  30768. + beos*)
  30769. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  30770. + allow_undefined_flag=unsupported
  30771. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30772. + # support --undefined. This deserves some investigation. FIXME
  30773. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30774. + else
  30775. + ld_shlibs=no
  30776. + fi
  30777. + ;;
  30778. -# Do we need a version for libraries?
  30779. -need_version=$need_version
  30780. + cygwin* | mingw* | pw32* | cegcc*)
  30781. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  30782. + # as there is no search path for DLLs.
  30783. + hardcode_libdir_flag_spec='-L$libdir'
  30784. + allow_undefined_flag=unsupported
  30785. + always_export_symbols=no
  30786. + enable_shared_with_static_runtimes=yes
  30787. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  30788. -# Whether dlopen is supported.
  30789. -dlopen_support=$enable_dlopen
  30790. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  30791. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30792. + # If the export-symbols file already is a .def file (1st line
  30793. + # is EXPORTS), use it as is; otherwise, prepend...
  30794. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30795. + cp $export_symbols $output_objdir/$soname.def;
  30796. + else
  30797. + echo EXPORTS > $output_objdir/$soname.def;
  30798. + cat $export_symbols >> $output_objdir/$soname.def;
  30799. + fi~
  30800. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30801. + else
  30802. + ld_shlibs=no
  30803. + fi
  30804. + ;;
  30805. -# Whether dlopen of programs is supported.
  30806. -dlopen_self=$enable_dlopen_self
  30807. + interix[3-9]*)
  30808. + hardcode_direct=no
  30809. + hardcode_shlibpath_var=no
  30810. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  30811. + export_dynamic_flag_spec='${wl}-E'
  30812. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30813. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  30814. + # default) and relocated if they conflict, which is a slow very memory
  30815. + # consuming and fragmenting process. To avoid this, we pick a random,
  30816. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30817. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30818. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30819. + 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'
  30820. + ;;
  30821. -# Whether dlopen of statically linked programs is supported.
  30822. -dlopen_self_static=$enable_dlopen_self_static
  30823. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  30824. + tmp_diet=no
  30825. + if test "$host_os" = linux-dietlibc; then
  30826. + case $cc_basename in
  30827. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  30828. + esac
  30829. + fi
  30830. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  30831. + && test "$tmp_diet" = no
  30832. + then
  30833. + tmp_addflag=
  30834. + tmp_sharedflag='-shared'
  30835. + case $cc_basename,$host_cpu in
  30836. + pgcc*) # Portland Group C compiler
  30837. + 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'
  30838. + tmp_addflag=' $pic_flag'
  30839. + ;;
  30840. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  30841. + 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'
  30842. + tmp_addflag=' $pic_flag -Mnomain' ;;
  30843. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  30844. + tmp_addflag=' -i_dynamic' ;;
  30845. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  30846. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  30847. + ifc* | ifort*) # Intel Fortran compiler
  30848. + tmp_addflag=' -nofor_main' ;;
  30849. + lf95*) # Lahey Fortran 8.1
  30850. + whole_archive_flag_spec=
  30851. + tmp_sharedflag='--shared' ;;
  30852. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  30853. + tmp_sharedflag='-qmkshrobj'
  30854. + tmp_addflag= ;;
  30855. + esac
  30856. + case `$CC -V 2>&1 | sed 5q` in
  30857. + *Sun\ C*) # Sun C 5.9
  30858. + 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'
  30859. + compiler_needs_object=yes
  30860. + tmp_sharedflag='-G' ;;
  30861. + *Sun\ F*) # Sun Fortran 8.3
  30862. + tmp_sharedflag='-G' ;;
  30863. + esac
  30864. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30865. -# Compiler flag to prevent dynamic linking.
  30866. -link_static_flag=$lt_lt_prog_compiler_static
  30867. + if test "x$supports_anon_versioning" = xyes; then
  30868. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  30869. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30870. + echo "local: *; };" >> $output_objdir/$libname.ver~
  30871. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30872. + fi
  30873. -# Compiler flag to turn off builtin functions.
  30874. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30875. + case $cc_basename in
  30876. + xlf*)
  30877. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  30878. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  30879. + hardcode_libdir_flag_spec=
  30880. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  30881. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  30882. + if test "x$supports_anon_versioning" = xyes; then
  30883. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  30884. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30885. + echo "local: *; };" >> $output_objdir/$libname.ver~
  30886. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  30887. + fi
  30888. + ;;
  30889. + esac
  30890. + else
  30891. + ld_shlibs=no
  30892. + fi
  30893. + ;;
  30894. -# Compiler flag to allow reflexive dlopens.
  30895. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30896. + netbsd* | netbsdelf*-gnu)
  30897. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  30898. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30899. + wlarc=
  30900. + else
  30901. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30902. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30903. + fi
  30904. + ;;
  30905. -# Compiler flag to generate shared objects directly from archives.
  30906. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30907. + solaris*)
  30908. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  30909. + ld_shlibs=no
  30910. + cat <<_LT_EOF 1>&2
  30911. -# Compiler flag to generate thread-safe objects.
  30912. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  30913. -
  30914. -# Library versioning type.
  30915. -version_type=$version_type
  30916. -
  30917. -# Format of library name prefix.
  30918. -libname_spec=$lt_libname_spec
  30919. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30920. +*** create shared libraries on Solaris systems. Therefore, libtool
  30921. +*** is disabling shared libraries support. We urge you to upgrade GNU
  30922. +*** binutils to release 2.9.1 or newer. Another option is to modify
  30923. +*** your PATH or compiler configuration so that the native linker is
  30924. +*** used, and then restart.
  30925. -# List of archive names. First name is the real one, the rest are links.
  30926. -# The last name is the one that the linker finds with -lNAME.
  30927. -library_names_spec=$lt_library_names_spec
  30928. +_LT_EOF
  30929. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  30930. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30931. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30932. + else
  30933. + ld_shlibs=no
  30934. + fi
  30935. + ;;
  30936. -# The coded name of the library, if different from the real name.
  30937. -soname_spec=$lt_soname_spec
  30938. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30939. + case `$LD -v 2>&1` in
  30940. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30941. + ld_shlibs=no
  30942. + cat <<_LT_EOF 1>&2
  30943. -# Commands used to build and install an old-style archive.
  30944. -RANLIB=$lt_RANLIB
  30945. -old_archive_cmds=$lt_old_archive_cmds
  30946. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30947. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30948. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30949. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  30950. +*** is disabling shared libraries support. We urge you to upgrade GNU
  30951. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30952. +*** your PATH or compiler configuration so that the native linker is
  30953. +*** used, and then restart.
  30954. -# Create an old-style archive from a shared archive.
  30955. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30956. +_LT_EOF
  30957. + ;;
  30958. + *)
  30959. + # For security reasons, it is highly recommended that you always
  30960. + # use absolute paths for naming shared libraries, and exclude the
  30961. + # DT_RUNPATH tag from executables and libraries. But doing so
  30962. + # requires that you compile everything twice, which is a pain.
  30963. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  30964. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30965. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30966. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30967. + else
  30968. + ld_shlibs=no
  30969. + fi
  30970. + ;;
  30971. + esac
  30972. + ;;
  30973. -# Create a temporary old-style archive to link instead of a shared archive.
  30974. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30975. + sunos4*)
  30976. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30977. + wlarc=
  30978. + hardcode_direct=yes
  30979. + hardcode_shlibpath_var=no
  30980. + ;;
  30981. -# Commands used to build and install a shared archive.
  30982. -archive_cmds=$lt_archive_cmds
  30983. -archive_expsym_cmds=$lt_archive_expsym_cmds
  30984. -postinstall_cmds=$lt_postinstall_cmds
  30985. -postuninstall_cmds=$lt_postuninstall_cmds
  30986. + *)
  30987. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  30988. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30989. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30990. + else
  30991. + ld_shlibs=no
  30992. + fi
  30993. + ;;
  30994. + esac
  30995. -# Commands used to build a loadable module (assumed same as above if empty)
  30996. -module_cmds=$lt_module_cmds
  30997. -module_expsym_cmds=$lt_module_expsym_cmds
  30998. + if test "$ld_shlibs" = no; then
  30999. + runpath_var=
  31000. + hardcode_libdir_flag_spec=
  31001. + export_dynamic_flag_spec=
  31002. + whole_archive_flag_spec=
  31003. + fi
  31004. + else
  31005. + # PORTME fill in a description of your system's linker (not GNU ld)
  31006. + case $host_os in
  31007. + aix3*)
  31008. + allow_undefined_flag=unsupported
  31009. + always_export_symbols=yes
  31010. + 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'
  31011. + # Note: this linker hardcodes the directories in LIBPATH if there
  31012. + # are no directories specified by -L.
  31013. + hardcode_minus_L=yes
  31014. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31015. + # Neither direct hardcoding nor static linking is supported with a
  31016. + # broken collect2.
  31017. + hardcode_direct=unsupported
  31018. + fi
  31019. + ;;
  31020. -# Commands to strip libraries.
  31021. -old_striplib=$lt_old_striplib
  31022. -striplib=$lt_striplib
  31023. + aix[4-9]*)
  31024. + if test "$host_cpu" = ia64; then
  31025. + # On IA64, the linker does run time linking by default, so we don't
  31026. + # have to do anything special.
  31027. + aix_use_runtimelinking=no
  31028. + exp_sym_flag='-Bexport'
  31029. + no_entry_flag=""
  31030. + else
  31031. + # If we're using GNU nm, then we don't want the "-C" option.
  31032. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31033. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  31034. + 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'
  31035. + else
  31036. + 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'
  31037. + fi
  31038. + aix_use_runtimelinking=no
  31039. -# Dependencies to place before the objects being linked to create a
  31040. -# shared library.
  31041. -predep_objects=$lt_predep_objects
  31042. -
  31043. -# Dependencies to place after the objects being linked to create a
  31044. -# shared library.
  31045. -postdep_objects=$lt_postdep_objects
  31046. -
  31047. -# Dependencies to place before the objects being linked to create a
  31048. -# shared library.
  31049. -predeps=$lt_predeps
  31050. -
  31051. -# Dependencies to place after the objects being linked to create a
  31052. -# shared library.
  31053. -postdeps=$lt_postdeps
  31054. -
  31055. -# The library search path used internally by the compiler when linking
  31056. -# a shared library.
  31057. -compiler_lib_search_path=$lt_compiler_lib_search_path
  31058. + # Test if we are trying to use run time linking or normal
  31059. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31060. + # need to do runtime linking.
  31061. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  31062. + for ld_flag in $LDFLAGS; do
  31063. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31064. + aix_use_runtimelinking=yes
  31065. + break
  31066. + fi
  31067. + done
  31068. + ;;
  31069. + esac
  31070. -# Method to check whether dependent libraries are shared objects.
  31071. -deplibs_check_method=$lt_deplibs_check_method
  31072. + exp_sym_flag='-bexport'
  31073. + no_entry_flag='-bnoentry'
  31074. + fi
  31075. -# Command to use when deplibs_check_method == file_magic.
  31076. -file_magic_cmd=$lt_file_magic_cmd
  31077. + # When large executables or shared objects are built, AIX ld can
  31078. + # have problems creating the table of contents. If linking a library
  31079. + # or program results in "error TOC overflow" add -mminimal-toc to
  31080. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31081. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31082. -# Flag that allows shared libraries with undefined symbols to be built.
  31083. -allow_undefined_flag=$lt_allow_undefined_flag
  31084. + archive_cmds=''
  31085. + hardcode_direct=yes
  31086. + hardcode_direct_absolute=yes
  31087. + hardcode_libdir_separator=':'
  31088. + link_all_deplibs=yes
  31089. + file_list_spec='${wl}-f,'
  31090. -# Flag that forces no undefined symbols.
  31091. -no_undefined_flag=$lt_no_undefined_flag
  31092. + if test "$GCC" = yes; then
  31093. + case $host_os in aix4.[012]|aix4.[012].*)
  31094. + # We only want to do this on AIX 4.2 and lower, the check
  31095. + # below for broken collect2 doesn't work under 4.3+
  31096. + collect2name=`${CC} -print-prog-name=collect2`
  31097. + if test -f "$collect2name" &&
  31098. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  31099. + then
  31100. + # We have reworked collect2
  31101. + :
  31102. + else
  31103. + # We have old collect2
  31104. + hardcode_direct=unsupported
  31105. + # It fails to find uninstalled libraries when the uninstalled
  31106. + # path is not listed in the libpath. Setting hardcode_minus_L
  31107. + # to unsupported forces relinking
  31108. + hardcode_minus_L=yes
  31109. + hardcode_libdir_flag_spec='-L$libdir'
  31110. + hardcode_libdir_separator=
  31111. + fi
  31112. + ;;
  31113. + esac
  31114. + shared_flag='-shared'
  31115. + if test "$aix_use_runtimelinking" = yes; then
  31116. + shared_flag="$shared_flag "'${wl}-G'
  31117. + fi
  31118. + link_all_deplibs=no
  31119. + else
  31120. + # not using gcc
  31121. + if test "$host_cpu" = ia64; then
  31122. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31123. + # chokes on -Wl,-G. The following line is correct:
  31124. + shared_flag='-G'
  31125. + else
  31126. + if test "$aix_use_runtimelinking" = yes; then
  31127. + shared_flag='${wl}-G'
  31128. + else
  31129. + shared_flag='${wl}-bM:SRE'
  31130. + fi
  31131. + fi
  31132. + fi
  31133. -# Commands used to finish a libtool library installation in a directory.
  31134. -finish_cmds=$lt_finish_cmds
  31135. + export_dynamic_flag_spec='${wl}-bexpall'
  31136. + # It seems that -bexpall does not export symbols beginning with
  31137. + # underscore (_), so it is better to generate a list of symbols to export.
  31138. + always_export_symbols=yes
  31139. + if test "$aix_use_runtimelinking" = yes; then
  31140. + # Warning - without using the other runtime loading flags (-brtl),
  31141. + # -berok will link without error, but may produce a broken library.
  31142. + allow_undefined_flag='-berok'
  31143. + # Determine the default libpath from the value encoded in an
  31144. + # empty executable.
  31145. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31146. +/* end confdefs.h. */
  31147. -# Same as above, but a single script fragment to be evaled but not shown.
  31148. -finish_eval=$lt_finish_eval
  31149. +int
  31150. +main ()
  31151. +{
  31152. -# Take the output of nm and produce a listing of raw symbols and C names.
  31153. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31154. + ;
  31155. + return 0;
  31156. +}
  31157. +_ACEOF
  31158. +if ac_fn_c_try_link "$LINENO"; then :
  31159. -# Transform the output of nm in a proper C declaration
  31160. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31161. +lt_aix_libpath_sed='
  31162. + /Import File Strings/,/^$/ {
  31163. + /^0/ {
  31164. + s/^0 *\(.*\)$/\1/
  31165. + p
  31166. + }
  31167. + }'
  31168. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31169. +# Check for a 64-bit object if we didn't find anything.
  31170. +if test -z "$aix_libpath"; then
  31171. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31172. +fi
  31173. +fi
  31174. +rm -f core conftest.err conftest.$ac_objext \
  31175. + conftest$ac_exeext conftest.$ac_ext
  31176. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31177. -# Transform the output of nm in a C name address pair
  31178. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31179. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  31180. + 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"
  31181. + else
  31182. + if test "$host_cpu" = ia64; then
  31183. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  31184. + allow_undefined_flag="-z nodefs"
  31185. + 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"
  31186. + else
  31187. + # Determine the default libpath from the value encoded in an
  31188. + # empty executable.
  31189. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31190. +/* end confdefs.h. */
  31191. -# This is the shared library runtime path variable.
  31192. -runpath_var=$runpath_var
  31193. +int
  31194. +main ()
  31195. +{
  31196. -# This is the shared library path variable.
  31197. -shlibpath_var=$shlibpath_var
  31198. + ;
  31199. + return 0;
  31200. +}
  31201. +_ACEOF
  31202. +if ac_fn_c_try_link "$LINENO"; then :
  31203. -# Is shlibpath searched before the hard-coded library search path?
  31204. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31205. +lt_aix_libpath_sed='
  31206. + /Import File Strings/,/^$/ {
  31207. + /^0/ {
  31208. + s/^0 *\(.*\)$/\1/
  31209. + p
  31210. + }
  31211. + }'
  31212. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31213. +# Check for a 64-bit object if we didn't find anything.
  31214. +if test -z "$aix_libpath"; then
  31215. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31216. +fi
  31217. +fi
  31218. +rm -f core conftest.err conftest.$ac_objext \
  31219. + conftest$ac_exeext conftest.$ac_ext
  31220. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31221. -# How to hardcode a shared library path into an executable.
  31222. -hardcode_action=$hardcode_action
  31223. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  31224. + # Warning - without using the other run time loading flags,
  31225. + # -berok will link without error, but may produce a broken library.
  31226. + no_undefined_flag=' ${wl}-bernotok'
  31227. + allow_undefined_flag=' ${wl}-berok'
  31228. + # Exported symbols can be pulled into shared objects from archives
  31229. + whole_archive_flag_spec='$convenience'
  31230. + archive_cmds_need_lc=yes
  31231. + # This is similar to how AIX traditionally builds its shared libraries.
  31232. + 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'
  31233. + fi
  31234. + fi
  31235. + ;;
  31236. -# Whether we should hardcode library paths into libraries.
  31237. -hardcode_into_libs=$hardcode_into_libs
  31238. + amigaos*)
  31239. + case $host_cpu in
  31240. + powerpc)
  31241. + # see comment about AmigaOS4 .so support
  31242. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31243. + archive_expsym_cmds=''
  31244. + ;;
  31245. + m68k)
  31246. + 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)'
  31247. + hardcode_libdir_flag_spec='-L$libdir'
  31248. + hardcode_minus_L=yes
  31249. + ;;
  31250. + esac
  31251. + ;;
  31252. -# Flag to hardcode \$libdir into a binary during linking.
  31253. -# This must work even if \$libdir does not exist.
  31254. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  31255. + bsdi[45]*)
  31256. + export_dynamic_flag_spec=-rdynamic
  31257. + ;;
  31258. -# If ld is used when linking, flag to hardcode \$libdir into
  31259. -# a binary during linking. This must work even if \$libdir does
  31260. -# not exist.
  31261. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  31262. + cygwin* | mingw* | pw32* | cegcc*)
  31263. + # When not using gcc, we currently assume that we are using
  31264. + # Microsoft Visual C++.
  31265. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  31266. + # no search path for DLLs.
  31267. + hardcode_libdir_flag_spec=' '
  31268. + allow_undefined_flag=unsupported
  31269. + # Tell ltmain to make .lib files, not .a files.
  31270. + libext=lib
  31271. + # Tell ltmain to make .dll files, not .so files.
  31272. + shrext_cmds=".dll"
  31273. + # FIXME: Setting linknames here is a bad hack.
  31274. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31275. + # The linker will automatically build a .lib file if we build a DLL.
  31276. + old_archive_from_new_cmds='true'
  31277. + # FIXME: Should let the user specify the lib program.
  31278. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  31279. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  31280. + enable_shared_with_static_runtimes=yes
  31281. + ;;
  31282. -# Whether we need a single -rpath flag with a separated argument.
  31283. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  31284. + darwin* | rhapsody*)
  31285. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31286. -# resulting binary.
  31287. -hardcode_direct=$hardcode_direct
  31288. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31289. -# resulting binary.
  31290. -hardcode_minus_L=$hardcode_minus_L
  31291. + archive_cmds_need_lc=no
  31292. + hardcode_direct=no
  31293. + hardcode_automatic=yes
  31294. + hardcode_shlibpath_var=unsupported
  31295. + whole_archive_flag_spec=''
  31296. + link_all_deplibs=yes
  31297. + allow_undefined_flag="$_lt_dar_allow_undefined"
  31298. + case $cc_basename in
  31299. + ifort*) _lt_dar_can_shared=yes ;;
  31300. + *) _lt_dar_can_shared=$GCC ;;
  31301. + esac
  31302. + if test "$_lt_dar_can_shared" = "yes"; then
  31303. + output_verbose_link_cmd=echo
  31304. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  31305. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  31306. + 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}"
  31307. + 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}"
  31308. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31309. -# the resulting binary.
  31310. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  31311. + else
  31312. + ld_shlibs=no
  31313. + fi
  31314. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31315. -# and all subsequent libraries and executables linked against it.
  31316. -hardcode_automatic=$hardcode_automatic
  31317. + ;;
  31318. -# Variables whose values should be saved in libtool wrapper scripts and
  31319. -# restored at relink time.
  31320. -variables_saved_for_relink="$variables_saved_for_relink"
  31321. -
  31322. -# Whether libtool must link a program against all its dependency libraries.
  31323. -link_all_deplibs=$link_all_deplibs
  31324. -
  31325. -# Compile-time system search path for libraries
  31326. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31327. -
  31328. -# Run-time system search path for libraries
  31329. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31330. -
  31331. -# Fix the shell variable \$srcfile for the compiler.
  31332. -fix_srcfile_path="$fix_srcfile_path"
  31333. -
  31334. -# Set to yes if exported symbols are required.
  31335. -always_export_symbols=$always_export_symbols
  31336. + dgux*)
  31337. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31338. + hardcode_libdir_flag_spec='-L$libdir'
  31339. + hardcode_shlibpath_var=no
  31340. + ;;
  31341. -# The commands to list exported symbols.
  31342. -export_symbols_cmds=$lt_export_symbols_cmds
  31343. + freebsd1*)
  31344. + ld_shlibs=no
  31345. + ;;
  31346. -# The commands to extract the exported symbol list from a shared archive.
  31347. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31348. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31349. + # support. Future versions do this automatically, but an explicit c++rt0.o
  31350. + # does not break anything, and helps significantly (at the cost of a little
  31351. + # extra space).
  31352. + freebsd2.2*)
  31353. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31354. + hardcode_libdir_flag_spec='-R$libdir'
  31355. + hardcode_direct=yes
  31356. + hardcode_shlibpath_var=no
  31357. + ;;
  31358. -# Symbols that should not be listed in the preloaded symbols.
  31359. -exclude_expsyms=$lt_exclude_expsyms
  31360. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31361. + freebsd2*)
  31362. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31363. + hardcode_direct=yes
  31364. + hardcode_minus_L=yes
  31365. + hardcode_shlibpath_var=no
  31366. + ;;
  31367. -# Symbols that must always be exported.
  31368. -include_expsyms=$lt_include_expsyms
  31369. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31370. + freebsd* | dragonfly*)
  31371. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31372. + hardcode_libdir_flag_spec='-R$libdir'
  31373. + hardcode_direct=yes
  31374. + hardcode_shlibpath_var=no
  31375. + ;;
  31376. -# ### END LIBTOOL CONFIG
  31377. + hpux9*)
  31378. + if test "$GCC" = yes; then
  31379. + 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'
  31380. + else
  31381. + 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'
  31382. + fi
  31383. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  31384. + hardcode_libdir_separator=:
  31385. + hardcode_direct=yes
  31386. -__EOF__
  31387. + # hardcode_minus_L: Not really in the search PATH,
  31388. + # but as the default location of the library.
  31389. + hardcode_minus_L=yes
  31390. + export_dynamic_flag_spec='${wl}-E'
  31391. + ;;
  31392. + hpux10*)
  31393. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31394. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31395. + else
  31396. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31397. + fi
  31398. + if test "$with_gnu_ld" = no; then
  31399. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  31400. + hardcode_libdir_flag_spec_ld='+b $libdir'
  31401. + hardcode_libdir_separator=:
  31402. + hardcode_direct=yes
  31403. + hardcode_direct_absolute=yes
  31404. + export_dynamic_flag_spec='${wl}-E'
  31405. + # hardcode_minus_L: Not really in the search PATH,
  31406. + # but as the default location of the library.
  31407. + hardcode_minus_L=yes
  31408. + fi
  31409. + ;;
  31410. - case $host_os in
  31411. - aix3*)
  31412. - cat <<\EOF >> "$cfgfile"
  31413. + hpux11*)
  31414. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31415. + case $host_cpu in
  31416. + hppa*64*)
  31417. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31418. + ;;
  31419. + ia64*)
  31420. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31421. + ;;
  31422. + *)
  31423. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31424. + ;;
  31425. + esac
  31426. + else
  31427. + case $host_cpu in
  31428. + hppa*64*)
  31429. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31430. + ;;
  31431. + ia64*)
  31432. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31433. + ;;
  31434. + *)
  31435. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31436. + ;;
  31437. + esac
  31438. + fi
  31439. + if test "$with_gnu_ld" = no; then
  31440. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  31441. + hardcode_libdir_separator=:
  31442. -# AIX sometimes has problems with the GCC collect2 program. For some
  31443. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  31444. -# vanish in a puff of smoke.
  31445. -if test "X${COLLECT_NAMES+set}" != Xset; then
  31446. - COLLECT_NAMES=
  31447. - export COLLECT_NAMES
  31448. -fi
  31449. -EOF
  31450. - ;;
  31451. - esac
  31452. + case $host_cpu in
  31453. + hppa*64*|ia64*)
  31454. + hardcode_direct=no
  31455. + hardcode_shlibpath_var=no
  31456. + ;;
  31457. + *)
  31458. + hardcode_direct=yes
  31459. + hardcode_direct_absolute=yes
  31460. + export_dynamic_flag_spec='${wl}-E'
  31461. - # We use sed instead of cat because bash on DJGPP gets confused if
  31462. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  31463. - # text mode, it properly converts lines to CR/LF. This bash problem
  31464. - # is reportedly fixed, but why not run on old versions too?
  31465. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  31466. + # hardcode_minus_L: Not really in the search PATH,
  31467. + # but as the default location of the library.
  31468. + hardcode_minus_L=yes
  31469. + ;;
  31470. + esac
  31471. + fi
  31472. + ;;
  31473. - mv -f "$cfgfile" "$ofile" || \
  31474. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  31475. - chmod +x "$ofile"
  31476. + irix5* | irix6* | nonstopux*)
  31477. + if test "$GCC" = yes; then
  31478. + 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'
  31479. + # Try to use the -exported_symbol ld option, if it does not
  31480. + # work, assume that -exports_file does not work either and
  31481. + # implicitly export all symbols.
  31482. + save_LDFLAGS="$LDFLAGS"
  31483. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  31484. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31485. +/* end confdefs.h. */
  31486. +int foo(void) {}
  31487. +_ACEOF
  31488. +if ac_fn_c_try_link "$LINENO"; then :
  31489. + 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'
  31490. -else
  31491. - # If there is no Makefile yet, we rely on a make rule to execute
  31492. - # `config.status --recheck' to rerun these tests and create the
  31493. - # libtool script then.
  31494. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31495. - if test -f "$ltmain_in"; then
  31496. - test -f Makefile && make "$ltmain"
  31497. - fi
  31498. fi
  31499. +rm -f core conftest.err conftest.$ac_objext \
  31500. + conftest$ac_exeext conftest.$ac_ext
  31501. + LDFLAGS="$save_LDFLAGS"
  31502. + else
  31503. + 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'
  31504. + 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'
  31505. + fi
  31506. + archive_cmds_need_lc='no'
  31507. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  31508. + hardcode_libdir_separator=:
  31509. + inherit_rpath=yes
  31510. + link_all_deplibs=yes
  31511. + ;;
  31512. + netbsd* | netbsdelf*-gnu)
  31513. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  31514. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31515. + else
  31516. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31517. + fi
  31518. + hardcode_libdir_flag_spec='-R$libdir'
  31519. + hardcode_direct=yes
  31520. + hardcode_shlibpath_var=no
  31521. + ;;
  31522. -ac_ext=c
  31523. -ac_cpp='$CPP $CPPFLAGS'
  31524. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31525. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31526. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31527. -
  31528. -CC="$lt_save_CC"
  31529. + newsos6)
  31530. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31531. + hardcode_direct=yes
  31532. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  31533. + hardcode_libdir_separator=:
  31534. + hardcode_shlibpath_var=no
  31535. + ;;
  31536. + *nto* | *qnx*)
  31537. + ;;
  31538. -# Check whether --with-tags was given.
  31539. -if test "${with_tags+set}" = set; then
  31540. - withval=$with_tags; tagnames="$withval"
  31541. -fi
  31542. + openbsd*)
  31543. + if test -f /usr/libexec/ld.so; then
  31544. + hardcode_direct=yes
  31545. + hardcode_shlibpath_var=no
  31546. + hardcode_direct_absolute=yes
  31547. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31548. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31549. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31550. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  31551. + export_dynamic_flag_spec='${wl}-E'
  31552. + else
  31553. + case $host_os in
  31554. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31555. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31556. + hardcode_libdir_flag_spec='-R$libdir'
  31557. + ;;
  31558. + *)
  31559. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31560. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  31561. + ;;
  31562. + esac
  31563. + fi
  31564. + else
  31565. + ld_shlibs=no
  31566. + fi
  31567. + ;;
  31568. + os2*)
  31569. + hardcode_libdir_flag_spec='-L$libdir'
  31570. + hardcode_minus_L=yes
  31571. + allow_undefined_flag=unsupported
  31572. + 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'
  31573. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31574. + ;;
  31575. -if test -f "$ltmain" && test -n "$tagnames"; then
  31576. - if test ! -f "${ofile}"; then
  31577. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  31578. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  31579. - fi
  31580. + osf3*)
  31581. + if test "$GCC" = yes; then
  31582. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  31583. + 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'
  31584. + else
  31585. + allow_undefined_flag=' -expect_unresolved \*'
  31586. + 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'
  31587. + fi
  31588. + archive_cmds_need_lc='no'
  31589. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  31590. + hardcode_libdir_separator=:
  31591. + ;;
  31592. - if test -z "$LTCC"; then
  31593. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  31594. - if test -z "$LTCC"; then
  31595. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  31596. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  31597. - else
  31598. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  31599. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  31600. - fi
  31601. - fi
  31602. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  31603. + if test "$GCC" = yes; then
  31604. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  31605. + 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'
  31606. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  31607. + else
  31608. + allow_undefined_flag=' -expect_unresolved \*'
  31609. + 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'
  31610. + 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~
  31611. + $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'
  31612. - # Extract list of available tagged configurations in $ofile.
  31613. - # Note that this assumes the entire list is on one line.
  31614. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  31615. + # Both c and cxx compiler support -rpath directly
  31616. + hardcode_libdir_flag_spec='-rpath $libdir'
  31617. + fi
  31618. + archive_cmds_need_lc='no'
  31619. + hardcode_libdir_separator=:
  31620. + ;;
  31621. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31622. - for tagname in $tagnames; do
  31623. - IFS="$lt_save_ifs"
  31624. - # Check whether tagname contains only valid characters
  31625. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  31626. - "") ;;
  31627. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  31628. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  31629. - { (exit 1); exit 1; }; }
  31630. + solaris*)
  31631. + no_undefined_flag=' -z defs'
  31632. + if test "$GCC" = yes; then
  31633. + wlarc='${wl}'
  31634. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31635. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  31636. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  31637. + else
  31638. + case `$CC -V 2>&1` in
  31639. + *"Compilers 5.0"*)
  31640. + wlarc=''
  31641. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31642. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  31643. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  31644. + ;;
  31645. + *)
  31646. + wlarc='${wl}'
  31647. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31648. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  31649. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  31650. + ;;
  31651. + esac
  31652. + fi
  31653. + hardcode_libdir_flag_spec='-R$libdir'
  31654. + hardcode_shlibpath_var=no
  31655. + case $host_os in
  31656. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  31657. + *)
  31658. + # The compiler driver will combine and reorder linker options,
  31659. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  31660. + # but is careful enough not to reorder.
  31661. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  31662. + if test "$GCC" = yes; then
  31663. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  31664. + else
  31665. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  31666. + fi
  31667. ;;
  31668. - esac
  31669. -
  31670. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  31671. - then
  31672. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  31673. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  31674. - { (exit 1); exit 1; }; }
  31675. - fi
  31676. -
  31677. - # Update the list of available tags.
  31678. - if test -n "$tagname"; then
  31679. - echo appending configuration tag \"$tagname\" to $ofile
  31680. -
  31681. - case $tagname in
  31682. - CXX)
  31683. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  31684. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  31685. - (test "X$CXX" != "Xg++"))) ; then
  31686. - ac_ext=cpp
  31687. -ac_cpp='$CXXCPP $CPPFLAGS'
  31688. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31689. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31690. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31691. + esac
  31692. + link_all_deplibs=yes
  31693. + ;;
  31694. + sunos4*)
  31695. + if test "x$host_vendor" = xsequent; then
  31696. + # Use $CC to link under sequent, because it throws in some extra .o
  31697. + # files that make .init and .fini sections work.
  31698. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31699. + else
  31700. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31701. + fi
  31702. + hardcode_libdir_flag_spec='-L$libdir'
  31703. + hardcode_direct=yes
  31704. + hardcode_minus_L=yes
  31705. + hardcode_shlibpath_var=no
  31706. + ;;
  31707. + sysv4)
  31708. + case $host_vendor in
  31709. + sni)
  31710. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31711. + hardcode_direct=yes # is this really true???
  31712. + ;;
  31713. + siemens)
  31714. + ## LD is ld it makes a PLAMLIB
  31715. + ## CC just makes a GrossModule.
  31716. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31717. + reload_cmds='$CC -r -o $output$reload_objs'
  31718. + hardcode_direct=no
  31719. + ;;
  31720. + motorola)
  31721. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31722. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  31723. + ;;
  31724. + esac
  31725. + runpath_var='LD_RUN_PATH'
  31726. + hardcode_shlibpath_var=no
  31727. + ;;
  31728. + sysv4.3*)
  31729. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31730. + hardcode_shlibpath_var=no
  31731. + export_dynamic_flag_spec='-Bexport'
  31732. + ;;
  31733. -archive_cmds_need_lc_CXX=no
  31734. -allow_undefined_flag_CXX=
  31735. -always_export_symbols_CXX=no
  31736. -archive_expsym_cmds_CXX=
  31737. -export_dynamic_flag_spec_CXX=
  31738. -hardcode_direct_CXX=no
  31739. -hardcode_libdir_flag_spec_CXX=
  31740. -hardcode_libdir_flag_spec_ld_CXX=
  31741. -hardcode_libdir_separator_CXX=
  31742. -hardcode_minus_L_CXX=no
  31743. -hardcode_automatic_CXX=no
  31744. -module_cmds_CXX=
  31745. -module_expsym_cmds_CXX=
  31746. -link_all_deplibs_CXX=unknown
  31747. -old_archive_cmds_CXX=$old_archive_cmds
  31748. -no_undefined_flag_CXX=
  31749. -whole_archive_flag_spec_CXX=
  31750. -enable_shared_with_static_runtimes_CXX=no
  31751. -
  31752. -# Dependencies to place before and after the object being linked:
  31753. -predep_objects_CXX=
  31754. -postdep_objects_CXX=
  31755. -predeps_CXX=
  31756. -postdeps_CXX=
  31757. -compiler_lib_search_path_CXX=
  31758. -
  31759. -# Source file extension for C++ test sources.
  31760. -ac_ext=cc
  31761. -
  31762. -# Object file extension for compiled C++ test sources.
  31763. -objext=o
  31764. -objext_CXX=$objext
  31765. + sysv4*MP*)
  31766. + if test -d /usr/nec; then
  31767. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31768. + hardcode_shlibpath_var=no
  31769. + runpath_var=LD_RUN_PATH
  31770. + hardcode_runpath_var=yes
  31771. + ld_shlibs=yes
  31772. + fi
  31773. + ;;
  31774. -# Code to be used in simple compile tests
  31775. -lt_simple_compile_test_code="int some_variable = 0;\n"
  31776. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31777. + no_undefined_flag='${wl}-z,text'
  31778. + archive_cmds_need_lc=no
  31779. + hardcode_shlibpath_var=no
  31780. + runpath_var='LD_RUN_PATH'
  31781. -# Code to be used in simple link tests
  31782. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  31783. + if test "$GCC" = yes; then
  31784. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31785. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31786. + else
  31787. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31788. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31789. + fi
  31790. + ;;
  31791. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31792. + sysv5* | sco3.2v5* | sco5v6*)
  31793. + # Note: We can NOT use -z defs as we might desire, because we do not
  31794. + # link with -lc, and that would cause any symbols used from libc to
  31795. + # always be unresolved, which means just about no library would
  31796. + # ever link correctly. If we're not using GNU ld we use -z text
  31797. + # though, which does catch some bad symbols but isn't as heavy-handed
  31798. + # as -z defs.
  31799. + no_undefined_flag='${wl}-z,text'
  31800. + allow_undefined_flag='${wl}-z,nodefs'
  31801. + archive_cmds_need_lc=no
  31802. + hardcode_shlibpath_var=no
  31803. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  31804. + hardcode_libdir_separator=':'
  31805. + link_all_deplibs=yes
  31806. + export_dynamic_flag_spec='${wl}-Bexport'
  31807. + runpath_var='LD_RUN_PATH'
  31808. -# If no C compiler was specified, use CC.
  31809. -LTCC=${LTCC-"$CC"}
  31810. + if test "$GCC" = yes; then
  31811. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31812. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31813. + else
  31814. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31815. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31816. + fi
  31817. + ;;
  31818. -# Allow CC to be a program name with arguments.
  31819. -compiler=$CC
  31820. + uts4*)
  31821. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31822. + hardcode_libdir_flag_spec='-L$libdir'
  31823. + hardcode_shlibpath_var=no
  31824. + ;;
  31825. + *)
  31826. + ld_shlibs=no
  31827. + ;;
  31828. + esac
  31829. -# Allow CC to be a program name with arguments.
  31830. -lt_save_CC=$CC
  31831. -lt_save_LD=$LD
  31832. -lt_save_GCC=$GCC
  31833. -GCC=$GXX
  31834. -lt_save_with_gnu_ld=$with_gnu_ld
  31835. -lt_save_path_LD=$lt_cv_path_LD
  31836. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  31837. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  31838. -else
  31839. - unset lt_cv_prog_gnu_ld
  31840. -fi
  31841. -if test -n "${lt_cv_path_LDCXX+set}"; then
  31842. - lt_cv_path_LD=$lt_cv_path_LDCXX
  31843. -else
  31844. - unset lt_cv_path_LD
  31845. -fi
  31846. -test -z "${LDCXX+set}" || LD=$LDCXX
  31847. -CC=${CXX-"c++"}
  31848. -compiler=$CC
  31849. -compiler_CXX=$CC
  31850. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  31851. + if test x$host_vendor = xsni; then
  31852. + case $host in
  31853. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  31854. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  31855. + ;;
  31856. + esac
  31857. + fi
  31858. + fi
  31859. -# We don't want -fno-exception wen compiling C++ code, so set the
  31860. -# no_builtin_flag separately
  31861. -if test "$GXX" = yes; then
  31862. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  31863. -else
  31864. - lt_prog_compiler_no_builtin_flag_CXX=
  31865. -fi
  31866. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  31867. +$as_echo "$ld_shlibs" >&6; }
  31868. +test "$ld_shlibs" = no && can_build_shared=no
  31869. -if test "$GXX" = yes; then
  31870. - # Set up default GNU C++ configuration
  31871. +with_gnu_ld=$with_gnu_ld
  31872. -# Check whether --with-gnu-ld was given.
  31873. -if test "${with_gnu_ld+set}" = set; then
  31874. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  31875. -else
  31876. - with_gnu_ld=no
  31877. -fi
  31878. -ac_prog=ld
  31879. -if test "$GCC" = yes; then
  31880. - # Check if gcc -print-prog-name=ld gives a path.
  31881. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  31882. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  31883. - case $host in
  31884. - *-*-mingw*)
  31885. - # gcc leaves a trailing carriage return which upsets mingw
  31886. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  31887. - *)
  31888. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  31889. - esac
  31890. - case $ac_prog in
  31891. - # Accept absolute paths.
  31892. - [\\/]* | ?:[\\/]*)
  31893. - re_direlt='/[^/][^/]*/\.\./'
  31894. - # Canonicalize the pathname of ld
  31895. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  31896. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  31897. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  31898. - done
  31899. - test -z "$LD" && LD="$ac_prog"
  31900. - ;;
  31901. - "")
  31902. - # If it fails, then pretend we aren't using GCC.
  31903. - ac_prog=ld
  31904. - ;;
  31905. - *)
  31906. - # If it is relative, then search for the first ld in PATH.
  31907. - with_gnu_ld=unknown
  31908. - ;;
  31909. - esac
  31910. -elif test "$with_gnu_ld" = yes; then
  31911. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  31912. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  31913. -else
  31914. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  31915. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  31916. -fi
  31917. -if test "${lt_cv_path_LD+set}" = set; then
  31918. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31919. -else
  31920. - if test -z "$LD"; then
  31921. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31922. - for ac_dir in $PATH; do
  31923. - IFS="$lt_save_ifs"
  31924. - test -z "$ac_dir" && ac_dir=.
  31925. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  31926. - lt_cv_path_LD="$ac_dir/$ac_prog"
  31927. - # Check to see if the program is GNU ld. I'd rather use --version,
  31928. - # but apparently some GNU ld's only accept -v.
  31929. - # Break only if it was the GNU/non-GNU ld that we prefer.
  31930. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  31931. - *GNU* | *'with BFD'*)
  31932. - test "$with_gnu_ld" != no && break
  31933. - ;;
  31934. - *)
  31935. - test "$with_gnu_ld" != yes && break
  31936. - ;;
  31937. - esac
  31938. - fi
  31939. - done
  31940. - IFS="$lt_save_ifs"
  31941. -else
  31942. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  31943. -fi
  31944. -fi
  31945. -LD="$lt_cv_path_LD"
  31946. -if test -n "$LD"; then
  31947. - { echo "$as_me:$LINENO: result: $LD" >&5
  31948. -echo "${ECHO_T}$LD" >&6; }
  31949. -else
  31950. - { echo "$as_me:$LINENO: result: no" >&5
  31951. -echo "${ECHO_T}no" >&6; }
  31952. -fi
  31953. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  31954. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  31955. - { (exit 1); exit 1; }; }
  31956. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  31957. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  31958. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  31959. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31960. -else
  31961. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  31962. -case `$LD -v 2>&1 </dev/null` in
  31963. -*GNU* | *'with BFD'*)
  31964. - lt_cv_prog_gnu_ld=yes
  31965. - ;;
  31966. -*)
  31967. - lt_cv_prog_gnu_ld=no
  31968. - ;;
  31969. -esac
  31970. -fi
  31971. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  31972. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  31973. -with_gnu_ld=$lt_cv_prog_gnu_ld
  31974. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  31975. - # archiving commands below assume that GNU ld is being used.
  31976. - if test "$with_gnu_ld" = yes; then
  31977. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31978. - 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'
  31979. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31980. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31981. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31982. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  31983. - # investigate it a little bit more. (MM)
  31984. - wlarc='${wl}'
  31985. - # ancient GNU ld didn't support --whole-archive et. al.
  31986. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  31987. - grep 'no-whole-archive' > /dev/null; then
  31988. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31989. - else
  31990. - whole_archive_flag_spec_CXX=
  31991. - fi
  31992. - else
  31993. - with_gnu_ld=no
  31994. - wlarc=
  31995. - # A generic and very simple default shared library creation
  31996. - # command for GNU C++ for the case where it uses the native
  31997. - # linker, instead of GNU ld. If possible, this setting should
  31998. - # overridden to take advantage of the native linker features on
  31999. - # the platform it is being used on.
  32000. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  32001. - fi
  32002. - # Commands to make compiler produce verbose output that lists
  32003. - # what "hidden" libraries, object files and flags are used when
  32004. - # linking a shared library.
  32005. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32006. -else
  32007. - GXX=no
  32008. - with_gnu_ld=no
  32009. - wlarc=
  32010. -fi
  32011. -# PORTME: fill in a description of your system's C++ link characteristics
  32012. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  32013. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  32014. -ld_shlibs_CXX=yes
  32015. -case $host_os in
  32016. - aix3*)
  32017. - # FIXME: insert proper C++ library support
  32018. - ld_shlibs_CXX=no
  32019. - ;;
  32020. - aix4* | aix5*)
  32021. - if test "$host_cpu" = ia64; then
  32022. - # On IA64, the linker does run time linking by default, so we don't
  32023. - # have to do anything special.
  32024. - aix_use_runtimelinking=no
  32025. - exp_sym_flag='-Bexport'
  32026. - no_entry_flag=""
  32027. - else
  32028. - aix_use_runtimelinking=no
  32029. - # Test if we are trying to use run time linking or normal
  32030. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  32031. - # need to do runtime linking.
  32032. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  32033. - for ld_flag in $LDFLAGS; do
  32034. - case $ld_flag in
  32035. - *-brtl*)
  32036. - aix_use_runtimelinking=yes
  32037. - break
  32038. - ;;
  32039. - esac
  32040. - done
  32041. - esac
  32042. +#
  32043. +# Do we need to explicitly link libc?
  32044. +#
  32045. +case "x$archive_cmds_need_lc" in
  32046. +x|xyes)
  32047. + # Assume -lc should be added
  32048. + archive_cmds_need_lc=yes
  32049. - exp_sym_flag='-bexport'
  32050. - no_entry_flag='-bnoentry'
  32051. - fi
  32052. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  32053. + case $archive_cmds in
  32054. + *'~'*)
  32055. + # FIXME: we may have to deal with multi-command sequences.
  32056. + ;;
  32057. + '$CC '*)
  32058. + # Test whether the compiler implicitly links with -lc since on some
  32059. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32060. + # to ld, don't add -lc before -lgcc.
  32061. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  32062. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  32063. + $RM conftest*
  32064. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32065. - # When large executables or shared objects are built, AIX ld can
  32066. - # have problems creating the table of contents. If linking a library
  32067. - # or program results in "error TOC overflow" add -mminimal-toc to
  32068. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  32069. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  32070. -
  32071. - archive_cmds_CXX=''
  32072. - hardcode_direct_CXX=yes
  32073. - hardcode_libdir_separator_CXX=':'
  32074. - link_all_deplibs_CXX=yes
  32075. -
  32076. - if test "$GXX" = yes; then
  32077. - case $host_os in aix4.012|aix4.012.*)
  32078. - # We only want to do this on AIX 4.2 and lower, the check
  32079. - # below for broken collect2 doesn't work under 4.3+
  32080. - collect2name=`${CC} -print-prog-name=collect2`
  32081. - if test -f "$collect2name" && \
  32082. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32083. - then
  32084. - # We have reworked collect2
  32085. - hardcode_direct_CXX=yes
  32086. - else
  32087. - # We have old collect2
  32088. - hardcode_direct_CXX=unsupported
  32089. - # It fails to find uninstalled libraries when the uninstalled
  32090. - # path is not listed in the libpath. Setting hardcode_minus_L
  32091. - # to unsupported forces relinking
  32092. - hardcode_minus_L_CXX=yes
  32093. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  32094. - hardcode_libdir_separator_CXX=
  32095. - fi
  32096. - esac
  32097. - shared_flag='-shared'
  32098. - else
  32099. - # not using gcc
  32100. - if test "$host_cpu" = ia64; then
  32101. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32102. - # chokes on -Wl,-G. The following line is correct:
  32103. - shared_flag='-G'
  32104. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  32105. + (eval $ac_compile) 2>&5
  32106. + ac_status=$?
  32107. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32108. + test $ac_status = 0; } 2>conftest.err; then
  32109. + soname=conftest
  32110. + lib=conftest
  32111. + libobjs=conftest.$ac_objext
  32112. + deplibs=
  32113. + wl=$lt_prog_compiler_wl
  32114. + pic_flag=$lt_prog_compiler_pic
  32115. + compiler_flags=-v
  32116. + linker_flags=-v
  32117. + verstring=
  32118. + output_objdir=.
  32119. + libname=conftest
  32120. + lt_save_allow_undefined_flag=$allow_undefined_flag
  32121. + allow_undefined_flag=
  32122. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  32123. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32124. + ac_status=$?
  32125. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32126. + test $ac_status = 0; }
  32127. + then
  32128. + archive_cmds_need_lc=no
  32129. + else
  32130. + archive_cmds_need_lc=yes
  32131. + fi
  32132. + allow_undefined_flag=$lt_save_allow_undefined_flag
  32133. else
  32134. - if test "$aix_use_runtimelinking" = yes; then
  32135. - shared_flag='${wl}-G'
  32136. - else
  32137. - shared_flag='${wl}-bM:SRE'
  32138. - fi
  32139. + cat conftest.err 1>&5
  32140. fi
  32141. - fi
  32142. + $RM conftest*
  32143. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  32144. +$as_echo "$archive_cmds_need_lc" >&6; }
  32145. + ;;
  32146. + esac
  32147. + fi
  32148. + ;;
  32149. +esac
  32150. - # It seems that -bexpall does not export symbols beginning with
  32151. - # underscore (_), so it is better to generate a list of symbols to export.
  32152. - always_export_symbols_CXX=yes
  32153. - if test "$aix_use_runtimelinking" = yes; then
  32154. - # Warning - without using the other runtime loading flags (-brtl),
  32155. - # -berok will link without error, but may produce a broken library.
  32156. - allow_undefined_flag_CXX='-berok'
  32157. - # Determine the default libpath from the value encoded in an empty executable.
  32158. - cat >conftest.$ac_ext <<_ACEOF
  32159. -/* confdefs.h. */
  32160. -_ACEOF
  32161. -cat confdefs.h >>conftest.$ac_ext
  32162. -cat >>conftest.$ac_ext <<_ACEOF
  32163. -/* end confdefs.h. */
  32164. -int
  32165. -main ()
  32166. -{
  32167. - ;
  32168. - return 0;
  32169. -}
  32170. -_ACEOF
  32171. -rm -f conftest.$ac_objext conftest$ac_exeext
  32172. -if { (ac_try="$ac_link"
  32173. -case "(($ac_try" in
  32174. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32175. - *) ac_try_echo=$ac_try;;
  32176. -esac
  32177. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32178. - (eval "$ac_link") 2>conftest.er1
  32179. - ac_status=$?
  32180. - grep -v '^ *+' conftest.er1 >conftest.err
  32181. - rm -f conftest.er1
  32182. - cat conftest.err >&5
  32183. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32184. - (exit $ac_status); } &&
  32185. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  32186. - { (case "(($ac_try" in
  32187. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32188. - *) ac_try_echo=$ac_try;;
  32189. -esac
  32190. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32191. - (eval "$ac_try") 2>&5
  32192. - ac_status=$?
  32193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32194. - (exit $ac_status); }; } &&
  32195. - { ac_try='test -s conftest$ac_exeext'
  32196. - { (case "(($ac_try" in
  32197. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32198. - *) ac_try_echo=$ac_try;;
  32199. -esac
  32200. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32201. - (eval "$ac_try") 2>&5
  32202. - ac_status=$?
  32203. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32204. - (exit $ac_status); }; }; then
  32205. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32206. -}'`
  32207. -# Check for a 64-bit object if we didn't find anything.
  32208. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32209. -}'`; fi
  32210. -else
  32211. - echo "$as_me: failed program was:" >&5
  32212. -sed 's/^/| /' conftest.$ac_ext >&5
  32213. -fi
  32214. -rm -f core conftest.err conftest.$ac_objext \
  32215. - conftest$ac_exeext conftest.$ac_ext
  32216. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32217. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  32218. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  32219. - else
  32220. - if test "$host_cpu" = ia64; then
  32221. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  32222. - allow_undefined_flag_CXX="-z nodefs"
  32223. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  32224. - else
  32225. - # Determine the default libpath from the value encoded in an empty executable.
  32226. - cat >conftest.$ac_ext <<_ACEOF
  32227. -/* confdefs.h. */
  32228. -_ACEOF
  32229. -cat confdefs.h >>conftest.$ac_ext
  32230. -cat >>conftest.$ac_ext <<_ACEOF
  32231. -/* end confdefs.h. */
  32232. -int
  32233. -main ()
  32234. -{
  32235. - ;
  32236. - return 0;
  32237. -}
  32238. -_ACEOF
  32239. -rm -f conftest.$ac_objext conftest$ac_exeext
  32240. -if { (ac_try="$ac_link"
  32241. -case "(($ac_try" in
  32242. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32243. - *) ac_try_echo=$ac_try;;
  32244. -esac
  32245. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32246. - (eval "$ac_link") 2>conftest.er1
  32247. - ac_status=$?
  32248. - grep -v '^ *+' conftest.er1 >conftest.err
  32249. - rm -f conftest.er1
  32250. - cat conftest.err >&5
  32251. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32252. - (exit $ac_status); } &&
  32253. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  32254. - { (case "(($ac_try" in
  32255. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32256. - *) ac_try_echo=$ac_try;;
  32257. -esac
  32258. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32259. - (eval "$ac_try") 2>&5
  32260. - ac_status=$?
  32261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32262. - (exit $ac_status); }; } &&
  32263. - { ac_try='test -s conftest$ac_exeext'
  32264. - { (case "(($ac_try" in
  32265. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32266. - *) ac_try_echo=$ac_try;;
  32267. -esac
  32268. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32269. - (eval "$ac_try") 2>&5
  32270. - ac_status=$?
  32271. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32272. - (exit $ac_status); }; }; then
  32273. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32274. -}'`
  32275. -# Check for a 64-bit object if we didn't find anything.
  32276. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32277. -}'`; fi
  32278. -else
  32279. - echo "$as_me: failed program was:" >&5
  32280. -sed 's/^/| /' conftest.$ac_ext >&5
  32281. -fi
  32282. -rm -f core conftest.err conftest.$ac_objext \
  32283. - conftest$ac_exeext conftest.$ac_ext
  32284. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32285. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  32286. - # Warning - without using the other run time loading flags,
  32287. - # -berok will link without error, but may produce a broken library.
  32288. - no_undefined_flag_CXX=' ${wl}-bernotok'
  32289. - allow_undefined_flag_CXX=' ${wl}-berok'
  32290. - # -bexpall does not export symbols beginning with underscore (_)
  32291. - always_export_symbols_CXX=yes
  32292. - # Exported symbols can be pulled into shared objects from archives
  32293. - whole_archive_flag_spec_CXX=' '
  32294. - archive_cmds_need_lc_CXX=yes
  32295. - # This is similar to how AIX traditionally builds it's shared libraries.
  32296. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  32297. - fi
  32298. - fi
  32299. - ;;
  32300. - chorus*)
  32301. - case $cc_basename in
  32302. - *)
  32303. - # FIXME: insert proper C++ library support
  32304. - ld_shlibs_CXX=no
  32305. - ;;
  32306. - esac
  32307. - ;;
  32308. - cygwin* | mingw* | pw32*)
  32309. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  32310. - # as there is no search path for DLLs.
  32311. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  32312. - allow_undefined_flag_CXX=unsupported
  32313. - always_export_symbols_CXX=no
  32314. - enable_shared_with_static_runtimes_CXX=yes
  32315. -
  32316. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  32317. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  32318. - # If the export-symbols file already is a .def file (1st line
  32319. - # is EXPORTS), use it as is; otherwise, prepend...
  32320. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  32321. - cp $export_symbols $output_objdir/$soname.def;
  32322. - else
  32323. - echo EXPORTS > $output_objdir/$soname.def;
  32324. - cat $export_symbols >> $output_objdir/$soname.def;
  32325. - fi~
  32326. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  32327. - else
  32328. - ld_shlibs_CXX=no
  32329. - fi
  32330. - ;;
  32331. - darwin* | rhapsody*)
  32332. - case "$host_os" in
  32333. - rhapsody* | darwin1.[012])
  32334. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  32335. - ;;
  32336. - *) # Darwin 1.3 on
  32337. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32338. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32339. - else
  32340. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32341. - 10.[012])
  32342. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32343. - ;;
  32344. - 10.*)
  32345. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  32346. - ;;
  32347. - esac
  32348. - fi
  32349. - ;;
  32350. - esac
  32351. - archive_cmds_need_lc_CXX=no
  32352. - hardcode_direct_CXX=no
  32353. - hardcode_automatic_CXX=yes
  32354. - hardcode_shlibpath_var_CXX=unsupported
  32355. - whole_archive_flag_spec_CXX=''
  32356. - link_all_deplibs_CXX=yes
  32357. -
  32358. - if test "$GXX" = yes ; then
  32359. - lt_int_apple_cc_single_mod=no
  32360. - output_verbose_link_cmd='echo'
  32361. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  32362. - lt_int_apple_cc_single_mod=yes
  32363. - fi
  32364. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  32365. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32366. - else
  32367. - 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'
  32368. - fi
  32369. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32370. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  32371. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  32372. - 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}'
  32373. - else
  32374. - 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}'
  32375. - fi
  32376. - 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}'
  32377. - else
  32378. - case "$cc_basename" in
  32379. - xlc*)
  32380. - output_verbose_link_cmd='echo'
  32381. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  32382. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32383. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  32384. - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32385. - 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}'
  32386. - ;;
  32387. - *)
  32388. - ld_shlibs_CXX=no
  32389. - ;;
  32390. - esac
  32391. - fi
  32392. - ;;
  32393. - dgux*)
  32394. - case $cc_basename in
  32395. - ec++)
  32396. - # FIXME: insert proper C++ library support
  32397. - ld_shlibs_CXX=no
  32398. - ;;
  32399. - ghcx)
  32400. - # Green Hills C++ Compiler
  32401. - # FIXME: insert proper C++ library support
  32402. - ld_shlibs_CXX=no
  32403. - ;;
  32404. - *)
  32405. - # FIXME: insert proper C++ library support
  32406. - ld_shlibs_CXX=no
  32407. - ;;
  32408. - esac
  32409. - ;;
  32410. - freebsd12*)
  32411. - # C++ shared libraries reported to be fairly broken before switch to ELF
  32412. - ld_shlibs_CXX=no
  32413. - ;;
  32414. - freebsd-elf*)
  32415. - archive_cmds_need_lc_CXX=no
  32416. - ;;
  32417. - freebsd* | kfreebsd*-gnu)
  32418. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  32419. - # conventions
  32420. - ld_shlibs_CXX=yes
  32421. - ;;
  32422. - gnu*)
  32423. - ;;
  32424. - hpux9*)
  32425. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  32426. - hardcode_libdir_separator_CXX=:
  32427. - export_dynamic_flag_spec_CXX='${wl}-E'
  32428. - hardcode_direct_CXX=yes
  32429. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  32430. - # but as the default
  32431. - # location of the library.
  32432. -
  32433. - case $cc_basename in
  32434. - CC)
  32435. - # FIXME: insert proper C++ library support
  32436. - ld_shlibs_CXX=no
  32437. - ;;
  32438. - aCC)
  32439. - 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'
  32440. - # Commands to make compiler produce verbose output that lists
  32441. - # what "hidden" libraries, object files and flags are used when
  32442. - # linking a shared library.
  32443. - #
  32444. - # There doesn't appear to be a way to prevent this compiler from
  32445. - # explicitly linking system object files so we need to strip them
  32446. - # from the output so that they don't get included in the library
  32447. - # dependencies.
  32448. - 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'
  32449. - ;;
  32450. - *)
  32451. - if test "$GXX" = yes; then
  32452. - 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'
  32453. - else
  32454. - # FIXME: insert proper C++ library support
  32455. - ld_shlibs_CXX=no
  32456. - fi
  32457. - ;;
  32458. - esac
  32459. - ;;
  32460. - hpux10*|hpux11*)
  32461. - if test $with_gnu_ld = no; then
  32462. - case "$host_cpu" in
  32463. - hppa*64*)
  32464. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  32465. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  32466. - hardcode_libdir_separator_CXX=:
  32467. - ;;
  32468. - ia64*)
  32469. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  32470. - ;;
  32471. - *)
  32472. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  32473. - hardcode_libdir_separator_CXX=:
  32474. - export_dynamic_flag_spec_CXX='${wl}-E'
  32475. - ;;
  32476. - esac
  32477. - fi
  32478. - case "$host_cpu" in
  32479. - hppa*64*)
  32480. - hardcode_direct_CXX=no
  32481. - hardcode_shlibpath_var_CXX=no
  32482. - ;;
  32483. - ia64*)
  32484. - hardcode_direct_CXX=no
  32485. - hardcode_shlibpath_var_CXX=no
  32486. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  32487. - # but as the default
  32488. - # location of the library.
  32489. - ;;
  32490. - *)
  32491. - hardcode_direct_CXX=yes
  32492. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  32493. - # but as the default
  32494. - # location of the library.
  32495. - ;;
  32496. - esac
  32497. - case $cc_basename in
  32498. - CC)
  32499. - # FIXME: insert proper C++ library support
  32500. - ld_shlibs_CXX=no
  32501. - ;;
  32502. - aCC)
  32503. - case "$host_cpu" in
  32504. - hppa*64*|ia64*)
  32505. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  32506. - ;;
  32507. - *)
  32508. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32509. - ;;
  32510. - esac
  32511. - # Commands to make compiler produce verbose output that lists
  32512. - # what "hidden" libraries, object files and flags are used when
  32513. - # linking a shared library.
  32514. - #
  32515. - # There doesn't appear to be a way to prevent this compiler from
  32516. - # explicitly linking system object files so we need to strip them
  32517. - # from the output so that they don't get included in the library
  32518. - # dependencies.
  32519. - 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'
  32520. - ;;
  32521. - *)
  32522. - if test "$GXX" = yes; then
  32523. - if test $with_gnu_ld = no; then
  32524. - case "$host_cpu" in
  32525. - ia64*|hppa*64*)
  32526. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  32527. - ;;
  32528. - *)
  32529. - 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'
  32530. - ;;
  32531. - esac
  32532. - fi
  32533. - else
  32534. - # FIXME: insert proper C++ library support
  32535. - ld_shlibs_CXX=no
  32536. - fi
  32537. - ;;
  32538. - esac
  32539. - ;;
  32540. - irix5* | irix6*)
  32541. - case $cc_basename in
  32542. - CC)
  32543. - # SGI C++
  32544. - 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 ${objdir}/so_locations -o $lib'
  32545. -
  32546. - # Archives containing C++ object files must be created using
  32547. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  32548. - # necessary to make sure instantiated templates are included
  32549. - # in the archive.
  32550. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  32551. - ;;
  32552. - *)
  32553. - if test "$GXX" = yes; then
  32554. - if test "$with_gnu_ld" = no; then
  32555. - 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}${objdir}/so_locations -o $lib'
  32556. - else
  32557. - 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'
  32558. - fi
  32559. - fi
  32560. - link_all_deplibs_CXX=yes
  32561. - ;;
  32562. - esac
  32563. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32564. - hardcode_libdir_separator_CXX=:
  32565. - ;;
  32566. - linux*)
  32567. - case $cc_basename in
  32568. - KCC)
  32569. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32570. -
  32571. - # KCC will only create a shared library if the output file
  32572. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32573. - # to its proper name (with version) after linking.
  32574. - 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'
  32575. - 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'
  32576. - # Commands to make compiler produce verbose output that lists
  32577. - # what "hidden" libraries, object files and flags are used when
  32578. - # linking a shared library.
  32579. - #
  32580. - # There doesn't appear to be a way to prevent this compiler from
  32581. - # explicitly linking system object files so we need to strip them
  32582. - # from the output so that they don't get included in the library
  32583. - # dependencies.
  32584. - 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'
  32585. -
  32586. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  32587. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32588. -
  32589. - # Archives containing C++ object files must be created using
  32590. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32591. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32592. - ;;
  32593. - icpc)
  32594. - # Intel C++
  32595. - with_gnu_ld=yes
  32596. - # version 8.0 and above of icpc choke on multiply defined symbols
  32597. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  32598. - # earlier do not add the objects themselves.
  32599. - case `$CC -V 2>&1` in
  32600. - *"Version 7."*)
  32601. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32602. - 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'
  32603. - ;;
  32604. - *) # Version 8.0 or newer
  32605. - archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32606. - archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32607. - ;;
  32608. - esac
  32609. - archive_cmds_need_lc_CXX=no
  32610. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32611. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32612. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  32613. - ;;
  32614. - cxx)
  32615. - # Compaq C++
  32616. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32617. - 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'
  32618. - runpath_var=LD_RUN_PATH
  32619. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32620. - hardcode_libdir_separator_CXX=:
  32621. - # Commands to make compiler produce verbose output that lists
  32622. - # what "hidden" libraries, object files and flags are used when
  32623. - # linking a shared library.
  32624. - #
  32625. - # There doesn't appear to be a way to prevent this compiler from
  32626. - # explicitly linking system object files so we need to strip them
  32627. - # from the output so that they don't get included in the library
  32628. - # dependencies.
  32629. - 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'
  32630. - ;;
  32631. - esac
  32632. - ;;
  32633. - lynxos*)
  32634. - # FIXME: insert proper C++ library support
  32635. - ld_shlibs_CXX=no
  32636. - ;;
  32637. - m88k*)
  32638. - # FIXME: insert proper C++ library support
  32639. - ld_shlibs_CXX=no
  32640. - ;;
  32641. - mvs*)
  32642. - case $cc_basename in
  32643. - cxx)
  32644. - # FIXME: insert proper C++ library support
  32645. - ld_shlibs_CXX=no
  32646. - ;;
  32647. - *)
  32648. - # FIXME: insert proper C++ library support
  32649. - ld_shlibs_CXX=no
  32650. - ;;
  32651. - esac
  32652. - ;;
  32653. - netbsd*)
  32654. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32655. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  32656. - wlarc=
  32657. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32658. - hardcode_direct_CXX=yes
  32659. - hardcode_shlibpath_var_CXX=no
  32660. - fi
  32661. - # Workaround some broken pre-1.5 toolchains
  32662. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  32663. - ;;
  32664. - openbsd2*)
  32665. - # C++ shared libraries are fairly broken
  32666. - ld_shlibs_CXX=no
  32667. - ;;
  32668. - openbsd*)
  32669. - hardcode_direct_CXX=yes
  32670. - hardcode_shlibpath_var_CXX=no
  32671. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  32672. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32673. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32674. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  32675. - export_dynamic_flag_spec_CXX='${wl}-E'
  32676. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  32677. - fi
  32678. - output_verbose_link_cmd='echo'
  32679. - ;;
  32680. - osf3*)
  32681. - case $cc_basename in
  32682. - KCC)
  32683. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32684. -
  32685. - # KCC will only create a shared library if the output file
  32686. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32687. - # to its proper name (with version) after linking.
  32688. - 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'
  32689. -
  32690. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32691. - hardcode_libdir_separator_CXX=:
  32692. -
  32693. - # Archives containing C++ object files must be created using
  32694. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32695. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32696. - ;;
  32697. - RCC)
  32698. - # Rational C++ 2.4.1
  32699. - # FIXME: insert proper C++ library support
  32700. - ld_shlibs_CXX=no
  32701. - ;;
  32702. - cxx)
  32703. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32704. - 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 ${objdir}/so_locations -o $lib'
  32705. -
  32706. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32707. - hardcode_libdir_separator_CXX=:
  32708. -
  32709. - # Commands to make compiler produce verbose output that lists
  32710. - # what "hidden" libraries, object files and flags are used when
  32711. - # linking a shared library.
  32712. - #
  32713. - # There doesn't appear to be a way to prevent this compiler from
  32714. - # explicitly linking system object files so we need to strip them
  32715. - # from the output so that they don't get included in the library
  32716. - # dependencies.
  32717. - 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'
  32718. - ;;
  32719. - *)
  32720. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32721. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32722. - 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}${objdir}/so_locations -o $lib'
  32723. -
  32724. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32725. - hardcode_libdir_separator_CXX=:
  32726. -
  32727. - # Commands to make compiler produce verbose output that lists
  32728. - # what "hidden" libraries, object files and flags are used when
  32729. - # linking a shared library.
  32730. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32731. - else
  32732. - # FIXME: insert proper C++ library support
  32733. - ld_shlibs_CXX=no
  32734. - fi
  32735. - ;;
  32736. - esac
  32737. - ;;
  32738. - osf4* | osf5*)
  32739. - case $cc_basename in
  32740. - KCC)
  32741. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32742. -
  32743. - # KCC will only create a shared library if the output file
  32744. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32745. - # to its proper name (with version) after linking.
  32746. - 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'
  32747. -
  32748. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32749. - hardcode_libdir_separator_CXX=:
  32750. -
  32751. - # Archives containing C++ object files must be created using
  32752. - # the KAI C++ compiler.
  32753. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  32754. - ;;
  32755. - RCC)
  32756. - # Rational C++ 2.4.1
  32757. - # FIXME: insert proper C++ library support
  32758. - ld_shlibs_CXX=no
  32759. - ;;
  32760. - cxx)
  32761. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  32762. - 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 ${objdir}/so_locations -o $lib'
  32763. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  32764. - echo "-hidden">> $lib.exp~
  32765. - $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 $objdir/so_locations -o $lib~
  32766. - $rm $lib.exp'
  32767. -
  32768. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32769. - hardcode_libdir_separator_CXX=:
  32770. -
  32771. - # Commands to make compiler produce verbose output that lists
  32772. - # what "hidden" libraries, object files and flags are used when
  32773. - # linking a shared library.
  32774. - #
  32775. - # There doesn't appear to be a way to prevent this compiler from
  32776. - # explicitly linking system object files so we need to strip them
  32777. - # from the output so that they don't get included in the library
  32778. - # dependencies.
  32779. - 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'
  32780. - ;;
  32781. - *)
  32782. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32783. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32784. - 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}${objdir}/so_locations -o $lib'
  32785. -
  32786. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32787. - hardcode_libdir_separator_CXX=:
  32788. -
  32789. - # Commands to make compiler produce verbose output that lists
  32790. - # what "hidden" libraries, object files and flags are used when
  32791. - # linking a shared library.
  32792. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32793. - else
  32794. - # FIXME: insert proper C++ library support
  32795. - ld_shlibs_CXX=no
  32796. - fi
  32797. - ;;
  32798. - esac
  32799. - ;;
  32800. - psos*)
  32801. - # FIXME: insert proper C++ library support
  32802. - ld_shlibs_CXX=no
  32803. - ;;
  32804. - sco*)
  32805. - archive_cmds_need_lc_CXX=no
  32806. - case $cc_basename in
  32807. - CC)
  32808. - # FIXME: insert proper C++ library support
  32809. - ld_shlibs_CXX=no
  32810. - ;;
  32811. - *)
  32812. - # FIXME: insert proper C++ library support
  32813. - ld_shlibs_CXX=no
  32814. - ;;
  32815. - esac
  32816. - ;;
  32817. - sunos4*)
  32818. - case $cc_basename in
  32819. - CC)
  32820. - # Sun C++ 4.x
  32821. - # FIXME: insert proper C++ library support
  32822. - ld_shlibs_CXX=no
  32823. - ;;
  32824. - lcc)
  32825. - # Lucid
  32826. - # FIXME: insert proper C++ library support
  32827. - ld_shlibs_CXX=no
  32828. - ;;
  32829. - *)
  32830. - # FIXME: insert proper C++ library support
  32831. - ld_shlibs_CXX=no
  32832. - ;;
  32833. - esac
  32834. - ;;
  32835. - solaris*)
  32836. - case $cc_basename in
  32837. - CC)
  32838. - # Sun C++ 4.2, 5.x and Centerline C++
  32839. - no_undefined_flag_CXX=' -zdefs'
  32840. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32841. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32842. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32843. -
  32844. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32845. - hardcode_shlibpath_var_CXX=no
  32846. - case $host_os in
  32847. - solaris2.0-5 | solaris2.0-5.*) ;;
  32848. - *)
  32849. - # The C++ compiler is used as linker so we must use $wl
  32850. - # flag to pass the commands to the underlying system
  32851. - # linker.
  32852. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32853. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32854. - ;;
  32855. - esac
  32856. - link_all_deplibs_CXX=yes
  32857. - # Commands to make compiler produce verbose output that lists
  32858. - # what "hidden" libraries, object files and flags are used when
  32859. - # linking a shared library.
  32860. - #
  32861. - # There doesn't appear to be a way to prevent this compiler from
  32862. - # explicitly linking system object files so we need to strip them
  32863. - # from the output so that they don't get included in the library
  32864. - # dependencies.
  32865. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32866. -
  32867. - # Archives containing C++ object files must be created using
  32868. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  32869. - # necessary to make sure instantiated templates are included
  32870. - # in the archive.
  32871. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  32872. - ;;
  32873. - gcx)
  32874. - # Green Hills C++ Compiler
  32875. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32876. - # The C++ compiler must be used to create the archive.
  32877. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  32878. - ;;
  32879. - *)
  32880. - # GNU C++ compiler with Solaris linker
  32881. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32882. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  32883. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  32884. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32885. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32886. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32887. -
  32888. - # Commands to make compiler produce verbose output that lists
  32889. - # what "hidden" libraries, object files and flags are used when
  32890. - # linking a shared library.
  32891. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32892. - else
  32893. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  32894. - # platform.
  32895. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32896. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32897. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32898. -
  32899. - # Commands to make compiler produce verbose output that lists
  32900. - # what "hidden" libraries, object files and flags are used when
  32901. - # linking a shared library.
  32902. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32903. - fi
  32904. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  32905. - fi
  32906. - ;;
  32907. - esac
  32908. - ;;
  32909. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  32910. - archive_cmds_need_lc_CXX=no
  32911. - ;;
  32912. - tandem*)
  32913. - case $cc_basename in
  32914. - NCC)
  32915. - # NonStop-UX NCC 3.20
  32916. - # FIXME: insert proper C++ library support
  32917. - ld_shlibs_CXX=no
  32918. - ;;
  32919. - *)
  32920. - # FIXME: insert proper C++ library support
  32921. - ld_shlibs_CXX=no
  32922. - ;;
  32923. - esac
  32924. - ;;
  32925. - vxworks*)
  32926. - # FIXME: insert proper C++ library support
  32927. - ld_shlibs_CXX=no
  32928. - ;;
  32929. - *)
  32930. - # FIXME: insert proper C++ library support
  32931. - ld_shlibs_CXX=no
  32932. - ;;
  32933. -esac
  32934. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  32935. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  32936. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  32937. -GCC_CXX="$GXX"
  32938. -LD_CXX="$LD"
  32939. -cat > conftest.$ac_ext <<EOF
  32940. -class Foo
  32941. -{
  32942. -public:
  32943. - Foo (void) { a = 0; }
  32944. -private:
  32945. - int a;
  32946. -};
  32947. -EOF
  32948. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32949. - (eval $ac_compile) 2>&5
  32950. - ac_status=$?
  32951. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32952. - (exit $ac_status); }; then
  32953. - # Parse the compiler output and extract the necessary
  32954. - # objects, libraries and library flags.
  32955. -
  32956. - # Sentinel used to keep track of whether or not we are before
  32957. - # the conftest object file.
  32958. - pre_test_object_deps_done=no
  32959. -
  32960. - # The `*' in the case matches for architectures that use `case' in
  32961. - # $output_verbose_cmd can trigger glob expansion during the loop
  32962. - # eval without this substitution.
  32963. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  32964. -
  32965. - for p in `eval $output_verbose_link_cmd`; do
  32966. - case $p in
  32967. -
  32968. - -L* | -R* | -l*)
  32969. - # Some compilers place space between "-{L,R}" and the path.
  32970. - # Remove the space.
  32971. - if test $p = "-L" \
  32972. - || test $p = "-R"; then
  32973. - prev=$p
  32974. - continue
  32975. - else
  32976. - prev=
  32977. - fi
  32978. - if test "$pre_test_object_deps_done" = no; then
  32979. - case $p in
  32980. - -L* | -R*)
  32981. - # Internal compiler library paths should come after those
  32982. - # provided the user. The postdeps already come after the
  32983. - # user supplied libs so there is no need to process them.
  32984. - if test -z "$compiler_lib_search_path_CXX"; then
  32985. - compiler_lib_search_path_CXX="${prev}${p}"
  32986. - else
  32987. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  32988. - fi
  32989. - ;;
  32990. - # The "-l" case would never come before the object being
  32991. - # linked, so don't bother handling this case.
  32992. - esac
  32993. - else
  32994. - if test -z "$postdeps_CXX"; then
  32995. - postdeps_CXX="${prev}${p}"
  32996. - else
  32997. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  32998. - fi
  32999. - fi
  33000. - ;;
  33001. - *.$objext)
  33002. - # This assumes that the test object file only shows up
  33003. - # once in the compiler output.
  33004. - if test "$p" = "conftest.$objext"; then
  33005. - pre_test_object_deps_done=yes
  33006. - continue
  33007. - fi
  33008. - if test "$pre_test_object_deps_done" = no; then
  33009. - if test -z "$predep_objects_CXX"; then
  33010. - predep_objects_CXX="$p"
  33011. - else
  33012. - predep_objects_CXX="$predep_objects_CXX $p"
  33013. - fi
  33014. - else
  33015. - if test -z "$postdep_objects_CXX"; then
  33016. - postdep_objects_CXX="$p"
  33017. - else
  33018. - postdep_objects_CXX="$postdep_objects_CXX $p"
  33019. - fi
  33020. - fi
  33021. - ;;
  33022. - *) ;; # Ignore the rest.
  33023. - esac
  33024. - done
  33025. - # Clean up.
  33026. - rm -f a.out a.exe
  33027. -else
  33028. - echo "libtool.m4: error: problem compiling CXX test program"
  33029. -fi
  33030. -$rm -f confest.$objext
  33031. -case " $postdeps_CXX " in
  33032. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  33033. -esac
  33034. -lt_prog_compiler_wl_CXX=
  33035. -lt_prog_compiler_pic_CXX=
  33036. -lt_prog_compiler_static_CXX=
  33037. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33038. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  33039. - # C++ specific cases for pic, static, wl, etc.
  33040. - if test "$GXX" = yes; then
  33041. - lt_prog_compiler_wl_CXX='-Wl,'
  33042. - lt_prog_compiler_static_CXX='-static'
  33043. - case $host_os in
  33044. - aix*)
  33045. - # All AIX code is PIC.
  33046. - if test "$host_cpu" = ia64; then
  33047. - # AIX 5 now supports IA64 processor
  33048. - lt_prog_compiler_static_CXX='-Bstatic'
  33049. - fi
  33050. - ;;
  33051. - amigaos*)
  33052. - # FIXME: we need at least 68020 code to build shared libraries, but
  33053. - # adding the `-m68020' flag to GCC prevents building anything better,
  33054. - # like `-m68040'.
  33055. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  33056. - ;;
  33057. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33058. - # PIC is the default for these OSes.
  33059. - ;;
  33060. - mingw* | os2* | pw32*)
  33061. - # This hack is so that the source file can tell whether it is being
  33062. - # built for inclusion in a dll (and should export symbols for example).
  33063. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  33064. - ;;
  33065. - darwin* | rhapsody*)
  33066. - # PIC is the default on this platform
  33067. - # Common symbols not allowed in MH_DYLIB files
  33068. - lt_prog_compiler_pic_CXX='-fno-common'
  33069. - ;;
  33070. - *djgpp*)
  33071. - # DJGPP does not support shared libraries at all
  33072. - lt_prog_compiler_pic_CXX=
  33073. - ;;
  33074. - sysv4*MP*)
  33075. - if test -d /usr/nec; then
  33076. - lt_prog_compiler_pic_CXX=-Kconform_pic
  33077. - fi
  33078. - ;;
  33079. - hpux*)
  33080. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33081. - # not for PA HP-UX.
  33082. - case "$host_cpu" in
  33083. - hppa*64*|ia64*)
  33084. - ;;
  33085. - *)
  33086. - lt_prog_compiler_pic_CXX='-fPIC'
  33087. - ;;
  33088. - esac
  33089. - ;;
  33090. - *)
  33091. - lt_prog_compiler_pic_CXX='-fPIC'
  33092. - ;;
  33093. - esac
  33094. - else
  33095. - case $host_os in
  33096. - aix4* | aix5*)
  33097. - # All AIX code is PIC.
  33098. - if test "$host_cpu" = ia64; then
  33099. - # AIX 5 now supports IA64 processor
  33100. - lt_prog_compiler_static_CXX='-Bstatic'
  33101. - else
  33102. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  33103. - fi
  33104. - ;;
  33105. - chorus*)
  33106. - case $cc_basename in
  33107. - cxch68)
  33108. - # Green Hills C++ Compiler
  33109. - # _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"
  33110. - ;;
  33111. - esac
  33112. - ;;
  33113. - darwin*)
  33114. - # PIC is the default on this platform
  33115. - # Common symbols not allowed in MH_DYLIB files
  33116. - case "$cc_basename" in
  33117. - xlc*)
  33118. - lt_prog_compiler_pic_CXX='-qnocommon'
  33119. - lt_prog_compiler_wl_CXX='-Wl,'
  33120. - ;;
  33121. - esac
  33122. - ;;
  33123. - dgux*)
  33124. - case $cc_basename in
  33125. - ec++)
  33126. - lt_prog_compiler_pic_CXX='-KPIC'
  33127. - ;;
  33128. - ghcx)
  33129. - # Green Hills C++ Compiler
  33130. - lt_prog_compiler_pic_CXX='-pic'
  33131. - ;;
  33132. - *)
  33133. - ;;
  33134. - esac
  33135. - ;;
  33136. - freebsd* | kfreebsd*-gnu)
  33137. - # FreeBSD uses GNU C++
  33138. - ;;
  33139. - hpux9* | hpux10* | hpux11*)
  33140. - case $cc_basename in
  33141. - CC)
  33142. - lt_prog_compiler_wl_CXX='-Wl,'
  33143. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  33144. - if test "$host_cpu" != ia64; then
  33145. - lt_prog_compiler_pic_CXX='+Z'
  33146. - fi
  33147. - ;;
  33148. - aCC)
  33149. - lt_prog_compiler_wl_CXX='-Wl,'
  33150. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  33151. - case "$host_cpu" in
  33152. - hppa*64*|ia64*)
  33153. - # +Z the default
  33154. - ;;
  33155. - *)
  33156. - lt_prog_compiler_pic_CXX='+Z'
  33157. - ;;
  33158. - esac
  33159. - ;;
  33160. - *)
  33161. - ;;
  33162. - esac
  33163. - ;;
  33164. - irix5* | irix6* | nonstopux*)
  33165. - case $cc_basename in
  33166. - CC)
  33167. - lt_prog_compiler_wl_CXX='-Wl,'
  33168. - lt_prog_compiler_static_CXX='-non_shared'
  33169. - # CC pic flag -KPIC is the default.
  33170. - ;;
  33171. - *)
  33172. - ;;
  33173. - esac
  33174. - ;;
  33175. - linux*)
  33176. - case $cc_basename in
  33177. - KCC)
  33178. - # KAI C++ Compiler
  33179. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  33180. - lt_prog_compiler_pic_CXX='-fPIC'
  33181. - ;;
  33182. - icpc)
  33183. - # Intel C++
  33184. - lt_prog_compiler_wl_CXX='-Wl,'
  33185. - lt_prog_compiler_pic_CXX='-KPIC'
  33186. - lt_prog_compiler_static_CXX='-static'
  33187. - ;;
  33188. - cxx)
  33189. - # Compaq C++
  33190. - # Make sure the PIC flag is empty. It appears that all Alpha
  33191. - # Linux and Compaq Tru64 Unix objects are PIC.
  33192. - lt_prog_compiler_pic_CXX=
  33193. - lt_prog_compiler_static_CXX='-non_shared'
  33194. - ;;
  33195. - *)
  33196. - ;;
  33197. - esac
  33198. - ;;
  33199. - lynxos*)
  33200. - ;;
  33201. - m88k*)
  33202. - ;;
  33203. - mvs*)
  33204. - case $cc_basename in
  33205. - cxx)
  33206. - lt_prog_compiler_pic_CXX='-W c,exportall'
  33207. - ;;
  33208. - *)
  33209. - ;;
  33210. - esac
  33211. - ;;
  33212. - netbsd*)
  33213. - ;;
  33214. - osf3* | osf4* | osf5*)
  33215. - case $cc_basename in
  33216. - KCC)
  33217. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  33218. - ;;
  33219. - RCC)
  33220. - # Rational C++ 2.4.1
  33221. - lt_prog_compiler_pic_CXX='-pic'
  33222. - ;;
  33223. - cxx)
  33224. - # Digital/Compaq C++
  33225. - lt_prog_compiler_wl_CXX='-Wl,'
  33226. - # Make sure the PIC flag is empty. It appears that all Alpha
  33227. - # Linux and Compaq Tru64 Unix objects are PIC.
  33228. - lt_prog_compiler_pic_CXX=
  33229. - lt_prog_compiler_static_CXX='-non_shared'
  33230. - ;;
  33231. - *)
  33232. - ;;
  33233. - esac
  33234. - ;;
  33235. - psos*)
  33236. - ;;
  33237. - sco*)
  33238. - case $cc_basename in
  33239. - CC)
  33240. - lt_prog_compiler_pic_CXX='-fPIC'
  33241. - ;;
  33242. - *)
  33243. - ;;
  33244. - esac
  33245. - ;;
  33246. - solaris*)
  33247. - case $cc_basename in
  33248. - CC)
  33249. - # Sun C++ 4.2, 5.x and Centerline C++
  33250. - lt_prog_compiler_pic_CXX='-KPIC'
  33251. - lt_prog_compiler_static_CXX='-Bstatic'
  33252. - lt_prog_compiler_wl_CXX='-Qoption ld '
  33253. - ;;
  33254. - gcx)
  33255. - # Green Hills C++ Compiler
  33256. - lt_prog_compiler_pic_CXX='-PIC'
  33257. - ;;
  33258. - *)
  33259. - ;;
  33260. - esac
  33261. - ;;
  33262. - sunos4*)
  33263. - case $cc_basename in
  33264. - CC)
  33265. - # Sun C++ 4.x
  33266. - lt_prog_compiler_pic_CXX='-pic'
  33267. - lt_prog_compiler_static_CXX='-Bstatic'
  33268. - ;;
  33269. - lcc)
  33270. - # Lucid
  33271. - lt_prog_compiler_pic_CXX='-pic'
  33272. - ;;
  33273. - *)
  33274. - ;;
  33275. - esac
  33276. - ;;
  33277. - tandem*)
  33278. - case $cc_basename in
  33279. - NCC)
  33280. - # NonStop-UX NCC 3.20
  33281. - lt_prog_compiler_pic_CXX='-KPIC'
  33282. - ;;
  33283. - *)
  33284. - ;;
  33285. - esac
  33286. - ;;
  33287. - unixware*)
  33288. - ;;
  33289. - vxworks*)
  33290. - ;;
  33291. - *)
  33292. - lt_prog_compiler_can_build_shared_CXX=no
  33293. - ;;
  33294. - esac
  33295. - fi
  33296. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  33297. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  33298. -#
  33299. -# Check to make sure the PIC flag actually works.
  33300. -#
  33301. -if test -n "$lt_prog_compiler_pic_CXX"; then
  33302. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  33303. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  33304. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  33305. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33306. -else
  33307. - lt_prog_compiler_pic_works_CXX=no
  33308. - ac_outfile=conftest.$ac_objext
  33309. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33310. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  33311. - # Insert the option either (1) after the last *FLAGS variable, or
  33312. - # (2) before a word containing "conftest.", or (3) at the end.
  33313. - # Note that $ac_compile itself does not contain backslashes and begins
  33314. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33315. - # The option is referenced via a variable to avoid confusing sed.
  33316. - lt_compile=`echo "$ac_compile" | $SED \
  33317. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33318. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33319. - -e 's:$: $lt_compiler_flag:'`
  33320. - (eval echo "\"\$as_me:12790: $lt_compile\"" >&5)
  33321. - (eval "$lt_compile" 2>conftest.err)
  33322. - ac_status=$?
  33323. - cat conftest.err >&5
  33324. - echo "$as_me:12794: \$? = $ac_status" >&5
  33325. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33326. - # The compiler can only warn and ignore the option if not recognized
  33327. - # So say no if there are warnings
  33328. - if test ! -s conftest.err; then
  33329. - lt_prog_compiler_pic_works_CXX=yes
  33330. - fi
  33331. - fi
  33332. - $rm conftest*
  33333. -fi
  33334. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  33335. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  33336. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  33337. - case $lt_prog_compiler_pic_CXX in
  33338. - "" | " "*) ;;
  33339. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  33340. - esac
  33341. -else
  33342. - lt_prog_compiler_pic_CXX=
  33343. - lt_prog_compiler_can_build_shared_CXX=no
  33344. -fi
  33345. -fi
  33346. -case "$host_os" in
  33347. - # For platforms which do not support PIC, -DPIC is meaningless:
  33348. - *djgpp*)
  33349. - lt_prog_compiler_pic_CXX=
  33350. - ;;
  33351. - *)
  33352. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  33353. - ;;
  33354. -esac
  33355. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33356. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  33357. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  33358. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33359. -else
  33360. - lt_cv_prog_compiler_c_o_CXX=no
  33361. - $rm -r conftest 2>/dev/null
  33362. - mkdir conftest
  33363. - cd conftest
  33364. - mkdir out
  33365. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33366. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  33367. - # Insert the option either (1) after the last *FLAGS variable, or
  33368. - # (2) before a word containing "conftest.", or (3) at the end.
  33369. - # Note that $ac_compile itself does not contain backslashes and begins
  33370. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33371. - lt_compile=`echo "$ac_compile" | $SED \
  33372. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33373. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33374. - -e 's:$: $lt_compiler_flag:'`
  33375. - (eval echo "\"\$as_me:12850: $lt_compile\"" >&5)
  33376. - (eval "$lt_compile" 2>out/conftest.err)
  33377. - ac_status=$?
  33378. - cat out/conftest.err >&5
  33379. - echo "$as_me:12854: \$? = $ac_status" >&5
  33380. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33381. - then
  33382. - # The compiler can only warn and ignore the option if not recognized
  33383. - # So say no if there are warnings
  33384. - if test ! -s out/conftest.err; then
  33385. - lt_cv_prog_compiler_c_o_CXX=yes
  33386. - fi
  33387. - fi
  33388. - chmod u+w .
  33389. - $rm conftest*
  33390. - # SGI C++ compiler will create directory out/ii_files/ for
  33391. - # template instantiation
  33392. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33393. - $rm out/* && rmdir out
  33394. - cd ..
  33395. - rmdir conftest
  33396. - $rm conftest*
  33397. -fi
  33398. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  33399. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  33400. -hard_links="nottested"
  33401. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  33402. - # do not overwrite the value of need_locks provided by the user
  33403. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33404. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  33405. - hard_links=yes
  33406. - $rm conftest*
  33407. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33408. - touch conftest.a
  33409. - ln conftest.a conftest.b 2>&5 || hard_links=no
  33410. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33411. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  33412. -echo "${ECHO_T}$hard_links" >&6; }
  33413. - if test "$hard_links" = no; then
  33414. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33415. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33416. - need_locks=warn
  33417. - fi
  33418. -else
  33419. - need_locks=no
  33420. -fi
  33421. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33422. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  33423. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33424. - case $host_os in
  33425. - aix4* | aix5*)
  33426. - # If we're using GNU nm, then we don't want the "-C" option.
  33427. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33428. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  33429. - 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'
  33430. - else
  33431. - 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'
  33432. - fi
  33433. - ;;
  33434. - pw32*)
  33435. - export_symbols_cmds_CXX="$ltdll_cmds"
  33436. - ;;
  33437. - cygwin* | mingw*)
  33438. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  33439. - ;;
  33440. - *)
  33441. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33442. - ;;
  33443. - esac
  33444. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  33445. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  33446. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  33447. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33448. -if test "$GCC" = yes; then
  33449. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33450. -fi
  33451. -#
  33452. -# Do we need to explicitly link libc?
  33453. -#
  33454. -case "x$archive_cmds_need_lc_CXX" in
  33455. -x|xyes)
  33456. - # Assume -lc should be added
  33457. - archive_cmds_need_lc_CXX=yes
  33458. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  33459. - case $archive_cmds_CXX in
  33460. - *'~'*)
  33461. - # FIXME: we may have to deal with multi-command sequences.
  33462. - ;;
  33463. - '$CC '*)
  33464. - # Test whether the compiler implicitly links with -lc since on some
  33465. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  33466. - # to ld, don't add -lc before -lgcc.
  33467. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  33468. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  33469. - $rm conftest*
  33470. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33471. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33472. - (eval $ac_compile) 2>&5
  33473. - ac_status=$?
  33474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33475. - (exit $ac_status); } 2>conftest.err; then
  33476. - soname=conftest
  33477. - lib=conftest
  33478. - libobjs=conftest.$ac_objext
  33479. - deplibs=
  33480. - wl=$lt_prog_compiler_wl_CXX
  33481. - compiler_flags=-v
  33482. - linker_flags=-v
  33483. - verstring=
  33484. - output_objdir=.
  33485. - libname=conftest
  33486. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  33487. - allow_undefined_flag_CXX=
  33488. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  33489. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33490. - ac_status=$?
  33491. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33492. - (exit $ac_status); }
  33493. - then
  33494. - archive_cmds_need_lc_CXX=no
  33495. - else
  33496. - archive_cmds_need_lc_CXX=yes
  33497. - fi
  33498. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  33499. - else
  33500. - cat conftest.err 1>&5
  33501. - fi
  33502. - $rm conftest*
  33503. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  33504. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  33505. - ;;
  33506. - esac
  33507. - fi
  33508. - ;;
  33509. -esac
  33510. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33511. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  33512. -library_names_spec=
  33513. -libname_spec='lib$name'
  33514. -soname_spec=
  33515. -shrext_cmds=".so"
  33516. -postinstall_cmds=
  33517. -postuninstall_cmds=
  33518. -finish_cmds=
  33519. -finish_eval=
  33520. -shlibpath_var=
  33521. -shlibpath_overrides_runpath=unknown
  33522. -version_type=none
  33523. -dynamic_linker="$host_os ld.so"
  33524. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33525. -if test "$GCC" = yes; then
  33526. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33527. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  33528. - # if the path contains ";" then we assume it to be the separator
  33529. - # otherwise default to the standard path separator (i.e. ":") - it is
  33530. - # assumed that no part of a normal pathname contains ";" but that should
  33531. - # okay in the real world where ";" in dirpaths is itself problematic.
  33532. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33533. - else
  33534. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33535. - fi
  33536. -else
  33537. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33538. -fi
  33539. -need_lib_prefix=unknown
  33540. -hardcode_into_libs=no
  33541. -# when you set need_version to no, make sure it does not cause -set_version
  33542. -# flags to be left without arguments
  33543. -need_version=unknown
  33544. -case $host_os in
  33545. -aix3*)
  33546. - version_type=linux
  33547. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33548. - shlibpath_var=LIBPATH
  33549. - # AIX 3 has no versioning support, so we append a major version to the name.
  33550. - soname_spec='${libname}${release}${shared_ext}$major'
  33551. - ;;
  33552. -aix4* | aix5*)
  33553. - version_type=linux
  33554. - need_lib_prefix=no
  33555. - need_version=no
  33556. - hardcode_into_libs=yes
  33557. - if test "$host_cpu" = ia64; then
  33558. - # AIX 5 supports IA64
  33559. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33560. - shlibpath_var=LD_LIBRARY_PATH
  33561. - else
  33562. - # With GCC up to 2.95.x, collect2 would create an import file
  33563. - # for dependence libraries. The import file would start with
  33564. - # the line `#! .'. This would cause the generated library to
  33565. - # depend on `.', always an invalid library. This was fixed in
  33566. - # development snapshots of GCC prior to 3.0.
  33567. - case $host_os in
  33568. - aix4 | aix4.[01] | aix4.[01].*)
  33569. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33570. - echo ' yes '
  33571. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33572. - :
  33573. - else
  33574. - can_build_shared=no
  33575. - fi
  33576. - ;;
  33577. - esac
  33578. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33579. - # soname into executable. Probably we can add versioning support to
  33580. - # collect2, so additional links can be useful in future.
  33581. - if test "$aix_use_runtimelinking" = yes; then
  33582. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33583. - # instead of lib<name>.a to let people know that these are not
  33584. - # typical AIX shared libraries.
  33585. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33586. - else
  33587. - # We preserve .a as extension for shared libraries through AIX4.2
  33588. - # and later when we are not doing run time linking.
  33589. - library_names_spec='${libname}${release}.a $libname.a'
  33590. +
  33591. +
  33592. +
  33593. +
  33594. +
  33595. +
  33596. +
  33597. +
  33598. +
  33599. +
  33600. +
  33601. +
  33602. +
  33603. +
  33604. +
  33605. +
  33606. +
  33607. +
  33608. +
  33609. +
  33610. +
  33611. +
  33612. +
  33613. +
  33614. +
  33615. +
  33616. +
  33617. +
  33618. +
  33619. +
  33620. +
  33621. +
  33622. +
  33623. +
  33624. +
  33625. +
  33626. +
  33627. +
  33628. +
  33629. +
  33630. +
  33631. +
  33632. +
  33633. +
  33634. +
  33635. +
  33636. +
  33637. +
  33638. +
  33639. +
  33640. +
  33641. +
  33642. +
  33643. +
  33644. +
  33645. +
  33646. +
  33647. +
  33648. +
  33649. +
  33650. +
  33651. +
  33652. +
  33653. +
  33654. +
  33655. +
  33656. +
  33657. +
  33658. +
  33659. +
  33660. +
  33661. +
  33662. +
  33663. +
  33664. +
  33665. +
  33666. +
  33667. +
  33668. +
  33669. +
  33670. +
  33671. +
  33672. +
  33673. +
  33674. +
  33675. +
  33676. +
  33677. +
  33678. +
  33679. +
  33680. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  33681. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  33682. +
  33683. +if test "$GCC" = yes; then
  33684. + case $host_os in
  33685. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  33686. + *) lt_awk_arg="/^libraries:/" ;;
  33687. + esac
  33688. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33689. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  33690. + # if the path contains ";" then we assume it to be the separator
  33691. + # otherwise default to the standard path separator (i.e. ":") - it is
  33692. + # assumed that no part of a normal pathname contains ";" but that should
  33693. + # okay in the real world where ";" in dirpaths is itself problematic.
  33694. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  33695. + else
  33696. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33697. + fi
  33698. + # Ok, now we have the path, separated by spaces, we can step through it
  33699. + # and add multilib dir if necessary.
  33700. + lt_tmp_lt_search_path_spec=
  33701. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  33702. + for lt_sys_path in $lt_search_path_spec; do
  33703. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  33704. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  33705. + else
  33706. + test -d "$lt_sys_path" && \
  33707. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  33708. + fi
  33709. + done
  33710. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  33711. +BEGIN {RS=" "; FS="/|\n";} {
  33712. + lt_foo="";
  33713. + lt_count=0;
  33714. + for (lt_i = NF; lt_i > 0; lt_i--) {
  33715. + if ($lt_i != "" && $lt_i != ".") {
  33716. + if ($lt_i == "..") {
  33717. + lt_count++;
  33718. + } else {
  33719. + if (lt_count == 0) {
  33720. + lt_foo="/" $lt_i lt_foo;
  33721. + } else {
  33722. + lt_count--;
  33723. + }
  33724. + }
  33725. + }
  33726. + }
  33727. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  33728. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  33729. +}'`
  33730. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  33731. +else
  33732. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33733. +fi
  33734. +library_names_spec=
  33735. +libname_spec='lib$name'
  33736. +soname_spec=
  33737. +shrext_cmds=".so"
  33738. +postinstall_cmds=
  33739. +postuninstall_cmds=
  33740. +finish_cmds=
  33741. +finish_eval=
  33742. +shlibpath_var=
  33743. +shlibpath_overrides_runpath=unknown
  33744. +version_type=none
  33745. +dynamic_linker="$host_os ld.so"
  33746. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33747. +need_lib_prefix=unknown
  33748. +hardcode_into_libs=no
  33749. +
  33750. +# when you set need_version to no, make sure it does not cause -set_version
  33751. +# flags to be left without arguments
  33752. +need_version=unknown
  33753. +
  33754. +case $host_os in
  33755. +aix3*)
  33756. + version_type=linux
  33757. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33758. + shlibpath_var=LIBPATH
  33759. +
  33760. + # AIX 3 has no versioning support, so we append a major version to the name.
  33761. + soname_spec='${libname}${release}${shared_ext}$major'
  33762. + ;;
  33763. +
  33764. +aix[4-9]*)
  33765. + version_type=linux
  33766. + need_lib_prefix=no
  33767. + need_version=no
  33768. + hardcode_into_libs=yes
  33769. + if test "$host_cpu" = ia64; then
  33770. + # AIX 5 supports IA64
  33771. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33772. + shlibpath_var=LD_LIBRARY_PATH
  33773. + else
  33774. + # With GCC up to 2.95.x, collect2 would create an import file
  33775. + # for dependence libraries. The import file would start with
  33776. + # the line `#! .'. This would cause the generated library to
  33777. + # depend on `.', always an invalid library. This was fixed in
  33778. + # development snapshots of GCC prior to 3.0.
  33779. + case $host_os in
  33780. + aix4 | aix4.[01] | aix4.[01].*)
  33781. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33782. + echo ' yes '
  33783. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  33784. + :
  33785. + else
  33786. + can_build_shared=no
  33787. + fi
  33788. + ;;
  33789. + esac
  33790. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33791. + # soname into executable. Probably we can add versioning support to
  33792. + # collect2, so additional links can be useful in future.
  33793. + if test "$aix_use_runtimelinking" = yes; then
  33794. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33795. + # instead of lib<name>.a to let people know that these are not
  33796. + # typical AIX shared libraries.
  33797. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33798. + else
  33799. + # We preserve .a as extension for shared libraries through AIX4.2
  33800. + # and later when we are not doing run time linking.
  33801. + library_names_spec='${libname}${release}.a $libname.a'
  33802. soname_spec='${libname}${release}${shared_ext}$major'
  33803. fi
  33804. shlibpath_var=LIBPATH
  33805. @@ -13084,9 +9876,18 @@
  33806. ;;
  33807. amigaos*)
  33808. - library_names_spec='$libname.ixlibrary $libname.a'
  33809. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33810. - 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'
  33811. + case $host_cpu in
  33812. + powerpc)
  33813. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  33814. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  33815. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33816. + ;;
  33817. + m68k)
  33818. + library_names_spec='$libname.ixlibrary $libname.a'
  33819. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33820. + 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'
  33821. + ;;
  33822. + esac
  33823. ;;
  33824. beos*)
  33825. @@ -13109,24 +9910,28 @@
  33826. # libtool to hard-code these into programs
  33827. ;;
  33828. -cygwin* | mingw* | pw32*)
  33829. +cygwin* | mingw* | pw32* | cegcc*)
  33830. version_type=windows
  33831. shrext_cmds=".dll"
  33832. need_version=no
  33833. need_lib_prefix=no
  33834. case $GCC,$host_os in
  33835. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33836. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  33837. library_names_spec='$libname.dll.a'
  33838. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33839. postinstall_cmds='base_file=`basename \${file}`~
  33840. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33841. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  33842. dldir=$destdir/`dirname \$dlpath`~
  33843. test -d \$dldir || mkdir -p \$dldir~
  33844. - $install_prog $dir/$dlname \$dldir/$dlname'
  33845. + $install_prog $dir/$dlname \$dldir/$dlname~
  33846. + chmod a+x \$dldir/$dlname~
  33847. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  33848. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  33849. + fi'
  33850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33851. dlpath=$dir/\$dldll~
  33852. - $rm \$dlpath'
  33853. + $RM \$dlpath'
  33854. shlibpath_overrides_runpath=yes
  33855. case $host_os in
  33856. @@ -13135,25 +9940,25 @@
  33857. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33858. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33859. ;;
  33860. - mingw*)
  33861. + mingw* | cegcc*)
  33862. # MinGW DLLs use traditional 'lib' prefix
  33863. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33864. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33865. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33866. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33867. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  33868. # It is most probably a Windows format PATH printed by
  33869. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33870. # path with ; separators, and with drive letters. We can handle the
  33871. # drive letters (cygwin fileutils understands them), so leave them,
  33872. # especially as we might pass files found there to a mingw objdump,
  33873. # which wouldn't understand a cygwinified path. Ahh.
  33874. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33875. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33876. else
  33877. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33878. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33879. fi
  33880. ;;
  33881. pw32*)
  33882. # pw32 DLLs use 'pw' prefix rather than 'lib'
  33883. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  33884. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33885. ;;
  33886. esac
  33887. ;;
  33888. @@ -13172,17 +9977,13 @@
  33889. version_type=darwin
  33890. need_lib_prefix=no
  33891. need_version=no
  33892. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33893. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33894. soname_spec='${libname}${release}${major}$shared_ext'
  33895. shlibpath_overrides_runpath=yes
  33896. shlibpath_var=DYLD_LIBRARY_PATH
  33897. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  33898. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  33899. - if test "$GCC" = yes; then
  33900. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  33901. - else
  33902. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  33903. - fi
  33904. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33905. +
  33906. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  33907. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33908. ;;
  33909. @@ -13199,20 +10000,17 @@
  33910. dynamic_linker=no
  33911. ;;
  33912. -kfreebsd*-gnu)
  33913. - version_type=linux
  33914. - need_lib_prefix=no
  33915. - need_version=no
  33916. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33917. - soname_spec='${libname}${release}${shared_ext}$major'
  33918. - shlibpath_var=LD_LIBRARY_PATH
  33919. - shlibpath_overrides_runpath=no
  33920. - hardcode_into_libs=yes
  33921. - dynamic_linker='GNU ld.so'
  33922. - ;;
  33923. -
  33924. -freebsd*)
  33925. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  33926. +freebsd* | dragonfly*)
  33927. + # DragonFly does not have aout. When/if they implement a new
  33928. + # versioning mechanism, adjust this.
  33929. + if test -x /usr/bin/objformat; then
  33930. + objformat=`/usr/bin/objformat`
  33931. + else
  33932. + case $host_os in
  33933. + freebsd[123]*) objformat=aout ;;
  33934. + *) objformat=elf ;;
  33935. + esac
  33936. + fi
  33937. version_type=freebsd-$objformat
  33938. case $version_type in
  33939. freebsd-elf*)
  33940. @@ -13230,14 +10028,19 @@
  33941. freebsd2*)
  33942. shlibpath_overrides_runpath=yes
  33943. ;;
  33944. - freebsd3.01* | freebsdelf3.01*)
  33945. + freebsd3.[01]* | freebsdelf3.[01]*)
  33946. shlibpath_overrides_runpath=yes
  33947. hardcode_into_libs=yes
  33948. ;;
  33949. - *) # from 3.2 on
  33950. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  33951. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  33952. shlibpath_overrides_runpath=no
  33953. hardcode_into_libs=yes
  33954. ;;
  33955. + *) # from 4.6 on, and DragonFly
  33956. + shlibpath_overrides_runpath=yes
  33957. + hardcode_into_libs=yes
  33958. + ;;
  33959. esac
  33960. ;;
  33961. @@ -13257,7 +10060,7 @@
  33962. version_type=sunos
  33963. need_lib_prefix=no
  33964. need_version=no
  33965. - case "$host_cpu" in
  33966. + case $host_cpu in
  33967. ia64*)
  33968. shrext_cmds='.so'
  33969. hardcode_into_libs=yes
  33970. @@ -13273,18 +10076,18 @@
  33971. fi
  33972. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33973. ;;
  33974. - hppa*64*)
  33975. - shrext_cmds='.sl'
  33976. - hardcode_into_libs=yes
  33977. - dynamic_linker="$host_os dld.sl"
  33978. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33979. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33980. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33981. - soname_spec='${libname}${release}${shared_ext}$major'
  33982. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33983. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33984. - ;;
  33985. - *)
  33986. + hppa*64*)
  33987. + shrext_cmds='.sl'
  33988. + hardcode_into_libs=yes
  33989. + dynamic_linker="$host_os dld.sl"
  33990. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33991. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33992. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33993. + soname_spec='${libname}${release}${shared_ext}$major'
  33994. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33995. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33996. + ;;
  33997. + *)
  33998. shrext_cmds='.sl'
  33999. dynamic_linker="$host_os dld.sl"
  34000. shlibpath_var=SHLIB_PATH
  34001. @@ -13297,6 +10100,18 @@
  34002. postinstall_cmds='chmod 555 $lib'
  34003. ;;
  34004. +interix[3-9]*)
  34005. + version_type=linux
  34006. + need_lib_prefix=no
  34007. + need_version=no
  34008. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34009. + soname_spec='${libname}${release}${shared_ext}$major'
  34010. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  34011. + shlibpath_var=LD_LIBRARY_PATH
  34012. + shlibpath_overrides_runpath=no
  34013. + hardcode_into_libs=yes
  34014. + ;;
  34015. +
  34016. irix5* | irix6* | nonstopux*)
  34017. case $host_os in
  34018. nonstopux*) version_type=nonstopux ;;
  34019. @@ -13340,7 +10155,7 @@
  34020. ;;
  34021. # This must be Linux ELF.
  34022. -linux*)
  34023. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  34024. version_type=linux
  34025. need_lib_prefix=no
  34026. need_version=no
  34027. @@ -13349,6 +10164,32 @@
  34028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  34029. shlibpath_var=LD_LIBRARY_PATH
  34030. shlibpath_overrides_runpath=no
  34031. + # Some binutils ld are patched to set DT_RUNPATH
  34032. + save_LDFLAGS=$LDFLAGS
  34033. + save_libdir=$libdir
  34034. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  34035. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  34036. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34037. +/* end confdefs.h. */
  34038. +
  34039. +int
  34040. +main ()
  34041. +{
  34042. +
  34043. + ;
  34044. + return 0;
  34045. +}
  34046. +_ACEOF
  34047. +if ac_fn_c_try_link "$LINENO"; then :
  34048. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  34049. + shlibpath_overrides_runpath=yes
  34050. +fi
  34051. +fi
  34052. +rm -f core conftest.err conftest.$ac_objext \
  34053. + conftest$ac_exeext conftest.$ac_ext
  34054. + LDFLAGS=$save_LDFLAGS
  34055. + libdir=$save_libdir
  34056. +
  34057. # This implies no fast_install, which is unacceptable.
  34058. # Some rework will be needed to allow for fast_install
  34059. # before this can be enabled.
  34060. @@ -13356,7 +10197,7 @@
  34061. # Append ld.so.conf contents to the search path
  34062. if test -f /etc/ld.so.conf; then
  34063. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  34064. + 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' ' '`
  34065. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  34066. fi
  34067. @@ -13369,7 +10210,7 @@
  34068. dynamic_linker='GNU/Linux ld.so'
  34069. ;;
  34070. -knetbsd*-gnu)
  34071. +netbsdelf*-gnu)
  34072. version_type=linux
  34073. need_lib_prefix=no
  34074. need_version=no
  34075. @@ -13378,14 +10219,14 @@
  34076. shlibpath_var=LD_LIBRARY_PATH
  34077. shlibpath_overrides_runpath=no
  34078. hardcode_into_libs=yes
  34079. - dynamic_linker='GNU ld.so'
  34080. + dynamic_linker='NetBSD ld.elf_so'
  34081. ;;
  34082. netbsd*)
  34083. version_type=sunos
  34084. need_lib_prefix=no
  34085. need_version=no
  34086. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34087. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34090. dynamic_linker='NetBSD (a.out) ld.so'
  34091. @@ -13406,24 +10247,31 @@
  34092. shlibpath_overrides_runpath=yes
  34093. ;;
  34094. -nto-qnx*)
  34095. - version_type=linux
  34096. +*nto* | *qnx*)
  34097. + version_type=qnx
  34098. need_lib_prefix=no
  34099. need_version=no
  34100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34101. soname_spec='${libname}${release}${shared_ext}$major'
  34102. shlibpath_var=LD_LIBRARY_PATH
  34103. - shlibpath_overrides_runpath=yes
  34104. + shlibpath_overrides_runpath=no
  34105. + hardcode_into_libs=yes
  34106. + dynamic_linker='ldqnx.so'
  34107. ;;
  34108. openbsd*)
  34109. version_type=sunos
  34110. + sys_lib_dlsearch_path_spec="/usr/lib"
  34111. need_lib_prefix=no
  34112. - need_version=no
  34113. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  34114. + case $host_os in
  34115. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  34116. + *) need_version=no ;;
  34117. + esac
  34118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34120. shlibpath_var=LD_LIBRARY_PATH
  34121. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34122. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34123. case $host_os in
  34124. openbsd2.[89] | openbsd2.[89].*)
  34125. shlibpath_overrides_runpath=no
  34126. @@ -13457,11 +10305,8 @@
  34127. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  34128. ;;
  34129. -sco3.2v5*)
  34130. - version_type=osf
  34131. - soname_spec='${libname}${release}${shared_ext}$major'
  34132. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34133. - shlibpath_var=LD_LIBRARY_PATH
  34134. +rdos*)
  34135. + dynamic_linker=no
  34136. ;;
  34137. solaris*)
  34138. @@ -13489,7 +10334,7 @@
  34139. need_version=yes
  34140. ;;
  34141. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  34142. +sysv4 | sysv4.3*)
  34143. version_type=linux
  34144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34145. soname_spec='${libname}${release}${shared_ext}$major'
  34146. @@ -13498,7 +10343,6 @@
  34147. sni)
  34148. shlibpath_overrides_runpath=no
  34149. need_lib_prefix=no
  34150. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  34151. runpath_var=LD_RUN_PATH
  34152. ;;
  34153. siemens)
  34154. @@ -13522,9 +10366,42 @@
  34155. fi
  34156. ;;
  34157. -uts4*)
  34158. - version_type=linux
  34159. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34160. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  34161. + version_type=freebsd-elf
  34162. + need_lib_prefix=no
  34163. + need_version=no
  34164. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  34165. + soname_spec='${libname}${release}${shared_ext}$major'
  34166. + shlibpath_var=LD_LIBRARY_PATH
  34167. + shlibpath_overrides_runpath=yes
  34168. + hardcode_into_libs=yes
  34169. + if test "$with_gnu_ld" = yes; then
  34170. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  34171. + else
  34172. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  34173. + case $host_os in
  34174. + sco3.2v5*)
  34175. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  34176. + ;;
  34177. + esac
  34178. + fi
  34179. + sys_lib_dlsearch_path_spec='/usr/lib'
  34180. + ;;
  34181. +
  34182. +tpf*)
  34183. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  34184. + version_type=linux
  34185. + need_lib_prefix=no
  34186. + need_version=no
  34187. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34188. + shlibpath_var=LD_LIBRARY_PATH
  34189. + shlibpath_overrides_runpath=no
  34190. + hardcode_into_libs=yes
  34191. + ;;
  34192. +
  34193. +uts4*)
  34194. + version_type=linux
  34195. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34196. soname_spec='${libname}${release}${shared_ext}$major'
  34197. shlibpath_var=LD_LIBRARY_PATH
  34198. ;;
  34199. @@ -13533,39 +10410,138 @@
  34200. dynamic_linker=no
  34201. ;;
  34202. esac
  34203. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  34204. -echo "${ECHO_T}$dynamic_linker" >&6; }
  34205. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  34206. +$as_echo "$dynamic_linker" >&6; }
  34207. test "$dynamic_linker" = no && can_build_shared=no
  34208. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  34209. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  34210. -hardcode_action_CXX=
  34211. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  34212. - test -n "$runpath_var_CXX" || \
  34213. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  34214. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34215. +if test "$GCC" = yes; then
  34216. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34217. +fi
  34218. +
  34219. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  34220. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  34221. +fi
  34222. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  34223. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  34224. +fi
  34225. +
  34226. +
  34227. +
  34228. +
  34229. +
  34230. +
  34231. +
  34232. +
  34233. +
  34234. +
  34235. +
  34236. +
  34237. +
  34238. +
  34239. +
  34240. +
  34241. +
  34242. +
  34243. +
  34244. +
  34245. +
  34246. +
  34247. +
  34248. +
  34249. +
  34250. +
  34251. +
  34252. +
  34253. +
  34254. +
  34255. +
  34256. +
  34257. +
  34258. - # We can hardcode non-existant directories.
  34259. - if test "$hardcode_direct_CXX" != no &&
  34260. +
  34261. +
  34262. +
  34263. +
  34264. +
  34265. +
  34266. +
  34267. +
  34268. +
  34269. +
  34270. +
  34271. +
  34272. +
  34273. +
  34274. +
  34275. +
  34276. +
  34277. +
  34278. +
  34279. +
  34280. +
  34281. +
  34282. +
  34283. +
  34284. +
  34285. +
  34286. +
  34287. +
  34288. +
  34289. +
  34290. +
  34291. +
  34292. +
  34293. +
  34294. +
  34295. +
  34296. +
  34297. +
  34298. +
  34299. +
  34300. +
  34301. +
  34302. +
  34303. +
  34304. +
  34305. +
  34306. +
  34307. +
  34308. +
  34309. +
  34310. +
  34311. +
  34312. +
  34313. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  34314. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  34315. +hardcode_action=
  34316. +if test -n "$hardcode_libdir_flag_spec" ||
  34317. + test -n "$runpath_var" ||
  34318. + test "X$hardcode_automatic" = "Xyes" ; then
  34319. +
  34320. + # We can hardcode non-existent directories.
  34321. + if test "$hardcode_direct" != no &&
  34322. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  34323. # have to relink, otherwise we might link with an installed library
  34324. # when we should be linking with a yet-to-be-installed one
  34325. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  34326. - test "$hardcode_minus_L_CXX" != no; then
  34327. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  34328. + test "$hardcode_minus_L" != no; then
  34329. # Linking always hardcodes the temporary library directory.
  34330. - hardcode_action_CXX=relink
  34331. + hardcode_action=relink
  34332. else
  34333. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  34334. - hardcode_action_CXX=immediate
  34335. + hardcode_action=immediate
  34336. fi
  34337. else
  34338. # We cannot hardcode anything, or else we can only hardcode existing
  34339. # directories.
  34340. - hardcode_action_CXX=unsupported
  34341. + hardcode_action=unsupported
  34342. fi
  34343. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  34344. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  34345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  34346. +$as_echo "$hardcode_action" >&6; }
  34347. -if test "$hardcode_action_CXX" = relink; then
  34348. +if test "$hardcode_action" = relink ||
  34349. + test "$inherit_rpath" = yes; then
  34350. # Fast installation is not supported
  34351. enable_fast_install=no
  34352. elif test "$shlibpath_overrides_runpath" = yes ||
  34353. @@ -13574,36 +10550,12 @@
  34354. enable_fast_install=needless
  34355. fi
  34356. -striplib=
  34357. -old_striplib=
  34358. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  34359. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  34360. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  34361. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  34362. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  34363. - { echo "$as_me:$LINENO: result: yes" >&5
  34364. -echo "${ECHO_T}yes" >&6; }
  34365. -else
  34366. -# FIXME - insert some real tests, host_os isn't really good enough
  34367. - case $host_os in
  34368. - darwin*)
  34369. - if test -n "$STRIP" ; then
  34370. - striplib="$STRIP -x"
  34371. - { echo "$as_me:$LINENO: result: yes" >&5
  34372. -echo "${ECHO_T}yes" >&6; }
  34373. - else
  34374. - { echo "$as_me:$LINENO: result: no" >&5
  34375. -echo "${ECHO_T}no" >&6; }
  34376. -fi
  34377. - ;;
  34378. - *)
  34379. - { echo "$as_me:$LINENO: result: no" >&5
  34380. -echo "${ECHO_T}no" >&6; }
  34381. - ;;
  34382. - esac
  34383. -fi
  34384. -if test "x$enable_dlopen" != xyes; then
  34385. +
  34386. +
  34387. +
  34388. +
  34389. + if test "x$enable_dlopen" != xyes; then
  34390. enable_dlopen=unknown
  34391. enable_dlopen_self=unknown
  34392. enable_dlopen_self_static=unknown
  34393. @@ -13618,30 +10570,26 @@
  34394. lt_cv_dlopen_self=yes
  34395. ;;
  34396. - mingw* | pw32*)
  34397. + mingw* | pw32* | cegcc*)
  34398. lt_cv_dlopen="LoadLibrary"
  34399. lt_cv_dlopen_libs=
  34400. - ;;
  34401. + ;;
  34402. cygwin*)
  34403. lt_cv_dlopen="dlopen"
  34404. lt_cv_dlopen_libs=
  34405. - ;;
  34406. + ;;
  34407. darwin*)
  34408. # if libdl is installed we need to link against it
  34409. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  34410. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  34411. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  34412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34413. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  34414. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  34415. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  34416. + $as_echo_n "(cached) " >&6
  34417. else
  34418. ac_check_lib_save_LIBS=$LIBS
  34419. LIBS="-ldl $LIBS"
  34420. -cat >conftest.$ac_ext <<_ACEOF
  34421. -/* confdefs.h. */
  34422. -_ACEOF
  34423. -cat confdefs.h >>conftest.$ac_ext
  34424. -cat >>conftest.$ac_ext <<_ACEOF
  34425. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34426. /* end confdefs.h. */
  34427. /* Override any GCC internal prototype to avoid an error.
  34428. @@ -13659,55 +10607,18 @@
  34429. return 0;
  34430. }
  34431. _ACEOF
  34432. -rm -f conftest.$ac_objext conftest$ac_exeext
  34433. -if { (ac_try="$ac_link"
  34434. -case "(($ac_try" in
  34435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34436. - *) ac_try_echo=$ac_try;;
  34437. -esac
  34438. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34439. - (eval "$ac_link") 2>conftest.er1
  34440. - ac_status=$?
  34441. - grep -v '^ *+' conftest.er1 >conftest.err
  34442. - rm -f conftest.er1
  34443. - cat conftest.err >&5
  34444. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34445. - (exit $ac_status); } &&
  34446. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34447. - { (case "(($ac_try" in
  34448. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34449. - *) ac_try_echo=$ac_try;;
  34450. -esac
  34451. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34452. - (eval "$ac_try") 2>&5
  34453. - ac_status=$?
  34454. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34455. - (exit $ac_status); }; } &&
  34456. - { ac_try='test -s conftest$ac_exeext'
  34457. - { (case "(($ac_try" in
  34458. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34459. - *) ac_try_echo=$ac_try;;
  34460. -esac
  34461. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34462. - (eval "$ac_try") 2>&5
  34463. - ac_status=$?
  34464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34465. - (exit $ac_status); }; }; then
  34466. +if ac_fn_c_try_link "$LINENO"; then :
  34467. ac_cv_lib_dl_dlopen=yes
  34468. else
  34469. - echo "$as_me: failed program was:" >&5
  34470. -sed 's/^/| /' conftest.$ac_ext >&5
  34471. -
  34472. - ac_cv_lib_dl_dlopen=no
  34473. + ac_cv_lib_dl_dlopen=no
  34474. fi
  34475. -
  34476. rm -f core conftest.err conftest.$ac_objext \
  34477. - conftest$ac_exeext conftest.$ac_ext
  34478. + conftest$ac_exeext conftest.$ac_ext
  34479. LIBS=$ac_check_lib_save_LIBS
  34480. fi
  34481. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  34482. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  34483. -if test $ac_cv_lib_dl_dlopen = yes; then
  34484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  34485. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  34486. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  34487. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34488. else
  34489. @@ -13717,36 +10628,22 @@
  34490. fi
  34491. - ;;
  34492. + ;;
  34493. *)
  34494. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  34495. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  34496. -if test "${ac_cv_func_shl_load+set}" = set; then
  34497. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34498. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  34499. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  34500. + lt_cv_dlopen="shl_load"
  34501. else
  34502. - cat >conftest.$ac_ext <<_ACEOF
  34503. -/* confdefs.h. */
  34504. -_ACEOF
  34505. -cat confdefs.h >>conftest.$ac_ext
  34506. -cat >>conftest.$ac_ext <<_ACEOF
  34507. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  34508. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  34509. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  34510. + $as_echo_n "(cached) " >&6
  34511. +else
  34512. + ac_check_lib_save_LIBS=$LIBS
  34513. +LIBS="-ldld $LIBS"
  34514. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34515. /* end confdefs.h. */
  34516. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  34517. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34518. -#define shl_load innocuous_shl_load
  34519. -
  34520. -/* System header to define __stub macros and hopefully few prototypes,
  34521. - which can conflict with char shl_load (); below.
  34522. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34523. - <limits.h> exists even on freestanding compilers. */
  34524. -
  34525. -#ifdef __STDC__
  34526. -# include <limits.h>
  34527. -#else
  34528. -# include <assert.h>
  34529. -#endif
  34530. -
  34531. -#undef shl_load
  34532. /* Override any GCC internal prototype to avoid an error.
  34533. Use char because int might match the return type of a GCC
  34534. @@ -13755,13 +10652,6 @@
  34535. extern "C"
  34536. #endif
  34537. char shl_load ();
  34538. -/* The GNU C library defines this for functions which it implements
  34539. - to always fail with ENOSYS. Some functions are actually named
  34540. - something starting with __ and the normal name is an alias. */
  34541. -#if defined __stub_shl_load || defined __stub___shl_load
  34542. -choke me
  34543. -#endif
  34544. -
  34545. int
  34546. main ()
  34547. {
  34548. @@ -13770,68 +10660,32 @@
  34549. return 0;
  34550. }
  34551. _ACEOF
  34552. -rm -f conftest.$ac_objext conftest$ac_exeext
  34553. -if { (ac_try="$ac_link"
  34554. -case "(($ac_try" in
  34555. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34556. - *) ac_try_echo=$ac_try;;
  34557. -esac
  34558. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34559. - (eval "$ac_link") 2>conftest.er1
  34560. - ac_status=$?
  34561. - grep -v '^ *+' conftest.er1 >conftest.err
  34562. - rm -f conftest.er1
  34563. - cat conftest.err >&5
  34564. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34565. - (exit $ac_status); } &&
  34566. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34567. - { (case "(($ac_try" in
  34568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34569. - *) ac_try_echo=$ac_try;;
  34570. -esac
  34571. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34572. - (eval "$ac_try") 2>&5
  34573. - ac_status=$?
  34574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34575. - (exit $ac_status); }; } &&
  34576. - { ac_try='test -s conftest$ac_exeext'
  34577. - { (case "(($ac_try" in
  34578. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34579. - *) ac_try_echo=$ac_try;;
  34580. -esac
  34581. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34582. - (eval "$ac_try") 2>&5
  34583. - ac_status=$?
  34584. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34585. - (exit $ac_status); }; }; then
  34586. - ac_cv_func_shl_load=yes
  34587. +if ac_fn_c_try_link "$LINENO"; then :
  34588. + ac_cv_lib_dld_shl_load=yes
  34589. else
  34590. - echo "$as_me: failed program was:" >&5
  34591. -sed 's/^/| /' conftest.$ac_ext >&5
  34592. -
  34593. - ac_cv_func_shl_load=no
  34594. + ac_cv_lib_dld_shl_load=no
  34595. fi
  34596. -
  34597. rm -f core conftest.err conftest.$ac_objext \
  34598. - conftest$ac_exeext conftest.$ac_ext
  34599. + conftest$ac_exeext conftest.$ac_ext
  34600. +LIBS=$ac_check_lib_save_LIBS
  34601. fi
  34602. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  34603. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  34604. -if test $ac_cv_func_shl_load = yes; then
  34605. - lt_cv_dlopen="shl_load"
  34606. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  34607. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  34608. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  34609. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  34610. +else
  34611. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  34612. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  34613. + lt_cv_dlopen="dlopen"
  34614. else
  34615. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  34616. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  34617. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  34618. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34619. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  34620. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  34621. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  34622. + $as_echo_n "(cached) " >&6
  34623. else
  34624. ac_check_lib_save_LIBS=$LIBS
  34625. -LIBS="-ldld $LIBS"
  34626. -cat >conftest.$ac_ext <<_ACEOF
  34627. -/* confdefs.h. */
  34628. -_ACEOF
  34629. -cat confdefs.h >>conftest.$ac_ext
  34630. -cat >>conftest.$ac_ext <<_ACEOF
  34631. +LIBS="-ldl $LIBS"
  34632. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34633. /* end confdefs.h. */
  34634. /* Override any GCC internal prototype to avoid an error.
  34635. @@ -13840,258 +10694,37 @@
  34636. #ifdef __cplusplus
  34637. extern "C"
  34638. #endif
  34639. -char shl_load ();
  34640. +char dlopen ();
  34641. int
  34642. main ()
  34643. {
  34644. -return shl_load ();
  34645. +return dlopen ();
  34646. ;
  34647. return 0;
  34648. }
  34649. _ACEOF
  34650. -rm -f conftest.$ac_objext conftest$ac_exeext
  34651. -if { (ac_try="$ac_link"
  34652. -case "(($ac_try" in
  34653. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34654. - *) ac_try_echo=$ac_try;;
  34655. -esac
  34656. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34657. - (eval "$ac_link") 2>conftest.er1
  34658. - ac_status=$?
  34659. - grep -v '^ *+' conftest.er1 >conftest.err
  34660. - rm -f conftest.er1
  34661. - cat conftest.err >&5
  34662. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34663. - (exit $ac_status); } &&
  34664. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34665. - { (case "(($ac_try" in
  34666. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34667. - *) ac_try_echo=$ac_try;;
  34668. -esac
  34669. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34670. - (eval "$ac_try") 2>&5
  34671. - ac_status=$?
  34672. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34673. - (exit $ac_status); }; } &&
  34674. - { ac_try='test -s conftest$ac_exeext'
  34675. - { (case "(($ac_try" in
  34676. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34677. - *) ac_try_echo=$ac_try;;
  34678. -esac
  34679. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34680. - (eval "$ac_try") 2>&5
  34681. - ac_status=$?
  34682. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34683. - (exit $ac_status); }; }; then
  34684. - ac_cv_lib_dld_shl_load=yes
  34685. +if ac_fn_c_try_link "$LINENO"; then :
  34686. + ac_cv_lib_dl_dlopen=yes
  34687. else
  34688. - echo "$as_me: failed program was:" >&5
  34689. -sed 's/^/| /' conftest.$ac_ext >&5
  34690. -
  34691. - ac_cv_lib_dld_shl_load=no
  34692. + ac_cv_lib_dl_dlopen=no
  34693. fi
  34694. -
  34695. rm -f core conftest.err conftest.$ac_objext \
  34696. - conftest$ac_exeext conftest.$ac_ext
  34697. + conftest$ac_exeext conftest.$ac_ext
  34698. LIBS=$ac_check_lib_save_LIBS
  34699. fi
  34700. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  34701. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  34702. -if test $ac_cv_lib_dld_shl_load = yes; then
  34703. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  34704. -else
  34705. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  34706. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  34707. -if test "${ac_cv_func_dlopen+set}" = set; then
  34708. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  34710. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  34711. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  34712. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34713. else
  34714. - cat >conftest.$ac_ext <<_ACEOF
  34715. -/* confdefs.h. */
  34716. -_ACEOF
  34717. -cat confdefs.h >>conftest.$ac_ext
  34718. -cat >>conftest.$ac_ext <<_ACEOF
  34719. -/* end confdefs.h. */
  34720. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  34721. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34722. -#define dlopen innocuous_dlopen
  34723. -
  34724. -/* System header to define __stub macros and hopefully few prototypes,
  34725. - which can conflict with char dlopen (); below.
  34726. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34727. - <limits.h> exists even on freestanding compilers. */
  34728. -
  34729. -#ifdef __STDC__
  34730. -# include <limits.h>
  34731. -#else
  34732. -# include <assert.h>
  34733. -#endif
  34734. -
  34735. -#undef dlopen
  34736. -
  34737. -/* Override any GCC internal prototype to avoid an error.
  34738. - Use char because int might match the return type of a GCC
  34739. - builtin and then its argument prototype would still apply. */
  34740. -#ifdef __cplusplus
  34741. -extern "C"
  34742. -#endif
  34743. -char dlopen ();
  34744. -/* The GNU C library defines this for functions which it implements
  34745. - to always fail with ENOSYS. Some functions are actually named
  34746. - something starting with __ and the normal name is an alias. */
  34747. -#if defined __stub_dlopen || defined __stub___dlopen
  34748. -choke me
  34749. -#endif
  34750. -
  34751. -int
  34752. -main ()
  34753. -{
  34754. -return dlopen ();
  34755. - ;
  34756. - return 0;
  34757. -}
  34758. -_ACEOF
  34759. -rm -f conftest.$ac_objext conftest$ac_exeext
  34760. -if { (ac_try="$ac_link"
  34761. -case "(($ac_try" in
  34762. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34763. - *) ac_try_echo=$ac_try;;
  34764. -esac
  34765. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34766. - (eval "$ac_link") 2>conftest.er1
  34767. - ac_status=$?
  34768. - grep -v '^ *+' conftest.er1 >conftest.err
  34769. - rm -f conftest.er1
  34770. - cat conftest.err >&5
  34771. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34772. - (exit $ac_status); } &&
  34773. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34774. - { (case "(($ac_try" in
  34775. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34776. - *) ac_try_echo=$ac_try;;
  34777. -esac
  34778. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34779. - (eval "$ac_try") 2>&5
  34780. - ac_status=$?
  34781. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34782. - (exit $ac_status); }; } &&
  34783. - { ac_try='test -s conftest$ac_exeext'
  34784. - { (case "(($ac_try" in
  34785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34786. - *) ac_try_echo=$ac_try;;
  34787. -esac
  34788. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34789. - (eval "$ac_try") 2>&5
  34790. - ac_status=$?
  34791. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34792. - (exit $ac_status); }; }; then
  34793. - ac_cv_func_dlopen=yes
  34794. -else
  34795. - echo "$as_me: failed program was:" >&5
  34796. -sed 's/^/| /' conftest.$ac_ext >&5
  34797. -
  34798. - ac_cv_func_dlopen=no
  34799. -fi
  34800. -
  34801. -rm -f core conftest.err conftest.$ac_objext \
  34802. - conftest$ac_exeext conftest.$ac_ext
  34803. -fi
  34804. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  34805. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  34806. -if test $ac_cv_func_dlopen = yes; then
  34807. - lt_cv_dlopen="dlopen"
  34808. -else
  34809. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  34810. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  34811. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  34812. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34813. -else
  34814. - ac_check_lib_save_LIBS=$LIBS
  34815. -LIBS="-ldl $LIBS"
  34816. -cat >conftest.$ac_ext <<_ACEOF
  34817. -/* confdefs.h. */
  34818. -_ACEOF
  34819. -cat confdefs.h >>conftest.$ac_ext
  34820. -cat >>conftest.$ac_ext <<_ACEOF
  34821. -/* end confdefs.h. */
  34822. -
  34823. -/* Override any GCC internal prototype to avoid an error.
  34824. - Use char because int might match the return type of a GCC
  34825. - builtin and then its argument prototype would still apply. */
  34826. -#ifdef __cplusplus
  34827. -extern "C"
  34828. -#endif
  34829. -char dlopen ();
  34830. -int
  34831. -main ()
  34832. -{
  34833. -return dlopen ();
  34834. - ;
  34835. - return 0;
  34836. -}
  34837. -_ACEOF
  34838. -rm -f conftest.$ac_objext conftest$ac_exeext
  34839. -if { (ac_try="$ac_link"
  34840. -case "(($ac_try" in
  34841. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34842. - *) ac_try_echo=$ac_try;;
  34843. -esac
  34844. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34845. - (eval "$ac_link") 2>conftest.er1
  34846. - ac_status=$?
  34847. - grep -v '^ *+' conftest.er1 >conftest.err
  34848. - rm -f conftest.er1
  34849. - cat conftest.err >&5
  34850. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34851. - (exit $ac_status); } &&
  34852. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34853. - { (case "(($ac_try" in
  34854. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34855. - *) ac_try_echo=$ac_try;;
  34856. -esac
  34857. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34858. - (eval "$ac_try") 2>&5
  34859. - ac_status=$?
  34860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34861. - (exit $ac_status); }; } &&
  34862. - { ac_try='test -s conftest$ac_exeext'
  34863. - { (case "(($ac_try" in
  34864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34865. - *) ac_try_echo=$ac_try;;
  34866. -esac
  34867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34868. - (eval "$ac_try") 2>&5
  34869. - ac_status=$?
  34870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34871. - (exit $ac_status); }; }; then
  34872. - ac_cv_lib_dl_dlopen=yes
  34873. -else
  34874. - echo "$as_me: failed program was:" >&5
  34875. -sed 's/^/| /' conftest.$ac_ext >&5
  34876. -
  34877. - ac_cv_lib_dl_dlopen=no
  34878. -fi
  34879. -
  34880. -rm -f core conftest.err conftest.$ac_objext \
  34881. - conftest$ac_exeext conftest.$ac_ext
  34882. -LIBS=$ac_check_lib_save_LIBS
  34883. -fi
  34884. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  34885. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  34886. -if test $ac_cv_lib_dl_dlopen = yes; then
  34887. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34888. -else
  34889. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  34890. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  34891. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  34892. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34893. -else
  34894. - ac_check_lib_save_LIBS=$LIBS
  34895. -LIBS="-lsvld $LIBS"
  34896. -cat >conftest.$ac_ext <<_ACEOF
  34897. -/* confdefs.h. */
  34898. -_ACEOF
  34899. -cat confdefs.h >>conftest.$ac_ext
  34900. -cat >>conftest.$ac_ext <<_ACEOF
  34901. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  34902. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  34903. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  34904. + $as_echo_n "(cached) " >&6
  34905. +else
  34906. + ac_check_lib_save_LIBS=$LIBS
  34907. +LIBS="-lsvld $LIBS"
  34908. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34909. /* end confdefs.h. */
  34910. /* Override any GCC internal prototype to avoid an error.
  34911. @@ -14109,69 +10742,28 @@
  34912. return 0;
  34913. }
  34914. _ACEOF
  34915. -rm -f conftest.$ac_objext conftest$ac_exeext
  34916. -if { (ac_try="$ac_link"
  34917. -case "(($ac_try" in
  34918. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34919. - *) ac_try_echo=$ac_try;;
  34920. -esac
  34921. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34922. - (eval "$ac_link") 2>conftest.er1
  34923. - ac_status=$?
  34924. - grep -v '^ *+' conftest.er1 >conftest.err
  34925. - rm -f conftest.er1
  34926. - cat conftest.err >&5
  34927. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34928. - (exit $ac_status); } &&
  34929. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34930. - { (case "(($ac_try" in
  34931. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34932. - *) ac_try_echo=$ac_try;;
  34933. -esac
  34934. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34935. - (eval "$ac_try") 2>&5
  34936. - ac_status=$?
  34937. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34938. - (exit $ac_status); }; } &&
  34939. - { ac_try='test -s conftest$ac_exeext'
  34940. - { (case "(($ac_try" in
  34941. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34942. - *) ac_try_echo=$ac_try;;
  34943. -esac
  34944. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34945. - (eval "$ac_try") 2>&5
  34946. - ac_status=$?
  34947. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34948. - (exit $ac_status); }; }; then
  34949. +if ac_fn_c_try_link "$LINENO"; then :
  34950. ac_cv_lib_svld_dlopen=yes
  34951. else
  34952. - echo "$as_me: failed program was:" >&5
  34953. -sed 's/^/| /' conftest.$ac_ext >&5
  34954. -
  34955. - ac_cv_lib_svld_dlopen=no
  34956. + ac_cv_lib_svld_dlopen=no
  34957. fi
  34958. -
  34959. rm -f core conftest.err conftest.$ac_objext \
  34960. - conftest$ac_exeext conftest.$ac_ext
  34961. + conftest$ac_exeext conftest.$ac_ext
  34962. LIBS=$ac_check_lib_save_LIBS
  34963. fi
  34964. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  34965. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  34966. -if test $ac_cv_lib_svld_dlopen = yes; then
  34967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  34968. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  34969. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  34970. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  34971. else
  34972. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  34973. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  34974. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  34975. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34976. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  34977. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  34978. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  34979. + $as_echo_n "(cached) " >&6
  34980. else
  34981. ac_check_lib_save_LIBS=$LIBS
  34982. LIBS="-ldld $LIBS"
  34983. -cat >conftest.$ac_ext <<_ACEOF
  34984. -/* confdefs.h. */
  34985. -_ACEOF
  34986. -cat confdefs.h >>conftest.$ac_ext
  34987. -cat >>conftest.$ac_ext <<_ACEOF
  34988. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34989. /* end confdefs.h. */
  34990. /* Override any GCC internal prototype to avoid an error.
  34991. @@ -14189,56 +10781,19 @@
  34992. return 0;
  34993. }
  34994. _ACEOF
  34995. -rm -f conftest.$ac_objext conftest$ac_exeext
  34996. -if { (ac_try="$ac_link"
  34997. -case "(($ac_try" in
  34998. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34999. - *) ac_try_echo=$ac_try;;
  35000. -esac
  35001. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35002. - (eval "$ac_link") 2>conftest.er1
  35003. - ac_status=$?
  35004. - grep -v '^ *+' conftest.er1 >conftest.err
  35005. - rm -f conftest.er1
  35006. - cat conftest.err >&5
  35007. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35008. - (exit $ac_status); } &&
  35009. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  35010. - { (case "(($ac_try" in
  35011. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35012. - *) ac_try_echo=$ac_try;;
  35013. -esac
  35014. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35015. - (eval "$ac_try") 2>&5
  35016. - ac_status=$?
  35017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35018. - (exit $ac_status); }; } &&
  35019. - { ac_try='test -s conftest$ac_exeext'
  35020. - { (case "(($ac_try" in
  35021. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35022. - *) ac_try_echo=$ac_try;;
  35023. -esac
  35024. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35025. - (eval "$ac_try") 2>&5
  35026. - ac_status=$?
  35027. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35028. - (exit $ac_status); }; }; then
  35029. +if ac_fn_c_try_link "$LINENO"; then :
  35030. ac_cv_lib_dld_dld_link=yes
  35031. else
  35032. - echo "$as_me: failed program was:" >&5
  35033. -sed 's/^/| /' conftest.$ac_ext >&5
  35034. -
  35035. - ac_cv_lib_dld_dld_link=no
  35036. + ac_cv_lib_dld_dld_link=no
  35037. fi
  35038. -
  35039. rm -f core conftest.err conftest.$ac_objext \
  35040. - conftest$ac_exeext conftest.$ac_ext
  35041. + conftest$ac_exeext conftest.$ac_ext
  35042. LIBS=$ac_check_lib_save_LIBS
  35043. fi
  35044. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  35045. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  35046. -if test $ac_cv_lib_dld_dld_link = yes; then
  35047. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  35048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  35049. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  35050. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  35051. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  35052. fi
  35053. @@ -14271,23 +10826,23 @@
  35054. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  35055. save_LDFLAGS="$LDFLAGS"
  35056. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  35057. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  35058. save_LIBS="$LIBS"
  35059. LIBS="$lt_cv_dlopen_libs $LIBS"
  35060. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  35061. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  35062. -if test "${lt_cv_dlopen_self+set}" = set; then
  35063. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35064. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  35065. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  35066. +if test "${lt_cv_dlopen_self+set}" = set; then :
  35067. + $as_echo_n "(cached) " >&6
  35068. else
  35069. if test "$cross_compiling" = yes; then :
  35070. lt_cv_dlopen_self=cross
  35071. else
  35072. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35073. lt_status=$lt_dlunknown
  35074. - cat > conftest.$ac_ext <<EOF
  35075. -#line 14290 "configure"
  35076. + cat > conftest.$ac_ext <<_LT_EOF
  35077. +#line 10845 "configure"
  35078. #include "confdefs.h"
  35079. #if HAVE_DLFCN_H
  35080. @@ -14328,10 +10883,6 @@
  35081. # endif
  35082. #endif
  35083. -#ifdef __cplusplus
  35084. -extern "C" void exit (int);
  35085. -#endif
  35086. -
  35087. void fnord() { int i=42;}
  35088. int main ()
  35089. {
  35090. @@ -14344,21 +10895,23 @@
  35091. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35092. /* dlclose (self); */
  35093. }
  35094. + else
  35095. + puts (dlerror ());
  35096. - exit (status);
  35097. + return status;
  35098. }
  35099. -EOF
  35100. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35101. +_LT_EOF
  35102. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  35103. (eval $ac_link) 2>&5
  35104. ac_status=$?
  35105. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35106. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  35107. - (./conftest; exit; ) 2>/dev/null
  35108. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35109. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  35110. + (./conftest; exit; ) >&5 2>/dev/null
  35111. lt_status=$?
  35112. case x$lt_status in
  35113. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  35114. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  35115. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  35116. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  35117. esac
  35118. else :
  35119. # compilation failed
  35120. @@ -14369,23 +10922,23 @@
  35121. fi
  35122. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  35123. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  35124. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  35125. +$as_echo "$lt_cv_dlopen_self" >&6; }
  35126. if test "x$lt_cv_dlopen_self" = xyes; then
  35127. - LDFLAGS="$LDFLAGS $link_static_flag"
  35128. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  35129. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  35130. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  35131. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35132. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  35133. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  35134. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  35135. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  35136. + $as_echo_n "(cached) " >&6
  35137. else
  35138. if test "$cross_compiling" = yes; then :
  35139. lt_cv_dlopen_self_static=cross
  35140. else
  35141. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35142. lt_status=$lt_dlunknown
  35143. - cat > conftest.$ac_ext <<EOF
  35144. -#line 14388 "configure"
  35145. + cat > conftest.$ac_ext <<_LT_EOF
  35146. +#line 10941 "configure"
  35147. #include "confdefs.h"
  35148. #if HAVE_DLFCN_H
  35149. @@ -14426,10 +10979,6 @@
  35150. # endif
  35151. #endif
  35152. -#ifdef __cplusplus
  35153. -extern "C" void exit (int);
  35154. -#endif
  35155. -
  35156. void fnord() { int i=42;}
  35157. int main ()
  35158. {
  35159. @@ -14442,21 +10991,23 @@
  35160. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35161. /* dlclose (self); */
  35162. }
  35163. + else
  35164. + puts (dlerror ());
  35165. - exit (status);
  35166. + return status;
  35167. }
  35168. -EOF
  35169. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35170. +_LT_EOF
  35171. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  35172. (eval $ac_link) 2>&5
  35173. ac_status=$?
  35174. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35175. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  35176. - (./conftest; exit; ) 2>/dev/null
  35177. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35178. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  35179. + (./conftest; exit; ) >&5 2>/dev/null
  35180. lt_status=$?
  35181. case x$lt_status in
  35182. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  35183. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  35184. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  35185. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  35186. esac
  35187. else :
  35188. # compilation failed
  35189. @@ -14467,8 +11018,8 @@
  35190. fi
  35191. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  35192. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  35193. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  35194. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  35195. fi
  35196. CPPFLAGS="$save_CPPFLAGS"
  35197. @@ -14489,11737 +11040,3490 @@
  35198. fi
  35199. -# The else clause should only fire when bootstrapping the
  35200. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  35201. -# with your package, and you will get complaints that there are
  35202. -# no rules to generate ltmain.sh.
  35203. -if test -f "$ltmain"; then
  35204. - # See if we are running on zsh, and set the options which allow our commands through
  35205. - # without removal of \ escapes.
  35206. - if test -n "${ZSH_VERSION+set}" ; then
  35207. - setopt NO_GLOB_SUBST
  35208. - fi
  35209. - # Now quote all the things that may contain metacharacters while being
  35210. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  35211. - # variables and quote the copies for generation of the libtool script.
  35212. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  35213. - SED SHELL STRIP \
  35214. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  35215. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  35216. - deplibs_check_method reload_flag reload_cmds need_locks \
  35217. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  35218. - lt_cv_sys_global_symbol_to_c_name_address \
  35219. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  35220. - old_postinstall_cmds old_postuninstall_cmds \
  35221. - compiler_CXX \
  35222. - CC_CXX \
  35223. - LD_CXX \
  35224. - lt_prog_compiler_wl_CXX \
  35225. - lt_prog_compiler_pic_CXX \
  35226. - lt_prog_compiler_static_CXX \
  35227. - lt_prog_compiler_no_builtin_flag_CXX \
  35228. - export_dynamic_flag_spec_CXX \
  35229. - thread_safe_flag_spec_CXX \
  35230. - whole_archive_flag_spec_CXX \
  35231. - enable_shared_with_static_runtimes_CXX \
  35232. - old_archive_cmds_CXX \
  35233. - old_archive_from_new_cmds_CXX \
  35234. - predep_objects_CXX \
  35235. - postdep_objects_CXX \
  35236. - predeps_CXX \
  35237. - postdeps_CXX \
  35238. - compiler_lib_search_path_CXX \
  35239. - archive_cmds_CXX \
  35240. - archive_expsym_cmds_CXX \
  35241. - postinstall_cmds_CXX \
  35242. - postuninstall_cmds_CXX \
  35243. - old_archive_from_expsyms_cmds_CXX \
  35244. - allow_undefined_flag_CXX \
  35245. - no_undefined_flag_CXX \
  35246. - export_symbols_cmds_CXX \
  35247. - hardcode_libdir_flag_spec_CXX \
  35248. - hardcode_libdir_flag_spec_ld_CXX \
  35249. - hardcode_libdir_separator_CXX \
  35250. - hardcode_automatic_CXX \
  35251. - module_cmds_CXX \
  35252. - module_expsym_cmds_CXX \
  35253. - lt_cv_prog_compiler_c_o_CXX \
  35254. - exclude_expsyms_CXX \
  35255. - include_expsyms_CXX; do
  35256. -
  35257. - case $var in
  35258. - old_archive_cmds_CXX | \
  35259. - old_archive_from_new_cmds_CXX | \
  35260. - archive_cmds_CXX | \
  35261. - archive_expsym_cmds_CXX | \
  35262. - module_cmds_CXX | \
  35263. - module_expsym_cmds_CXX | \
  35264. - old_archive_from_expsyms_cmds_CXX | \
  35265. - export_symbols_cmds_CXX | \
  35266. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  35267. - postinstall_cmds | postuninstall_cmds | \
  35268. - old_postinstall_cmds | old_postuninstall_cmds | \
  35269. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  35270. - # Double-quote double-evaled strings.
  35271. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  35272. - ;;
  35273. - *)
  35274. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  35275. - ;;
  35276. - esac
  35277. - done
  35278. - case $lt_echo in
  35279. - *'\$0 --fallback-echo"')
  35280. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  35281. - ;;
  35282. - esac
  35283. -cfgfile="$ofile"
  35284. - cat <<__EOF__ >> "$cfgfile"
  35285. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  35286. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  35287. -# Shell to use when invoking shell scripts.
  35288. -SHELL=$lt_SHELL
  35289. -# Whether or not to build shared libraries.
  35290. -build_libtool_libs=$enable_shared
  35291. -# Whether or not to build static libraries.
  35292. -build_old_libs=$enable_static
  35293. -# Whether or not to add -lc for building shared libraries.
  35294. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  35295. -# Whether or not to disallow shared libs when runtime libs are static
  35296. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  35297. -# Whether or not to optimize for fast installation.
  35298. -fast_install=$enable_fast_install
  35299. -# The host system.
  35300. -host_alias=$host_alias
  35301. -host=$host
  35302. -# An echo program that does not interpret backslashes.
  35303. -echo=$lt_echo
  35304. -# The archiver.
  35305. -AR=$lt_AR
  35306. -AR_FLAGS=$lt_AR_FLAGS
  35307. -# A C compiler.
  35308. -LTCC=$lt_LTCC
  35309. -# A language-specific compiler.
  35310. -CC=$lt_compiler_CXX
  35311. +striplib=
  35312. +old_striplib=
  35313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  35314. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  35315. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  35316. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  35317. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  35318. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35319. +$as_echo "yes" >&6; }
  35320. +else
  35321. +# FIXME - insert some real tests, host_os isn't really good enough
  35322. + case $host_os in
  35323. + darwin*)
  35324. + if test -n "$STRIP" ; then
  35325. + striplib="$STRIP -x"
  35326. + old_striplib="$STRIP -S"
  35327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35328. +$as_echo "yes" >&6; }
  35329. + else
  35330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35331. +$as_echo "no" >&6; }
  35332. + fi
  35333. + ;;
  35334. + *)
  35335. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35336. +$as_echo "no" >&6; }
  35337. + ;;
  35338. + esac
  35339. +fi
  35340. -# Is the compiler the GNU C compiler?
  35341. -with_gcc=$GCC_CXX
  35342. -# An ERE matcher.
  35343. -EGREP=$lt_EGREP
  35344. -# The linker used to build libraries.
  35345. -LD=$lt_LD_CXX
  35346. -# Whether we need hard or soft links.
  35347. -LN_S=$lt_LN_S
  35348. -# A BSD-compatible nm program.
  35349. -NM=$lt_NM
  35350. -# A symbol stripping program
  35351. -STRIP=$lt_STRIP
  35352. -# Used to examine libraries when file_magic_cmd begins "file"
  35353. -MAGIC_CMD=$MAGIC_CMD
  35354. -# Used on cygwin: DLL creation program.
  35355. -DLLTOOL="$DLLTOOL"
  35356. -# Used on cygwin: object dumper.
  35357. -OBJDUMP="$OBJDUMP"
  35358. -# Used on cygwin: assembler.
  35359. -AS="$AS"
  35360. -# The name of the directory that contains temporary libtool files.
  35361. -objdir=$objdir
  35362. -# How to create reloadable object files.
  35363. -reload_flag=$lt_reload_flag
  35364. -reload_cmds=$lt_reload_cmds
  35365. + # Report which library types will actually be built
  35366. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  35367. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  35368. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  35369. +$as_echo "$can_build_shared" >&6; }
  35370. -# How to pass a linker flag through the compiler.
  35371. -wl=$lt_lt_prog_compiler_wl_CXX
  35372. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  35373. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  35374. + test "$can_build_shared" = "no" && enable_shared=no
  35375. -# Object file suffix (normally "o").
  35376. -objext="$ac_objext"
  35377. + # On AIX, shared libraries and static libraries use the same namespace, and
  35378. + # are all built from PIC.
  35379. + case $host_os in
  35380. + aix3*)
  35381. + test "$enable_shared" = yes && enable_static=no
  35382. + if test -n "$RANLIB"; then
  35383. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  35384. + postinstall_cmds='$RANLIB $lib'
  35385. + fi
  35386. + ;;
  35387. -# Old archive suffix (normally "a").
  35388. -libext="$libext"
  35389. + aix[4-9]*)
  35390. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  35391. + test "$enable_shared" = yes && enable_static=no
  35392. + fi
  35393. + ;;
  35394. + esac
  35395. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  35396. +$as_echo "$enable_shared" >&6; }
  35397. -# Shared library suffix (normally ".so").
  35398. -shrext_cmds='$shrext_cmds'
  35399. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  35400. +$as_echo_n "checking whether to build static libraries... " >&6; }
  35401. + # Make sure either enable_shared or enable_static is yes.
  35402. + test "$enable_shared" = yes || enable_static=yes
  35403. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  35404. +$as_echo "$enable_static" >&6; }
  35405. -# Executable file suffix (normally "").
  35406. -exeext="$exeext"
  35407. -# Additional compiler flags for building library objects.
  35408. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  35409. -pic_mode=$pic_mode
  35410. -# What is the maximum length of a command?
  35411. -max_cmd_len=$lt_cv_sys_max_cmd_len
  35412. -# Does compiler simultaneously support -c and -o options?
  35413. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  35414. +fi
  35415. +ac_ext=c
  35416. +ac_cpp='$CPP $CPPFLAGS'
  35417. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35418. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35419. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35420. -# Must we lock files when doing compilation ?
  35421. -need_locks=$lt_need_locks
  35422. +CC="$lt_save_CC"
  35423. -# Do we need the lib prefix for modules?
  35424. -need_lib_prefix=$need_lib_prefix
  35425. -# Do we need a version for libraries?
  35426. -need_version=$need_version
  35427. -# Whether dlopen is supported.
  35428. -dlopen_support=$enable_dlopen
  35429. -# Whether dlopen of programs is supported.
  35430. -dlopen_self=$enable_dlopen_self
  35431. -# Whether dlopen of statically linked programs is supported.
  35432. -dlopen_self_static=$enable_dlopen_self_static
  35433. -# Compiler flag to prevent dynamic linking.
  35434. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  35435. -# Compiler flag to turn off builtin functions.
  35436. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  35437. -# Compiler flag to allow reflexive dlopens.
  35438. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  35439. -# Compiler flag to generate shared objects directly from archives.
  35440. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  35441. -# Compiler flag to generate thread-safe objects.
  35442. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  35443. -# Library versioning type.
  35444. -version_type=$version_type
  35445. -# Format of library name prefix.
  35446. -libname_spec=$lt_libname_spec
  35447. -# List of archive names. First name is the real one, the rest are links.
  35448. -# The last name is the one that the linker finds with -lNAME.
  35449. -library_names_spec=$lt_library_names_spec
  35450. + ac_config_commands="$ac_config_commands libtool"
  35451. -# The coded name of the library, if different from the real name.
  35452. -soname_spec=$lt_soname_spec
  35453. -# Commands used to build and install an old-style archive.
  35454. -RANLIB=$lt_RANLIB
  35455. -old_archive_cmds=$lt_old_archive_cmds_CXX
  35456. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35457. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35458. -# Create an old-style archive from a shared archive.
  35459. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  35460. -# Create a temporary old-style archive to link instead of a shared archive.
  35461. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  35462. +# Only expand once:
  35463. -# Commands used to build and install a shared archive.
  35464. -archive_cmds=$lt_archive_cmds_CXX
  35465. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  35466. -postinstall_cmds=$lt_postinstall_cmds
  35467. -postuninstall_cmds=$lt_postuninstall_cmds
  35468. -# Commands used to build a loadable module (assumed same as above if empty)
  35469. -module_cmds=$lt_module_cmds_CXX
  35470. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  35471. -# Commands to strip libraries.
  35472. -old_striplib=$lt_old_striplib
  35473. -striplib=$lt_striplib
  35474. -
  35475. -# Dependencies to place before the objects being linked to create a
  35476. -# shared library.
  35477. -predep_objects=$lt_predep_objects_CXX
  35478. -
  35479. -# Dependencies to place after the objects being linked to create a
  35480. -# shared library.
  35481. -postdep_objects=$lt_postdep_objects_CXX
  35482. -
  35483. -# Dependencies to place before the objects being linked to create a
  35484. -# shared library.
  35485. -predeps=$lt_predeps_CXX
  35486. -
  35487. -# Dependencies to place after the objects being linked to create a
  35488. -# shared library.
  35489. -postdeps=$lt_postdeps_CXX
  35490. -
  35491. -# The library search path used internally by the compiler when linking
  35492. -# a shared library.
  35493. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  35494. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
  35495. +$as_echo_n "checking for ldexp in -lm... " >&6; }
  35496. +if test "${ac_cv_lib_m_ldexp+set}" = set; then :
  35497. + $as_echo_n "(cached) " >&6
  35498. +else
  35499. + ac_check_lib_save_LIBS=$LIBS
  35500. +LIBS="-lm $LIBS"
  35501. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35502. +/* end confdefs.h. */
  35503. -# Method to check whether dependent libraries are shared objects.
  35504. -deplibs_check_method=$lt_deplibs_check_method
  35505. +/* Override any GCC internal prototype to avoid an error.
  35506. + Use char because int might match the return type of a GCC
  35507. + builtin and then its argument prototype would still apply. */
  35508. +#ifdef __cplusplus
  35509. +extern "C"
  35510. +#endif
  35511. +char ldexp ();
  35512. +int
  35513. +main ()
  35514. +{
  35515. +return ldexp ();
  35516. + ;
  35517. + return 0;
  35518. +}
  35519. +_ACEOF
  35520. +if ac_fn_c_try_link "$LINENO"; then :
  35521. + ac_cv_lib_m_ldexp=yes
  35522. +else
  35523. + ac_cv_lib_m_ldexp=no
  35524. +fi
  35525. +rm -f core conftest.err conftest.$ac_objext \
  35526. + conftest$ac_exeext conftest.$ac_ext
  35527. +LIBS=$ac_check_lib_save_LIBS
  35528. +fi
  35529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
  35530. +$as_echo "$ac_cv_lib_m_ldexp" >&6; }
  35531. +if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
  35532. + cat >>confdefs.h <<_ACEOF
  35533. +#define HAVE_LIBM 1
  35534. +_ACEOF
  35535. -# Command to use when deplibs_check_method == file_magic.
  35536. -file_magic_cmd=$lt_file_magic_cmd
  35537. + LIBS="-lm $LIBS"
  35538. -# Flag that allows shared libraries with undefined symbols to be built.
  35539. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  35540. +fi
  35541. -# Flag that forces no undefined symbols.
  35542. -no_undefined_flag=$lt_no_undefined_flag_CXX
  35543. -# Commands used to finish a libtool library installation in a directory.
  35544. -finish_cmds=$lt_finish_cmds
  35545. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5
  35546. +$as_echo_n "checking for alOpenPort in -laudio... " >&6; }
  35547. +if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then :
  35548. + $as_echo_n "(cached) " >&6
  35549. +else
  35550. + ac_check_lib_save_LIBS=$LIBS
  35551. +LIBS="-laudio $LIBS"
  35552. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35553. +/* end confdefs.h. */
  35554. -# Same as above, but a single script fragment to be evaled but not shown.
  35555. -finish_eval=$lt_finish_eval
  35556. +/* Override any GCC internal prototype to avoid an error.
  35557. + Use char because int might match the return type of a GCC
  35558. + builtin and then its argument prototype would still apply. */
  35559. +#ifdef __cplusplus
  35560. +extern "C"
  35561. +#endif
  35562. +char alOpenPort ();
  35563. +int
  35564. +main ()
  35565. +{
  35566. +return alOpenPort ();
  35567. + ;
  35568. + return 0;
  35569. +}
  35570. +_ACEOF
  35571. +if ac_fn_c_try_link "$LINENO"; then :
  35572. + ac_cv_lib_audio_alOpenPort=yes
  35573. +else
  35574. + ac_cv_lib_audio_alOpenPort=no
  35575. +fi
  35576. +rm -f core conftest.err conftest.$ac_objext \
  35577. + conftest$ac_exeext conftest.$ac_ext
  35578. +LIBS=$ac_check_lib_save_LIBS
  35579. +fi
  35580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5
  35581. +$as_echo "$ac_cv_lib_audio_alOpenPort" >&6; }
  35582. +if test "x$ac_cv_lib_audio_alOpenPort" = x""yes; then :
  35583. + AUDIO_LIB=-laudio
  35584. +fi
  35585. -# Take the output of nm and produce a listing of raw symbols and C names.
  35586. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35587. -# Transform the output of nm in a proper C declaration
  35588. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35589. -# Transform the output of nm in a C name address pair
  35590. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  35592. +$as_echo_n "checking for ANSI C header files... " >&6; }
  35593. +if test "${ac_cv_header_stdc+set}" = set; then :
  35594. + $as_echo_n "(cached) " >&6
  35595. +else
  35596. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35597. +/* end confdefs.h. */
  35598. +#include <stdlib.h>
  35599. +#include <stdarg.h>
  35600. +#include <string.h>
  35601. +#include <float.h>
  35602. -# This is the shared library runtime path variable.
  35603. -runpath_var=$runpath_var
  35604. +int
  35605. +main ()
  35606. +{
  35607. -# This is the shared library path variable.
  35608. -shlibpath_var=$shlibpath_var
  35609. + ;
  35610. + return 0;
  35611. +}
  35612. +_ACEOF
  35613. +if ac_fn_c_try_compile "$LINENO"; then :
  35614. + ac_cv_header_stdc=yes
  35615. +else
  35616. + ac_cv_header_stdc=no
  35617. +fi
  35618. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35619. -# Is shlibpath searched before the hard-coded library search path?
  35620. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35621. +if test $ac_cv_header_stdc = yes; then
  35622. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  35623. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35624. +/* end confdefs.h. */
  35625. +#include <string.h>
  35626. -# How to hardcode a shared library path into an executable.
  35627. -hardcode_action=$hardcode_action_CXX
  35628. +_ACEOF
  35629. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35630. + $EGREP "memchr" >/dev/null 2>&1; then :
  35631. -# Whether we should hardcode library paths into libraries.
  35632. -hardcode_into_libs=$hardcode_into_libs
  35633. +else
  35634. + ac_cv_header_stdc=no
  35635. +fi
  35636. +rm -f conftest*
  35637. -# Flag to hardcode \$libdir into a binary during linking.
  35638. -# This must work even if \$libdir does not exist.
  35639. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  35640. +fi
  35641. -# If ld is used when linking, flag to hardcode \$libdir into
  35642. -# a binary during linking. This must work even if \$libdir does
  35643. -# not exist.
  35644. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  35645. -
  35646. -# Whether we need a single -rpath flag with a separated argument.
  35647. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  35648. -
  35649. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35650. -# resulting binary.
  35651. -hardcode_direct=$hardcode_direct_CXX
  35652. -
  35653. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35654. -# resulting binary.
  35655. -hardcode_minus_L=$hardcode_minus_L_CXX
  35656. -
  35657. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35658. -# the resulting binary.
  35659. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  35660. -
  35661. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35662. -# and all subsequent libraries and executables linked against it.
  35663. -hardcode_automatic=$hardcode_automatic_CXX
  35664. +if test $ac_cv_header_stdc = yes; then
  35665. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  35666. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35667. +/* end confdefs.h. */
  35668. +#include <stdlib.h>
  35669. -# Variables whose values should be saved in libtool wrapper scripts and
  35670. -# restored at relink time.
  35671. -variables_saved_for_relink="$variables_saved_for_relink"
  35672. +_ACEOF
  35673. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35674. + $EGREP "free" >/dev/null 2>&1; then :
  35675. -# Whether libtool must link a program against all its dependency libraries.
  35676. -link_all_deplibs=$link_all_deplibs_CXX
  35677. +else
  35678. + ac_cv_header_stdc=no
  35679. +fi
  35680. +rm -f conftest*
  35681. -# Compile-time system search path for libraries
  35682. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35683. +fi
  35684. -# Run-time system search path for libraries
  35685. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35686. +if test $ac_cv_header_stdc = yes; then
  35687. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  35688. + if test "$cross_compiling" = yes; then :
  35689. + :
  35690. +else
  35691. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35692. +/* end confdefs.h. */
  35693. +#include <ctype.h>
  35694. +#include <stdlib.h>
  35695. +#if ((' ' & 0x0FF) == 0x020)
  35696. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  35697. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  35698. +#else
  35699. +# define ISLOWER(c) \
  35700. + (('a' <= (c) && (c) <= 'i') \
  35701. + || ('j' <= (c) && (c) <= 'r') \
  35702. + || ('s' <= (c) && (c) <= 'z'))
  35703. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  35704. +#endif
  35705. -# Fix the shell variable \$srcfile for the compiler.
  35706. -fix_srcfile_path="$fix_srcfile_path_CXX"
  35707. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  35708. +int
  35709. +main ()
  35710. +{
  35711. + int i;
  35712. + for (i = 0; i < 256; i++)
  35713. + if (XOR (islower (i), ISLOWER (i))
  35714. + || toupper (i) != TOUPPER (i))
  35715. + return 2;
  35716. + return 0;
  35717. +}
  35718. +_ACEOF
  35719. +if ac_fn_c_try_run "$LINENO"; then :
  35720. -# Set to yes if exported symbols are required.
  35721. -always_export_symbols=$always_export_symbols_CXX
  35722. +else
  35723. + ac_cv_header_stdc=no
  35724. +fi
  35725. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35726. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  35727. +fi
  35728. -# The commands to list exported symbols.
  35729. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  35730. +fi
  35731. +fi
  35732. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  35733. +$as_echo "$ac_cv_header_stdc" >&6; }
  35734. +if test $ac_cv_header_stdc = yes; then
  35735. -# The commands to extract the exported symbol list from a shared archive.
  35736. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35737. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  35738. -# Symbols that should not be listed in the preloaded symbols.
  35739. -exclude_expsyms=$lt_exclude_expsyms_CXX
  35740. +fi
  35741. -# Symbols that must always be exported.
  35742. -include_expsyms=$lt_include_expsyms_CXX
  35743. +for ac_header in fcntl.h unistd.h
  35744. +do :
  35745. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  35746. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  35747. +eval as_val=\$$as_ac_Header
  35748. + if test "x$as_val" = x""yes; then :
  35749. + cat >>confdefs.h <<_ACEOF
  35750. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  35751. +_ACEOF
  35752. -# ### END LIBTOOL TAG CONFIG: $tagname
  35753. +fi
  35754. -__EOF__
  35755. +done
  35756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  35757. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  35758. +if test "${ac_cv_c_const+set}" = set; then :
  35759. + $as_echo_n "(cached) " >&6
  35760. else
  35761. - # If there is no Makefile yet, we rely on a make rule to execute
  35762. - # `config.status --recheck' to rerun these tests and create the
  35763. - # libtool script then.
  35764. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35765. - if test -f "$ltmain_in"; then
  35766. - test -f Makefile && make "$ltmain"
  35767. - fi
  35768. -fi
  35769. -
  35770. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35771. +/* end confdefs.h. */
  35772. -ac_ext=c
  35773. -ac_cpp='$CPP $CPPFLAGS'
  35774. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35775. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35776. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35777. +int
  35778. +main ()
  35779. +{
  35780. +/* FIXME: Include the comments suggested by Paul. */
  35781. +#ifndef __cplusplus
  35782. + /* Ultrix mips cc rejects this. */
  35783. + typedef int charset[2];
  35784. + const charset cs;
  35785. + /* SunOS 4.1.1 cc rejects this. */
  35786. + char const *const *pcpcc;
  35787. + char **ppc;
  35788. + /* NEC SVR4.0.2 mips cc rejects this. */
  35789. + struct point {int x, y;};
  35790. + static struct point const zero = {0,0};
  35791. + /* AIX XL C 1.02.0.0 rejects this.
  35792. + It does not let you subtract one const X* pointer from another in
  35793. + an arm of an if-expression whose if-part is not a constant
  35794. + expression */
  35795. + const char *g = "string";
  35796. + pcpcc = &g + (g ? g-g : 0);
  35797. + /* HPUX 7.0 cc rejects these. */
  35798. + ++pcpcc;
  35799. + ppc = (char**) pcpcc;
  35800. + pcpcc = (char const *const *) ppc;
  35801. + { /* SCO 3.2v4 cc rejects this. */
  35802. + char *t;
  35803. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  35804. -CC=$lt_save_CC
  35805. -LDCXX=$LD
  35806. -LD=$lt_save_LD
  35807. -GCC=$lt_save_GCC
  35808. -with_gnu_ldcxx=$with_gnu_ld
  35809. -with_gnu_ld=$lt_save_with_gnu_ld
  35810. -lt_cv_path_LDCXX=$lt_cv_path_LD
  35811. -lt_cv_path_LD=$lt_save_path_LD
  35812. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  35813. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  35814. + *t++ = 0;
  35815. + if (s) return 0;
  35816. + }
  35817. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  35818. + int x[] = {25, 17};
  35819. + const int *foo = &x[0];
  35820. + ++foo;
  35821. + }
  35822. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  35823. + typedef const int *iptr;
  35824. + iptr p = 0;
  35825. + ++p;
  35826. + }
  35827. + { /* AIX XL C 1.02.0.0 rejects this saying
  35828. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  35829. + struct s { int j; const int *ap[3]; };
  35830. + struct s *b; b->j = 5;
  35831. + }
  35832. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  35833. + const int foo = 10;
  35834. + if (!foo) return 0;
  35835. + }
  35836. + return !cs[0] && !zero.x;
  35837. +#endif
  35838. - else
  35839. - tagname=""
  35840. - fi
  35841. - ;;
  35842. + ;
  35843. + return 0;
  35844. +}
  35845. +_ACEOF
  35846. +if ac_fn_c_try_compile "$LINENO"; then :
  35847. + ac_cv_c_const=yes
  35848. +else
  35849. + ac_cv_c_const=no
  35850. +fi
  35851. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35852. +fi
  35853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  35854. +$as_echo "$ac_cv_c_const" >&6; }
  35855. +if test $ac_cv_c_const = no; then
  35856. - F77)
  35857. - if test -n "$F77" && test "X$F77" != "Xno"; then
  35858. +$as_echo "#define const /**/" >>confdefs.h
  35859. -ac_ext=f
  35860. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  35861. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35862. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  35863. -
  35864. -
  35865. -archive_cmds_need_lc_F77=no
  35866. -allow_undefined_flag_F77=
  35867. -always_export_symbols_F77=no
  35868. -archive_expsym_cmds_F77=
  35869. -export_dynamic_flag_spec_F77=
  35870. -hardcode_direct_F77=no
  35871. -hardcode_libdir_flag_spec_F77=
  35872. -hardcode_libdir_flag_spec_ld_F77=
  35873. -hardcode_libdir_separator_F77=
  35874. -hardcode_minus_L_F77=no
  35875. -hardcode_automatic_F77=no
  35876. -module_cmds_F77=
  35877. -module_expsym_cmds_F77=
  35878. -link_all_deplibs_F77=unknown
  35879. -old_archive_cmds_F77=$old_archive_cmds
  35880. -no_undefined_flag_F77=
  35881. -whole_archive_flag_spec_F77=
  35882. -enable_shared_with_static_runtimes_F77=no
  35883. +fi
  35884. -# Source file extension for f77 test sources.
  35885. -ac_ext=f
  35886. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  35887. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  35888. +if test "${ac_cv_c_bigendian+set}" = set; then :
  35889. + $as_echo_n "(cached) " >&6
  35890. +else
  35891. + ac_cv_c_bigendian=unknown
  35892. + # See if we're dealing with a universal compiler.
  35893. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35894. +/* end confdefs.h. */
  35895. +#ifndef __APPLE_CC__
  35896. + not a universal capable compiler
  35897. + #endif
  35898. + typedef int dummy;
  35899. +
  35900. +_ACEOF
  35901. +if ac_fn_c_try_compile "$LINENO"; then :
  35902. +
  35903. + # Check for potential -arch flags. It is not universal unless
  35904. + # there are at least two -arch flags with different values.
  35905. + ac_arch=
  35906. + ac_prev=
  35907. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  35908. + if test -n "$ac_prev"; then
  35909. + case $ac_word in
  35910. + i?86 | x86_64 | ppc | ppc64)
  35911. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  35912. + ac_arch=$ac_word
  35913. + else
  35914. + ac_cv_c_bigendian=universal
  35915. + break
  35916. + fi
  35917. + ;;
  35918. + esac
  35919. + ac_prev=
  35920. + elif test "x$ac_word" = "x-arch"; then
  35921. + ac_prev=arch
  35922. + fi
  35923. + done
  35924. +fi
  35925. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35926. + if test $ac_cv_c_bigendian = unknown; then
  35927. + # See if sys/param.h defines the BYTE_ORDER macro.
  35928. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35929. +/* end confdefs.h. */
  35930. +#include <sys/types.h>
  35931. + #include <sys/param.h>
  35932. -# Object file extension for compiled f77 test sources.
  35933. -objext=o
  35934. -objext_F77=$objext
  35935. +int
  35936. +main ()
  35937. +{
  35938. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  35939. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  35940. + && LITTLE_ENDIAN)
  35941. + bogus endian macros
  35942. + #endif
  35943. -# Code to be used in simple compile tests
  35944. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  35945. + ;
  35946. + return 0;
  35947. +}
  35948. +_ACEOF
  35949. +if ac_fn_c_try_compile "$LINENO"; then :
  35950. + # It does; now see whether it defined to BIG_ENDIAN or not.
  35951. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35952. +/* end confdefs.h. */
  35953. +#include <sys/types.h>
  35954. + #include <sys/param.h>
  35955. -# Code to be used in simple link tests
  35956. -lt_simple_link_test_code=" program t\n end\n"
  35957. +int
  35958. +main ()
  35959. +{
  35960. +#if BYTE_ORDER != BIG_ENDIAN
  35961. + not big endian
  35962. + #endif
  35963. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35964. + ;
  35965. + return 0;
  35966. +}
  35967. +_ACEOF
  35968. +if ac_fn_c_try_compile "$LINENO"; then :
  35969. + ac_cv_c_bigendian=yes
  35970. +else
  35971. + ac_cv_c_bigendian=no
  35972. +fi
  35973. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35974. +fi
  35975. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35976. + fi
  35977. + if test $ac_cv_c_bigendian = unknown; then
  35978. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  35979. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35980. +/* end confdefs.h. */
  35981. +#include <limits.h>
  35982. -# If no C compiler was specified, use CC.
  35983. -LTCC=${LTCC-"$CC"}
  35984. +int
  35985. +main ()
  35986. +{
  35987. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  35988. + bogus endian macros
  35989. + #endif
  35990. -# Allow CC to be a program name with arguments.
  35991. -compiler=$CC
  35992. + ;
  35993. + return 0;
  35994. +}
  35995. +_ACEOF
  35996. +if ac_fn_c_try_compile "$LINENO"; then :
  35997. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  35998. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35999. +/* end confdefs.h. */
  36000. +#include <limits.h>
  36001. +int
  36002. +main ()
  36003. +{
  36004. +#ifndef _BIG_ENDIAN
  36005. + not big endian
  36006. + #endif
  36007. -# Allow CC to be a program name with arguments.
  36008. -lt_save_CC="$CC"
  36009. -CC=${F77-"f77"}
  36010. -compiler=$CC
  36011. -compiler_F77=$CC
  36012. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  36013. + ;
  36014. + return 0;
  36015. +}
  36016. +_ACEOF
  36017. +if ac_fn_c_try_compile "$LINENO"; then :
  36018. + ac_cv_c_bigendian=yes
  36019. +else
  36020. + ac_cv_c_bigendian=no
  36021. +fi
  36022. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36023. +fi
  36024. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36025. + fi
  36026. + if test $ac_cv_c_bigendian = unknown; then
  36027. + # Compile a test program.
  36028. + if test "$cross_compiling" = yes; then :
  36029. + # Try to guess by grepping values from an object file.
  36030. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36031. +/* end confdefs.h. */
  36032. +short int ascii_mm[] =
  36033. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  36034. + short int ascii_ii[] =
  36035. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  36036. + int use_ascii (int i) {
  36037. + return ascii_mm[i] + ascii_ii[i];
  36038. + }
  36039. + short int ebcdic_ii[] =
  36040. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  36041. + short int ebcdic_mm[] =
  36042. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  36043. + int use_ebcdic (int i) {
  36044. + return ebcdic_mm[i] + ebcdic_ii[i];
  36045. + }
  36046. + extern int foo;
  36047. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  36048. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  36049. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  36050. -echo "${ECHO_T}$can_build_shared" >&6; }
  36051. -
  36052. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  36053. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  36054. -test "$can_build_shared" = "no" && enable_shared=no
  36055. +int
  36056. +main ()
  36057. +{
  36058. +return use_ascii (foo) == use_ebcdic (foo);
  36059. + ;
  36060. + return 0;
  36061. +}
  36062. +_ACEOF
  36063. +if ac_fn_c_try_compile "$LINENO"; then :
  36064. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  36065. + ac_cv_c_bigendian=yes
  36066. + fi
  36067. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  36068. + if test "$ac_cv_c_bigendian" = unknown; then
  36069. + ac_cv_c_bigendian=no
  36070. + else
  36071. + # finding both strings is unlikely to happen, but who knows?
  36072. + ac_cv_c_bigendian=unknown
  36073. + fi
  36074. + fi
  36075. +fi
  36076. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36077. +else
  36078. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36079. +/* end confdefs.h. */
  36080. +$ac_includes_default
  36081. +int
  36082. +main ()
  36083. +{
  36084. -# On AIX, shared libraries and static libraries use the same namespace, and
  36085. -# are all built from PIC.
  36086. -case "$host_os" in
  36087. -aix3*)
  36088. - test "$enable_shared" = yes && enable_static=no
  36089. - if test -n "$RANLIB"; then
  36090. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  36091. - postinstall_cmds='$RANLIB $lib'
  36092. - fi
  36093. - ;;
  36094. -aix4* | aix5*)
  36095. - test "$enable_shared" = yes && enable_static=no
  36096. - ;;
  36097. -esac
  36098. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  36099. -echo "${ECHO_T}$enable_shared" >&6; }
  36100. + /* Are we little or big endian? From Harbison&Steele. */
  36101. + union
  36102. + {
  36103. + long int l;
  36104. + char c[sizeof (long int)];
  36105. + } u;
  36106. + u.l = 1;
  36107. + return u.c[sizeof (long int) - 1] == 1;
  36108. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  36109. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  36110. -# Make sure either enable_shared or enable_static is yes.
  36111. -test "$enable_shared" = yes || enable_static=yes
  36112. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  36113. -echo "${ECHO_T}$enable_static" >&6; }
  36114. + ;
  36115. + return 0;
  36116. +}
  36117. +_ACEOF
  36118. +if ac_fn_c_try_run "$LINENO"; then :
  36119. + ac_cv_c_bigendian=no
  36120. +else
  36121. + ac_cv_c_bigendian=yes
  36122. +fi
  36123. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36124. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  36125. +fi
  36126. -test "$ld_shlibs_F77" = no && can_build_shared=no
  36127. + fi
  36128. +fi
  36129. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  36130. +$as_echo "$ac_cv_c_bigendian" >&6; }
  36131. + case $ac_cv_c_bigendian in #(
  36132. + yes)
  36133. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  36134. +;; #(
  36135. + no)
  36136. + ;; #(
  36137. + universal)
  36138. -GCC_F77="$G77"
  36139. -LD_F77="$LD"
  36140. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  36141. -lt_prog_compiler_wl_F77=
  36142. -lt_prog_compiler_pic_F77=
  36143. -lt_prog_compiler_static_F77=
  36144. + ;; #(
  36145. + *)
  36146. + as_fn_error "unknown endianness
  36147. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  36148. + esac
  36149. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  36150. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  36151. - if test "$GCC" = yes; then
  36152. - lt_prog_compiler_wl_F77='-Wl,'
  36153. - lt_prog_compiler_static_F77='-static'
  36154. +if test "x$enable_largefile" = "x"; then
  36155. + enable_largefile=no
  36156. +fi
  36157. +# Check whether --enable-largefile was given.
  36158. +if test "${enable_largefile+set}" = set; then :
  36159. + enableval=$enable_largefile;
  36160. +fi
  36161. - case $host_os in
  36162. - aix*)
  36163. - # All AIX code is PIC.
  36164. - if test "$host_cpu" = ia64; then
  36165. - # AIX 5 now supports IA64 processor
  36166. - lt_prog_compiler_static_F77='-Bstatic'
  36167. - fi
  36168. - ;;
  36169. +if test "$enable_largefile" != no; then
  36170. - amigaos*)
  36171. - # FIXME: we need at least 68020 code to build shared libraries, but
  36172. - # adding the `-m68020' flag to GCC prevents building anything better,
  36173. - # like `-m68040'.
  36174. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  36175. - ;;
  36176. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  36177. +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  36178. +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  36179. + $as_echo_n "(cached) " >&6
  36180. +else
  36181. + ac_cv_sys_largefile_CC=no
  36182. + if test "$GCC" != yes; then
  36183. + ac_save_CC=$CC
  36184. + while :; do
  36185. + # IRIX 6.2 and later do not support large files by default,
  36186. + # so use the C compiler's -n32 option if that helps.
  36187. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36188. +/* end confdefs.h. */
  36189. +#include <sys/types.h>
  36190. + /* Check that off_t can represent 2**63 - 1 correctly.
  36191. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  36192. + since some C++ compilers masquerading as C compilers
  36193. + incorrectly reject 9223372036854775807. */
  36194. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  36195. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  36196. + && LARGE_OFF_T % 2147483647 == 1)
  36197. + ? 1 : -1];
  36198. +int
  36199. +main ()
  36200. +{
  36201. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  36202. - # PIC is the default for these OSes.
  36203. - ;;
  36204. + ;
  36205. + return 0;
  36206. +}
  36207. +_ACEOF
  36208. + if ac_fn_c_try_compile "$LINENO"; then :
  36209. + break
  36210. +fi
  36211. +rm -f core conftest.err conftest.$ac_objext
  36212. + CC="$CC -n32"
  36213. + if ac_fn_c_try_compile "$LINENO"; then :
  36214. + ac_cv_sys_largefile_CC=' -n32'; break
  36215. +fi
  36216. +rm -f core conftest.err conftest.$ac_objext
  36217. + break
  36218. + done
  36219. + CC=$ac_save_CC
  36220. + rm -f conftest.$ac_ext
  36221. + fi
  36222. +fi
  36223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  36224. +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  36225. + if test "$ac_cv_sys_largefile_CC" != no; then
  36226. + CC=$CC$ac_cv_sys_largefile_CC
  36227. + fi
  36228. - mingw* | pw32* | os2*)
  36229. - # This hack is so that the source file can tell whether it is being
  36230. - # built for inclusion in a dll (and should export symbols for example).
  36231. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  36232. - ;;
  36233. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  36234. +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  36235. +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  36236. + $as_echo_n "(cached) " >&6
  36237. +else
  36238. + while :; do
  36239. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36240. +/* end confdefs.h. */
  36241. +#include <sys/types.h>
  36242. + /* Check that off_t can represent 2**63 - 1 correctly.
  36243. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  36244. + since some C++ compilers masquerading as C compilers
  36245. + incorrectly reject 9223372036854775807. */
  36246. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  36247. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  36248. + && LARGE_OFF_T % 2147483647 == 1)
  36249. + ? 1 : -1];
  36250. +int
  36251. +main ()
  36252. +{
  36253. - darwin* | rhapsody*)
  36254. - # PIC is the default on this platform
  36255. - # Common symbols not allowed in MH_DYLIB files
  36256. - lt_prog_compiler_pic_F77='-fno-common'
  36257. - ;;
  36258. + ;
  36259. + return 0;
  36260. +}
  36261. +_ACEOF
  36262. +if ac_fn_c_try_compile "$LINENO"; then :
  36263. + ac_cv_sys_file_offset_bits=no; break
  36264. +fi
  36265. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36266. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36267. +/* end confdefs.h. */
  36268. +#define _FILE_OFFSET_BITS 64
  36269. +#include <sys/types.h>
  36270. + /* Check that off_t can represent 2**63 - 1 correctly.
  36271. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  36272. + since some C++ compilers masquerading as C compilers
  36273. + incorrectly reject 9223372036854775807. */
  36274. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  36275. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  36276. + && LARGE_OFF_T % 2147483647 == 1)
  36277. + ? 1 : -1];
  36278. +int
  36279. +main ()
  36280. +{
  36281. - msdosdjgpp*)
  36282. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  36283. - # on systems that don't support them.
  36284. - lt_prog_compiler_can_build_shared_F77=no
  36285. - enable_shared=no
  36286. - ;;
  36287. + ;
  36288. + return 0;
  36289. +}
  36290. +_ACEOF
  36291. +if ac_fn_c_try_compile "$LINENO"; then :
  36292. + ac_cv_sys_file_offset_bits=64; break
  36293. +fi
  36294. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36295. + ac_cv_sys_file_offset_bits=unknown
  36296. + break
  36297. +done
  36298. +fi
  36299. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  36300. +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  36301. +case $ac_cv_sys_file_offset_bits in #(
  36302. + no | unknown) ;;
  36303. + *)
  36304. +cat >>confdefs.h <<_ACEOF
  36305. +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  36306. +_ACEOF
  36307. +;;
  36308. +esac
  36309. +rm -rf conftest*
  36310. + if test $ac_cv_sys_file_offset_bits = unknown; then
  36311. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  36312. +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  36313. +if test "${ac_cv_sys_large_files+set}" = set; then :
  36314. + $as_echo_n "(cached) " >&6
  36315. +else
  36316. + while :; do
  36317. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36318. +/* end confdefs.h. */
  36319. +#include <sys/types.h>
  36320. + /* Check that off_t can represent 2**63 - 1 correctly.
  36321. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  36322. + since some C++ compilers masquerading as C compilers
  36323. + incorrectly reject 9223372036854775807. */
  36324. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  36325. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  36326. + && LARGE_OFF_T % 2147483647 == 1)
  36327. + ? 1 : -1];
  36328. +int
  36329. +main ()
  36330. +{
  36331. - sysv4*MP*)
  36332. - if test -d /usr/nec; then
  36333. - lt_prog_compiler_pic_F77=-Kconform_pic
  36334. - fi
  36335. - ;;
  36336. + ;
  36337. + return 0;
  36338. +}
  36339. +_ACEOF
  36340. +if ac_fn_c_try_compile "$LINENO"; then :
  36341. + ac_cv_sys_large_files=no; break
  36342. +fi
  36343. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36344. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36345. +/* end confdefs.h. */
  36346. +#define _LARGE_FILES 1
  36347. +#include <sys/types.h>
  36348. + /* Check that off_t can represent 2**63 - 1 correctly.
  36349. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  36350. + since some C++ compilers masquerading as C compilers
  36351. + incorrectly reject 9223372036854775807. */
  36352. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  36353. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  36354. + && LARGE_OFF_T % 2147483647 == 1)
  36355. + ? 1 : -1];
  36356. +int
  36357. +main ()
  36358. +{
  36359. - hpux*)
  36360. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36361. - # not for PA HP-UX.
  36362. - case "$host_cpu" in
  36363. - hppa*64*|ia64*)
  36364. - # +Z the default
  36365. - ;;
  36366. - *)
  36367. - lt_prog_compiler_pic_F77='-fPIC'
  36368. - ;;
  36369. - esac
  36370. - ;;
  36371. + ;
  36372. + return 0;
  36373. +}
  36374. +_ACEOF
  36375. +if ac_fn_c_try_compile "$LINENO"; then :
  36376. + ac_cv_sys_large_files=1; break
  36377. +fi
  36378. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36379. + ac_cv_sys_large_files=unknown
  36380. + break
  36381. +done
  36382. +fi
  36383. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  36384. +$as_echo "$ac_cv_sys_large_files" >&6; }
  36385. +case $ac_cv_sys_large_files in #(
  36386. + no | unknown) ;;
  36387. + *)
  36388. +cat >>confdefs.h <<_ACEOF
  36389. +#define _LARGE_FILES $ac_cv_sys_large_files
  36390. +_ACEOF
  36391. +;;
  36392. +esac
  36393. +rm -rf conftest*
  36394. + fi
  36395. +fi
  36396. - *)
  36397. - lt_prog_compiler_pic_F77='-fPIC'
  36398. - ;;
  36399. - esac
  36400. - else
  36401. - # PORTME Check for flag to pass linker flags through the system compiler.
  36402. - case $host_os in
  36403. - aix*)
  36404. - lt_prog_compiler_wl_F77='-Wl,'
  36405. - if test "$host_cpu" = ia64; then
  36406. - # AIX 5 now supports IA64 processor
  36407. - lt_prog_compiler_static_F77='-Bstatic'
  36408. - else
  36409. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  36410. - fi
  36411. - ;;
  36412. - darwin*)
  36413. - # PIC is the default on this platform
  36414. - # Common symbols not allowed in MH_DYLIB files
  36415. - case "$cc_basename" in
  36416. - xlc*)
  36417. - lt_prog_compiler_pic_F77='-qnocommon'
  36418. - lt_prog_compiler_wl_F77='-Wl,'
  36419. - ;;
  36420. - esac
  36421. - ;;
  36422. +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  36423. +if test "x$ac_cv_type_off_t" = x""yes; then :
  36424. - mingw* | pw32* | os2*)
  36425. - # This hack is so that the source file can tell whether it is being
  36426. - # built for inclusion in a dll (and should export symbols for example).
  36427. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  36428. - ;;
  36429. +else
  36430. - hpux9* | hpux10* | hpux11*)
  36431. - lt_prog_compiler_wl_F77='-Wl,'
  36432. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36433. - # not for PA HP-UX.
  36434. - case "$host_cpu" in
  36435. - hppa*64*|ia64*)
  36436. - # +Z the default
  36437. - ;;
  36438. - *)
  36439. - lt_prog_compiler_pic_F77='+Z'
  36440. - ;;
  36441. - esac
  36442. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  36443. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  36444. - ;;
  36445. +cat >>confdefs.h <<_ACEOF
  36446. +#define off_t long int
  36447. +_ACEOF
  36448. - irix5* | irix6* | nonstopux*)
  36449. - lt_prog_compiler_wl_F77='-Wl,'
  36450. - # PIC (with -KPIC) is the default.
  36451. - lt_prog_compiler_static_F77='-non_shared'
  36452. - ;;
  36453. +fi
  36454. - newsos6)
  36455. - lt_prog_compiler_pic_F77='-KPIC'
  36456. - lt_prog_compiler_static_F77='-Bstatic'
  36457. - ;;
  36458. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  36459. +if test "x$ac_cv_type_size_t" = x""yes; then :
  36460. - linux*)
  36461. - case $CC in
  36462. - icc* | ecc*)
  36463. - lt_prog_compiler_wl_F77='-Wl,'
  36464. - lt_prog_compiler_pic_F77='-KPIC'
  36465. - lt_prog_compiler_static_F77='-static'
  36466. - ;;
  36467. - ccc*)
  36468. - lt_prog_compiler_wl_F77='-Wl,'
  36469. - # All Alpha code is PIC.
  36470. - lt_prog_compiler_static_F77='-non_shared'
  36471. - ;;
  36472. - esac
  36473. - ;;
  36474. +else
  36475. - osf3* | osf4* | osf5*)
  36476. - lt_prog_compiler_wl_F77='-Wl,'
  36477. - # All OSF/1 code is PIC.
  36478. - lt_prog_compiler_static_F77='-non_shared'
  36479. - ;;
  36480. +cat >>confdefs.h <<_ACEOF
  36481. +#define size_t unsigned int
  36482. +_ACEOF
  36483. - sco3.2v5*)
  36484. - lt_prog_compiler_pic_F77='-Kpic'
  36485. - lt_prog_compiler_static_F77='-dn'
  36486. - ;;
  36487. +fi
  36488. - solaris*)
  36489. - lt_prog_compiler_wl_F77='-Wl,'
  36490. - lt_prog_compiler_pic_F77='-KPIC'
  36491. - lt_prog_compiler_static_F77='-Bstatic'
  36492. - ;;
  36493. - sunos4*)
  36494. - lt_prog_compiler_wl_F77='-Qoption ld '
  36495. - lt_prog_compiler_pic_F77='-PIC'
  36496. - lt_prog_compiler_static_F77='-Bstatic'
  36497. - ;;
  36498. +# The cast to long int works around a bug in the HP C Compiler
  36499. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  36500. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  36501. +# This bug is HP SR number 8606223364.
  36502. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  36503. +$as_echo_n "checking size of off_t... " >&6; }
  36504. +if test "${ac_cv_sizeof_off_t+set}" = set; then :
  36505. + $as_echo_n "(cached) " >&6
  36506. +else
  36507. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  36508. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  36509. - lt_prog_compiler_wl_F77='-Wl,'
  36510. - lt_prog_compiler_pic_F77='-KPIC'
  36511. - lt_prog_compiler_static_F77='-Bstatic'
  36512. - ;;
  36513. +else
  36514. + if test "$ac_cv_type_off_t" = yes; then
  36515. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36516. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36517. +{ as_fn_set_status 77
  36518. +as_fn_error "cannot compute sizeof (off_t)
  36519. +See \`config.log' for more details." "$LINENO" 5; }; }
  36520. + else
  36521. + ac_cv_sizeof_off_t=0
  36522. + fi
  36523. +fi
  36524. - sysv4*MP*)
  36525. - if test -d /usr/nec ;then
  36526. - lt_prog_compiler_pic_F77='-Kconform_pic'
  36527. - lt_prog_compiler_static_F77='-Bstatic'
  36528. - fi
  36529. - ;;
  36530. +fi
  36531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  36532. +$as_echo "$ac_cv_sizeof_off_t" >&6; }
  36533. - uts4*)
  36534. - lt_prog_compiler_pic_F77='-pic'
  36535. - lt_prog_compiler_static_F77='-Bstatic'
  36536. - ;;
  36537. - *)
  36538. - lt_prog_compiler_can_build_shared_F77=no
  36539. - ;;
  36540. - esac
  36541. - fi
  36542. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  36543. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  36544. +cat >>confdefs.h <<_ACEOF
  36545. +#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  36546. +_ACEOF
  36547. -#
  36548. -# Check to make sure the PIC flag actually works.
  36549. -#
  36550. -if test -n "$lt_prog_compiler_pic_F77"; then
  36551. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  36552. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  36553. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  36554. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36555. -else
  36556. - lt_prog_compiler_pic_works_F77=no
  36557. - ac_outfile=conftest.$ac_objext
  36558. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36559. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  36560. - # Insert the option either (1) after the last *FLAGS variable, or
  36561. - # (2) before a word containing "conftest.", or (3) at the end.
  36562. - # Note that $ac_compile itself does not contain backslashes and begins
  36563. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36564. - # The option is referenced via a variable to avoid confusing sed.
  36565. - lt_compile=`echo "$ac_compile" | $SED \
  36566. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  36567. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36568. - -e 's:$: $lt_compiler_flag:'`
  36569. - (eval echo "\"\$as_me:15225: $lt_compile\"" >&5)
  36570. - (eval "$lt_compile" 2>conftest.err)
  36571. - ac_status=$?
  36572. - cat conftest.err >&5
  36573. - echo "$as_me:15229: \$? = $ac_status" >&5
  36574. - if (exit $ac_status) && test -s "$ac_outfile"; then
  36575. - # The compiler can only warn and ignore the option if not recognized
  36576. - # So say no if there are warnings
  36577. - if test ! -s conftest.err; then
  36578. - lt_prog_compiler_pic_works_F77=yes
  36579. - fi
  36580. +# The cast to long int works around a bug in the HP C Compiler
  36581. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  36582. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  36583. +# This bug is HP SR number 8606223364.
  36584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  36585. +$as_echo_n "checking size of size_t... " >&6; }
  36586. +if test "${ac_cv_sizeof_size_t+set}" = set; then :
  36587. + $as_echo_n "(cached) " >&6
  36588. +else
  36589. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  36590. +
  36591. +else
  36592. + if test "$ac_cv_type_size_t" = yes; then
  36593. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36594. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36595. +{ as_fn_set_status 77
  36596. +as_fn_error "cannot compute sizeof (size_t)
  36597. +See \`config.log' for more details." "$LINENO" 5; }; }
  36598. + else
  36599. + ac_cv_sizeof_size_t=0
  36600. fi
  36601. - $rm conftest*
  36602. +fi
  36603. fi
  36604. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  36605. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  36606. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  36607. +$as_echo "$ac_cv_sizeof_size_t" >&6; }
  36608. +
  36609. +
  36610. +
  36611. +cat >>confdefs.h <<_ACEOF
  36612. +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  36613. +_ACEOF
  36614. +
  36615. +
  36616. +# The cast to long int works around a bug in the HP C Compiler
  36617. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  36618. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  36619. +# This bug is HP SR number 8606223364.
  36620. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  36621. +$as_echo_n "checking size of long... " >&6; }
  36622. +if test "${ac_cv_sizeof_long+set}" = set; then :
  36623. + $as_echo_n "(cached) " >&6
  36624. +else
  36625. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  36626. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  36627. - case $lt_prog_compiler_pic_F77 in
  36628. - "" | " "*) ;;
  36629. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  36630. - esac
  36631. else
  36632. - lt_prog_compiler_pic_F77=
  36633. - lt_prog_compiler_can_build_shared_F77=no
  36634. + if test "$ac_cv_type_long" = yes; then
  36635. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36636. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36637. +{ as_fn_set_status 77
  36638. +as_fn_error "cannot compute sizeof (long)
  36639. +See \`config.log' for more details." "$LINENO" 5; }; }
  36640. + else
  36641. + ac_cv_sizeof_long=0
  36642. + fi
  36643. fi
  36644. fi
  36645. -case "$host_os" in
  36646. - # For platforms which do not support PIC, -DPIC is meaningless:
  36647. - *djgpp*)
  36648. - lt_prog_compiler_pic_F77=
  36649. - ;;
  36650. - *)
  36651. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  36652. - ;;
  36653. -esac
  36654. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  36655. +$as_echo "$ac_cv_sizeof_long" >&6; }
  36656. +
  36657. +
  36658. +
  36659. +cat >>confdefs.h <<_ACEOF
  36660. +#define SIZEOF_LONG $ac_cv_sizeof_long
  36661. +_ACEOF
  36662. +
  36663. +
  36664. +
  36665. +ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  36666. +if test "x$ac_cv_type_uint8_t" = x""yes; then :
  36667. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  36668. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  36669. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  36670. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36671. else
  36672. - lt_cv_prog_compiler_c_o_F77=no
  36673. - $rm -r conftest 2>/dev/null
  36674. - mkdir conftest
  36675. - cd conftest
  36676. - mkdir out
  36677. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36678. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  36679. - # Insert the option either (1) after the last *FLAGS variable, or
  36680. - # (2) before a word containing "conftest.", or (3) at the end.
  36681. - # Note that $ac_compile itself does not contain backslashes and begins
  36682. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36683. - lt_compile=`echo "$ac_compile" | $SED \
  36684. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  36685. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36686. - -e 's:$: $lt_compiler_flag:'`
  36687. - (eval echo "\"\$as_me:15285: $lt_compile\"" >&5)
  36688. - (eval "$lt_compile" 2>out/conftest.err)
  36689. - ac_status=$?
  36690. - cat out/conftest.err >&5
  36691. - echo "$as_me:15289: \$? = $ac_status" >&5
  36692. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  36693. - then
  36694. - # The compiler can only warn and ignore the option if not recognized
  36695. - # So say no if there are warnings
  36696. - if test ! -s out/conftest.err; then
  36697. - lt_cv_prog_compiler_c_o_F77=yes
  36698. - fi
  36699. - fi
  36700. - chmod u+w .
  36701. - $rm conftest*
  36702. - # SGI C++ compiler will create directory out/ii_files/ for
  36703. - # template instantiation
  36704. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  36705. - $rm out/* && rmdir out
  36706. - cd ..
  36707. - rmdir conftest
  36708. - $rm conftest*
  36709. +cat >>confdefs.h <<_ACEOF
  36710. +#define uint8_t unsigned char
  36711. +_ACEOF
  36712. fi
  36713. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  36714. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  36715. +ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  36716. +if test "x$ac_cv_type_uint16_t" = x""yes; then :
  36717. -hard_links="nottested"
  36718. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  36719. - # do not overwrite the value of need_locks provided by the user
  36720. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  36721. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  36722. - hard_links=yes
  36723. - $rm conftest*
  36724. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36725. - touch conftest.a
  36726. - ln conftest.a conftest.b 2>&5 || hard_links=no
  36727. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36728. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  36729. -echo "${ECHO_T}$hard_links" >&6; }
  36730. - if test "$hard_links" = no; then
  36731. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  36732. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  36733. - need_locks=warn
  36734. - fi
  36735. else
  36736. - need_locks=no
  36737. +
  36738. +cat >>confdefs.h <<_ACEOF
  36739. +#define uint16_t unsigned short
  36740. +_ACEOF
  36741. +
  36742. fi
  36743. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  36744. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  36745. +ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  36746. +if test "x$ac_cv_type_uint32_t" = x""yes; then :
  36747. - runpath_var=
  36748. - allow_undefined_flag_F77=
  36749. - enable_shared_with_static_runtimes_F77=no
  36750. - archive_cmds_F77=
  36751. - archive_expsym_cmds_F77=
  36752. - old_archive_From_new_cmds_F77=
  36753. - old_archive_from_expsyms_cmds_F77=
  36754. - export_dynamic_flag_spec_F77=
  36755. - whole_archive_flag_spec_F77=
  36756. - thread_safe_flag_spec_F77=
  36757. - hardcode_libdir_flag_spec_F77=
  36758. - hardcode_libdir_flag_spec_ld_F77=
  36759. - hardcode_libdir_separator_F77=
  36760. - hardcode_direct_F77=no
  36761. - hardcode_minus_L_F77=no
  36762. - hardcode_shlibpath_var_F77=unsupported
  36763. - link_all_deplibs_F77=unknown
  36764. - hardcode_automatic_F77=no
  36765. - module_cmds_F77=
  36766. - module_expsym_cmds_F77=
  36767. - always_export_symbols_F77=no
  36768. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  36769. - # include_expsyms should be a list of space-separated symbols to be *always*
  36770. - # included in the symbol list
  36771. - include_expsyms_F77=
  36772. - # exclude_expsyms can be an extended regexp of symbols to exclude
  36773. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  36774. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  36775. - # as well as any symbol that contains `d'.
  36776. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  36777. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  36778. - # platforms (ab)use it in PIC code, but their linkers get confused if
  36779. - # the symbol is explicitly referenced. Since portable code cannot
  36780. - # rely on this symbol name, it's probably fine to never include it in
  36781. - # preloaded symbol tables.
  36782. - extract_expsyms_cmds=
  36783. +else
  36784. - case $host_os in
  36785. - cygwin* | mingw* | pw32*)
  36786. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  36787. - # When not using gcc, we currently assume that we are using
  36788. - # Microsoft Visual C++.
  36789. - if test "$GCC" != yes; then
  36790. - with_gnu_ld=no
  36791. - fi
  36792. - ;;
  36793. - openbsd*)
  36794. - with_gnu_ld=no
  36795. - ;;
  36796. - esac
  36797. +cat >>confdefs.h <<_ACEOF
  36798. +#define uint32_t unsigned int
  36799. +_ACEOF
  36800. - ld_shlibs_F77=yes
  36801. - if test "$with_gnu_ld" = yes; then
  36802. - # If archive_cmds runs LD, not CC, wlarc should be empty
  36803. - wlarc='${wl}'
  36804. +fi
  36805. - # See if GNU ld supports shared libraries.
  36806. - case $host_os in
  36807. - aix3* | aix4* | aix5*)
  36808. - # On AIX/PPC, the GNU linker is very broken
  36809. - if test "$host_cpu" != ia64; then
  36810. - ld_shlibs_F77=no
  36811. - cat <<EOF 1>&2
  36812. +ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  36813. +if test "x$ac_cv_type_int8_t" = x""yes; then :
  36814. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  36815. -*** to be unable to reliably create shared libraries on AIX.
  36816. -*** Therefore, libtool is disabling shared libraries support. If you
  36817. -*** really care for shared libraries, you may want to modify your PATH
  36818. -*** so that a non-GNU linker is found, and then restart.
  36819. +else
  36820. -EOF
  36821. - fi
  36822. - ;;
  36823. +cat >>confdefs.h <<_ACEOF
  36824. +#define int8_t signed char
  36825. +_ACEOF
  36826. - amigaos*)
  36827. - 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)'
  36828. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36829. - hardcode_minus_L_F77=yes
  36830. -
  36831. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  36832. - # that the semantics of dynamic libraries on AmigaOS, at least up
  36833. - # to version 4, is to share data among multiple programs linked
  36834. - # with the same dynamic library. Since this doesn't match the
  36835. - # behavior of shared libraries on other platforms, we can't use
  36836. - # them.
  36837. - ld_shlibs_F77=no
  36838. - ;;
  36839. +fi
  36840. - beos*)
  36841. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36842. - allow_undefined_flag_F77=unsupported
  36843. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  36844. - # support --undefined. This deserves some investigation. FIXME
  36845. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36846. - else
  36847. - ld_shlibs_F77=no
  36848. - fi
  36849. - ;;
  36850. +ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  36851. +if test "x$ac_cv_type_int16_t" = x""yes; then :
  36852. - cygwin* | mingw* | pw32*)
  36853. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  36854. - # as there is no search path for DLLs.
  36855. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36856. - allow_undefined_flag_F77=unsupported
  36857. - always_export_symbols_F77=no
  36858. - enable_shared_with_static_runtimes_F77=yes
  36859. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  36860. +else
  36861. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  36862. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  36863. - # If the export-symbols file already is a .def file (1st line
  36864. - # is EXPORTS), use it as is; otherwise, prepend...
  36865. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  36866. - cp $export_symbols $output_objdir/$soname.def;
  36867. - else
  36868. - echo EXPORTS > $output_objdir/$soname.def;
  36869. - cat $export_symbols >> $output_objdir/$soname.def;
  36870. - fi~
  36871. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  36872. - else
  36873. - ld_shlibs=no
  36874. - fi
  36875. - ;;
  36876. -
  36877. - netbsd*)
  36878. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36879. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  36880. - wlarc=
  36881. - else
  36882. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36883. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36884. - fi
  36885. - ;;
  36886. -
  36887. - solaris* | sysv5*)
  36888. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  36889. - ld_shlibs_F77=no
  36890. - cat <<EOF 1>&2
  36891. +cat >>confdefs.h <<_ACEOF
  36892. +#define int16_t short
  36893. +_ACEOF
  36894. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  36895. -*** create shared libraries on Solaris systems. Therefore, libtool
  36896. -*** is disabling shared libraries support. We urge you to upgrade GNU
  36897. -*** binutils to release 2.9.1 or newer. Another option is to modify
  36898. -*** your PATH or compiler configuration so that the native linker is
  36899. -*** used, and then restart.
  36900. +fi
  36901. -EOF
  36902. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36903. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36904. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36905. - else
  36906. - ld_shlibs_F77=no
  36907. - fi
  36908. - ;;
  36909. +ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  36910. +if test "x$ac_cv_type_int32_t" = x""yes; then :
  36911. - sunos4*)
  36912. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36913. - wlarc=
  36914. - hardcode_direct_F77=yes
  36915. - hardcode_shlibpath_var_F77=no
  36916. - ;;
  36917. +else
  36918. - linux*)
  36919. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36920. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36921. - archive_cmds_F77="$tmp_archive_cmds"
  36922. - supports_anon_versioning=no
  36923. - case `$LD -v 2>/dev/null` in
  36924. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  36925. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  36926. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  36927. - *\ 2.11.*) ;; # other 2.11 versions
  36928. - *) supports_anon_versioning=yes ;;
  36929. - esac
  36930. - if test $supports_anon_versioning = yes; then
  36931. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  36932. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  36933. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  36934. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  36935. - else
  36936. - archive_expsym_cmds_F77="$tmp_archive_cmds"
  36937. - fi
  36938. - else
  36939. - ld_shlibs_F77=no
  36940. - fi
  36941. - ;;
  36942. +cat >>confdefs.h <<_ACEOF
  36943. +#define int32_t int
  36944. +_ACEOF
  36945. - *)
  36946. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36947. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36948. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36949. - else
  36950. - ld_shlibs_F77=no
  36951. - fi
  36952. - ;;
  36953. - esac
  36954. +fi
  36955. - if test "$ld_shlibs_F77" = yes; then
  36956. - runpath_var=LD_RUN_PATH
  36957. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  36958. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  36959. - # ancient GNU ld didn't support --whole-archive et. al.
  36960. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  36961. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  36962. - else
  36963. - whole_archive_flag_spec_F77=
  36964. - fi
  36965. - fi
  36966. - else
  36967. - # PORTME fill in a description of your system's linker (not GNU ld)
  36968. - case $host_os in
  36969. - aix3*)
  36970. - allow_undefined_flag_F77=unsupported
  36971. - always_export_symbols_F77=yes
  36972. - 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'
  36973. - # Note: this linker hardcodes the directories in LIBPATH if there
  36974. - # are no directories specified by -L.
  36975. - hardcode_minus_L_F77=yes
  36976. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  36977. - # Neither direct hardcoding nor static linking is supported with a
  36978. - # broken collect2.
  36979. - hardcode_direct_F77=unsupported
  36980. - fi
  36981. - ;;
  36982. - aix4* | aix5*)
  36983. - if test "$host_cpu" = ia64; then
  36984. - # On IA64, the linker does run time linking by default, so we don't
  36985. - # have to do anything special.
  36986. - aix_use_runtimelinking=no
  36987. - exp_sym_flag='-Bexport'
  36988. - no_entry_flag=""
  36989. - else
  36990. - # If we're using GNU nm, then we don't want the "-C" option.
  36991. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  36992. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  36993. - 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'
  36994. - else
  36995. - 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'
  36996. - fi
  36997. - aix_use_runtimelinking=no
  36998. +if test $ac_cv_c_compiler_gnu = yes; then
  36999. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  37000. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  37001. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  37002. + $as_echo_n "(cached) " >&6
  37003. +else
  37004. + ac_pattern="Autoconf.*'x'"
  37005. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37006. +/* end confdefs.h. */
  37007. +#include <sgtty.h>
  37008. +Autoconf TIOCGETP
  37009. +_ACEOF
  37010. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37011. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  37012. + ac_cv_prog_gcc_traditional=yes
  37013. +else
  37014. + ac_cv_prog_gcc_traditional=no
  37015. +fi
  37016. +rm -f conftest*
  37017. - # Test if we are trying to use run time linking or normal
  37018. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  37019. - # need to do runtime linking.
  37020. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  37021. - for ld_flag in $LDFLAGS; do
  37022. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  37023. - aix_use_runtimelinking=yes
  37024. - break
  37025. - fi
  37026. - done
  37027. - esac
  37028. - exp_sym_flag='-bexport'
  37029. - no_entry_flag='-bnoentry'
  37030. - fi
  37031. + if test $ac_cv_prog_gcc_traditional = no; then
  37032. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37033. +/* end confdefs.h. */
  37034. +#include <termio.h>
  37035. +Autoconf TCGETA
  37036. +_ACEOF
  37037. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37038. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  37039. + ac_cv_prog_gcc_traditional=yes
  37040. +fi
  37041. +rm -f conftest*
  37042. - # When large executables or shared objects are built, AIX ld can
  37043. - # have problems creating the table of contents. If linking a library
  37044. - # or program results in "error TOC overflow" add -mminimal-toc to
  37045. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  37046. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  37047. + fi
  37048. +fi
  37049. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  37050. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  37051. + if test $ac_cv_prog_gcc_traditional = yes; then
  37052. + CC="$CC -traditional"
  37053. + fi
  37054. +fi
  37055. - archive_cmds_F77=''
  37056. - hardcode_direct_F77=yes
  37057. - hardcode_libdir_separator_F77=':'
  37058. - link_all_deplibs_F77=yes
  37059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  37060. +$as_echo_n "checking for working memcmp... " >&6; }
  37061. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  37062. + $as_echo_n "(cached) " >&6
  37063. +else
  37064. + if test "$cross_compiling" = yes; then :
  37065. + ac_cv_func_memcmp_working=no
  37066. +else
  37067. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37068. +/* end confdefs.h. */
  37069. +$ac_includes_default
  37070. +int
  37071. +main ()
  37072. +{
  37073. - if test "$GCC" = yes; then
  37074. - case $host_os in aix4.012|aix4.012.*)
  37075. - # We only want to do this on AIX 4.2 and lower, the check
  37076. - # below for broken collect2 doesn't work under 4.3+
  37077. - collect2name=`${CC} -print-prog-name=collect2`
  37078. - if test -f "$collect2name" && \
  37079. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  37080. - then
  37081. - # We have reworked collect2
  37082. - hardcode_direct_F77=yes
  37083. - else
  37084. - # We have old collect2
  37085. - hardcode_direct_F77=unsupported
  37086. - # It fails to find uninstalled libraries when the uninstalled
  37087. - # path is not listed in the libpath. Setting hardcode_minus_L
  37088. - # to unsupported forces relinking
  37089. - hardcode_minus_L_F77=yes
  37090. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37091. - hardcode_libdir_separator_F77=
  37092. - fi
  37093. - esac
  37094. - shared_flag='-shared'
  37095. - else
  37096. - # not using gcc
  37097. - if test "$host_cpu" = ia64; then
  37098. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  37099. - # chokes on -Wl,-G. The following line is correct:
  37100. - shared_flag='-G'
  37101. - else
  37102. - if test "$aix_use_runtimelinking" = yes; then
  37103. - shared_flag='${wl}-G'
  37104. - else
  37105. - shared_flag='${wl}-bM:SRE'
  37106. - fi
  37107. - fi
  37108. - fi
  37109. + /* Some versions of memcmp are not 8-bit clean. */
  37110. + char c0 = '\100', c1 = '\200', c2 = '\201';
  37111. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  37112. + return 1;
  37113. - # It seems that -bexpall does not export symbols beginning with
  37114. - # underscore (_), so it is better to generate a list of symbols to export.
  37115. - always_export_symbols_F77=yes
  37116. - if test "$aix_use_runtimelinking" = yes; then
  37117. - # Warning - without using the other runtime loading flags (-brtl),
  37118. - # -berok will link without error, but may produce a broken library.
  37119. - allow_undefined_flag_F77='-berok'
  37120. - # Determine the default libpath from the value encoded in an empty executable.
  37121. - cat >conftest.$ac_ext <<_ACEOF
  37122. - program main
  37123. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  37124. + or more and with at least one buffer not starting on a 4-byte boundary.
  37125. + William Lewis provided this test program. */
  37126. + {
  37127. + char foo[21];
  37128. + char bar[21];
  37129. + int i;
  37130. + for (i = 0; i < 4; i++)
  37131. + {
  37132. + char *a = foo + i;
  37133. + char *b = bar + i;
  37134. + strcpy (a, "--------01111111");
  37135. + strcpy (b, "--------10000000");
  37136. + if (memcmp (a, b, 16) >= 0)
  37137. + return 1;
  37138. + }
  37139. + return 0;
  37140. + }
  37141. - end
  37142. + ;
  37143. + return 0;
  37144. +}
  37145. _ACEOF
  37146. -rm -f conftest.$ac_objext conftest$ac_exeext
  37147. -if { (ac_try="$ac_link"
  37148. -case "(($ac_try" in
  37149. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37150. - *) ac_try_echo=$ac_try;;
  37151. -esac
  37152. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37153. - (eval "$ac_link") 2>conftest.er1
  37154. - ac_status=$?
  37155. - grep -v '^ *+' conftest.er1 >conftest.err
  37156. - rm -f conftest.er1
  37157. - cat conftest.err >&5
  37158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37159. - (exit $ac_status); } &&
  37160. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  37161. - { (case "(($ac_try" in
  37162. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37163. - *) ac_try_echo=$ac_try;;
  37164. -esac
  37165. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37166. - (eval "$ac_try") 2>&5
  37167. - ac_status=$?
  37168. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37169. - (exit $ac_status); }; } &&
  37170. - { ac_try='test -s conftest$ac_exeext'
  37171. - { (case "(($ac_try" in
  37172. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37173. - *) ac_try_echo=$ac_try;;
  37174. -esac
  37175. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37176. - (eval "$ac_try") 2>&5
  37177. - ac_status=$?
  37178. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37179. - (exit $ac_status); }; }; then
  37180. -
  37181. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37182. -}'`
  37183. -# Check for a 64-bit object if we didn't find anything.
  37184. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37185. -}'`; fi
  37186. +if ac_fn_c_try_run "$LINENO"; then :
  37187. + ac_cv_func_memcmp_working=yes
  37188. else
  37189. - echo "$as_me: failed program was:" >&5
  37190. -sed 's/^/| /' conftest.$ac_ext >&5
  37191. -
  37192. -
  37193. + ac_cv_func_memcmp_working=no
  37194. +fi
  37195. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37196. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37197. fi
  37198. -rm -f core conftest.err conftest.$ac_objext \
  37199. - conftest$ac_exeext conftest.$ac_ext
  37200. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37201. -
  37202. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  37203. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  37204. - else
  37205. - if test "$host_cpu" = ia64; then
  37206. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  37207. - allow_undefined_flag_F77="-z nodefs"
  37208. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  37209. - else
  37210. - # Determine the default libpath from the value encoded in an empty executable.
  37211. - cat >conftest.$ac_ext <<_ACEOF
  37212. - program main
  37213. -
  37214. - end
  37215. -_ACEOF
  37216. -rm -f conftest.$ac_objext conftest$ac_exeext
  37217. -if { (ac_try="$ac_link"
  37218. -case "(($ac_try" in
  37219. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37220. - *) ac_try_echo=$ac_try;;
  37221. -esac
  37222. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37223. - (eval "$ac_link") 2>conftest.er1
  37224. - ac_status=$?
  37225. - grep -v '^ *+' conftest.er1 >conftest.err
  37226. - rm -f conftest.er1
  37227. - cat conftest.err >&5
  37228. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37229. - (exit $ac_status); } &&
  37230. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  37231. - { (case "(($ac_try" in
  37232. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37233. - *) ac_try_echo=$ac_try;;
  37234. -esac
  37235. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37236. - (eval "$ac_try") 2>&5
  37237. - ac_status=$?
  37238. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37239. - (exit $ac_status); }; } &&
  37240. - { ac_try='test -s conftest$ac_exeext'
  37241. - { (case "(($ac_try" in
  37242. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37243. - *) ac_try_echo=$ac_try;;
  37244. +fi
  37245. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  37246. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  37247. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  37248. + *" memcmp.$ac_objext "* ) ;;
  37249. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  37250. + ;;
  37251. esac
  37252. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37253. - (eval "$ac_try") 2>&5
  37254. - ac_status=$?
  37255. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37256. - (exit $ac_status); }; }; then
  37257. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37258. -}'`
  37259. -# Check for a 64-bit object if we didn't find anything.
  37260. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37261. -}'`; fi
  37262. -else
  37263. - echo "$as_me: failed program was:" >&5
  37264. -sed 's/^/| /' conftest.$ac_ext >&5
  37265. +for ac_func in strdup
  37266. +do :
  37267. + ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  37268. +if test "x$ac_cv_func_strdup" = x""yes; then :
  37269. + cat >>confdefs.h <<_ACEOF
  37270. +#define HAVE_STRDUP 1
  37271. +_ACEOF
  37272. fi
  37273. +done
  37274. -rm -f core conftest.err conftest.$ac_objext \
  37275. - conftest$ac_exeext conftest.$ac_ext
  37276. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37277. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  37278. - # Warning - without using the other run time loading flags,
  37279. - # -berok will link without error, but may produce a broken library.
  37280. - no_undefined_flag_F77=' ${wl}-bernotok'
  37281. - allow_undefined_flag_F77=' ${wl}-berok'
  37282. - # -bexpall does not export symbols beginning with underscore (_)
  37283. - always_export_symbols_F77=yes
  37284. - # Exported symbols can be pulled into shared objects from archives
  37285. - whole_archive_flag_spec_F77=' '
  37286. - archive_cmds_need_lc_F77=yes
  37287. - # This is similar to how AIX traditionally builds it's shared libraries.
  37288. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  37289. - fi
  37290. - fi
  37291. - ;;
  37292. +platform=none
  37293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform specific tests to compile" >&5
  37294. +$as_echo_n "checking for platform specific tests to compile... " >&6; }
  37295. +case "$host_os" in
  37296. + linux*)
  37297. + TEST_BIN="linuxtest"
  37298. + platform=linux
  37299. + ;;
  37300. + irix5* | irix6*)
  37301. + TEST_BIN="irixread irixtestloop"
  37302. + platform=irix
  37303. + ;;
  37304. + darwin*)
  37305. + if test -e /System/Library/Frameworks/CoreAudio.framework; then
  37306. + TEST_BIN="osxplay"
  37307. + platform="Mac OS X"
  37308. + fi
  37309. + ;;
  37310. +esac
  37311. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform" >&5
  37312. +$as_echo "$platform" >&6; }
  37313. - amigaos*)
  37314. - 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)'
  37315. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37316. - hardcode_minus_L_F77=yes
  37317. - # see comment about different semantics on the GNU ld section
  37318. - ld_shlibs_F77=no
  37319. - ;;
  37320. - bsdi[45]*)
  37321. - export_dynamic_flag_spec_F77=-rdynamic
  37322. - ;;
  37323. +ac_config_files="$ac_config_files audiofile.spec audiofile.pc sfcommands/Makefile test/Makefile examples/Makefile libaudiofile/Makefile libaudiofile/modules/Makefile docs/Makefile win32/Makefile Makefile audiofile-config"
  37324. - cygwin* | mingw* | pw32*)
  37325. - # When not using gcc, we currently assume that we are using
  37326. - # Microsoft Visual C++.
  37327. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  37328. - # no search path for DLLs.
  37329. - hardcode_libdir_flag_spec_F77=' '
  37330. - allow_undefined_flag_F77=unsupported
  37331. - # Tell ltmain to make .lib files, not .a files.
  37332. - libext=lib
  37333. - # Tell ltmain to make .dll files, not .so files.
  37334. - shrext_cmds=".dll"
  37335. - # FIXME: Setting linknames here is a bad hack.
  37336. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  37337. - # The linker will automatically build a .lib file if we build a DLL.
  37338. - old_archive_From_new_cmds_F77='true'
  37339. - # FIXME: Should let the user specify the lib program.
  37340. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  37341. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  37342. - enable_shared_with_static_runtimes_F77=yes
  37343. - ;;
  37344. +ac_config_commands="$ac_config_commands default"
  37345. - darwin* | rhapsody*)
  37346. - case "$host_os" in
  37347. - rhapsody* | darwin1.[012])
  37348. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  37349. - ;;
  37350. - *) # Darwin 1.3 on
  37351. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  37352. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37353. - else
  37354. - case ${MACOSX_DEPLOYMENT_TARGET} in
  37355. - 10.[012])
  37356. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37357. - ;;
  37358. - 10.*)
  37359. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  37360. - ;;
  37361. - esac
  37362. - fi
  37363. - ;;
  37364. - esac
  37365. - archive_cmds_need_lc_F77=no
  37366. - hardcode_direct_F77=no
  37367. - hardcode_automatic_F77=yes
  37368. - hardcode_shlibpath_var_F77=unsupported
  37369. - whole_archive_flag_spec_F77=''
  37370. - link_all_deplibs_F77=yes
  37371. - if test "$GCC" = yes ; then
  37372. - output_verbose_link_cmd='echo'
  37373. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  37374. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37375. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  37376. - 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}'
  37377. - 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}'
  37378. - else
  37379. - case "$cc_basename" in
  37380. - xlc*)
  37381. - output_verbose_link_cmd='echo'
  37382. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  37383. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37384. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  37385. - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  37386. - 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}'
  37387. - ;;
  37388. - *)
  37389. - ld_shlibs_F77=no
  37390. - ;;
  37391. +cat >confcache <<\_ACEOF
  37392. +# This file is a shell script that caches the results of configure
  37393. +# tests run on this system so they can be shared between configure
  37394. +# scripts and configure runs, see configure's option --config-cache.
  37395. +# It is not useful on other systems. If it contains results you don't
  37396. +# want to keep, you may remove or edit it.
  37397. +#
  37398. +# config.status only pays attention to the cache file if you give it
  37399. +# the --recheck option to rerun configure.
  37400. +#
  37401. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  37402. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  37403. +# following values.
  37404. +
  37405. +_ACEOF
  37406. +
  37407. +# The following way of writing the cache mishandles newlines in values,
  37408. +# but we know of no workaround that is simple, portable, and efficient.
  37409. +# So, we kill variables containing newlines.
  37410. +# Ultrix sh set writes to stderr and can't be redirected directly,
  37411. +# and sets the high bit in the cache file unless we assign to the vars.
  37412. +(
  37413. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  37414. + eval ac_val=\$$ac_var
  37415. + case $ac_val in #(
  37416. + *${as_nl}*)
  37417. + case $ac_var in #(
  37418. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  37419. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  37420. esac
  37421. - fi
  37422. - ;;
  37423. + case $ac_var in #(
  37424. + _ | IFS | as_nl) ;; #(
  37425. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  37426. + *) { eval $ac_var=; unset $ac_var;} ;;
  37427. + esac ;;
  37428. + esac
  37429. + done
  37430. - dgux*)
  37431. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37432. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37433. - hardcode_shlibpath_var_F77=no
  37434. + (set) 2>&1 |
  37435. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  37436. + *${as_nl}ac_space=\ *)
  37437. + # `set' does not quote correctly, so add quotes: double-quote
  37438. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  37439. + sed -n \
  37440. + "s/'/'\\\\''/g;
  37441. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  37442. + ;; #(
  37443. + *)
  37444. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  37445. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  37446. ;;
  37447. + esac |
  37448. + sort
  37449. +) |
  37450. + sed '
  37451. + /^ac_cv_env_/b end
  37452. + t clear
  37453. + :clear
  37454. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  37455. + t end
  37456. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  37457. + :end' >>confcache
  37458. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  37459. + if test -w "$cache_file"; then
  37460. + test "x$cache_file" != "x/dev/null" &&
  37461. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  37462. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  37463. + cat confcache >$cache_file
  37464. + else
  37465. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  37466. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  37467. + fi
  37468. +fi
  37469. +rm -f confcache
  37470. - freebsd1*)
  37471. - ld_shlibs_F77=no
  37472. - ;;
  37473. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  37474. +# Let make expand exec_prefix.
  37475. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  37476. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  37477. - # support. Future versions do this automatically, but an explicit c++rt0.o
  37478. - # does not break anything, and helps significantly (at the cost of a little
  37479. - # extra space).
  37480. - freebsd2.2*)
  37481. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  37482. - hardcode_libdir_flag_spec_F77='-R$libdir'
  37483. - hardcode_direct_F77=yes
  37484. - hardcode_shlibpath_var_F77=no
  37485. - ;;
  37486. +DEFS=-DHAVE_CONFIG_H
  37487. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  37488. - freebsd2*)
  37489. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37490. - hardcode_direct_F77=yes
  37491. - hardcode_minus_L_F77=yes
  37492. - hardcode_shlibpath_var_F77=no
  37493. - ;;
  37494. +ac_libobjs=
  37495. +ac_ltlibobjs=
  37496. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  37497. + # 1. Remove the extension, and $U if already installed.
  37498. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  37499. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  37500. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  37501. + # will be set to the directory where LIBOBJS objects are built.
  37502. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  37503. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  37504. +done
  37505. +LIBOBJS=$ac_libobjs
  37506. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  37507. - freebsd* | kfreebsd*-gnu)
  37508. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  37509. - hardcode_libdir_flag_spec_F77='-R$libdir'
  37510. - hardcode_direct_F77=yes
  37511. - hardcode_shlibpath_var_F77=no
  37512. - ;;
  37513. +LTLIBOBJS=$ac_ltlibobjs
  37514. - hpux9*)
  37515. - if test "$GCC" = yes; then
  37516. - 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'
  37517. - else
  37518. - 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'
  37519. - fi
  37520. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  37521. - hardcode_libdir_separator_F77=:
  37522. - hardcode_direct_F77=yes
  37523. - # hardcode_minus_L: Not really in the search PATH,
  37524. - # but as the default location of the library.
  37525. - hardcode_minus_L_F77=yes
  37526. - export_dynamic_flag_spec_F77='${wl}-E'
  37527. - ;;
  37528. + if test -n "$EXEEXT"; then
  37529. + am__EXEEXT_TRUE=
  37530. + am__EXEEXT_FALSE='#'
  37531. +else
  37532. + am__EXEEXT_TRUE='#'
  37533. + am__EXEEXT_FALSE=
  37534. +fi
  37535. - hpux10* | hpux11*)
  37536. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  37537. - case "$host_cpu" in
  37538. - hppa*64*|ia64*)
  37539. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37540. - ;;
  37541. - *)
  37542. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  37543. - ;;
  37544. - esac
  37545. - else
  37546. - case "$host_cpu" in
  37547. - hppa*64*|ia64*)
  37548. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  37549. - ;;
  37550. - *)
  37551. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  37552. - ;;
  37553. - esac
  37554. - fi
  37555. - if test "$with_gnu_ld" = no; then
  37556. - case "$host_cpu" in
  37557. - hppa*64*)
  37558. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  37559. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  37560. - hardcode_libdir_separator_F77=:
  37561. - hardcode_direct_F77=no
  37562. - hardcode_shlibpath_var_F77=no
  37563. - ;;
  37564. - ia64*)
  37565. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37566. - hardcode_direct_F77=no
  37567. - hardcode_shlibpath_var_F77=no
  37568. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  37569. + as_fn_error "conditional \"AMDEP\" was never defined.
  37570. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  37571. +fi
  37572. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  37573. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  37574. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  37575. +fi
  37576. - # hardcode_minus_L: Not really in the search PATH,
  37577. - # but as the default location of the library.
  37578. - hardcode_minus_L_F77=yes
  37579. - ;;
  37580. - *)
  37581. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  37582. - hardcode_libdir_separator_F77=:
  37583. - hardcode_direct_F77=yes
  37584. - export_dynamic_flag_spec_F77='${wl}-E'
  37585. - # hardcode_minus_L: Not really in the search PATH,
  37586. - # but as the default location of the library.
  37587. - hardcode_minus_L_F77=yes
  37588. - ;;
  37589. - esac
  37590. - fi
  37591. - ;;
  37592. +: ${CONFIG_STATUS=./config.status}
  37593. +ac_write_fail=0
  37594. +ac_clean_files_save=$ac_clean_files
  37595. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  37596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  37597. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  37598. +as_write_fail=0
  37599. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  37600. +#! $SHELL
  37601. +# Generated by $as_me.
  37602. +# Run this file to recreate the current configuration.
  37603. +# Compiler output produced by configure, useful for debugging
  37604. +# configure, is in config.log if it exists.
  37605. - irix5* | irix6* | nonstopux*)
  37606. - if test "$GCC" = yes; then
  37607. - 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'
  37608. - else
  37609. - 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'
  37610. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  37611. - fi
  37612. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  37613. - hardcode_libdir_separator_F77=:
  37614. - link_all_deplibs_F77=yes
  37615. - ;;
  37616. +debug=false
  37617. +ac_cs_recheck=false
  37618. +ac_cs_silent=false
  37619. - netbsd*)
  37620. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37621. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  37622. - else
  37623. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  37624. - fi
  37625. - hardcode_libdir_flag_spec_F77='-R$libdir'
  37626. - hardcode_direct_F77=yes
  37627. - hardcode_shlibpath_var_F77=no
  37628. - ;;
  37629. +SHELL=\${CONFIG_SHELL-$SHELL}
  37630. +export SHELL
  37631. +_ASEOF
  37632. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  37633. +## -------------------- ##
  37634. +## M4sh Initialization. ##
  37635. +## -------------------- ##
  37636. - newsos6)
  37637. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37638. - hardcode_direct_F77=yes
  37639. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  37640. - hardcode_libdir_separator_F77=:
  37641. - hardcode_shlibpath_var_F77=no
  37642. - ;;
  37643. +# Be more Bourne compatible
  37644. +DUALCASE=1; export DUALCASE # for MKS sh
  37645. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  37646. + emulate sh
  37647. + NULLCMD=:
  37648. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  37649. + # is contrary to our usage. Disable this feature.
  37650. + alias -g '${1+"$@"}'='"$@"'
  37651. + setopt NO_GLOB_SUBST
  37652. +else
  37653. + case `(set -o) 2>/dev/null` in #(
  37654. + *posix*) :
  37655. + set -o posix ;; #(
  37656. + *) :
  37657. + ;;
  37658. +esac
  37659. +fi
  37660. - openbsd*)
  37661. - hardcode_direct_F77=yes
  37662. - hardcode_shlibpath_var_F77=no
  37663. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37664. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  37665. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  37666. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  37667. - export_dynamic_flag_spec_F77='${wl}-E'
  37668. - else
  37669. - case $host_os in
  37670. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  37671. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37672. - hardcode_libdir_flag_spec_F77='-R$libdir'
  37673. - ;;
  37674. - *)
  37675. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  37676. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  37677. - ;;
  37678. - esac
  37679. - fi
  37680. - ;;
  37681. - os2*)
  37682. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37683. - hardcode_minus_L_F77=yes
  37684. - allow_undefined_flag_F77=unsupported
  37685. - 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'
  37686. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  37687. - ;;
  37688. +as_nl='
  37689. +'
  37690. +export as_nl
  37691. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  37692. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  37693. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37694. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  37695. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  37696. +# but without wasting forks for bash or zsh.
  37697. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  37698. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  37699. + as_echo='print -r --'
  37700. + as_echo_n='print -rn --'
  37701. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  37702. + as_echo='printf %s\n'
  37703. + as_echo_n='printf %s'
  37704. +else
  37705. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  37706. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  37707. + as_echo_n='/usr/ucb/echo -n'
  37708. + else
  37709. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  37710. + as_echo_n_body='eval
  37711. + arg=$1;
  37712. + case $arg in #(
  37713. + *"$as_nl"*)
  37714. + expr "X$arg" : "X\\(.*\\)$as_nl";
  37715. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  37716. + esac;
  37717. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  37718. + '
  37719. + export as_echo_n_body
  37720. + as_echo_n='sh -c $as_echo_n_body as_echo'
  37721. + fi
  37722. + export as_echo_body
  37723. + as_echo='sh -c $as_echo_body as_echo'
  37724. +fi
  37725. - osf3*)
  37726. - if test "$GCC" = yes; then
  37727. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  37728. - 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'
  37729. - else
  37730. - allow_undefined_flag_F77=' -expect_unresolved \*'
  37731. - 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'
  37732. - fi
  37733. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  37734. - hardcode_libdir_separator_F77=:
  37735. - ;;
  37736. +# The user is always right.
  37737. +if test "${PATH_SEPARATOR+set}" != set; then
  37738. + PATH_SEPARATOR=:
  37739. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  37740. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  37741. + PATH_SEPARATOR=';'
  37742. + }
  37743. +fi
  37744. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  37745. - if test "$GCC" = yes; then
  37746. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  37747. - 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'
  37748. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  37749. - else
  37750. - allow_undefined_flag_F77=' -expect_unresolved \*'
  37751. - 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'
  37752. - 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~
  37753. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  37754. - # Both c and cxx compiler support -rpath directly
  37755. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  37756. - fi
  37757. - hardcode_libdir_separator_F77=:
  37758. - ;;
  37759. +# IFS
  37760. +# We need space, tab and new line, in precisely that order. Quoting is
  37761. +# there to prevent editors from complaining about space-tab.
  37762. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  37763. +# splitting by setting IFS to empty value.)
  37764. +IFS=" "" $as_nl"
  37765. - sco3.2v5*)
  37766. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37767. - hardcode_shlibpath_var_F77=no
  37768. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  37769. - runpath_var=LD_RUN_PATH
  37770. - hardcode_runpath_var=yes
  37771. - ;;
  37772. +# Find who we are. Look in the path if we contain no directory separator.
  37773. +case $0 in #((
  37774. + *[\\/]* ) as_myself=$0 ;;
  37775. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37776. +for as_dir in $PATH
  37777. +do
  37778. + IFS=$as_save_IFS
  37779. + test -z "$as_dir" && as_dir=.
  37780. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  37781. + done
  37782. +IFS=$as_save_IFS
  37783. - solaris*)
  37784. - no_undefined_flag_F77=' -z text'
  37785. - if test "$GCC" = yes; then
  37786. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37787. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37788. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  37789. - else
  37790. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37791. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37792. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  37793. - fi
  37794. - hardcode_libdir_flag_spec_F77='-R$libdir'
  37795. - hardcode_shlibpath_var_F77=no
  37796. - case $host_os in
  37797. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  37798. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  37799. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  37800. - esac
  37801. - link_all_deplibs_F77=yes
  37802. - ;;
  37803. + ;;
  37804. +esac
  37805. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  37806. +# in which case we are not to be found in the path.
  37807. +if test "x$as_myself" = x; then
  37808. + as_myself=$0
  37809. +fi
  37810. +if test ! -f "$as_myself"; then
  37811. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  37812. + exit 1
  37813. +fi
  37814. - sunos4*)
  37815. - if test "x$host_vendor" = xsequent; then
  37816. - # Use $CC to link under sequent, because it throws in some extra .o
  37817. - # files that make .init and .fini sections work.
  37818. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  37819. - else
  37820. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  37821. - fi
  37822. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37823. - hardcode_direct_F77=yes
  37824. - hardcode_minus_L_F77=yes
  37825. - hardcode_shlibpath_var_F77=no
  37826. - ;;
  37827. +# Unset variables that we do not need and which cause bugs (e.g. in
  37828. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  37829. +# suppresses any "Segmentation fault" message there. '((' could
  37830. +# trigger a bug in pdksh 5.2.14.
  37831. +for as_var in BASH_ENV ENV MAIL MAILPATH
  37832. +do eval test x\${$as_var+set} = xset \
  37833. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  37834. +done
  37835. +PS1='$ '
  37836. +PS2='> '
  37837. +PS4='+ '
  37838. - sysv4)
  37839. - case $host_vendor in
  37840. - sni)
  37841. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37842. - hardcode_direct_F77=yes # is this really true???
  37843. - ;;
  37844. - siemens)
  37845. - ## LD is ld it makes a PLAMLIB
  37846. - ## CC just makes a GrossModule.
  37847. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  37848. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  37849. - hardcode_direct_F77=no
  37850. - ;;
  37851. - motorola)
  37852. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37853. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  37854. - ;;
  37855. - esac
  37856. - runpath_var='LD_RUN_PATH'
  37857. - hardcode_shlibpath_var_F77=no
  37858. - ;;
  37859. -
  37860. - sysv4.3*)
  37861. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37862. - hardcode_shlibpath_var_F77=no
  37863. - export_dynamic_flag_spec_F77='-Bexport'
  37864. - ;;
  37865. +# NLS nuisances.
  37866. +LC_ALL=C
  37867. +export LC_ALL
  37868. +LANGUAGE=C
  37869. +export LANGUAGE
  37870. - sysv4*MP*)
  37871. - if test -d /usr/nec; then
  37872. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37873. - hardcode_shlibpath_var_F77=no
  37874. - runpath_var=LD_RUN_PATH
  37875. - hardcode_runpath_var=yes
  37876. - ld_shlibs_F77=yes
  37877. - fi
  37878. - ;;
  37879. +# CDPATH.
  37880. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  37881. - sysv4.2uw2*)
  37882. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  37883. - hardcode_direct_F77=yes
  37884. - hardcode_minus_L_F77=no
  37885. - hardcode_shlibpath_var_F77=no
  37886. - hardcode_runpath_var=yes
  37887. - runpath_var=LD_RUN_PATH
  37888. - ;;
  37889. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  37890. - no_undefined_flag_F77='${wl}-z ${wl}text'
  37891. - if test "$GCC" = yes; then
  37892. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37893. - else
  37894. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37895. - fi
  37896. - runpath_var='LD_RUN_PATH'
  37897. - hardcode_shlibpath_var_F77=no
  37898. - ;;
  37899. +# as_fn_error ERROR [LINENO LOG_FD]
  37900. +# ---------------------------------
  37901. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  37902. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  37903. +# script with status $?, using 1 if that was 0.
  37904. +as_fn_error ()
  37905. +{
  37906. + as_status=$?; test $as_status -eq 0 && as_status=1
  37907. + if test "$3"; then
  37908. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  37909. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  37910. + fi
  37911. + $as_echo "$as_me: error: $1" >&2
  37912. + as_fn_exit $as_status
  37913. +} # as_fn_error
  37914. +
  37915. +
  37916. +# as_fn_set_status STATUS
  37917. +# -----------------------
  37918. +# Set $? to STATUS, without forking.
  37919. +as_fn_set_status ()
  37920. +{
  37921. + return $1
  37922. +} # as_fn_set_status
  37923. +
  37924. +# as_fn_exit STATUS
  37925. +# -----------------
  37926. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  37927. +as_fn_exit ()
  37928. +{
  37929. + set +e
  37930. + as_fn_set_status $1
  37931. + exit $1
  37932. +} # as_fn_exit
  37933. +
  37934. +# as_fn_unset VAR
  37935. +# ---------------
  37936. +# Portably unset VAR.
  37937. +as_fn_unset ()
  37938. +{
  37939. + { eval $1=; unset $1;}
  37940. +}
  37941. +as_unset=as_fn_unset
  37942. +# as_fn_append VAR VALUE
  37943. +# ----------------------
  37944. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  37945. +# advantage of any shell optimizations that allow amortized linear growth over
  37946. +# repeated appends, instead of the typical quadratic growth present in naive
  37947. +# implementations.
  37948. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  37949. + eval 'as_fn_append ()
  37950. + {
  37951. + eval $1+=\$2
  37952. + }'
  37953. +else
  37954. + as_fn_append ()
  37955. + {
  37956. + eval $1=\$$1\$2
  37957. + }
  37958. +fi # as_fn_append
  37959. - sysv5*)
  37960. - no_undefined_flag_F77=' -z text'
  37961. - # $CC -shared without GNU ld will not create a library from C++
  37962. - # object files and a static libstdc++, better avoid it by now
  37963. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37964. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37965. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  37966. - hardcode_libdir_flag_spec_F77=
  37967. - hardcode_shlibpath_var_F77=no
  37968. - runpath_var='LD_RUN_PATH'
  37969. - ;;
  37970. +# as_fn_arith ARG...
  37971. +# ------------------
  37972. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  37973. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  37974. +# must be portable across $(()) and expr.
  37975. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  37976. + eval 'as_fn_arith ()
  37977. + {
  37978. + as_val=$(( $* ))
  37979. + }'
  37980. +else
  37981. + as_fn_arith ()
  37982. + {
  37983. + as_val=`expr "$@" || test $? -eq 1`
  37984. + }
  37985. +fi # as_fn_arith
  37986. - uts4*)
  37987. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37988. - hardcode_libdir_flag_spec_F77='-L$libdir'
  37989. - hardcode_shlibpath_var_F77=no
  37990. - ;;
  37991. - *)
  37992. - ld_shlibs_F77=no
  37993. - ;;
  37994. - esac
  37995. - fi
  37996. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  37997. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37998. + as_expr=expr
  37999. +else
  38000. + as_expr=false
  38001. +fi
  38002. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  38003. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  38004. -test "$ld_shlibs_F77" = no && can_build_shared=no
  38005. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  38006. + as_basename=basename
  38007. +else
  38008. + as_basename=false
  38009. +fi
  38010. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  38011. -if test "$GCC" = yes; then
  38012. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  38013. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  38014. + as_dirname=dirname
  38015. +else
  38016. + as_dirname=false
  38017. fi
  38018. -#
  38019. -# Do we need to explicitly link libc?
  38020. -#
  38021. -case "x$archive_cmds_need_lc_F77" in
  38022. -x|xyes)
  38023. - # Assume -lc should be added
  38024. - archive_cmds_need_lc_F77=yes
  38025. +as_me=`$as_basename -- "$0" ||
  38026. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  38027. + X"$0" : 'X\(//\)$' \| \
  38028. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  38029. +$as_echo X/"$0" |
  38030. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  38031. + s//\1/
  38032. + q
  38033. + }
  38034. + /^X\/\(\/\/\)$/{
  38035. + s//\1/
  38036. + q
  38037. + }
  38038. + /^X\/\(\/\).*/{
  38039. + s//\1/
  38040. + q
  38041. + }
  38042. + s/.*/./; q'`
  38043. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  38044. - case $archive_cmds_F77 in
  38045. - *'~'*)
  38046. - # FIXME: we may have to deal with multi-command sequences.
  38047. - ;;
  38048. - '$CC '*)
  38049. - # Test whether the compiler implicitly links with -lc since on some
  38050. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  38051. - # to ld, don't add -lc before -lgcc.
  38052. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  38053. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  38054. - $rm conftest*
  38055. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38056. +# Avoid depending upon Character Ranges.
  38057. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  38058. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38059. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38060. +as_cr_digits='0123456789'
  38061. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  38062. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38063. - (eval $ac_compile) 2>&5
  38064. - ac_status=$?
  38065. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38066. - (exit $ac_status); } 2>conftest.err; then
  38067. - soname=conftest
  38068. - lib=conftest
  38069. - libobjs=conftest.$ac_objext
  38070. - deplibs=
  38071. - wl=$lt_prog_compiler_wl_F77
  38072. - compiler_flags=-v
  38073. - linker_flags=-v
  38074. - verstring=
  38075. - output_objdir=.
  38076. - libname=conftest
  38077. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  38078. - allow_undefined_flag_F77=
  38079. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  38080. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  38081. - ac_status=$?
  38082. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38083. - (exit $ac_status); }
  38084. - then
  38085. - archive_cmds_need_lc_F77=no
  38086. - else
  38087. - archive_cmds_need_lc_F77=yes
  38088. - fi
  38089. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  38090. - else
  38091. - cat conftest.err 1>&5
  38092. - fi
  38093. - $rm conftest*
  38094. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  38095. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  38096. - ;;
  38097. - esac
  38098. - fi
  38099. - ;;
  38100. +ECHO_C= ECHO_N= ECHO_T=
  38101. +case `echo -n x` in #(((((
  38102. +-n*)
  38103. + case `echo 'xy\c'` in
  38104. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  38105. + xy) ECHO_C='\c';;
  38106. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  38107. + ECHO_T=' ';;
  38108. + esac;;
  38109. +*)
  38110. + ECHO_N='-n';;
  38111. esac
  38112. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  38113. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  38114. -library_names_spec=
  38115. -libname_spec='lib$name'
  38116. -soname_spec=
  38117. -shrext_cmds=".so"
  38118. -postinstall_cmds=
  38119. -postuninstall_cmds=
  38120. -finish_cmds=
  38121. -finish_eval=
  38122. -shlibpath_var=
  38123. -shlibpath_overrides_runpath=unknown
  38124. -version_type=none
  38125. -dynamic_linker="$host_os ld.so"
  38126. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  38127. -if test "$GCC" = yes; then
  38128. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38129. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  38130. - # if the path contains ";" then we assume it to be the separator
  38131. - # otherwise default to the standard path separator (i.e. ":") - it is
  38132. - # assumed that no part of a normal pathname contains ";" but that should
  38133. - # okay in the real world where ";" in dirpaths is itself problematic.
  38134. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38135. +rm -f conf$$ conf$$.exe conf$$.file
  38136. +if test -d conf$$.dir; then
  38137. + rm -f conf$$.dir/conf$$.file
  38138. +else
  38139. + rm -f conf$$.dir
  38140. + mkdir conf$$.dir 2>/dev/null
  38141. +fi
  38142. +if (echo >conf$$.file) 2>/dev/null; then
  38143. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  38144. + as_ln_s='ln -s'
  38145. + # ... but there are two gotchas:
  38146. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  38147. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  38148. + # In both cases, we have to default to `cp -p'.
  38149. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  38150. + as_ln_s='cp -p'
  38151. + elif ln conf$$.file conf$$ 2>/dev/null; then
  38152. + as_ln_s=ln
  38153. else
  38154. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38155. + as_ln_s='cp -p'
  38156. fi
  38157. else
  38158. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  38159. + as_ln_s='cp -p'
  38160. fi
  38161. -need_lib_prefix=unknown
  38162. -hardcode_into_libs=no
  38163. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  38164. +rmdir conf$$.dir 2>/dev/null
  38165. -# when you set need_version to no, make sure it does not cause -set_version
  38166. -# flags to be left without arguments
  38167. -need_version=unknown
  38168. -case $host_os in
  38169. -aix3*)
  38170. - version_type=linux
  38171. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  38172. - shlibpath_var=LIBPATH
  38173. +# as_fn_mkdir_p
  38174. +# -------------
  38175. +# Create "$as_dir" as a directory, including parents if necessary.
  38176. +as_fn_mkdir_p ()
  38177. +{
  38178. - # AIX 3 has no versioning support, so we append a major version to the name.
  38179. - soname_spec='${libname}${release}${shared_ext}$major'
  38180. - ;;
  38181. + case $as_dir in #(
  38182. + -*) as_dir=./$as_dir;;
  38183. + esac
  38184. + test -d "$as_dir" || eval $as_mkdir_p || {
  38185. + as_dirs=
  38186. + while :; do
  38187. + case $as_dir in #(
  38188. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  38189. + *) as_qdir=$as_dir;;
  38190. + esac
  38191. + as_dirs="'$as_qdir' $as_dirs"
  38192. + as_dir=`$as_dirname -- "$as_dir" ||
  38193. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38194. + X"$as_dir" : 'X\(//\)[^/]' \| \
  38195. + X"$as_dir" : 'X\(//\)$' \| \
  38196. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38197. +$as_echo X"$as_dir" |
  38198. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38199. + s//\1/
  38200. + q
  38201. + }
  38202. + /^X\(\/\/\)[^/].*/{
  38203. + s//\1/
  38204. + q
  38205. + }
  38206. + /^X\(\/\/\)$/{
  38207. + s//\1/
  38208. + q
  38209. + }
  38210. + /^X\(\/\).*/{
  38211. + s//\1/
  38212. + q
  38213. + }
  38214. + s/.*/./; q'`
  38215. + test -d "$as_dir" && break
  38216. + done
  38217. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  38218. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  38219. -aix4* | aix5*)
  38220. - version_type=linux
  38221. - need_lib_prefix=no
  38222. - need_version=no
  38223. - hardcode_into_libs=yes
  38224. - if test "$host_cpu" = ia64; then
  38225. - # AIX 5 supports IA64
  38226. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  38227. - shlibpath_var=LD_LIBRARY_PATH
  38228. +
  38229. +} # as_fn_mkdir_p
  38230. +if mkdir -p . 2>/dev/null; then
  38231. + as_mkdir_p='mkdir -p "$as_dir"'
  38232. +else
  38233. + test -d ./-p && rmdir ./-p
  38234. + as_mkdir_p=false
  38235. +fi
  38236. +
  38237. +if test -x / >/dev/null 2>&1; then
  38238. + as_test_x='test -x'
  38239. +else
  38240. + if ls -dL / >/dev/null 2>&1; then
  38241. + as_ls_L_option=L
  38242. else
  38243. - # With GCC up to 2.95.x, collect2 would create an import file
  38244. - # for dependence libraries. The import file would start with
  38245. - # the line `#! .'. This would cause the generated library to
  38246. - # depend on `.', always an invalid library. This was fixed in
  38247. - # development snapshots of GCC prior to 3.0.
  38248. - case $host_os in
  38249. - aix4 | aix4.[01] | aix4.[01].*)
  38250. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  38251. - echo ' yes '
  38252. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  38253. - :
  38254. - else
  38255. - can_build_shared=no
  38256. - fi
  38257. - ;;
  38258. - esac
  38259. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  38260. - # soname into executable. Probably we can add versioning support to
  38261. - # collect2, so additional links can be useful in future.
  38262. - if test "$aix_use_runtimelinking" = yes; then
  38263. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  38264. - # instead of lib<name>.a to let people know that these are not
  38265. - # typical AIX shared libraries.
  38266. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38267. - else
  38268. - # We preserve .a as extension for shared libraries through AIX4.2
  38269. - # and later when we are not doing run time linking.
  38270. - library_names_spec='${libname}${release}.a $libname.a'
  38271. - soname_spec='${libname}${release}${shared_ext}$major'
  38272. - fi
  38273. - shlibpath_var=LIBPATH
  38274. + as_ls_L_option=
  38275. fi
  38276. - ;;
  38277. -
  38278. -amigaos*)
  38279. - library_names_spec='$libname.ixlibrary $libname.a'
  38280. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  38281. - 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'
  38282. - ;;
  38283. + as_test_x='
  38284. + eval sh -c '\''
  38285. + if test -d "$1"; then
  38286. + test -d "$1/.";
  38287. + else
  38288. + case $1 in #(
  38289. + -*)set "./$1";;
  38290. + esac;
  38291. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  38292. + ???[sx]*):;;*)false;;esac;fi
  38293. + '\'' sh
  38294. + '
  38295. +fi
  38296. +as_executable_p=$as_test_x
  38297. -beos*)
  38298. - library_names_spec='${libname}${shared_ext}'
  38299. - dynamic_linker="$host_os ld.so"
  38300. - shlibpath_var=LIBRARY_PATH
  38301. - ;;
  38302. +# Sed expression to map a string onto a valid CPP name.
  38303. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  38304. -bsdi[45]*)
  38305. - version_type=linux
  38306. - need_version=no
  38307. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38308. - soname_spec='${libname}${release}${shared_ext}$major'
  38309. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  38310. - shlibpath_var=LD_LIBRARY_PATH
  38311. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  38312. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  38313. - # the default ld.so.conf also contains /usr/contrib/lib and
  38314. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  38315. - # libtool to hard-code these into programs
  38316. - ;;
  38317. +# Sed expression to map a string onto a valid variable name.
  38318. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  38319. -cygwin* | mingw* | pw32*)
  38320. - version_type=windows
  38321. - shrext_cmds=".dll"
  38322. - need_version=no
  38323. - need_lib_prefix=no
  38324. - case $GCC,$host_os in
  38325. - yes,cygwin* | yes,mingw* | yes,pw32*)
  38326. - library_names_spec='$libname.dll.a'
  38327. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  38328. - postinstall_cmds='base_file=`basename \${file}`~
  38329. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  38330. - dldir=$destdir/`dirname \$dlpath`~
  38331. - test -d \$dldir || mkdir -p \$dldir~
  38332. - $install_prog $dir/$dlname \$dldir/$dlname'
  38333. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  38334. - dlpath=$dir/\$dldll~
  38335. - $rm \$dlpath'
  38336. - shlibpath_overrides_runpath=yes
  38337. +exec 6>&1
  38338. +## ----------------------------------- ##
  38339. +## Main body of $CONFIG_STATUS script. ##
  38340. +## ----------------------------------- ##
  38341. +_ASEOF
  38342. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  38343. - case $host_os in
  38344. - cygwin*)
  38345. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  38346. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38347. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  38348. - ;;
  38349. - mingw*)
  38350. - # MinGW DLLs use traditional 'lib' prefix
  38351. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38352. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38353. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  38354. - # It is most probably a Windows format PATH printed by
  38355. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  38356. - # path with ; separators, and with drive letters. We can handle the
  38357. - # drive letters (cygwin fileutils understands them), so leave them,
  38358. - # especially as we might pass files found there to a mingw objdump,
  38359. - # which wouldn't understand a cygwinified path. Ahh.
  38360. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38361. - else
  38362. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38363. - fi
  38364. - ;;
  38365. - pw32*)
  38366. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  38367. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  38368. - ;;
  38369. - esac
  38370. - ;;
  38371. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38372. +# Save the log message, to keep $0 and so on meaningful, and to
  38373. +# report actual input values of CONFIG_FILES etc. instead of their
  38374. +# values after options handling.
  38375. +ac_log="
  38376. +This file was extended by $as_me, which was
  38377. +generated by GNU Autoconf 2.65. Invocation command line was
  38378. - *)
  38379. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  38380. - ;;
  38381. - esac
  38382. - dynamic_linker='Win32 ld.exe'
  38383. - # FIXME: first we should search . and the directory the executable is in
  38384. - shlibpath_var=PATH
  38385. - ;;
  38386. + CONFIG_FILES = $CONFIG_FILES
  38387. + CONFIG_HEADERS = $CONFIG_HEADERS
  38388. + CONFIG_LINKS = $CONFIG_LINKS
  38389. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  38390. + $ $0 $@
  38391. -darwin* | rhapsody*)
  38392. - dynamic_linker="$host_os dyld"
  38393. - version_type=darwin
  38394. - need_lib_prefix=no
  38395. - need_version=no
  38396. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  38397. - soname_spec='${libname}${release}${major}$shared_ext'
  38398. - shlibpath_overrides_runpath=yes
  38399. - shlibpath_var=DYLD_LIBRARY_PATH
  38400. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  38401. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  38402. - if test "$GCC" = yes; then
  38403. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  38404. - else
  38405. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  38406. - fi
  38407. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  38408. - ;;
  38409. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  38410. +"
  38411. -dgux*)
  38412. - version_type=linux
  38413. - need_lib_prefix=no
  38414. - need_version=no
  38415. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  38416. - soname_spec='${libname}${release}${shared_ext}$major'
  38417. - shlibpath_var=LD_LIBRARY_PATH
  38418. - ;;
  38419. +_ACEOF
  38420. -freebsd1*)
  38421. - dynamic_linker=no
  38422. - ;;
  38423. +case $ac_config_files in *"
  38424. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  38425. +esac
  38426. -kfreebsd*-gnu)
  38427. - version_type=linux
  38428. - need_lib_prefix=no
  38429. - need_version=no
  38430. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38431. - soname_spec='${libname}${release}${shared_ext}$major'
  38432. - shlibpath_var=LD_LIBRARY_PATH
  38433. - shlibpath_overrides_runpath=no
  38434. - hardcode_into_libs=yes
  38435. - dynamic_linker='GNU ld.so'
  38436. - ;;
  38437. +case $ac_config_headers in *"
  38438. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  38439. +esac
  38440. -freebsd*)
  38441. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  38442. - version_type=freebsd-$objformat
  38443. - case $version_type in
  38444. - freebsd-elf*)
  38445. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  38446. - need_version=no
  38447. - need_lib_prefix=no
  38448. - ;;
  38449. - freebsd-*)
  38450. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  38451. - need_version=yes
  38452. - ;;
  38453. - esac
  38454. - shlibpath_var=LD_LIBRARY_PATH
  38455. - case $host_os in
  38456. - freebsd2*)
  38457. - shlibpath_overrides_runpath=yes
  38458. - ;;
  38459. - freebsd3.01* | freebsdelf3.01*)
  38460. - shlibpath_overrides_runpath=yes
  38461. - hardcode_into_libs=yes
  38462. - ;;
  38463. - *) # from 3.2 on
  38464. - shlibpath_overrides_runpath=no
  38465. - hardcode_into_libs=yes
  38466. - ;;
  38467. - esac
  38468. - ;;
  38469. -gnu*)
  38470. - version_type=linux
  38471. - need_lib_prefix=no
  38472. - need_version=no
  38473. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  38474. - soname_spec='${libname}${release}${shared_ext}$major'
  38475. - shlibpath_var=LD_LIBRARY_PATH
  38476. - hardcode_into_libs=yes
  38477. - ;;
  38478. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38479. +# Files that config.status was made for.
  38480. +config_files="$ac_config_files"
  38481. +config_headers="$ac_config_headers"
  38482. +config_commands="$ac_config_commands"
  38483. -hpux9* | hpux10* | hpux11*)
  38484. - # Give a soname corresponding to the major version so that dld.sl refuses to
  38485. - # link against other versions.
  38486. - version_type=sunos
  38487. - need_lib_prefix=no
  38488. - need_version=no
  38489. - case "$host_cpu" in
  38490. - ia64*)
  38491. - shrext_cmds='.so'
  38492. - hardcode_into_libs=yes
  38493. - dynamic_linker="$host_os dld.so"
  38494. - shlibpath_var=LD_LIBRARY_PATH
  38495. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38496. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38497. - soname_spec='${libname}${release}${shared_ext}$major'
  38498. - if test "X$HPUX_IA64_MODE" = X32; then
  38499. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  38500. - else
  38501. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  38502. - fi
  38503. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38504. - ;;
  38505. - hppa*64*)
  38506. - shrext_cmds='.sl'
  38507. - hardcode_into_libs=yes
  38508. - dynamic_linker="$host_os dld.sl"
  38509. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  38510. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38511. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38512. - soname_spec='${libname}${release}${shared_ext}$major'
  38513. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38514. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38515. - ;;
  38516. - *)
  38517. - shrext_cmds='.sl'
  38518. - dynamic_linker="$host_os dld.sl"
  38519. - shlibpath_var=SHLIB_PATH
  38520. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  38521. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38522. - soname_spec='${libname}${release}${shared_ext}$major'
  38523. - ;;
  38524. - esac
  38525. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  38526. - postinstall_cmds='chmod 555 $lib'
  38527. - ;;
  38528. +_ACEOF
  38529. -irix5* | irix6* | nonstopux*)
  38530. - case $host_os in
  38531. - nonstopux*) version_type=nonstopux ;;
  38532. - *)
  38533. - if test "$lt_cv_prog_gnu_ld" = yes; then
  38534. - version_type=linux
  38535. - else
  38536. - version_type=irix
  38537. - fi ;;
  38538. - esac
  38539. - need_lib_prefix=no
  38540. - need_version=no
  38541. - soname_spec='${libname}${release}${shared_ext}$major'
  38542. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  38543. - case $host_os in
  38544. - irix5* | nonstopux*)
  38545. - libsuff= shlibsuff=
  38546. - ;;
  38547. - *)
  38548. - case $LD in # libtool.m4 will add one of these switches to LD
  38549. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  38550. - libsuff= shlibsuff= libmagic=32-bit;;
  38551. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  38552. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  38553. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  38554. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  38555. - *) libsuff= shlibsuff= libmagic=never-match;;
  38556. - esac
  38557. - ;;
  38558. - esac
  38559. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  38560. - shlibpath_overrides_runpath=no
  38561. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  38562. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  38563. - hardcode_into_libs=yes
  38564. - ;;
  38565. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38566. +ac_cs_usage="\
  38567. +\`$as_me' instantiates files and other configuration actions
  38568. +from templates according to the current configuration. Unless the files
  38569. +and actions are specified as TAGs, all are instantiated by default.
  38570. -# No shared lib support for Linux oldld, aout, or coff.
  38571. -linux*oldld* | linux*aout* | linux*coff*)
  38572. - dynamic_linker=no
  38573. - ;;
  38574. +Usage: $0 [OPTION]... [TAG]...
  38575. -# This must be Linux ELF.
  38576. -linux*)
  38577. - version_type=linux
  38578. - need_lib_prefix=no
  38579. - need_version=no
  38580. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38581. - soname_spec='${libname}${release}${shared_ext}$major'
  38582. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  38583. - shlibpath_var=LD_LIBRARY_PATH
  38584. - shlibpath_overrides_runpath=no
  38585. - # This implies no fast_install, which is unacceptable.
  38586. - # Some rework will be needed to allow for fast_install
  38587. - # before this can be enabled.
  38588. - hardcode_into_libs=yes
  38589. + -h, --help print this help, then exit
  38590. + -V, --version print version number and configuration settings, then exit
  38591. + --config print configuration, then exit
  38592. + -q, --quiet, --silent
  38593. + do not print progress messages
  38594. + -d, --debug don't remove temporary files
  38595. + --recheck update $as_me by reconfiguring in the same conditions
  38596. + --file=FILE[:TEMPLATE]
  38597. + instantiate the configuration file FILE
  38598. + --header=FILE[:TEMPLATE]
  38599. + instantiate the configuration header FILE
  38600. - # Append ld.so.conf contents to the search path
  38601. - if test -f /etc/ld.so.conf; then
  38602. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  38603. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  38604. - fi
  38605. +Configuration files:
  38606. +$config_files
  38607. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  38608. - # powerpc, because MkLinux only supported shared libraries with the
  38609. - # GNU dynamic linker. Since this was broken with cross compilers,
  38610. - # most powerpc-linux boxes support dynamic linking these days and
  38611. - # people can always --disable-shared, the test was removed, and we
  38612. - # assume the GNU/Linux dynamic linker is in use.
  38613. - dynamic_linker='GNU/Linux ld.so'
  38614. - ;;
  38615. -
  38616. -knetbsd*-gnu)
  38617. - version_type=linux
  38618. - need_lib_prefix=no
  38619. - need_version=no
  38620. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38621. - soname_spec='${libname}${release}${shared_ext}$major'
  38622. - shlibpath_var=LD_LIBRARY_PATH
  38623. - shlibpath_overrides_runpath=no
  38624. - hardcode_into_libs=yes
  38625. - dynamic_linker='GNU ld.so'
  38626. - ;;
  38627. +Configuration headers:
  38628. +$config_headers
  38629. -netbsd*)
  38630. - version_type=sunos
  38631. - need_lib_prefix=no
  38632. - need_version=no
  38633. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38634. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38635. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38636. - dynamic_linker='NetBSD (a.out) ld.so'
  38637. - else
  38638. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38639. - soname_spec='${libname}${release}${shared_ext}$major'
  38640. - dynamic_linker='NetBSD ld.elf_so'
  38641. - fi
  38642. - shlibpath_var=LD_LIBRARY_PATH
  38643. - shlibpath_overrides_runpath=yes
  38644. - hardcode_into_libs=yes
  38645. - ;;
  38646. +Configuration commands:
  38647. +$config_commands
  38648. -newsos6)
  38649. - version_type=linux
  38650. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38651. - shlibpath_var=LD_LIBRARY_PATH
  38652. - shlibpath_overrides_runpath=yes
  38653. - ;;
  38654. +Report bugs to the package provider."
  38655. -nto-qnx*)
  38656. - version_type=linux
  38657. - need_lib_prefix=no
  38658. - need_version=no
  38659. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38660. - soname_spec='${libname}${release}${shared_ext}$major'
  38661. - shlibpath_var=LD_LIBRARY_PATH
  38662. - shlibpath_overrides_runpath=yes
  38663. - ;;
  38664. +_ACEOF
  38665. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38666. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  38667. +ac_cs_version="\\
  38668. +config.status
  38669. +configured by $0, generated by GNU Autoconf 2.65,
  38670. + with options \\"\$ac_cs_config\\"
  38671. -openbsd*)
  38672. - version_type=sunos
  38673. - need_lib_prefix=no
  38674. - need_version=no
  38675. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38676. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38677. - shlibpath_var=LD_LIBRARY_PATH
  38678. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38679. - case $host_os in
  38680. - openbsd2.[89] | openbsd2.[89].*)
  38681. - shlibpath_overrides_runpath=no
  38682. - ;;
  38683. - *)
  38684. - shlibpath_overrides_runpath=yes
  38685. - ;;
  38686. - esac
  38687. - else
  38688. - shlibpath_overrides_runpath=yes
  38689. - fi
  38690. - ;;
  38691. +Copyright (C) 2009 Free Software Foundation, Inc.
  38692. +This config.status script is free software; the Free Software Foundation
  38693. +gives unlimited permission to copy, distribute and modify it."
  38694. -os2*)
  38695. - libname_spec='$name'
  38696. - shrext_cmds=".dll"
  38697. - need_lib_prefix=no
  38698. - library_names_spec='$libname${shared_ext} $libname.a'
  38699. - dynamic_linker='OS/2 ld.exe'
  38700. - shlibpath_var=LIBPATH
  38701. - ;;
  38702. +ac_pwd='$ac_pwd'
  38703. +srcdir='$srcdir'
  38704. +INSTALL='$INSTALL'
  38705. +MKDIR_P='$MKDIR_P'
  38706. +AWK='$AWK'
  38707. +test -n "\$AWK" || AWK=awk
  38708. +_ACEOF
  38709. -osf3* | osf4* | osf5*)
  38710. - version_type=osf
  38711. - need_lib_prefix=no
  38712. - need_version=no
  38713. - soname_spec='${libname}${release}${shared_ext}$major'
  38714. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38715. - shlibpath_var=LD_LIBRARY_PATH
  38716. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  38717. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  38718. - ;;
  38719. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38720. +# The default lists apply if the user does not specify any file.
  38721. +ac_need_defaults=:
  38722. +while test $# != 0
  38723. +do
  38724. + case $1 in
  38725. + --*=*)
  38726. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  38727. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  38728. + ac_shift=:
  38729. + ;;
  38730. + *)
  38731. + ac_option=$1
  38732. + ac_optarg=$2
  38733. + ac_shift=shift
  38734. + ;;
  38735. + esac
  38736. -sco3.2v5*)
  38737. - version_type=osf
  38738. - soname_spec='${libname}${release}${shared_ext}$major'
  38739. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38740. - shlibpath_var=LD_LIBRARY_PATH
  38741. - ;;
  38742. + case $ac_option in
  38743. + # Handling of the options.
  38744. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  38745. + ac_cs_recheck=: ;;
  38746. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  38747. + $as_echo "$ac_cs_version"; exit ;;
  38748. + --config | --confi | --conf | --con | --co | --c )
  38749. + $as_echo "$ac_cs_config"; exit ;;
  38750. + --debug | --debu | --deb | --de | --d | -d )
  38751. + debug=: ;;
  38752. + --file | --fil | --fi | --f )
  38753. + $ac_shift
  38754. + case $ac_optarg in
  38755. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38756. + esac
  38757. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  38758. + ac_need_defaults=false;;
  38759. + --header | --heade | --head | --hea )
  38760. + $ac_shift
  38761. + case $ac_optarg in
  38762. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38763. + esac
  38764. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  38765. + ac_need_defaults=false;;
  38766. + --he | --h)
  38767. + # Conflict between --help and --header
  38768. + as_fn_error "ambiguous option: \`$1'
  38769. +Try \`$0 --help' for more information.";;
  38770. + --help | --hel | -h )
  38771. + $as_echo "$ac_cs_usage"; exit ;;
  38772. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  38773. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  38774. + ac_cs_silent=: ;;
  38775. -solaris*)
  38776. - version_type=linux
  38777. - need_lib_prefix=no
  38778. - need_version=no
  38779. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38780. - soname_spec='${libname}${release}${shared_ext}$major'
  38781. - shlibpath_var=LD_LIBRARY_PATH
  38782. - shlibpath_overrides_runpath=yes
  38783. - hardcode_into_libs=yes
  38784. - # ldd complains unless libraries are executable
  38785. - postinstall_cmds='chmod +x $lib'
  38786. - ;;
  38787. + # This is an error.
  38788. + -*) as_fn_error "unrecognized option: \`$1'
  38789. +Try \`$0 --help' for more information." ;;
  38790. -sunos4*)
  38791. - version_type=sunos
  38792. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38793. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  38794. - shlibpath_var=LD_LIBRARY_PATH
  38795. - shlibpath_overrides_runpath=yes
  38796. - if test "$with_gnu_ld" = yes; then
  38797. - need_lib_prefix=no
  38798. - fi
  38799. - need_version=yes
  38800. - ;;
  38801. + *) as_fn_append ac_config_targets " $1"
  38802. + ac_need_defaults=false ;;
  38803. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  38804. - version_type=linux
  38805. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38806. - soname_spec='${libname}${release}${shared_ext}$major'
  38807. - shlibpath_var=LD_LIBRARY_PATH
  38808. - case $host_vendor in
  38809. - sni)
  38810. - shlibpath_overrides_runpath=no
  38811. - need_lib_prefix=no
  38812. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  38813. - runpath_var=LD_RUN_PATH
  38814. - ;;
  38815. - siemens)
  38816. - need_lib_prefix=no
  38817. - ;;
  38818. - motorola)
  38819. - need_lib_prefix=no
  38820. - need_version=no
  38821. - shlibpath_overrides_runpath=no
  38822. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  38823. - ;;
  38824. esac
  38825. - ;;
  38826. -
  38827. -sysv4*MP*)
  38828. - if test -d /usr/nec ;then
  38829. - version_type=linux
  38830. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  38831. - soname_spec='$libname${shared_ext}.$major'
  38832. - shlibpath_var=LD_LIBRARY_PATH
  38833. - fi
  38834. - ;;
  38835. -
  38836. -uts4*)
  38837. - version_type=linux
  38838. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38839. - soname_spec='${libname}${release}${shared_ext}$major'
  38840. - shlibpath_var=LD_LIBRARY_PATH
  38841. - ;;
  38842. -
  38843. -*)
  38844. - dynamic_linker=no
  38845. - ;;
  38846. -esac
  38847. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  38848. -echo "${ECHO_T}$dynamic_linker" >&6; }
  38849. -test "$dynamic_linker" = no && can_build_shared=no
  38850. + shift
  38851. +done
  38852. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  38853. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  38854. -hardcode_action_F77=
  38855. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  38856. - test -n "$runpath_var_F77" || \
  38857. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  38858. +ac_configure_extra_args=
  38859. - # We can hardcode non-existant directories.
  38860. - if test "$hardcode_direct_F77" != no &&
  38861. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  38862. - # have to relink, otherwise we might link with an installed library
  38863. - # when we should be linking with a yet-to-be-installed one
  38864. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  38865. - test "$hardcode_minus_L_F77" != no; then
  38866. - # Linking always hardcodes the temporary library directory.
  38867. - hardcode_action_F77=relink
  38868. - else
  38869. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  38870. - hardcode_action_F77=immediate
  38871. - fi
  38872. -else
  38873. - # We cannot hardcode anything, or else we can only hardcode existing
  38874. - # directories.
  38875. - hardcode_action_F77=unsupported
  38876. +if $ac_cs_silent; then
  38877. + exec 6>/dev/null
  38878. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  38879. fi
  38880. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  38881. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  38882. -if test "$hardcode_action_F77" = relink; then
  38883. - # Fast installation is not supported
  38884. - enable_fast_install=no
  38885. -elif test "$shlibpath_overrides_runpath" = yes ||
  38886. - test "$enable_shared" = no; then
  38887. - # Fast installation is not necessary
  38888. - enable_fast_install=needless
  38889. +_ACEOF
  38890. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38891. +if \$ac_cs_recheck; then
  38892. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  38893. + shift
  38894. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  38895. + CONFIG_SHELL='$SHELL'
  38896. + export CONFIG_SHELL
  38897. + exec "\$@"
  38898. fi
  38899. -striplib=
  38900. -old_striplib=
  38901. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  38902. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  38903. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  38904. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38905. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38906. - { echo "$as_me:$LINENO: result: yes" >&5
  38907. -echo "${ECHO_T}yes" >&6; }
  38908. -else
  38909. -# FIXME - insert some real tests, host_os isn't really good enough
  38910. - case $host_os in
  38911. - darwin*)
  38912. - if test -n "$STRIP" ; then
  38913. - striplib="$STRIP -x"
  38914. - { echo "$as_me:$LINENO: result: yes" >&5
  38915. -echo "${ECHO_T}yes" >&6; }
  38916. - else
  38917. - { echo "$as_me:$LINENO: result: no" >&5
  38918. -echo "${ECHO_T}no" >&6; }
  38919. -fi
  38920. - ;;
  38921. - *)
  38922. - { echo "$as_me:$LINENO: result: no" >&5
  38923. -echo "${ECHO_T}no" >&6; }
  38924. - ;;
  38925. - esac
  38926. -fi
  38927. +_ACEOF
  38928. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38929. +exec 5>>config.log
  38930. +{
  38931. + echo
  38932. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  38933. +## Running $as_me. ##
  38934. +_ASBOX
  38935. + $as_echo "$ac_log"
  38936. +} >&5
  38937. +
  38938. +_ACEOF
  38939. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38940. +#
  38941. +# INIT-COMMANDS
  38942. +#
  38943. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  38944. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  38945. +# if CDPATH is set.
  38946. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  38947. -# The else clause should only fire when bootstrapping the
  38948. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  38949. -# with your package, and you will get complaints that there are
  38950. -# no rules to generate ltmain.sh.
  38951. -if test -f "$ltmain"; then
  38952. - # See if we are running on zsh, and set the options which allow our commands through
  38953. - # without removal of \ escapes.
  38954. - if test -n "${ZSH_VERSION+set}" ; then
  38955. - setopt NO_GLOB_SUBST
  38956. - fi
  38957. - # Now quote all the things that may contain metacharacters while being
  38958. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  38959. - # variables and quote the copies for generation of the libtool script.
  38960. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  38961. - SED SHELL STRIP \
  38962. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  38963. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  38964. - deplibs_check_method reload_flag reload_cmds need_locks \
  38965. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  38966. - lt_cv_sys_global_symbol_to_c_name_address \
  38967. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  38968. - old_postinstall_cmds old_postuninstall_cmds \
  38969. - compiler_F77 \
  38970. - CC_F77 \
  38971. - LD_F77 \
  38972. - lt_prog_compiler_wl_F77 \
  38973. - lt_prog_compiler_pic_F77 \
  38974. - lt_prog_compiler_static_F77 \
  38975. - lt_prog_compiler_no_builtin_flag_F77 \
  38976. - export_dynamic_flag_spec_F77 \
  38977. - thread_safe_flag_spec_F77 \
  38978. - whole_archive_flag_spec_F77 \
  38979. - enable_shared_with_static_runtimes_F77 \
  38980. - old_archive_cmds_F77 \
  38981. - old_archive_from_new_cmds_F77 \
  38982. - predep_objects_F77 \
  38983. - postdep_objects_F77 \
  38984. - predeps_F77 \
  38985. - postdeps_F77 \
  38986. - compiler_lib_search_path_F77 \
  38987. - archive_cmds_F77 \
  38988. - archive_expsym_cmds_F77 \
  38989. - postinstall_cmds_F77 \
  38990. - postuninstall_cmds_F77 \
  38991. - old_archive_from_expsyms_cmds_F77 \
  38992. - allow_undefined_flag_F77 \
  38993. - no_undefined_flag_F77 \
  38994. - export_symbols_cmds_F77 \
  38995. - hardcode_libdir_flag_spec_F77 \
  38996. - hardcode_libdir_flag_spec_ld_F77 \
  38997. - hardcode_libdir_separator_F77 \
  38998. - hardcode_automatic_F77 \
  38999. - module_cmds_F77 \
  39000. - module_expsym_cmds_F77 \
  39001. - lt_cv_prog_compiler_c_o_F77 \
  39002. - exclude_expsyms_F77 \
  39003. - include_expsyms_F77; do
  39004. -
  39005. - case $var in
  39006. - old_archive_cmds_F77 | \
  39007. - old_archive_from_new_cmds_F77 | \
  39008. - archive_cmds_F77 | \
  39009. - archive_expsym_cmds_F77 | \
  39010. - module_cmds_F77 | \
  39011. - module_expsym_cmds_F77 | \
  39012. - old_archive_from_expsyms_cmds_F77 | \
  39013. - export_symbols_cmds_F77 | \
  39014. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  39015. - postinstall_cmds | postuninstall_cmds | \
  39016. - old_postinstall_cmds | old_postuninstall_cmds | \
  39017. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  39018. - # Double-quote double-evaled strings.
  39019. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  39020. +sed_quote_subst='$sed_quote_subst'
  39021. +double_quote_subst='$double_quote_subst'
  39022. +delay_variable_subst='$delay_variable_subst'
  39023. +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  39024. +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  39025. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  39026. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  39027. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  39028. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  39029. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  39030. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  39031. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  39032. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39033. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  39034. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  39035. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39036. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  39037. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  39038. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  39039. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  39040. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  39041. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39042. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39043. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  39044. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  39045. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  39046. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  39047. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  39048. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  39049. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  39050. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  39051. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  39052. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39053. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39054. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  39055. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  39056. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  39057. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39058. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  39059. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  39060. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39061. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39062. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39063. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  39064. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39065. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  39066. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  39067. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  39068. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  39069. +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"`'
  39070. +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"`'
  39071. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  39072. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  39073. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  39074. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  39075. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39076. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  39077. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  39078. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  39079. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  39080. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  39081. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  39082. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  39083. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  39084. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  39085. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  39086. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  39087. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39088. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39089. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  39090. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  39091. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39092. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39093. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  39094. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39095. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39096. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39097. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39098. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39099. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39100. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39101. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39102. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39103. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39104. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39105. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  39106. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  39107. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  39108. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  39109. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39110. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  39111. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  39112. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  39113. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  39114. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  39115. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39116. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39117. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39118. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39119. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39120. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  39121. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  39122. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  39123. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  39124. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39125. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39126. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  39127. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39128. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39129. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39130. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39131. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39132. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39133. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  39134. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  39135. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39136. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39137. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  39138. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  39139. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  39140. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  39141. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39142. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39143. +
  39144. +LTCC='$LTCC'
  39145. +LTCFLAGS='$LTCFLAGS'
  39146. +compiler='$compiler_DEFAULT'
  39147. +
  39148. +# Quote evaled strings.
  39149. +for var in SED \
  39150. +GREP \
  39151. +EGREP \
  39152. +FGREP \
  39153. +LD \
  39154. +NM \
  39155. +LN_S \
  39156. +lt_SP2NL \
  39157. +lt_NL2SP \
  39158. +reload_flag \
  39159. +deplibs_check_method \
  39160. +file_magic_cmd \
  39161. +AR \
  39162. +AR_FLAGS \
  39163. +STRIP \
  39164. +RANLIB \
  39165. +CC \
  39166. +CFLAGS \
  39167. +compiler \
  39168. +lt_cv_sys_global_symbol_pipe \
  39169. +lt_cv_sys_global_symbol_to_cdecl \
  39170. +lt_cv_sys_global_symbol_to_c_name_address \
  39171. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  39172. +SHELL \
  39173. +ECHO \
  39174. +lt_prog_compiler_no_builtin_flag \
  39175. +lt_prog_compiler_wl \
  39176. +lt_prog_compiler_pic \
  39177. +lt_prog_compiler_static \
  39178. +lt_cv_prog_compiler_c_o \
  39179. +need_locks \
  39180. +DSYMUTIL \
  39181. +NMEDIT \
  39182. +LIPO \
  39183. +OTOOL \
  39184. +OTOOL64 \
  39185. +shrext_cmds \
  39186. +export_dynamic_flag_spec \
  39187. +whole_archive_flag_spec \
  39188. +compiler_needs_object \
  39189. +with_gnu_ld \
  39190. +allow_undefined_flag \
  39191. +no_undefined_flag \
  39192. +hardcode_libdir_flag_spec \
  39193. +hardcode_libdir_flag_spec_ld \
  39194. +hardcode_libdir_separator \
  39195. +fix_srcfile_path \
  39196. +exclude_expsyms \
  39197. +include_expsyms \
  39198. +file_list_spec \
  39199. +variables_saved_for_relink \
  39200. +libname_spec \
  39201. +library_names_spec \
  39202. +soname_spec \
  39203. +finish_eval \
  39204. +old_striplib \
  39205. +striplib; do
  39206. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39207. + *[\\\\\\\`\\"\\\$]*)
  39208. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  39209. ;;
  39210. *)
  39211. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  39212. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39213. ;;
  39214. esac
  39215. - done
  39216. -
  39217. - case $lt_echo in
  39218. - *'\$0 --fallback-echo"')
  39219. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  39220. - ;;
  39221. - esac
  39222. -
  39223. -cfgfile="$ofile"
  39224. -
  39225. - cat <<__EOF__ >> "$cfgfile"
  39226. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  39227. -
  39228. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39229. +done
  39230. -# Shell to use when invoking shell scripts.
  39231. -SHELL=$lt_SHELL
  39232. +# Double-quote double-evaled strings.
  39233. +for var in reload_cmds \
  39234. +old_postinstall_cmds \
  39235. +old_postuninstall_cmds \
  39236. +old_archive_cmds \
  39237. +extract_expsyms_cmds \
  39238. +old_archive_from_new_cmds \
  39239. +old_archive_from_expsyms_cmds \
  39240. +archive_cmds \
  39241. +archive_expsym_cmds \
  39242. +module_cmds \
  39243. +module_expsym_cmds \
  39244. +export_symbols_cmds \
  39245. +prelink_cmds \
  39246. +postinstall_cmds \
  39247. +postuninstall_cmds \
  39248. +finish_cmds \
  39249. +sys_lib_search_path_spec \
  39250. +sys_lib_dlsearch_path_spec; do
  39251. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39252. + *[\\\\\\\`\\"\\\$]*)
  39253. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  39254. + ;;
  39255. + *)
  39256. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39257. + ;;
  39258. + esac
  39259. +done
  39260. -# Whether or not to build shared libraries.
  39261. -build_libtool_libs=$enable_shared
  39262. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  39263. +case \$lt_ECHO in
  39264. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  39265. + ;;
  39266. +esac
  39267. -# Whether or not to build static libraries.
  39268. -build_old_libs=$enable_static
  39269. +ac_aux_dir='$ac_aux_dir'
  39270. +xsi_shell='$xsi_shell'
  39271. +lt_shell_append='$lt_shell_append'
  39272. -# Whether or not to add -lc for building shared libraries.
  39273. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  39274. +# See if we are running on zsh, and set the options which allow our
  39275. +# commands through without removal of \ escapes INIT.
  39276. +if test -n "\${ZSH_VERSION+set}" ; then
  39277. + setopt NO_GLOB_SUBST
  39278. +fi
  39279. -# Whether or not to disallow shared libs when runtime libs are static
  39280. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  39281. -# Whether or not to optimize for fast installation.
  39282. -fast_install=$enable_fast_install
  39283. + PACKAGE='$PACKAGE'
  39284. + VERSION='$VERSION'
  39285. + TIMESTAMP='$TIMESTAMP'
  39286. + RM='$RM'
  39287. + ofile='$ofile'
  39288. -# The host system.
  39289. -host_alias=$host_alias
  39290. -host=$host
  39291. -# An echo program that does not interpret backslashes.
  39292. -echo=$lt_echo
  39293. -# The archiver.
  39294. -AR=$lt_AR
  39295. -AR_FLAGS=$lt_AR_FLAGS
  39296. -# A C compiler.
  39297. -LTCC=$lt_LTCC
  39298. +_ACEOF
  39299. -# A language-specific compiler.
  39300. -CC=$lt_compiler_F77
  39301. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39302. -# Is the compiler the GNU C compiler?
  39303. -with_gcc=$GCC_F77
  39304. +# Handling of arguments.
  39305. +for ac_config_target in $ac_config_targets
  39306. +do
  39307. + case $ac_config_target in
  39308. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  39309. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  39310. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  39311. + "audiofile.spec") CONFIG_FILES="$CONFIG_FILES audiofile.spec" ;;
  39312. + "audiofile.pc") CONFIG_FILES="$CONFIG_FILES audiofile.pc" ;;
  39313. + "sfcommands/Makefile") CONFIG_FILES="$CONFIG_FILES sfcommands/Makefile" ;;
  39314. + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  39315. + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  39316. + "libaudiofile/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/Makefile" ;;
  39317. + "libaudiofile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/modules/Makefile" ;;
  39318. + "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  39319. + "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  39320. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39321. + "audiofile-config") CONFIG_FILES="$CONFIG_FILES audiofile-config" ;;
  39322. + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  39323. -# An ERE matcher.
  39324. -EGREP=$lt_EGREP
  39325. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  39326. + esac
  39327. +done
  39328. -# The linker used to build libraries.
  39329. -LD=$lt_LD_F77
  39330. -# Whether we need hard or soft links.
  39331. -LN_S=$lt_LN_S
  39332. +# If the user did not use the arguments to specify the items to instantiate,
  39333. +# then the envvar interface is used. Set only those that are not.
  39334. +# We use the long form for the default assignment because of an extremely
  39335. +# bizarre bug on SunOS 4.1.3.
  39336. +if $ac_need_defaults; then
  39337. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  39338. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  39339. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  39340. +fi
  39341. -# A BSD-compatible nm program.
  39342. -NM=$lt_NM
  39343. +# Have a temporary directory for convenience. Make it in the build tree
  39344. +# simply because there is no reason against having it here, and in addition,
  39345. +# creating and moving files from /tmp can sometimes cause problems.
  39346. +# Hook for its removal unless debugging.
  39347. +# Note that there is a small window in which the directory will not be cleaned:
  39348. +# after its creation but before its name has been assigned to `$tmp'.
  39349. +$debug ||
  39350. +{
  39351. + tmp=
  39352. + trap 'exit_status=$?
  39353. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  39354. +' 0
  39355. + trap 'as_fn_exit 1' 1 2 13 15
  39356. +}
  39357. +# Create a (secure) tmp directory for tmp files.
  39358. -# A symbol stripping program
  39359. -STRIP=$lt_STRIP
  39360. +{
  39361. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39362. + test -n "$tmp" && test -d "$tmp"
  39363. +} ||
  39364. +{
  39365. + tmp=./conf$$-$RANDOM
  39366. + (umask 077 && mkdir "$tmp")
  39367. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  39368. -# Used to examine libraries when file_magic_cmd begins "file"
  39369. -MAGIC_CMD=$MAGIC_CMD
  39370. +# Set up the scripts for CONFIG_FILES section.
  39371. +# No need to generate them if there are no CONFIG_FILES.
  39372. +# This happens for instance with `./config.status config.h'.
  39373. +if test -n "$CONFIG_FILES"; then
  39374. -# Used on cygwin: DLL creation program.
  39375. -DLLTOOL="$DLLTOOL"
  39376. -# Used on cygwin: object dumper.
  39377. -OBJDUMP="$OBJDUMP"
  39378. +ac_cr=`echo X | tr X '\015'`
  39379. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  39380. +# But we know of no other shell where ac_cr would be empty at this
  39381. +# point, so we can use a bashism as a fallback.
  39382. +if test "x$ac_cr" = x; then
  39383. + eval ac_cr=\$\'\\r\'
  39384. +fi
  39385. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  39386. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  39387. + ac_cs_awk_cr='\r'
  39388. +else
  39389. + ac_cs_awk_cr=$ac_cr
  39390. +fi
  39391. -# Used on cygwin: assembler.
  39392. -AS="$AS"
  39393. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  39394. +_ACEOF
  39395. -# The name of the directory that contains temporary libtool files.
  39396. -objdir=$objdir
  39397. -# How to create reloadable object files.
  39398. -reload_flag=$lt_reload_flag
  39399. -reload_cmds=$lt_reload_cmds
  39400. +{
  39401. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  39402. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  39403. + echo "_ACEOF"
  39404. +} >conf$$subs.sh ||
  39405. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39406. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  39407. +ac_delim='%!_!# '
  39408. +for ac_last_try in false false false false false :; do
  39409. + . ./conf$$subs.sh ||
  39410. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39411. -# How to pass a linker flag through the compiler.
  39412. -wl=$lt_lt_prog_compiler_wl_F77
  39413. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  39414. + if test $ac_delim_n = $ac_delim_num; then
  39415. + break
  39416. + elif $ac_last_try; then
  39417. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39418. + else
  39419. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39420. + fi
  39421. +done
  39422. +rm -f conf$$subs.sh
  39423. -# Object file suffix (normally "o").
  39424. -objext="$ac_objext"
  39425. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39426. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  39427. +_ACEOF
  39428. +sed -n '
  39429. +h
  39430. +s/^/S["/; s/!.*/"]=/
  39431. +p
  39432. +g
  39433. +s/^[^!]*!//
  39434. +:repl
  39435. +t repl
  39436. +s/'"$ac_delim"'$//
  39437. +t delim
  39438. +:nl
  39439. +h
  39440. +s/\(.\{148\}\)..*/\1/
  39441. +t more1
  39442. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  39443. +p
  39444. +n
  39445. +b repl
  39446. +:more1
  39447. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39448. +p
  39449. +g
  39450. +s/.\{148\}//
  39451. +t nl
  39452. +:delim
  39453. +h
  39454. +s/\(.\{148\}\)..*/\1/
  39455. +t more2
  39456. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  39457. +p
  39458. +b
  39459. +:more2
  39460. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39461. +p
  39462. +g
  39463. +s/.\{148\}//
  39464. +t delim
  39465. +' <conf$$subs.awk | sed '
  39466. +/^[^""]/{
  39467. + N
  39468. + s/\n//
  39469. +}
  39470. +' >>$CONFIG_STATUS || ac_write_fail=1
  39471. +rm -f conf$$subs.awk
  39472. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39473. +_ACAWK
  39474. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  39475. + for (key in S) S_is_set[key] = 1
  39476. + FS = ""
  39477. -# Old archive suffix (normally "a").
  39478. -libext="$libext"
  39479. +}
  39480. +{
  39481. + line = $ 0
  39482. + nfields = split(line, field, "@")
  39483. + substed = 0
  39484. + len = length(field[1])
  39485. + for (i = 2; i < nfields; i++) {
  39486. + key = field[i]
  39487. + keylen = length(key)
  39488. + if (S_is_set[key]) {
  39489. + value = S[key]
  39490. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  39491. + len += length(value) + length(field[++i])
  39492. + substed = 1
  39493. + } else
  39494. + len += 1 + keylen
  39495. + }
  39496. -# Shared library suffix (normally ".so").
  39497. -shrext_cmds='$shrext_cmds'
  39498. + print line
  39499. +}
  39500. -# Executable file suffix (normally "").
  39501. -exeext="$exeext"
  39502. +_ACAWK
  39503. +_ACEOF
  39504. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39505. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  39506. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  39507. +else
  39508. + cat
  39509. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  39510. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  39511. +_ACEOF
  39512. -# Additional compiler flags for building library objects.
  39513. -pic_flag=$lt_lt_prog_compiler_pic_F77
  39514. -pic_mode=$pic_mode
  39515. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  39516. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  39517. +# trailing colons and then remove the whole line if VPATH becomes empty
  39518. +# (actually we leave an empty line to preserve line numbers).
  39519. +if test "x$srcdir" = x.; then
  39520. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  39521. +s/:*\$(srcdir):*/:/
  39522. +s/:*\${srcdir}:*/:/
  39523. +s/:*@srcdir@:*/:/
  39524. +s/^\([^=]*=[ ]*\):*/\1/
  39525. +s/:*$//
  39526. +s/^[^=]*=[ ]*$//
  39527. +}'
  39528. +fi
  39529. -# What is the maximum length of a command?
  39530. -max_cmd_len=$lt_cv_sys_max_cmd_len
  39531. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39532. +fi # test -n "$CONFIG_FILES"
  39533. -# Does compiler simultaneously support -c and -o options?
  39534. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  39535. +# Set up the scripts for CONFIG_HEADERS section.
  39536. +# No need to generate them if there are no CONFIG_HEADERS.
  39537. +# This happens for instance with `./config.status Makefile'.
  39538. +if test -n "$CONFIG_HEADERS"; then
  39539. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  39540. +BEGIN {
  39541. +_ACEOF
  39542. -# Must we lock files when doing compilation ?
  39543. -need_locks=$lt_need_locks
  39544. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  39545. +# here-document in config.status, that substitutes the proper values into
  39546. +# config.h.in to produce config.h.
  39547. -# Do we need the lib prefix for modules?
  39548. -need_lib_prefix=$need_lib_prefix
  39549. +# Create a delimiter string that does not exist in confdefs.h, to ease
  39550. +# handling of long lines.
  39551. +ac_delim='%!_!# '
  39552. +for ac_last_try in false false :; do
  39553. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  39554. + if test -z "$ac_t"; then
  39555. + break
  39556. + elif $ac_last_try; then
  39557. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  39558. + else
  39559. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39560. + fi
  39561. +done
  39562. -# Do we need a version for libraries?
  39563. -need_version=$need_version
  39564. +# For the awk script, D is an array of macro values keyed by name,
  39565. +# likewise P contains macro parameters if any. Preserve backslash
  39566. +# newline sequences.
  39567. -# Whether dlopen is supported.
  39568. -dlopen_support=$enable_dlopen
  39569. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  39570. +sed -n '
  39571. +s/.\{148\}/&'"$ac_delim"'/g
  39572. +t rset
  39573. +:rset
  39574. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  39575. +t def
  39576. +d
  39577. +:def
  39578. +s/\\$//
  39579. +t bsnl
  39580. +s/["\\]/\\&/g
  39581. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39582. +D["\1"]=" \3"/p
  39583. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  39584. +d
  39585. +:bsnl
  39586. +s/["\\]/\\&/g
  39587. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39588. +D["\1"]=" \3\\\\\\n"\\/p
  39589. +t cont
  39590. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  39591. +t cont
  39592. +d
  39593. +:cont
  39594. +n
  39595. +s/.\{148\}/&'"$ac_delim"'/g
  39596. +t clear
  39597. +:clear
  39598. +s/\\$//
  39599. +t bsnlc
  39600. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  39601. +d
  39602. +:bsnlc
  39603. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  39604. +b cont
  39605. +' <confdefs.h | sed '
  39606. +s/'"$ac_delim"'/"\\\
  39607. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  39608. +
  39609. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39610. + for (key in D) D_is_set[key] = 1
  39611. + FS = ""
  39612. +}
  39613. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  39614. + line = \$ 0
  39615. + split(line, arg, " ")
  39616. + if (arg[1] == "#") {
  39617. + defundef = arg[2]
  39618. + mac1 = arg[3]
  39619. + } else {
  39620. + defundef = substr(arg[1], 2)
  39621. + mac1 = arg[2]
  39622. + }
  39623. + split(mac1, mac2, "(") #)
  39624. + macro = mac2[1]
  39625. + prefix = substr(line, 1, index(line, defundef) - 1)
  39626. + if (D_is_set[macro]) {
  39627. + # Preserve the white space surrounding the "#".
  39628. + print prefix "define", macro P[macro] D[macro]
  39629. + next
  39630. + } else {
  39631. + # Replace #undef with comments. This is necessary, for example,
  39632. + # in the case of _POSIX_SOURCE, which is predefined and required
  39633. + # on some systems where configure will not decide to define it.
  39634. + if (defundef == "undef") {
  39635. + print "/*", prefix defundef, macro, "*/"
  39636. + next
  39637. + }
  39638. + }
  39639. +}
  39640. +{ print }
  39641. +_ACAWK
  39642. +_ACEOF
  39643. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39644. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  39645. +fi # test -n "$CONFIG_HEADERS"
  39646. -# Whether dlopen of programs is supported.
  39647. -dlopen_self=$enable_dlopen_self
  39648. -# Whether dlopen of statically linked programs is supported.
  39649. -dlopen_self_static=$enable_dlopen_self_static
  39650. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  39651. +shift
  39652. +for ac_tag
  39653. +do
  39654. + case $ac_tag in
  39655. + :[FHLC]) ac_mode=$ac_tag; continue;;
  39656. + esac
  39657. + case $ac_mode$ac_tag in
  39658. + :[FHL]*:*);;
  39659. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  39660. + :[FH]-) ac_tag=-:-;;
  39661. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  39662. + esac
  39663. + ac_save_IFS=$IFS
  39664. + IFS=:
  39665. + set x $ac_tag
  39666. + IFS=$ac_save_IFS
  39667. + shift
  39668. + ac_file=$1
  39669. + shift
  39670. -# Compiler flag to prevent dynamic linking.
  39671. -link_static_flag=$lt_lt_prog_compiler_static_F77
  39672. + case $ac_mode in
  39673. + :L) ac_source=$1;;
  39674. + :[FH])
  39675. + ac_file_inputs=
  39676. + for ac_f
  39677. + do
  39678. + case $ac_f in
  39679. + -) ac_f="$tmp/stdin";;
  39680. + *) # Look for the file first in the build tree, then in the source tree
  39681. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  39682. + # because $ac_f cannot contain `:'.
  39683. + test -f "$ac_f" ||
  39684. + case $ac_f in
  39685. + [\\/$]*) false;;
  39686. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  39687. + esac ||
  39688. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  39689. + esac
  39690. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  39691. + as_fn_append ac_file_inputs " '$ac_f'"
  39692. + done
  39693. -# Compiler flag to turn off builtin functions.
  39694. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  39695. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  39696. + # use $as_me), people would be surprised to read:
  39697. + # /* config.h. Generated by config.status. */
  39698. + configure_input='Generated from '`
  39699. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  39700. + `' by configure.'
  39701. + if test x"$ac_file" != x-; then
  39702. + configure_input="$ac_file. $configure_input"
  39703. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  39704. +$as_echo "$as_me: creating $ac_file" >&6;}
  39705. + fi
  39706. + # Neutralize special characters interpreted by sed in replacement strings.
  39707. + case $configure_input in #(
  39708. + *\&* | *\|* | *\\* )
  39709. + ac_sed_conf_input=`$as_echo "$configure_input" |
  39710. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  39711. + *) ac_sed_conf_input=$configure_input;;
  39712. + esac
  39713. -# Compiler flag to allow reflexive dlopens.
  39714. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  39715. + case $ac_tag in
  39716. + *:-:* | *:-) cat >"$tmp/stdin" \
  39717. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  39718. + esac
  39719. + ;;
  39720. + esac
  39721. -# Compiler flag to generate shared objects directly from archives.
  39722. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  39723. + ac_dir=`$as_dirname -- "$ac_file" ||
  39724. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39725. + X"$ac_file" : 'X\(//\)[^/]' \| \
  39726. + X"$ac_file" : 'X\(//\)$' \| \
  39727. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  39728. +$as_echo X"$ac_file" |
  39729. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39730. + s//\1/
  39731. + q
  39732. + }
  39733. + /^X\(\/\/\)[^/].*/{
  39734. + s//\1/
  39735. + q
  39736. + }
  39737. + /^X\(\/\/\)$/{
  39738. + s//\1/
  39739. + q
  39740. + }
  39741. + /^X\(\/\).*/{
  39742. + s//\1/
  39743. + q
  39744. + }
  39745. + s/.*/./; q'`
  39746. + as_dir="$ac_dir"; as_fn_mkdir_p
  39747. + ac_builddir=.
  39748. -# Compiler flag to generate thread-safe objects.
  39749. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  39750. +case "$ac_dir" in
  39751. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39752. +*)
  39753. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  39754. + # A ".." for each directory in $ac_dir_suffix.
  39755. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  39756. + case $ac_top_builddir_sub in
  39757. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39758. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  39759. + esac ;;
  39760. +esac
  39761. +ac_abs_top_builddir=$ac_pwd
  39762. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  39763. +# for backward compatibility:
  39764. +ac_top_builddir=$ac_top_build_prefix
  39765. -# Library versioning type.
  39766. -version_type=$version_type
  39767. -
  39768. -# Format of library name prefix.
  39769. -libname_spec=$lt_libname_spec
  39770. -
  39771. -# List of archive names. First name is the real one, the rest are links.
  39772. -# The last name is the one that the linker finds with -lNAME.
  39773. -library_names_spec=$lt_library_names_spec
  39774. -
  39775. -# The coded name of the library, if different from the real name.
  39776. -soname_spec=$lt_soname_spec
  39777. -
  39778. -# Commands used to build and install an old-style archive.
  39779. -RANLIB=$lt_RANLIB
  39780. -old_archive_cmds=$lt_old_archive_cmds_F77
  39781. -old_postinstall_cmds=$lt_old_postinstall_cmds
  39782. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39783. -
  39784. -# Create an old-style archive from a shared archive.
  39785. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  39786. -
  39787. -# Create a temporary old-style archive to link instead of a shared archive.
  39788. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  39789. -
  39790. -# Commands used to build and install a shared archive.
  39791. -archive_cmds=$lt_archive_cmds_F77
  39792. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  39793. -postinstall_cmds=$lt_postinstall_cmds
  39794. -postuninstall_cmds=$lt_postuninstall_cmds
  39795. -
  39796. -# Commands used to build a loadable module (assumed same as above if empty)
  39797. -module_cmds=$lt_module_cmds_F77
  39798. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  39799. -
  39800. -# Commands to strip libraries.
  39801. -old_striplib=$lt_old_striplib
  39802. -striplib=$lt_striplib
  39803. -
  39804. -# Dependencies to place before the objects being linked to create a
  39805. -# shared library.
  39806. -predep_objects=$lt_predep_objects_F77
  39807. -
  39808. -# Dependencies to place after the objects being linked to create a
  39809. -# shared library.
  39810. -postdep_objects=$lt_postdep_objects_F77
  39811. -
  39812. -# Dependencies to place before the objects being linked to create a
  39813. -# shared library.
  39814. -predeps=$lt_predeps_F77
  39815. -
  39816. -# Dependencies to place after the objects being linked to create a
  39817. -# shared library.
  39818. -postdeps=$lt_postdeps_F77
  39819. -
  39820. -# The library search path used internally by the compiler when linking
  39821. -# a shared library.
  39822. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  39823. -
  39824. -# Method to check whether dependent libraries are shared objects.
  39825. -deplibs_check_method=$lt_deplibs_check_method
  39826. -
  39827. -# Command to use when deplibs_check_method == file_magic.
  39828. -file_magic_cmd=$lt_file_magic_cmd
  39829. -
  39830. -# Flag that allows shared libraries with undefined symbols to be built.
  39831. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  39832. -
  39833. -# Flag that forces no undefined symbols.
  39834. -no_undefined_flag=$lt_no_undefined_flag_F77
  39835. -
  39836. -# Commands used to finish a libtool library installation in a directory.
  39837. -finish_cmds=$lt_finish_cmds
  39838. -
  39839. -# Same as above, but a single script fragment to be evaled but not shown.
  39840. -finish_eval=$lt_finish_eval
  39841. -
  39842. -# Take the output of nm and produce a listing of raw symbols and C names.
  39843. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39844. -
  39845. -# Transform the output of nm in a proper C declaration
  39846. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39847. -
  39848. -# Transform the output of nm in a C name address pair
  39849. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39850. -
  39851. -# This is the shared library runtime path variable.
  39852. -runpath_var=$runpath_var
  39853. -
  39854. -# This is the shared library path variable.
  39855. -shlibpath_var=$shlibpath_var
  39856. -
  39857. -# Is shlibpath searched before the hard-coded library search path?
  39858. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  39859. -
  39860. -# How to hardcode a shared library path into an executable.
  39861. -hardcode_action=$hardcode_action_F77
  39862. -
  39863. -# Whether we should hardcode library paths into libraries.
  39864. -hardcode_into_libs=$hardcode_into_libs
  39865. -
  39866. -# Flag to hardcode \$libdir into a binary during linking.
  39867. -# This must work even if \$libdir does not exist.
  39868. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  39869. -
  39870. -# If ld is used when linking, flag to hardcode \$libdir into
  39871. -# a binary during linking. This must work even if \$libdir does
  39872. -# not exist.
  39873. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  39874. -
  39875. -# Whether we need a single -rpath flag with a separated argument.
  39876. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  39877. -
  39878. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  39879. -# resulting binary.
  39880. -hardcode_direct=$hardcode_direct_F77
  39881. -
  39882. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  39883. -# resulting binary.
  39884. -hardcode_minus_L=$hardcode_minus_L_F77
  39885. -
  39886. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  39887. -# the resulting binary.
  39888. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  39889. -
  39890. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  39891. -# and all subsequent libraries and executables linked against it.
  39892. -hardcode_automatic=$hardcode_automatic_F77
  39893. -
  39894. -# Variables whose values should be saved in libtool wrapper scripts and
  39895. -# restored at relink time.
  39896. -variables_saved_for_relink="$variables_saved_for_relink"
  39897. -
  39898. -# Whether libtool must link a program against all its dependency libraries.
  39899. -link_all_deplibs=$link_all_deplibs_F77
  39900. -
  39901. -# Compile-time system search path for libraries
  39902. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  39903. -
  39904. -# Run-time system search path for libraries
  39905. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  39906. -
  39907. -# Fix the shell variable \$srcfile for the compiler.
  39908. -fix_srcfile_path="$fix_srcfile_path_F77"
  39909. -
  39910. -# Set to yes if exported symbols are required.
  39911. -always_export_symbols=$always_export_symbols_F77
  39912. -
  39913. -# The commands to list exported symbols.
  39914. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  39915. -
  39916. -# The commands to extract the exported symbol list from a shared archive.
  39917. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  39918. -
  39919. -# Symbols that should not be listed in the preloaded symbols.
  39920. -exclude_expsyms=$lt_exclude_expsyms_F77
  39921. -
  39922. -# Symbols that must always be exported.
  39923. -include_expsyms=$lt_include_expsyms_F77
  39924. -
  39925. -# ### END LIBTOOL TAG CONFIG: $tagname
  39926. -
  39927. -__EOF__
  39928. -
  39929. -
  39930. -else
  39931. - # If there is no Makefile yet, we rely on a make rule to execute
  39932. - # `config.status --recheck' to rerun these tests and create the
  39933. - # libtool script then.
  39934. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  39935. - if test -f "$ltmain_in"; then
  39936. - test -f Makefile && make "$ltmain"
  39937. - fi
  39938. -fi
  39939. -
  39940. -
  39941. -ac_ext=c
  39942. -ac_cpp='$CPP $CPPFLAGS'
  39943. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39944. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39945. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39946. -
  39947. -CC="$lt_save_CC"
  39948. -
  39949. - else
  39950. - tagname=""
  39951. - fi
  39952. - ;;
  39953. -
  39954. - GCJ)
  39955. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  39956. -
  39957. -
  39958. -# Source file extension for Java test sources.
  39959. -ac_ext=java
  39960. -
  39961. -# Object file extension for compiled Java test sources.
  39962. -objext=o
  39963. -objext_GCJ=$objext
  39964. -
  39965. -# Code to be used in simple compile tests
  39966. -lt_simple_compile_test_code="class foo {}\n"
  39967. -
  39968. -# Code to be used in simple link tests
  39969. -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  39970. -
  39971. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  39972. -
  39973. -# If no C compiler was specified, use CC.
  39974. -LTCC=${LTCC-"$CC"}
  39975. -
  39976. -# Allow CC to be a program name with arguments.
  39977. -compiler=$CC
  39978. -
  39979. -
  39980. -# Allow CC to be a program name with arguments.
  39981. -lt_save_CC="$CC"
  39982. -CC=${GCJ-"gcj"}
  39983. -compiler=$CC
  39984. -compiler_GCJ=$CC
  39985. -
  39986. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  39987. -archive_cmds_need_lc_GCJ=no
  39988. -
  39989. -
  39990. -lt_prog_compiler_no_builtin_flag_GCJ=
  39991. -
  39992. -if test "$GCC" = yes; then
  39993. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  39994. -
  39995. -
  39996. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  39997. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  39998. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  39999. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40000. -else
  40001. - lt_cv_prog_compiler_rtti_exceptions=no
  40002. - ac_outfile=conftest.$ac_objext
  40003. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40004. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  40005. - # Insert the option either (1) after the last *FLAGS variable, or
  40006. - # (2) before a word containing "conftest.", or (3) at the end.
  40007. - # Note that $ac_compile itself does not contain backslashes and begins
  40008. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  40009. - # The option is referenced via a variable to avoid confusing sed.
  40010. - lt_compile=`echo "$ac_compile" | $SED \
  40011. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  40012. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40013. - -e 's:$: $lt_compiler_flag:'`
  40014. - (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
  40015. - (eval "$lt_compile" 2>conftest.err)
  40016. - ac_status=$?
  40017. - cat conftest.err >&5
  40018. - echo "$as_me:17351: \$? = $ac_status" >&5
  40019. - if (exit $ac_status) && test -s "$ac_outfile"; then
  40020. - # The compiler can only warn and ignore the option if not recognized
  40021. - # So say no if there are warnings
  40022. - if test ! -s conftest.err; then
  40023. - lt_cv_prog_compiler_rtti_exceptions=yes
  40024. - fi
  40025. - fi
  40026. - $rm conftest*
  40027. -
  40028. -fi
  40029. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  40030. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  40031. -
  40032. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  40033. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  40034. -else
  40035. - :
  40036. -fi
  40037. -
  40038. -fi
  40039. -
  40040. -lt_prog_compiler_wl_GCJ=
  40041. -lt_prog_compiler_pic_GCJ=
  40042. -lt_prog_compiler_static_GCJ=
  40043. -
  40044. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  40045. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  40046. -
  40047. - if test "$GCC" = yes; then
  40048. - lt_prog_compiler_wl_GCJ='-Wl,'
  40049. - lt_prog_compiler_static_GCJ='-static'
  40050. -
  40051. - case $host_os in
  40052. - aix*)
  40053. - # All AIX code is PIC.
  40054. - if test "$host_cpu" = ia64; then
  40055. - # AIX 5 now supports IA64 processor
  40056. - lt_prog_compiler_static_GCJ='-Bstatic'
  40057. - fi
  40058. - ;;
  40059. -
  40060. - amigaos*)
  40061. - # FIXME: we need at least 68020 code to build shared libraries, but
  40062. - # adding the `-m68020' flag to GCC prevents building anything better,
  40063. - # like `-m68040'.
  40064. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  40065. - ;;
  40066. -
  40067. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  40068. - # PIC is the default for these OSes.
  40069. - ;;
  40070. -
  40071. - mingw* | pw32* | os2*)
  40072. - # This hack is so that the source file can tell whether it is being
  40073. - # built for inclusion in a dll (and should export symbols for example).
  40074. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  40075. - ;;
  40076. -
  40077. - darwin* | rhapsody*)
  40078. - # PIC is the default on this platform
  40079. - # Common symbols not allowed in MH_DYLIB files
  40080. - lt_prog_compiler_pic_GCJ='-fno-common'
  40081. - ;;
  40082. -
  40083. - msdosdjgpp*)
  40084. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  40085. - # on systems that don't support them.
  40086. - lt_prog_compiler_can_build_shared_GCJ=no
  40087. - enable_shared=no
  40088. - ;;
  40089. -
  40090. - sysv4*MP*)
  40091. - if test -d /usr/nec; then
  40092. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  40093. - fi
  40094. - ;;
  40095. -
  40096. - hpux*)
  40097. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  40098. - # not for PA HP-UX.
  40099. - case "$host_cpu" in
  40100. - hppa*64*|ia64*)
  40101. - # +Z the default
  40102. - ;;
  40103. - *)
  40104. - lt_prog_compiler_pic_GCJ='-fPIC'
  40105. - ;;
  40106. - esac
  40107. - ;;
  40108. -
  40109. - *)
  40110. - lt_prog_compiler_pic_GCJ='-fPIC'
  40111. - ;;
  40112. - esac
  40113. - else
  40114. - # PORTME Check for flag to pass linker flags through the system compiler.
  40115. - case $host_os in
  40116. - aix*)
  40117. - lt_prog_compiler_wl_GCJ='-Wl,'
  40118. - if test "$host_cpu" = ia64; then
  40119. - # AIX 5 now supports IA64 processor
  40120. - lt_prog_compiler_static_GCJ='-Bstatic'
  40121. - else
  40122. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  40123. - fi
  40124. - ;;
  40125. - darwin*)
  40126. - # PIC is the default on this platform
  40127. - # Common symbols not allowed in MH_DYLIB files
  40128. - case "$cc_basename" in
  40129. - xlc*)
  40130. - lt_prog_compiler_pic_GCJ='-qnocommon'
  40131. - lt_prog_compiler_wl_GCJ='-Wl,'
  40132. - ;;
  40133. - esac
  40134. - ;;
  40135. -
  40136. - mingw* | pw32* | os2*)
  40137. - # This hack is so that the source file can tell whether it is being
  40138. - # built for inclusion in a dll (and should export symbols for example).
  40139. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  40140. - ;;
  40141. -
  40142. - hpux9* | hpux10* | hpux11*)
  40143. - lt_prog_compiler_wl_GCJ='-Wl,'
  40144. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  40145. - # not for PA HP-UX.
  40146. - case "$host_cpu" in
  40147. - hppa*64*|ia64*)
  40148. - # +Z the default
  40149. - ;;
  40150. - *)
  40151. - lt_prog_compiler_pic_GCJ='+Z'
  40152. - ;;
  40153. - esac
  40154. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  40155. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  40156. - ;;
  40157. -
  40158. - irix5* | irix6* | nonstopux*)
  40159. - lt_prog_compiler_wl_GCJ='-Wl,'
  40160. - # PIC (with -KPIC) is the default.
  40161. - lt_prog_compiler_static_GCJ='-non_shared'
  40162. - ;;
  40163. -
  40164. - newsos6)
  40165. - lt_prog_compiler_pic_GCJ='-KPIC'
  40166. - lt_prog_compiler_static_GCJ='-Bstatic'
  40167. - ;;
  40168. -
  40169. - linux*)
  40170. - case $CC in
  40171. - icc* | ecc*)
  40172. - lt_prog_compiler_wl_GCJ='-Wl,'
  40173. - lt_prog_compiler_pic_GCJ='-KPIC'
  40174. - lt_prog_compiler_static_GCJ='-static'
  40175. - ;;
  40176. - ccc*)
  40177. - lt_prog_compiler_wl_GCJ='-Wl,'
  40178. - # All Alpha code is PIC.
  40179. - lt_prog_compiler_static_GCJ='-non_shared'
  40180. - ;;
  40181. - esac
  40182. - ;;
  40183. -
  40184. - osf3* | osf4* | osf5*)
  40185. - lt_prog_compiler_wl_GCJ='-Wl,'
  40186. - # All OSF/1 code is PIC.
  40187. - lt_prog_compiler_static_GCJ='-non_shared'
  40188. - ;;
  40189. -
  40190. - sco3.2v5*)
  40191. - lt_prog_compiler_pic_GCJ='-Kpic'
  40192. - lt_prog_compiler_static_GCJ='-dn'
  40193. - ;;
  40194. -
  40195. - solaris*)
  40196. - lt_prog_compiler_wl_GCJ='-Wl,'
  40197. - lt_prog_compiler_pic_GCJ='-KPIC'
  40198. - lt_prog_compiler_static_GCJ='-Bstatic'
  40199. - ;;
  40200. -
  40201. - sunos4*)
  40202. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  40203. - lt_prog_compiler_pic_GCJ='-PIC'
  40204. - lt_prog_compiler_static_GCJ='-Bstatic'
  40205. - ;;
  40206. -
  40207. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  40208. - lt_prog_compiler_wl_GCJ='-Wl,'
  40209. - lt_prog_compiler_pic_GCJ='-KPIC'
  40210. - lt_prog_compiler_static_GCJ='-Bstatic'
  40211. - ;;
  40212. -
  40213. - sysv4*MP*)
  40214. - if test -d /usr/nec ;then
  40215. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  40216. - lt_prog_compiler_static_GCJ='-Bstatic'
  40217. - fi
  40218. - ;;
  40219. -
  40220. - uts4*)
  40221. - lt_prog_compiler_pic_GCJ='-pic'
  40222. - lt_prog_compiler_static_GCJ='-Bstatic'
  40223. - ;;
  40224. -
  40225. - *)
  40226. - lt_prog_compiler_can_build_shared_GCJ=no
  40227. - ;;
  40228. - esac
  40229. - fi
  40230. -
  40231. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  40232. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  40233. -
  40234. -#
  40235. -# Check to make sure the PIC flag actually works.
  40236. -#
  40237. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  40238. -
  40239. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  40240. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  40241. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  40242. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40243. -else
  40244. - lt_prog_compiler_pic_works_GCJ=no
  40245. - ac_outfile=conftest.$ac_objext
  40246. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40247. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  40248. - # Insert the option either (1) after the last *FLAGS variable, or
  40249. - # (2) before a word containing "conftest.", or (3) at the end.
  40250. - # Note that $ac_compile itself does not contain backslashes and begins
  40251. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  40252. - # The option is referenced via a variable to avoid confusing sed.
  40253. - lt_compile=`echo "$ac_compile" | $SED \
  40254. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  40255. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40256. - -e 's:$: $lt_compiler_flag:'`
  40257. - (eval echo "\"\$as_me:17590: $lt_compile\"" >&5)
  40258. - (eval "$lt_compile" 2>conftest.err)
  40259. - ac_status=$?
  40260. - cat conftest.err >&5
  40261. - echo "$as_me:17594: \$? = $ac_status" >&5
  40262. - if (exit $ac_status) && test -s "$ac_outfile"; then
  40263. - # The compiler can only warn and ignore the option if not recognized
  40264. - # So say no if there are warnings
  40265. - if test ! -s conftest.err; then
  40266. - lt_prog_compiler_pic_works_GCJ=yes
  40267. - fi
  40268. - fi
  40269. - $rm conftest*
  40270. -
  40271. -fi
  40272. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  40273. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  40274. -
  40275. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  40276. - case $lt_prog_compiler_pic_GCJ in
  40277. - "" | " "*) ;;
  40278. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  40279. - esac
  40280. -else
  40281. - lt_prog_compiler_pic_GCJ=
  40282. - lt_prog_compiler_can_build_shared_GCJ=no
  40283. -fi
  40284. -
  40285. -fi
  40286. -case "$host_os" in
  40287. - # For platforms which do not support PIC, -DPIC is meaningless:
  40288. - *djgpp*)
  40289. - lt_prog_compiler_pic_GCJ=
  40290. - ;;
  40291. - *)
  40292. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  40293. - ;;
  40294. -esac
  40295. -
  40296. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  40297. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  40298. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  40299. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40300. -else
  40301. - lt_cv_prog_compiler_c_o_GCJ=no
  40302. - $rm -r conftest 2>/dev/null
  40303. - mkdir conftest
  40304. - cd conftest
  40305. - mkdir out
  40306. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40307. -
  40308. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  40309. - # Insert the option either (1) after the last *FLAGS variable, or
  40310. - # (2) before a word containing "conftest.", or (3) at the end.
  40311. - # Note that $ac_compile itself does not contain backslashes and begins
  40312. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  40313. - lt_compile=`echo "$ac_compile" | $SED \
  40314. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  40315. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40316. - -e 's:$: $lt_compiler_flag:'`
  40317. - (eval echo "\"\$as_me:17650: $lt_compile\"" >&5)
  40318. - (eval "$lt_compile" 2>out/conftest.err)
  40319. - ac_status=$?
  40320. - cat out/conftest.err >&5
  40321. - echo "$as_me:17654: \$? = $ac_status" >&5
  40322. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  40323. - then
  40324. - # The compiler can only warn and ignore the option if not recognized
  40325. - # So say no if there are warnings
  40326. - if test ! -s out/conftest.err; then
  40327. - lt_cv_prog_compiler_c_o_GCJ=yes
  40328. - fi
  40329. - fi
  40330. - chmod u+w .
  40331. - $rm conftest*
  40332. - # SGI C++ compiler will create directory out/ii_files/ for
  40333. - # template instantiation
  40334. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  40335. - $rm out/* && rmdir out
  40336. - cd ..
  40337. - rmdir conftest
  40338. - $rm conftest*
  40339. -
  40340. -fi
  40341. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  40342. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  40343. -
  40344. -
  40345. -hard_links="nottested"
  40346. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  40347. - # do not overwrite the value of need_locks provided by the user
  40348. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  40349. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  40350. - hard_links=yes
  40351. - $rm conftest*
  40352. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  40353. - touch conftest.a
  40354. - ln conftest.a conftest.b 2>&5 || hard_links=no
  40355. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  40356. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  40357. -echo "${ECHO_T}$hard_links" >&6; }
  40358. - if test "$hard_links" = no; then
  40359. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  40360. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  40361. - need_locks=warn
  40362. - fi
  40363. -else
  40364. - need_locks=no
  40365. -fi
  40366. -
  40367. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  40368. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  40369. -
  40370. - runpath_var=
  40371. - allow_undefined_flag_GCJ=
  40372. - enable_shared_with_static_runtimes_GCJ=no
  40373. - archive_cmds_GCJ=
  40374. - archive_expsym_cmds_GCJ=
  40375. - old_archive_From_new_cmds_GCJ=
  40376. - old_archive_from_expsyms_cmds_GCJ=
  40377. - export_dynamic_flag_spec_GCJ=
  40378. - whole_archive_flag_spec_GCJ=
  40379. - thread_safe_flag_spec_GCJ=
  40380. - hardcode_libdir_flag_spec_GCJ=
  40381. - hardcode_libdir_flag_spec_ld_GCJ=
  40382. - hardcode_libdir_separator_GCJ=
  40383. - hardcode_direct_GCJ=no
  40384. - hardcode_minus_L_GCJ=no
  40385. - hardcode_shlibpath_var_GCJ=unsupported
  40386. - link_all_deplibs_GCJ=unknown
  40387. - hardcode_automatic_GCJ=no
  40388. - module_cmds_GCJ=
  40389. - module_expsym_cmds_GCJ=
  40390. - always_export_symbols_GCJ=no
  40391. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  40392. - # include_expsyms should be a list of space-separated symbols to be *always*
  40393. - # included in the symbol list
  40394. - include_expsyms_GCJ=
  40395. - # exclude_expsyms can be an extended regexp of symbols to exclude
  40396. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  40397. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  40398. - # as well as any symbol that contains `d'.
  40399. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  40400. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  40401. - # platforms (ab)use it in PIC code, but their linkers get confused if
  40402. - # the symbol is explicitly referenced. Since portable code cannot
  40403. - # rely on this symbol name, it's probably fine to never include it in
  40404. - # preloaded symbol tables.
  40405. - extract_expsyms_cmds=
  40406. -
  40407. - case $host_os in
  40408. - cygwin* | mingw* | pw32*)
  40409. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  40410. - # When not using gcc, we currently assume that we are using
  40411. - # Microsoft Visual C++.
  40412. - if test "$GCC" != yes; then
  40413. - with_gnu_ld=no
  40414. - fi
  40415. - ;;
  40416. - openbsd*)
  40417. - with_gnu_ld=no
  40418. - ;;
  40419. - esac
  40420. -
  40421. - ld_shlibs_GCJ=yes
  40422. - if test "$with_gnu_ld" = yes; then
  40423. - # If archive_cmds runs LD, not CC, wlarc should be empty
  40424. - wlarc='${wl}'
  40425. -
  40426. - # See if GNU ld supports shared libraries.
  40427. - case $host_os in
  40428. - aix3* | aix4* | aix5*)
  40429. - # On AIX/PPC, the GNU linker is very broken
  40430. - if test "$host_cpu" != ia64; then
  40431. - ld_shlibs_GCJ=no
  40432. - cat <<EOF 1>&2
  40433. -
  40434. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  40435. -*** to be unable to reliably create shared libraries on AIX.
  40436. -*** Therefore, libtool is disabling shared libraries support. If you
  40437. -*** really care for shared libraries, you may want to modify your PATH
  40438. -*** so that a non-GNU linker is found, and then restart.
  40439. -
  40440. -EOF
  40441. - fi
  40442. - ;;
  40443. -
  40444. - amigaos*)
  40445. - 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)'
  40446. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40447. - hardcode_minus_L_GCJ=yes
  40448. -
  40449. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  40450. - # that the semantics of dynamic libraries on AmigaOS, at least up
  40451. - # to version 4, is to share data among multiple programs linked
  40452. - # with the same dynamic library. Since this doesn't match the
  40453. - # behavior of shared libraries on other platforms, we can't use
  40454. - # them.
  40455. - ld_shlibs_GCJ=no
  40456. - ;;
  40457. -
  40458. - beos*)
  40459. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  40460. - allow_undefined_flag_GCJ=unsupported
  40461. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  40462. - # support --undefined. This deserves some investigation. FIXME
  40463. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40464. - else
  40465. - ld_shlibs_GCJ=no
  40466. - fi
  40467. - ;;
  40468. -
  40469. - cygwin* | mingw* | pw32*)
  40470. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  40471. - # as there is no search path for DLLs.
  40472. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40473. - allow_undefined_flag_GCJ=unsupported
  40474. - always_export_symbols_GCJ=no
  40475. - enable_shared_with_static_runtimes_GCJ=yes
  40476. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  40477. -
  40478. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  40479. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  40480. - # If the export-symbols file already is a .def file (1st line
  40481. - # is EXPORTS), use it as is; otherwise, prepend...
  40482. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  40483. - cp $export_symbols $output_objdir/$soname.def;
  40484. - else
  40485. - echo EXPORTS > $output_objdir/$soname.def;
  40486. - cat $export_symbols >> $output_objdir/$soname.def;
  40487. - fi~
  40488. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  40489. - else
  40490. - ld_shlibs=no
  40491. - fi
  40492. - ;;
  40493. -
  40494. - netbsd*)
  40495. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  40496. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  40497. - wlarc=
  40498. - else
  40499. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40500. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40501. - fi
  40502. - ;;
  40503. -
  40504. - solaris* | sysv5*)
  40505. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  40506. - ld_shlibs_GCJ=no
  40507. - cat <<EOF 1>&2
  40508. -
  40509. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  40510. -*** create shared libraries on Solaris systems. Therefore, libtool
  40511. -*** is disabling shared libraries support. We urge you to upgrade GNU
  40512. -*** binutils to release 2.9.1 or newer. Another option is to modify
  40513. -*** your PATH or compiler configuration so that the native linker is
  40514. -*** used, and then restart.
  40515. -
  40516. -EOF
  40517. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  40518. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40519. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40520. - else
  40521. - ld_shlibs_GCJ=no
  40522. - fi
  40523. - ;;
  40524. -
  40525. - sunos4*)
  40526. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  40527. - wlarc=
  40528. - hardcode_direct_GCJ=yes
  40529. - hardcode_shlibpath_var_GCJ=no
  40530. - ;;
  40531. -
  40532. - linux*)
  40533. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  40534. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40535. - archive_cmds_GCJ="$tmp_archive_cmds"
  40536. - supports_anon_versioning=no
  40537. - case `$LD -v 2>/dev/null` in
  40538. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  40539. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  40540. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  40541. - *\ 2.11.*) ;; # other 2.11 versions
  40542. - *) supports_anon_versioning=yes ;;
  40543. - esac
  40544. - if test $supports_anon_versioning = yes; then
  40545. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  40546. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  40547. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  40548. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  40549. - else
  40550. - archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  40551. - fi
  40552. - else
  40553. - ld_shlibs_GCJ=no
  40554. - fi
  40555. - ;;
  40556. -
  40557. - *)
  40558. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  40559. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40560. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  40561. - else
  40562. - ld_shlibs_GCJ=no
  40563. - fi
  40564. - ;;
  40565. - esac
  40566. -
  40567. - if test "$ld_shlibs_GCJ" = yes; then
  40568. - runpath_var=LD_RUN_PATH
  40569. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  40570. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  40571. - # ancient GNU ld didn't support --whole-archive et. al.
  40572. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  40573. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  40574. - else
  40575. - whole_archive_flag_spec_GCJ=
  40576. - fi
  40577. - fi
  40578. - else
  40579. - # PORTME fill in a description of your system's linker (not GNU ld)
  40580. - case $host_os in
  40581. - aix3*)
  40582. - allow_undefined_flag_GCJ=unsupported
  40583. - always_export_symbols_GCJ=yes
  40584. - 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'
  40585. - # Note: this linker hardcodes the directories in LIBPATH if there
  40586. - # are no directories specified by -L.
  40587. - hardcode_minus_L_GCJ=yes
  40588. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  40589. - # Neither direct hardcoding nor static linking is supported with a
  40590. - # broken collect2.
  40591. - hardcode_direct_GCJ=unsupported
  40592. - fi
  40593. - ;;
  40594. -
  40595. - aix4* | aix5*)
  40596. - if test "$host_cpu" = ia64; then
  40597. - # On IA64, the linker does run time linking by default, so we don't
  40598. - # have to do anything special.
  40599. - aix_use_runtimelinking=no
  40600. - exp_sym_flag='-Bexport'
  40601. - no_entry_flag=""
  40602. - else
  40603. - # If we're using GNU nm, then we don't want the "-C" option.
  40604. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  40605. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  40606. - 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'
  40607. - else
  40608. - 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'
  40609. - fi
  40610. - aix_use_runtimelinking=no
  40611. -
  40612. - # Test if we are trying to use run time linking or normal
  40613. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  40614. - # need to do runtime linking.
  40615. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  40616. - for ld_flag in $LDFLAGS; do
  40617. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  40618. - aix_use_runtimelinking=yes
  40619. - break
  40620. - fi
  40621. - done
  40622. - esac
  40623. -
  40624. - exp_sym_flag='-bexport'
  40625. - no_entry_flag='-bnoentry'
  40626. - fi
  40627. -
  40628. - # When large executables or shared objects are built, AIX ld can
  40629. - # have problems creating the table of contents. If linking a library
  40630. - # or program results in "error TOC overflow" add -mminimal-toc to
  40631. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  40632. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  40633. -
  40634. - archive_cmds_GCJ=''
  40635. - hardcode_direct_GCJ=yes
  40636. - hardcode_libdir_separator_GCJ=':'
  40637. - link_all_deplibs_GCJ=yes
  40638. -
  40639. - if test "$GCC" = yes; then
  40640. - case $host_os in aix4.012|aix4.012.*)
  40641. - # We only want to do this on AIX 4.2 and lower, the check
  40642. - # below for broken collect2 doesn't work under 4.3+
  40643. - collect2name=`${CC} -print-prog-name=collect2`
  40644. - if test -f "$collect2name" && \
  40645. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  40646. - then
  40647. - # We have reworked collect2
  40648. - hardcode_direct_GCJ=yes
  40649. - else
  40650. - # We have old collect2
  40651. - hardcode_direct_GCJ=unsupported
  40652. - # It fails to find uninstalled libraries when the uninstalled
  40653. - # path is not listed in the libpath. Setting hardcode_minus_L
  40654. - # to unsupported forces relinking
  40655. - hardcode_minus_L_GCJ=yes
  40656. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40657. - hardcode_libdir_separator_GCJ=
  40658. - fi
  40659. - esac
  40660. - shared_flag='-shared'
  40661. - else
  40662. - # not using gcc
  40663. - if test "$host_cpu" = ia64; then
  40664. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  40665. - # chokes on -Wl,-G. The following line is correct:
  40666. - shared_flag='-G'
  40667. - else
  40668. - if test "$aix_use_runtimelinking" = yes; then
  40669. - shared_flag='${wl}-G'
  40670. - else
  40671. - shared_flag='${wl}-bM:SRE'
  40672. - fi
  40673. - fi
  40674. - fi
  40675. -
  40676. - # It seems that -bexpall does not export symbols beginning with
  40677. - # underscore (_), so it is better to generate a list of symbols to export.
  40678. - always_export_symbols_GCJ=yes
  40679. - if test "$aix_use_runtimelinking" = yes; then
  40680. - # Warning - without using the other runtime loading flags (-brtl),
  40681. - # -berok will link without error, but may produce a broken library.
  40682. - allow_undefined_flag_GCJ='-berok'
  40683. - # Determine the default libpath from the value encoded in an empty executable.
  40684. - cat >conftest.$ac_ext <<_ACEOF
  40685. -/* confdefs.h. */
  40686. -_ACEOF
  40687. -cat confdefs.h >>conftest.$ac_ext
  40688. -cat >>conftest.$ac_ext <<_ACEOF
  40689. -/* end confdefs.h. */
  40690. -
  40691. -int
  40692. -main ()
  40693. -{
  40694. -
  40695. - ;
  40696. - return 0;
  40697. -}
  40698. -_ACEOF
  40699. -rm -f conftest.$ac_objext conftest$ac_exeext
  40700. -if { (ac_try="$ac_link"
  40701. -case "(($ac_try" in
  40702. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40703. - *) ac_try_echo=$ac_try;;
  40704. -esac
  40705. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40706. - (eval "$ac_link") 2>conftest.er1
  40707. - ac_status=$?
  40708. - grep -v '^ *+' conftest.er1 >conftest.err
  40709. - rm -f conftest.er1
  40710. - cat conftest.err >&5
  40711. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40712. - (exit $ac_status); } &&
  40713. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40714. - { (case "(($ac_try" in
  40715. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40716. - *) ac_try_echo=$ac_try;;
  40717. -esac
  40718. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40719. - (eval "$ac_try") 2>&5
  40720. - ac_status=$?
  40721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40722. - (exit $ac_status); }; } &&
  40723. - { ac_try='test -s conftest$ac_exeext'
  40724. - { (case "(($ac_try" in
  40725. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40726. - *) ac_try_echo=$ac_try;;
  40727. -esac
  40728. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40729. - (eval "$ac_try") 2>&5
  40730. - ac_status=$?
  40731. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40732. - (exit $ac_status); }; }; then
  40733. -
  40734. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  40735. -}'`
  40736. -# Check for a 64-bit object if we didn't find anything.
  40737. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  40738. -}'`; fi
  40739. -else
  40740. - echo "$as_me: failed program was:" >&5
  40741. -sed 's/^/| /' conftest.$ac_ext >&5
  40742. -
  40743. -
  40744. -fi
  40745. -
  40746. -rm -f core conftest.err conftest.$ac_objext \
  40747. - conftest$ac_exeext conftest.$ac_ext
  40748. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  40749. -
  40750. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  40751. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  40752. - else
  40753. - if test "$host_cpu" = ia64; then
  40754. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  40755. - allow_undefined_flag_GCJ="-z nodefs"
  40756. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  40757. - else
  40758. - # Determine the default libpath from the value encoded in an empty executable.
  40759. - cat >conftest.$ac_ext <<_ACEOF
  40760. -/* confdefs.h. */
  40761. -_ACEOF
  40762. -cat confdefs.h >>conftest.$ac_ext
  40763. -cat >>conftest.$ac_ext <<_ACEOF
  40764. -/* end confdefs.h. */
  40765. -
  40766. -int
  40767. -main ()
  40768. -{
  40769. -
  40770. - ;
  40771. - return 0;
  40772. -}
  40773. -_ACEOF
  40774. -rm -f conftest.$ac_objext conftest$ac_exeext
  40775. -if { (ac_try="$ac_link"
  40776. -case "(($ac_try" in
  40777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40778. - *) ac_try_echo=$ac_try;;
  40779. -esac
  40780. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40781. - (eval "$ac_link") 2>conftest.er1
  40782. - ac_status=$?
  40783. - grep -v '^ *+' conftest.er1 >conftest.err
  40784. - rm -f conftest.er1
  40785. - cat conftest.err >&5
  40786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40787. - (exit $ac_status); } &&
  40788. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40789. - { (case "(($ac_try" in
  40790. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40791. - *) ac_try_echo=$ac_try;;
  40792. -esac
  40793. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40794. - (eval "$ac_try") 2>&5
  40795. - ac_status=$?
  40796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40797. - (exit $ac_status); }; } &&
  40798. - { ac_try='test -s conftest$ac_exeext'
  40799. - { (case "(($ac_try" in
  40800. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40801. - *) ac_try_echo=$ac_try;;
  40802. -esac
  40803. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40804. - (eval "$ac_try") 2>&5
  40805. - ac_status=$?
  40806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40807. - (exit $ac_status); }; }; then
  40808. -
  40809. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  40810. -}'`
  40811. -# Check for a 64-bit object if we didn't find anything.
  40812. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  40813. -}'`; fi
  40814. -else
  40815. - echo "$as_me: failed program was:" >&5
  40816. -sed 's/^/| /' conftest.$ac_ext >&5
  40817. -
  40818. -
  40819. -fi
  40820. -
  40821. -rm -f core conftest.err conftest.$ac_objext \
  40822. - conftest$ac_exeext conftest.$ac_ext
  40823. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  40824. -
  40825. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  40826. - # Warning - without using the other run time loading flags,
  40827. - # -berok will link without error, but may produce a broken library.
  40828. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  40829. - allow_undefined_flag_GCJ=' ${wl}-berok'
  40830. - # -bexpall does not export symbols beginning with underscore (_)
  40831. - always_export_symbols_GCJ=yes
  40832. - # Exported symbols can be pulled into shared objects from archives
  40833. - whole_archive_flag_spec_GCJ=' '
  40834. - archive_cmds_need_lc_GCJ=yes
  40835. - # This is similar to how AIX traditionally builds it's shared libraries.
  40836. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  40837. - fi
  40838. - fi
  40839. - ;;
  40840. -
  40841. - amigaos*)
  40842. - 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)'
  40843. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40844. - hardcode_minus_L_GCJ=yes
  40845. - # see comment about different semantics on the GNU ld section
  40846. - ld_shlibs_GCJ=no
  40847. - ;;
  40848. -
  40849. - bsdi[45]*)
  40850. - export_dynamic_flag_spec_GCJ=-rdynamic
  40851. - ;;
  40852. -
  40853. - cygwin* | mingw* | pw32*)
  40854. - # When not using gcc, we currently assume that we are using
  40855. - # Microsoft Visual C++.
  40856. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  40857. - # no search path for DLLs.
  40858. - hardcode_libdir_flag_spec_GCJ=' '
  40859. - allow_undefined_flag_GCJ=unsupported
  40860. - # Tell ltmain to make .lib files, not .a files.
  40861. - libext=lib
  40862. - # Tell ltmain to make .dll files, not .so files.
  40863. - shrext_cmds=".dll"
  40864. - # FIXME: Setting linknames here is a bad hack.
  40865. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  40866. - # The linker will automatically build a .lib file if we build a DLL.
  40867. - old_archive_From_new_cmds_GCJ='true'
  40868. - # FIXME: Should let the user specify the lib program.
  40869. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  40870. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  40871. - enable_shared_with_static_runtimes_GCJ=yes
  40872. - ;;
  40873. -
  40874. - darwin* | rhapsody*)
  40875. - case "$host_os" in
  40876. - rhapsody* | darwin1.[012])
  40877. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  40878. - ;;
  40879. - *) # Darwin 1.3 on
  40880. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  40881. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  40882. - else
  40883. - case ${MACOSX_DEPLOYMENT_TARGET} in
  40884. - 10.[012])
  40885. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  40886. - ;;
  40887. - 10.*)
  40888. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  40889. - ;;
  40890. - esac
  40891. - fi
  40892. - ;;
  40893. - esac
  40894. - archive_cmds_need_lc_GCJ=no
  40895. - hardcode_direct_GCJ=no
  40896. - hardcode_automatic_GCJ=yes
  40897. - hardcode_shlibpath_var_GCJ=unsupported
  40898. - whole_archive_flag_spec_GCJ=''
  40899. - link_all_deplibs_GCJ=yes
  40900. - if test "$GCC" = yes ; then
  40901. - output_verbose_link_cmd='echo'
  40902. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  40903. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  40904. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  40905. - 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}'
  40906. - 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}'
  40907. - else
  40908. - case "$cc_basename" in
  40909. - xlc*)
  40910. - output_verbose_link_cmd='echo'
  40911. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  40912. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  40913. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  40914. - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  40915. - 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}'
  40916. - ;;
  40917. - *)
  40918. - ld_shlibs_GCJ=no
  40919. - ;;
  40920. - esac
  40921. - fi
  40922. - ;;
  40923. -
  40924. - dgux*)
  40925. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  40926. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40927. - hardcode_shlibpath_var_GCJ=no
  40928. - ;;
  40929. -
  40930. - freebsd1*)
  40931. - ld_shlibs_GCJ=no
  40932. - ;;
  40933. -
  40934. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  40935. - # support. Future versions do this automatically, but an explicit c++rt0.o
  40936. - # does not break anything, and helps significantly (at the cost of a little
  40937. - # extra space).
  40938. - freebsd2.2*)
  40939. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  40940. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  40941. - hardcode_direct_GCJ=yes
  40942. - hardcode_shlibpath_var_GCJ=no
  40943. - ;;
  40944. -
  40945. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  40946. - freebsd2*)
  40947. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  40948. - hardcode_direct_GCJ=yes
  40949. - hardcode_minus_L_GCJ=yes
  40950. - hardcode_shlibpath_var_GCJ=no
  40951. - ;;
  40952. -
  40953. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  40954. - freebsd* | kfreebsd*-gnu)
  40955. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  40956. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  40957. - hardcode_direct_GCJ=yes
  40958. - hardcode_shlibpath_var_GCJ=no
  40959. - ;;
  40960. -
  40961. - hpux9*)
  40962. - if test "$GCC" = yes; then
  40963. - 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'
  40964. - else
  40965. - 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'
  40966. - fi
  40967. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  40968. - hardcode_libdir_separator_GCJ=:
  40969. - hardcode_direct_GCJ=yes
  40970. -
  40971. - # hardcode_minus_L: Not really in the search PATH,
  40972. - # but as the default location of the library.
  40973. - hardcode_minus_L_GCJ=yes
  40974. - export_dynamic_flag_spec_GCJ='${wl}-E'
  40975. - ;;
  40976. -
  40977. - hpux10* | hpux11*)
  40978. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  40979. - case "$host_cpu" in
  40980. - hppa*64*|ia64*)
  40981. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40982. - ;;
  40983. - *)
  40984. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  40985. - ;;
  40986. - esac
  40987. - else
  40988. - case "$host_cpu" in
  40989. - hppa*64*|ia64*)
  40990. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  40991. - ;;
  40992. - *)
  40993. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  40994. - ;;
  40995. - esac
  40996. - fi
  40997. - if test "$with_gnu_ld" = no; then
  40998. - case "$host_cpu" in
  40999. - hppa*64*)
  41000. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  41001. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  41002. - hardcode_libdir_separator_GCJ=:
  41003. - hardcode_direct_GCJ=no
  41004. - hardcode_shlibpath_var_GCJ=no
  41005. - ;;
  41006. - ia64*)
  41007. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41008. - hardcode_direct_GCJ=no
  41009. - hardcode_shlibpath_var_GCJ=no
  41010. -
  41011. - # hardcode_minus_L: Not really in the search PATH,
  41012. - # but as the default location of the library.
  41013. - hardcode_minus_L_GCJ=yes
  41014. - ;;
  41015. - *)
  41016. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  41017. - hardcode_libdir_separator_GCJ=:
  41018. - hardcode_direct_GCJ=yes
  41019. - export_dynamic_flag_spec_GCJ='${wl}-E'
  41020. -
  41021. - # hardcode_minus_L: Not really in the search PATH,
  41022. - # but as the default location of the library.
  41023. - hardcode_minus_L_GCJ=yes
  41024. - ;;
  41025. - esac
  41026. - fi
  41027. - ;;
  41028. -
  41029. - irix5* | irix6* | nonstopux*)
  41030. - if test "$GCC" = yes; then
  41031. - 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'
  41032. - else
  41033. - 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'
  41034. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  41035. - fi
  41036. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  41037. - hardcode_libdir_separator_GCJ=:
  41038. - link_all_deplibs_GCJ=yes
  41039. - ;;
  41040. -
  41041. - netbsd*)
  41042. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  41043. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  41044. - else
  41045. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  41046. - fi
  41047. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  41048. - hardcode_direct_GCJ=yes
  41049. - hardcode_shlibpath_var_GCJ=no
  41050. - ;;
  41051. -
  41052. - newsos6)
  41053. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41054. - hardcode_direct_GCJ=yes
  41055. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  41056. - hardcode_libdir_separator_GCJ=:
  41057. - hardcode_shlibpath_var_GCJ=no
  41058. - ;;
  41059. -
  41060. - openbsd*)
  41061. - hardcode_direct_GCJ=yes
  41062. - hardcode_shlibpath_var_GCJ=no
  41063. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  41064. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  41065. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  41066. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  41067. - export_dynamic_flag_spec_GCJ='${wl}-E'
  41068. - else
  41069. - case $host_os in
  41070. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  41071. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41072. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  41073. - ;;
  41074. - *)
  41075. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  41076. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  41077. - ;;
  41078. - esac
  41079. - fi
  41080. - ;;
  41081. -
  41082. - os2*)
  41083. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41084. - hardcode_minus_L_GCJ=yes
  41085. - allow_undefined_flag_GCJ=unsupported
  41086. - 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'
  41087. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  41088. - ;;
  41089. -
  41090. - osf3*)
  41091. - if test "$GCC" = yes; then
  41092. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  41093. - 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'
  41094. - else
  41095. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  41096. - 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'
  41097. - fi
  41098. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  41099. - hardcode_libdir_separator_GCJ=:
  41100. - ;;
  41101. -
  41102. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  41103. - if test "$GCC" = yes; then
  41104. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  41105. - 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'
  41106. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  41107. - else
  41108. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  41109. - 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'
  41110. - 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~
  41111. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  41112. -
  41113. - # Both c and cxx compiler support -rpath directly
  41114. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  41115. - fi
  41116. - hardcode_libdir_separator_GCJ=:
  41117. - ;;
  41118. -
  41119. - sco3.2v5*)
  41120. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41121. - hardcode_shlibpath_var_GCJ=no
  41122. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  41123. - runpath_var=LD_RUN_PATH
  41124. - hardcode_runpath_var=yes
  41125. - ;;
  41126. -
  41127. - solaris*)
  41128. - no_undefined_flag_GCJ=' -z text'
  41129. - if test "$GCC" = yes; then
  41130. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41131. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  41132. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  41133. - else
  41134. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41135. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  41136. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  41137. - fi
  41138. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  41139. - hardcode_shlibpath_var_GCJ=no
  41140. - case $host_os in
  41141. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  41142. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  41143. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  41144. - esac
  41145. - link_all_deplibs_GCJ=yes
  41146. - ;;
  41147. -
  41148. - sunos4*)
  41149. - if test "x$host_vendor" = xsequent; then
  41150. - # Use $CC to link under sequent, because it throws in some extra .o
  41151. - # files that make .init and .fini sections work.
  41152. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  41153. - else
  41154. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  41155. - fi
  41156. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41157. - hardcode_direct_GCJ=yes
  41158. - hardcode_minus_L_GCJ=yes
  41159. - hardcode_shlibpath_var_GCJ=no
  41160. - ;;
  41161. -
  41162. - sysv4)
  41163. - case $host_vendor in
  41164. - sni)
  41165. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41166. - hardcode_direct_GCJ=yes # is this really true???
  41167. - ;;
  41168. - siemens)
  41169. - ## LD is ld it makes a PLAMLIB
  41170. - ## CC just makes a GrossModule.
  41171. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  41172. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  41173. - hardcode_direct_GCJ=no
  41174. - ;;
  41175. - motorola)
  41176. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41177. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  41178. - ;;
  41179. - esac
  41180. - runpath_var='LD_RUN_PATH'
  41181. - hardcode_shlibpath_var_GCJ=no
  41182. - ;;
  41183. -
  41184. - sysv4.3*)
  41185. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41186. - hardcode_shlibpath_var_GCJ=no
  41187. - export_dynamic_flag_spec_GCJ='-Bexport'
  41188. - ;;
  41189. -
  41190. - sysv4*MP*)
  41191. - if test -d /usr/nec; then
  41192. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41193. - hardcode_shlibpath_var_GCJ=no
  41194. - runpath_var=LD_RUN_PATH
  41195. - hardcode_runpath_var=yes
  41196. - ld_shlibs_GCJ=yes
  41197. - fi
  41198. - ;;
  41199. -
  41200. - sysv4.2uw2*)
  41201. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  41202. - hardcode_direct_GCJ=yes
  41203. - hardcode_minus_L_GCJ=no
  41204. - hardcode_shlibpath_var_GCJ=no
  41205. - hardcode_runpath_var=yes
  41206. - runpath_var=LD_RUN_PATH
  41207. - ;;
  41208. -
  41209. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  41210. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  41211. - if test "$GCC" = yes; then
  41212. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41213. - else
  41214. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  41215. - fi
  41216. - runpath_var='LD_RUN_PATH'
  41217. - hardcode_shlibpath_var_GCJ=no
  41218. - ;;
  41219. -
  41220. - sysv5*)
  41221. - no_undefined_flag_GCJ=' -z text'
  41222. - # $CC -shared without GNU ld will not create a library from C++
  41223. - # object files and a static libstdc++, better avoid it by now
  41224. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41225. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  41226. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  41227. - hardcode_libdir_flag_spec_GCJ=
  41228. - hardcode_shlibpath_var_GCJ=no
  41229. - runpath_var='LD_RUN_PATH'
  41230. - ;;
  41231. -
  41232. - uts4*)
  41233. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  41234. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41235. - hardcode_shlibpath_var_GCJ=no
  41236. - ;;
  41237. -
  41238. - *)
  41239. - ld_shlibs_GCJ=no
  41240. - ;;
  41241. - esac
  41242. - fi
  41243. -
  41244. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  41245. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  41246. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  41247. -
  41248. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  41249. -if test "$GCC" = yes; then
  41250. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  41251. -fi
  41252. -
  41253. -#
  41254. -# Do we need to explicitly link libc?
  41255. -#
  41256. -case "x$archive_cmds_need_lc_GCJ" in
  41257. -x|xyes)
  41258. - # Assume -lc should be added
  41259. - archive_cmds_need_lc_GCJ=yes
  41260. -
  41261. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  41262. - case $archive_cmds_GCJ in
  41263. - *'~'*)
  41264. - # FIXME: we may have to deal with multi-command sequences.
  41265. - ;;
  41266. - '$CC '*)
  41267. - # Test whether the compiler implicitly links with -lc since on some
  41268. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  41269. - # to ld, don't add -lc before -lgcc.
  41270. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  41271. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  41272. - $rm conftest*
  41273. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  41274. -
  41275. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41276. - (eval $ac_compile) 2>&5
  41277. - ac_status=$?
  41278. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41279. - (exit $ac_status); } 2>conftest.err; then
  41280. - soname=conftest
  41281. - lib=conftest
  41282. - libobjs=conftest.$ac_objext
  41283. - deplibs=
  41284. - wl=$lt_prog_compiler_wl_GCJ
  41285. - compiler_flags=-v
  41286. - linker_flags=-v
  41287. - verstring=
  41288. - output_objdir=.
  41289. - libname=conftest
  41290. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  41291. - allow_undefined_flag_GCJ=
  41292. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  41293. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  41294. - ac_status=$?
  41295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41296. - (exit $ac_status); }
  41297. - then
  41298. - archive_cmds_need_lc_GCJ=no
  41299. - else
  41300. - archive_cmds_need_lc_GCJ=yes
  41301. - fi
  41302. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  41303. - else
  41304. - cat conftest.err 1>&5
  41305. - fi
  41306. - $rm conftest*
  41307. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  41308. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  41309. - ;;
  41310. - esac
  41311. - fi
  41312. - ;;
  41313. -esac
  41314. -
  41315. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  41316. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  41317. -library_names_spec=
  41318. -libname_spec='lib$name'
  41319. -soname_spec=
  41320. -shrext_cmds=".so"
  41321. -postinstall_cmds=
  41322. -postuninstall_cmds=
  41323. -finish_cmds=
  41324. -finish_eval=
  41325. -shlibpath_var=
  41326. -shlibpath_overrides_runpath=unknown
  41327. -version_type=none
  41328. -dynamic_linker="$host_os ld.so"
  41329. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  41330. -if test "$GCC" = yes; then
  41331. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  41332. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  41333. - # if the path contains ";" then we assume it to be the separator
  41334. - # otherwise default to the standard path separator (i.e. ":") - it is
  41335. - # assumed that no part of a normal pathname contains ";" but that should
  41336. - # okay in the real world where ";" in dirpaths is itself problematic.
  41337. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  41338. - else
  41339. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  41340. - fi
  41341. -else
  41342. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  41343. -fi
  41344. -need_lib_prefix=unknown
  41345. -hardcode_into_libs=no
  41346. -
  41347. -# when you set need_version to no, make sure it does not cause -set_version
  41348. -# flags to be left without arguments
  41349. -need_version=unknown
  41350. -
  41351. -case $host_os in
  41352. -aix3*)
  41353. - version_type=linux
  41354. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  41355. - shlibpath_var=LIBPATH
  41356. -
  41357. - # AIX 3 has no versioning support, so we append a major version to the name.
  41358. - soname_spec='${libname}${release}${shared_ext}$major'
  41359. - ;;
  41360. -
  41361. -aix4* | aix5*)
  41362. - version_type=linux
  41363. - need_lib_prefix=no
  41364. - need_version=no
  41365. - hardcode_into_libs=yes
  41366. - if test "$host_cpu" = ia64; then
  41367. - # AIX 5 supports IA64
  41368. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  41369. - shlibpath_var=LD_LIBRARY_PATH
  41370. - else
  41371. - # With GCC up to 2.95.x, collect2 would create an import file
  41372. - # for dependence libraries. The import file would start with
  41373. - # the line `#! .'. This would cause the generated library to
  41374. - # depend on `.', always an invalid library. This was fixed in
  41375. - # development snapshots of GCC prior to 3.0.
  41376. - case $host_os in
  41377. - aix4 | aix4.[01] | aix4.[01].*)
  41378. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  41379. - echo ' yes '
  41380. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  41381. - :
  41382. - else
  41383. - can_build_shared=no
  41384. - fi
  41385. - ;;
  41386. - esac
  41387. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  41388. - # soname into executable. Probably we can add versioning support to
  41389. - # collect2, so additional links can be useful in future.
  41390. - if test "$aix_use_runtimelinking" = yes; then
  41391. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  41392. - # instead of lib<name>.a to let people know that these are not
  41393. - # typical AIX shared libraries.
  41394. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41395. - else
  41396. - # We preserve .a as extension for shared libraries through AIX4.2
  41397. - # and later when we are not doing run time linking.
  41398. - library_names_spec='${libname}${release}.a $libname.a'
  41399. - soname_spec='${libname}${release}${shared_ext}$major'
  41400. - fi
  41401. - shlibpath_var=LIBPATH
  41402. - fi
  41403. - ;;
  41404. -
  41405. -amigaos*)
  41406. - library_names_spec='$libname.ixlibrary $libname.a'
  41407. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  41408. - 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'
  41409. - ;;
  41410. -
  41411. -beos*)
  41412. - library_names_spec='${libname}${shared_ext}'
  41413. - dynamic_linker="$host_os ld.so"
  41414. - shlibpath_var=LIBRARY_PATH
  41415. - ;;
  41416. -
  41417. -bsdi[45]*)
  41418. - version_type=linux
  41419. - need_version=no
  41420. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41421. - soname_spec='${libname}${release}${shared_ext}$major'
  41422. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  41423. - shlibpath_var=LD_LIBRARY_PATH
  41424. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  41425. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  41426. - # the default ld.so.conf also contains /usr/contrib/lib and
  41427. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  41428. - # libtool to hard-code these into programs
  41429. - ;;
  41430. -
  41431. -cygwin* | mingw* | pw32*)
  41432. - version_type=windows
  41433. - shrext_cmds=".dll"
  41434. - need_version=no
  41435. - need_lib_prefix=no
  41436. -
  41437. - case $GCC,$host_os in
  41438. - yes,cygwin* | yes,mingw* | yes,pw32*)
  41439. - library_names_spec='$libname.dll.a'
  41440. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  41441. - postinstall_cmds='base_file=`basename \${file}`~
  41442. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  41443. - dldir=$destdir/`dirname \$dlpath`~
  41444. - test -d \$dldir || mkdir -p \$dldir~
  41445. - $install_prog $dir/$dlname \$dldir/$dlname'
  41446. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  41447. - dlpath=$dir/\$dldll~
  41448. - $rm \$dlpath'
  41449. - shlibpath_overrides_runpath=yes
  41450. -
  41451. - case $host_os in
  41452. - cygwin*)
  41453. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  41454. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  41455. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  41456. - ;;
  41457. - mingw*)
  41458. - # MinGW DLLs use traditional 'lib' prefix
  41459. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  41460. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  41461. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  41462. - # It is most probably a Windows format PATH printed by
  41463. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  41464. - # path with ; separators, and with drive letters. We can handle the
  41465. - # drive letters (cygwin fileutils understands them), so leave them,
  41466. - # especially as we might pass files found there to a mingw objdump,
  41467. - # which wouldn't understand a cygwinified path. Ahh.
  41468. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  41469. - else
  41470. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  41471. - fi
  41472. - ;;
  41473. - pw32*)
  41474. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  41475. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  41476. - ;;
  41477. - esac
  41478. - ;;
  41479. -
  41480. - *)
  41481. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  41482. - ;;
  41483. - esac
  41484. - dynamic_linker='Win32 ld.exe'
  41485. - # FIXME: first we should search . and the directory the executable is in
  41486. - shlibpath_var=PATH
  41487. - ;;
  41488. -
  41489. -darwin* | rhapsody*)
  41490. - dynamic_linker="$host_os dyld"
  41491. - version_type=darwin
  41492. - need_lib_prefix=no
  41493. - need_version=no
  41494. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  41495. - soname_spec='${libname}${release}${major}$shared_ext'
  41496. - shlibpath_overrides_runpath=yes
  41497. - shlibpath_var=DYLD_LIBRARY_PATH
  41498. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  41499. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  41500. - if test "$GCC" = yes; then
  41501. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  41502. - else
  41503. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  41504. - fi
  41505. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  41506. - ;;
  41507. -
  41508. -dgux*)
  41509. - version_type=linux
  41510. - need_lib_prefix=no
  41511. - need_version=no
  41512. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  41513. - soname_spec='${libname}${release}${shared_ext}$major'
  41514. - shlibpath_var=LD_LIBRARY_PATH
  41515. - ;;
  41516. -
  41517. -freebsd1*)
  41518. - dynamic_linker=no
  41519. - ;;
  41520. -
  41521. -kfreebsd*-gnu)
  41522. - version_type=linux
  41523. - need_lib_prefix=no
  41524. - need_version=no
  41525. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  41526. - soname_spec='${libname}${release}${shared_ext}$major'
  41527. - shlibpath_var=LD_LIBRARY_PATH
  41528. - shlibpath_overrides_runpath=no
  41529. - hardcode_into_libs=yes
  41530. - dynamic_linker='GNU ld.so'
  41531. - ;;
  41532. -
  41533. -freebsd*)
  41534. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  41535. - version_type=freebsd-$objformat
  41536. - case $version_type in
  41537. - freebsd-elf*)
  41538. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  41539. - need_version=no
  41540. - need_lib_prefix=no
  41541. - ;;
  41542. - freebsd-*)
  41543. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  41544. - need_version=yes
  41545. - ;;
  41546. - esac
  41547. - shlibpath_var=LD_LIBRARY_PATH
  41548. - case $host_os in
  41549. - freebsd2*)
  41550. - shlibpath_overrides_runpath=yes
  41551. - ;;
  41552. - freebsd3.01* | freebsdelf3.01*)
  41553. - shlibpath_overrides_runpath=yes
  41554. - hardcode_into_libs=yes
  41555. - ;;
  41556. - *) # from 3.2 on
  41557. - shlibpath_overrides_runpath=no
  41558. - hardcode_into_libs=yes
  41559. - ;;
  41560. - esac
  41561. - ;;
  41562. -
  41563. -gnu*)
  41564. - version_type=linux
  41565. - need_lib_prefix=no
  41566. - need_version=no
  41567. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  41568. - soname_spec='${libname}${release}${shared_ext}$major'
  41569. - shlibpath_var=LD_LIBRARY_PATH
  41570. - hardcode_into_libs=yes
  41571. - ;;
  41572. -
  41573. -hpux9* | hpux10* | hpux11*)
  41574. - # Give a soname corresponding to the major version so that dld.sl refuses to
  41575. - # link against other versions.
  41576. - version_type=sunos
  41577. - need_lib_prefix=no
  41578. - need_version=no
  41579. - case "$host_cpu" in
  41580. - ia64*)
  41581. - shrext_cmds='.so'
  41582. - hardcode_into_libs=yes
  41583. - dynamic_linker="$host_os dld.so"
  41584. - shlibpath_var=LD_LIBRARY_PATH
  41585. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  41586. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41587. - soname_spec='${libname}${release}${shared_ext}$major'
  41588. - if test "X$HPUX_IA64_MODE" = X32; then
  41589. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  41590. - else
  41591. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  41592. - fi
  41593. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  41594. - ;;
  41595. - hppa*64*)
  41596. - shrext_cmds='.sl'
  41597. - hardcode_into_libs=yes
  41598. - dynamic_linker="$host_os dld.sl"
  41599. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  41600. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  41601. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41602. - soname_spec='${libname}${release}${shared_ext}$major'
  41603. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  41604. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  41605. - ;;
  41606. - *)
  41607. - shrext_cmds='.sl'
  41608. - dynamic_linker="$host_os dld.sl"
  41609. - shlibpath_var=SHLIB_PATH
  41610. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  41611. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41612. - soname_spec='${libname}${release}${shared_ext}$major'
  41613. - ;;
  41614. - esac
  41615. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  41616. - postinstall_cmds='chmod 555 $lib'
  41617. - ;;
  41618. -
  41619. -irix5* | irix6* | nonstopux*)
  41620. - case $host_os in
  41621. - nonstopux*) version_type=nonstopux ;;
  41622. - *)
  41623. - if test "$lt_cv_prog_gnu_ld" = yes; then
  41624. - version_type=linux
  41625. - else
  41626. - version_type=irix
  41627. - fi ;;
  41628. - esac
  41629. - need_lib_prefix=no
  41630. - need_version=no
  41631. - soname_spec='${libname}${release}${shared_ext}$major'
  41632. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  41633. - case $host_os in
  41634. - irix5* | nonstopux*)
  41635. - libsuff= shlibsuff=
  41636. - ;;
  41637. - *)
  41638. - case $LD in # libtool.m4 will add one of these switches to LD
  41639. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  41640. - libsuff= shlibsuff= libmagic=32-bit;;
  41641. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  41642. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  41643. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  41644. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  41645. - *) libsuff= shlibsuff= libmagic=never-match;;
  41646. - esac
  41647. - ;;
  41648. - esac
  41649. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  41650. - shlibpath_overrides_runpath=no
  41651. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  41652. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  41653. - hardcode_into_libs=yes
  41654. - ;;
  41655. -
  41656. -# No shared lib support for Linux oldld, aout, or coff.
  41657. -linux*oldld* | linux*aout* | linux*coff*)
  41658. - dynamic_linker=no
  41659. - ;;
  41660. -
  41661. -# This must be Linux ELF.
  41662. -linux*)
  41663. - version_type=linux
  41664. - need_lib_prefix=no
  41665. - need_version=no
  41666. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41667. - soname_spec='${libname}${release}${shared_ext}$major'
  41668. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  41669. - shlibpath_var=LD_LIBRARY_PATH
  41670. - shlibpath_overrides_runpath=no
  41671. - # This implies no fast_install, which is unacceptable.
  41672. - # Some rework will be needed to allow for fast_install
  41673. - # before this can be enabled.
  41674. - hardcode_into_libs=yes
  41675. -
  41676. - # Append ld.so.conf contents to the search path
  41677. - if test -f /etc/ld.so.conf; then
  41678. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  41679. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  41680. - fi
  41681. -
  41682. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  41683. - # powerpc, because MkLinux only supported shared libraries with the
  41684. - # GNU dynamic linker. Since this was broken with cross compilers,
  41685. - # most powerpc-linux boxes support dynamic linking these days and
  41686. - # people can always --disable-shared, the test was removed, and we
  41687. - # assume the GNU/Linux dynamic linker is in use.
  41688. - dynamic_linker='GNU/Linux ld.so'
  41689. - ;;
  41690. -
  41691. -knetbsd*-gnu)
  41692. - version_type=linux
  41693. - need_lib_prefix=no
  41694. - need_version=no
  41695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  41696. - soname_spec='${libname}${release}${shared_ext}$major'
  41697. - shlibpath_var=LD_LIBRARY_PATH
  41698. - shlibpath_overrides_runpath=no
  41699. - hardcode_into_libs=yes
  41700. - dynamic_linker='GNU ld.so'
  41701. - ;;
  41702. -
  41703. -netbsd*)
  41704. - version_type=sunos
  41705. - need_lib_prefix=no
  41706. - need_version=no
  41707. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  41708. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  41709. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  41710. - dynamic_linker='NetBSD (a.out) ld.so'
  41711. - else
  41712. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  41713. - soname_spec='${libname}${release}${shared_ext}$major'
  41714. - dynamic_linker='NetBSD ld.elf_so'
  41715. - fi
  41716. - shlibpath_var=LD_LIBRARY_PATH
  41717. - shlibpath_overrides_runpath=yes
  41718. - hardcode_into_libs=yes
  41719. - ;;
  41720. -
  41721. -newsos6)
  41722. - version_type=linux
  41723. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41724. - shlibpath_var=LD_LIBRARY_PATH
  41725. - shlibpath_overrides_runpath=yes
  41726. - ;;
  41727. -
  41728. -nto-qnx*)
  41729. - version_type=linux
  41730. - need_lib_prefix=no
  41731. - need_version=no
  41732. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41733. - soname_spec='${libname}${release}${shared_ext}$major'
  41734. - shlibpath_var=LD_LIBRARY_PATH
  41735. - shlibpath_overrides_runpath=yes
  41736. - ;;
  41737. -
  41738. -openbsd*)
  41739. - version_type=sunos
  41740. - need_lib_prefix=no
  41741. - need_version=no
  41742. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  41743. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  41744. - shlibpath_var=LD_LIBRARY_PATH
  41745. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  41746. - case $host_os in
  41747. - openbsd2.[89] | openbsd2.[89].*)
  41748. - shlibpath_overrides_runpath=no
  41749. - ;;
  41750. - *)
  41751. - shlibpath_overrides_runpath=yes
  41752. - ;;
  41753. - esac
  41754. - else
  41755. - shlibpath_overrides_runpath=yes
  41756. - fi
  41757. - ;;
  41758. -
  41759. -os2*)
  41760. - libname_spec='$name'
  41761. - shrext_cmds=".dll"
  41762. - need_lib_prefix=no
  41763. - library_names_spec='$libname${shared_ext} $libname.a'
  41764. - dynamic_linker='OS/2 ld.exe'
  41765. - shlibpath_var=LIBPATH
  41766. - ;;
  41767. -
  41768. -osf3* | osf4* | osf5*)
  41769. - version_type=osf
  41770. - need_lib_prefix=no
  41771. - need_version=no
  41772. - soname_spec='${libname}${release}${shared_ext}$major'
  41773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41774. - shlibpath_var=LD_LIBRARY_PATH
  41775. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  41776. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  41777. - ;;
  41778. -
  41779. -sco3.2v5*)
  41780. - version_type=osf
  41781. - soname_spec='${libname}${release}${shared_ext}$major'
  41782. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41783. - shlibpath_var=LD_LIBRARY_PATH
  41784. - ;;
  41785. -
  41786. -solaris*)
  41787. - version_type=linux
  41788. - need_lib_prefix=no
  41789. - need_version=no
  41790. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41791. - soname_spec='${libname}${release}${shared_ext}$major'
  41792. - shlibpath_var=LD_LIBRARY_PATH
  41793. - shlibpath_overrides_runpath=yes
  41794. - hardcode_into_libs=yes
  41795. - # ldd complains unless libraries are executable
  41796. - postinstall_cmds='chmod +x $lib'
  41797. - ;;
  41798. -
  41799. -sunos4*)
  41800. - version_type=sunos
  41801. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  41802. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  41803. - shlibpath_var=LD_LIBRARY_PATH
  41804. - shlibpath_overrides_runpath=yes
  41805. - if test "$with_gnu_ld" = yes; then
  41806. - need_lib_prefix=no
  41807. - fi
  41808. - need_version=yes
  41809. - ;;
  41810. -
  41811. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  41812. - version_type=linux
  41813. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41814. - soname_spec='${libname}${release}${shared_ext}$major'
  41815. - shlibpath_var=LD_LIBRARY_PATH
  41816. - case $host_vendor in
  41817. - sni)
  41818. - shlibpath_overrides_runpath=no
  41819. - need_lib_prefix=no
  41820. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  41821. - runpath_var=LD_RUN_PATH
  41822. - ;;
  41823. - siemens)
  41824. - need_lib_prefix=no
  41825. - ;;
  41826. - motorola)
  41827. - need_lib_prefix=no
  41828. - need_version=no
  41829. - shlibpath_overrides_runpath=no
  41830. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  41831. - ;;
  41832. - esac
  41833. - ;;
  41834. -
  41835. -sysv4*MP*)
  41836. - if test -d /usr/nec ;then
  41837. - version_type=linux
  41838. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  41839. - soname_spec='$libname${shared_ext}.$major'
  41840. - shlibpath_var=LD_LIBRARY_PATH
  41841. - fi
  41842. - ;;
  41843. -
  41844. -uts4*)
  41845. - version_type=linux
  41846. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  41847. - soname_spec='${libname}${release}${shared_ext}$major'
  41848. - shlibpath_var=LD_LIBRARY_PATH
  41849. - ;;
  41850. -
  41851. -*)
  41852. - dynamic_linker=no
  41853. - ;;
  41854. -esac
  41855. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  41856. -echo "${ECHO_T}$dynamic_linker" >&6; }
  41857. -test "$dynamic_linker" = no && can_build_shared=no
  41858. -
  41859. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  41860. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  41861. -hardcode_action_GCJ=
  41862. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  41863. - test -n "$runpath_var_GCJ" || \
  41864. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  41865. -
  41866. - # We can hardcode non-existant directories.
  41867. - if test "$hardcode_direct_GCJ" != no &&
  41868. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  41869. - # have to relink, otherwise we might link with an installed library
  41870. - # when we should be linking with a yet-to-be-installed one
  41871. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  41872. - test "$hardcode_minus_L_GCJ" != no; then
  41873. - # Linking always hardcodes the temporary library directory.
  41874. - hardcode_action_GCJ=relink
  41875. - else
  41876. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  41877. - hardcode_action_GCJ=immediate
  41878. - fi
  41879. -else
  41880. - # We cannot hardcode anything, or else we can only hardcode existing
  41881. - # directories.
  41882. - hardcode_action_GCJ=unsupported
  41883. -fi
  41884. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  41885. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  41886. -
  41887. -if test "$hardcode_action_GCJ" = relink; then
  41888. - # Fast installation is not supported
  41889. - enable_fast_install=no
  41890. -elif test "$shlibpath_overrides_runpath" = yes ||
  41891. - test "$enable_shared" = no; then
  41892. - # Fast installation is not necessary
  41893. - enable_fast_install=needless
  41894. -fi
  41895. -
  41896. -striplib=
  41897. -old_striplib=
  41898. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  41899. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  41900. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  41901. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  41902. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  41903. - { echo "$as_me:$LINENO: result: yes" >&5
  41904. -echo "${ECHO_T}yes" >&6; }
  41905. -else
  41906. -# FIXME - insert some real tests, host_os isn't really good enough
  41907. - case $host_os in
  41908. - darwin*)
  41909. - if test -n "$STRIP" ; then
  41910. - striplib="$STRIP -x"
  41911. - { echo "$as_me:$LINENO: result: yes" >&5
  41912. -echo "${ECHO_T}yes" >&6; }
  41913. - else
  41914. - { echo "$as_me:$LINENO: result: no" >&5
  41915. -echo "${ECHO_T}no" >&6; }
  41916. -fi
  41917. - ;;
  41918. - *)
  41919. - { echo "$as_me:$LINENO: result: no" >&5
  41920. -echo "${ECHO_T}no" >&6; }
  41921. - ;;
  41922. - esac
  41923. -fi
  41924. -
  41925. -if test "x$enable_dlopen" != xyes; then
  41926. - enable_dlopen=unknown
  41927. - enable_dlopen_self=unknown
  41928. - enable_dlopen_self_static=unknown
  41929. -else
  41930. - lt_cv_dlopen=no
  41931. - lt_cv_dlopen_libs=
  41932. -
  41933. - case $host_os in
  41934. - beos*)
  41935. - lt_cv_dlopen="load_add_on"
  41936. - lt_cv_dlopen_libs=
  41937. - lt_cv_dlopen_self=yes
  41938. - ;;
  41939. -
  41940. - mingw* | pw32*)
  41941. - lt_cv_dlopen="LoadLibrary"
  41942. - lt_cv_dlopen_libs=
  41943. - ;;
  41944. -
  41945. - cygwin*)
  41946. - lt_cv_dlopen="dlopen"
  41947. - lt_cv_dlopen_libs=
  41948. - ;;
  41949. -
  41950. - darwin*)
  41951. - # if libdl is installed we need to link against it
  41952. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  41953. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  41954. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  41955. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41956. -else
  41957. - ac_check_lib_save_LIBS=$LIBS
  41958. -LIBS="-ldl $LIBS"
  41959. -cat >conftest.$ac_ext <<_ACEOF
  41960. -/* confdefs.h. */
  41961. -_ACEOF
  41962. -cat confdefs.h >>conftest.$ac_ext
  41963. -cat >>conftest.$ac_ext <<_ACEOF
  41964. -/* end confdefs.h. */
  41965. -
  41966. -/* Override any GCC internal prototype to avoid an error.
  41967. - Use char because int might match the return type of a GCC
  41968. - builtin and then its argument prototype would still apply. */
  41969. -#ifdef __cplusplus
  41970. -extern "C"
  41971. -#endif
  41972. -char dlopen ();
  41973. -int
  41974. -main ()
  41975. -{
  41976. -return dlopen ();
  41977. - ;
  41978. - return 0;
  41979. -}
  41980. -_ACEOF
  41981. -rm -f conftest.$ac_objext conftest$ac_exeext
  41982. -if { (ac_try="$ac_link"
  41983. -case "(($ac_try" in
  41984. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41985. - *) ac_try_echo=$ac_try;;
  41986. -esac
  41987. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41988. - (eval "$ac_link") 2>conftest.er1
  41989. - ac_status=$?
  41990. - grep -v '^ *+' conftest.er1 >conftest.err
  41991. - rm -f conftest.er1
  41992. - cat conftest.err >&5
  41993. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41994. - (exit $ac_status); } &&
  41995. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41996. - { (case "(($ac_try" in
  41997. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41998. - *) ac_try_echo=$ac_try;;
  41999. -esac
  42000. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42001. - (eval "$ac_try") 2>&5
  42002. - ac_status=$?
  42003. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42004. - (exit $ac_status); }; } &&
  42005. - { ac_try='test -s conftest$ac_exeext'
  42006. - { (case "(($ac_try" in
  42007. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42008. - *) ac_try_echo=$ac_try;;
  42009. -esac
  42010. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42011. - (eval "$ac_try") 2>&5
  42012. - ac_status=$?
  42013. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42014. - (exit $ac_status); }; }; then
  42015. - ac_cv_lib_dl_dlopen=yes
  42016. -else
  42017. - echo "$as_me: failed program was:" >&5
  42018. -sed 's/^/| /' conftest.$ac_ext >&5
  42019. -
  42020. - ac_cv_lib_dl_dlopen=no
  42021. -fi
  42022. -
  42023. -rm -f core conftest.err conftest.$ac_objext \
  42024. - conftest$ac_exeext conftest.$ac_ext
  42025. -LIBS=$ac_check_lib_save_LIBS
  42026. -fi
  42027. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  42028. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  42029. -if test $ac_cv_lib_dl_dlopen = yes; then
  42030. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  42031. -else
  42032. -
  42033. - lt_cv_dlopen="dyld"
  42034. - lt_cv_dlopen_libs=
  42035. - lt_cv_dlopen_self=yes
  42036. -
  42037. -fi
  42038. -
  42039. - ;;
  42040. -
  42041. - *)
  42042. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  42043. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  42044. -if test "${ac_cv_func_shl_load+set}" = set; then
  42045. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42046. -else
  42047. - cat >conftest.$ac_ext <<_ACEOF
  42048. -/* confdefs.h. */
  42049. -_ACEOF
  42050. -cat confdefs.h >>conftest.$ac_ext
  42051. -cat >>conftest.$ac_ext <<_ACEOF
  42052. -/* end confdefs.h. */
  42053. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  42054. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42055. -#define shl_load innocuous_shl_load
  42056. -
  42057. -/* System header to define __stub macros and hopefully few prototypes,
  42058. - which can conflict with char shl_load (); below.
  42059. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42060. - <limits.h> exists even on freestanding compilers. */
  42061. -
  42062. -#ifdef __STDC__
  42063. -# include <limits.h>
  42064. -#else
  42065. -# include <assert.h>
  42066. -#endif
  42067. -
  42068. -#undef shl_load
  42069. -
  42070. -/* Override any GCC internal prototype to avoid an error.
  42071. - Use char because int might match the return type of a GCC
  42072. - builtin and then its argument prototype would still apply. */
  42073. -#ifdef __cplusplus
  42074. -extern "C"
  42075. -#endif
  42076. -char shl_load ();
  42077. -/* The GNU C library defines this for functions which it implements
  42078. - to always fail with ENOSYS. Some functions are actually named
  42079. - something starting with __ and the normal name is an alias. */
  42080. -#if defined __stub_shl_load || defined __stub___shl_load
  42081. -choke me
  42082. -#endif
  42083. -
  42084. -int
  42085. -main ()
  42086. -{
  42087. -return shl_load ();
  42088. - ;
  42089. - return 0;
  42090. -}
  42091. -_ACEOF
  42092. -rm -f conftest.$ac_objext conftest$ac_exeext
  42093. -if { (ac_try="$ac_link"
  42094. -case "(($ac_try" in
  42095. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42096. - *) ac_try_echo=$ac_try;;
  42097. -esac
  42098. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42099. - (eval "$ac_link") 2>conftest.er1
  42100. - ac_status=$?
  42101. - grep -v '^ *+' conftest.er1 >conftest.err
  42102. - rm -f conftest.er1
  42103. - cat conftest.err >&5
  42104. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42105. - (exit $ac_status); } &&
  42106. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42107. - { (case "(($ac_try" in
  42108. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42109. - *) ac_try_echo=$ac_try;;
  42110. -esac
  42111. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42112. - (eval "$ac_try") 2>&5
  42113. - ac_status=$?
  42114. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42115. - (exit $ac_status); }; } &&
  42116. - { ac_try='test -s conftest$ac_exeext'
  42117. - { (case "(($ac_try" in
  42118. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42119. - *) ac_try_echo=$ac_try;;
  42120. -esac
  42121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42122. - (eval "$ac_try") 2>&5
  42123. - ac_status=$?
  42124. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42125. - (exit $ac_status); }; }; then
  42126. - ac_cv_func_shl_load=yes
  42127. -else
  42128. - echo "$as_me: failed program was:" >&5
  42129. -sed 's/^/| /' conftest.$ac_ext >&5
  42130. -
  42131. - ac_cv_func_shl_load=no
  42132. -fi
  42133. -
  42134. -rm -f core conftest.err conftest.$ac_objext \
  42135. - conftest$ac_exeext conftest.$ac_ext
  42136. -fi
  42137. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  42138. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  42139. -if test $ac_cv_func_shl_load = yes; then
  42140. - lt_cv_dlopen="shl_load"
  42141. -else
  42142. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  42143. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  42144. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  42145. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42146. -else
  42147. - ac_check_lib_save_LIBS=$LIBS
  42148. -LIBS="-ldld $LIBS"
  42149. -cat >conftest.$ac_ext <<_ACEOF
  42150. -/* confdefs.h. */
  42151. -_ACEOF
  42152. -cat confdefs.h >>conftest.$ac_ext
  42153. -cat >>conftest.$ac_ext <<_ACEOF
  42154. -/* end confdefs.h. */
  42155. -
  42156. -/* Override any GCC internal prototype to avoid an error.
  42157. - Use char because int might match the return type of a GCC
  42158. - builtin and then its argument prototype would still apply. */
  42159. -#ifdef __cplusplus
  42160. -extern "C"
  42161. -#endif
  42162. -char shl_load ();
  42163. -int
  42164. -main ()
  42165. -{
  42166. -return shl_load ();
  42167. - ;
  42168. - return 0;
  42169. -}
  42170. -_ACEOF
  42171. -rm -f conftest.$ac_objext conftest$ac_exeext
  42172. -if { (ac_try="$ac_link"
  42173. -case "(($ac_try" in
  42174. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42175. - *) ac_try_echo=$ac_try;;
  42176. -esac
  42177. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42178. - (eval "$ac_link") 2>conftest.er1
  42179. - ac_status=$?
  42180. - grep -v '^ *+' conftest.er1 >conftest.err
  42181. - rm -f conftest.er1
  42182. - cat conftest.err >&5
  42183. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42184. - (exit $ac_status); } &&
  42185. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42186. - { (case "(($ac_try" in
  42187. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42188. - *) ac_try_echo=$ac_try;;
  42189. -esac
  42190. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42191. - (eval "$ac_try") 2>&5
  42192. - ac_status=$?
  42193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42194. - (exit $ac_status); }; } &&
  42195. - { ac_try='test -s conftest$ac_exeext'
  42196. - { (case "(($ac_try" in
  42197. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42198. - *) ac_try_echo=$ac_try;;
  42199. -esac
  42200. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42201. - (eval "$ac_try") 2>&5
  42202. - ac_status=$?
  42203. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42204. - (exit $ac_status); }; }; then
  42205. - ac_cv_lib_dld_shl_load=yes
  42206. -else
  42207. - echo "$as_me: failed program was:" >&5
  42208. -sed 's/^/| /' conftest.$ac_ext >&5
  42209. -
  42210. - ac_cv_lib_dld_shl_load=no
  42211. -fi
  42212. -
  42213. -rm -f core conftest.err conftest.$ac_objext \
  42214. - conftest$ac_exeext conftest.$ac_ext
  42215. -LIBS=$ac_check_lib_save_LIBS
  42216. -fi
  42217. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  42218. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  42219. -if test $ac_cv_lib_dld_shl_load = yes; then
  42220. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  42221. -else
  42222. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  42223. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  42224. -if test "${ac_cv_func_dlopen+set}" = set; then
  42225. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42226. -else
  42227. - cat >conftest.$ac_ext <<_ACEOF
  42228. -/* confdefs.h. */
  42229. -_ACEOF
  42230. -cat confdefs.h >>conftest.$ac_ext
  42231. -cat >>conftest.$ac_ext <<_ACEOF
  42232. -/* end confdefs.h. */
  42233. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  42234. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42235. -#define dlopen innocuous_dlopen
  42236. -
  42237. -/* System header to define __stub macros and hopefully few prototypes,
  42238. - which can conflict with char dlopen (); below.
  42239. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42240. - <limits.h> exists even on freestanding compilers. */
  42241. -
  42242. -#ifdef __STDC__
  42243. -# include <limits.h>
  42244. -#else
  42245. -# include <assert.h>
  42246. -#endif
  42247. -
  42248. -#undef dlopen
  42249. -
  42250. -/* Override any GCC internal prototype to avoid an error.
  42251. - Use char because int might match the return type of a GCC
  42252. - builtin and then its argument prototype would still apply. */
  42253. -#ifdef __cplusplus
  42254. -extern "C"
  42255. -#endif
  42256. -char dlopen ();
  42257. -/* The GNU C library defines this for functions which it implements
  42258. - to always fail with ENOSYS. Some functions are actually named
  42259. - something starting with __ and the normal name is an alias. */
  42260. -#if defined __stub_dlopen || defined __stub___dlopen
  42261. -choke me
  42262. -#endif
  42263. -
  42264. -int
  42265. -main ()
  42266. -{
  42267. -return dlopen ();
  42268. - ;
  42269. - return 0;
  42270. -}
  42271. -_ACEOF
  42272. -rm -f conftest.$ac_objext conftest$ac_exeext
  42273. -if { (ac_try="$ac_link"
  42274. -case "(($ac_try" in
  42275. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42276. - *) ac_try_echo=$ac_try;;
  42277. -esac
  42278. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42279. - (eval "$ac_link") 2>conftest.er1
  42280. - ac_status=$?
  42281. - grep -v '^ *+' conftest.er1 >conftest.err
  42282. - rm -f conftest.er1
  42283. - cat conftest.err >&5
  42284. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42285. - (exit $ac_status); } &&
  42286. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42287. - { (case "(($ac_try" in
  42288. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42289. - *) ac_try_echo=$ac_try;;
  42290. -esac
  42291. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42292. - (eval "$ac_try") 2>&5
  42293. - ac_status=$?
  42294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42295. - (exit $ac_status); }; } &&
  42296. - { ac_try='test -s conftest$ac_exeext'
  42297. - { (case "(($ac_try" in
  42298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42299. - *) ac_try_echo=$ac_try;;
  42300. -esac
  42301. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42302. - (eval "$ac_try") 2>&5
  42303. - ac_status=$?
  42304. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42305. - (exit $ac_status); }; }; then
  42306. - ac_cv_func_dlopen=yes
  42307. -else
  42308. - echo "$as_me: failed program was:" >&5
  42309. -sed 's/^/| /' conftest.$ac_ext >&5
  42310. -
  42311. - ac_cv_func_dlopen=no
  42312. -fi
  42313. -
  42314. -rm -f core conftest.err conftest.$ac_objext \
  42315. - conftest$ac_exeext conftest.$ac_ext
  42316. -fi
  42317. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  42318. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  42319. -if test $ac_cv_func_dlopen = yes; then
  42320. - lt_cv_dlopen="dlopen"
  42321. -else
  42322. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  42323. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  42324. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  42325. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42326. -else
  42327. - ac_check_lib_save_LIBS=$LIBS
  42328. -LIBS="-ldl $LIBS"
  42329. -cat >conftest.$ac_ext <<_ACEOF
  42330. -/* confdefs.h. */
  42331. -_ACEOF
  42332. -cat confdefs.h >>conftest.$ac_ext
  42333. -cat >>conftest.$ac_ext <<_ACEOF
  42334. -/* end confdefs.h. */
  42335. -
  42336. -/* Override any GCC internal prototype to avoid an error.
  42337. - Use char because int might match the return type of a GCC
  42338. - builtin and then its argument prototype would still apply. */
  42339. -#ifdef __cplusplus
  42340. -extern "C"
  42341. -#endif
  42342. -char dlopen ();
  42343. -int
  42344. -main ()
  42345. -{
  42346. -return dlopen ();
  42347. - ;
  42348. - return 0;
  42349. -}
  42350. -_ACEOF
  42351. -rm -f conftest.$ac_objext conftest$ac_exeext
  42352. -if { (ac_try="$ac_link"
  42353. -case "(($ac_try" in
  42354. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42355. - *) ac_try_echo=$ac_try;;
  42356. -esac
  42357. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42358. - (eval "$ac_link") 2>conftest.er1
  42359. - ac_status=$?
  42360. - grep -v '^ *+' conftest.er1 >conftest.err
  42361. - rm -f conftest.er1
  42362. - cat conftest.err >&5
  42363. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42364. - (exit $ac_status); } &&
  42365. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42366. - { (case "(($ac_try" in
  42367. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42368. - *) ac_try_echo=$ac_try;;
  42369. -esac
  42370. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42371. - (eval "$ac_try") 2>&5
  42372. - ac_status=$?
  42373. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42374. - (exit $ac_status); }; } &&
  42375. - { ac_try='test -s conftest$ac_exeext'
  42376. - { (case "(($ac_try" in
  42377. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42378. - *) ac_try_echo=$ac_try;;
  42379. -esac
  42380. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42381. - (eval "$ac_try") 2>&5
  42382. - ac_status=$?
  42383. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42384. - (exit $ac_status); }; }; then
  42385. - ac_cv_lib_dl_dlopen=yes
  42386. -else
  42387. - echo "$as_me: failed program was:" >&5
  42388. -sed 's/^/| /' conftest.$ac_ext >&5
  42389. -
  42390. - ac_cv_lib_dl_dlopen=no
  42391. -fi
  42392. -
  42393. -rm -f core conftest.err conftest.$ac_objext \
  42394. - conftest$ac_exeext conftest.$ac_ext
  42395. -LIBS=$ac_check_lib_save_LIBS
  42396. -fi
  42397. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  42398. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  42399. -if test $ac_cv_lib_dl_dlopen = yes; then
  42400. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  42401. -else
  42402. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  42403. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  42404. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  42405. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42406. -else
  42407. - ac_check_lib_save_LIBS=$LIBS
  42408. -LIBS="-lsvld $LIBS"
  42409. -cat >conftest.$ac_ext <<_ACEOF
  42410. -/* confdefs.h. */
  42411. -_ACEOF
  42412. -cat confdefs.h >>conftest.$ac_ext
  42413. -cat >>conftest.$ac_ext <<_ACEOF
  42414. -/* end confdefs.h. */
  42415. -
  42416. -/* Override any GCC internal prototype to avoid an error.
  42417. - Use char because int might match the return type of a GCC
  42418. - builtin and then its argument prototype would still apply. */
  42419. -#ifdef __cplusplus
  42420. -extern "C"
  42421. -#endif
  42422. -char dlopen ();
  42423. -int
  42424. -main ()
  42425. -{
  42426. -return dlopen ();
  42427. - ;
  42428. - return 0;
  42429. -}
  42430. -_ACEOF
  42431. -rm -f conftest.$ac_objext conftest$ac_exeext
  42432. -if { (ac_try="$ac_link"
  42433. -case "(($ac_try" in
  42434. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42435. - *) ac_try_echo=$ac_try;;
  42436. -esac
  42437. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42438. - (eval "$ac_link") 2>conftest.er1
  42439. - ac_status=$?
  42440. - grep -v '^ *+' conftest.er1 >conftest.err
  42441. - rm -f conftest.er1
  42442. - cat conftest.err >&5
  42443. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42444. - (exit $ac_status); } &&
  42445. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42446. - { (case "(($ac_try" in
  42447. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42448. - *) ac_try_echo=$ac_try;;
  42449. -esac
  42450. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42451. - (eval "$ac_try") 2>&5
  42452. - ac_status=$?
  42453. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42454. - (exit $ac_status); }; } &&
  42455. - { ac_try='test -s conftest$ac_exeext'
  42456. - { (case "(($ac_try" in
  42457. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42458. - *) ac_try_echo=$ac_try;;
  42459. -esac
  42460. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42461. - (eval "$ac_try") 2>&5
  42462. - ac_status=$?
  42463. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42464. - (exit $ac_status); }; }; then
  42465. - ac_cv_lib_svld_dlopen=yes
  42466. -else
  42467. - echo "$as_me: failed program was:" >&5
  42468. -sed 's/^/| /' conftest.$ac_ext >&5
  42469. -
  42470. - ac_cv_lib_svld_dlopen=no
  42471. -fi
  42472. -
  42473. -rm -f core conftest.err conftest.$ac_objext \
  42474. - conftest$ac_exeext conftest.$ac_ext
  42475. -LIBS=$ac_check_lib_save_LIBS
  42476. -fi
  42477. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  42478. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  42479. -if test $ac_cv_lib_svld_dlopen = yes; then
  42480. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  42481. -else
  42482. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  42483. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  42484. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  42485. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42486. -else
  42487. - ac_check_lib_save_LIBS=$LIBS
  42488. -LIBS="-ldld $LIBS"
  42489. -cat >conftest.$ac_ext <<_ACEOF
  42490. -/* confdefs.h. */
  42491. -_ACEOF
  42492. -cat confdefs.h >>conftest.$ac_ext
  42493. -cat >>conftest.$ac_ext <<_ACEOF
  42494. -/* end confdefs.h. */
  42495. -
  42496. -/* Override any GCC internal prototype to avoid an error.
  42497. - Use char because int might match the return type of a GCC
  42498. - builtin and then its argument prototype would still apply. */
  42499. -#ifdef __cplusplus
  42500. -extern "C"
  42501. -#endif
  42502. -char dld_link ();
  42503. -int
  42504. -main ()
  42505. -{
  42506. -return dld_link ();
  42507. - ;
  42508. - return 0;
  42509. -}
  42510. -_ACEOF
  42511. -rm -f conftest.$ac_objext conftest$ac_exeext
  42512. -if { (ac_try="$ac_link"
  42513. -case "(($ac_try" in
  42514. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42515. - *) ac_try_echo=$ac_try;;
  42516. -esac
  42517. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42518. - (eval "$ac_link") 2>conftest.er1
  42519. - ac_status=$?
  42520. - grep -v '^ *+' conftest.er1 >conftest.err
  42521. - rm -f conftest.er1
  42522. - cat conftest.err >&5
  42523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42524. - (exit $ac_status); } &&
  42525. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42526. - { (case "(($ac_try" in
  42527. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42528. - *) ac_try_echo=$ac_try;;
  42529. -esac
  42530. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42531. - (eval "$ac_try") 2>&5
  42532. - ac_status=$?
  42533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42534. - (exit $ac_status); }; } &&
  42535. - { ac_try='test -s conftest$ac_exeext'
  42536. - { (case "(($ac_try" in
  42537. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42538. - *) ac_try_echo=$ac_try;;
  42539. -esac
  42540. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42541. - (eval "$ac_try") 2>&5
  42542. - ac_status=$?
  42543. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42544. - (exit $ac_status); }; }; then
  42545. - ac_cv_lib_dld_dld_link=yes
  42546. -else
  42547. - echo "$as_me: failed program was:" >&5
  42548. -sed 's/^/| /' conftest.$ac_ext >&5
  42549. -
  42550. - ac_cv_lib_dld_dld_link=no
  42551. -fi
  42552. -
  42553. -rm -f core conftest.err conftest.$ac_objext \
  42554. - conftest$ac_exeext conftest.$ac_ext
  42555. -LIBS=$ac_check_lib_save_LIBS
  42556. -fi
  42557. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  42558. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  42559. -if test $ac_cv_lib_dld_dld_link = yes; then
  42560. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  42561. -fi
  42562. -
  42563. -
  42564. -fi
  42565. -
  42566. -
  42567. -fi
  42568. -
  42569. -
  42570. -fi
  42571. -
  42572. -
  42573. -fi
  42574. -
  42575. -
  42576. -fi
  42577. -
  42578. - ;;
  42579. - esac
  42580. -
  42581. - if test "x$lt_cv_dlopen" != xno; then
  42582. - enable_dlopen=yes
  42583. - else
  42584. - enable_dlopen=no
  42585. - fi
  42586. -
  42587. - case $lt_cv_dlopen in
  42588. - dlopen)
  42589. - save_CPPFLAGS="$CPPFLAGS"
  42590. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  42591. -
  42592. - save_LDFLAGS="$LDFLAGS"
  42593. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  42594. -
  42595. - save_LIBS="$LIBS"
  42596. - LIBS="$lt_cv_dlopen_libs $LIBS"
  42597. -
  42598. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  42599. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  42600. -if test "${lt_cv_dlopen_self+set}" = set; then
  42601. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42602. -else
  42603. - if test "$cross_compiling" = yes; then :
  42604. - lt_cv_dlopen_self=cross
  42605. -else
  42606. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  42607. - lt_status=$lt_dlunknown
  42608. - cat > conftest.$ac_ext <<EOF
  42609. -#line 19942 "configure"
  42610. -#include "confdefs.h"
  42611. -
  42612. -#if HAVE_DLFCN_H
  42613. -#include <dlfcn.h>
  42614. -#endif
  42615. -
  42616. -#include <stdio.h>
  42617. -
  42618. -#ifdef RTLD_GLOBAL
  42619. -# define LT_DLGLOBAL RTLD_GLOBAL
  42620. -#else
  42621. -# ifdef DL_GLOBAL
  42622. -# define LT_DLGLOBAL DL_GLOBAL
  42623. -# else
  42624. -# define LT_DLGLOBAL 0
  42625. -# endif
  42626. -#endif
  42627. -
  42628. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  42629. - find out it does not work in some platform. */
  42630. -#ifndef LT_DLLAZY_OR_NOW
  42631. -# ifdef RTLD_LAZY
  42632. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  42633. -# else
  42634. -# ifdef DL_LAZY
  42635. -# define LT_DLLAZY_OR_NOW DL_LAZY
  42636. -# else
  42637. -# ifdef RTLD_NOW
  42638. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  42639. -# else
  42640. -# ifdef DL_NOW
  42641. -# define LT_DLLAZY_OR_NOW DL_NOW
  42642. -# else
  42643. -# define LT_DLLAZY_OR_NOW 0
  42644. -# endif
  42645. -# endif
  42646. -# endif
  42647. -# endif
  42648. -#endif
  42649. -
  42650. -#ifdef __cplusplus
  42651. -extern "C" void exit (int);
  42652. -#endif
  42653. -
  42654. -void fnord() { int i=42;}
  42655. -int main ()
  42656. -{
  42657. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  42658. - int status = $lt_dlunknown;
  42659. -
  42660. - if (self)
  42661. - {
  42662. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  42663. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  42664. - /* dlclose (self); */
  42665. - }
  42666. -
  42667. - exit (status);
  42668. -}
  42669. -EOF
  42670. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42671. - (eval $ac_link) 2>&5
  42672. - ac_status=$?
  42673. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42674. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  42675. - (./conftest; exit; ) 2>/dev/null
  42676. - lt_status=$?
  42677. - case x$lt_status in
  42678. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  42679. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  42680. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  42681. - esac
  42682. - else :
  42683. - # compilation failed
  42684. - lt_cv_dlopen_self=no
  42685. - fi
  42686. -fi
  42687. -rm -fr conftest*
  42688. -
  42689. -
  42690. -fi
  42691. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  42692. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  42693. -
  42694. - if test "x$lt_cv_dlopen_self" = xyes; then
  42695. - LDFLAGS="$LDFLAGS $link_static_flag"
  42696. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  42697. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  42698. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  42699. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42700. -else
  42701. - if test "$cross_compiling" = yes; then :
  42702. - lt_cv_dlopen_self_static=cross
  42703. -else
  42704. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  42705. - lt_status=$lt_dlunknown
  42706. - cat > conftest.$ac_ext <<EOF
  42707. -#line 20040 "configure"
  42708. -#include "confdefs.h"
  42709. -
  42710. -#if HAVE_DLFCN_H
  42711. -#include <dlfcn.h>
  42712. -#endif
  42713. -
  42714. -#include <stdio.h>
  42715. -
  42716. -#ifdef RTLD_GLOBAL
  42717. -# define LT_DLGLOBAL RTLD_GLOBAL
  42718. -#else
  42719. -# ifdef DL_GLOBAL
  42720. -# define LT_DLGLOBAL DL_GLOBAL
  42721. -# else
  42722. -# define LT_DLGLOBAL 0
  42723. -# endif
  42724. -#endif
  42725. -
  42726. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  42727. - find out it does not work in some platform. */
  42728. -#ifndef LT_DLLAZY_OR_NOW
  42729. -# ifdef RTLD_LAZY
  42730. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  42731. -# else
  42732. -# ifdef DL_LAZY
  42733. -# define LT_DLLAZY_OR_NOW DL_LAZY
  42734. -# else
  42735. -# ifdef RTLD_NOW
  42736. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  42737. -# else
  42738. -# ifdef DL_NOW
  42739. -# define LT_DLLAZY_OR_NOW DL_NOW
  42740. -# else
  42741. -# define LT_DLLAZY_OR_NOW 0
  42742. -# endif
  42743. -# endif
  42744. -# endif
  42745. -# endif
  42746. -#endif
  42747. -
  42748. -#ifdef __cplusplus
  42749. -extern "C" void exit (int);
  42750. -#endif
  42751. -
  42752. -void fnord() { int i=42;}
  42753. -int main ()
  42754. -{
  42755. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  42756. - int status = $lt_dlunknown;
  42757. -
  42758. - if (self)
  42759. - {
  42760. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  42761. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  42762. - /* dlclose (self); */
  42763. - }
  42764. -
  42765. - exit (status);
  42766. -}
  42767. -EOF
  42768. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42769. - (eval $ac_link) 2>&5
  42770. - ac_status=$?
  42771. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42772. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  42773. - (./conftest; exit; ) 2>/dev/null
  42774. - lt_status=$?
  42775. - case x$lt_status in
  42776. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  42777. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  42778. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  42779. - esac
  42780. - else :
  42781. - # compilation failed
  42782. - lt_cv_dlopen_self_static=no
  42783. - fi
  42784. -fi
  42785. -rm -fr conftest*
  42786. -
  42787. -
  42788. -fi
  42789. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  42790. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  42791. - fi
  42792. -
  42793. - CPPFLAGS="$save_CPPFLAGS"
  42794. - LDFLAGS="$save_LDFLAGS"
  42795. - LIBS="$save_LIBS"
  42796. - ;;
  42797. - esac
  42798. -
  42799. - case $lt_cv_dlopen_self in
  42800. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  42801. - *) enable_dlopen_self=unknown ;;
  42802. - esac
  42803. -
  42804. - case $lt_cv_dlopen_self_static in
  42805. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  42806. - *) enable_dlopen_self_static=unknown ;;
  42807. - esac
  42808. -fi
  42809. -
  42810. -
  42811. -# The else clause should only fire when bootstrapping the
  42812. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  42813. -# with your package, and you will get complaints that there are
  42814. -# no rules to generate ltmain.sh.
  42815. -if test -f "$ltmain"; then
  42816. - # See if we are running on zsh, and set the options which allow our commands through
  42817. - # without removal of \ escapes.
  42818. - if test -n "${ZSH_VERSION+set}" ; then
  42819. - setopt NO_GLOB_SUBST
  42820. - fi
  42821. - # Now quote all the things that may contain metacharacters while being
  42822. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  42823. - # variables and quote the copies for generation of the libtool script.
  42824. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  42825. - SED SHELL STRIP \
  42826. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  42827. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  42828. - deplibs_check_method reload_flag reload_cmds need_locks \
  42829. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  42830. - lt_cv_sys_global_symbol_to_c_name_address \
  42831. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  42832. - old_postinstall_cmds old_postuninstall_cmds \
  42833. - compiler_GCJ \
  42834. - CC_GCJ \
  42835. - LD_GCJ \
  42836. - lt_prog_compiler_wl_GCJ \
  42837. - lt_prog_compiler_pic_GCJ \
  42838. - lt_prog_compiler_static_GCJ \
  42839. - lt_prog_compiler_no_builtin_flag_GCJ \
  42840. - export_dynamic_flag_spec_GCJ \
  42841. - thread_safe_flag_spec_GCJ \
  42842. - whole_archive_flag_spec_GCJ \
  42843. - enable_shared_with_static_runtimes_GCJ \
  42844. - old_archive_cmds_GCJ \
  42845. - old_archive_from_new_cmds_GCJ \
  42846. - predep_objects_GCJ \
  42847. - postdep_objects_GCJ \
  42848. - predeps_GCJ \
  42849. - postdeps_GCJ \
  42850. - compiler_lib_search_path_GCJ \
  42851. - archive_cmds_GCJ \
  42852. - archive_expsym_cmds_GCJ \
  42853. - postinstall_cmds_GCJ \
  42854. - postuninstall_cmds_GCJ \
  42855. - old_archive_from_expsyms_cmds_GCJ \
  42856. - allow_undefined_flag_GCJ \
  42857. - no_undefined_flag_GCJ \
  42858. - export_symbols_cmds_GCJ \
  42859. - hardcode_libdir_flag_spec_GCJ \
  42860. - hardcode_libdir_flag_spec_ld_GCJ \
  42861. - hardcode_libdir_separator_GCJ \
  42862. - hardcode_automatic_GCJ \
  42863. - module_cmds_GCJ \
  42864. - module_expsym_cmds_GCJ \
  42865. - lt_cv_prog_compiler_c_o_GCJ \
  42866. - exclude_expsyms_GCJ \
  42867. - include_expsyms_GCJ; do
  42868. -
  42869. - case $var in
  42870. - old_archive_cmds_GCJ | \
  42871. - old_archive_from_new_cmds_GCJ | \
  42872. - archive_cmds_GCJ | \
  42873. - archive_expsym_cmds_GCJ | \
  42874. - module_cmds_GCJ | \
  42875. - module_expsym_cmds_GCJ | \
  42876. - old_archive_from_expsyms_cmds_GCJ | \
  42877. - export_symbols_cmds_GCJ | \
  42878. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  42879. - postinstall_cmds | postuninstall_cmds | \
  42880. - old_postinstall_cmds | old_postuninstall_cmds | \
  42881. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  42882. - # Double-quote double-evaled strings.
  42883. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  42884. - ;;
  42885. - *)
  42886. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  42887. - ;;
  42888. - esac
  42889. - done
  42890. -
  42891. - case $lt_echo in
  42892. - *'\$0 --fallback-echo"')
  42893. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  42894. - ;;
  42895. - esac
  42896. -
  42897. -cfgfile="$ofile"
  42898. -
  42899. - cat <<__EOF__ >> "$cfgfile"
  42900. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  42901. -
  42902. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42903. -
  42904. -# Shell to use when invoking shell scripts.
  42905. -SHELL=$lt_SHELL
  42906. -
  42907. -# Whether or not to build shared libraries.
  42908. -build_libtool_libs=$enable_shared
  42909. -
  42910. -# Whether or not to build static libraries.
  42911. -build_old_libs=$enable_static
  42912. -
  42913. -# Whether or not to add -lc for building shared libraries.
  42914. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  42915. -
  42916. -# Whether or not to disallow shared libs when runtime libs are static
  42917. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  42918. -
  42919. -# Whether or not to optimize for fast installation.
  42920. -fast_install=$enable_fast_install
  42921. -
  42922. -# The host system.
  42923. -host_alias=$host_alias
  42924. -host=$host
  42925. -
  42926. -# An echo program that does not interpret backslashes.
  42927. -echo=$lt_echo
  42928. -
  42929. -# The archiver.
  42930. -AR=$lt_AR
  42931. -AR_FLAGS=$lt_AR_FLAGS
  42932. -
  42933. -# A C compiler.
  42934. -LTCC=$lt_LTCC
  42935. -
  42936. -# A language-specific compiler.
  42937. -CC=$lt_compiler_GCJ
  42938. -
  42939. -# Is the compiler the GNU C compiler?
  42940. -with_gcc=$GCC_GCJ
  42941. -
  42942. -# An ERE matcher.
  42943. -EGREP=$lt_EGREP
  42944. -
  42945. -# The linker used to build libraries.
  42946. -LD=$lt_LD_GCJ
  42947. -
  42948. -# Whether we need hard or soft links.
  42949. -LN_S=$lt_LN_S
  42950. -
  42951. -# A BSD-compatible nm program.
  42952. -NM=$lt_NM
  42953. -
  42954. -# A symbol stripping program
  42955. -STRIP=$lt_STRIP
  42956. -
  42957. -# Used to examine libraries when file_magic_cmd begins "file"
  42958. -MAGIC_CMD=$MAGIC_CMD
  42959. -
  42960. -# Used on cygwin: DLL creation program.
  42961. -DLLTOOL="$DLLTOOL"
  42962. -
  42963. -# Used on cygwin: object dumper.
  42964. -OBJDUMP="$OBJDUMP"
  42965. -
  42966. -# Used on cygwin: assembler.
  42967. -AS="$AS"
  42968. -
  42969. -# The name of the directory that contains temporary libtool files.
  42970. -objdir=$objdir
  42971. -
  42972. -# How to create reloadable object files.
  42973. -reload_flag=$lt_reload_flag
  42974. -reload_cmds=$lt_reload_cmds
  42975. -
  42976. -# How to pass a linker flag through the compiler.
  42977. -wl=$lt_lt_prog_compiler_wl_GCJ
  42978. -
  42979. -# Object file suffix (normally "o").
  42980. -objext="$ac_objext"
  42981. -
  42982. -# Old archive suffix (normally "a").
  42983. -libext="$libext"
  42984. -
  42985. -# Shared library suffix (normally ".so").
  42986. -shrext_cmds='$shrext_cmds'
  42987. -
  42988. -# Executable file suffix (normally "").
  42989. -exeext="$exeext"
  42990. -
  42991. -# Additional compiler flags for building library objects.
  42992. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  42993. -pic_mode=$pic_mode
  42994. -
  42995. -# What is the maximum length of a command?
  42996. -max_cmd_len=$lt_cv_sys_max_cmd_len
  42997. -
  42998. -# Does compiler simultaneously support -c and -o options?
  42999. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  43000. -
  43001. -# Must we lock files when doing compilation ?
  43002. -need_locks=$lt_need_locks
  43003. -
  43004. -# Do we need the lib prefix for modules?
  43005. -need_lib_prefix=$need_lib_prefix
  43006. -
  43007. -# Do we need a version for libraries?
  43008. -need_version=$need_version
  43009. -
  43010. -# Whether dlopen is supported.
  43011. -dlopen_support=$enable_dlopen
  43012. -
  43013. -# Whether dlopen of programs is supported.
  43014. -dlopen_self=$enable_dlopen_self
  43015. -
  43016. -# Whether dlopen of statically linked programs is supported.
  43017. -dlopen_self_static=$enable_dlopen_self_static
  43018. -
  43019. -# Compiler flag to prevent dynamic linking.
  43020. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  43021. -
  43022. -# Compiler flag to turn off builtin functions.
  43023. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  43024. -
  43025. -# Compiler flag to allow reflexive dlopens.
  43026. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  43027. -
  43028. -# Compiler flag to generate shared objects directly from archives.
  43029. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  43030. -
  43031. -# Compiler flag to generate thread-safe objects.
  43032. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  43033. -
  43034. -# Library versioning type.
  43035. -version_type=$version_type
  43036. -
  43037. -# Format of library name prefix.
  43038. -libname_spec=$lt_libname_spec
  43039. -
  43040. -# List of archive names. First name is the real one, the rest are links.
  43041. -# The last name is the one that the linker finds with -lNAME.
  43042. -library_names_spec=$lt_library_names_spec
  43043. -
  43044. -# The coded name of the library, if different from the real name.
  43045. -soname_spec=$lt_soname_spec
  43046. -
  43047. -# Commands used to build and install an old-style archive.
  43048. -RANLIB=$lt_RANLIB
  43049. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  43050. -old_postinstall_cmds=$lt_old_postinstall_cmds
  43051. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43052. -
  43053. -# Create an old-style archive from a shared archive.
  43054. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  43055. -
  43056. -# Create a temporary old-style archive to link instead of a shared archive.
  43057. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  43058. -
  43059. -# Commands used to build and install a shared archive.
  43060. -archive_cmds=$lt_archive_cmds_GCJ
  43061. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  43062. -postinstall_cmds=$lt_postinstall_cmds
  43063. -postuninstall_cmds=$lt_postuninstall_cmds
  43064. -
  43065. -# Commands used to build a loadable module (assumed same as above if empty)
  43066. -module_cmds=$lt_module_cmds_GCJ
  43067. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  43068. -
  43069. -# Commands to strip libraries.
  43070. -old_striplib=$lt_old_striplib
  43071. -striplib=$lt_striplib
  43072. -
  43073. -# Dependencies to place before the objects being linked to create a
  43074. -# shared library.
  43075. -predep_objects=$lt_predep_objects_GCJ
  43076. -
  43077. -# Dependencies to place after the objects being linked to create a
  43078. -# shared library.
  43079. -postdep_objects=$lt_postdep_objects_GCJ
  43080. -
  43081. -# Dependencies to place before the objects being linked to create a
  43082. -# shared library.
  43083. -predeps=$lt_predeps_GCJ
  43084. -
  43085. -# Dependencies to place after the objects being linked to create a
  43086. -# shared library.
  43087. -postdeps=$lt_postdeps_GCJ
  43088. -
  43089. -# The library search path used internally by the compiler when linking
  43090. -# a shared library.
  43091. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  43092. -
  43093. -# Method to check whether dependent libraries are shared objects.
  43094. -deplibs_check_method=$lt_deplibs_check_method
  43095. -
  43096. -# Command to use when deplibs_check_method == file_magic.
  43097. -file_magic_cmd=$lt_file_magic_cmd
  43098. -
  43099. -# Flag that allows shared libraries with undefined symbols to be built.
  43100. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  43101. -
  43102. -# Flag that forces no undefined symbols.
  43103. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  43104. -
  43105. -# Commands used to finish a libtool library installation in a directory.
  43106. -finish_cmds=$lt_finish_cmds
  43107. -
  43108. -# Same as above, but a single script fragment to be evaled but not shown.
  43109. -finish_eval=$lt_finish_eval
  43110. -
  43111. -# Take the output of nm and produce a listing of raw symbols and C names.
  43112. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43113. -
  43114. -# Transform the output of nm in a proper C declaration
  43115. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43116. -
  43117. -# Transform the output of nm in a C name address pair
  43118. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43119. -
  43120. -# This is the shared library runtime path variable.
  43121. -runpath_var=$runpath_var
  43122. -
  43123. -# This is the shared library path variable.
  43124. -shlibpath_var=$shlibpath_var
  43125. -
  43126. -# Is shlibpath searched before the hard-coded library search path?
  43127. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43128. -
  43129. -# How to hardcode a shared library path into an executable.
  43130. -hardcode_action=$hardcode_action_GCJ
  43131. -
  43132. -# Whether we should hardcode library paths into libraries.
  43133. -hardcode_into_libs=$hardcode_into_libs
  43134. -
  43135. -# Flag to hardcode \$libdir into a binary during linking.
  43136. -# This must work even if \$libdir does not exist.
  43137. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  43138. -
  43139. -# If ld is used when linking, flag to hardcode \$libdir into
  43140. -# a binary during linking. This must work even if \$libdir does
  43141. -# not exist.
  43142. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  43143. -
  43144. -# Whether we need a single -rpath flag with a separated argument.
  43145. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  43146. -
  43147. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  43148. -# resulting binary.
  43149. -hardcode_direct=$hardcode_direct_GCJ
  43150. -
  43151. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  43152. -# resulting binary.
  43153. -hardcode_minus_L=$hardcode_minus_L_GCJ
  43154. -
  43155. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  43156. -# the resulting binary.
  43157. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  43158. -
  43159. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  43160. -# and all subsequent libraries and executables linked against it.
  43161. -hardcode_automatic=$hardcode_automatic_GCJ
  43162. -
  43163. -# Variables whose values should be saved in libtool wrapper scripts and
  43164. -# restored at relink time.
  43165. -variables_saved_for_relink="$variables_saved_for_relink"
  43166. -
  43167. -# Whether libtool must link a program against all its dependency libraries.
  43168. -link_all_deplibs=$link_all_deplibs_GCJ
  43169. -
  43170. -# Compile-time system search path for libraries
  43171. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43172. -
  43173. -# Run-time system search path for libraries
  43174. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43175. -
  43176. -# Fix the shell variable \$srcfile for the compiler.
  43177. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  43178. -
  43179. -# Set to yes if exported symbols are required.
  43180. -always_export_symbols=$always_export_symbols_GCJ
  43181. -
  43182. -# The commands to list exported symbols.
  43183. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  43184. -
  43185. -# The commands to extract the exported symbol list from a shared archive.
  43186. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43187. -
  43188. -# Symbols that should not be listed in the preloaded symbols.
  43189. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  43190. -
  43191. -# Symbols that must always be exported.
  43192. -include_expsyms=$lt_include_expsyms_GCJ
  43193. -
  43194. -# ### END LIBTOOL TAG CONFIG: $tagname
  43195. -
  43196. -__EOF__
  43197. -
  43198. -
  43199. -else
  43200. - # If there is no Makefile yet, we rely on a make rule to execute
  43201. - # `config.status --recheck' to rerun these tests and create the
  43202. - # libtool script then.
  43203. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  43204. - if test -f "$ltmain_in"; then
  43205. - test -f Makefile && make "$ltmain"
  43206. - fi
  43207. -fi
  43208. -
  43209. -
  43210. -ac_ext=c
  43211. -ac_cpp='$CPP $CPPFLAGS'
  43212. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43213. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43214. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43215. -
  43216. -CC="$lt_save_CC"
  43217. -
  43218. - else
  43219. - tagname=""
  43220. - fi
  43221. - ;;
  43222. -
  43223. - RC)
  43224. -
  43225. -
  43226. -# Source file extension for RC test sources.
  43227. -ac_ext=rc
  43228. -
  43229. -# Object file extension for compiled RC test sources.
  43230. -objext=o
  43231. -objext_RC=$objext
  43232. -
  43233. -# Code to be used in simple compile tests
  43234. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  43235. -
  43236. -# Code to be used in simple link tests
  43237. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  43238. -
  43239. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  43240. -
  43241. -# If no C compiler was specified, use CC.
  43242. -LTCC=${LTCC-"$CC"}
  43243. -
  43244. -# Allow CC to be a program name with arguments.
  43245. -compiler=$CC
  43246. -
  43247. -
  43248. -# Allow CC to be a program name with arguments.
  43249. -lt_save_CC="$CC"
  43250. -CC=${RC-"windres"}
  43251. -compiler=$CC
  43252. -compiler_RC=$CC
  43253. -lt_cv_prog_compiler_c_o_RC=yes
  43254. -
  43255. -# The else clause should only fire when bootstrapping the
  43256. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  43257. -# with your package, and you will get complaints that there are
  43258. -# no rules to generate ltmain.sh.
  43259. -if test -f "$ltmain"; then
  43260. - # See if we are running on zsh, and set the options which allow our commands through
  43261. - # without removal of \ escapes.
  43262. - if test -n "${ZSH_VERSION+set}" ; then
  43263. - setopt NO_GLOB_SUBST
  43264. - fi
  43265. - # Now quote all the things that may contain metacharacters while being
  43266. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  43267. - # variables and quote the copies for generation of the libtool script.
  43268. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  43269. - SED SHELL STRIP \
  43270. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  43271. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  43272. - deplibs_check_method reload_flag reload_cmds need_locks \
  43273. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  43274. - lt_cv_sys_global_symbol_to_c_name_address \
  43275. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  43276. - old_postinstall_cmds old_postuninstall_cmds \
  43277. - compiler_RC \
  43278. - CC_RC \
  43279. - LD_RC \
  43280. - lt_prog_compiler_wl_RC \
  43281. - lt_prog_compiler_pic_RC \
  43282. - lt_prog_compiler_static_RC \
  43283. - lt_prog_compiler_no_builtin_flag_RC \
  43284. - export_dynamic_flag_spec_RC \
  43285. - thread_safe_flag_spec_RC \
  43286. - whole_archive_flag_spec_RC \
  43287. - enable_shared_with_static_runtimes_RC \
  43288. - old_archive_cmds_RC \
  43289. - old_archive_from_new_cmds_RC \
  43290. - predep_objects_RC \
  43291. - postdep_objects_RC \
  43292. - predeps_RC \
  43293. - postdeps_RC \
  43294. - compiler_lib_search_path_RC \
  43295. - archive_cmds_RC \
  43296. - archive_expsym_cmds_RC \
  43297. - postinstall_cmds_RC \
  43298. - postuninstall_cmds_RC \
  43299. - old_archive_from_expsyms_cmds_RC \
  43300. - allow_undefined_flag_RC \
  43301. - no_undefined_flag_RC \
  43302. - export_symbols_cmds_RC \
  43303. - hardcode_libdir_flag_spec_RC \
  43304. - hardcode_libdir_flag_spec_ld_RC \
  43305. - hardcode_libdir_separator_RC \
  43306. - hardcode_automatic_RC \
  43307. - module_cmds_RC \
  43308. - module_expsym_cmds_RC \
  43309. - lt_cv_prog_compiler_c_o_RC \
  43310. - exclude_expsyms_RC \
  43311. - include_expsyms_RC; do
  43312. -
  43313. - case $var in
  43314. - old_archive_cmds_RC | \
  43315. - old_archive_from_new_cmds_RC | \
  43316. - archive_cmds_RC | \
  43317. - archive_expsym_cmds_RC | \
  43318. - module_cmds_RC | \
  43319. - module_expsym_cmds_RC | \
  43320. - old_archive_from_expsyms_cmds_RC | \
  43321. - export_symbols_cmds_RC | \
  43322. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  43323. - postinstall_cmds | postuninstall_cmds | \
  43324. - old_postinstall_cmds | old_postuninstall_cmds | \
  43325. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  43326. - # Double-quote double-evaled strings.
  43327. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  43328. - ;;
  43329. - *)
  43330. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  43331. - ;;
  43332. - esac
  43333. - done
  43334. -
  43335. - case $lt_echo in
  43336. - *'\$0 --fallback-echo"')
  43337. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  43338. - ;;
  43339. - esac
  43340. -
  43341. -cfgfile="$ofile"
  43342. -
  43343. - cat <<__EOF__ >> "$cfgfile"
  43344. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  43345. -
  43346. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43347. -
  43348. -# Shell to use when invoking shell scripts.
  43349. -SHELL=$lt_SHELL
  43350. -
  43351. -# Whether or not to build shared libraries.
  43352. -build_libtool_libs=$enable_shared
  43353. -
  43354. -# Whether or not to build static libraries.
  43355. -build_old_libs=$enable_static
  43356. -
  43357. -# Whether or not to add -lc for building shared libraries.
  43358. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  43359. -
  43360. -# Whether or not to disallow shared libs when runtime libs are static
  43361. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  43362. -
  43363. -# Whether or not to optimize for fast installation.
  43364. -fast_install=$enable_fast_install
  43365. -
  43366. -# The host system.
  43367. -host_alias=$host_alias
  43368. -host=$host
  43369. -
  43370. -# An echo program that does not interpret backslashes.
  43371. -echo=$lt_echo
  43372. -
  43373. -# The archiver.
  43374. -AR=$lt_AR
  43375. -AR_FLAGS=$lt_AR_FLAGS
  43376. -
  43377. -# A C compiler.
  43378. -LTCC=$lt_LTCC
  43379. -
  43380. -# A language-specific compiler.
  43381. -CC=$lt_compiler_RC
  43382. -
  43383. -# Is the compiler the GNU C compiler?
  43384. -with_gcc=$GCC_RC
  43385. -
  43386. -# An ERE matcher.
  43387. -EGREP=$lt_EGREP
  43388. -
  43389. -# The linker used to build libraries.
  43390. -LD=$lt_LD_RC
  43391. -
  43392. -# Whether we need hard or soft links.
  43393. -LN_S=$lt_LN_S
  43394. -
  43395. -# A BSD-compatible nm program.
  43396. -NM=$lt_NM
  43397. -
  43398. -# A symbol stripping program
  43399. -STRIP=$lt_STRIP
  43400. -
  43401. -# Used to examine libraries when file_magic_cmd begins "file"
  43402. -MAGIC_CMD=$MAGIC_CMD
  43403. -
  43404. -# Used on cygwin: DLL creation program.
  43405. -DLLTOOL="$DLLTOOL"
  43406. -
  43407. -# Used on cygwin: object dumper.
  43408. -OBJDUMP="$OBJDUMP"
  43409. -
  43410. -# Used on cygwin: assembler.
  43411. -AS="$AS"
  43412. -
  43413. -# The name of the directory that contains temporary libtool files.
  43414. -objdir=$objdir
  43415. -
  43416. -# How to create reloadable object files.
  43417. -reload_flag=$lt_reload_flag
  43418. -reload_cmds=$lt_reload_cmds
  43419. -
  43420. -# How to pass a linker flag through the compiler.
  43421. -wl=$lt_lt_prog_compiler_wl_RC
  43422. -
  43423. -# Object file suffix (normally "o").
  43424. -objext="$ac_objext"
  43425. -
  43426. -# Old archive suffix (normally "a").
  43427. -libext="$libext"
  43428. -
  43429. -# Shared library suffix (normally ".so").
  43430. -shrext_cmds='$shrext_cmds'
  43431. -
  43432. -# Executable file suffix (normally "").
  43433. -exeext="$exeext"
  43434. -
  43435. -# Additional compiler flags for building library objects.
  43436. -pic_flag=$lt_lt_prog_compiler_pic_RC
  43437. -pic_mode=$pic_mode
  43438. -
  43439. -# What is the maximum length of a command?
  43440. -max_cmd_len=$lt_cv_sys_max_cmd_len
  43441. -
  43442. -# Does compiler simultaneously support -c and -o options?
  43443. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  43444. -
  43445. -# Must we lock files when doing compilation ?
  43446. -need_locks=$lt_need_locks
  43447. -
  43448. -# Do we need the lib prefix for modules?
  43449. -need_lib_prefix=$need_lib_prefix
  43450. -
  43451. -# Do we need a version for libraries?
  43452. -need_version=$need_version
  43453. -
  43454. -# Whether dlopen is supported.
  43455. -dlopen_support=$enable_dlopen
  43456. -
  43457. -# Whether dlopen of programs is supported.
  43458. -dlopen_self=$enable_dlopen_self
  43459. -
  43460. -# Whether dlopen of statically linked programs is supported.
  43461. -dlopen_self_static=$enable_dlopen_self_static
  43462. -
  43463. -# Compiler flag to prevent dynamic linking.
  43464. -link_static_flag=$lt_lt_prog_compiler_static_RC
  43465. -
  43466. -# Compiler flag to turn off builtin functions.
  43467. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  43468. -
  43469. -# Compiler flag to allow reflexive dlopens.
  43470. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  43471. -
  43472. -# Compiler flag to generate shared objects directly from archives.
  43473. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  43474. -
  43475. -# Compiler flag to generate thread-safe objects.
  43476. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  43477. -
  43478. -# Library versioning type.
  43479. -version_type=$version_type
  43480. -
  43481. -# Format of library name prefix.
  43482. -libname_spec=$lt_libname_spec
  43483. -
  43484. -# List of archive names. First name is the real one, the rest are links.
  43485. -# The last name is the one that the linker finds with -lNAME.
  43486. -library_names_spec=$lt_library_names_spec
  43487. -
  43488. -# The coded name of the library, if different from the real name.
  43489. -soname_spec=$lt_soname_spec
  43490. -
  43491. -# Commands used to build and install an old-style archive.
  43492. -RANLIB=$lt_RANLIB
  43493. -old_archive_cmds=$lt_old_archive_cmds_RC
  43494. -old_postinstall_cmds=$lt_old_postinstall_cmds
  43495. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43496. -
  43497. -# Create an old-style archive from a shared archive.
  43498. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  43499. -
  43500. -# Create a temporary old-style archive to link instead of a shared archive.
  43501. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  43502. -
  43503. -# Commands used to build and install a shared archive.
  43504. -archive_cmds=$lt_archive_cmds_RC
  43505. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  43506. -postinstall_cmds=$lt_postinstall_cmds
  43507. -postuninstall_cmds=$lt_postuninstall_cmds
  43508. -
  43509. -# Commands used to build a loadable module (assumed same as above if empty)
  43510. -module_cmds=$lt_module_cmds_RC
  43511. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  43512. -
  43513. -# Commands to strip libraries.
  43514. -old_striplib=$lt_old_striplib
  43515. -striplib=$lt_striplib
  43516. -
  43517. -# Dependencies to place before the objects being linked to create a
  43518. -# shared library.
  43519. -predep_objects=$lt_predep_objects_RC
  43520. -
  43521. -# Dependencies to place after the objects being linked to create a
  43522. -# shared library.
  43523. -postdep_objects=$lt_postdep_objects_RC
  43524. -
  43525. -# Dependencies to place before the objects being linked to create a
  43526. -# shared library.
  43527. -predeps=$lt_predeps_RC
  43528. -
  43529. -# Dependencies to place after the objects being linked to create a
  43530. -# shared library.
  43531. -postdeps=$lt_postdeps_RC
  43532. -
  43533. -# The library search path used internally by the compiler when linking
  43534. -# a shared library.
  43535. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  43536. -
  43537. -# Method to check whether dependent libraries are shared objects.
  43538. -deplibs_check_method=$lt_deplibs_check_method
  43539. -
  43540. -# Command to use when deplibs_check_method == file_magic.
  43541. -file_magic_cmd=$lt_file_magic_cmd
  43542. -
  43543. -# Flag that allows shared libraries with undefined symbols to be built.
  43544. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  43545. -
  43546. -# Flag that forces no undefined symbols.
  43547. -no_undefined_flag=$lt_no_undefined_flag_RC
  43548. -
  43549. -# Commands used to finish a libtool library installation in a directory.
  43550. -finish_cmds=$lt_finish_cmds
  43551. -
  43552. -# Same as above, but a single script fragment to be evaled but not shown.
  43553. -finish_eval=$lt_finish_eval
  43554. -
  43555. -# Take the output of nm and produce a listing of raw symbols and C names.
  43556. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43557. -
  43558. -# Transform the output of nm in a proper C declaration
  43559. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43560. -
  43561. -# Transform the output of nm in a C name address pair
  43562. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43563. -
  43564. -# This is the shared library runtime path variable.
  43565. -runpath_var=$runpath_var
  43566. -
  43567. -# This is the shared library path variable.
  43568. -shlibpath_var=$shlibpath_var
  43569. -
  43570. -# Is shlibpath searched before the hard-coded library search path?
  43571. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43572. -
  43573. -# How to hardcode a shared library path into an executable.
  43574. -hardcode_action=$hardcode_action_RC
  43575. -
  43576. -# Whether we should hardcode library paths into libraries.
  43577. -hardcode_into_libs=$hardcode_into_libs
  43578. -
  43579. -# Flag to hardcode \$libdir into a binary during linking.
  43580. -# This must work even if \$libdir does not exist.
  43581. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  43582. -
  43583. -# If ld is used when linking, flag to hardcode \$libdir into
  43584. -# a binary during linking. This must work even if \$libdir does
  43585. -# not exist.
  43586. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  43587. -
  43588. -# Whether we need a single -rpath flag with a separated argument.
  43589. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  43590. -
  43591. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  43592. -# resulting binary.
  43593. -hardcode_direct=$hardcode_direct_RC
  43594. -
  43595. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  43596. -# resulting binary.
  43597. -hardcode_minus_L=$hardcode_minus_L_RC
  43598. -
  43599. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  43600. -# the resulting binary.
  43601. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  43602. -
  43603. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  43604. -# and all subsequent libraries and executables linked against it.
  43605. -hardcode_automatic=$hardcode_automatic_RC
  43606. -
  43607. -# Variables whose values should be saved in libtool wrapper scripts and
  43608. -# restored at relink time.
  43609. -variables_saved_for_relink="$variables_saved_for_relink"
  43610. -
  43611. -# Whether libtool must link a program against all its dependency libraries.
  43612. -link_all_deplibs=$link_all_deplibs_RC
  43613. -
  43614. -# Compile-time system search path for libraries
  43615. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43616. -
  43617. -# Run-time system search path for libraries
  43618. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43619. -
  43620. -# Fix the shell variable \$srcfile for the compiler.
  43621. -fix_srcfile_path="$fix_srcfile_path_RC"
  43622. -
  43623. -# Set to yes if exported symbols are required.
  43624. -always_export_symbols=$always_export_symbols_RC
  43625. -
  43626. -# The commands to list exported symbols.
  43627. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  43628. -
  43629. -# The commands to extract the exported symbol list from a shared archive.
  43630. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43631. -
  43632. -# Symbols that should not be listed in the preloaded symbols.
  43633. -exclude_expsyms=$lt_exclude_expsyms_RC
  43634. -
  43635. -# Symbols that must always be exported.
  43636. -include_expsyms=$lt_include_expsyms_RC
  43637. -
  43638. -# ### END LIBTOOL TAG CONFIG: $tagname
  43639. -
  43640. -__EOF__
  43641. -
  43642. -
  43643. -else
  43644. - # If there is no Makefile yet, we rely on a make rule to execute
  43645. - # `config.status --recheck' to rerun these tests and create the
  43646. - # libtool script then.
  43647. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  43648. - if test -f "$ltmain_in"; then
  43649. - test -f Makefile && make "$ltmain"
  43650. - fi
  43651. -fi
  43652. -
  43653. -
  43654. -ac_ext=c
  43655. -ac_cpp='$CPP $CPPFLAGS'
  43656. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43657. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43658. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43659. -
  43660. -CC="$lt_save_CC"
  43661. -
  43662. - ;;
  43663. -
  43664. - *)
  43665. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  43666. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  43667. - { (exit 1); exit 1; }; }
  43668. - ;;
  43669. - esac
  43670. -
  43671. - # Append the new tag name to the list of available tags.
  43672. - if test -n "$tagname" ; then
  43673. - available_tags="$available_tags $tagname"
  43674. - fi
  43675. - fi
  43676. - done
  43677. - IFS="$lt_save_ifs"
  43678. -
  43679. - # Now substitute the updated list of available tags.
  43680. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  43681. - mv "${ofile}T" "$ofile"
  43682. - chmod +x "$ofile"
  43683. - else
  43684. - rm -f "${ofile}T"
  43685. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  43686. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  43687. - { (exit 1); exit 1; }; }
  43688. - fi
  43689. -fi
  43690. -
  43691. -
  43692. -
  43693. -# This can be used to rebuild libtool when needed
  43694. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  43695. -
  43696. -# Always use our own libtool.
  43697. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  43698. -
  43699. -# Prevent multiple expansion
  43700. -
  43701. -
  43702. -
  43703. -
  43704. -
  43705. -
  43706. -
  43707. -
  43708. -
  43709. -
  43710. -
  43711. -
  43712. -
  43713. -
  43714. -
  43715. -
  43716. -
  43717. -
  43718. -
  43719. -
  43720. -
  43721. -
  43722. -{ echo "$as_me:$LINENO: checking for ldexp in -lm" >&5
  43723. -echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6; }
  43724. -if test "${ac_cv_lib_m_ldexp+set}" = set; then
  43725. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43726. -else
  43727. - ac_check_lib_save_LIBS=$LIBS
  43728. -LIBS="-lm $LIBS"
  43729. -cat >conftest.$ac_ext <<_ACEOF
  43730. -/* confdefs.h. */
  43731. -_ACEOF
  43732. -cat confdefs.h >>conftest.$ac_ext
  43733. -cat >>conftest.$ac_ext <<_ACEOF
  43734. -/* end confdefs.h. */
  43735. -
  43736. -/* Override any GCC internal prototype to avoid an error.
  43737. - Use char because int might match the return type of a GCC
  43738. - builtin and then its argument prototype would still apply. */
  43739. -#ifdef __cplusplus
  43740. -extern "C"
  43741. -#endif
  43742. -char ldexp ();
  43743. -int
  43744. -main ()
  43745. -{
  43746. -return ldexp ();
  43747. - ;
  43748. - return 0;
  43749. -}
  43750. -_ACEOF
  43751. -rm -f conftest.$ac_objext conftest$ac_exeext
  43752. -if { (ac_try="$ac_link"
  43753. -case "(($ac_try" in
  43754. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43755. - *) ac_try_echo=$ac_try;;
  43756. -esac
  43757. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43758. - (eval "$ac_link") 2>conftest.er1
  43759. - ac_status=$?
  43760. - grep -v '^ *+' conftest.er1 >conftest.err
  43761. - rm -f conftest.er1
  43762. - cat conftest.err >&5
  43763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43764. - (exit $ac_status); } &&
  43765. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43766. - { (case "(($ac_try" in
  43767. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43768. - *) ac_try_echo=$ac_try;;
  43769. -esac
  43770. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43771. - (eval "$ac_try") 2>&5
  43772. - ac_status=$?
  43773. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43774. - (exit $ac_status); }; } &&
  43775. - { ac_try='test -s conftest$ac_exeext'
  43776. - { (case "(($ac_try" in
  43777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43778. - *) ac_try_echo=$ac_try;;
  43779. -esac
  43780. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43781. - (eval "$ac_try") 2>&5
  43782. - ac_status=$?
  43783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43784. - (exit $ac_status); }; }; then
  43785. - ac_cv_lib_m_ldexp=yes
  43786. -else
  43787. - echo "$as_me: failed program was:" >&5
  43788. -sed 's/^/| /' conftest.$ac_ext >&5
  43789. -
  43790. - ac_cv_lib_m_ldexp=no
  43791. -fi
  43792. -
  43793. -rm -f core conftest.err conftest.$ac_objext \
  43794. - conftest$ac_exeext conftest.$ac_ext
  43795. -LIBS=$ac_check_lib_save_LIBS
  43796. -fi
  43797. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5
  43798. -echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6; }
  43799. -if test $ac_cv_lib_m_ldexp = yes; then
  43800. - cat >>confdefs.h <<_ACEOF
  43801. -#define HAVE_LIBM 1
  43802. -_ACEOF
  43803. -
  43804. - LIBS="-lm $LIBS"
  43805. -
  43806. -fi
  43807. -
  43808. -
  43809. -{ echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
  43810. -echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
  43811. -if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
  43812. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43813. -else
  43814. - ac_check_lib_save_LIBS=$LIBS
  43815. -LIBS="-laudio $LIBS"
  43816. -cat >conftest.$ac_ext <<_ACEOF
  43817. -/* confdefs.h. */
  43818. -_ACEOF
  43819. -cat confdefs.h >>conftest.$ac_ext
  43820. -cat >>conftest.$ac_ext <<_ACEOF
  43821. -/* end confdefs.h. */
  43822. -
  43823. -/* Override any GCC internal prototype to avoid an error.
  43824. - Use char because int might match the return type of a GCC
  43825. - builtin and then its argument prototype would still apply. */
  43826. -#ifdef __cplusplus
  43827. -extern "C"
  43828. -#endif
  43829. -char alOpenPort ();
  43830. -int
  43831. -main ()
  43832. -{
  43833. -return alOpenPort ();
  43834. - ;
  43835. - return 0;
  43836. -}
  43837. -_ACEOF
  43838. -rm -f conftest.$ac_objext conftest$ac_exeext
  43839. -if { (ac_try="$ac_link"
  43840. -case "(($ac_try" in
  43841. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43842. - *) ac_try_echo=$ac_try;;
  43843. -esac
  43844. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43845. - (eval "$ac_link") 2>conftest.er1
  43846. - ac_status=$?
  43847. - grep -v '^ *+' conftest.er1 >conftest.err
  43848. - rm -f conftest.er1
  43849. - cat conftest.err >&5
  43850. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43851. - (exit $ac_status); } &&
  43852. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43853. - { (case "(($ac_try" in
  43854. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43855. - *) ac_try_echo=$ac_try;;
  43856. -esac
  43857. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43858. - (eval "$ac_try") 2>&5
  43859. - ac_status=$?
  43860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43861. - (exit $ac_status); }; } &&
  43862. - { ac_try='test -s conftest$ac_exeext'
  43863. - { (case "(($ac_try" in
  43864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43865. - *) ac_try_echo=$ac_try;;
  43866. -esac
  43867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43868. - (eval "$ac_try") 2>&5
  43869. - ac_status=$?
  43870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43871. - (exit $ac_status); }; }; then
  43872. - ac_cv_lib_audio_alOpenPort=yes
  43873. -else
  43874. - echo "$as_me: failed program was:" >&5
  43875. -sed 's/^/| /' conftest.$ac_ext >&5
  43876. -
  43877. - ac_cv_lib_audio_alOpenPort=no
  43878. -fi
  43879. -
  43880. -rm -f core conftest.err conftest.$ac_objext \
  43881. - conftest$ac_exeext conftest.$ac_ext
  43882. -LIBS=$ac_check_lib_save_LIBS
  43883. -fi
  43884. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
  43885. -echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
  43886. -if test $ac_cv_lib_audio_alOpenPort = yes; then
  43887. - AUDIO_LIB=-laudio
  43888. -fi
  43889. -
  43890. -
  43891. -
  43892. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  43893. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  43894. -if test "${ac_cv_header_stdc+set}" = set; then
  43895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43896. -else
  43897. - cat >conftest.$ac_ext <<_ACEOF
  43898. -/* confdefs.h. */
  43899. -_ACEOF
  43900. -cat confdefs.h >>conftest.$ac_ext
  43901. -cat >>conftest.$ac_ext <<_ACEOF
  43902. -/* end confdefs.h. */
  43903. -#include <stdlib.h>
  43904. -#include <stdarg.h>
  43905. -#include <string.h>
  43906. -#include <float.h>
  43907. -
  43908. -int
  43909. -main ()
  43910. -{
  43911. -
  43912. - ;
  43913. - return 0;
  43914. -}
  43915. -_ACEOF
  43916. -rm -f conftest.$ac_objext
  43917. -if { (ac_try="$ac_compile"
  43918. -case "(($ac_try" in
  43919. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43920. - *) ac_try_echo=$ac_try;;
  43921. -esac
  43922. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43923. - (eval "$ac_compile") 2>conftest.er1
  43924. - ac_status=$?
  43925. - grep -v '^ *+' conftest.er1 >conftest.err
  43926. - rm -f conftest.er1
  43927. - cat conftest.err >&5
  43928. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43929. - (exit $ac_status); } &&
  43930. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43931. - { (case "(($ac_try" in
  43932. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43933. - *) ac_try_echo=$ac_try;;
  43934. -esac
  43935. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43936. - (eval "$ac_try") 2>&5
  43937. - ac_status=$?
  43938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43939. - (exit $ac_status); }; } &&
  43940. - { ac_try='test -s conftest.$ac_objext'
  43941. - { (case "(($ac_try" in
  43942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43943. - *) ac_try_echo=$ac_try;;
  43944. -esac
  43945. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43946. - (eval "$ac_try") 2>&5
  43947. - ac_status=$?
  43948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43949. - (exit $ac_status); }; }; then
  43950. - ac_cv_header_stdc=yes
  43951. -else
  43952. - echo "$as_me: failed program was:" >&5
  43953. -sed 's/^/| /' conftest.$ac_ext >&5
  43954. -
  43955. - ac_cv_header_stdc=no
  43956. -fi
  43957. -
  43958. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43959. -
  43960. -if test $ac_cv_header_stdc = yes; then
  43961. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  43962. - cat >conftest.$ac_ext <<_ACEOF
  43963. -/* confdefs.h. */
  43964. -_ACEOF
  43965. -cat confdefs.h >>conftest.$ac_ext
  43966. -cat >>conftest.$ac_ext <<_ACEOF
  43967. -/* end confdefs.h. */
  43968. -#include <string.h>
  43969. -
  43970. -_ACEOF
  43971. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43972. - $EGREP "memchr" >/dev/null 2>&1; then
  43973. - :
  43974. -else
  43975. - ac_cv_header_stdc=no
  43976. -fi
  43977. -rm -f conftest*
  43978. -
  43979. -fi
  43980. -
  43981. -if test $ac_cv_header_stdc = yes; then
  43982. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  43983. - cat >conftest.$ac_ext <<_ACEOF
  43984. -/* confdefs.h. */
  43985. -_ACEOF
  43986. -cat confdefs.h >>conftest.$ac_ext
  43987. -cat >>conftest.$ac_ext <<_ACEOF
  43988. -/* end confdefs.h. */
  43989. -#include <stdlib.h>
  43990. -
  43991. -_ACEOF
  43992. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43993. - $EGREP "free" >/dev/null 2>&1; then
  43994. - :
  43995. -else
  43996. - ac_cv_header_stdc=no
  43997. -fi
  43998. -rm -f conftest*
  43999. -
  44000. -fi
  44001. -
  44002. -if test $ac_cv_header_stdc = yes; then
  44003. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  44004. - if test "$cross_compiling" = yes; then
  44005. - :
  44006. -else
  44007. - cat >conftest.$ac_ext <<_ACEOF
  44008. -/* confdefs.h. */
  44009. -_ACEOF
  44010. -cat confdefs.h >>conftest.$ac_ext
  44011. -cat >>conftest.$ac_ext <<_ACEOF
  44012. -/* end confdefs.h. */
  44013. -#include <ctype.h>
  44014. -#include <stdlib.h>
  44015. -#if ((' ' & 0x0FF) == 0x020)
  44016. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  44017. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  44018. -#else
  44019. -# define ISLOWER(c) \
  44020. - (('a' <= (c) && (c) <= 'i') \
  44021. - || ('j' <= (c) && (c) <= 'r') \
  44022. - || ('s' <= (c) && (c) <= 'z'))
  44023. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  44024. -#endif
  44025. -
  44026. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  44027. -int
  44028. -main ()
  44029. -{
  44030. - int i;
  44031. - for (i = 0; i < 256; i++)
  44032. - if (XOR (islower (i), ISLOWER (i))
  44033. - || toupper (i) != TOUPPER (i))
  44034. - return 2;
  44035. - return 0;
  44036. -}
  44037. -_ACEOF
  44038. -rm -f conftest$ac_exeext
  44039. -if { (ac_try="$ac_link"
  44040. -case "(($ac_try" in
  44041. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44042. - *) ac_try_echo=$ac_try;;
  44043. -esac
  44044. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44045. - (eval "$ac_link") 2>&5
  44046. - ac_status=$?
  44047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44048. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44049. - { (case "(($ac_try" in
  44050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44051. - *) ac_try_echo=$ac_try;;
  44052. -esac
  44053. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44054. - (eval "$ac_try") 2>&5
  44055. - ac_status=$?
  44056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44057. - (exit $ac_status); }; }; then
  44058. - :
  44059. -else
  44060. - echo "$as_me: program exited with status $ac_status" >&5
  44061. -echo "$as_me: failed program was:" >&5
  44062. -sed 's/^/| /' conftest.$ac_ext >&5
  44063. -
  44064. -( exit $ac_status )
  44065. -ac_cv_header_stdc=no
  44066. -fi
  44067. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44068. -fi
  44069. -
  44070. -
  44071. -fi
  44072. -fi
  44073. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  44074. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  44075. -if test $ac_cv_header_stdc = yes; then
  44076. -
  44077. -cat >>confdefs.h <<\_ACEOF
  44078. -#define STDC_HEADERS 1
  44079. -_ACEOF
  44080. -
  44081. -fi
  44082. -
  44083. -
  44084. -
  44085. -for ac_header in fcntl.h unistd.h
  44086. -do
  44087. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44088. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44089. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  44090. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  44091. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44092. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44093. -fi
  44094. -ac_res=`eval echo '${'$as_ac_Header'}'`
  44095. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  44096. -echo "${ECHO_T}$ac_res" >&6; }
  44097. -else
  44098. - # Is the header compilable?
  44099. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  44100. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  44101. -cat >conftest.$ac_ext <<_ACEOF
  44102. -/* confdefs.h. */
  44103. -_ACEOF
  44104. -cat confdefs.h >>conftest.$ac_ext
  44105. -cat >>conftest.$ac_ext <<_ACEOF
  44106. -/* end confdefs.h. */
  44107. -$ac_includes_default
  44108. -#include <$ac_header>
  44109. -_ACEOF
  44110. -rm -f conftest.$ac_objext
  44111. -if { (ac_try="$ac_compile"
  44112. -case "(($ac_try" in
  44113. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44114. - *) ac_try_echo=$ac_try;;
  44115. -esac
  44116. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44117. - (eval "$ac_compile") 2>conftest.er1
  44118. - ac_status=$?
  44119. - grep -v '^ *+' conftest.er1 >conftest.err
  44120. - rm -f conftest.er1
  44121. - cat conftest.err >&5
  44122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44123. - (exit $ac_status); } &&
  44124. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44125. - { (case "(($ac_try" in
  44126. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44127. - *) ac_try_echo=$ac_try;;
  44128. -esac
  44129. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44130. - (eval "$ac_try") 2>&5
  44131. - ac_status=$?
  44132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44133. - (exit $ac_status); }; } &&
  44134. - { ac_try='test -s conftest.$ac_objext'
  44135. - { (case "(($ac_try" in
  44136. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44137. - *) ac_try_echo=$ac_try;;
  44138. -esac
  44139. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44140. - (eval "$ac_try") 2>&5
  44141. - ac_status=$?
  44142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44143. - (exit $ac_status); }; }; then
  44144. - ac_header_compiler=yes
  44145. -else
  44146. - echo "$as_me: failed program was:" >&5
  44147. -sed 's/^/| /' conftest.$ac_ext >&5
  44148. -
  44149. - ac_header_compiler=no
  44150. -fi
  44151. -
  44152. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44153. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44154. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  44155. -
  44156. -# Is the header present?
  44157. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  44158. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  44159. -cat >conftest.$ac_ext <<_ACEOF
  44160. -/* confdefs.h. */
  44161. -_ACEOF
  44162. -cat confdefs.h >>conftest.$ac_ext
  44163. -cat >>conftest.$ac_ext <<_ACEOF
  44164. -/* end confdefs.h. */
  44165. -#include <$ac_header>
  44166. -_ACEOF
  44167. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  44168. -case "(($ac_try" in
  44169. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44170. - *) ac_try_echo=$ac_try;;
  44171. -esac
  44172. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44173. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44174. - ac_status=$?
  44175. - grep -v '^ *+' conftest.er1 >conftest.err
  44176. - rm -f conftest.er1
  44177. - cat conftest.err >&5
  44178. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44179. - (exit $ac_status); } >/dev/null; then
  44180. - if test -s conftest.err; then
  44181. - ac_cpp_err=$ac_c_preproc_warn_flag
  44182. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  44183. - else
  44184. - ac_cpp_err=
  44185. - fi
  44186. -else
  44187. - ac_cpp_err=yes
  44188. -fi
  44189. -if test -z "$ac_cpp_err"; then
  44190. - ac_header_preproc=yes
  44191. -else
  44192. - echo "$as_me: failed program was:" >&5
  44193. -sed 's/^/| /' conftest.$ac_ext >&5
  44194. -
  44195. - ac_header_preproc=no
  44196. -fi
  44197. -
  44198. -rm -f conftest.err conftest.$ac_ext
  44199. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44200. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  44201. -
  44202. -# So? What about this header?
  44203. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44204. - yes:no: )
  44205. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  44206. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44207. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  44208. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  44209. - ac_header_preproc=yes
  44210. - ;;
  44211. - no:yes:* )
  44212. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  44213. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  44214. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  44215. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  44216. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  44217. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  44218. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  44219. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  44220. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  44221. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  44222. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  44223. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  44224. -
  44225. - ;;
  44226. -esac
  44227. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  44228. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  44229. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44230. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44231. -else
  44232. - eval "$as_ac_Header=\$ac_header_preproc"
  44233. -fi
  44234. -ac_res=`eval echo '${'$as_ac_Header'}'`
  44235. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  44236. -echo "${ECHO_T}$ac_res" >&6; }
  44237. -
  44238. -fi
  44239. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  44240. - cat >>confdefs.h <<_ACEOF
  44241. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44242. -_ACEOF
  44243. -
  44244. -fi
  44245. -
  44246. -done
  44247. -
  44248. -
  44249. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  44250. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  44251. -if test "${ac_cv_c_const+set}" = set; then
  44252. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44253. -else
  44254. - cat >conftest.$ac_ext <<_ACEOF
  44255. -/* confdefs.h. */
  44256. -_ACEOF
  44257. -cat confdefs.h >>conftest.$ac_ext
  44258. -cat >>conftest.$ac_ext <<_ACEOF
  44259. -/* end confdefs.h. */
  44260. -
  44261. -int
  44262. -main ()
  44263. -{
  44264. -/* FIXME: Include the comments suggested by Paul. */
  44265. -#ifndef __cplusplus
  44266. - /* Ultrix mips cc rejects this. */
  44267. - typedef int charset[2];
  44268. - const charset x;
  44269. - /* SunOS 4.1.1 cc rejects this. */
  44270. - char const *const *ccp;
  44271. - char **p;
  44272. - /* NEC SVR4.0.2 mips cc rejects this. */
  44273. - struct point {int x, y;};
  44274. - static struct point const zero = {0,0};
  44275. - /* AIX XL C 1.02.0.0 rejects this.
  44276. - It does not let you subtract one const X* pointer from another in
  44277. - an arm of an if-expression whose if-part is not a constant
  44278. - expression */
  44279. - const char *g = "string";
  44280. - ccp = &g + (g ? g-g : 0);
  44281. - /* HPUX 7.0 cc rejects these. */
  44282. - ++ccp;
  44283. - p = (char**) ccp;
  44284. - ccp = (char const *const *) p;
  44285. - { /* SCO 3.2v4 cc rejects this. */
  44286. - char *t;
  44287. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  44288. -
  44289. - *t++ = 0;
  44290. - if (s) return 0;
  44291. - }
  44292. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  44293. - int x[] = {25, 17};
  44294. - const int *foo = &x[0];
  44295. - ++foo;
  44296. - }
  44297. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  44298. - typedef const int *iptr;
  44299. - iptr p = 0;
  44300. - ++p;
  44301. - }
  44302. - { /* AIX XL C 1.02.0.0 rejects this saying
  44303. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  44304. - struct s { int j; const int *ap[3]; };
  44305. - struct s *b; b->j = 5;
  44306. - }
  44307. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  44308. - const int foo = 10;
  44309. - if (!foo) return 0;
  44310. - }
  44311. - return !x[0] && !zero.x;
  44312. -#endif
  44313. -
  44314. - ;
  44315. - return 0;
  44316. -}
  44317. -_ACEOF
  44318. -rm -f conftest.$ac_objext
  44319. -if { (ac_try="$ac_compile"
  44320. -case "(($ac_try" in
  44321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44322. - *) ac_try_echo=$ac_try;;
  44323. -esac
  44324. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44325. - (eval "$ac_compile") 2>conftest.er1
  44326. - ac_status=$?
  44327. - grep -v '^ *+' conftest.er1 >conftest.err
  44328. - rm -f conftest.er1
  44329. - cat conftest.err >&5
  44330. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44331. - (exit $ac_status); } &&
  44332. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44333. - { (case "(($ac_try" in
  44334. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44335. - *) ac_try_echo=$ac_try;;
  44336. -esac
  44337. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44338. - (eval "$ac_try") 2>&5
  44339. - ac_status=$?
  44340. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44341. - (exit $ac_status); }; } &&
  44342. - { ac_try='test -s conftest.$ac_objext'
  44343. - { (case "(($ac_try" in
  44344. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44345. - *) ac_try_echo=$ac_try;;
  44346. -esac
  44347. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44348. - (eval "$ac_try") 2>&5
  44349. - ac_status=$?
  44350. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44351. - (exit $ac_status); }; }; then
  44352. - ac_cv_c_const=yes
  44353. -else
  44354. - echo "$as_me: failed program was:" >&5
  44355. -sed 's/^/| /' conftest.$ac_ext >&5
  44356. -
  44357. - ac_cv_c_const=no
  44358. -fi
  44359. -
  44360. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44361. -fi
  44362. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  44363. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  44364. -if test $ac_cv_c_const = no; then
  44365. -
  44366. -cat >>confdefs.h <<\_ACEOF
  44367. -#define const
  44368. -_ACEOF
  44369. -
  44370. -fi
  44371. -
  44372. -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  44373. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  44374. -if test "${ac_cv_c_bigendian+set}" = set; then
  44375. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44376. -else
  44377. - # See if sys/param.h defines the BYTE_ORDER macro.
  44378. -cat >conftest.$ac_ext <<_ACEOF
  44379. -/* confdefs.h. */
  44380. -_ACEOF
  44381. -cat confdefs.h >>conftest.$ac_ext
  44382. -cat >>conftest.$ac_ext <<_ACEOF
  44383. -/* end confdefs.h. */
  44384. -#include <sys/types.h>
  44385. -#include <sys/param.h>
  44386. -
  44387. -int
  44388. -main ()
  44389. -{
  44390. -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  44391. - bogus endian macros
  44392. -#endif
  44393. -
  44394. - ;
  44395. - return 0;
  44396. -}
  44397. -_ACEOF
  44398. -rm -f conftest.$ac_objext
  44399. -if { (ac_try="$ac_compile"
  44400. -case "(($ac_try" in
  44401. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44402. - *) ac_try_echo=$ac_try;;
  44403. -esac
  44404. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44405. - (eval "$ac_compile") 2>conftest.er1
  44406. - ac_status=$?
  44407. - grep -v '^ *+' conftest.er1 >conftest.err
  44408. - rm -f conftest.er1
  44409. - cat conftest.err >&5
  44410. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44411. - (exit $ac_status); } &&
  44412. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44413. - { (case "(($ac_try" in
  44414. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44415. - *) ac_try_echo=$ac_try;;
  44416. -esac
  44417. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44418. - (eval "$ac_try") 2>&5
  44419. - ac_status=$?
  44420. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44421. - (exit $ac_status); }; } &&
  44422. - { ac_try='test -s conftest.$ac_objext'
  44423. - { (case "(($ac_try" in
  44424. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44425. - *) ac_try_echo=$ac_try;;
  44426. -esac
  44427. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44428. - (eval "$ac_try") 2>&5
  44429. - ac_status=$?
  44430. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44431. - (exit $ac_status); }; }; then
  44432. - # It does; now see whether it defined to BIG_ENDIAN or not.
  44433. -cat >conftest.$ac_ext <<_ACEOF
  44434. -/* confdefs.h. */
  44435. -_ACEOF
  44436. -cat confdefs.h >>conftest.$ac_ext
  44437. -cat >>conftest.$ac_ext <<_ACEOF
  44438. -/* end confdefs.h. */
  44439. -#include <sys/types.h>
  44440. -#include <sys/param.h>
  44441. -
  44442. -int
  44443. -main ()
  44444. -{
  44445. -#if BYTE_ORDER != BIG_ENDIAN
  44446. - not big endian
  44447. -#endif
  44448. -
  44449. - ;
  44450. - return 0;
  44451. -}
  44452. -_ACEOF
  44453. -rm -f conftest.$ac_objext
  44454. -if { (ac_try="$ac_compile"
  44455. -case "(($ac_try" in
  44456. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44457. - *) ac_try_echo=$ac_try;;
  44458. -esac
  44459. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44460. - (eval "$ac_compile") 2>conftest.er1
  44461. - ac_status=$?
  44462. - grep -v '^ *+' conftest.er1 >conftest.err
  44463. - rm -f conftest.er1
  44464. - cat conftest.err >&5
  44465. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44466. - (exit $ac_status); } &&
  44467. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44468. - { (case "(($ac_try" in
  44469. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44470. - *) ac_try_echo=$ac_try;;
  44471. -esac
  44472. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44473. - (eval "$ac_try") 2>&5
  44474. - ac_status=$?
  44475. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44476. - (exit $ac_status); }; } &&
  44477. - { ac_try='test -s conftest.$ac_objext'
  44478. - { (case "(($ac_try" in
  44479. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44480. - *) ac_try_echo=$ac_try;;
  44481. -esac
  44482. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44483. - (eval "$ac_try") 2>&5
  44484. - ac_status=$?
  44485. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44486. - (exit $ac_status); }; }; then
  44487. - ac_cv_c_bigendian=yes
  44488. -else
  44489. - echo "$as_me: failed program was:" >&5
  44490. -sed 's/^/| /' conftest.$ac_ext >&5
  44491. -
  44492. - ac_cv_c_bigendian=no
  44493. -fi
  44494. -
  44495. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44496. -else
  44497. - echo "$as_me: failed program was:" >&5
  44498. -sed 's/^/| /' conftest.$ac_ext >&5
  44499. -
  44500. - # It does not; compile a test program.
  44501. -if test "$cross_compiling" = yes; then
  44502. - # try to guess the endianness by grepping values into an object file
  44503. - ac_cv_c_bigendian=unknown
  44504. - cat >conftest.$ac_ext <<_ACEOF
  44505. -/* confdefs.h. */
  44506. -_ACEOF
  44507. -cat confdefs.h >>conftest.$ac_ext
  44508. -cat >>conftest.$ac_ext <<_ACEOF
  44509. -/* end confdefs.h. */
  44510. -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  44511. -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  44512. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  44513. -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  44514. -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  44515. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  44516. -int
  44517. -main ()
  44518. -{
  44519. - _ascii (); _ebcdic ();
  44520. - ;
  44521. - return 0;
  44522. -}
  44523. -_ACEOF
  44524. -rm -f conftest.$ac_objext
  44525. -if { (ac_try="$ac_compile"
  44526. -case "(($ac_try" in
  44527. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44528. - *) ac_try_echo=$ac_try;;
  44529. -esac
  44530. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44531. - (eval "$ac_compile") 2>conftest.er1
  44532. - ac_status=$?
  44533. - grep -v '^ *+' conftest.er1 >conftest.err
  44534. - rm -f conftest.er1
  44535. - cat conftest.err >&5
  44536. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44537. - (exit $ac_status); } &&
  44538. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44539. - { (case "(($ac_try" in
  44540. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44541. - *) ac_try_echo=$ac_try;;
  44542. -esac
  44543. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44544. - (eval "$ac_try") 2>&5
  44545. - ac_status=$?
  44546. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44547. - (exit $ac_status); }; } &&
  44548. - { ac_try='test -s conftest.$ac_objext'
  44549. - { (case "(($ac_try" in
  44550. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44551. - *) ac_try_echo=$ac_try;;
  44552. -esac
  44553. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44554. - (eval "$ac_try") 2>&5
  44555. - ac_status=$?
  44556. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44557. - (exit $ac_status); }; }; then
  44558. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  44559. - ac_cv_c_bigendian=yes
  44560. -fi
  44561. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  44562. - if test "$ac_cv_c_bigendian" = unknown; then
  44563. - ac_cv_c_bigendian=no
  44564. - else
  44565. - # finding both strings is unlikely to happen, but who knows?
  44566. - ac_cv_c_bigendian=unknown
  44567. - fi
  44568. -fi
  44569. -else
  44570. - echo "$as_me: failed program was:" >&5
  44571. -sed 's/^/| /' conftest.$ac_ext >&5
  44572. -
  44573. -
  44574. -fi
  44575. -
  44576. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44577. -else
  44578. - cat >conftest.$ac_ext <<_ACEOF
  44579. -/* confdefs.h. */
  44580. -_ACEOF
  44581. -cat confdefs.h >>conftest.$ac_ext
  44582. -cat >>conftest.$ac_ext <<_ACEOF
  44583. -/* end confdefs.h. */
  44584. -$ac_includes_default
  44585. -int
  44586. -main ()
  44587. -{
  44588. -
  44589. - /* Are we little or big endian? From Harbison&Steele. */
  44590. - union
  44591. - {
  44592. - long int l;
  44593. - char c[sizeof (long int)];
  44594. - } u;
  44595. - u.l = 1;
  44596. - return u.c[sizeof (long int) - 1] == 1;
  44597. -
  44598. - ;
  44599. - return 0;
  44600. -}
  44601. -_ACEOF
  44602. -rm -f conftest$ac_exeext
  44603. -if { (ac_try="$ac_link"
  44604. -case "(($ac_try" in
  44605. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44606. - *) ac_try_echo=$ac_try;;
  44607. -esac
  44608. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44609. - (eval "$ac_link") 2>&5
  44610. - ac_status=$?
  44611. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44612. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44613. - { (case "(($ac_try" in
  44614. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44615. - *) ac_try_echo=$ac_try;;
  44616. -esac
  44617. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44618. - (eval "$ac_try") 2>&5
  44619. - ac_status=$?
  44620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44621. - (exit $ac_status); }; }; then
  44622. - ac_cv_c_bigendian=no
  44623. -else
  44624. - echo "$as_me: program exited with status $ac_status" >&5
  44625. -echo "$as_me: failed program was:" >&5
  44626. -sed 's/^/| /' conftest.$ac_ext >&5
  44627. -
  44628. -( exit $ac_status )
  44629. -ac_cv_c_bigendian=yes
  44630. -fi
  44631. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44632. -fi
  44633. -
  44634. -
  44635. -fi
  44636. -
  44637. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44638. -fi
  44639. -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  44640. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  44641. -case $ac_cv_c_bigendian in
  44642. - yes)
  44643. -
  44644. -cat >>confdefs.h <<\_ACEOF
  44645. -#define WORDS_BIGENDIAN 1
  44646. -_ACEOF
  44647. - ;;
  44648. - no)
  44649. - ;;
  44650. - *)
  44651. - { { echo "$as_me:$LINENO: error: unknown endianness
  44652. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  44653. -echo "$as_me: error: unknown endianness
  44654. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  44655. - { (exit 1); exit 1; }; } ;;
  44656. -esac
  44657. -
  44658. -
  44659. -if test "x$enable_largefile" = "x"; then
  44660. - enable_largefile=no
  44661. -fi
  44662. -# Check whether --enable-largefile was given.
  44663. -if test "${enable_largefile+set}" = set; then
  44664. - enableval=$enable_largefile;
  44665. -fi
  44666. -
  44667. -if test "$enable_largefile" != no; then
  44668. -
  44669. - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  44670. -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  44671. -if test "${ac_cv_sys_largefile_CC+set}" = set; then
  44672. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44673. -else
  44674. - ac_cv_sys_largefile_CC=no
  44675. - if test "$GCC" != yes; then
  44676. - ac_save_CC=$CC
  44677. - while :; do
  44678. - # IRIX 6.2 and later do not support large files by default,
  44679. - # so use the C compiler's -n32 option if that helps.
  44680. - cat >conftest.$ac_ext <<_ACEOF
  44681. -/* confdefs.h. */
  44682. -_ACEOF
  44683. -cat confdefs.h >>conftest.$ac_ext
  44684. -cat >>conftest.$ac_ext <<_ACEOF
  44685. -/* end confdefs.h. */
  44686. -#include <sys/types.h>
  44687. - /* Check that off_t can represent 2**63 - 1 correctly.
  44688. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  44689. - since some C++ compilers masquerading as C compilers
  44690. - incorrectly reject 9223372036854775807. */
  44691. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  44692. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  44693. - && LARGE_OFF_T % 2147483647 == 1)
  44694. - ? 1 : -1];
  44695. -int
  44696. -main ()
  44697. -{
  44698. -
  44699. - ;
  44700. - return 0;
  44701. -}
  44702. -_ACEOF
  44703. - rm -f conftest.$ac_objext
  44704. -if { (ac_try="$ac_compile"
  44705. -case "(($ac_try" in
  44706. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44707. - *) ac_try_echo=$ac_try;;
  44708. -esac
  44709. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44710. - (eval "$ac_compile") 2>conftest.er1
  44711. - ac_status=$?
  44712. - grep -v '^ *+' conftest.er1 >conftest.err
  44713. - rm -f conftest.er1
  44714. - cat conftest.err >&5
  44715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44716. - (exit $ac_status); } &&
  44717. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44718. - { (case "(($ac_try" in
  44719. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44720. - *) ac_try_echo=$ac_try;;
  44721. -esac
  44722. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44723. - (eval "$ac_try") 2>&5
  44724. - ac_status=$?
  44725. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44726. - (exit $ac_status); }; } &&
  44727. - { ac_try='test -s conftest.$ac_objext'
  44728. - { (case "(($ac_try" in
  44729. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44730. - *) ac_try_echo=$ac_try;;
  44731. -esac
  44732. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44733. - (eval "$ac_try") 2>&5
  44734. - ac_status=$?
  44735. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44736. - (exit $ac_status); }; }; then
  44737. - break
  44738. -else
  44739. - echo "$as_me: failed program was:" >&5
  44740. -sed 's/^/| /' conftest.$ac_ext >&5
  44741. -
  44742. -
  44743. -fi
  44744. -
  44745. -rm -f core conftest.err conftest.$ac_objext
  44746. - CC="$CC -n32"
  44747. - rm -f conftest.$ac_objext
  44748. -if { (ac_try="$ac_compile"
  44749. -case "(($ac_try" in
  44750. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44751. - *) ac_try_echo=$ac_try;;
  44752. -esac
  44753. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44754. - (eval "$ac_compile") 2>conftest.er1
  44755. - ac_status=$?
  44756. - grep -v '^ *+' conftest.er1 >conftest.err
  44757. - rm -f conftest.er1
  44758. - cat conftest.err >&5
  44759. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44760. - (exit $ac_status); } &&
  44761. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44762. - { (case "(($ac_try" in
  44763. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44764. - *) ac_try_echo=$ac_try;;
  44765. -esac
  44766. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44767. - (eval "$ac_try") 2>&5
  44768. - ac_status=$?
  44769. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44770. - (exit $ac_status); }; } &&
  44771. - { ac_try='test -s conftest.$ac_objext'
  44772. - { (case "(($ac_try" in
  44773. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44774. - *) ac_try_echo=$ac_try;;
  44775. -esac
  44776. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44777. - (eval "$ac_try") 2>&5
  44778. - ac_status=$?
  44779. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44780. - (exit $ac_status); }; }; then
  44781. - ac_cv_sys_largefile_CC=' -n32'; break
  44782. -else
  44783. - echo "$as_me: failed program was:" >&5
  44784. -sed 's/^/| /' conftest.$ac_ext >&5
  44785. -
  44786. -
  44787. -fi
  44788. -
  44789. -rm -f core conftest.err conftest.$ac_objext
  44790. - break
  44791. - done
  44792. - CC=$ac_save_CC
  44793. - rm -f conftest.$ac_ext
  44794. - fi
  44795. -fi
  44796. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  44797. -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  44798. - if test "$ac_cv_sys_largefile_CC" != no; then
  44799. - CC=$CC$ac_cv_sys_largefile_CC
  44800. - fi
  44801. -
  44802. - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  44803. -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  44804. -if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  44805. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44806. -else
  44807. - while :; do
  44808. - ac_cv_sys_file_offset_bits=no
  44809. - cat >conftest.$ac_ext <<_ACEOF
  44810. -/* confdefs.h. */
  44811. -_ACEOF
  44812. -cat confdefs.h >>conftest.$ac_ext
  44813. -cat >>conftest.$ac_ext <<_ACEOF
  44814. -/* end confdefs.h. */
  44815. -#include <sys/types.h>
  44816. - /* Check that off_t can represent 2**63 - 1 correctly.
  44817. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  44818. - since some C++ compilers masquerading as C compilers
  44819. - incorrectly reject 9223372036854775807. */
  44820. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  44821. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  44822. - && LARGE_OFF_T % 2147483647 == 1)
  44823. - ? 1 : -1];
  44824. -int
  44825. -main ()
  44826. -{
  44827. -
  44828. - ;
  44829. - return 0;
  44830. -}
  44831. -_ACEOF
  44832. -rm -f conftest.$ac_objext
  44833. -if { (ac_try="$ac_compile"
  44834. -case "(($ac_try" in
  44835. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44836. - *) ac_try_echo=$ac_try;;
  44837. -esac
  44838. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44839. - (eval "$ac_compile") 2>conftest.er1
  44840. - ac_status=$?
  44841. - grep -v '^ *+' conftest.er1 >conftest.err
  44842. - rm -f conftest.er1
  44843. - cat conftest.err >&5
  44844. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44845. - (exit $ac_status); } &&
  44846. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44847. - { (case "(($ac_try" in
  44848. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44849. - *) ac_try_echo=$ac_try;;
  44850. -esac
  44851. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44852. - (eval "$ac_try") 2>&5
  44853. - ac_status=$?
  44854. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44855. - (exit $ac_status); }; } &&
  44856. - { ac_try='test -s conftest.$ac_objext'
  44857. - { (case "(($ac_try" in
  44858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44859. - *) ac_try_echo=$ac_try;;
  44860. -esac
  44861. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44862. - (eval "$ac_try") 2>&5
  44863. - ac_status=$?
  44864. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44865. - (exit $ac_status); }; }; then
  44866. - break
  44867. -else
  44868. - echo "$as_me: failed program was:" >&5
  44869. -sed 's/^/| /' conftest.$ac_ext >&5
  44870. -
  44871. -
  44872. -fi
  44873. -
  44874. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44875. - cat >conftest.$ac_ext <<_ACEOF
  44876. -/* confdefs.h. */
  44877. -_ACEOF
  44878. -cat confdefs.h >>conftest.$ac_ext
  44879. -cat >>conftest.$ac_ext <<_ACEOF
  44880. -/* end confdefs.h. */
  44881. -#define _FILE_OFFSET_BITS 64
  44882. -#include <sys/types.h>
  44883. - /* Check that off_t can represent 2**63 - 1 correctly.
  44884. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  44885. - since some C++ compilers masquerading as C compilers
  44886. - incorrectly reject 9223372036854775807. */
  44887. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  44888. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  44889. - && LARGE_OFF_T % 2147483647 == 1)
  44890. - ? 1 : -1];
  44891. -int
  44892. -main ()
  44893. -{
  44894. -
  44895. - ;
  44896. - return 0;
  44897. -}
  44898. -_ACEOF
  44899. -rm -f conftest.$ac_objext
  44900. -if { (ac_try="$ac_compile"
  44901. -case "(($ac_try" in
  44902. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44903. - *) ac_try_echo=$ac_try;;
  44904. -esac
  44905. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44906. - (eval "$ac_compile") 2>conftest.er1
  44907. - ac_status=$?
  44908. - grep -v '^ *+' conftest.er1 >conftest.err
  44909. - rm -f conftest.er1
  44910. - cat conftest.err >&5
  44911. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44912. - (exit $ac_status); } &&
  44913. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44914. - { (case "(($ac_try" in
  44915. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44916. - *) ac_try_echo=$ac_try;;
  44917. -esac
  44918. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44919. - (eval "$ac_try") 2>&5
  44920. - ac_status=$?
  44921. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44922. - (exit $ac_status); }; } &&
  44923. - { ac_try='test -s conftest.$ac_objext'
  44924. - { (case "(($ac_try" in
  44925. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44926. - *) ac_try_echo=$ac_try;;
  44927. -esac
  44928. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44929. - (eval "$ac_try") 2>&5
  44930. - ac_status=$?
  44931. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44932. - (exit $ac_status); }; }; then
  44933. - ac_cv_sys_file_offset_bits=64; break
  44934. -else
  44935. - echo "$as_me: failed program was:" >&5
  44936. -sed 's/^/| /' conftest.$ac_ext >&5
  44937. -
  44938. -
  44939. -fi
  44940. -
  44941. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44942. - break
  44943. -done
  44944. -fi
  44945. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  44946. -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  44947. -if test "$ac_cv_sys_file_offset_bits" != no; then
  44948. -
  44949. -cat >>confdefs.h <<_ACEOF
  44950. -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  44951. -_ACEOF
  44952. -
  44953. -fi
  44954. -rm -f conftest*
  44955. - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  44956. -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  44957. -if test "${ac_cv_sys_large_files+set}" = set; then
  44958. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44959. -else
  44960. - while :; do
  44961. - ac_cv_sys_large_files=no
  44962. - cat >conftest.$ac_ext <<_ACEOF
  44963. -/* confdefs.h. */
  44964. -_ACEOF
  44965. -cat confdefs.h >>conftest.$ac_ext
  44966. -cat >>conftest.$ac_ext <<_ACEOF
  44967. -/* end confdefs.h. */
  44968. -#include <sys/types.h>
  44969. - /* Check that off_t can represent 2**63 - 1 correctly.
  44970. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  44971. - since some C++ compilers masquerading as C compilers
  44972. - incorrectly reject 9223372036854775807. */
  44973. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  44974. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  44975. - && LARGE_OFF_T % 2147483647 == 1)
  44976. - ? 1 : -1];
  44977. -int
  44978. -main ()
  44979. -{
  44980. -
  44981. - ;
  44982. - return 0;
  44983. -}
  44984. -_ACEOF
  44985. -rm -f conftest.$ac_objext
  44986. -if { (ac_try="$ac_compile"
  44987. -case "(($ac_try" in
  44988. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44989. - *) ac_try_echo=$ac_try;;
  44990. -esac
  44991. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44992. - (eval "$ac_compile") 2>conftest.er1
  44993. - ac_status=$?
  44994. - grep -v '^ *+' conftest.er1 >conftest.err
  44995. - rm -f conftest.er1
  44996. - cat conftest.err >&5
  44997. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44998. - (exit $ac_status); } &&
  44999. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45000. - { (case "(($ac_try" in
  45001. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45002. - *) ac_try_echo=$ac_try;;
  45003. -esac
  45004. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45005. - (eval "$ac_try") 2>&5
  45006. - ac_status=$?
  45007. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45008. - (exit $ac_status); }; } &&
  45009. - { ac_try='test -s conftest.$ac_objext'
  45010. - { (case "(($ac_try" in
  45011. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45012. - *) ac_try_echo=$ac_try;;
  45013. -esac
  45014. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45015. - (eval "$ac_try") 2>&5
  45016. - ac_status=$?
  45017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45018. - (exit $ac_status); }; }; then
  45019. - break
  45020. -else
  45021. - echo "$as_me: failed program was:" >&5
  45022. -sed 's/^/| /' conftest.$ac_ext >&5
  45023. -
  45024. -
  45025. -fi
  45026. -
  45027. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45028. - cat >conftest.$ac_ext <<_ACEOF
  45029. -/* confdefs.h. */
  45030. -_ACEOF
  45031. -cat confdefs.h >>conftest.$ac_ext
  45032. -cat >>conftest.$ac_ext <<_ACEOF
  45033. -/* end confdefs.h. */
  45034. -#define _LARGE_FILES 1
  45035. -#include <sys/types.h>
  45036. - /* Check that off_t can represent 2**63 - 1 correctly.
  45037. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  45038. - since some C++ compilers masquerading as C compilers
  45039. - incorrectly reject 9223372036854775807. */
  45040. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  45041. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  45042. - && LARGE_OFF_T % 2147483647 == 1)
  45043. - ? 1 : -1];
  45044. -int
  45045. -main ()
  45046. -{
  45047. -
  45048. - ;
  45049. - return 0;
  45050. -}
  45051. -_ACEOF
  45052. -rm -f conftest.$ac_objext
  45053. -if { (ac_try="$ac_compile"
  45054. -case "(($ac_try" in
  45055. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45056. - *) ac_try_echo=$ac_try;;
  45057. -esac
  45058. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45059. - (eval "$ac_compile") 2>conftest.er1
  45060. - ac_status=$?
  45061. - grep -v '^ *+' conftest.er1 >conftest.err
  45062. - rm -f conftest.er1
  45063. - cat conftest.err >&5
  45064. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45065. - (exit $ac_status); } &&
  45066. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45067. - { (case "(($ac_try" in
  45068. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45069. - *) ac_try_echo=$ac_try;;
  45070. -esac
  45071. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45072. - (eval "$ac_try") 2>&5
  45073. - ac_status=$?
  45074. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45075. - (exit $ac_status); }; } &&
  45076. - { ac_try='test -s conftest.$ac_objext'
  45077. - { (case "(($ac_try" in
  45078. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45079. - *) ac_try_echo=$ac_try;;
  45080. -esac
  45081. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45082. - (eval "$ac_try") 2>&5
  45083. - ac_status=$?
  45084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45085. - (exit $ac_status); }; }; then
  45086. - ac_cv_sys_large_files=1; break
  45087. -else
  45088. - echo "$as_me: failed program was:" >&5
  45089. -sed 's/^/| /' conftest.$ac_ext >&5
  45090. -
  45091. -
  45092. -fi
  45093. -
  45094. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45095. - break
  45096. -done
  45097. -fi
  45098. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  45099. -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  45100. -if test "$ac_cv_sys_large_files" != no; then
  45101. -
  45102. -cat >>confdefs.h <<_ACEOF
  45103. -#define _LARGE_FILES $ac_cv_sys_large_files
  45104. -_ACEOF
  45105. -
  45106. -fi
  45107. -rm -f conftest*
  45108. -fi
  45109. -
  45110. -{ echo "$as_me:$LINENO: checking for off_t" >&5
  45111. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  45112. -if test "${ac_cv_type_off_t+set}" = set; then
  45113. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45114. -else
  45115. - cat >conftest.$ac_ext <<_ACEOF
  45116. -/* confdefs.h. */
  45117. -_ACEOF
  45118. -cat confdefs.h >>conftest.$ac_ext
  45119. -cat >>conftest.$ac_ext <<_ACEOF
  45120. -/* end confdefs.h. */
  45121. -$ac_includes_default
  45122. -typedef off_t ac__type_new_;
  45123. -int
  45124. -main ()
  45125. -{
  45126. -if ((ac__type_new_ *) 0)
  45127. - return 0;
  45128. -if (sizeof (ac__type_new_))
  45129. - return 0;
  45130. - ;
  45131. - return 0;
  45132. -}
  45133. -_ACEOF
  45134. -rm -f conftest.$ac_objext
  45135. -if { (ac_try="$ac_compile"
  45136. -case "(($ac_try" in
  45137. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45138. - *) ac_try_echo=$ac_try;;
  45139. -esac
  45140. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45141. - (eval "$ac_compile") 2>conftest.er1
  45142. - ac_status=$?
  45143. - grep -v '^ *+' conftest.er1 >conftest.err
  45144. - rm -f conftest.er1
  45145. - cat conftest.err >&5
  45146. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45147. - (exit $ac_status); } &&
  45148. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45149. - { (case "(($ac_try" in
  45150. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45151. - *) ac_try_echo=$ac_try;;
  45152. -esac
  45153. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45154. - (eval "$ac_try") 2>&5
  45155. - ac_status=$?
  45156. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45157. - (exit $ac_status); }; } &&
  45158. - { ac_try='test -s conftest.$ac_objext'
  45159. - { (case "(($ac_try" in
  45160. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45161. - *) ac_try_echo=$ac_try;;
  45162. -esac
  45163. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45164. - (eval "$ac_try") 2>&5
  45165. - ac_status=$?
  45166. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45167. - (exit $ac_status); }; }; then
  45168. - ac_cv_type_off_t=yes
  45169. -else
  45170. - echo "$as_me: failed program was:" >&5
  45171. -sed 's/^/| /' conftest.$ac_ext >&5
  45172. -
  45173. - ac_cv_type_off_t=no
  45174. -fi
  45175. -
  45176. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45177. -fi
  45178. -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  45179. -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  45180. -if test $ac_cv_type_off_t = yes; then
  45181. - :
  45182. -else
  45183. -
  45184. -cat >>confdefs.h <<_ACEOF
  45185. -#define off_t long int
  45186. -_ACEOF
  45187. -
  45188. -fi
  45189. -
  45190. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  45191. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  45192. -if test "${ac_cv_type_size_t+set}" = set; then
  45193. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45194. -else
  45195. - cat >conftest.$ac_ext <<_ACEOF
  45196. -/* confdefs.h. */
  45197. -_ACEOF
  45198. -cat confdefs.h >>conftest.$ac_ext
  45199. -cat >>conftest.$ac_ext <<_ACEOF
  45200. -/* end confdefs.h. */
  45201. -$ac_includes_default
  45202. -typedef size_t ac__type_new_;
  45203. -int
  45204. -main ()
  45205. -{
  45206. -if ((ac__type_new_ *) 0)
  45207. - return 0;
  45208. -if (sizeof (ac__type_new_))
  45209. - return 0;
  45210. - ;
  45211. - return 0;
  45212. -}
  45213. -_ACEOF
  45214. -rm -f conftest.$ac_objext
  45215. -if { (ac_try="$ac_compile"
  45216. -case "(($ac_try" in
  45217. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45218. - *) ac_try_echo=$ac_try;;
  45219. -esac
  45220. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45221. - (eval "$ac_compile") 2>conftest.er1
  45222. - ac_status=$?
  45223. - grep -v '^ *+' conftest.er1 >conftest.err
  45224. - rm -f conftest.er1
  45225. - cat conftest.err >&5
  45226. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45227. - (exit $ac_status); } &&
  45228. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45229. - { (case "(($ac_try" in
  45230. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45231. - *) ac_try_echo=$ac_try;;
  45232. -esac
  45233. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45234. - (eval "$ac_try") 2>&5
  45235. - ac_status=$?
  45236. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45237. - (exit $ac_status); }; } &&
  45238. - { ac_try='test -s conftest.$ac_objext'
  45239. - { (case "(($ac_try" in
  45240. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45241. - *) ac_try_echo=$ac_try;;
  45242. -esac
  45243. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45244. - (eval "$ac_try") 2>&5
  45245. - ac_status=$?
  45246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45247. - (exit $ac_status); }; }; then
  45248. - ac_cv_type_size_t=yes
  45249. -else
  45250. - echo "$as_me: failed program was:" >&5
  45251. -sed 's/^/| /' conftest.$ac_ext >&5
  45252. -
  45253. - ac_cv_type_size_t=no
  45254. -fi
  45255. -
  45256. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45257. -fi
  45258. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  45259. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  45260. -if test $ac_cv_type_size_t = yes; then
  45261. - :
  45262. -else
  45263. -
  45264. -cat >>confdefs.h <<_ACEOF
  45265. -#define size_t unsigned int
  45266. -_ACEOF
  45267. -
  45268. -fi
  45269. -
  45270. -
  45271. -{ echo "$as_me:$LINENO: checking for off_t" >&5
  45272. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  45273. -if test "${ac_cv_type_off_t+set}" = set; then
  45274. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45275. -else
  45276. - cat >conftest.$ac_ext <<_ACEOF
  45277. -/* confdefs.h. */
  45278. -_ACEOF
  45279. -cat confdefs.h >>conftest.$ac_ext
  45280. -cat >>conftest.$ac_ext <<_ACEOF
  45281. -/* end confdefs.h. */
  45282. -$ac_includes_default
  45283. -typedef off_t ac__type_new_;
  45284. -int
  45285. -main ()
  45286. -{
  45287. -if ((ac__type_new_ *) 0)
  45288. - return 0;
  45289. -if (sizeof (ac__type_new_))
  45290. - return 0;
  45291. - ;
  45292. - return 0;
  45293. -}
  45294. -_ACEOF
  45295. -rm -f conftest.$ac_objext
  45296. -if { (ac_try="$ac_compile"
  45297. -case "(($ac_try" in
  45298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45299. - *) ac_try_echo=$ac_try;;
  45300. -esac
  45301. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45302. - (eval "$ac_compile") 2>conftest.er1
  45303. - ac_status=$?
  45304. - grep -v '^ *+' conftest.er1 >conftest.err
  45305. - rm -f conftest.er1
  45306. - cat conftest.err >&5
  45307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45308. - (exit $ac_status); } &&
  45309. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45310. - { (case "(($ac_try" in
  45311. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45312. - *) ac_try_echo=$ac_try;;
  45313. -esac
  45314. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45315. - (eval "$ac_try") 2>&5
  45316. - ac_status=$?
  45317. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45318. - (exit $ac_status); }; } &&
  45319. - { ac_try='test -s conftest.$ac_objext'
  45320. - { (case "(($ac_try" in
  45321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45322. - *) ac_try_echo=$ac_try;;
  45323. -esac
  45324. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45325. - (eval "$ac_try") 2>&5
  45326. - ac_status=$?
  45327. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45328. - (exit $ac_status); }; }; then
  45329. - ac_cv_type_off_t=yes
  45330. -else
  45331. - echo "$as_me: failed program was:" >&5
  45332. -sed 's/^/| /' conftest.$ac_ext >&5
  45333. -
  45334. - ac_cv_type_off_t=no
  45335. -fi
  45336. -
  45337. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45338. -fi
  45339. -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  45340. -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  45341. -
  45342. -{ echo "$as_me:$LINENO: checking size of off_t" >&5
  45343. -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
  45344. -if test "${ac_cv_sizeof_off_t+set}" = set; then
  45345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45346. -else
  45347. - if test "$ac_cv_type_off_t" = yes; then
  45348. - # The cast to long int works around a bug in the HP C Compiler
  45349. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  45350. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  45351. - # This bug is HP SR number 8606223364.
  45352. - if test "$cross_compiling" = yes; then
  45353. - # Depending upon the size, compute the lo and hi bounds.
  45354. -cat >conftest.$ac_ext <<_ACEOF
  45355. -/* confdefs.h. */
  45356. -_ACEOF
  45357. -cat confdefs.h >>conftest.$ac_ext
  45358. -cat >>conftest.$ac_ext <<_ACEOF
  45359. -/* end confdefs.h. */
  45360. -$ac_includes_default
  45361. - typedef off_t ac__type_sizeof_;
  45362. -int
  45363. -main ()
  45364. -{
  45365. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  45366. -test_array [0] = 0
  45367. -
  45368. - ;
  45369. - return 0;
  45370. -}
  45371. -_ACEOF
  45372. -rm -f conftest.$ac_objext
  45373. -if { (ac_try="$ac_compile"
  45374. -case "(($ac_try" in
  45375. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45376. - *) ac_try_echo=$ac_try;;
  45377. -esac
  45378. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45379. - (eval "$ac_compile") 2>conftest.er1
  45380. - ac_status=$?
  45381. - grep -v '^ *+' conftest.er1 >conftest.err
  45382. - rm -f conftest.er1
  45383. - cat conftest.err >&5
  45384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45385. - (exit $ac_status); } &&
  45386. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45387. - { (case "(($ac_try" in
  45388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45389. - *) ac_try_echo=$ac_try;;
  45390. -esac
  45391. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45392. - (eval "$ac_try") 2>&5
  45393. - ac_status=$?
  45394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45395. - (exit $ac_status); }; } &&
  45396. - { ac_try='test -s conftest.$ac_objext'
  45397. - { (case "(($ac_try" in
  45398. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45399. - *) ac_try_echo=$ac_try;;
  45400. -esac
  45401. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45402. - (eval "$ac_try") 2>&5
  45403. - ac_status=$?
  45404. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45405. - (exit $ac_status); }; }; then
  45406. - ac_lo=0 ac_mid=0
  45407. - while :; do
  45408. - cat >conftest.$ac_ext <<_ACEOF
  45409. -/* confdefs.h. */
  45410. -_ACEOF
  45411. -cat confdefs.h >>conftest.$ac_ext
  45412. -cat >>conftest.$ac_ext <<_ACEOF
  45413. -/* end confdefs.h. */
  45414. -$ac_includes_default
  45415. - typedef off_t ac__type_sizeof_;
  45416. -int
  45417. -main ()
  45418. -{
  45419. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  45420. -test_array [0] = 0
  45421. -
  45422. - ;
  45423. - return 0;
  45424. -}
  45425. -_ACEOF
  45426. -rm -f conftest.$ac_objext
  45427. -if { (ac_try="$ac_compile"
  45428. -case "(($ac_try" in
  45429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45430. - *) ac_try_echo=$ac_try;;
  45431. -esac
  45432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45433. - (eval "$ac_compile") 2>conftest.er1
  45434. - ac_status=$?
  45435. - grep -v '^ *+' conftest.er1 >conftest.err
  45436. - rm -f conftest.er1
  45437. - cat conftest.err >&5
  45438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45439. - (exit $ac_status); } &&
  45440. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45441. - { (case "(($ac_try" in
  45442. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45443. - *) ac_try_echo=$ac_try;;
  45444. -esac
  45445. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45446. - (eval "$ac_try") 2>&5
  45447. - ac_status=$?
  45448. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45449. - (exit $ac_status); }; } &&
  45450. - { ac_try='test -s conftest.$ac_objext'
  45451. - { (case "(($ac_try" in
  45452. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45453. - *) ac_try_echo=$ac_try;;
  45454. -esac
  45455. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45456. - (eval "$ac_try") 2>&5
  45457. - ac_status=$?
  45458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45459. - (exit $ac_status); }; }; then
  45460. - ac_hi=$ac_mid; break
  45461. -else
  45462. - echo "$as_me: failed program was:" >&5
  45463. -sed 's/^/| /' conftest.$ac_ext >&5
  45464. -
  45465. - ac_lo=`expr $ac_mid + 1`
  45466. - if test $ac_lo -le $ac_mid; then
  45467. - ac_lo= ac_hi=
  45468. - break
  45469. - fi
  45470. - ac_mid=`expr 2 '*' $ac_mid + 1`
  45471. -fi
  45472. -
  45473. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45474. - done
  45475. -else
  45476. - echo "$as_me: failed program was:" >&5
  45477. -sed 's/^/| /' conftest.$ac_ext >&5
  45478. -
  45479. - cat >conftest.$ac_ext <<_ACEOF
  45480. -/* confdefs.h. */
  45481. -_ACEOF
  45482. -cat confdefs.h >>conftest.$ac_ext
  45483. -cat >>conftest.$ac_ext <<_ACEOF
  45484. -/* end confdefs.h. */
  45485. -$ac_includes_default
  45486. - typedef off_t ac__type_sizeof_;
  45487. -int
  45488. -main ()
  45489. -{
  45490. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  45491. -test_array [0] = 0
  45492. -
  45493. - ;
  45494. - return 0;
  45495. -}
  45496. -_ACEOF
  45497. -rm -f conftest.$ac_objext
  45498. -if { (ac_try="$ac_compile"
  45499. -case "(($ac_try" in
  45500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45501. - *) ac_try_echo=$ac_try;;
  45502. -esac
  45503. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45504. - (eval "$ac_compile") 2>conftest.er1
  45505. - ac_status=$?
  45506. - grep -v '^ *+' conftest.er1 >conftest.err
  45507. - rm -f conftest.er1
  45508. - cat conftest.err >&5
  45509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45510. - (exit $ac_status); } &&
  45511. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45512. - { (case "(($ac_try" in
  45513. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45514. - *) ac_try_echo=$ac_try;;
  45515. -esac
  45516. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45517. - (eval "$ac_try") 2>&5
  45518. - ac_status=$?
  45519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45520. - (exit $ac_status); }; } &&
  45521. - { ac_try='test -s conftest.$ac_objext'
  45522. - { (case "(($ac_try" in
  45523. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45524. - *) ac_try_echo=$ac_try;;
  45525. -esac
  45526. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45527. - (eval "$ac_try") 2>&5
  45528. - ac_status=$?
  45529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45530. - (exit $ac_status); }; }; then
  45531. - ac_hi=-1 ac_mid=-1
  45532. - while :; do
  45533. - cat >conftest.$ac_ext <<_ACEOF
  45534. -/* confdefs.h. */
  45535. -_ACEOF
  45536. -cat confdefs.h >>conftest.$ac_ext
  45537. -cat >>conftest.$ac_ext <<_ACEOF
  45538. -/* end confdefs.h. */
  45539. -$ac_includes_default
  45540. - typedef off_t ac__type_sizeof_;
  45541. -int
  45542. -main ()
  45543. -{
  45544. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  45545. -test_array [0] = 0
  45546. -
  45547. - ;
  45548. - return 0;
  45549. -}
  45550. -_ACEOF
  45551. -rm -f conftest.$ac_objext
  45552. -if { (ac_try="$ac_compile"
  45553. -case "(($ac_try" in
  45554. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45555. - *) ac_try_echo=$ac_try;;
  45556. -esac
  45557. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45558. - (eval "$ac_compile") 2>conftest.er1
  45559. - ac_status=$?
  45560. - grep -v '^ *+' conftest.er1 >conftest.err
  45561. - rm -f conftest.er1
  45562. - cat conftest.err >&5
  45563. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45564. - (exit $ac_status); } &&
  45565. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45566. - { (case "(($ac_try" in
  45567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45568. - *) ac_try_echo=$ac_try;;
  45569. -esac
  45570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45571. - (eval "$ac_try") 2>&5
  45572. - ac_status=$?
  45573. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45574. - (exit $ac_status); }; } &&
  45575. - { ac_try='test -s conftest.$ac_objext'
  45576. - { (case "(($ac_try" in
  45577. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45578. - *) ac_try_echo=$ac_try;;
  45579. -esac
  45580. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45581. - (eval "$ac_try") 2>&5
  45582. - ac_status=$?
  45583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45584. - (exit $ac_status); }; }; then
  45585. - ac_lo=$ac_mid; break
  45586. -else
  45587. - echo "$as_me: failed program was:" >&5
  45588. -sed 's/^/| /' conftest.$ac_ext >&5
  45589. -
  45590. - ac_hi=`expr '(' $ac_mid ')' - 1`
  45591. - if test $ac_mid -le $ac_hi; then
  45592. - ac_lo= ac_hi=
  45593. - break
  45594. - fi
  45595. - ac_mid=`expr 2 '*' $ac_mid`
  45596. -fi
  45597. -
  45598. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45599. - done
  45600. -else
  45601. - echo "$as_me: failed program was:" >&5
  45602. -sed 's/^/| /' conftest.$ac_ext >&5
  45603. -
  45604. - ac_lo= ac_hi=
  45605. -fi
  45606. -
  45607. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45608. -fi
  45609. -
  45610. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45611. -# Binary search between lo and hi bounds.
  45612. -while test "x$ac_lo" != "x$ac_hi"; do
  45613. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  45614. - cat >conftest.$ac_ext <<_ACEOF
  45615. -/* confdefs.h. */
  45616. -_ACEOF
  45617. -cat confdefs.h >>conftest.$ac_ext
  45618. -cat >>conftest.$ac_ext <<_ACEOF
  45619. -/* end confdefs.h. */
  45620. -$ac_includes_default
  45621. - typedef off_t ac__type_sizeof_;
  45622. -int
  45623. -main ()
  45624. -{
  45625. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  45626. -test_array [0] = 0
  45627. -
  45628. - ;
  45629. - return 0;
  45630. -}
  45631. -_ACEOF
  45632. -rm -f conftest.$ac_objext
  45633. -if { (ac_try="$ac_compile"
  45634. -case "(($ac_try" in
  45635. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45636. - *) ac_try_echo=$ac_try;;
  45637. -esac
  45638. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45639. - (eval "$ac_compile") 2>conftest.er1
  45640. - ac_status=$?
  45641. - grep -v '^ *+' conftest.er1 >conftest.err
  45642. - rm -f conftest.er1
  45643. - cat conftest.err >&5
  45644. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45645. - (exit $ac_status); } &&
  45646. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45647. - { (case "(($ac_try" in
  45648. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45649. - *) ac_try_echo=$ac_try;;
  45650. -esac
  45651. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45652. - (eval "$ac_try") 2>&5
  45653. - ac_status=$?
  45654. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45655. - (exit $ac_status); }; } &&
  45656. - { ac_try='test -s conftest.$ac_objext'
  45657. - { (case "(($ac_try" in
  45658. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45659. - *) ac_try_echo=$ac_try;;
  45660. -esac
  45661. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45662. - (eval "$ac_try") 2>&5
  45663. - ac_status=$?
  45664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45665. - (exit $ac_status); }; }; then
  45666. - ac_hi=$ac_mid
  45667. -else
  45668. - echo "$as_me: failed program was:" >&5
  45669. -sed 's/^/| /' conftest.$ac_ext >&5
  45670. -
  45671. - ac_lo=`expr '(' $ac_mid ')' + 1`
  45672. -fi
  45673. -
  45674. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45675. -done
  45676. -case $ac_lo in
  45677. -?*) ac_cv_sizeof_off_t=$ac_lo;;
  45678. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  45679. -See \`config.log' for more details." >&5
  45680. -echo "$as_me: error: cannot compute sizeof (off_t)
  45681. -See \`config.log' for more details." >&2;}
  45682. - { (exit 77); exit 77; }; } ;;
  45683. -esac
  45684. -else
  45685. - cat >conftest.$ac_ext <<_ACEOF
  45686. -/* confdefs.h. */
  45687. -_ACEOF
  45688. -cat confdefs.h >>conftest.$ac_ext
  45689. -cat >>conftest.$ac_ext <<_ACEOF
  45690. -/* end confdefs.h. */
  45691. -$ac_includes_default
  45692. - typedef off_t ac__type_sizeof_;
  45693. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45694. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45695. -#include <stdio.h>
  45696. -#include <stdlib.h>
  45697. -int
  45698. -main ()
  45699. -{
  45700. -
  45701. - FILE *f = fopen ("conftest.val", "w");
  45702. - if (! f)
  45703. - return 1;
  45704. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  45705. - {
  45706. - long int i = longval ();
  45707. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45708. - return 1;
  45709. - fprintf (f, "%ld\n", i);
  45710. - }
  45711. - else
  45712. - {
  45713. - unsigned long int i = ulongval ();
  45714. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45715. - return 1;
  45716. - fprintf (f, "%lu\n", i);
  45717. - }
  45718. - return ferror (f) || fclose (f) != 0;
  45719. -
  45720. - ;
  45721. - return 0;
  45722. -}
  45723. -_ACEOF
  45724. -rm -f conftest$ac_exeext
  45725. -if { (ac_try="$ac_link"
  45726. -case "(($ac_try" in
  45727. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45728. - *) ac_try_echo=$ac_try;;
  45729. -esac
  45730. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45731. - (eval "$ac_link") 2>&5
  45732. - ac_status=$?
  45733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45734. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  45735. - { (case "(($ac_try" in
  45736. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45737. - *) ac_try_echo=$ac_try;;
  45738. -esac
  45739. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45740. - (eval "$ac_try") 2>&5
  45741. - ac_status=$?
  45742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45743. - (exit $ac_status); }; }; then
  45744. - ac_cv_sizeof_off_t=`cat conftest.val`
  45745. -else
  45746. - echo "$as_me: program exited with status $ac_status" >&5
  45747. -echo "$as_me: failed program was:" >&5
  45748. -sed 's/^/| /' conftest.$ac_ext >&5
  45749. -
  45750. -( exit $ac_status )
  45751. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  45752. -See \`config.log' for more details." >&5
  45753. -echo "$as_me: error: cannot compute sizeof (off_t)
  45754. -See \`config.log' for more details." >&2;}
  45755. - { (exit 77); exit 77; }; }
  45756. -fi
  45757. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  45758. -fi
  45759. -rm -f conftest.val
  45760. -else
  45761. - ac_cv_sizeof_off_t=0
  45762. -fi
  45763. -fi
  45764. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  45765. -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
  45766. -cat >>confdefs.h <<_ACEOF
  45767. -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  45768. -_ACEOF
  45769. -
  45770. -
  45771. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  45772. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  45773. -if test "${ac_cv_type_size_t+set}" = set; then
  45774. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45775. -else
  45776. - cat >conftest.$ac_ext <<_ACEOF
  45777. -/* confdefs.h. */
  45778. -_ACEOF
  45779. -cat confdefs.h >>conftest.$ac_ext
  45780. -cat >>conftest.$ac_ext <<_ACEOF
  45781. -/* end confdefs.h. */
  45782. -$ac_includes_default
  45783. -typedef size_t ac__type_new_;
  45784. -int
  45785. -main ()
  45786. -{
  45787. -if ((ac__type_new_ *) 0)
  45788. - return 0;
  45789. -if (sizeof (ac__type_new_))
  45790. - return 0;
  45791. - ;
  45792. - return 0;
  45793. -}
  45794. -_ACEOF
  45795. -rm -f conftest.$ac_objext
  45796. -if { (ac_try="$ac_compile"
  45797. -case "(($ac_try" in
  45798. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45799. - *) ac_try_echo=$ac_try;;
  45800. -esac
  45801. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45802. - (eval "$ac_compile") 2>conftest.er1
  45803. - ac_status=$?
  45804. - grep -v '^ *+' conftest.er1 >conftest.err
  45805. - rm -f conftest.er1
  45806. - cat conftest.err >&5
  45807. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45808. - (exit $ac_status); } &&
  45809. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45810. - { (case "(($ac_try" in
  45811. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45812. - *) ac_try_echo=$ac_try;;
  45813. -esac
  45814. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45815. - (eval "$ac_try") 2>&5
  45816. - ac_status=$?
  45817. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45818. - (exit $ac_status); }; } &&
  45819. - { ac_try='test -s conftest.$ac_objext'
  45820. - { (case "(($ac_try" in
  45821. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45822. - *) ac_try_echo=$ac_try;;
  45823. -esac
  45824. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45825. - (eval "$ac_try") 2>&5
  45826. - ac_status=$?
  45827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45828. - (exit $ac_status); }; }; then
  45829. - ac_cv_type_size_t=yes
  45830. -else
  45831. - echo "$as_me: failed program was:" >&5
  45832. -sed 's/^/| /' conftest.$ac_ext >&5
  45833. -
  45834. - ac_cv_type_size_t=no
  45835. -fi
  45836. -
  45837. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45838. -fi
  45839. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  45840. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  45841. -
  45842. -{ echo "$as_me:$LINENO: checking size of size_t" >&5
  45843. -echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
  45844. -if test "${ac_cv_sizeof_size_t+set}" = set; then
  45845. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45846. -else
  45847. - if test "$ac_cv_type_size_t" = yes; then
  45848. - # The cast to long int works around a bug in the HP C Compiler
  45849. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  45850. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  45851. - # This bug is HP SR number 8606223364.
  45852. - if test "$cross_compiling" = yes; then
  45853. - # Depending upon the size, compute the lo and hi bounds.
  45854. -cat >conftest.$ac_ext <<_ACEOF
  45855. -/* confdefs.h. */
  45856. -_ACEOF
  45857. -cat confdefs.h >>conftest.$ac_ext
  45858. -cat >>conftest.$ac_ext <<_ACEOF
  45859. -/* end confdefs.h. */
  45860. -$ac_includes_default
  45861. - typedef size_t ac__type_sizeof_;
  45862. -int
  45863. -main ()
  45864. -{
  45865. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  45866. -test_array [0] = 0
  45867. -
  45868. - ;
  45869. - return 0;
  45870. -}
  45871. -_ACEOF
  45872. -rm -f conftest.$ac_objext
  45873. -if { (ac_try="$ac_compile"
  45874. -case "(($ac_try" in
  45875. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45876. - *) ac_try_echo=$ac_try;;
  45877. -esac
  45878. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45879. - (eval "$ac_compile") 2>conftest.er1
  45880. - ac_status=$?
  45881. - grep -v '^ *+' conftest.er1 >conftest.err
  45882. - rm -f conftest.er1
  45883. - cat conftest.err >&5
  45884. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45885. - (exit $ac_status); } &&
  45886. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45887. - { (case "(($ac_try" in
  45888. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45889. - *) ac_try_echo=$ac_try;;
  45890. -esac
  45891. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45892. - (eval "$ac_try") 2>&5
  45893. - ac_status=$?
  45894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45895. - (exit $ac_status); }; } &&
  45896. - { ac_try='test -s conftest.$ac_objext'
  45897. - { (case "(($ac_try" in
  45898. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45899. - *) ac_try_echo=$ac_try;;
  45900. -esac
  45901. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45902. - (eval "$ac_try") 2>&5
  45903. - ac_status=$?
  45904. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45905. - (exit $ac_status); }; }; then
  45906. - ac_lo=0 ac_mid=0
  45907. - while :; do
  45908. - cat >conftest.$ac_ext <<_ACEOF
  45909. -/* confdefs.h. */
  45910. -_ACEOF
  45911. -cat confdefs.h >>conftest.$ac_ext
  45912. -cat >>conftest.$ac_ext <<_ACEOF
  45913. -/* end confdefs.h. */
  45914. -$ac_includes_default
  45915. - typedef size_t ac__type_sizeof_;
  45916. -int
  45917. -main ()
  45918. -{
  45919. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  45920. -test_array [0] = 0
  45921. -
  45922. - ;
  45923. - return 0;
  45924. -}
  45925. -_ACEOF
  45926. -rm -f conftest.$ac_objext
  45927. -if { (ac_try="$ac_compile"
  45928. -case "(($ac_try" in
  45929. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45930. - *) ac_try_echo=$ac_try;;
  45931. -esac
  45932. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45933. - (eval "$ac_compile") 2>conftest.er1
  45934. - ac_status=$?
  45935. - grep -v '^ *+' conftest.er1 >conftest.err
  45936. - rm -f conftest.er1
  45937. - cat conftest.err >&5
  45938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45939. - (exit $ac_status); } &&
  45940. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45941. - { (case "(($ac_try" in
  45942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45943. - *) ac_try_echo=$ac_try;;
  45944. -esac
  45945. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45946. - (eval "$ac_try") 2>&5
  45947. - ac_status=$?
  45948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45949. - (exit $ac_status); }; } &&
  45950. - { ac_try='test -s conftest.$ac_objext'
  45951. - { (case "(($ac_try" in
  45952. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45953. - *) ac_try_echo=$ac_try;;
  45954. -esac
  45955. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45956. - (eval "$ac_try") 2>&5
  45957. - ac_status=$?
  45958. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45959. - (exit $ac_status); }; }; then
  45960. - ac_hi=$ac_mid; break
  45961. -else
  45962. - echo "$as_me: failed program was:" >&5
  45963. -sed 's/^/| /' conftest.$ac_ext >&5
  45964. -
  45965. - ac_lo=`expr $ac_mid + 1`
  45966. - if test $ac_lo -le $ac_mid; then
  45967. - ac_lo= ac_hi=
  45968. - break
  45969. - fi
  45970. - ac_mid=`expr 2 '*' $ac_mid + 1`
  45971. -fi
  45972. -
  45973. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45974. - done
  45975. -else
  45976. - echo "$as_me: failed program was:" >&5
  45977. -sed 's/^/| /' conftest.$ac_ext >&5
  45978. -
  45979. - cat >conftest.$ac_ext <<_ACEOF
  45980. -/* confdefs.h. */
  45981. -_ACEOF
  45982. -cat confdefs.h >>conftest.$ac_ext
  45983. -cat >>conftest.$ac_ext <<_ACEOF
  45984. -/* end confdefs.h. */
  45985. -$ac_includes_default
  45986. - typedef size_t ac__type_sizeof_;
  45987. -int
  45988. -main ()
  45989. -{
  45990. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  45991. -test_array [0] = 0
  45992. -
  45993. - ;
  45994. - return 0;
  45995. -}
  45996. -_ACEOF
  45997. -rm -f conftest.$ac_objext
  45998. -if { (ac_try="$ac_compile"
  45999. -case "(($ac_try" in
  46000. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46001. - *) ac_try_echo=$ac_try;;
  46002. -esac
  46003. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46004. - (eval "$ac_compile") 2>conftest.er1
  46005. - ac_status=$?
  46006. - grep -v '^ *+' conftest.er1 >conftest.err
  46007. - rm -f conftest.er1
  46008. - cat conftest.err >&5
  46009. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46010. - (exit $ac_status); } &&
  46011. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46012. - { (case "(($ac_try" in
  46013. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46014. - *) ac_try_echo=$ac_try;;
  46015. -esac
  46016. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46017. - (eval "$ac_try") 2>&5
  46018. - ac_status=$?
  46019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46020. - (exit $ac_status); }; } &&
  46021. - { ac_try='test -s conftest.$ac_objext'
  46022. - { (case "(($ac_try" in
  46023. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46024. - *) ac_try_echo=$ac_try;;
  46025. -esac
  46026. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46027. - (eval "$ac_try") 2>&5
  46028. - ac_status=$?
  46029. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46030. - (exit $ac_status); }; }; then
  46031. - ac_hi=-1 ac_mid=-1
  46032. - while :; do
  46033. - cat >conftest.$ac_ext <<_ACEOF
  46034. -/* confdefs.h. */
  46035. -_ACEOF
  46036. -cat confdefs.h >>conftest.$ac_ext
  46037. -cat >>conftest.$ac_ext <<_ACEOF
  46038. -/* end confdefs.h. */
  46039. -$ac_includes_default
  46040. - typedef size_t ac__type_sizeof_;
  46041. -int
  46042. -main ()
  46043. -{
  46044. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  46045. -test_array [0] = 0
  46046. -
  46047. - ;
  46048. - return 0;
  46049. -}
  46050. -_ACEOF
  46051. -rm -f conftest.$ac_objext
  46052. -if { (ac_try="$ac_compile"
  46053. -case "(($ac_try" in
  46054. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46055. - *) ac_try_echo=$ac_try;;
  46056. -esac
  46057. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46058. - (eval "$ac_compile") 2>conftest.er1
  46059. - ac_status=$?
  46060. - grep -v '^ *+' conftest.er1 >conftest.err
  46061. - rm -f conftest.er1
  46062. - cat conftest.err >&5
  46063. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46064. - (exit $ac_status); } &&
  46065. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46066. - { (case "(($ac_try" in
  46067. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46068. - *) ac_try_echo=$ac_try;;
  46069. -esac
  46070. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46071. - (eval "$ac_try") 2>&5
  46072. - ac_status=$?
  46073. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46074. - (exit $ac_status); }; } &&
  46075. - { ac_try='test -s conftest.$ac_objext'
  46076. - { (case "(($ac_try" in
  46077. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46078. - *) ac_try_echo=$ac_try;;
  46079. -esac
  46080. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46081. - (eval "$ac_try") 2>&5
  46082. - ac_status=$?
  46083. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46084. - (exit $ac_status); }; }; then
  46085. - ac_lo=$ac_mid; break
  46086. -else
  46087. - echo "$as_me: failed program was:" >&5
  46088. -sed 's/^/| /' conftest.$ac_ext >&5
  46089. -
  46090. - ac_hi=`expr '(' $ac_mid ')' - 1`
  46091. - if test $ac_mid -le $ac_hi; then
  46092. - ac_lo= ac_hi=
  46093. - break
  46094. - fi
  46095. - ac_mid=`expr 2 '*' $ac_mid`
  46096. -fi
  46097. -
  46098. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46099. - done
  46100. -else
  46101. - echo "$as_me: failed program was:" >&5
  46102. -sed 's/^/| /' conftest.$ac_ext >&5
  46103. -
  46104. - ac_lo= ac_hi=
  46105. -fi
  46106. -
  46107. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46108. -fi
  46109. -
  46110. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46111. -# Binary search between lo and hi bounds.
  46112. -while test "x$ac_lo" != "x$ac_hi"; do
  46113. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  46114. - cat >conftest.$ac_ext <<_ACEOF
  46115. -/* confdefs.h. */
  46116. -_ACEOF
  46117. -cat confdefs.h >>conftest.$ac_ext
  46118. -cat >>conftest.$ac_ext <<_ACEOF
  46119. -/* end confdefs.h. */
  46120. -$ac_includes_default
  46121. - typedef size_t ac__type_sizeof_;
  46122. -int
  46123. -main ()
  46124. -{
  46125. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  46126. -test_array [0] = 0
  46127. -
  46128. - ;
  46129. - return 0;
  46130. -}
  46131. -_ACEOF
  46132. -rm -f conftest.$ac_objext
  46133. -if { (ac_try="$ac_compile"
  46134. -case "(($ac_try" in
  46135. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46136. - *) ac_try_echo=$ac_try;;
  46137. -esac
  46138. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46139. - (eval "$ac_compile") 2>conftest.er1
  46140. - ac_status=$?
  46141. - grep -v '^ *+' conftest.er1 >conftest.err
  46142. - rm -f conftest.er1
  46143. - cat conftest.err >&5
  46144. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46145. - (exit $ac_status); } &&
  46146. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46147. - { (case "(($ac_try" in
  46148. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46149. - *) ac_try_echo=$ac_try;;
  46150. -esac
  46151. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46152. - (eval "$ac_try") 2>&5
  46153. - ac_status=$?
  46154. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46155. - (exit $ac_status); }; } &&
  46156. - { ac_try='test -s conftest.$ac_objext'
  46157. - { (case "(($ac_try" in
  46158. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46159. - *) ac_try_echo=$ac_try;;
  46160. -esac
  46161. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46162. - (eval "$ac_try") 2>&5
  46163. - ac_status=$?
  46164. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46165. - (exit $ac_status); }; }; then
  46166. - ac_hi=$ac_mid
  46167. -else
  46168. - echo "$as_me: failed program was:" >&5
  46169. -sed 's/^/| /' conftest.$ac_ext >&5
  46170. -
  46171. - ac_lo=`expr '(' $ac_mid ')' + 1`
  46172. -fi
  46173. -
  46174. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46175. -done
  46176. -case $ac_lo in
  46177. -?*) ac_cv_sizeof_size_t=$ac_lo;;
  46178. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  46179. -See \`config.log' for more details." >&5
  46180. -echo "$as_me: error: cannot compute sizeof (size_t)
  46181. -See \`config.log' for more details." >&2;}
  46182. - { (exit 77); exit 77; }; } ;;
  46183. -esac
  46184. -else
  46185. - cat >conftest.$ac_ext <<_ACEOF
  46186. -/* confdefs.h. */
  46187. -_ACEOF
  46188. -cat confdefs.h >>conftest.$ac_ext
  46189. -cat >>conftest.$ac_ext <<_ACEOF
  46190. -/* end confdefs.h. */
  46191. -$ac_includes_default
  46192. - typedef size_t ac__type_sizeof_;
  46193. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  46194. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  46195. -#include <stdio.h>
  46196. -#include <stdlib.h>
  46197. -int
  46198. -main ()
  46199. -{
  46200. -
  46201. - FILE *f = fopen ("conftest.val", "w");
  46202. - if (! f)
  46203. - return 1;
  46204. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  46205. - {
  46206. - long int i = longval ();
  46207. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  46208. - return 1;
  46209. - fprintf (f, "%ld\n", i);
  46210. - }
  46211. - else
  46212. - {
  46213. - unsigned long int i = ulongval ();
  46214. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  46215. - return 1;
  46216. - fprintf (f, "%lu\n", i);
  46217. - }
  46218. - return ferror (f) || fclose (f) != 0;
  46219. -
  46220. - ;
  46221. - return 0;
  46222. -}
  46223. -_ACEOF
  46224. -rm -f conftest$ac_exeext
  46225. -if { (ac_try="$ac_link"
  46226. -case "(($ac_try" in
  46227. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46228. - *) ac_try_echo=$ac_try;;
  46229. -esac
  46230. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46231. - (eval "$ac_link") 2>&5
  46232. - ac_status=$?
  46233. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46234. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46235. - { (case "(($ac_try" in
  46236. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46237. - *) ac_try_echo=$ac_try;;
  46238. -esac
  46239. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46240. - (eval "$ac_try") 2>&5
  46241. - ac_status=$?
  46242. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46243. - (exit $ac_status); }; }; then
  46244. - ac_cv_sizeof_size_t=`cat conftest.val`
  46245. -else
  46246. - echo "$as_me: program exited with status $ac_status" >&5
  46247. -echo "$as_me: failed program was:" >&5
  46248. -sed 's/^/| /' conftest.$ac_ext >&5
  46249. -
  46250. -( exit $ac_status )
  46251. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  46252. -See \`config.log' for more details." >&5
  46253. -echo "$as_me: error: cannot compute sizeof (size_t)
  46254. -See \`config.log' for more details." >&2;}
  46255. - { (exit 77); exit 77; }; }
  46256. -fi
  46257. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46258. -fi
  46259. -rm -f conftest.val
  46260. -else
  46261. - ac_cv_sizeof_size_t=0
  46262. -fi
  46263. -fi
  46264. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  46265. -echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
  46266. -cat >>confdefs.h <<_ACEOF
  46267. -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  46268. -_ACEOF
  46269. -
  46270. -
  46271. -{ echo "$as_me:$LINENO: checking for long" >&5
  46272. -echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  46273. -if test "${ac_cv_type_long+set}" = set; then
  46274. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46275. -else
  46276. - cat >conftest.$ac_ext <<_ACEOF
  46277. -/* confdefs.h. */
  46278. -_ACEOF
  46279. -cat confdefs.h >>conftest.$ac_ext
  46280. -cat >>conftest.$ac_ext <<_ACEOF
  46281. -/* end confdefs.h. */
  46282. -$ac_includes_default
  46283. -typedef long ac__type_new_;
  46284. -int
  46285. -main ()
  46286. -{
  46287. -if ((ac__type_new_ *) 0)
  46288. - return 0;
  46289. -if (sizeof (ac__type_new_))
  46290. - return 0;
  46291. - ;
  46292. - return 0;
  46293. -}
  46294. -_ACEOF
  46295. -rm -f conftest.$ac_objext
  46296. -if { (ac_try="$ac_compile"
  46297. -case "(($ac_try" in
  46298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46299. - *) ac_try_echo=$ac_try;;
  46300. -esac
  46301. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46302. - (eval "$ac_compile") 2>conftest.er1
  46303. - ac_status=$?
  46304. - grep -v '^ *+' conftest.er1 >conftest.err
  46305. - rm -f conftest.er1
  46306. - cat conftest.err >&5
  46307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46308. - (exit $ac_status); } &&
  46309. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46310. - { (case "(($ac_try" in
  46311. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46312. - *) ac_try_echo=$ac_try;;
  46313. -esac
  46314. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46315. - (eval "$ac_try") 2>&5
  46316. - ac_status=$?
  46317. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46318. - (exit $ac_status); }; } &&
  46319. - { ac_try='test -s conftest.$ac_objext'
  46320. - { (case "(($ac_try" in
  46321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46322. - *) ac_try_echo=$ac_try;;
  46323. -esac
  46324. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46325. - (eval "$ac_try") 2>&5
  46326. - ac_status=$?
  46327. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46328. - (exit $ac_status); }; }; then
  46329. - ac_cv_type_long=yes
  46330. -else
  46331. - echo "$as_me: failed program was:" >&5
  46332. -sed 's/^/| /' conftest.$ac_ext >&5
  46333. -
  46334. - ac_cv_type_long=no
  46335. -fi
  46336. -
  46337. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46338. -fi
  46339. -{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  46340. -echo "${ECHO_T}$ac_cv_type_long" >&6; }
  46341. -
  46342. -{ echo "$as_me:$LINENO: checking size of long" >&5
  46343. -echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  46344. -if test "${ac_cv_sizeof_long+set}" = set; then
  46345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46346. -else
  46347. - if test "$ac_cv_type_long" = yes; then
  46348. - # The cast to long int works around a bug in the HP C Compiler
  46349. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  46350. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  46351. - # This bug is HP SR number 8606223364.
  46352. - if test "$cross_compiling" = yes; then
  46353. - # Depending upon the size, compute the lo and hi bounds.
  46354. -cat >conftest.$ac_ext <<_ACEOF
  46355. -/* confdefs.h. */
  46356. -_ACEOF
  46357. -cat confdefs.h >>conftest.$ac_ext
  46358. -cat >>conftest.$ac_ext <<_ACEOF
  46359. -/* end confdefs.h. */
  46360. -$ac_includes_default
  46361. - typedef long ac__type_sizeof_;
  46362. -int
  46363. -main ()
  46364. -{
  46365. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  46366. -test_array [0] = 0
  46367. -
  46368. - ;
  46369. - return 0;
  46370. -}
  46371. -_ACEOF
  46372. -rm -f conftest.$ac_objext
  46373. -if { (ac_try="$ac_compile"
  46374. -case "(($ac_try" in
  46375. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46376. - *) ac_try_echo=$ac_try;;
  46377. -esac
  46378. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46379. - (eval "$ac_compile") 2>conftest.er1
  46380. - ac_status=$?
  46381. - grep -v '^ *+' conftest.er1 >conftest.err
  46382. - rm -f conftest.er1
  46383. - cat conftest.err >&5
  46384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46385. - (exit $ac_status); } &&
  46386. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46387. - { (case "(($ac_try" in
  46388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46389. - *) ac_try_echo=$ac_try;;
  46390. -esac
  46391. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46392. - (eval "$ac_try") 2>&5
  46393. - ac_status=$?
  46394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46395. - (exit $ac_status); }; } &&
  46396. - { ac_try='test -s conftest.$ac_objext'
  46397. - { (case "(($ac_try" in
  46398. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46399. - *) ac_try_echo=$ac_try;;
  46400. -esac
  46401. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46402. - (eval "$ac_try") 2>&5
  46403. - ac_status=$?
  46404. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46405. - (exit $ac_status); }; }; then
  46406. - ac_lo=0 ac_mid=0
  46407. - while :; do
  46408. - cat >conftest.$ac_ext <<_ACEOF
  46409. -/* confdefs.h. */
  46410. -_ACEOF
  46411. -cat confdefs.h >>conftest.$ac_ext
  46412. -cat >>conftest.$ac_ext <<_ACEOF
  46413. -/* end confdefs.h. */
  46414. -$ac_includes_default
  46415. - typedef long ac__type_sizeof_;
  46416. -int
  46417. -main ()
  46418. -{
  46419. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  46420. -test_array [0] = 0
  46421. -
  46422. - ;
  46423. - return 0;
  46424. -}
  46425. -_ACEOF
  46426. -rm -f conftest.$ac_objext
  46427. -if { (ac_try="$ac_compile"
  46428. -case "(($ac_try" in
  46429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46430. - *) ac_try_echo=$ac_try;;
  46431. -esac
  46432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46433. - (eval "$ac_compile") 2>conftest.er1
  46434. - ac_status=$?
  46435. - grep -v '^ *+' conftest.er1 >conftest.err
  46436. - rm -f conftest.er1
  46437. - cat conftest.err >&5
  46438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46439. - (exit $ac_status); } &&
  46440. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46441. - { (case "(($ac_try" in
  46442. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46443. - *) ac_try_echo=$ac_try;;
  46444. -esac
  46445. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46446. - (eval "$ac_try") 2>&5
  46447. - ac_status=$?
  46448. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46449. - (exit $ac_status); }; } &&
  46450. - { ac_try='test -s conftest.$ac_objext'
  46451. - { (case "(($ac_try" in
  46452. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46453. - *) ac_try_echo=$ac_try;;
  46454. -esac
  46455. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46456. - (eval "$ac_try") 2>&5
  46457. - ac_status=$?
  46458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46459. - (exit $ac_status); }; }; then
  46460. - ac_hi=$ac_mid; break
  46461. -else
  46462. - echo "$as_me: failed program was:" >&5
  46463. -sed 's/^/| /' conftest.$ac_ext >&5
  46464. -
  46465. - ac_lo=`expr $ac_mid + 1`
  46466. - if test $ac_lo -le $ac_mid; then
  46467. - ac_lo= ac_hi=
  46468. - break
  46469. - fi
  46470. - ac_mid=`expr 2 '*' $ac_mid + 1`
  46471. -fi
  46472. -
  46473. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46474. - done
  46475. -else
  46476. - echo "$as_me: failed program was:" >&5
  46477. -sed 's/^/| /' conftest.$ac_ext >&5
  46478. -
  46479. - cat >conftest.$ac_ext <<_ACEOF
  46480. -/* confdefs.h. */
  46481. -_ACEOF
  46482. -cat confdefs.h >>conftest.$ac_ext
  46483. -cat >>conftest.$ac_ext <<_ACEOF
  46484. -/* end confdefs.h. */
  46485. -$ac_includes_default
  46486. - typedef long ac__type_sizeof_;
  46487. -int
  46488. -main ()
  46489. -{
  46490. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  46491. -test_array [0] = 0
  46492. -
  46493. - ;
  46494. - return 0;
  46495. -}
  46496. -_ACEOF
  46497. -rm -f conftest.$ac_objext
  46498. -if { (ac_try="$ac_compile"
  46499. -case "(($ac_try" in
  46500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46501. - *) ac_try_echo=$ac_try;;
  46502. -esac
  46503. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46504. - (eval "$ac_compile") 2>conftest.er1
  46505. - ac_status=$?
  46506. - grep -v '^ *+' conftest.er1 >conftest.err
  46507. - rm -f conftest.er1
  46508. - cat conftest.err >&5
  46509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46510. - (exit $ac_status); } &&
  46511. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46512. - { (case "(($ac_try" in
  46513. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46514. - *) ac_try_echo=$ac_try;;
  46515. -esac
  46516. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46517. - (eval "$ac_try") 2>&5
  46518. - ac_status=$?
  46519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46520. - (exit $ac_status); }; } &&
  46521. - { ac_try='test -s conftest.$ac_objext'
  46522. - { (case "(($ac_try" in
  46523. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46524. - *) ac_try_echo=$ac_try;;
  46525. -esac
  46526. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46527. - (eval "$ac_try") 2>&5
  46528. - ac_status=$?
  46529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46530. - (exit $ac_status); }; }; then
  46531. - ac_hi=-1 ac_mid=-1
  46532. - while :; do
  46533. - cat >conftest.$ac_ext <<_ACEOF
  46534. -/* confdefs.h. */
  46535. -_ACEOF
  46536. -cat confdefs.h >>conftest.$ac_ext
  46537. -cat >>conftest.$ac_ext <<_ACEOF
  46538. -/* end confdefs.h. */
  46539. -$ac_includes_default
  46540. - typedef long ac__type_sizeof_;
  46541. -int
  46542. -main ()
  46543. -{
  46544. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  46545. -test_array [0] = 0
  46546. -
  46547. - ;
  46548. - return 0;
  46549. -}
  46550. -_ACEOF
  46551. -rm -f conftest.$ac_objext
  46552. -if { (ac_try="$ac_compile"
  46553. -case "(($ac_try" in
  46554. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46555. - *) ac_try_echo=$ac_try;;
  46556. -esac
  46557. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46558. - (eval "$ac_compile") 2>conftest.er1
  46559. - ac_status=$?
  46560. - grep -v '^ *+' conftest.er1 >conftest.err
  46561. - rm -f conftest.er1
  46562. - cat conftest.err >&5
  46563. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46564. - (exit $ac_status); } &&
  46565. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46566. - { (case "(($ac_try" in
  46567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46568. - *) ac_try_echo=$ac_try;;
  46569. -esac
  46570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46571. - (eval "$ac_try") 2>&5
  46572. - ac_status=$?
  46573. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46574. - (exit $ac_status); }; } &&
  46575. - { ac_try='test -s conftest.$ac_objext'
  46576. - { (case "(($ac_try" in
  46577. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46578. - *) ac_try_echo=$ac_try;;
  46579. -esac
  46580. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46581. - (eval "$ac_try") 2>&5
  46582. - ac_status=$?
  46583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46584. - (exit $ac_status); }; }; then
  46585. - ac_lo=$ac_mid; break
  46586. -else
  46587. - echo "$as_me: failed program was:" >&5
  46588. -sed 's/^/| /' conftest.$ac_ext >&5
  46589. -
  46590. - ac_hi=`expr '(' $ac_mid ')' - 1`
  46591. - if test $ac_mid -le $ac_hi; then
  46592. - ac_lo= ac_hi=
  46593. - break
  46594. - fi
  46595. - ac_mid=`expr 2 '*' $ac_mid`
  46596. -fi
  46597. -
  46598. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46599. - done
  46600. -else
  46601. - echo "$as_me: failed program was:" >&5
  46602. -sed 's/^/| /' conftest.$ac_ext >&5
  46603. -
  46604. - ac_lo= ac_hi=
  46605. -fi
  46606. -
  46607. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46608. -fi
  46609. -
  46610. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46611. -# Binary search between lo and hi bounds.
  46612. -while test "x$ac_lo" != "x$ac_hi"; do
  46613. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  46614. - cat >conftest.$ac_ext <<_ACEOF
  46615. -/* confdefs.h. */
  46616. -_ACEOF
  46617. -cat confdefs.h >>conftest.$ac_ext
  46618. -cat >>conftest.$ac_ext <<_ACEOF
  46619. -/* end confdefs.h. */
  46620. -$ac_includes_default
  46621. - typedef long ac__type_sizeof_;
  46622. -int
  46623. -main ()
  46624. -{
  46625. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  46626. -test_array [0] = 0
  46627. -
  46628. - ;
  46629. - return 0;
  46630. -}
  46631. -_ACEOF
  46632. -rm -f conftest.$ac_objext
  46633. -if { (ac_try="$ac_compile"
  46634. -case "(($ac_try" in
  46635. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46636. - *) ac_try_echo=$ac_try;;
  46637. -esac
  46638. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46639. - (eval "$ac_compile") 2>conftest.er1
  46640. - ac_status=$?
  46641. - grep -v '^ *+' conftest.er1 >conftest.err
  46642. - rm -f conftest.er1
  46643. - cat conftest.err >&5
  46644. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46645. - (exit $ac_status); } &&
  46646. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46647. - { (case "(($ac_try" in
  46648. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46649. - *) ac_try_echo=$ac_try;;
  46650. -esac
  46651. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46652. - (eval "$ac_try") 2>&5
  46653. - ac_status=$?
  46654. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46655. - (exit $ac_status); }; } &&
  46656. - { ac_try='test -s conftest.$ac_objext'
  46657. - { (case "(($ac_try" in
  46658. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46659. - *) ac_try_echo=$ac_try;;
  46660. -esac
  46661. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46662. - (eval "$ac_try") 2>&5
  46663. - ac_status=$?
  46664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46665. - (exit $ac_status); }; }; then
  46666. - ac_hi=$ac_mid
  46667. -else
  46668. - echo "$as_me: failed program was:" >&5
  46669. -sed 's/^/| /' conftest.$ac_ext >&5
  46670. -
  46671. - ac_lo=`expr '(' $ac_mid ')' + 1`
  46672. -fi
  46673. -
  46674. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46675. -done
  46676. -case $ac_lo in
  46677. -?*) ac_cv_sizeof_long=$ac_lo;;
  46678. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  46679. -See \`config.log' for more details." >&5
  46680. -echo "$as_me: error: cannot compute sizeof (long)
  46681. -See \`config.log' for more details." >&2;}
  46682. - { (exit 77); exit 77; }; } ;;
  46683. -esac
  46684. -else
  46685. - cat >conftest.$ac_ext <<_ACEOF
  46686. -/* confdefs.h. */
  46687. -_ACEOF
  46688. -cat confdefs.h >>conftest.$ac_ext
  46689. -cat >>conftest.$ac_ext <<_ACEOF
  46690. -/* end confdefs.h. */
  46691. -$ac_includes_default
  46692. - typedef long ac__type_sizeof_;
  46693. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  46694. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  46695. -#include <stdio.h>
  46696. -#include <stdlib.h>
  46697. -int
  46698. -main ()
  46699. -{
  46700. -
  46701. - FILE *f = fopen ("conftest.val", "w");
  46702. - if (! f)
  46703. - return 1;
  46704. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  46705. - {
  46706. - long int i = longval ();
  46707. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  46708. - return 1;
  46709. - fprintf (f, "%ld\n", i);
  46710. - }
  46711. - else
  46712. - {
  46713. - unsigned long int i = ulongval ();
  46714. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  46715. - return 1;
  46716. - fprintf (f, "%lu\n", i);
  46717. - }
  46718. - return ferror (f) || fclose (f) != 0;
  46719. -
  46720. - ;
  46721. - return 0;
  46722. -}
  46723. -_ACEOF
  46724. -rm -f conftest$ac_exeext
  46725. -if { (ac_try="$ac_link"
  46726. -case "(($ac_try" in
  46727. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46728. - *) ac_try_echo=$ac_try;;
  46729. -esac
  46730. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46731. - (eval "$ac_link") 2>&5
  46732. - ac_status=$?
  46733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46734. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46735. - { (case "(($ac_try" in
  46736. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46737. - *) ac_try_echo=$ac_try;;
  46738. -esac
  46739. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46740. - (eval "$ac_try") 2>&5
  46741. - ac_status=$?
  46742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46743. - (exit $ac_status); }; }; then
  46744. - ac_cv_sizeof_long=`cat conftest.val`
  46745. -else
  46746. - echo "$as_me: program exited with status $ac_status" >&5
  46747. -echo "$as_me: failed program was:" >&5
  46748. -sed 's/^/| /' conftest.$ac_ext >&5
  46749. -
  46750. -( exit $ac_status )
  46751. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  46752. -See \`config.log' for more details." >&5
  46753. -echo "$as_me: error: cannot compute sizeof (long)
  46754. -See \`config.log' for more details." >&2;}
  46755. - { (exit 77); exit 77; }; }
  46756. -fi
  46757. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46758. -fi
  46759. -rm -f conftest.val
  46760. -else
  46761. - ac_cv_sizeof_long=0
  46762. -fi
  46763. -fi
  46764. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  46765. -echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  46766. -cat >>confdefs.h <<_ACEOF
  46767. -#define SIZEOF_LONG $ac_cv_sizeof_long
  46768. -_ACEOF
  46769. -
  46770. -
  46771. -
  46772. -{ echo "$as_me:$LINENO: checking for uint8_t" >&5
  46773. -echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  46774. -if test "${ac_cv_type_uint8_t+set}" = set; then
  46775. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46776. -else
  46777. - cat >conftest.$ac_ext <<_ACEOF
  46778. -/* confdefs.h. */
  46779. -_ACEOF
  46780. -cat confdefs.h >>conftest.$ac_ext
  46781. -cat >>conftest.$ac_ext <<_ACEOF
  46782. -/* end confdefs.h. */
  46783. -$ac_includes_default
  46784. -typedef uint8_t ac__type_new_;
  46785. -int
  46786. -main ()
  46787. -{
  46788. -if ((ac__type_new_ *) 0)
  46789. - return 0;
  46790. -if (sizeof (ac__type_new_))
  46791. - return 0;
  46792. - ;
  46793. - return 0;
  46794. -}
  46795. -_ACEOF
  46796. -rm -f conftest.$ac_objext
  46797. -if { (ac_try="$ac_compile"
  46798. -case "(($ac_try" in
  46799. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46800. - *) ac_try_echo=$ac_try;;
  46801. -esac
  46802. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46803. - (eval "$ac_compile") 2>conftest.er1
  46804. - ac_status=$?
  46805. - grep -v '^ *+' conftest.er1 >conftest.err
  46806. - rm -f conftest.er1
  46807. - cat conftest.err >&5
  46808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46809. - (exit $ac_status); } &&
  46810. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46811. - { (case "(($ac_try" in
  46812. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46813. - *) ac_try_echo=$ac_try;;
  46814. -esac
  46815. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46816. - (eval "$ac_try") 2>&5
  46817. - ac_status=$?
  46818. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46819. - (exit $ac_status); }; } &&
  46820. - { ac_try='test -s conftest.$ac_objext'
  46821. - { (case "(($ac_try" in
  46822. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46823. - *) ac_try_echo=$ac_try;;
  46824. -esac
  46825. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46826. - (eval "$ac_try") 2>&5
  46827. - ac_status=$?
  46828. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46829. - (exit $ac_status); }; }; then
  46830. - ac_cv_type_uint8_t=yes
  46831. -else
  46832. - echo "$as_me: failed program was:" >&5
  46833. -sed 's/^/| /' conftest.$ac_ext >&5
  46834. -
  46835. - ac_cv_type_uint8_t=no
  46836. -fi
  46837. -
  46838. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46839. -fi
  46840. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  46841. -echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  46842. -if test $ac_cv_type_uint8_t = yes; then
  46843. - :
  46844. -else
  46845. -
  46846. -cat >>confdefs.h <<_ACEOF
  46847. -#define uint8_t unsigned char
  46848. -_ACEOF
  46849. -
  46850. -fi
  46851. -
  46852. -{ echo "$as_me:$LINENO: checking for uint16_t" >&5
  46853. -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  46854. -if test "${ac_cv_type_uint16_t+set}" = set; then
  46855. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46856. -else
  46857. - cat >conftest.$ac_ext <<_ACEOF
  46858. -/* confdefs.h. */
  46859. -_ACEOF
  46860. -cat confdefs.h >>conftest.$ac_ext
  46861. -cat >>conftest.$ac_ext <<_ACEOF
  46862. -/* end confdefs.h. */
  46863. -$ac_includes_default
  46864. -typedef uint16_t ac__type_new_;
  46865. -int
  46866. -main ()
  46867. -{
  46868. -if ((ac__type_new_ *) 0)
  46869. - return 0;
  46870. -if (sizeof (ac__type_new_))
  46871. - return 0;
  46872. - ;
  46873. - return 0;
  46874. -}
  46875. -_ACEOF
  46876. -rm -f conftest.$ac_objext
  46877. -if { (ac_try="$ac_compile"
  46878. -case "(($ac_try" in
  46879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46880. - *) ac_try_echo=$ac_try;;
  46881. -esac
  46882. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46883. - (eval "$ac_compile") 2>conftest.er1
  46884. - ac_status=$?
  46885. - grep -v '^ *+' conftest.er1 >conftest.err
  46886. - rm -f conftest.er1
  46887. - cat conftest.err >&5
  46888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46889. - (exit $ac_status); } &&
  46890. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46891. - { (case "(($ac_try" in
  46892. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46893. - *) ac_try_echo=$ac_try;;
  46894. -esac
  46895. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46896. - (eval "$ac_try") 2>&5
  46897. - ac_status=$?
  46898. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46899. - (exit $ac_status); }; } &&
  46900. - { ac_try='test -s conftest.$ac_objext'
  46901. - { (case "(($ac_try" in
  46902. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46903. - *) ac_try_echo=$ac_try;;
  46904. -esac
  46905. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46906. - (eval "$ac_try") 2>&5
  46907. - ac_status=$?
  46908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46909. - (exit $ac_status); }; }; then
  46910. - ac_cv_type_uint16_t=yes
  46911. -else
  46912. - echo "$as_me: failed program was:" >&5
  46913. -sed 's/^/| /' conftest.$ac_ext >&5
  46914. -
  46915. - ac_cv_type_uint16_t=no
  46916. -fi
  46917. -
  46918. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46919. -fi
  46920. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  46921. -echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  46922. -if test $ac_cv_type_uint16_t = yes; then
  46923. - :
  46924. -else
  46925. -
  46926. -cat >>confdefs.h <<_ACEOF
  46927. -#define uint16_t unsigned short
  46928. -_ACEOF
  46929. -
  46930. -fi
  46931. -
  46932. -{ echo "$as_me:$LINENO: checking for uint32_t" >&5
  46933. -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  46934. -if test "${ac_cv_type_uint32_t+set}" = set; then
  46935. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46936. -else
  46937. - cat >conftest.$ac_ext <<_ACEOF
  46938. -/* confdefs.h. */
  46939. -_ACEOF
  46940. -cat confdefs.h >>conftest.$ac_ext
  46941. -cat >>conftest.$ac_ext <<_ACEOF
  46942. -/* end confdefs.h. */
  46943. -$ac_includes_default
  46944. -typedef uint32_t ac__type_new_;
  46945. -int
  46946. -main ()
  46947. -{
  46948. -if ((ac__type_new_ *) 0)
  46949. - return 0;
  46950. -if (sizeof (ac__type_new_))
  46951. - return 0;
  46952. - ;
  46953. - return 0;
  46954. -}
  46955. -_ACEOF
  46956. -rm -f conftest.$ac_objext
  46957. -if { (ac_try="$ac_compile"
  46958. -case "(($ac_try" in
  46959. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46960. - *) ac_try_echo=$ac_try;;
  46961. -esac
  46962. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46963. - (eval "$ac_compile") 2>conftest.er1
  46964. - ac_status=$?
  46965. - grep -v '^ *+' conftest.er1 >conftest.err
  46966. - rm -f conftest.er1
  46967. - cat conftest.err >&5
  46968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46969. - (exit $ac_status); } &&
  46970. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46971. - { (case "(($ac_try" in
  46972. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46973. - *) ac_try_echo=$ac_try;;
  46974. -esac
  46975. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46976. - (eval "$ac_try") 2>&5
  46977. - ac_status=$?
  46978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46979. - (exit $ac_status); }; } &&
  46980. - { ac_try='test -s conftest.$ac_objext'
  46981. - { (case "(($ac_try" in
  46982. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46983. - *) ac_try_echo=$ac_try;;
  46984. -esac
  46985. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46986. - (eval "$ac_try") 2>&5
  46987. - ac_status=$?
  46988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46989. - (exit $ac_status); }; }; then
  46990. - ac_cv_type_uint32_t=yes
  46991. -else
  46992. - echo "$as_me: failed program was:" >&5
  46993. -sed 's/^/| /' conftest.$ac_ext >&5
  46994. -
  46995. - ac_cv_type_uint32_t=no
  46996. -fi
  46997. -
  46998. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46999. -fi
  47000. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  47001. -echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  47002. -if test $ac_cv_type_uint32_t = yes; then
  47003. - :
  47004. -else
  47005. -
  47006. -cat >>confdefs.h <<_ACEOF
  47007. -#define uint32_t unsigned int
  47008. -_ACEOF
  47009. -
  47010. -fi
  47011. -
  47012. -{ echo "$as_me:$LINENO: checking for int8_t" >&5
  47013. -echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  47014. -if test "${ac_cv_type_int8_t+set}" = set; then
  47015. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47016. -else
  47017. - cat >conftest.$ac_ext <<_ACEOF
  47018. -/* confdefs.h. */
  47019. -_ACEOF
  47020. -cat confdefs.h >>conftest.$ac_ext
  47021. -cat >>conftest.$ac_ext <<_ACEOF
  47022. -/* end confdefs.h. */
  47023. -$ac_includes_default
  47024. -typedef int8_t ac__type_new_;
  47025. -int
  47026. -main ()
  47027. -{
  47028. -if ((ac__type_new_ *) 0)
  47029. - return 0;
  47030. -if (sizeof (ac__type_new_))
  47031. - return 0;
  47032. - ;
  47033. - return 0;
  47034. -}
  47035. -_ACEOF
  47036. -rm -f conftest.$ac_objext
  47037. -if { (ac_try="$ac_compile"
  47038. -case "(($ac_try" in
  47039. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47040. - *) ac_try_echo=$ac_try;;
  47041. -esac
  47042. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47043. - (eval "$ac_compile") 2>conftest.er1
  47044. - ac_status=$?
  47045. - grep -v '^ *+' conftest.er1 >conftest.err
  47046. - rm -f conftest.er1
  47047. - cat conftest.err >&5
  47048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47049. - (exit $ac_status); } &&
  47050. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47051. - { (case "(($ac_try" in
  47052. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47053. - *) ac_try_echo=$ac_try;;
  47054. -esac
  47055. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47056. - (eval "$ac_try") 2>&5
  47057. - ac_status=$?
  47058. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47059. - (exit $ac_status); }; } &&
  47060. - { ac_try='test -s conftest.$ac_objext'
  47061. - { (case "(($ac_try" in
  47062. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47063. - *) ac_try_echo=$ac_try;;
  47064. -esac
  47065. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47066. - (eval "$ac_try") 2>&5
  47067. - ac_status=$?
  47068. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47069. - (exit $ac_status); }; }; then
  47070. - ac_cv_type_int8_t=yes
  47071. -else
  47072. - echo "$as_me: failed program was:" >&5
  47073. -sed 's/^/| /' conftest.$ac_ext >&5
  47074. -
  47075. - ac_cv_type_int8_t=no
  47076. -fi
  47077. -
  47078. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47079. -fi
  47080. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  47081. -echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  47082. -if test $ac_cv_type_int8_t = yes; then
  47083. - :
  47084. -else
  47085. -
  47086. -cat >>confdefs.h <<_ACEOF
  47087. -#define int8_t signed char
  47088. -_ACEOF
  47089. -
  47090. -fi
  47091. -
  47092. -{ echo "$as_me:$LINENO: checking for int16_t" >&5
  47093. -echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  47094. -if test "${ac_cv_type_int16_t+set}" = set; then
  47095. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47096. -else
  47097. - cat >conftest.$ac_ext <<_ACEOF
  47098. -/* confdefs.h. */
  47099. -_ACEOF
  47100. -cat confdefs.h >>conftest.$ac_ext
  47101. -cat >>conftest.$ac_ext <<_ACEOF
  47102. -/* end confdefs.h. */
  47103. -$ac_includes_default
  47104. -typedef int16_t ac__type_new_;
  47105. -int
  47106. -main ()
  47107. -{
  47108. -if ((ac__type_new_ *) 0)
  47109. - return 0;
  47110. -if (sizeof (ac__type_new_))
  47111. - return 0;
  47112. - ;
  47113. - return 0;
  47114. -}
  47115. -_ACEOF
  47116. -rm -f conftest.$ac_objext
  47117. -if { (ac_try="$ac_compile"
  47118. -case "(($ac_try" in
  47119. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47120. - *) ac_try_echo=$ac_try;;
  47121. -esac
  47122. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47123. - (eval "$ac_compile") 2>conftest.er1
  47124. - ac_status=$?
  47125. - grep -v '^ *+' conftest.er1 >conftest.err
  47126. - rm -f conftest.er1
  47127. - cat conftest.err >&5
  47128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47129. - (exit $ac_status); } &&
  47130. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47131. - { (case "(($ac_try" in
  47132. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47133. - *) ac_try_echo=$ac_try;;
  47134. -esac
  47135. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47136. - (eval "$ac_try") 2>&5
  47137. - ac_status=$?
  47138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47139. - (exit $ac_status); }; } &&
  47140. - { ac_try='test -s conftest.$ac_objext'
  47141. - { (case "(($ac_try" in
  47142. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47143. - *) ac_try_echo=$ac_try;;
  47144. -esac
  47145. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47146. - (eval "$ac_try") 2>&5
  47147. - ac_status=$?
  47148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47149. - (exit $ac_status); }; }; then
  47150. - ac_cv_type_int16_t=yes
  47151. -else
  47152. - echo "$as_me: failed program was:" >&5
  47153. -sed 's/^/| /' conftest.$ac_ext >&5
  47154. -
  47155. - ac_cv_type_int16_t=no
  47156. -fi
  47157. -
  47158. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47159. -fi
  47160. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  47161. -echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  47162. -if test $ac_cv_type_int16_t = yes; then
  47163. - :
  47164. -else
  47165. -
  47166. -cat >>confdefs.h <<_ACEOF
  47167. -#define int16_t short
  47168. -_ACEOF
  47169. -
  47170. -fi
  47171. -
  47172. -{ echo "$as_me:$LINENO: checking for int32_t" >&5
  47173. -echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  47174. -if test "${ac_cv_type_int32_t+set}" = set; then
  47175. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47176. -else
  47177. - cat >conftest.$ac_ext <<_ACEOF
  47178. -/* confdefs.h. */
  47179. -_ACEOF
  47180. -cat confdefs.h >>conftest.$ac_ext
  47181. -cat >>conftest.$ac_ext <<_ACEOF
  47182. -/* end confdefs.h. */
  47183. -$ac_includes_default
  47184. -typedef int32_t ac__type_new_;
  47185. -int
  47186. -main ()
  47187. -{
  47188. -if ((ac__type_new_ *) 0)
  47189. - return 0;
  47190. -if (sizeof (ac__type_new_))
  47191. - return 0;
  47192. - ;
  47193. - return 0;
  47194. -}
  47195. -_ACEOF
  47196. -rm -f conftest.$ac_objext
  47197. -if { (ac_try="$ac_compile"
  47198. -case "(($ac_try" in
  47199. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47200. - *) ac_try_echo=$ac_try;;
  47201. -esac
  47202. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47203. - (eval "$ac_compile") 2>conftest.er1
  47204. - ac_status=$?
  47205. - grep -v '^ *+' conftest.er1 >conftest.err
  47206. - rm -f conftest.er1
  47207. - cat conftest.err >&5
  47208. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47209. - (exit $ac_status); } &&
  47210. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47211. - { (case "(($ac_try" in
  47212. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47213. - *) ac_try_echo=$ac_try;;
  47214. -esac
  47215. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47216. - (eval "$ac_try") 2>&5
  47217. - ac_status=$?
  47218. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47219. - (exit $ac_status); }; } &&
  47220. - { ac_try='test -s conftest.$ac_objext'
  47221. - { (case "(($ac_try" in
  47222. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47223. - *) ac_try_echo=$ac_try;;
  47224. -esac
  47225. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47226. - (eval "$ac_try") 2>&5
  47227. - ac_status=$?
  47228. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47229. - (exit $ac_status); }; }; then
  47230. - ac_cv_type_int32_t=yes
  47231. -else
  47232. - echo "$as_me: failed program was:" >&5
  47233. -sed 's/^/| /' conftest.$ac_ext >&5
  47234. -
  47235. - ac_cv_type_int32_t=no
  47236. -fi
  47237. -
  47238. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47239. -fi
  47240. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  47241. -echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  47242. -if test $ac_cv_type_int32_t = yes; then
  47243. - :
  47244. -else
  47245. -
  47246. -cat >>confdefs.h <<_ACEOF
  47247. -#define int32_t int
  47248. -_ACEOF
  47249. -
  47250. -fi
  47251. -
  47252. -
  47253. -if test $ac_cv_c_compiler_gnu = yes; then
  47254. - { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  47255. -echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  47256. -if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  47257. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47258. -else
  47259. - ac_pattern="Autoconf.*'x'"
  47260. - cat >conftest.$ac_ext <<_ACEOF
  47261. -/* confdefs.h. */
  47262. -_ACEOF
  47263. -cat confdefs.h >>conftest.$ac_ext
  47264. -cat >>conftest.$ac_ext <<_ACEOF
  47265. -/* end confdefs.h. */
  47266. -#include <sgtty.h>
  47267. -Autoconf TIOCGETP
  47268. -_ACEOF
  47269. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  47270. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  47271. - ac_cv_prog_gcc_traditional=yes
  47272. -else
  47273. - ac_cv_prog_gcc_traditional=no
  47274. -fi
  47275. -rm -f conftest*
  47276. -
  47277. -
  47278. - if test $ac_cv_prog_gcc_traditional = no; then
  47279. - cat >conftest.$ac_ext <<_ACEOF
  47280. -/* confdefs.h. */
  47281. -_ACEOF
  47282. -cat confdefs.h >>conftest.$ac_ext
  47283. -cat >>conftest.$ac_ext <<_ACEOF
  47284. -/* end confdefs.h. */
  47285. -#include <termio.h>
  47286. -Autoconf TCGETA
  47287. -_ACEOF
  47288. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  47289. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  47290. - ac_cv_prog_gcc_traditional=yes
  47291. -fi
  47292. -rm -f conftest*
  47293. -
  47294. - fi
  47295. -fi
  47296. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  47297. -echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  47298. - if test $ac_cv_prog_gcc_traditional = yes; then
  47299. - CC="$CC -traditional"
  47300. - fi
  47301. -fi
  47302. +case $srcdir in
  47303. + .) # We are building in place.
  47304. + ac_srcdir=.
  47305. + ac_top_srcdir=$ac_top_builddir_sub
  47306. + ac_abs_top_srcdir=$ac_pwd ;;
  47307. + [\\/]* | ?:[\\/]* ) # Absolute name.
  47308. + ac_srcdir=$srcdir$ac_dir_suffix;
  47309. + ac_top_srcdir=$srcdir
  47310. + ac_abs_top_srcdir=$srcdir ;;
  47311. + *) # Relative name.
  47312. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  47313. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  47314. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  47315. +esac
  47316. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  47317. -{ echo "$as_me:$LINENO: checking for working memcmp" >&5
  47318. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  47319. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  47320. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47321. -else
  47322. - if test "$cross_compiling" = yes; then
  47323. - ac_cv_func_memcmp_working=no
  47324. -else
  47325. - cat >conftest.$ac_ext <<_ACEOF
  47326. -/* confdefs.h. */
  47327. -_ACEOF
  47328. -cat confdefs.h >>conftest.$ac_ext
  47329. -cat >>conftest.$ac_ext <<_ACEOF
  47330. -/* end confdefs.h. */
  47331. -$ac_includes_default
  47332. -int
  47333. -main ()
  47334. -{
  47335. - /* Some versions of memcmp are not 8-bit clean. */
  47336. - char c0 = '\100', c1 = '\200', c2 = '\201';
  47337. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  47338. - return 1;
  47339. + case $ac_mode in
  47340. + :F)
  47341. + #
  47342. + # CONFIG_FILE
  47343. + #
  47344. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  47345. - or more and with at least one buffer not starting on a 4-byte boundary.
  47346. - William Lewis provided this test program. */
  47347. - {
  47348. - char foo[21];
  47349. - char bar[21];
  47350. - int i;
  47351. - for (i = 0; i < 4; i++)
  47352. - {
  47353. - char *a = foo + i;
  47354. - char *b = bar + i;
  47355. - strcpy (a, "--------01111111");
  47356. - strcpy (b, "--------10000000");
  47357. - if (memcmp (a, b, 16) >= 0)
  47358. - return 1;
  47359. - }
  47360. - return 0;
  47361. - }
  47362. + case $INSTALL in
  47363. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  47364. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  47365. + esac
  47366. + ac_MKDIR_P=$MKDIR_P
  47367. + case $MKDIR_P in
  47368. + [\\/$]* | ?:[\\/]* ) ;;
  47369. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  47370. + esac
  47371. +_ACEOF
  47372. - ;
  47373. - return 0;
  47374. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47375. +# If the template does not know about datarootdir, expand it.
  47376. +# FIXME: This hack should be removed a few years after 2.60.
  47377. +ac_datarootdir_hack=; ac_datarootdir_seen=
  47378. +ac_sed_dataroot='
  47379. +/datarootdir/ {
  47380. + p
  47381. + q
  47382. }
  47383. +/@datadir@/p
  47384. +/@docdir@/p
  47385. +/@infodir@/p
  47386. +/@localedir@/p
  47387. +/@mandir@/p'
  47388. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  47389. +*datarootdir*) ac_datarootdir_seen=yes;;
  47390. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  47391. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  47392. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  47393. _ACEOF
  47394. -rm -f conftest$ac_exeext
  47395. -if { (ac_try="$ac_link"
  47396. -case "(($ac_try" in
  47397. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47398. - *) ac_try_echo=$ac_try;;
  47399. -esac
  47400. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47401. - (eval "$ac_link") 2>&5
  47402. - ac_status=$?
  47403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47404. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  47405. - { (case "(($ac_try" in
  47406. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47407. - *) ac_try_echo=$ac_try;;
  47408. -esac
  47409. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47410. - (eval "$ac_try") 2>&5
  47411. - ac_status=$?
  47412. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47413. - (exit $ac_status); }; }; then
  47414. - ac_cv_func_memcmp_working=yes
  47415. -else
  47416. - echo "$as_me: program exited with status $ac_status" >&5
  47417. -echo "$as_me: failed program was:" >&5
  47418. -sed 's/^/| /' conftest.$ac_ext >&5
  47419. -
  47420. -( exit $ac_status )
  47421. -ac_cv_func_memcmp_working=no
  47422. -fi
  47423. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  47424. -fi
  47425. -
  47426. -
  47427. -fi
  47428. -{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  47429. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  47430. -test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  47431. - *" memcmp.$ac_objext "* ) ;;
  47432. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  47433. - ;;
  47434. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47435. + ac_datarootdir_hack='
  47436. + s&@datadir@&$datadir&g
  47437. + s&@docdir@&$docdir&g
  47438. + s&@infodir@&$infodir&g
  47439. + s&@localedir@&$localedir&g
  47440. + s&@mandir@&$mandir&g
  47441. + s&\\\${datarootdir}&$datarootdir&g' ;;
  47442. esac
  47443. -
  47444. -
  47445. -
  47446. -for ac_func in strdup
  47447. -do
  47448. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47449. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  47450. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  47451. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  47452. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47453. -else
  47454. - cat >conftest.$ac_ext <<_ACEOF
  47455. -/* confdefs.h. */
  47456. _ACEOF
  47457. -cat confdefs.h >>conftest.$ac_ext
  47458. -cat >>conftest.$ac_ext <<_ACEOF
  47459. -/* end confdefs.h. */
  47460. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  47461. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47462. -#define $ac_func innocuous_$ac_func
  47463. -/* System header to define __stub macros and hopefully few prototypes,
  47464. - which can conflict with char $ac_func (); below.
  47465. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47466. - <limits.h> exists even on freestanding compilers. */
  47467. +# Neutralize VPATH when `$srcdir' = `.'.
  47468. +# Shell code in configure.ac might set extrasub.
  47469. +# FIXME: do we really want to maintain this feature?
  47470. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47471. +ac_sed_extra="$ac_vpsub
  47472. +$extrasub
  47473. +_ACEOF
  47474. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47475. +:t
  47476. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  47477. +s|@configure_input@|$ac_sed_conf_input|;t t
  47478. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  47479. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  47480. +s&@srcdir@&$ac_srcdir&;t t
  47481. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  47482. +s&@top_srcdir@&$ac_top_srcdir&;t t
  47483. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  47484. +s&@builddir@&$ac_builddir&;t t
  47485. +s&@abs_builddir@&$ac_abs_builddir&;t t
  47486. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  47487. +s&@INSTALL@&$ac_INSTALL&;t t
  47488. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  47489. +$ac_datarootdir_hack
  47490. +"
  47491. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  47492. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47493. -#ifdef __STDC__
  47494. -# include <limits.h>
  47495. -#else
  47496. -# include <assert.h>
  47497. -#endif
  47498. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  47499. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  47500. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  47501. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  47502. +which seems to be undefined. Please make sure it is defined." >&5
  47503. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  47504. +which seems to be undefined. Please make sure it is defined." >&2;}
  47505. -#undef $ac_func
  47506. + rm -f "$tmp/stdin"
  47507. + case $ac_file in
  47508. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  47509. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  47510. + esac \
  47511. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47512. + ;;
  47513. + :H)
  47514. + #
  47515. + # CONFIG_HEADER
  47516. + #
  47517. + if test x"$ac_file" != x-; then
  47518. + {
  47519. + $as_echo "/* $configure_input */" \
  47520. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  47521. + } >"$tmp/config.h" \
  47522. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47523. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  47524. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  47525. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  47526. + else
  47527. + rm -f "$ac_file"
  47528. + mv "$tmp/config.h" "$ac_file" \
  47529. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47530. + fi
  47531. + else
  47532. + $as_echo "/* $configure_input */" \
  47533. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  47534. + || as_fn_error "could not create -" "$LINENO" 5
  47535. + fi
  47536. +# Compute "$ac_file"'s index in $config_headers.
  47537. +_am_arg="$ac_file"
  47538. +_am_stamp_count=1
  47539. +for _am_header in $config_headers :; do
  47540. + case $_am_header in
  47541. + $_am_arg | $_am_arg:* )
  47542. + break ;;
  47543. + * )
  47544. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  47545. + esac
  47546. +done
  47547. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  47548. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47549. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  47550. + X"$_am_arg" : 'X\(//\)$' \| \
  47551. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  47552. +$as_echo X"$_am_arg" |
  47553. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47554. + s//\1/
  47555. + q
  47556. + }
  47557. + /^X\(\/\/\)[^/].*/{
  47558. + s//\1/
  47559. + q
  47560. + }
  47561. + /^X\(\/\/\)$/{
  47562. + s//\1/
  47563. + q
  47564. + }
  47565. + /^X\(\/\).*/{
  47566. + s//\1/
  47567. + q
  47568. + }
  47569. + s/.*/./; q'`/stamp-h$_am_stamp_count
  47570. + ;;
  47571. -/* Override any GCC internal prototype to avoid an error.
  47572. - Use char because int might match the return type of a GCC
  47573. - builtin and then its argument prototype would still apply. */
  47574. -#ifdef __cplusplus
  47575. -extern "C"
  47576. -#endif
  47577. -char $ac_func ();
  47578. -/* The GNU C library defines this for functions which it implements
  47579. - to always fail with ENOSYS. Some functions are actually named
  47580. - something starting with __ and the normal name is an alias. */
  47581. -#if defined __stub_$ac_func || defined __stub___$ac_func
  47582. -choke me
  47583. -#endif
  47584. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  47585. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  47586. + ;;
  47587. + esac
  47588. -int
  47589. -main ()
  47590. -{
  47591. -return $ac_func ();
  47592. - ;
  47593. - return 0;
  47594. -}
  47595. -_ACEOF
  47596. -rm -f conftest.$ac_objext conftest$ac_exeext
  47597. -if { (ac_try="$ac_link"
  47598. -case "(($ac_try" in
  47599. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47600. - *) ac_try_echo=$ac_try;;
  47601. -esac
  47602. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47603. - (eval "$ac_link") 2>conftest.er1
  47604. - ac_status=$?
  47605. - grep -v '^ *+' conftest.er1 >conftest.err
  47606. - rm -f conftest.er1
  47607. - cat conftest.err >&5
  47608. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47609. - (exit $ac_status); } &&
  47610. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47611. - { (case "(($ac_try" in
  47612. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47613. - *) ac_try_echo=$ac_try;;
  47614. -esac
  47615. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47616. - (eval "$ac_try") 2>&5
  47617. - ac_status=$?
  47618. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47619. - (exit $ac_status); }; } &&
  47620. - { ac_try='test -s conftest$ac_exeext'
  47621. - { (case "(($ac_try" in
  47622. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47623. - *) ac_try_echo=$ac_try;;
  47624. -esac
  47625. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47626. - (eval "$ac_try") 2>&5
  47627. - ac_status=$?
  47628. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47629. - (exit $ac_status); }; }; then
  47630. - eval "$as_ac_var=yes"
  47631. -else
  47632. - echo "$as_me: failed program was:" >&5
  47633. -sed 's/^/| /' conftest.$ac_ext >&5
  47634. - eval "$as_ac_var=no"
  47635. -fi
  47636. + case $ac_file$ac_mode in
  47637. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  47638. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  47639. + # are listed without --file. Let's play safe and only enable the eval
  47640. + # if we detect the quoting.
  47641. + case $CONFIG_FILES in
  47642. + *\'*) eval set x "$CONFIG_FILES" ;;
  47643. + *) set x $CONFIG_FILES ;;
  47644. + esac
  47645. + shift
  47646. + for mf
  47647. + do
  47648. + # Strip MF so we end up with the name of the file.
  47649. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  47650. + # Check whether this is an Automake generated Makefile or not.
  47651. + # We used to match only the files named `Makefile.in', but
  47652. + # some people rename them; so instead we look at the file content.
  47653. + # Grep'ing the first line is not enough: some people post-process
  47654. + # each Makefile.in and add a new line on top of each file to say so.
  47655. + # Grep'ing the whole file is not good either: AIX grep has a line
  47656. + # limit of 2048, but all sed's we know have understand at least 4000.
  47657. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  47658. + dirpart=`$as_dirname -- "$mf" ||
  47659. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47660. + X"$mf" : 'X\(//\)[^/]' \| \
  47661. + X"$mf" : 'X\(//\)$' \| \
  47662. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  47663. +$as_echo X"$mf" |
  47664. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47665. + s//\1/
  47666. + q
  47667. + }
  47668. + /^X\(\/\/\)[^/].*/{
  47669. + s//\1/
  47670. + q
  47671. + }
  47672. + /^X\(\/\/\)$/{
  47673. + s//\1/
  47674. + q
  47675. + }
  47676. + /^X\(\/\).*/{
  47677. + s//\1/
  47678. + q
  47679. + }
  47680. + s/.*/./; q'`
  47681. + else
  47682. + continue
  47683. + fi
  47684. + # Extract the definition of DEPDIR, am__include, and am__quote
  47685. + # from the Makefile without running `make'.
  47686. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  47687. + test -z "$DEPDIR" && continue
  47688. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  47689. + test -z "am__include" && continue
  47690. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  47691. + # When using ansi2knr, U may be empty or an underscore; expand it
  47692. + U=`sed -n 's/^U = //p' < "$mf"`
  47693. + # Find all dependency output files, they are included files with
  47694. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  47695. + # simplest approach to changing $(DEPDIR) to its actual value in the
  47696. + # expansion.
  47697. + for file in `sed -n "
  47698. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  47699. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  47700. + # Make sure the directory exists.
  47701. + test -f "$dirpart/$file" && continue
  47702. + fdir=`$as_dirname -- "$file" ||
  47703. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47704. + X"$file" : 'X\(//\)[^/]' \| \
  47705. + X"$file" : 'X\(//\)$' \| \
  47706. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  47707. +$as_echo X"$file" |
  47708. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47709. + s//\1/
  47710. + q
  47711. + }
  47712. + /^X\(\/\/\)[^/].*/{
  47713. + s//\1/
  47714. + q
  47715. + }
  47716. + /^X\(\/\/\)$/{
  47717. + s//\1/
  47718. + q
  47719. + }
  47720. + /^X\(\/\).*/{
  47721. + s//\1/
  47722. + q
  47723. + }
  47724. + s/.*/./; q'`
  47725. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  47726. + # echo "creating $dirpart/$file"
  47727. + echo '# dummy' > "$dirpart/$file"
  47728. + done
  47729. + done
  47730. +}
  47731. + ;;
  47732. + "libtool":C)
  47733. -rm -f core conftest.err conftest.$ac_objext \
  47734. - conftest$ac_exeext conftest.$ac_ext
  47735. -fi
  47736. -ac_res=`eval echo '${'$as_ac_var'}'`
  47737. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47738. -echo "${ECHO_T}$ac_res" >&6; }
  47739. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  47740. - cat >>confdefs.h <<_ACEOF
  47741. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47742. -_ACEOF
  47743. + # See if we are running on zsh, and set the options which allow our
  47744. + # commands through without removal of \ escapes.
  47745. + if test -n "${ZSH_VERSION+set}" ; then
  47746. + setopt NO_GLOB_SUBST
  47747. + fi
  47748. -fi
  47749. -done
  47750. + cfgfile="${ofile}T"
  47751. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  47752. + $RM "$cfgfile"
  47753. + cat <<_LT_EOF >> "$cfgfile"
  47754. +#! $SHELL
  47755. -platform=none
  47756. -{ echo "$as_me:$LINENO: checking for platform specific tests to compile" >&5
  47757. -echo $ECHO_N "checking for platform specific tests to compile... $ECHO_C" >&6; }
  47758. -case "$host_os" in
  47759. - linux*)
  47760. - TEST_BIN="linuxtest"
  47761. - platform=linux
  47762. - ;;
  47763. - irix5* | irix6*)
  47764. - TEST_BIN="irixread irixtestloop"
  47765. - platform=irix
  47766. - ;;
  47767. - darwin*)
  47768. - if test -e /System/Library/Frameworks/CoreAudio.framework; then
  47769. - TEST_BIN="osxplay"
  47770. - platform="Mac OS X"
  47771. - fi
  47772. - ;;
  47773. -esac
  47774. -{ echo "$as_me:$LINENO: result: $platform" >&5
  47775. -echo "${ECHO_T}$platform" >&6; }
  47776. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  47777. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  47778. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  47779. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  47780. +#
  47781. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  47782. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  47783. +# Written by Gordon Matzigkeit, 1996
  47784. +#
  47785. +# This file is part of GNU Libtool.
  47786. +#
  47787. +# GNU Libtool is free software; you can redistribute it and/or
  47788. +# modify it under the terms of the GNU General Public License as
  47789. +# published by the Free Software Foundation; either version 2 of
  47790. +# the License, or (at your option) any later version.
  47791. +#
  47792. +# As a special exception to the GNU General Public License,
  47793. +# if you distribute this file as part of a program or library that
  47794. +# is built using GNU Libtool, you may include this file under the
  47795. +# same distribution terms that you use for the rest of that program.
  47796. +#
  47797. +# GNU Libtool is distributed in the hope that it will be useful,
  47798. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  47799. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  47800. +# GNU General Public License for more details.
  47801. +#
  47802. +# You should have received a copy of the GNU General Public License
  47803. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47804. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  47805. +# obtained by writing to the Free Software Foundation, Inc.,
  47806. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47807. -ac_config_files="$ac_config_files audiofile.spec audiofile.pc sfcommands/Makefile test/Makefile examples/Makefile libaudiofile/Makefile libaudiofile/modules/Makefile docs/Makefile win32/Makefile Makefile audiofile-config"
  47808. +# The names of the tagged configurations supported by this script.
  47809. +available_tags=""
  47810. -ac_config_commands="$ac_config_commands default"
  47811. +# ### BEGIN LIBTOOL CONFIG
  47812. -cat >confcache <<\_ACEOF
  47813. -# This file is a shell script that caches the results of configure
  47814. -# tests run on this system so they can be shared between configure
  47815. -# scripts and configure runs, see configure's option --config-cache.
  47816. -# It is not useful on other systems. If it contains results you don't
  47817. -# want to keep, you may remove or edit it.
  47818. -#
  47819. -# config.status only pays attention to the cache file if you give it
  47820. -# the --recheck option to rerun configure.
  47821. -#
  47822. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  47823. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  47824. -# following values.
  47825. +# Assembler program.
  47826. +AS=$AS
  47827. -_ACEOF
  47828. +# DLL creation program.
  47829. +DLLTOOL=$DLLTOOL
  47830. -# The following way of writing the cache mishandles newlines in values,
  47831. -# but we know of no workaround that is simple, portable, and efficient.
  47832. -# So, we kill variables containing newlines.
  47833. -# Ultrix sh set writes to stderr and can't be redirected directly,
  47834. -# and sets the high bit in the cache file unless we assign to the vars.
  47835. -(
  47836. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  47837. - eval ac_val=\$$ac_var
  47838. - case $ac_val in #(
  47839. - *${as_nl}*)
  47840. - case $ac_var in #(
  47841. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  47842. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  47843. - esac
  47844. - case $ac_var in #(
  47845. - _ | IFS | as_nl) ;; #(
  47846. - *) $as_unset $ac_var ;;
  47847. - esac ;;
  47848. - esac
  47849. - done
  47850. +# Object dumper program.
  47851. +OBJDUMP=$OBJDUMP
  47852. - (set) 2>&1 |
  47853. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  47854. - *${as_nl}ac_space=\ *)
  47855. - # `set' does not quote correctly, so add quotes (double-quote
  47856. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  47857. - sed -n \
  47858. - "s/'/'\\\\''/g;
  47859. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  47860. - ;; #(
  47861. - *)
  47862. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  47863. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  47864. - ;;
  47865. - esac |
  47866. - sort
  47867. -) |
  47868. - sed '
  47869. - /^ac_cv_env_/b end
  47870. - t clear
  47871. - :clear
  47872. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  47873. - t end
  47874. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  47875. - :end' >>confcache
  47876. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  47877. - if test -w "$cache_file"; then
  47878. - test "x$cache_file" != "x/dev/null" &&
  47879. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  47880. -echo "$as_me: updating cache $cache_file" >&6;}
  47881. - cat confcache >$cache_file
  47882. - else
  47883. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  47884. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  47885. - fi
  47886. -fi
  47887. -rm -f confcache
  47888. +# Which release of libtool.m4 was used?
  47889. +macro_version=$macro_version
  47890. +macro_revision=$macro_revision
  47891. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  47892. -# Let make expand exec_prefix.
  47893. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  47894. +# Whether or not to build shared libraries.
  47895. +build_libtool_libs=$enable_shared
  47896. -DEFS=-DHAVE_CONFIG_H
  47897. +# Whether or not to build static libraries.
  47898. +build_old_libs=$enable_static
  47899. -ac_libobjs=
  47900. -ac_ltlibobjs=
  47901. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  47902. - # 1. Remove the extension, and $U if already installed.
  47903. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  47904. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  47905. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  47906. - # will be set to the directory where LIBOBJS objects are built.
  47907. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  47908. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  47909. -done
  47910. -LIBOBJS=$ac_libobjs
  47911. +# What type of objects to build.
  47912. +pic_mode=$pic_mode
  47913. -LTLIBOBJS=$ac_ltlibobjs
  47914. +# Whether or not to optimize for fast installation.
  47915. +fast_install=$enable_fast_install
  47916. +# The host system.
  47917. +host_alias=$host_alias
  47918. +host=$host
  47919. +host_os=$host_os
  47920. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  47921. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  47922. -Usually this means the macro was only invoked conditionally." >&5
  47923. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  47924. -Usually this means the macro was only invoked conditionally." >&2;}
  47925. - { (exit 1); exit 1; }; }
  47926. -fi
  47927. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  47928. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  47929. -Usually this means the macro was only invoked conditionally." >&5
  47930. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  47931. -Usually this means the macro was only invoked conditionally." >&2;}
  47932. - { (exit 1); exit 1; }; }
  47933. -fi
  47934. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  47935. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  47936. -Usually this means the macro was only invoked conditionally." >&5
  47937. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  47938. -Usually this means the macro was only invoked conditionally." >&2;}
  47939. - { (exit 1); exit 1; }; }
  47940. -fi
  47941. +# The build system.
  47942. +build_alias=$build_alias
  47943. +build=$build
  47944. +build_os=$build_os
  47945. -: ${CONFIG_STATUS=./config.status}
  47946. -ac_clean_files_save=$ac_clean_files
  47947. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  47948. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  47949. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  47950. -cat >$CONFIG_STATUS <<_ACEOF
  47951. -#! $SHELL
  47952. -# Generated by $as_me.
  47953. -# Run this file to recreate the current configuration.
  47954. -# Compiler output produced by configure, useful for debugging
  47955. -# configure, is in config.log if it exists.
  47956. +# A sed program that does not truncate output.
  47957. +SED=$lt_SED
  47958. -debug=false
  47959. -ac_cs_recheck=false
  47960. -ac_cs_silent=false
  47961. -SHELL=\${CONFIG_SHELL-$SHELL}
  47962. -_ACEOF
  47963. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  47964. +Xsed="\$SED -e 1s/^X//"
  47965. -cat >>$CONFIG_STATUS <<\_ACEOF
  47966. -## --------------------- ##
  47967. -## M4sh Initialization. ##
  47968. -## --------------------- ##
  47969. +# A grep program that handles long lines.
  47970. +GREP=$lt_GREP
  47971. -# Be Bourne compatible
  47972. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47973. - emulate sh
  47974. - NULLCMD=:
  47975. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  47976. - # is contrary to our usage. Disable this feature.
  47977. - alias -g '${1+"$@"}'='"$@"'
  47978. - setopt NO_GLOB_SUBST
  47979. -else
  47980. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  47981. -fi
  47982. -BIN_SH=xpg4; export BIN_SH # for Tru64
  47983. -DUALCASE=1; export DUALCASE # for MKS sh
  47984. +# An ERE matcher.
  47985. +EGREP=$lt_EGREP
  47986. +# A literal string matcher.
  47987. +FGREP=$lt_FGREP
  47988. -# PATH needs CR
  47989. -# Avoid depending upon Character Ranges.
  47990. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  47991. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  47992. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  47993. -as_cr_digits='0123456789'
  47994. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  47995. +# A BSD- or MS-compatible name lister.
  47996. +NM=$lt_NM
  47997. -# The user is always right.
  47998. -if test "${PATH_SEPARATOR+set}" != set; then
  47999. - echo "#! /bin/sh" >conf$$.sh
  48000. - echo "exit 0" >>conf$$.sh
  48001. - chmod +x conf$$.sh
  48002. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  48003. - PATH_SEPARATOR=';'
  48004. - else
  48005. - PATH_SEPARATOR=:
  48006. - fi
  48007. - rm -f conf$$.sh
  48008. -fi
  48009. +# Whether we need soft or hard links.
  48010. +LN_S=$lt_LN_S
  48011. -# Support unset when possible.
  48012. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  48013. - as_unset=unset
  48014. -else
  48015. - as_unset=false
  48016. -fi
  48017. +# What is the maximum length of a command?
  48018. +max_cmd_len=$max_cmd_len
  48019. +# Object file suffix (normally "o").
  48020. +objext=$ac_objext
  48021. -# IFS
  48022. -# We need space, tab and new line, in precisely that order. Quoting is
  48023. -# there to prevent editors from complaining about space-tab.
  48024. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  48025. -# splitting by setting IFS to empty value.)
  48026. -as_nl='
  48027. -'
  48028. -IFS=" "" $as_nl"
  48029. +# Executable file suffix (normally "").
  48030. +exeext=$exeext
  48031. -# Find who we are. Look in the path if we contain no directory separator.
  48032. -case $0 in
  48033. - *[\\/]* ) as_myself=$0 ;;
  48034. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48035. -for as_dir in $PATH
  48036. -do
  48037. - IFS=$as_save_IFS
  48038. - test -z "$as_dir" && as_dir=.
  48039. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  48040. -done
  48041. -IFS=$as_save_IFS
  48042. +# whether the shell understands "unset".
  48043. +lt_unset=$lt_unset
  48044. - ;;
  48045. -esac
  48046. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  48047. -# in which case we are not to be found in the path.
  48048. -if test "x$as_myself" = x; then
  48049. - as_myself=$0
  48050. -fi
  48051. -if test ! -f "$as_myself"; then
  48052. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  48053. - { (exit 1); exit 1; }
  48054. -fi
  48055. +# turn spaces into newlines.
  48056. +SP2NL=$lt_lt_SP2NL
  48057. -# Work around bugs in pre-3.0 UWIN ksh.
  48058. -for as_var in ENV MAIL MAILPATH
  48059. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  48060. -done
  48061. -PS1='$ '
  48062. -PS2='> '
  48063. -PS4='+ '
  48064. +# turn newlines into spaces.
  48065. +NL2SP=$lt_lt_NL2SP
  48066. -# NLS nuisances.
  48067. -for as_var in \
  48068. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  48069. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  48070. - LC_TELEPHONE LC_TIME
  48071. -do
  48072. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  48073. - eval $as_var=C; export $as_var
  48074. - else
  48075. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  48076. - fi
  48077. -done
  48078. +# How to create reloadable object files.
  48079. +reload_flag=$lt_reload_flag
  48080. +reload_cmds=$lt_reload_cmds
  48081. -# Required to use basename.
  48082. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  48083. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48084. - as_expr=expr
  48085. -else
  48086. - as_expr=false
  48087. -fi
  48088. +# Method to check whether dependent libraries are shared objects.
  48089. +deplibs_check_method=$lt_deplibs_check_method
  48090. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  48091. - as_basename=basename
  48092. -else
  48093. - as_basename=false
  48094. -fi
  48095. +# Command to use when deplibs_check_method == "file_magic".
  48096. +file_magic_cmd=$lt_file_magic_cmd
  48097. +# The archiver.
  48098. +AR=$lt_AR
  48099. +AR_FLAGS=$lt_AR_FLAGS
  48100. -# Name of the executable.
  48101. -as_me=`$as_basename -- "$0" ||
  48102. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  48103. - X"$0" : 'X\(//\)$' \| \
  48104. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  48105. -echo X/"$0" |
  48106. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  48107. - s//\1/
  48108. - q
  48109. - }
  48110. - /^X\/\(\/\/\)$/{
  48111. - s//\1/
  48112. - q
  48113. - }
  48114. - /^X\/\(\/\).*/{
  48115. - s//\1/
  48116. - q
  48117. - }
  48118. - s/.*/./; q'`
  48119. +# A symbol stripping program.
  48120. +STRIP=$lt_STRIP
  48121. -# CDPATH.
  48122. -$as_unset CDPATH
  48123. +# Commands used to install an old-style archive.
  48124. +RANLIB=$lt_RANLIB
  48125. +old_postinstall_cmds=$lt_old_postinstall_cmds
  48126. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  48127. +# A C compiler.
  48128. +LTCC=$lt_CC
  48129. +# LTCC compiler flags.
  48130. +LTCFLAGS=$lt_CFLAGS
  48131. - as_lineno_1=$LINENO
  48132. - as_lineno_2=$LINENO
  48133. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  48134. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  48135. -
  48136. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  48137. - # uniformly replaced by the line number. The first 'sed' inserts a
  48138. - # line-number line after each line using $LINENO; the second 'sed'
  48139. - # does the real work. The second script uses 'N' to pair each
  48140. - # line-number line with the line containing $LINENO, and appends
  48141. - # trailing '-' during substitution so that $LINENO is not a special
  48142. - # case at line end.
  48143. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  48144. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  48145. - # E. McMahon (1931-1989) for sed's syntax. :-)
  48146. - sed -n '
  48147. - p
  48148. - /[$]LINENO/=
  48149. - ' <$as_myself |
  48150. - sed '
  48151. - s/[$]LINENO.*/&-/
  48152. - t lineno
  48153. - b
  48154. - :lineno
  48155. - N
  48156. - :loop
  48157. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  48158. - t loop
  48159. - s/-\n.*//
  48160. - ' >$as_me.lineno &&
  48161. - chmod +x "$as_me.lineno" ||
  48162. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  48163. - { (exit 1); exit 1; }; }
  48164. +# Take the output of nm and produce a listing of raw symbols and C names.
  48165. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  48166. - # Don't try to exec as it changes $[0], causing all sort of problems
  48167. - # (the dirname of $[0] is not the place where we might find the
  48168. - # original and so on. Autoconf is especially sensitive to this).
  48169. - . "./$as_me.lineno"
  48170. - # Exit status is that of the last command.
  48171. - exit
  48172. -}
  48173. +# Transform the output of nm in a proper C declaration.
  48174. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  48175. +# Transform the output of nm in a C name address pair.
  48176. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  48177. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  48178. - as_dirname=dirname
  48179. -else
  48180. - as_dirname=false
  48181. -fi
  48182. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  48183. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  48184. -ECHO_C= ECHO_N= ECHO_T=
  48185. -case `echo -n x` in
  48186. --n*)
  48187. - case `echo 'x\c'` in
  48188. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  48189. - *) ECHO_C='\c';;
  48190. - esac;;
  48191. -*)
  48192. - ECHO_N='-n';;
  48193. -esac
  48194. +# The name of the directory that contains temporary libtool files.
  48195. +objdir=$objdir
  48196. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  48197. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48198. - as_expr=expr
  48199. -else
  48200. - as_expr=false
  48201. -fi
  48202. +# Shell to use when invoking shell scripts.
  48203. +SHELL=$lt_SHELL
  48204. -rm -f conf$$ conf$$.exe conf$$.file
  48205. -if test -d conf$$.dir; then
  48206. - rm -f conf$$.dir/conf$$.file
  48207. -else
  48208. - rm -f conf$$.dir
  48209. - mkdir conf$$.dir
  48210. -fi
  48211. -echo >conf$$.file
  48212. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  48213. - as_ln_s='ln -s'
  48214. - # ... but there are two gotchas:
  48215. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  48216. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  48217. - # In both cases, we have to default to `cp -p'.
  48218. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  48219. - as_ln_s='cp -p'
  48220. -elif ln conf$$.file conf$$ 2>/dev/null; then
  48221. - as_ln_s=ln
  48222. -else
  48223. - as_ln_s='cp -p'
  48224. -fi
  48225. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  48226. -rmdir conf$$.dir 2>/dev/null
  48227. +# An echo program that does not interpret backslashes.
  48228. +ECHO=$lt_ECHO
  48229. -if mkdir -p . 2>/dev/null; then
  48230. - as_mkdir_p=:
  48231. -else
  48232. - test -d ./-p && rmdir ./-p
  48233. - as_mkdir_p=false
  48234. -fi
  48235. +# Used to examine libraries when file_magic_cmd begins with "file".
  48236. +MAGIC_CMD=$MAGIC_CMD
  48237. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  48238. -# systems may use methods other than mode bits to determine executability.
  48239. -cat >conf$$.file <<_ASEOF
  48240. -#! /bin/sh
  48241. -exit 0
  48242. -_ASEOF
  48243. -chmod +x conf$$.file
  48244. -if test -x conf$$.file >/dev/null 2>&1; then
  48245. - as_executable_p="test -x"
  48246. -else
  48247. - as_executable_p=:
  48248. -fi
  48249. -rm -f conf$$.file
  48250. +# Must we lock files when doing compilation?
  48251. +need_locks=$lt_need_locks
  48252. -# Sed expression to map a string onto a valid CPP name.
  48253. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  48254. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  48255. +DSYMUTIL=$lt_DSYMUTIL
  48256. -# Sed expression to map a string onto a valid variable name.
  48257. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  48258. +# Tool to change global to local symbols on Mac OS X.
  48259. +NMEDIT=$lt_NMEDIT
  48260. +# Tool to manipulate fat objects and archives on Mac OS X.
  48261. +LIPO=$lt_LIPO
  48262. -exec 6>&1
  48263. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  48264. +OTOOL=$lt_OTOOL
  48265. -# Save the log message, to keep $[0] and so on meaningful, and to
  48266. -# report actual input values of CONFIG_FILES etc. instead of their
  48267. -# values after options handling.
  48268. -ac_log="
  48269. -This file was extended by $as_me, which was
  48270. -generated by GNU Autoconf 2.60. Invocation command line was
  48271. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  48272. +OTOOL64=$lt_OTOOL64
  48273. - CONFIG_FILES = $CONFIG_FILES
  48274. - CONFIG_HEADERS = $CONFIG_HEADERS
  48275. - CONFIG_LINKS = $CONFIG_LINKS
  48276. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  48277. - $ $0 $@
  48278. +# Old archive suffix (normally "a").
  48279. +libext=$libext
  48280. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  48281. -"
  48282. +# Shared library suffix (normally ".so").
  48283. +shrext_cmds=$lt_shrext_cmds
  48284. -_ACEOF
  48285. +# The commands to extract the exported symbol list from a shared archive.
  48286. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  48287. -cat >>$CONFIG_STATUS <<_ACEOF
  48288. -# Files that config.status was made for.
  48289. -config_files="$ac_config_files"
  48290. -config_headers="$ac_config_headers"
  48291. -config_commands="$ac_config_commands"
  48292. +# Variables whose values should be saved in libtool wrapper scripts and
  48293. +# restored at link time.
  48294. +variables_saved_for_relink=$lt_variables_saved_for_relink
  48295. -_ACEOF
  48296. +# Do we need the "lib" prefix for modules?
  48297. +need_lib_prefix=$need_lib_prefix
  48298. -cat >>$CONFIG_STATUS <<\_ACEOF
  48299. -ac_cs_usage="\
  48300. -\`$as_me' instantiates files from templates according to the
  48301. -current configuration.
  48302. +# Do we need a version for libraries?
  48303. +need_version=$need_version
  48304. +
  48305. +# Library versioning type.
  48306. +version_type=$version_type
  48307. -Usage: $0 [OPTIONS] [FILE]...
  48308. +# Shared library runtime path variable.
  48309. +runpath_var=$runpath_var
  48310. - -h, --help print this help, then exit
  48311. - -V, --version print version number, then exit
  48312. - -q, --quiet do not print progress messages
  48313. - -d, --debug don't remove temporary files
  48314. - --recheck update $as_me by reconfiguring in the same conditions
  48315. - --file=FILE[:TEMPLATE]
  48316. - instantiate the configuration file FILE
  48317. - --header=FILE[:TEMPLATE]
  48318. - instantiate the configuration header FILE
  48319. +# Shared library path variable.
  48320. +shlibpath_var=$shlibpath_var
  48321. -Configuration files:
  48322. -$config_files
  48323. +# Is shlibpath searched before the hard-coded library search path?
  48324. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  48325. -Configuration headers:
  48326. -$config_headers
  48327. +# Format of library name prefix.
  48328. +libname_spec=$lt_libname_spec
  48329. -Configuration commands:
  48330. -$config_commands
  48331. +# List of archive names. First name is the real one, the rest are links.
  48332. +# The last name is the one that the linker finds with -lNAME
  48333. +library_names_spec=$lt_library_names_spec
  48334. -Report bugs to <bug-autoconf@gnu.org>."
  48335. +# The coded name of the library, if different from the real name.
  48336. +soname_spec=$lt_soname_spec
  48337. -_ACEOF
  48338. -cat >>$CONFIG_STATUS <<_ACEOF
  48339. -ac_cs_version="\\
  48340. -config.status
  48341. -configured by $0, generated by GNU Autoconf 2.60,
  48342. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  48343. +# Command to use after installation of a shared archive.
  48344. +postinstall_cmds=$lt_postinstall_cmds
  48345. -Copyright (C) 2006 Free Software Foundation, Inc.
  48346. -This config.status script is free software; the Free Software Foundation
  48347. -gives unlimited permission to copy, distribute and modify it."
  48348. +# Command to use after uninstallation of a shared archive.
  48349. +postuninstall_cmds=$lt_postuninstall_cmds
  48350. -ac_pwd='$ac_pwd'
  48351. -srcdir='$srcdir'
  48352. -INSTALL='$INSTALL'
  48353. -_ACEOF
  48354. +# Commands used to finish a libtool library installation in a directory.
  48355. +finish_cmds=$lt_finish_cmds
  48356. -cat >>$CONFIG_STATUS <<\_ACEOF
  48357. -# If no file are specified by the user, then we need to provide default
  48358. -# value. By we need to know if files were specified by the user.
  48359. -ac_need_defaults=:
  48360. -while test $# != 0
  48361. -do
  48362. - case $1 in
  48363. - --*=*)
  48364. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  48365. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  48366. - ac_shift=:
  48367. - ;;
  48368. - *)
  48369. - ac_option=$1
  48370. - ac_optarg=$2
  48371. - ac_shift=shift
  48372. - ;;
  48373. - esac
  48374. +# As "finish_cmds", except a single script fragment to be evaled but
  48375. +# not shown.
  48376. +finish_eval=$lt_finish_eval
  48377. - case $ac_option in
  48378. - # Handling of the options.
  48379. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  48380. - ac_cs_recheck=: ;;
  48381. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  48382. - echo "$ac_cs_version"; exit ;;
  48383. - --debug | --debu | --deb | --de | --d | -d )
  48384. - debug=: ;;
  48385. - --file | --fil | --fi | --f )
  48386. - $ac_shift
  48387. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  48388. - ac_need_defaults=false;;
  48389. - --header | --heade | --head | --hea )
  48390. - $ac_shift
  48391. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  48392. - ac_need_defaults=false;;
  48393. - --he | --h)
  48394. - # Conflict between --help and --header
  48395. - { echo "$as_me: error: ambiguous option: $1
  48396. -Try \`$0 --help' for more information." >&2
  48397. - { (exit 1); exit 1; }; };;
  48398. - --help | --hel | -h )
  48399. - echo "$ac_cs_usage"; exit ;;
  48400. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  48401. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  48402. - ac_cs_silent=: ;;
  48403. +# Whether we should hardcode library paths into libraries.
  48404. +hardcode_into_libs=$hardcode_into_libs
  48405. - # This is an error.
  48406. - -*) { echo "$as_me: error: unrecognized option: $1
  48407. -Try \`$0 --help' for more information." >&2
  48408. - { (exit 1); exit 1; }; } ;;
  48409. +# Compile-time system search path for libraries.
  48410. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  48411. - *) ac_config_targets="$ac_config_targets $1"
  48412. - ac_need_defaults=false ;;
  48413. +# Run-time system search path for libraries.
  48414. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  48415. - esac
  48416. - shift
  48417. -done
  48418. +# Whether dlopen is supported.
  48419. +dlopen_support=$enable_dlopen
  48420. -ac_configure_extra_args=
  48421. +# Whether dlopen of programs is supported.
  48422. +dlopen_self=$enable_dlopen_self
  48423. -if $ac_cs_silent; then
  48424. - exec 6>/dev/null
  48425. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  48426. -fi
  48427. +# Whether dlopen of statically linked programs is supported.
  48428. +dlopen_self_static=$enable_dlopen_self_static
  48429. -_ACEOF
  48430. -cat >>$CONFIG_STATUS <<_ACEOF
  48431. -if \$ac_cs_recheck; then
  48432. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  48433. - CONFIG_SHELL=$SHELL
  48434. - export CONFIG_SHELL
  48435. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  48436. -fi
  48437. +# Commands to strip libraries.
  48438. +old_striplib=$lt_old_striplib
  48439. +striplib=$lt_striplib
  48440. -_ACEOF
  48441. -cat >>$CONFIG_STATUS <<\_ACEOF
  48442. -exec 5>>config.log
  48443. -{
  48444. - echo
  48445. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  48446. -## Running $as_me. ##
  48447. -_ASBOX
  48448. - echo "$ac_log"
  48449. -} >&5
  48450. -_ACEOF
  48451. -cat >>$CONFIG_STATUS <<_ACEOF
  48452. -#
  48453. -# INIT-COMMANDS
  48454. -#
  48455. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  48456. +# The linker used to build libraries.
  48457. +LD=$lt_LD
  48458. -_ACEOF
  48459. +# Commands used to build an old-style archive.
  48460. +old_archive_cmds=$lt_old_archive_cmds
  48461. -cat >>$CONFIG_STATUS <<\_ACEOF
  48462. +# A language specific compiler.
  48463. +CC=$lt_compiler
  48464. -# Handling of arguments.
  48465. -for ac_config_target in $ac_config_targets
  48466. -do
  48467. - case $ac_config_target in
  48468. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  48469. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  48470. - "audiofile.spec") CONFIG_FILES="$CONFIG_FILES audiofile.spec" ;;
  48471. - "audiofile.pc") CONFIG_FILES="$CONFIG_FILES audiofile.pc" ;;
  48472. - "sfcommands/Makefile") CONFIG_FILES="$CONFIG_FILES sfcommands/Makefile" ;;
  48473. - "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  48474. - "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  48475. - "libaudiofile/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/Makefile" ;;
  48476. - "libaudiofile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/modules/Makefile" ;;
  48477. - "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  48478. - "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  48479. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  48480. - "audiofile-config") CONFIG_FILES="$CONFIG_FILES audiofile-config" ;;
  48481. - "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  48482. +# Is the compiler the GNU compiler?
  48483. +with_gcc=$GCC
  48484. +
  48485. +# Compiler flag to turn off builtin functions.
  48486. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  48487. +
  48488. +# How to pass a linker flag through the compiler.
  48489. +wl=$lt_lt_prog_compiler_wl
  48490. +
  48491. +# Additional compiler flags for building library objects.
  48492. +pic_flag=$lt_lt_prog_compiler_pic
  48493. +
  48494. +# Compiler flag to prevent dynamic linking.
  48495. +link_static_flag=$lt_lt_prog_compiler_static
  48496. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  48497. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  48498. - { (exit 1); exit 1; }; };;
  48499. - esac
  48500. -done
  48501. +# Does compiler simultaneously support -c and -o options?
  48502. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  48503. +# Whether or not to add -lc for building shared libraries.
  48504. +build_libtool_need_lc=$archive_cmds_need_lc
  48505. -# If the user did not use the arguments to specify the items to instantiate,
  48506. -# then the envvar interface is used. Set only those that are not.
  48507. -# We use the long form for the default assignment because of an extremely
  48508. -# bizarre bug on SunOS 4.1.3.
  48509. -if $ac_need_defaults; then
  48510. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  48511. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  48512. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  48513. -fi
  48514. +# Whether or not to disallow shared libs when runtime libs are static.
  48515. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  48516. -# Have a temporary directory for convenience. Make it in the build tree
  48517. -# simply because there is no reason against having it here, and in addition,
  48518. -# creating and moving files from /tmp can sometimes cause problems.
  48519. -# Hook for its removal unless debugging.
  48520. -# Note that there is a small window in which the directory will not be cleaned:
  48521. -# after its creation but before its name has been assigned to `$tmp'.
  48522. -$debug ||
  48523. -{
  48524. - tmp=
  48525. - trap 'exit_status=$?
  48526. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  48527. -' 0
  48528. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  48529. -}
  48530. -# Create a (secure) tmp directory for tmp files.
  48531. +# Compiler flag to allow reflexive dlopens.
  48532. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  48533. -{
  48534. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  48535. - test -n "$tmp" && test -d "$tmp"
  48536. -} ||
  48537. -{
  48538. - tmp=./conf$$-$RANDOM
  48539. - (umask 077 && mkdir "$tmp")
  48540. -} ||
  48541. -{
  48542. - echo "$me: cannot create a temporary directory in ." >&2
  48543. - { (exit 1); exit 1; }
  48544. -}
  48545. +# Compiler flag to generate shared objects directly from archives.
  48546. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  48547. -#
  48548. -# Set up the sed scripts for CONFIG_FILES section.
  48549. -#
  48550. +# Whether the compiler copes with passing no objects directly.
  48551. +compiler_needs_object=$lt_compiler_needs_object
  48552. -# No need to generate the scripts if there are no CONFIG_FILES.
  48553. -# This happens for instance when ./config.status config.h
  48554. -if test -n "$CONFIG_FILES"; then
  48555. +# Create an old-style archive from a shared archive.
  48556. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  48557. -_ACEOF
  48558. +# Create a temporary old-style archive to link instead of a shared archive.
  48559. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  48560. +# Commands used to build a shared archive.
  48561. +archive_cmds=$lt_archive_cmds
  48562. +archive_expsym_cmds=$lt_archive_expsym_cmds
  48563. +# Commands used to build a loadable module if different from building
  48564. +# a shared archive.
  48565. +module_cmds=$lt_module_cmds
  48566. +module_expsym_cmds=$lt_module_expsym_cmds
  48567. -ac_delim='%!_!# '
  48568. -for ac_last_try in false false false false false :; do
  48569. - cat >conf$$subs.sed <<_ACEOF
  48570. -SHELL!$SHELL$ac_delim
  48571. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  48572. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  48573. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  48574. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  48575. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  48576. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  48577. -exec_prefix!$exec_prefix$ac_delim
  48578. -prefix!$prefix$ac_delim
  48579. -program_transform_name!$program_transform_name$ac_delim
  48580. -bindir!$bindir$ac_delim
  48581. -sbindir!$sbindir$ac_delim
  48582. -libexecdir!$libexecdir$ac_delim
  48583. -datarootdir!$datarootdir$ac_delim
  48584. -datadir!$datadir$ac_delim
  48585. -sysconfdir!$sysconfdir$ac_delim
  48586. -sharedstatedir!$sharedstatedir$ac_delim
  48587. -localstatedir!$localstatedir$ac_delim
  48588. -includedir!$includedir$ac_delim
  48589. -oldincludedir!$oldincludedir$ac_delim
  48590. -docdir!$docdir$ac_delim
  48591. -infodir!$infodir$ac_delim
  48592. -htmldir!$htmldir$ac_delim
  48593. -dvidir!$dvidir$ac_delim
  48594. -pdfdir!$pdfdir$ac_delim
  48595. -psdir!$psdir$ac_delim
  48596. -libdir!$libdir$ac_delim
  48597. -localedir!$localedir$ac_delim
  48598. -mandir!$mandir$ac_delim
  48599. -DEFS!$DEFS$ac_delim
  48600. -ECHO_C!$ECHO_C$ac_delim
  48601. -ECHO_N!$ECHO_N$ac_delim
  48602. -ECHO_T!$ECHO_T$ac_delim
  48603. -LIBS!$LIBS$ac_delim
  48604. -build_alias!$build_alias$ac_delim
  48605. -host_alias!$host_alias$ac_delim
  48606. -target_alias!$target_alias$ac_delim
  48607. -AUDIOFILE_MAJOR_VERSION!$AUDIOFILE_MAJOR_VERSION$ac_delim
  48608. -AUDIOFILE_MINOR_VERSION!$AUDIOFILE_MINOR_VERSION$ac_delim
  48609. -AUDIOFILE_MICRO_VERSION!$AUDIOFILE_MICRO_VERSION$ac_delim
  48610. -AUDIOFILE_VERSION!$AUDIOFILE_VERSION$ac_delim
  48611. -AUDIOFILE_VERSION_INFO!$AUDIOFILE_VERSION_INFO$ac_delim
  48612. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  48613. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  48614. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  48615. -CYGPATH_W!$CYGPATH_W$ac_delim
  48616. -PACKAGE!$PACKAGE$ac_delim
  48617. -VERSION!$VERSION$ac_delim
  48618. -ACLOCAL!$ACLOCAL$ac_delim
  48619. -AUTOCONF!$AUTOCONF$ac_delim
  48620. -AUTOMAKE!$AUTOMAKE$ac_delim
  48621. -AUTOHEADER!$AUTOHEADER$ac_delim
  48622. -MAKEINFO!$MAKEINFO$ac_delim
  48623. -install_sh!$install_sh$ac_delim
  48624. -STRIP!$STRIP$ac_delim
  48625. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  48626. -mkdir_p!$mkdir_p$ac_delim
  48627. -AWK!$AWK$ac_delim
  48628. -SET_MAKE!$SET_MAKE$ac_delim
  48629. -am__leading_dot!$am__leading_dot$ac_delim
  48630. -AMTAR!$AMTAR$ac_delim
  48631. -am__tar!$am__tar$ac_delim
  48632. -am__untar!$am__untar$ac_delim
  48633. -CC!$CC$ac_delim
  48634. -CFLAGS!$CFLAGS$ac_delim
  48635. -LDFLAGS!$LDFLAGS$ac_delim
  48636. -CPPFLAGS!$CPPFLAGS$ac_delim
  48637. -ac_ct_CC!$ac_ct_CC$ac_delim
  48638. -EXEEXT!$EXEEXT$ac_delim
  48639. -OBJEXT!$OBJEXT$ac_delim
  48640. -DEPDIR!$DEPDIR$ac_delim
  48641. -am__include!$am__include$ac_delim
  48642. -am__quote!$am__quote$ac_delim
  48643. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  48644. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  48645. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  48646. -CCDEPMODE!$CCDEPMODE$ac_delim
  48647. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  48648. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  48649. -build!$build$ac_delim
  48650. -build_cpu!$build_cpu$ac_delim
  48651. -build_vendor!$build_vendor$ac_delim
  48652. -build_os!$build_os$ac_delim
  48653. -host!$host$ac_delim
  48654. -host_cpu!$host_cpu$ac_delim
  48655. -host_vendor!$host_vendor$ac_delim
  48656. -host_os!$host_os$ac_delim
  48657. -GREP!$GREP$ac_delim
  48658. -EGREP!$EGREP$ac_delim
  48659. -LN_S!$LN_S$ac_delim
  48660. -ECHO!$ECHO$ac_delim
  48661. -AR!$AR$ac_delim
  48662. -RANLIB!$RANLIB$ac_delim
  48663. -DLLTOOL!$DLLTOOL$ac_delim
  48664. -AS!$AS$ac_delim
  48665. -OBJDUMP!$OBJDUMP$ac_delim
  48666. -CPP!$CPP$ac_delim
  48667. -_ACEOF
  48668. +# Whether we are building with GNU ld or not.
  48669. +with_gnu_ld=$lt_with_gnu_ld
  48670. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  48671. - break
  48672. - elif $ac_last_try; then
  48673. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48674. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48675. - { (exit 1); exit 1; }; }
  48676. - else
  48677. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48678. - fi
  48679. -done
  48680. +# Flag that allows shared libraries with undefined symbols to be built.
  48681. +allow_undefined_flag=$lt_allow_undefined_flag
  48682. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  48683. -if test -n "$ac_eof"; then
  48684. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  48685. - ac_eof=`expr $ac_eof + 1`
  48686. -fi
  48687. +# Flag that enforces no undefined symbols.
  48688. +no_undefined_flag=$lt_no_undefined_flag
  48689. -cat >>$CONFIG_STATUS <<_ACEOF
  48690. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  48691. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  48692. -_ACEOF
  48693. -sed '
  48694. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  48695. -s/^/s,@/; s/!/@,|#_!!_#|/
  48696. -:n
  48697. -t n
  48698. -s/'"$ac_delim"'$/,g/; t
  48699. -s/$/\\/; p
  48700. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  48701. -' >>$CONFIG_STATUS <conf$$subs.sed
  48702. -rm -f conf$$subs.sed
  48703. -cat >>$CONFIG_STATUS <<_ACEOF
  48704. -CEOF$ac_eof
  48705. -_ACEOF
  48706. +# Flag to hardcode \$libdir into a binary during linking.
  48707. +# This must work even if \$libdir does not exist
  48708. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  48709. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  48710. +# during linking. This must work even if \$libdir does not exist.
  48711. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  48712. -ac_delim='%!_!# '
  48713. -for ac_last_try in false false false false false :; do
  48714. - cat >conf$$subs.sed <<_ACEOF
  48715. -CXX!$CXX$ac_delim
  48716. -CXXFLAGS!$CXXFLAGS$ac_delim
  48717. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  48718. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  48719. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  48720. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  48721. -CXXCPP!$CXXCPP$ac_delim
  48722. -F77!$F77$ac_delim
  48723. -FFLAGS!$FFLAGS$ac_delim
  48724. -ac_ct_F77!$ac_ct_F77$ac_delim
  48725. -LIBTOOL!$LIBTOOL$ac_delim
  48726. -AUDIO_LIB!$AUDIO_LIB$ac_delim
  48727. -LIBOBJS!$LIBOBJS$ac_delim
  48728. -TEST_BIN!$TEST_BIN$ac_delim
  48729. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  48730. -_ACEOF
  48731. +# Whether we need a single "-rpath" flag with a separated argument.
  48732. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  48733. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
  48734. - break
  48735. - elif $ac_last_try; then
  48736. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48737. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48738. - { (exit 1); exit 1; }; }
  48739. - else
  48740. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48741. - fi
  48742. -done
  48743. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  48744. +# DIR into the resulting binary.
  48745. +hardcode_direct=$hardcode_direct
  48746. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  48747. -if test -n "$ac_eof"; then
  48748. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  48749. - ac_eof=`expr $ac_eof + 1`
  48750. -fi
  48751. -
  48752. -cat >>$CONFIG_STATUS <<_ACEOF
  48753. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  48754. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  48755. -_ACEOF
  48756. -sed '
  48757. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  48758. -s/^/s,@/; s/!/@,|#_!!_#|/
  48759. -:n
  48760. -t n
  48761. -s/'"$ac_delim"'$/,g/; t
  48762. -s/$/\\/; p
  48763. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  48764. -' >>$CONFIG_STATUS <conf$$subs.sed
  48765. -rm -f conf$$subs.sed
  48766. -cat >>$CONFIG_STATUS <<_ACEOF
  48767. -:end
  48768. -s/|#_!!_#|//g
  48769. -CEOF$ac_eof
  48770. -_ACEOF
  48771. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  48772. +# DIR into the resulting binary and the resulting library dependency is
  48773. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  48774. +# library is relocated.
  48775. +hardcode_direct_absolute=$hardcode_direct_absolute
  48776. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  48777. +# into the resulting binary.
  48778. +hardcode_minus_L=$hardcode_minus_L
  48779. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  48780. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  48781. -# trailing colons and then remove the whole line if VPATH becomes empty
  48782. -# (actually we leave an empty line to preserve line numbers).
  48783. -if test "x$srcdir" = x.; then
  48784. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  48785. -s/:*\$(srcdir):*/:/
  48786. -s/:*\${srcdir}:*/:/
  48787. -s/:*@srcdir@:*/:/
  48788. -s/^\([^=]*=[ ]*\):*/\1/
  48789. -s/:*$//
  48790. -s/^[^=]*=[ ]*$//
  48791. -}'
  48792. -fi
  48793. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  48794. +# into the resulting binary.
  48795. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  48796. -cat >>$CONFIG_STATUS <<\_ACEOF
  48797. -fi # test -n "$CONFIG_FILES"
  48798. +# Set to "yes" if building a shared library automatically hardcodes DIR
  48799. +# into the library and all subsequent libraries and executables linked
  48800. +# against it.
  48801. +hardcode_automatic=$hardcode_automatic
  48802. +# Set to yes if linker adds runtime paths of dependent libraries
  48803. +# to runtime path list.
  48804. +inherit_rpath=$inherit_rpath
  48805. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  48806. -do
  48807. - case $ac_tag in
  48808. - :[FHLC]) ac_mode=$ac_tag; continue;;
  48809. - esac
  48810. - case $ac_mode$ac_tag in
  48811. - :[FHL]*:*);;
  48812. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  48813. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  48814. - { (exit 1); exit 1; }; };;
  48815. - :[FH]-) ac_tag=-:-;;
  48816. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  48817. - esac
  48818. - ac_save_IFS=$IFS
  48819. - IFS=:
  48820. - set x $ac_tag
  48821. - IFS=$ac_save_IFS
  48822. - shift
  48823. - ac_file=$1
  48824. - shift
  48825. +# Whether libtool must link a program against all its dependency libraries.
  48826. +link_all_deplibs=$link_all_deplibs
  48827. - case $ac_mode in
  48828. - :L) ac_source=$1;;
  48829. - :[FH])
  48830. - ac_file_inputs=
  48831. - for ac_f
  48832. - do
  48833. - case $ac_f in
  48834. - -) ac_f="$tmp/stdin";;
  48835. - *) # Look for the file first in the build tree, then in the source tree
  48836. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  48837. - # because $ac_f cannot contain `:'.
  48838. - test -f "$ac_f" ||
  48839. - case $ac_f in
  48840. - [\\/$]*) false;;
  48841. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  48842. - esac ||
  48843. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  48844. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  48845. - { (exit 1); exit 1; }; };;
  48846. - esac
  48847. - ac_file_inputs="$ac_file_inputs $ac_f"
  48848. - done
  48849. +# Fix the shell variable \$srcfile for the compiler.
  48850. +fix_srcfile_path=$lt_fix_srcfile_path
  48851. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  48852. - # use $as_me), people would be surprised to read:
  48853. - # /* config.h. Generated by config.status. */
  48854. - configure_input="Generated from "`IFS=:
  48855. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  48856. - if test x"$ac_file" != x-; then
  48857. - configure_input="$ac_file. $configure_input"
  48858. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  48859. -echo "$as_me: creating $ac_file" >&6;}
  48860. - fi
  48861. +# Set to "yes" if exported symbols are required.
  48862. +always_export_symbols=$always_export_symbols
  48863. - case $ac_tag in
  48864. - *:-:* | *:-) cat >"$tmp/stdin";;
  48865. - esac
  48866. - ;;
  48867. - esac
  48868. +# The commands to list exported symbols.
  48869. +export_symbols_cmds=$lt_export_symbols_cmds
  48870. - ac_dir=`$as_dirname -- "$ac_file" ||
  48871. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48872. - X"$ac_file" : 'X\(//\)[^/]' \| \
  48873. - X"$ac_file" : 'X\(//\)$' \| \
  48874. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  48875. -echo X"$ac_file" |
  48876. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48877. - s//\1/
  48878. - q
  48879. - }
  48880. - /^X\(\/\/\)[^/].*/{
  48881. - s//\1/
  48882. - q
  48883. - }
  48884. - /^X\(\/\/\)$/{
  48885. - s//\1/
  48886. - q
  48887. - }
  48888. - /^X\(\/\).*/{
  48889. - s//\1/
  48890. - q
  48891. - }
  48892. - s/.*/./; q'`
  48893. - { as_dir="$ac_dir"
  48894. - case $as_dir in #(
  48895. - -*) as_dir=./$as_dir;;
  48896. - esac
  48897. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  48898. - as_dirs=
  48899. - while :; do
  48900. - case $as_dir in #(
  48901. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  48902. - *) as_qdir=$as_dir;;
  48903. - esac
  48904. - as_dirs="'$as_qdir' $as_dirs"
  48905. - as_dir=`$as_dirname -- "$as_dir" ||
  48906. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48907. - X"$as_dir" : 'X\(//\)[^/]' \| \
  48908. - X"$as_dir" : 'X\(//\)$' \| \
  48909. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  48910. -echo X"$as_dir" |
  48911. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48912. - s//\1/
  48913. - q
  48914. - }
  48915. - /^X\(\/\/\)[^/].*/{
  48916. - s//\1/
  48917. - q
  48918. - }
  48919. - /^X\(\/\/\)$/{
  48920. - s//\1/
  48921. - q
  48922. - }
  48923. - /^X\(\/\).*/{
  48924. - s//\1/
  48925. - q
  48926. - }
  48927. - s/.*/./; q'`
  48928. - test -d "$as_dir" && break
  48929. - done
  48930. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  48931. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  48932. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  48933. - { (exit 1); exit 1; }; }; }
  48934. - ac_builddir=.
  48935. +# Symbols that should not be listed in the preloaded symbols.
  48936. +exclude_expsyms=$lt_exclude_expsyms
  48937. -case "$ac_dir" in
  48938. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48939. -*)
  48940. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  48941. - # A ".." for each directory in $ac_dir_suffix.
  48942. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  48943. - case $ac_top_builddir_sub in
  48944. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48945. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  48946. - esac ;;
  48947. -esac
  48948. -ac_abs_top_builddir=$ac_pwd
  48949. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  48950. -# for backward compatibility:
  48951. -ac_top_builddir=$ac_top_build_prefix
  48952. +# Symbols that must always be exported.
  48953. +include_expsyms=$lt_include_expsyms
  48954. -case $srcdir in
  48955. - .) # We are building in place.
  48956. - ac_srcdir=.
  48957. - ac_top_srcdir=$ac_top_builddir_sub
  48958. - ac_abs_top_srcdir=$ac_pwd ;;
  48959. - [\\/]* | ?:[\\/]* ) # Absolute name.
  48960. - ac_srcdir=$srcdir$ac_dir_suffix;
  48961. - ac_top_srcdir=$srcdir
  48962. - ac_abs_top_srcdir=$srcdir ;;
  48963. - *) # Relative name.
  48964. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  48965. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  48966. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  48967. -esac
  48968. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  48969. +# Commands necessary for linking programs (against libraries) with templates.
  48970. +prelink_cmds=$lt_prelink_cmds
  48971. +
  48972. +# Specify filename containing input files.
  48973. +file_list_spec=$lt_file_list_spec
  48974. +
  48975. +# How to hardcode a shared library path into an executable.
  48976. +hardcode_action=$hardcode_action
  48977. +
  48978. +# ### END LIBTOOL CONFIG
  48979. +
  48980. +_LT_EOF
  48981. +
  48982. + case $host_os in
  48983. + aix3*)
  48984. + cat <<\_LT_EOF >> "$cfgfile"
  48985. +# AIX sometimes has problems with the GCC collect2 program. For some
  48986. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  48987. +# vanish in a puff of smoke.
  48988. +if test "X${COLLECT_NAMES+set}" != Xset; then
  48989. + COLLECT_NAMES=
  48990. + export COLLECT_NAMES
  48991. +fi
  48992. +_LT_EOF
  48993. + ;;
  48994. + esac
  48995. - case $ac_mode in
  48996. - :F)
  48997. - #
  48998. - # CONFIG_FILE
  48999. - #
  49000. +ltmain="$ac_aux_dir/ltmain.sh"
  49001. - case $INSTALL in
  49002. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  49003. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  49004. +
  49005. + # We use sed instead of cat because bash on DJGPP gets confused if
  49006. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  49007. + # text mode, it properly converts lines to CR/LF. This bash problem
  49008. + # is reportedly fixed, but why not run on old versions too?
  49009. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  49010. + || (rm -f "$cfgfile"; exit 1)
  49011. +
  49012. + case $xsi_shell in
  49013. + yes)
  49014. + cat << \_LT_EOF >> "$cfgfile"
  49015. +
  49016. +# func_dirname file append nondir_replacement
  49017. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  49018. +# otherwise set result to NONDIR_REPLACEMENT.
  49019. +func_dirname ()
  49020. +{
  49021. + case ${1} in
  49022. + */*) func_dirname_result="${1%/*}${2}" ;;
  49023. + * ) func_dirname_result="${3}" ;;
  49024. esac
  49025. -_ACEOF
  49026. +}
  49027. -cat >>$CONFIG_STATUS <<\_ACEOF
  49028. -# If the template does not know about datarootdir, expand it.
  49029. -# FIXME: This hack should be removed a few years after 2.60.
  49030. -ac_datarootdir_hack=; ac_datarootdir_seen=
  49031. +# func_basename file
  49032. +func_basename ()
  49033. +{
  49034. + func_basename_result="${1##*/}"
  49035. +}
  49036. -case `sed -n '/datarootdir/ {
  49037. - p
  49038. - q
  49039. +# func_dirname_and_basename file append nondir_replacement
  49040. +# perform func_basename and func_dirname in a single function
  49041. +# call:
  49042. +# dirname: Compute the dirname of FILE. If nonempty,
  49043. +# add APPEND to the result, otherwise set result
  49044. +# to NONDIR_REPLACEMENT.
  49045. +# value returned in "$func_dirname_result"
  49046. +# basename: Compute filename of FILE.
  49047. +# value retuned in "$func_basename_result"
  49048. +# Implementation must be kept synchronized with func_dirname
  49049. +# and func_basename. For efficiency, we do not delegate to
  49050. +# those functions but instead duplicate the functionality here.
  49051. +func_dirname_and_basename ()
  49052. +{
  49053. + case ${1} in
  49054. + */*) func_dirname_result="${1%/*}${2}" ;;
  49055. + * ) func_dirname_result="${3}" ;;
  49056. + esac
  49057. + func_basename_result="${1##*/}"
  49058. }
  49059. -/@datadir@/p
  49060. -/@docdir@/p
  49061. -/@infodir@/p
  49062. -/@localedir@/p
  49063. -/@mandir@/p
  49064. -' $ac_file_inputs` in
  49065. -*datarootdir*) ac_datarootdir_seen=yes;;
  49066. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  49067. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  49068. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  49069. -_ACEOF
  49070. -cat >>$CONFIG_STATUS <<_ACEOF
  49071. - ac_datarootdir_hack='
  49072. - s&@datadir@&$datadir&g
  49073. - s&@docdir@&$docdir&g
  49074. - s&@infodir@&$infodir&g
  49075. - s&@localedir@&$localedir&g
  49076. - s&@mandir@&$mandir&g
  49077. - s&\\\${datarootdir}&$datarootdir&g' ;;
  49078. -esac
  49079. -_ACEOF
  49080. -# Neutralize VPATH when `$srcdir' = `.'.
  49081. -# Shell code in configure.ac might set extrasub.
  49082. -# FIXME: do we really want to maintain this feature?
  49083. -cat >>$CONFIG_STATUS <<_ACEOF
  49084. - sed "$ac_vpsub
  49085. -$extrasub
  49086. -_ACEOF
  49087. -cat >>$CONFIG_STATUS <<\_ACEOF
  49088. -:t
  49089. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  49090. -s&@configure_input@&$configure_input&;t t
  49091. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  49092. -s&@srcdir@&$ac_srcdir&;t t
  49093. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  49094. -s&@top_srcdir@&$ac_top_srcdir&;t t
  49095. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  49096. -s&@builddir@&$ac_builddir&;t t
  49097. -s&@abs_builddir@&$ac_abs_builddir&;t t
  49098. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  49099. -s&@INSTALL@&$ac_INSTALL&;t t
  49100. -$ac_datarootdir_hack
  49101. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  49102. +# func_stripname prefix suffix name
  49103. +# strip PREFIX and SUFFIX off of NAME.
  49104. +# PREFIX and SUFFIX must not contain globbing or regex special
  49105. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  49106. +# dot (in which case that matches only a dot).
  49107. +func_stripname ()
  49108. +{
  49109. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  49110. + # positional parameters, so assign one to ordinary parameter first.
  49111. + func_stripname_result=${3}
  49112. + func_stripname_result=${func_stripname_result#"${1}"}
  49113. + func_stripname_result=${func_stripname_result%"${2}"}
  49114. +}
  49115. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  49116. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  49117. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  49118. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49119. -which seems to be undefined. Please make sure it is defined." >&5
  49120. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49121. -which seems to be undefined. Please make sure it is defined." >&2;}
  49122. +# func_opt_split
  49123. +func_opt_split ()
  49124. +{
  49125. + func_opt_split_opt=${1%%=*}
  49126. + func_opt_split_arg=${1#*=}
  49127. +}
  49128. - rm -f "$tmp/stdin"
  49129. - case $ac_file in
  49130. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  49131. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  49132. +# func_lo2o object
  49133. +func_lo2o ()
  49134. +{
  49135. + case ${1} in
  49136. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  49137. + *) func_lo2o_result=${1} ;;
  49138. esac
  49139. - ;;
  49140. - :H)
  49141. - #
  49142. - # CONFIG_HEADER
  49143. - #
  49144. -_ACEOF
  49145. +}
  49146. -# Transform confdefs.h into a sed script `conftest.defines', that
  49147. -# substitutes the proper values into config.h.in to produce config.h.
  49148. -rm -f conftest.defines conftest.tail
  49149. -# First, append a space to every undef/define line, to ease matching.
  49150. -echo 's/$/ /' >conftest.defines
  49151. -# Then, protect against being on the right side of a sed subst, or in
  49152. -# an unquoted here document, in config.status. If some macros were
  49153. -# called several times there might be several #defines for the same
  49154. -# symbol, which is useless. But do not sort them, since the last
  49155. -# AC_DEFINE must be honored.
  49156. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  49157. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  49158. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  49159. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  49160. -# just an empty string.
  49161. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  49162. -ac_dB='\\)[ (].*,\\1define\\2'
  49163. -ac_dC=' '
  49164. -ac_dD=' ,'
  49165. +# func_xform libobj-or-source
  49166. +func_xform ()
  49167. +{
  49168. + func_xform_result=${1%.*}.lo
  49169. +}
  49170. -uniq confdefs.h |
  49171. - sed -n '
  49172. - t rset
  49173. - :rset
  49174. - s/^[ ]*#[ ]*define[ ][ ]*//
  49175. - t ok
  49176. - d
  49177. - :ok
  49178. - s/[\\&,]/\\&/g
  49179. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  49180. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  49181. - ' >>conftest.defines
  49182. -
  49183. -# Remove the space that was appended to ease matching.
  49184. -# Then replace #undef with comments. This is necessary, for
  49185. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  49186. -# on some systems where configure will not decide to define it.
  49187. -# (The regexp can be short, since the line contains either #define or #undef.)
  49188. -echo 's/ $//
  49189. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  49190. -
  49191. -# Break up conftest.defines:
  49192. -ac_max_sed_lines=50
  49193. -
  49194. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  49195. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  49196. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  49197. -# et cetera.
  49198. -ac_in='$ac_file_inputs'
  49199. -ac_out='"$tmp/out1"'
  49200. -ac_nxt='"$tmp/out2"'
  49201. +# func_arith arithmetic-term...
  49202. +func_arith ()
  49203. +{
  49204. + func_arith_result=$(( $* ))
  49205. +}
  49206. -while :
  49207. -do
  49208. - # Write a here document:
  49209. - cat >>$CONFIG_STATUS <<_ACEOF
  49210. - # First, check the format of the line:
  49211. - cat >"\$tmp/defines.sed" <<\\CEOF
  49212. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  49213. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  49214. -b
  49215. -:def
  49216. -_ACEOF
  49217. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  49218. - echo 'CEOF
  49219. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  49220. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  49221. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  49222. - grep . conftest.tail >/dev/null || break
  49223. - rm -f conftest.defines
  49224. - mv conftest.tail conftest.defines
  49225. -done
  49226. -rm -f conftest.defines conftest.tail
  49227. +# func_len string
  49228. +# STRING may not start with a hyphen.
  49229. +func_len ()
  49230. +{
  49231. + func_len_result=${#1}
  49232. +}
  49233. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  49234. -cat >>$CONFIG_STATUS <<\_ACEOF
  49235. - if test x"$ac_file" != x-; then
  49236. - echo "/* $configure_input */" >"$tmp/config.h"
  49237. - cat "$ac_result" >>"$tmp/config.h"
  49238. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  49239. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  49240. -echo "$as_me: $ac_file is unchanged" >&6;}
  49241. - else
  49242. - rm -f $ac_file
  49243. - mv "$tmp/config.h" $ac_file
  49244. - fi
  49245. +_LT_EOF
  49246. + ;;
  49247. + *) # Bourne compatible functions.
  49248. + cat << \_LT_EOF >> "$cfgfile"
  49249. +
  49250. +# func_dirname file append nondir_replacement
  49251. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  49252. +# otherwise set result to NONDIR_REPLACEMENT.
  49253. +func_dirname ()
  49254. +{
  49255. + # Extract subdirectory from the argument.
  49256. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  49257. + if test "X$func_dirname_result" = "X${1}"; then
  49258. + func_dirname_result="${3}"
  49259. else
  49260. - echo "/* $configure_input */"
  49261. - cat "$ac_result"
  49262. + func_dirname_result="$func_dirname_result${2}"
  49263. fi
  49264. - rm -f "$tmp/out12"
  49265. -# Compute $ac_file's index in $config_headers.
  49266. -_am_stamp_count=1
  49267. -for _am_header in $config_headers :; do
  49268. - case $_am_header in
  49269. - $ac_file | $ac_file:* )
  49270. - break ;;
  49271. - * )
  49272. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  49273. - esac
  49274. -done
  49275. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  49276. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49277. - X$ac_file : 'X\(//\)[^/]' \| \
  49278. - X$ac_file : 'X\(//\)$' \| \
  49279. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  49280. -echo X$ac_file |
  49281. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49282. - s//\1/
  49283. - q
  49284. - }
  49285. - /^X\(\/\/\)[^/].*/{
  49286. - s//\1/
  49287. - q
  49288. - }
  49289. - /^X\(\/\/\)$/{
  49290. - s//\1/
  49291. - q
  49292. - }
  49293. - /^X\(\/\).*/{
  49294. - s//\1/
  49295. - q
  49296. - }
  49297. - s/.*/./; q'`/stamp-h$_am_stamp_count
  49298. - ;;
  49299. +}
  49300. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  49301. -echo "$as_me: executing $ac_file commands" >&6;}
  49302. - ;;
  49303. +# func_basename file
  49304. +func_basename ()
  49305. +{
  49306. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  49307. +}
  49308. +
  49309. +
  49310. +# func_stripname prefix suffix name
  49311. +# strip PREFIX and SUFFIX off of NAME.
  49312. +# PREFIX and SUFFIX must not contain globbing or regex special
  49313. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  49314. +# dot (in which case that matches only a dot).
  49315. +# func_strip_suffix prefix name
  49316. +func_stripname ()
  49317. +{
  49318. + case ${2} in
  49319. + .*) func_stripname_result=`$ECHO "X${3}" \
  49320. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  49321. + *) func_stripname_result=`$ECHO "X${3}" \
  49322. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  49323. esac
  49324. +}
  49325. +# sed scripts:
  49326. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  49327. +my_sed_long_arg='1s/^-[^=]*=//'
  49328. - case $ac_file$ac_mode in
  49329. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  49330. - # Strip MF so we end up with the name of the file.
  49331. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  49332. - # Check whether this is an Automake generated Makefile or not.
  49333. - # We used to match only the files named `Makefile.in', but
  49334. - # some people rename them; so instead we look at the file content.
  49335. - # Grep'ing the first line is not enough: some people post-process
  49336. - # each Makefile.in and add a new line on top of each file to say so.
  49337. - # So let's grep whole file.
  49338. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  49339. - dirpart=`$as_dirname -- "$mf" ||
  49340. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49341. - X"$mf" : 'X\(//\)[^/]' \| \
  49342. - X"$mf" : 'X\(//\)$' \| \
  49343. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  49344. -echo X"$mf" |
  49345. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49346. - s//\1/
  49347. - q
  49348. - }
  49349. - /^X\(\/\/\)[^/].*/{
  49350. - s//\1/
  49351. - q
  49352. - }
  49353. - /^X\(\/\/\)$/{
  49354. - s//\1/
  49355. - q
  49356. - }
  49357. - /^X\(\/\).*/{
  49358. - s//\1/
  49359. - q
  49360. - }
  49361. - s/.*/./; q'`
  49362. - else
  49363. - continue
  49364. - fi
  49365. - # Extract the definition of DEPDIR, am__include, and am__quote
  49366. - # from the Makefile without running `make'.
  49367. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  49368. - test -z "$DEPDIR" && continue
  49369. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  49370. - test -z "am__include" && continue
  49371. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  49372. - # When using ansi2knr, U may be empty or an underscore; expand it
  49373. - U=`sed -n 's/^U = //p' < "$mf"`
  49374. - # Find all dependency output files, they are included files with
  49375. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  49376. - # simplest approach to changing $(DEPDIR) to its actual value in the
  49377. - # expansion.
  49378. - for file in `sed -n "
  49379. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  49380. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  49381. - # Make sure the directory exists.
  49382. - test -f "$dirpart/$file" && continue
  49383. - fdir=`$as_dirname -- "$file" ||
  49384. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49385. - X"$file" : 'X\(//\)[^/]' \| \
  49386. - X"$file" : 'X\(//\)$' \| \
  49387. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  49388. -echo X"$file" |
  49389. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49390. - s//\1/
  49391. - q
  49392. - }
  49393. - /^X\(\/\/\)[^/].*/{
  49394. - s//\1/
  49395. - q
  49396. - }
  49397. - /^X\(\/\/\)$/{
  49398. - s//\1/
  49399. - q
  49400. - }
  49401. - /^X\(\/\).*/{
  49402. - s//\1/
  49403. - q
  49404. - }
  49405. - s/.*/./; q'`
  49406. - { as_dir=$dirpart/$fdir
  49407. - case $as_dir in #(
  49408. - -*) as_dir=./$as_dir;;
  49409. +# func_opt_split
  49410. +func_opt_split ()
  49411. +{
  49412. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  49413. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  49414. +}
  49415. +
  49416. +# func_lo2o object
  49417. +func_lo2o ()
  49418. +{
  49419. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  49420. +}
  49421. +
  49422. +# func_xform libobj-or-source
  49423. +func_xform ()
  49424. +{
  49425. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  49426. +}
  49427. +
  49428. +# func_arith arithmetic-term...
  49429. +func_arith ()
  49430. +{
  49431. + func_arith_result=`expr "$@"`
  49432. +}
  49433. +
  49434. +# func_len string
  49435. +# STRING may not start with a hyphen.
  49436. +func_len ()
  49437. +{
  49438. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  49439. +}
  49440. +
  49441. +_LT_EOF
  49442. +esac
  49443. +
  49444. +case $lt_shell_append in
  49445. + yes)
  49446. + cat << \_LT_EOF >> "$cfgfile"
  49447. +
  49448. +# func_append var value
  49449. +# Append VALUE to the end of shell variable VAR.
  49450. +func_append ()
  49451. +{
  49452. + eval "$1+=\$2"
  49453. +}
  49454. +_LT_EOF
  49455. + ;;
  49456. + *)
  49457. + cat << \_LT_EOF >> "$cfgfile"
  49458. +
  49459. +# func_append var value
  49460. +# Append VALUE to the end of shell variable VAR.
  49461. +func_append ()
  49462. +{
  49463. + eval "$1=\$$1\$2"
  49464. +}
  49465. +
  49466. +_LT_EOF
  49467. + ;;
  49468. esac
  49469. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  49470. - as_dirs=
  49471. - while :; do
  49472. - case $as_dir in #(
  49473. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  49474. - *) as_qdir=$as_dir;;
  49475. - esac
  49476. - as_dirs="'$as_qdir' $as_dirs"
  49477. - as_dir=`$as_dirname -- "$as_dir" ||
  49478. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49479. - X"$as_dir" : 'X\(//\)[^/]' \| \
  49480. - X"$as_dir" : 'X\(//\)$' \| \
  49481. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  49482. -echo X"$as_dir" |
  49483. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49484. - s//\1/
  49485. - q
  49486. - }
  49487. - /^X\(\/\/\)[^/].*/{
  49488. - s//\1/
  49489. - q
  49490. - }
  49491. - /^X\(\/\/\)$/{
  49492. - s//\1/
  49493. - q
  49494. - }
  49495. - /^X\(\/\).*/{
  49496. - s//\1/
  49497. - q
  49498. - }
  49499. - s/.*/./; q'`
  49500. - test -d "$as_dir" && break
  49501. - done
  49502. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  49503. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  49504. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  49505. - { (exit 1); exit 1; }; }; }
  49506. - # echo "creating $dirpart/$file"
  49507. - echo '# dummy' > "$dirpart/$file"
  49508. - done
  49509. -done
  49510. +
  49511. +
  49512. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  49513. + || (rm -f "$cfgfile"; exit 1)
  49514. +
  49515. + mv -f "$cfgfile" "$ofile" ||
  49516. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  49517. + chmod +x "$ofile"
  49518. +
  49519. ;;
  49520. "default":C) case "$CONFIG_FILES" in *audiofile-config*) chmod +x audiofile-config;; esac ;;
  49521. @@ -26227,11 +14531,13 @@
  49522. done # for ac_tag
  49523. -{ (exit 0); exit 0; }
  49524. +as_fn_exit 0
  49525. _ACEOF
  49526. -chmod +x $CONFIG_STATUS
  49527. ac_clean_files=$ac_clean_files_save
  49528. +test $ac_write_fail = 0 ||
  49529. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  49530. +
  49531. # configure is writing to config.log, and then calls config.status.
  49532. # config.status does its own redirection, appending to config.log.
  49533. @@ -26251,6 +14557,10 @@
  49534. exec 5>>config.log
  49535. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  49536. # would make configure fail if this is the last instruction.
  49537. - $ac_cs_success || { (exit 1); exit 1; }
  49538. + $ac_cs_success || as_fn_exit $?
  49539. +fi
  49540. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  49541. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  49542. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  49543. fi
  49544. diff -Nur audiofile-0.2.7.orig/depcomp audiofile-0.2.7/depcomp
  49545. --- audiofile-0.2.7.orig/depcomp 2006-03-23 07:16:37.000000000 +0100
  49546. +++ audiofile-0.2.7/depcomp 2011-02-24 20:00:34.614803905 +0100
  49547. @@ -1,9 +1,10 @@
  49548. #! /bin/sh
  49549. # depcomp - compile a program generating dependencies as side-effects
  49550. -scriptversion=2004-05-31.23
  49551. +scriptversion=2009-04-28.21; # UTC
  49552. -# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
  49553. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  49554. +# Software Foundation, Inc.
  49555. # This program is free software; you can redistribute it and/or modify
  49556. # it under the terms of the GNU General Public License as published by
  49557. @@ -16,9 +17,7 @@
  49558. # GNU General Public License for more details.
  49559. # You should have received a copy of the GNU General Public License
  49560. -# along with this program; if not, write to the Free Software
  49561. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  49562. -# 02111-1307, USA.
  49563. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  49564. # As a special exception to the GNU General Public License, if you
  49565. # distribute this file as part of a program that contains a
  49566. @@ -50,11 +49,11 @@
  49567. Report bugs to <bug-automake@gnu.org>.
  49568. EOF
  49569. - exit 0
  49570. + exit $?
  49571. ;;
  49572. -v | --v*)
  49573. echo "depcomp $scriptversion"
  49574. - exit 0
  49575. + exit $?
  49576. ;;
  49577. esac
  49578. @@ -86,12 +85,34 @@
  49579. depmode=dashmstdout
  49580. fi
  49581. +cygpath_u="cygpath -u -f -"
  49582. +if test "$depmode" = msvcmsys; then
  49583. + # This is just like msvisualcpp but w/o cygpath translation.
  49584. + # Just convert the backslash-escaped backslashes to single forward
  49585. + # slashes to satisfy depend.m4
  49586. + cygpath_u="sed s,\\\\\\\\,/,g"
  49587. + depmode=msvisualcpp
  49588. +fi
  49589. +
  49590. case "$depmode" in
  49591. gcc3)
  49592. ## gcc 3 implements dependency tracking that does exactly what
  49593. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  49594. ## it if -MD -MP comes after the -MF stuff. Hmm.
  49595. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  49596. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  49597. +## the command line argument order; so add the flags where they
  49598. +## appear in depend2.am. Note that the slowdown incurred here
  49599. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  49600. + for arg
  49601. + do
  49602. + case $arg in
  49603. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  49604. + *) set fnord "$@" "$arg" ;;
  49605. + esac
  49606. + shift # fnord
  49607. + shift # $arg
  49608. + done
  49609. + "$@"
  49610. stat=$?
  49611. if test $stat -eq 0; then :
  49612. else
  49613. @@ -178,14 +199,14 @@
  49614. ' < "$tmpdepfile" \
  49615. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  49616. tr '
  49617. -' ' ' >> $depfile
  49618. - echo >> $depfile
  49619. +' ' ' >> "$depfile"
  49620. + echo >> "$depfile"
  49621. # The second pass generates a dummy entry for each header file.
  49622. tr ' ' '
  49623. ' < "$tmpdepfile" \
  49624. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  49625. - >> $depfile
  49626. + >> "$depfile"
  49627. else
  49628. # The sourcefile does not contain any dependencies, so just
  49629. # store a dummy comment line, to avoid errors with the Makefile
  49630. @@ -201,34 +222,39 @@
  49631. # current directory. Also, the AIX compiler puts `$object:' at the
  49632. # start of each line; $object doesn't have directory information.
  49633. # Version 6 uses the directory in both cases.
  49634. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  49635. - tmpdepfile="$stripped.u"
  49636. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  49637. + test "x$dir" = "x$object" && dir=
  49638. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  49639. if test "$libtool" = yes; then
  49640. + tmpdepfile1=$dir$base.u
  49641. + tmpdepfile2=$base.u
  49642. + tmpdepfile3=$dir.libs/$base.u
  49643. "$@" -Wc,-M
  49644. else
  49645. + tmpdepfile1=$dir$base.u
  49646. + tmpdepfile2=$dir$base.u
  49647. + tmpdepfile3=$dir$base.u
  49648. "$@" -M
  49649. fi
  49650. stat=$?
  49651. - if test -f "$tmpdepfile"; then :
  49652. - else
  49653. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  49654. - tmpdepfile="$stripped.u"
  49655. - fi
  49656. -
  49657. if test $stat -eq 0; then :
  49658. else
  49659. - rm -f "$tmpdepfile"
  49660. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  49661. exit $stat
  49662. fi
  49663. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  49664. + do
  49665. + test -f "$tmpdepfile" && break
  49666. + done
  49667. if test -f "$tmpdepfile"; then
  49668. - outname="$stripped.o"
  49669. # Each line is of the form `foo.o: dependent.h'.
  49670. # Do two passes, one to just change these to
  49671. # `$object: dependent.h' and one to simply `dependent.h:'.
  49672. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  49673. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  49674. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  49675. + # That's a tab and a space in the [].
  49676. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  49677. else
  49678. # The sourcefile does not contain any dependencies, so just
  49679. # store a dummy comment line, to avoid errors with the Makefile
  49680. @@ -276,6 +302,51 @@
  49681. rm -f "$tmpdepfile"
  49682. ;;
  49683. +hp2)
  49684. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  49685. + # compilers, which have integrated preprocessors. The correct option
  49686. + # to use with these is +Maked; it writes dependencies to a file named
  49687. + # 'foo.d', which lands next to the object file, wherever that
  49688. + # happens to be.
  49689. + # Much of this is similar to the tru64 case; see comments there.
  49690. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  49691. + test "x$dir" = "x$object" && dir=
  49692. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  49693. + if test "$libtool" = yes; then
  49694. + tmpdepfile1=$dir$base.d
  49695. + tmpdepfile2=$dir.libs/$base.d
  49696. + "$@" -Wc,+Maked
  49697. + else
  49698. + tmpdepfile1=$dir$base.d
  49699. + tmpdepfile2=$dir$base.d
  49700. + "$@" +Maked
  49701. + fi
  49702. + stat=$?
  49703. + if test $stat -eq 0; then :
  49704. + else
  49705. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  49706. + exit $stat
  49707. + fi
  49708. +
  49709. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  49710. + do
  49711. + test -f "$tmpdepfile" && break
  49712. + done
  49713. + if test -f "$tmpdepfile"; then
  49714. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  49715. + # Add `dependent.h:' lines.
  49716. + sed -ne '2,${
  49717. + s/^ *//
  49718. + s/ \\*$//
  49719. + s/$/:/
  49720. + p
  49721. + }' "$tmpdepfile" >> "$depfile"
  49722. + else
  49723. + echo "#dummy" > "$depfile"
  49724. + fi
  49725. + rm -f "$tmpdepfile" "$tmpdepfile2"
  49726. + ;;
  49727. +
  49728. tru64)
  49729. # The Tru64 compiler uses -MD to generate dependencies as a side
  49730. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  49731. @@ -287,36 +358,43 @@
  49732. base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  49733. if test "$libtool" = yes; then
  49734. - # Dependencies are output in .lo.d with libtool 1.4.
  49735. - # With libtool 1.5 they are output both in $dir.libs/$base.o.d
  49736. - # and in $dir.libs/$base.o.d and $dir$base.o.d. We process the
  49737. - # latter, because the former will be cleaned when $dir.libs is
  49738. - # erased.
  49739. - tmpdepfile1="$dir.libs/$base.lo.d"
  49740. - tmpdepfile2="$dir$base.o.d"
  49741. - tmpdepfile3="$dir.libs/$base.d"
  49742. + # With Tru64 cc, shared objects can also be used to make a
  49743. + # static library. This mechanism is used in libtool 1.4 series to
  49744. + # handle both shared and static libraries in a single compilation.
  49745. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  49746. + #
  49747. + # With libtool 1.5 this exception was removed, and libtool now
  49748. + # generates 2 separate objects for the 2 libraries. These two
  49749. + # compilations output dependencies in $dir.libs/$base.o.d and
  49750. + # in $dir$base.o.d. We have to check for both files, because
  49751. + # one of the two compilations can be disabled. We should prefer
  49752. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  49753. + # automatically cleaned when .libs/ is deleted, while ignoring
  49754. + # the former would cause a distcleancheck panic.
  49755. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  49756. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  49757. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  49758. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  49759. "$@" -Wc,-MD
  49760. else
  49761. - tmpdepfile1="$dir$base.o.d"
  49762. - tmpdepfile2="$dir$base.d"
  49763. - tmpdepfile3="$dir$base.d"
  49764. + tmpdepfile1=$dir$base.o.d
  49765. + tmpdepfile2=$dir$base.d
  49766. + tmpdepfile3=$dir$base.d
  49767. + tmpdepfile4=$dir$base.d
  49768. "$@" -MD
  49769. fi
  49770. stat=$?
  49771. if test $stat -eq 0; then :
  49772. else
  49773. - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  49774. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  49775. exit $stat
  49776. fi
  49777. - if test -f "$tmpdepfile1"; then
  49778. - tmpdepfile="$tmpdepfile1"
  49779. - elif test -f "$tmpdepfile2"; then
  49780. - tmpdepfile="$tmpdepfile2"
  49781. - else
  49782. - tmpdepfile="$tmpdepfile3"
  49783. - fi
  49784. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  49785. + do
  49786. + test -f "$tmpdepfile" && break
  49787. + done
  49788. if test -f "$tmpdepfile"; then
  49789. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  49790. # That's a tab and a space in the [].
  49791. @@ -338,7 +416,7 @@
  49792. # Remove the call to Libtool.
  49793. if test "$libtool" = yes; then
  49794. - while test $1 != '--mode=compile'; do
  49795. + while test "X$1" != 'X--mode=compile'; do
  49796. shift
  49797. done
  49798. shift
  49799. @@ -389,32 +467,39 @@
  49800. "$@" || exit $?
  49801. # Remove any Libtool call
  49802. if test "$libtool" = yes; then
  49803. - while test $1 != '--mode=compile'; do
  49804. + while test "X$1" != 'X--mode=compile'; do
  49805. shift
  49806. done
  49807. shift
  49808. fi
  49809. # X makedepend
  49810. shift
  49811. - cleared=no
  49812. - for arg in "$@"; do
  49813. + cleared=no eat=no
  49814. + for arg
  49815. + do
  49816. case $cleared in
  49817. no)
  49818. set ""; shift
  49819. cleared=yes ;;
  49820. esac
  49821. + if test $eat = yes; then
  49822. + eat=no
  49823. + continue
  49824. + fi
  49825. case "$arg" in
  49826. -D*|-I*)
  49827. set fnord "$@" "$arg"; shift ;;
  49828. # Strip any option that makedepend may not understand. Remove
  49829. # the object too, otherwise makedepend will parse it as a source file.
  49830. + -arch)
  49831. + eat=yes ;;
  49832. -*|$object)
  49833. ;;
  49834. *)
  49835. set fnord "$@" "$arg"; shift ;;
  49836. esac
  49837. done
  49838. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  49839. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  49840. touch "$tmpdepfile"
  49841. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  49842. rm -f "$depfile"
  49843. @@ -434,7 +519,7 @@
  49844. # Remove the call to Libtool.
  49845. if test "$libtool" = yes; then
  49846. - while test $1 != '--mode=compile'; do
  49847. + while test "X$1" != 'X--mode=compile'; do
  49848. shift
  49849. done
  49850. shift
  49851. @@ -460,7 +545,8 @@
  49852. done
  49853. "$@" -E |
  49854. - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  49855. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  49856. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  49857. sed '$ s: \\$::' > "$tmpdepfile"
  49858. rm -f "$depfile"
  49859. echo "$object : \\" > "$depfile"
  49860. @@ -471,13 +557,27 @@
  49861. msvisualcpp)
  49862. # Important note: in order to support this mode, a compiler *must*
  49863. - # always write the preprocessed file to stdout, regardless of -o,
  49864. - # because we must use -o when running libtool.
  49865. + # always write the preprocessed file to stdout.
  49866. "$@" || exit $?
  49867. +
  49868. + # Remove the call to Libtool.
  49869. + if test "$libtool" = yes; then
  49870. + while test "X$1" != 'X--mode=compile'; do
  49871. + shift
  49872. + done
  49873. + shift
  49874. + fi
  49875. +
  49876. IFS=" "
  49877. for arg
  49878. do
  49879. case "$arg" in
  49880. + -o)
  49881. + shift
  49882. + ;;
  49883. + $object)
  49884. + shift
  49885. + ;;
  49886. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  49887. set fnord "$@"
  49888. shift
  49889. @@ -490,16 +590,23 @@
  49890. ;;
  49891. esac
  49892. done
  49893. - "$@" -E |
  49894. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  49895. + "$@" -E 2>/dev/null |
  49896. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  49897. rm -f "$depfile"
  49898. echo "$object : \\" > "$depfile"
  49899. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  49900. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  49901. echo " " >> "$depfile"
  49902. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  49903. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  49904. rm -f "$tmpdepfile"
  49905. ;;
  49906. +msvcmsys)
  49907. + # This case exists only to let depend.m4 do its work. It works by
  49908. + # looking at the text of this script. This case will never be run,
  49909. + # since it is checked for above.
  49910. + exit 1
  49911. + ;;
  49912. +
  49913. none)
  49914. exec "$@"
  49915. ;;
  49916. @@ -518,5 +625,6 @@
  49917. # eval: (add-hook 'write-file-hooks 'time-stamp)
  49918. # time-stamp-start: "scriptversion="
  49919. # time-stamp-format: "%:y-%02m-%02d.%02H"
  49920. -# time-stamp-end: "$"
  49921. +# time-stamp-time-zone: "UTC"
  49922. +# time-stamp-end: "; # UTC"
  49923. # End:
  49924. diff -Nur audiofile-0.2.7.orig/docs/Makefile.in audiofile-0.2.7/docs/Makefile.in
  49925. --- audiofile-0.2.7.orig/docs/Makefile.in 2010-03-22 06:45:47.000000000 +0100
  49926. +++ audiofile-0.2.7/docs/Makefile.in 2011-02-24 20:00:34.314802902 +0100
  49927. @@ -1,8 +1,9 @@
  49928. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  49929. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  49930. # @configure_input@
  49931. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  49932. -# 2003, 2004 Free Software Foundation, Inc.
  49933. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  49934. +# Inc.
  49935. # This Makefile.in is free software; the Free Software Foundation
  49936. # gives unlimited permission to copy and/or distribute it,
  49937. # with or without modifications, as long as this notice is preserved.
  49938. @@ -13,15 +14,12 @@
  49939. # PARTICULAR PURPOSE.
  49940. @SET_MAKE@
  49941. -srcdir = @srcdir@
  49942. -top_srcdir = @top_srcdir@
  49943. VPATH = @srcdir@
  49944. pkgdatadir = $(datadir)/@PACKAGE@
  49945. -pkglibdir = $(libdir)/@PACKAGE@
  49946. pkgincludedir = $(includedir)/@PACKAGE@
  49947. -top_builddir = ..
  49948. +pkglibdir = $(libdir)/@PACKAGE@
  49949. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  49950. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  49951. -INSTALL = @INSTALL@
  49952. install_sh_DATA = $(install_sh) -c -m 644
  49953. install_sh_PROGRAM = $(install_sh) -c
  49954. install_sh_SCRIPT = $(install_sh) -c
  49955. @@ -44,12 +42,11 @@
  49956. mkinstalldirs = $(install_sh) -d
  49957. CONFIG_HEADER = $(top_builddir)/config.h
  49958. CONFIG_CLEAN_FILES =
  49959. +CONFIG_CLEAN_VPATH_FILES =
  49960. SOURCES =
  49961. DIST_SOURCES =
  49962. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  49963. ACLOCAL = @ACLOCAL@
  49964. -AMDEP_FALSE = @AMDEP_FALSE@
  49965. -AMDEP_TRUE = @AMDEP_TRUE@
  49966. AMTAR = @AMTAR@
  49967. AR = @AR@
  49968. AS = @AS@
  49969. @@ -68,56 +65,61 @@
  49970. CFLAGS = @CFLAGS@
  49971. CPP = @CPP@
  49972. CPPFLAGS = @CPPFLAGS@
  49973. -CXX = @CXX@
  49974. -CXXCPP = @CXXCPP@
  49975. -CXXDEPMODE = @CXXDEPMODE@
  49976. -CXXFLAGS = @CXXFLAGS@
  49977. CYGPATH_W = @CYGPATH_W@
  49978. DEFS = @DEFS@
  49979. DEPDIR = @DEPDIR@
  49980. DLLTOOL = @DLLTOOL@
  49981. -ECHO = @ECHO@
  49982. +DSYMUTIL = @DSYMUTIL@
  49983. +DUMPBIN = @DUMPBIN@
  49984. ECHO_C = @ECHO_C@
  49985. ECHO_N = @ECHO_N@
  49986. ECHO_T = @ECHO_T@
  49987. EGREP = @EGREP@
  49988. EXEEXT = @EXEEXT@
  49989. -F77 = @F77@
  49990. -FFLAGS = @FFLAGS@
  49991. +FGREP = @FGREP@
  49992. GREP = @GREP@
  49993. +INSTALL = @INSTALL@
  49994. INSTALL_DATA = @INSTALL_DATA@
  49995. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  49996. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  49997. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  49998. +LD = @LD@
  49999. LDFLAGS = @LDFLAGS@
  50000. LIBOBJS = @LIBOBJS@
  50001. LIBS = @LIBS@
  50002. LIBTOOL = @LIBTOOL@
  50003. +LIPO = @LIPO@
  50004. LN_S = @LN_S@
  50005. LTLIBOBJS = @LTLIBOBJS@
  50006. MAKEINFO = @MAKEINFO@
  50007. +MKDIR_P = @MKDIR_P@
  50008. +NM = @NM@
  50009. +NMEDIT = @NMEDIT@
  50010. OBJDUMP = @OBJDUMP@
  50011. OBJEXT = @OBJEXT@
  50012. +OTOOL = @OTOOL@
  50013. +OTOOL64 = @OTOOL64@
  50014. PACKAGE = @PACKAGE@
  50015. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  50016. PACKAGE_NAME = @PACKAGE_NAME@
  50017. PACKAGE_STRING = @PACKAGE_STRING@
  50018. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  50019. +PACKAGE_URL = @PACKAGE_URL@
  50020. PACKAGE_VERSION = @PACKAGE_VERSION@
  50021. PATH_SEPARATOR = @PATH_SEPARATOR@
  50022. RANLIB = @RANLIB@
  50023. +SED = @SED@
  50024. SET_MAKE = @SET_MAKE@
  50025. SHELL = @SHELL@
  50026. STRIP = @STRIP@
  50027. TEST_BIN = @TEST_BIN@
  50028. VERSION = @VERSION@
  50029. +abs_builddir = @abs_builddir@
  50030. +abs_srcdir = @abs_srcdir@
  50031. +abs_top_builddir = @abs_top_builddir@
  50032. +abs_top_srcdir = @abs_top_srcdir@
  50033. ac_ct_CC = @ac_ct_CC@
  50034. -ac_ct_CXX = @ac_ct_CXX@
  50035. -ac_ct_F77 = @ac_ct_F77@
  50036. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  50037. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  50038. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  50039. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  50040. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  50041. am__include = @am__include@
  50042. am__leading_dot = @am__leading_dot@
  50043. am__quote = @am__quote@
  50044. @@ -129,6 +131,7 @@
  50045. build_cpu = @build_cpu@
  50046. build_os = @build_os@
  50047. build_vendor = @build_vendor@
  50048. +builddir = @builddir@
  50049. datadir = @datadir@
  50050. datarootdir = @datarootdir@
  50051. docdir = @docdir@
  50052. @@ -147,6 +150,7 @@
  50053. libexecdir = @libexecdir@
  50054. localedir = @localedir@
  50055. localstatedir = @localstatedir@
  50056. +lt_ECHO = @lt_ECHO@
  50057. mandir = @mandir@
  50058. mkdir_p = @mkdir_p@
  50059. oldincludedir = @oldincludedir@
  50060. @@ -156,8 +160,12 @@
  50061. psdir = @psdir@
  50062. sbindir = @sbindir@
  50063. sharedstatedir = @sharedstatedir@
  50064. +srcdir = @srcdir@
  50065. sysconfdir = @sysconfdir@
  50066. target_alias = @target_alias@
  50067. +top_build_prefix = @top_build_prefix@
  50068. +top_builddir = @top_builddir@
  50069. +top_srcdir = @top_srcdir@
  50070. EXTRA_DIST = \
  50071. afCloseFile \
  50072. afGetFrameSize \
  50073. @@ -182,14 +190,14 @@
  50074. @for dep in $?; do \
  50075. case '$(am__configure_deps)' in \
  50076. *$$dep*) \
  50077. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  50078. - && exit 0; \
  50079. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  50080. + && { if test -f $@; then exit 0; else break; fi; }; \
  50081. exit 1;; \
  50082. esac; \
  50083. done; \
  50084. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
  50085. - cd $(top_srcdir) && \
  50086. - $(AUTOMAKE) --gnu docs/Makefile
  50087. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
  50088. + $(am__cd) $(top_srcdir) && \
  50089. + $(AUTOMAKE) --gnu docs/Makefile
  50090. .PRECIOUS: Makefile
  50091. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  50092. @case '$?' in \
  50093. @@ -207,16 +215,13 @@
  50094. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  50095. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  50096. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  50097. +$(am__aclocal_m4_deps):
  50098. mostlyclean-libtool:
  50099. -rm -f *.lo
  50100. clean-libtool:
  50101. -rm -rf .libs _libs
  50102. -
  50103. -distclean-libtool:
  50104. - -rm -f libtool
  50105. -uninstall-info-am:
  50106. tags: TAGS
  50107. TAGS:
  50108. @@ -225,29 +230,32 @@
  50109. distdir: $(DISTFILES)
  50110. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  50111. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  50112. - list='$(DISTFILES)'; for file in $$list; do \
  50113. - case $$file in \
  50114. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  50115. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  50116. - esac; \
  50117. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  50118. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  50119. + list='$(DISTFILES)'; \
  50120. + dist_files=`for file in $$list; do echo $$file; done | \
  50121. + sed -e "s|^$$srcdirstrip/||;t" \
  50122. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  50123. + case $$dist_files in \
  50124. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  50125. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  50126. + sort -u` ;; \
  50127. + esac; \
  50128. + for file in $$dist_files; do \
  50129. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  50130. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  50131. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  50132. - dir="/$$dir"; \
  50133. - $(mkdir_p) "$(distdir)$$dir"; \
  50134. - else \
  50135. - dir=''; \
  50136. - fi; \
  50137. if test -d $$d/$$file; then \
  50138. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  50139. + if test -d "$(distdir)/$$file"; then \
  50140. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  50141. + fi; \
  50142. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  50143. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  50144. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  50145. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  50146. fi; \
  50147. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  50148. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  50149. else \
  50150. - test -f $(distdir)/$$file \
  50151. - || cp -p $$d/$$file $(distdir)/$$file \
  50152. + test -f "$(distdir)/$$file" \
  50153. + || cp -p $$d/$$file "$(distdir)/$$file" \
  50154. || exit 1; \
  50155. fi; \
  50156. done
  50157. @@ -275,6 +283,7 @@
  50158. distclean-generic:
  50159. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  50160. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  50161. maintainer-clean-generic:
  50162. @echo "This command is intended for maintainers to use"
  50163. @@ -285,7 +294,7 @@
  50164. distclean: distclean-am
  50165. -rm -f Makefile
  50166. -distclean-am: clean-am distclean-generic distclean-libtool
  50167. +distclean-am: clean-am distclean-generic
  50168. dvi: dvi-am
  50169. @@ -293,18 +302,38 @@
  50170. html: html-am
  50171. +html-am:
  50172. +
  50173. info: info-am
  50174. info-am:
  50175. install-data-am:
  50176. +install-dvi: install-dvi-am
  50177. +
  50178. +install-dvi-am:
  50179. +
  50180. install-exec-am:
  50181. +install-html: install-html-am
  50182. +
  50183. +install-html-am:
  50184. +
  50185. install-info: install-info-am
  50186. +install-info-am:
  50187. +
  50188. install-man:
  50189. +install-pdf: install-pdf-am
  50190. +
  50191. +install-pdf-am:
  50192. +
  50193. +install-ps: install-ps-am
  50194. +
  50195. +install-ps-am:
  50196. +
  50197. installcheck-am:
  50198. maintainer-clean: maintainer-clean-am
  50199. @@ -323,17 +352,21 @@
  50200. ps-am:
  50201. -uninstall-am: uninstall-info-am
  50202. +uninstall-am:
  50203. +
  50204. +.MAKE: install-am install-strip
  50205. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  50206. distclean distclean-generic distclean-libtool distdir dvi \
  50207. dvi-am html html-am info info-am install install-am \
  50208. - install-data install-data-am install-exec install-exec-am \
  50209. - install-info install-info-am install-man install-strip \
  50210. + install-data install-data-am install-dvi install-dvi-am \
  50211. + install-exec install-exec-am install-html install-html-am \
  50212. + install-info install-info-am install-man install-pdf \
  50213. + install-pdf-am install-ps install-ps-am install-strip \
  50214. installcheck installcheck-am installdirs maintainer-clean \
  50215. maintainer-clean-generic mostlyclean mostlyclean-generic \
  50216. - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  50217. - uninstall-info-am
  50218. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  50219. +
  50220. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  50221. # Otherwise a system limit (for SysV at least) may be exceeded.
  50222. diff -Nur audiofile-0.2.7.orig/examples/Makefile.in audiofile-0.2.7/examples/Makefile.in
  50223. --- audiofile-0.2.7.orig/examples/Makefile.in 2010-03-22 06:45:47.000000000 +0100
  50224. +++ audiofile-0.2.7/examples/Makefile.in 2011-02-24 20:00:34.394807729 +0100
  50225. @@ -1,8 +1,9 @@
  50226. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  50227. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  50228. # @configure_input@
  50229. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  50230. -# 2003, 2004 Free Software Foundation, Inc.
  50231. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  50232. +# Inc.
  50233. # This Makefile.in is free software; the Free Software Foundation
  50234. # gives unlimited permission to copy and/or distribute it,
  50235. # with or without modifications, as long as this notice is preserved.
  50236. @@ -14,17 +15,12 @@
  50237. @SET_MAKE@
  50238. -SOURCES = adddcoffset.c $(irixread_SOURCES) $(irixtestloop_SOURCES) $(linuxtest_SOURCES) $(osxplay_SOURCES) power.c
  50239. -
  50240. -srcdir = @srcdir@
  50241. -top_srcdir = @top_srcdir@
  50242. VPATH = @srcdir@
  50243. pkgdatadir = $(datadir)/@PACKAGE@
  50244. -pkglibdir = $(libdir)/@PACKAGE@
  50245. pkgincludedir = $(includedir)/@PACKAGE@
  50246. -top_builddir = ..
  50247. +pkglibdir = $(libdir)/@PACKAGE@
  50248. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  50249. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  50250. -INSTALL = @INSTALL@
  50251. install_sh_DATA = $(install_sh) -c -m 644
  50252. install_sh_PROGRAM = $(install_sh) -c
  50253. install_sh_SCRIPT = $(install_sh) -c
  50254. @@ -50,6 +46,7 @@
  50255. mkinstalldirs = $(install_sh) -d
  50256. CONFIG_HEADER = $(top_builddir)/config.h
  50257. CONFIG_CLEAN_FILES =
  50258. +CONFIG_CLEAN_VPATH_FILES =
  50259. PROGRAMS = $(noinst_PROGRAMS)
  50260. adddcoffset_SOURCES = adddcoffset.c
  50261. adddcoffset_OBJECTS = adddcoffset.$(OBJEXT)
  50262. @@ -71,21 +68,26 @@
  50263. osxplay_OBJECTS = $(am_osxplay_OBJECTS)
  50264. osxplay_LDADD = $(LDADD)
  50265. osxplay_DEPENDENCIES = $(top_builddir)/libaudiofile/libaudiofile.la
  50266. +osxplay_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  50267. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(osxplay_LDFLAGS) \
  50268. + $(LDFLAGS) -o $@
  50269. power_SOURCES = power.c
  50270. power_OBJECTS = power.$(OBJEXT)
  50271. power_LDADD = $(LDADD)
  50272. power_DEPENDENCIES = $(top_builddir)/libaudiofile/libaudiofile.la
  50273. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  50274. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  50275. depcomp = $(SHELL) $(top_srcdir)/depcomp
  50276. am__depfiles_maybe = depfiles
  50277. +am__mv = mv -f
  50278. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  50279. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  50280. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  50281. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  50282. - $(AM_CFLAGS) $(CFLAGS)
  50283. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  50284. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  50285. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  50286. CCLD = $(CC)
  50287. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  50288. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  50289. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  50290. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  50291. + $(LDFLAGS) -o $@
  50292. SOURCES = adddcoffset.c $(irixread_SOURCES) $(irixtestloop_SOURCES) \
  50293. $(linuxtest_SOURCES) $(osxplay_SOURCES) power.c
  50294. DIST_SOURCES = adddcoffset.c $(irixread_SOURCES) \
  50295. @@ -95,8 +97,6 @@
  50296. CTAGS = ctags
  50297. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  50298. ACLOCAL = @ACLOCAL@
  50299. -AMDEP_FALSE = @AMDEP_FALSE@
  50300. -AMDEP_TRUE = @AMDEP_TRUE@
  50301. AMTAR = @AMTAR@
  50302. AR = @AR@
  50303. AS = @AS@
  50304. @@ -115,56 +115,61 @@
  50305. CFLAGS = @CFLAGS@
  50306. CPP = @CPP@
  50307. CPPFLAGS = @CPPFLAGS@
  50308. -CXX = @CXX@
  50309. -CXXCPP = @CXXCPP@
  50310. -CXXDEPMODE = @CXXDEPMODE@
  50311. -CXXFLAGS = @CXXFLAGS@
  50312. CYGPATH_W = @CYGPATH_W@
  50313. DEFS = @DEFS@
  50314. DEPDIR = @DEPDIR@
  50315. DLLTOOL = @DLLTOOL@
  50316. -ECHO = @ECHO@
  50317. +DSYMUTIL = @DSYMUTIL@
  50318. +DUMPBIN = @DUMPBIN@
  50319. ECHO_C = @ECHO_C@
  50320. ECHO_N = @ECHO_N@
  50321. ECHO_T = @ECHO_T@
  50322. EGREP = @EGREP@
  50323. EXEEXT = @EXEEXT@
  50324. -F77 = @F77@
  50325. -FFLAGS = @FFLAGS@
  50326. +FGREP = @FGREP@
  50327. GREP = @GREP@
  50328. +INSTALL = @INSTALL@
  50329. INSTALL_DATA = @INSTALL_DATA@
  50330. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  50331. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  50332. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  50333. +LD = @LD@
  50334. LDFLAGS = @LDFLAGS@
  50335. LIBOBJS = @LIBOBJS@
  50336. LIBS = @LIBS@
  50337. LIBTOOL = @LIBTOOL@
  50338. +LIPO = @LIPO@
  50339. LN_S = @LN_S@
  50340. LTLIBOBJS = @LTLIBOBJS@
  50341. MAKEINFO = @MAKEINFO@
  50342. +MKDIR_P = @MKDIR_P@
  50343. +NM = @NM@
  50344. +NMEDIT = @NMEDIT@
  50345. OBJDUMP = @OBJDUMP@
  50346. OBJEXT = @OBJEXT@
  50347. +OTOOL = @OTOOL@
  50348. +OTOOL64 = @OTOOL64@
  50349. PACKAGE = @PACKAGE@
  50350. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  50351. PACKAGE_NAME = @PACKAGE_NAME@
  50352. PACKAGE_STRING = @PACKAGE_STRING@
  50353. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  50354. +PACKAGE_URL = @PACKAGE_URL@
  50355. PACKAGE_VERSION = @PACKAGE_VERSION@
  50356. PATH_SEPARATOR = @PATH_SEPARATOR@
  50357. RANLIB = @RANLIB@
  50358. +SED = @SED@
  50359. SET_MAKE = @SET_MAKE@
  50360. SHELL = @SHELL@
  50361. STRIP = @STRIP@
  50362. TEST_BIN = @TEST_BIN@
  50363. VERSION = @VERSION@
  50364. +abs_builddir = @abs_builddir@
  50365. +abs_srcdir = @abs_srcdir@
  50366. +abs_top_builddir = @abs_top_builddir@
  50367. +abs_top_srcdir = @abs_top_srcdir@
  50368. ac_ct_CC = @ac_ct_CC@
  50369. -ac_ct_CXX = @ac_ct_CXX@
  50370. -ac_ct_F77 = @ac_ct_F77@
  50371. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  50372. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  50373. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  50374. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  50375. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  50376. am__include = @am__include@
  50377. am__leading_dot = @am__leading_dot@
  50378. am__quote = @am__quote@
  50379. @@ -176,6 +181,7 @@
  50380. build_cpu = @build_cpu@
  50381. build_os = @build_os@
  50382. build_vendor = @build_vendor@
  50383. +builddir = @builddir@
  50384. datadir = @datadir@
  50385. datarootdir = @datarootdir@
  50386. docdir = @docdir@
  50387. @@ -194,6 +200,7 @@
  50388. libexecdir = @libexecdir@
  50389. localedir = @localedir@
  50390. localstatedir = @localstatedir@
  50391. +lt_ECHO = @lt_ECHO@
  50392. mandir = @mandir@
  50393. mkdir_p = @mkdir_p@
  50394. oldincludedir = @oldincludedir@
  50395. @@ -203,8 +210,12 @@
  50396. psdir = @psdir@
  50397. sbindir = @sbindir@
  50398. sharedstatedir = @sharedstatedir@
  50399. +srcdir = @srcdir@
  50400. sysconfdir = @sysconfdir@
  50401. target_alias = @target_alias@
  50402. +top_build_prefix = @top_build_prefix@
  50403. +top_builddir = @top_builddir@
  50404. +top_srcdir = @top_srcdir@
  50405. INCLUDES = -I$(top_srcdir)/libaudiofile
  50406. irixread_SOURCES = irixread.c sgi.c sgi.h
  50407. irixread_LDADD = $(top_builddir)/libaudiofile/libaudiofile.la @AUDIO_LIB@
  50408. @@ -223,14 +234,14 @@
  50409. @for dep in $?; do \
  50410. case '$(am__configure_deps)' in \
  50411. *$$dep*) \
  50412. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  50413. - && exit 0; \
  50414. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  50415. + && { if test -f $@; then exit 0; else break; fi; }; \
  50416. exit 1;; \
  50417. esac; \
  50418. done; \
  50419. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
  50420. - cd $(top_srcdir) && \
  50421. - $(AUTOMAKE) --gnu examples/Makefile
  50422. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
  50423. + $(am__cd) $(top_srcdir) && \
  50424. + $(AUTOMAKE) --gnu examples/Makefile
  50425. .PRECIOUS: Makefile
  50426. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  50427. @case '$?' in \
  50428. @@ -248,31 +259,34 @@
  50429. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  50430. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  50431. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  50432. +$(am__aclocal_m4_deps):
  50433. clean-noinstPROGRAMS:
  50434. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  50435. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  50436. - echo " rm -f $$p $$f"; \
  50437. - rm -f $$p $$f ; \
  50438. - done
  50439. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  50440. + echo " rm -f" $$list; \
  50441. + rm -f $$list || exit $$?; \
  50442. + test -n "$(EXEEXT)" || exit 0; \
  50443. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  50444. + echo " rm -f" $$list; \
  50445. + rm -f $$list
  50446. adddcoffset$(EXEEXT): $(adddcoffset_OBJECTS) $(adddcoffset_DEPENDENCIES)
  50447. @rm -f adddcoffset$(EXEEXT)
  50448. - $(LINK) $(adddcoffset_LDFLAGS) $(adddcoffset_OBJECTS) $(adddcoffset_LDADD) $(LIBS)
  50449. + $(LINK) $(adddcoffset_OBJECTS) $(adddcoffset_LDADD) $(LIBS)
  50450. irixread$(EXEEXT): $(irixread_OBJECTS) $(irixread_DEPENDENCIES)
  50451. @rm -f irixread$(EXEEXT)
  50452. - $(LINK) $(irixread_LDFLAGS) $(irixread_OBJECTS) $(irixread_LDADD) $(LIBS)
  50453. + $(LINK) $(irixread_OBJECTS) $(irixread_LDADD) $(LIBS)
  50454. irixtestloop$(EXEEXT): $(irixtestloop_OBJECTS) $(irixtestloop_DEPENDENCIES)
  50455. @rm -f irixtestloop$(EXEEXT)
  50456. - $(LINK) $(irixtestloop_LDFLAGS) $(irixtestloop_OBJECTS) $(irixtestloop_LDADD) $(LIBS)
  50457. + $(LINK) $(irixtestloop_OBJECTS) $(irixtestloop_LDADD) $(LIBS)
  50458. linuxtest$(EXEEXT): $(linuxtest_OBJECTS) $(linuxtest_DEPENDENCIES)
  50459. @rm -f linuxtest$(EXEEXT)
  50460. - $(LINK) $(linuxtest_LDFLAGS) $(linuxtest_OBJECTS) $(linuxtest_LDADD) $(LIBS)
  50461. + $(LINK) $(linuxtest_OBJECTS) $(linuxtest_LDADD) $(LIBS)
  50462. osxplay$(EXEEXT): $(osxplay_OBJECTS) $(osxplay_DEPENDENCIES)
  50463. @rm -f osxplay$(EXEEXT)
  50464. - $(LINK) $(osxplay_LDFLAGS) $(osxplay_OBJECTS) $(osxplay_LDADD) $(LIBS)
  50465. + $(osxplay_LINK) $(osxplay_OBJECTS) $(osxplay_LDADD) $(LIBS)
  50466. power$(EXEEXT): $(power_OBJECTS) $(power_DEPENDENCIES)
  50467. @rm -f power$(EXEEXT)
  50468. - $(LINK) $(power_LDFLAGS) $(power_OBJECTS) $(power_LDADD) $(LIBS)
  50469. + $(LINK) $(power_OBJECTS) $(power_LDADD) $(LIBS)
  50470. mostlyclean-compile:
  50471. -rm -f *.$(OBJEXT)
  50472. @@ -289,22 +303,22 @@
  50473. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sgi.Po@am__quote@
  50474. .c.o:
  50475. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  50476. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  50477. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  50478. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50479. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  50480. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50481. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  50482. .c.obj:
  50483. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  50484. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  50485. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  50486. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50487. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  50488. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50489. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  50490. .c.lo:
  50491. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  50492. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  50493. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  50494. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  50495. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  50496. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50497. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  50498. @@ -315,82 +329,85 @@
  50499. clean-libtool:
  50500. -rm -rf .libs _libs
  50501. -distclean-libtool:
  50502. - -rm -f libtool
  50503. -uninstall-info-am:
  50504. -
  50505. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  50506. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  50507. unique=`for i in $$list; do \
  50508. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  50509. done | \
  50510. - $(AWK) ' { files[$$0] = 1; } \
  50511. - END { for (i in files) print i; }'`; \
  50512. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  50513. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  50514. mkid -fID $$unique
  50515. tags: TAGS
  50516. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  50517. $(TAGS_FILES) $(LISP)
  50518. - tags=; \
  50519. + set x; \
  50520. here=`pwd`; \
  50521. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  50522. unique=`for i in $$list; do \
  50523. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  50524. done | \
  50525. - $(AWK) ' { files[$$0] = 1; } \
  50526. - END { for (i in files) print i; }'`; \
  50527. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  50528. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  50529. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  50530. + shift; \
  50531. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  50532. test -n "$$unique" || unique=$$empty_fix; \
  50533. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  50534. - $$tags $$unique; \
  50535. + if test $$# -gt 0; then \
  50536. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  50537. + "$$@" $$unique; \
  50538. + else \
  50539. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  50540. + $$unique; \
  50541. + fi; \
  50542. fi
  50543. ctags: CTAGS
  50544. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  50545. $(TAGS_FILES) $(LISP)
  50546. - tags=; \
  50547. - here=`pwd`; \
  50548. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  50549. unique=`for i in $$list; do \
  50550. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  50551. done | \
  50552. - $(AWK) ' { files[$$0] = 1; } \
  50553. - END { for (i in files) print i; }'`; \
  50554. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  50555. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  50556. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  50557. + test -z "$(CTAGS_ARGS)$$unique" \
  50558. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  50559. - $$tags $$unique
  50560. + $$unique
  50561. GTAGS:
  50562. here=`$(am__cd) $(top_builddir) && pwd` \
  50563. - && cd $(top_srcdir) \
  50564. - && gtags -i $(GTAGS_ARGS) $$here
  50565. + && $(am__cd) $(top_srcdir) \
  50566. + && gtags -i $(GTAGS_ARGS) "$$here"
  50567. distclean-tags:
  50568. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  50569. distdir: $(DISTFILES)
  50570. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  50571. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  50572. - list='$(DISTFILES)'; for file in $$list; do \
  50573. - case $$file in \
  50574. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  50575. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  50576. - esac; \
  50577. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  50578. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  50579. + list='$(DISTFILES)'; \
  50580. + dist_files=`for file in $$list; do echo $$file; done | \
  50581. + sed -e "s|^$$srcdirstrip/||;t" \
  50582. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  50583. + case $$dist_files in \
  50584. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  50585. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  50586. + sort -u` ;; \
  50587. + esac; \
  50588. + for file in $$dist_files; do \
  50589. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  50590. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  50591. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  50592. - dir="/$$dir"; \
  50593. - $(mkdir_p) "$(distdir)$$dir"; \
  50594. - else \
  50595. - dir=''; \
  50596. - fi; \
  50597. if test -d $$d/$$file; then \
  50598. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  50599. + if test -d "$(distdir)/$$file"; then \
  50600. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  50601. + fi; \
  50602. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  50603. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  50604. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  50605. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  50606. fi; \
  50607. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  50608. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  50609. else \
  50610. - test -f $(distdir)/$$file \
  50611. - || cp -p $$d/$$file $(distdir)/$$file \
  50612. + test -f "$(distdir)/$$file" \
  50613. + || cp -p $$d/$$file "$(distdir)/$$file" \
  50614. || exit 1; \
  50615. fi; \
  50616. done
  50617. @@ -418,6 +435,7 @@
  50618. distclean-generic:
  50619. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  50620. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  50621. maintainer-clean-generic:
  50622. @echo "This command is intended for maintainers to use"
  50623. @@ -431,7 +449,7 @@
  50624. -rm -rf ./$(DEPDIR)
  50625. -rm -f Makefile
  50626. distclean-am: clean-am distclean-compile distclean-generic \
  50627. - distclean-libtool distclean-tags
  50628. + distclean-tags
  50629. dvi: dvi-am
  50630. @@ -439,18 +457,38 @@
  50631. html: html-am
  50632. +html-am:
  50633. +
  50634. info: info-am
  50635. info-am:
  50636. install-data-am:
  50637. +install-dvi: install-dvi-am
  50638. +
  50639. +install-dvi-am:
  50640. +
  50641. install-exec-am:
  50642. +install-html: install-html-am
  50643. +
  50644. +install-html-am:
  50645. +
  50646. install-info: install-info-am
  50647. +install-info-am:
  50648. +
  50649. install-man:
  50650. +install-pdf: install-pdf-am
  50651. +
  50652. +install-pdf-am:
  50653. +
  50654. +install-ps: install-ps-am
  50655. +
  50656. +install-ps-am:
  50657. +
  50658. installcheck-am:
  50659. maintainer-clean: maintainer-clean-am
  50660. @@ -471,19 +509,23 @@
  50661. ps-am:
  50662. -uninstall-am: uninstall-info-am
  50663. +uninstall-am:
  50664. +
  50665. +.MAKE: install-am install-strip
  50666. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  50667. clean-libtool clean-noinstPROGRAMS ctags distclean \
  50668. distclean-compile distclean-generic distclean-libtool \
  50669. distclean-tags distdir dvi dvi-am html html-am info info-am \
  50670. - install install-am install-data install-data-am install-exec \
  50671. - install-exec-am install-info install-info-am install-man \
  50672. + install install-am install-data install-data-am install-dvi \
  50673. + install-dvi-am install-exec install-exec-am install-html \
  50674. + install-html-am install-info install-info-am install-man \
  50675. + install-pdf install-pdf-am install-ps install-ps-am \
  50676. install-strip installcheck installcheck-am installdirs \
  50677. maintainer-clean maintainer-clean-generic mostlyclean \
  50678. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  50679. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  50680. - uninstall-info-am
  50681. + pdf pdf-am ps ps-am tags uninstall uninstall-am
  50682. +
  50683. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  50684. # Otherwise a system limit (for SysV at least) may be exceeded.
  50685. diff -Nur audiofile-0.2.7.orig/INSTALL audiofile-0.2.7/INSTALL
  50686. --- audiofile-0.2.7.orig/INSTALL 2010-03-12 09:57:54.000000000 +0100
  50687. +++ audiofile-0.2.7/INSTALL 2011-02-24 20:00:34.724800979 +0100
  50688. @@ -1,48 +1,80 @@
  50689. +Installation Instructions
  50690. +*************************
  50691. +
  50692. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  50693. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  50694. +
  50695. + Copying and distribution of this file, with or without modification,
  50696. +are permitted in any medium without royalty provided the copyright
  50697. +notice and this notice are preserved. This file is offered as-is,
  50698. +without warranty of any kind.
  50699. +
  50700. Basic Installation
  50701. ==================
  50702. - These are generic installation instructions.
  50703. + Briefly, the shell commands `./configure; make; make install' should
  50704. +configure, build, and install this package. The following
  50705. +more-detailed instructions are generic; see the `README' file for
  50706. +instructions specific to this package. Some packages provide this
  50707. +`INSTALL' file but do not implement all of the features documented
  50708. +below. The lack of an optional feature in a given package is not
  50709. +necessarily a bug. More recommendations for GNU packages can be found
  50710. +in *note Makefile Conventions: (standards)Makefile Conventions.
  50711. The `configure' shell script attempts to guess correct values for
  50712. various system-dependent variables used during compilation. It uses
  50713. those values to create a `Makefile' in each directory of the package.
  50714. It may also create one or more `.h' files containing system-dependent
  50715. definitions. Finally, it creates a shell script `config.status' that
  50716. -you can run in the future to recreate the current configuration, a file
  50717. -`config.cache' that saves the results of its tests to speed up
  50718. -reconfiguring, and a file `config.log' containing compiler output
  50719. -(useful mainly for debugging `configure').
  50720. +you can run in the future to recreate the current configuration, and a
  50721. +file `config.log' containing compiler output (useful mainly for
  50722. +debugging `configure').
  50723. +
  50724. + It can also use an optional file (typically called `config.cache'
  50725. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  50726. +the results of its tests to speed up reconfiguring. Caching is
  50727. +disabled by default to prevent problems with accidental use of stale
  50728. +cache files.
  50729. If you need to do unusual things to compile the package, please try
  50730. to figure out how `configure' could check whether to do them, and mail
  50731. diffs or instructions to the address given in the `README' so they can
  50732. -be considered for the next release. If at some point `config.cache'
  50733. -contains results you don't want to keep, you may remove or edit it.
  50734. -
  50735. - The file `configure.in' is used to create `configure' by a program
  50736. -called `autoconf'. You only need `configure.in' if you want to change
  50737. -it or regenerate `configure' using a newer version of `autoconf'.
  50738. +be considered for the next release. If you are using the cache, and at
  50739. +some point `config.cache' contains results you don't want to keep, you
  50740. +may remove or edit it.
  50741. +
  50742. + The file `configure.ac' (or `configure.in') is used to create
  50743. +`configure' by a program called `autoconf'. You need `configure.ac' if
  50744. +you want to change it or regenerate `configure' using a newer version
  50745. +of `autoconf'.
  50746. -The simplest way to compile this package is:
  50747. + The simplest way to compile this package is:
  50748. 1. `cd' to the directory containing the package's source code and type
  50749. - `./configure' to configure the package for your system. If you're
  50750. - using `csh' on an old version of System V, you might need to type
  50751. - `sh ./configure' instead to prevent `csh' from trying to execute
  50752. - `configure' itself.
  50753. + `./configure' to configure the package for your system.
  50754. - Running `configure' takes awhile. While running, it prints some
  50755. - messages telling which features it is checking for.
  50756. + Running `configure' might take a while. While running, it prints
  50757. + some messages telling which features it is checking for.
  50758. 2. Type `make' to compile the package.
  50759. 3. Optionally, type `make check' to run any self-tests that come with
  50760. - the package.
  50761. + the package, generally using the just-built uninstalled binaries.
  50762. 4. Type `make install' to install the programs and any data files and
  50763. - documentation.
  50764. + documentation. When installing into a prefix owned by root, it is
  50765. + recommended that the package be configured and built as a regular
  50766. + user, and only the `make install' phase executed with root
  50767. + privileges.
  50768. +
  50769. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  50770. + this time using the binaries in their final installed location.
  50771. + This target does not install anything. Running this target as a
  50772. + regular user, particularly if the prior `make install' required
  50773. + root privileges, verifies that the installation completed
  50774. + correctly.
  50775. - 5. You can remove the program binaries and object files from the
  50776. + 6. You can remove the program binaries and object files from the
  50777. source code directory by typing `make clean'. To also remove the
  50778. files that `configure' created (so you can compile the package for
  50779. a different kind of computer), type `make distclean'. There is
  50780. @@ -51,62 +83,119 @@
  50781. all sorts of other programs in order to regenerate files that came
  50782. with the distribution.
  50783. + 7. Often, you can also type `make uninstall' to remove the installed
  50784. + files again. In practice, not all packages have tested that
  50785. + uninstallation works correctly, even though it is required by the
  50786. + GNU Coding Standards.
  50787. +
  50788. + 8. Some packages, particularly those that use Automake, provide `make
  50789. + distcheck', which can by used by developers to test that all other
  50790. + targets like `make install' and `make uninstall' work correctly.
  50791. + This target is generally not run by end users.
  50792. +
  50793. Compilers and Options
  50794. =====================
  50795. Some systems require unusual options for compilation or linking that
  50796. -the `configure' script does not know about. You can give `configure'
  50797. -initial values for variables by setting them in the environment. Using
  50798. -a Bourne-compatible shell, you can do that on the command line like
  50799. -this:
  50800. - CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
  50801. +the `configure' script does not know about. Run `./configure --help'
  50802. +for details on some of the pertinent environment variables.
  50803. +
  50804. + You can give `configure' initial values for configuration parameters
  50805. +by setting variables in the command line or in the environment. Here
  50806. +is an example:
  50807. -Or on systems that have the `env' program, you can do it like this:
  50808. - env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
  50809. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  50810. +
  50811. + *Note Defining Variables::, for more details.
  50812. Compiling For Multiple Architectures
  50813. ====================================
  50814. You can compile the package for more than one kind of computer at the
  50815. same time, by placing the object files for each architecture in their
  50816. -own directory. To do this, you must use a version of `make' that
  50817. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  50818. +own directory. To do this, you can use GNU `make'. `cd' to the
  50819. directory where you want the object files and executables to go and run
  50820. the `configure' script. `configure' automatically checks for the
  50821. -source code in the directory that `configure' is in and in `..'.
  50822. +source code in the directory that `configure' is in and in `..'. This
  50823. +is known as a "VPATH" build.
  50824. +
  50825. + With a non-GNU `make', it is safer to compile the package for one
  50826. +architecture at a time in the source code directory. After you have
  50827. +installed the package for one architecture, use `make distclean' before
  50828. +reconfiguring for another architecture.
  50829. +
  50830. + On MacOS X 10.5 and later systems, you can create libraries and
  50831. +executables that work on multiple system types--known as "fat" or
  50832. +"universal" binaries--by specifying multiple `-arch' options to the
  50833. +compiler but only a single `-arch' option to the preprocessor. Like
  50834. +this:
  50835. - If you have to use a `make' that does not supports the `VPATH'
  50836. -variable, you have to compile the package for one architecture at a time
  50837. -in the source code directory. After you have installed the package for
  50838. -one architecture, use `make distclean' before reconfiguring for another
  50839. -architecture.
  50840. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  50841. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  50842. + CPP="gcc -E" CXXCPP="g++ -E"
  50843. +
  50844. + This is not guaranteed to produce working output in all cases, you
  50845. +may have to build one architecture at a time and combine the results
  50846. +using the `lipo' tool if you have problems.
  50847. Installation Names
  50848. ==================
  50849. - By default, `make install' will install the package's files in
  50850. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  50851. -installation prefix other than `/usr/local' by giving `configure' the
  50852. -option `--prefix=PATH'.
  50853. + By default, `make install' installs the package's commands under
  50854. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  50855. +can specify an installation prefix other than `/usr/local' by giving
  50856. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  50857. +absolute file name.
  50858. You can specify separate installation prefixes for
  50859. architecture-specific files and architecture-independent files. If you
  50860. -give `configure' the option `--exec-prefix=PATH', the package will use
  50861. -PATH as the prefix for installing programs and libraries.
  50862. -Documentation and other data files will still use the regular prefix.
  50863. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  50864. +PREFIX as the prefix for installing programs and libraries.
  50865. +Documentation and other data files still use the regular prefix.
  50866. In addition, if you use an unusual directory layout you can give
  50867. -options like `--bindir=PATH' to specify different values for particular
  50868. +options like `--bindir=DIR' to specify different values for particular
  50869. kinds of files. Run `configure --help' for a list of the directories
  50870. -you can set and what kinds of files go in them.
  50871. +you can set and what kinds of files go in them. In general, the
  50872. +default for these options is expressed in terms of `${prefix}', so that
  50873. +specifying just `--prefix' will affect all of the other directory
  50874. +specifications that were not explicitly provided.
  50875. +
  50876. + The most portable way to affect installation locations is to pass the
  50877. +correct locations to `configure'; however, many packages provide one or
  50878. +both of the following shortcuts of passing variable assignments to the
  50879. +`make install' command line to change installation locations without
  50880. +having to reconfigure or recompile.
  50881. +
  50882. + The first method involves providing an override variable for each
  50883. +affected directory. For example, `make install
  50884. +prefix=/alternate/directory' will choose an alternate location for all
  50885. +directory configuration variables that were expressed in terms of
  50886. +`${prefix}'. Any directories that were specified during `configure',
  50887. +but not in terms of `${prefix}', must each be overridden at install
  50888. +time for the entire installation to be relocated. The approach of
  50889. +makefile variable overrides for each directory variable is required by
  50890. +the GNU Coding Standards, and ideally causes no recompilation.
  50891. +However, some platforms have known limitations with the semantics of
  50892. +shared libraries that end up requiring recompilation when using this
  50893. +method, particularly noticeable in packages that use GNU Libtool.
  50894. +
  50895. + The second method involves providing the `DESTDIR' variable. For
  50896. +example, `make install DESTDIR=/alternate/directory' will prepend
  50897. +`/alternate/directory' before all installation names. The approach of
  50898. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  50899. +does not work on platforms that have drive letters. On the other hand,
  50900. +it does better at avoiding recompilation issues, and works well even
  50901. +when some directory options were not specified in terms of `${prefix}'
  50902. +at `configure' time.
  50903. +
  50904. +Optional Features
  50905. +=================
  50906. If the package supports it, you can cause programs to be installed
  50907. with an extra prefix or suffix on their names by giving `configure' the
  50908. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  50909. -Optional Features
  50910. -=================
  50911. -
  50912. Some packages pay attention to `--enable-FEATURE' options to
  50913. `configure', where FEATURE indicates an optional part of the package.
  50914. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  50915. @@ -119,25 +208,75 @@
  50916. you can use the `configure' options `--x-includes=DIR' and
  50917. `--x-libraries=DIR' to specify their locations.
  50918. + Some packages offer the ability to configure how verbose the
  50919. +execution of `make' will be. For these packages, running `./configure
  50920. +--enable-silent-rules' sets the default to minimal output, which can be
  50921. +overridden with `make V=1'; while running `./configure
  50922. +--disable-silent-rules' sets the default to verbose, which can be
  50923. +overridden with `make V=0'.
  50924. +
  50925. +Particular systems
  50926. +==================
  50927. +
  50928. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  50929. +CC is not installed, it is recommended to use the following options in
  50930. +order to use an ANSI C compiler:
  50931. +
  50932. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  50933. +
  50934. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  50935. +
  50936. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  50937. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  50938. +a workaround. If GNU CC is not installed, it is therefore recommended
  50939. +to try
  50940. +
  50941. + ./configure CC="cc"
  50942. +
  50943. +and if that doesn't work, try
  50944. +
  50945. + ./configure CC="cc -nodtk"
  50946. +
  50947. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  50948. +directory contains several dysfunctional programs; working variants of
  50949. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  50950. +in your `PATH', put it _after_ `/usr/bin'.
  50951. +
  50952. + On Haiku, software installed for all users goes in `/boot/common',
  50953. +not `/usr/local'. It is recommended to use the following options:
  50954. +
  50955. + ./configure --prefix=/boot/common
  50956. +
  50957. Specifying the System Type
  50958. ==========================
  50959. - There may be some features `configure' can not figure out
  50960. -automatically, but needs to determine by the type of host the package
  50961. -will run on. Usually `configure' can figure that out, but if it prints
  50962. -a message saying it can not guess the host type, give it the
  50963. -`--host=TYPE' option. TYPE can either be a short name for the system
  50964. -type, such as `sun4', or a canonical name with three fields:
  50965. + There may be some features `configure' cannot figure out
  50966. +automatically, but needs to determine by the type of machine the package
  50967. +will run on. Usually, assuming the package is built to be run on the
  50968. +_same_ architectures, `configure' can figure that out, but if it prints
  50969. +a message saying it cannot guess the machine type, give it the
  50970. +`--build=TYPE' option. TYPE can either be a short name for the system
  50971. +type, such as `sun4', or a canonical name which has the form:
  50972. +
  50973. CPU-COMPANY-SYSTEM
  50974. -See the file `config.sub' for the possible values of each field. If
  50975. +where SYSTEM can have one of these forms:
  50976. +
  50977. + OS
  50978. + KERNEL-OS
  50979. +
  50980. + See the file `config.sub' for the possible values of each field. If
  50981. `config.sub' isn't included in this package, then this package doesn't
  50982. -need to know the host type.
  50983. +need to know the machine type.
  50984. - If you are building compiler tools for cross-compiling, you can also
  50985. -use the `--target=TYPE' option to select the type of system they will
  50986. -produce code for and the `--build=TYPE' option to select the type of
  50987. -system on which you are compiling the package.
  50988. + If you are _building_ compiler tools for cross-compiling, you should
  50989. +use the option `--target=TYPE' to select the type of system they will
  50990. +produce code for.
  50991. +
  50992. + If you want to _use_ a cross compiler, that generates code for a
  50993. +platform different from the build platform, you should specify the
  50994. +"host" platform (i.e., that on which the generated programs will
  50995. +eventually be run) with `--host=TYPE'.
  50996. Sharing Defaults
  50997. ================
  50998. @@ -150,19 +289,55 @@
  50999. `CONFIG_SITE' environment variable to the location of the site script.
  51000. A warning: not all `configure' scripts look for a site script.
  51001. -Operation Controls
  51002. +Defining Variables
  51003. ==================
  51004. + Variables not defined in a site shell script can be set in the
  51005. +environment passed to `configure'. However, some packages may run
  51006. +configure again during the build, and the customized values of these
  51007. +variables may be lost. In order to avoid this problem, you should set
  51008. +them in the `configure' command line, using `VAR=value'. For example:
  51009. +
  51010. + ./configure CC=/usr/local2/bin/gcc
  51011. +
  51012. +causes the specified `gcc' to be used as the C compiler (unless it is
  51013. +overridden in the site shell script).
  51014. +
  51015. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  51016. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  51017. +
  51018. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  51019. +
  51020. +`configure' Invocation
  51021. +======================
  51022. +
  51023. `configure' recognizes the following options to control how it
  51024. operates.
  51025. -`--cache-file=FILE'
  51026. - Use and save the results of the tests in FILE instead of
  51027. - `./config.cache'. Set FILE to `/dev/null' to disable caching, for
  51028. - debugging `configure'.
  51029. -
  51030. `--help'
  51031. - Print a summary of the options to `configure', and exit.
  51032. +`-h'
  51033. + Print a summary of all of the options to `configure', and exit.
  51034. +
  51035. +`--help=short'
  51036. +`--help=recursive'
  51037. + Print a summary of the options unique to this package's
  51038. + `configure', and exit. The `short' variant lists options used
  51039. + only in the top level, while the `recursive' variant lists options
  51040. + also present in any nested packages.
  51041. +
  51042. +`--version'
  51043. +`-V'
  51044. + Print the version of Autoconf used to generate the `configure'
  51045. + script, and exit.
  51046. +
  51047. +`--cache-file=FILE'
  51048. + Enable the cache: use and save the results of the tests in FILE,
  51049. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  51050. + disable caching.
  51051. +
  51052. +`--config-cache'
  51053. +`-C'
  51054. + Alias for `--cache-file=config.cache'.
  51055. `--quiet'
  51056. `--silent'
  51057. @@ -175,8 +350,16 @@
  51058. Look for the package's source code in directory DIR. Usually
  51059. `configure' can determine that directory automatically.
  51060. -`--version'
  51061. - Print the version of Autoconf used to generate the `configure'
  51062. - script, and exit.
  51063. +`--prefix=DIR'
  51064. + Use DIR as the installation prefix. *note Installation Names::
  51065. + for more details, including other options available for fine-tuning
  51066. + the installation locations.
  51067. +
  51068. +`--no-create'
  51069. +`-n'
  51070. + Run the configure checks, but stop before creating any output
  51071. + files.
  51072. +
  51073. +`configure' also accepts some other, not widely useful, options. Run
  51074. +`configure --help' for more details.
  51075. -`configure' also accepts some other, not widely useful, options.
  51076. diff -Nur audiofile-0.2.7.orig/install-sh audiofile-0.2.7/install-sh
  51077. --- audiofile-0.2.7.orig/install-sh 2006-03-23 07:16:37.000000000 +0100
  51078. +++ audiofile-0.2.7/install-sh 2011-02-24 20:00:34.244812362 +0100
  51079. @@ -1,7 +1,7 @@
  51080. #!/bin/sh
  51081. # install - install a program, script, or datafile
  51082. -scriptversion=2004-12-17.09
  51083. +scriptversion=2009-04-28.21; # UTC
  51084. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  51085. # later released in X11R6 (xc/config/util/install.sh) with the
  51086. @@ -39,38 +39,68 @@
  51087. # when there is no Makefile.
  51088. #
  51089. # This script is compatible with the BSD install script, but was written
  51090. -# from scratch. It can only install one file at a time, a restriction
  51091. -# shared with many OS's install programs.
  51092. +# from scratch.
  51093. +
  51094. +nl='
  51095. +'
  51096. +IFS=" "" $nl"
  51097. # set DOITPROG to echo to test this script
  51098. # Don't use :- since 4.3BSD and earlier shells don't like it.
  51099. -doit="${DOITPROG-}"
  51100. +doit=${DOITPROG-}
  51101. +if test -z "$doit"; then
  51102. + doit_exec=exec
  51103. +else
  51104. + doit_exec=$doit
  51105. +fi
  51106. -# put in absolute paths if you don't have them in your path; or use env. vars.
  51107. +# Put in absolute file names if you don't have them in your path;
  51108. +# or use environment vars.
  51109. -mvprog="${MVPROG-mv}"
  51110. -cpprog="${CPPROG-cp}"
  51111. -chmodprog="${CHMODPROG-chmod}"
  51112. -chownprog="${CHOWNPROG-chown}"
  51113. -chgrpprog="${CHGRPPROG-chgrp}"
  51114. -stripprog="${STRIPPROG-strip}"
  51115. -rmprog="${RMPROG-rm}"
  51116. -mkdirprog="${MKDIRPROG-mkdir}"
  51117. +chgrpprog=${CHGRPPROG-chgrp}
  51118. +chmodprog=${CHMODPROG-chmod}
  51119. +chownprog=${CHOWNPROG-chown}
  51120. +cmpprog=${CMPPROG-cmp}
  51121. +cpprog=${CPPROG-cp}
  51122. +mkdirprog=${MKDIRPROG-mkdir}
  51123. +mvprog=${MVPROG-mv}
  51124. +rmprog=${RMPROG-rm}
  51125. +stripprog=${STRIPPROG-strip}
  51126. +
  51127. +posix_glob='?'
  51128. +initialize_posix_glob='
  51129. + test "$posix_glob" != "?" || {
  51130. + if (set -f) 2>/dev/null; then
  51131. + posix_glob=
  51132. + else
  51133. + posix_glob=:
  51134. + fi
  51135. + }
  51136. +'
  51137. +
  51138. +posix_mkdir=
  51139. +
  51140. +# Desired mode of installed file.
  51141. +mode=0755
  51142. -chmodcmd="$chmodprog 0755"
  51143. -chowncmd=
  51144. chgrpcmd=
  51145. -stripcmd=
  51146. +chmodcmd=$chmodprog
  51147. +chowncmd=
  51148. +mvcmd=$mvprog
  51149. rmcmd="$rmprog -f"
  51150. -mvcmd="$mvprog"
  51151. +stripcmd=
  51152. +
  51153. src=
  51154. dst=
  51155. dir_arg=
  51156. -dstarg=
  51157. +dst_arg=
  51158. +
  51159. +copy_on_change=false
  51160. no_target_directory=
  51161. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  51162. +usage="\
  51163. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  51164. or: $0 [OPTION]... SRCFILES... DIRECTORY
  51165. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  51166. or: $0 [OPTION]... -d DIRECTORIES...
  51167. @@ -80,81 +110,86 @@
  51168. In the 4th, create DIRECTORIES.
  51169. Options:
  51170. --c (ignored)
  51171. --d create directories instead of installing files.
  51172. --g GROUP $chgrpprog installed files to GROUP.
  51173. --m MODE $chmodprog installed files to MODE.
  51174. --o USER $chownprog installed files to USER.
  51175. --s $stripprog installed files.
  51176. --t DIRECTORY install into DIRECTORY.
  51177. --T report an error if DSTFILE is a directory.
  51178. ---help display this help and exit.
  51179. ---version display version info and exit.
  51180. + --help display this help and exit.
  51181. + --version display version info and exit.
  51182. +
  51183. + -c (ignored)
  51184. + -C install only if different (preserve the last data modification time)
  51185. + -d create directories instead of installing files.
  51186. + -g GROUP $chgrpprog installed files to GROUP.
  51187. + -m MODE $chmodprog installed files to MODE.
  51188. + -o USER $chownprog installed files to USER.
  51189. + -s $stripprog installed files.
  51190. + -t DIRECTORY install into DIRECTORY.
  51191. + -T report an error if DSTFILE is a directory.
  51192. Environment variables override the default commands:
  51193. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  51194. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  51195. + RMPROG STRIPPROG
  51196. "
  51197. -while test -n "$1"; do
  51198. +while test $# -ne 0; do
  51199. case $1 in
  51200. - -c) shift
  51201. - continue;;
  51202. + -c) ;;
  51203. +
  51204. + -C) copy_on_change=true;;
  51205. - -d) dir_arg=true
  51206. - shift
  51207. - continue;;
  51208. + -d) dir_arg=true;;
  51209. -g) chgrpcmd="$chgrpprog $2"
  51210. - shift
  51211. - shift
  51212. - continue;;
  51213. -
  51214. - --help) echo "$usage"; exit 0;;
  51215. -
  51216. - -m) chmodcmd="$chmodprog $2"
  51217. - shift
  51218. - shift
  51219. - continue;;
  51220. + shift;;
  51221. +
  51222. + --help) echo "$usage"; exit $?;;
  51223. +
  51224. + -m) mode=$2
  51225. + case $mode in
  51226. + *' '* | *' '* | *'
  51227. +'* | *'*'* | *'?'* | *'['*)
  51228. + echo "$0: invalid mode: $mode" >&2
  51229. + exit 1;;
  51230. + esac
  51231. + shift;;
  51232. -o) chowncmd="$chownprog $2"
  51233. - shift
  51234. - shift
  51235. - continue;;
  51236. -
  51237. - -s) stripcmd=$stripprog
  51238. - shift
  51239. - continue;;
  51240. -
  51241. - -t) dstarg=$2
  51242. - shift
  51243. - shift
  51244. - continue;;
  51245. -
  51246. - -T) no_target_directory=true
  51247. - shift
  51248. - continue;;
  51249. -
  51250. - --version) echo "$0 $scriptversion"; exit 0;;
  51251. -
  51252. - *) # When -d is used, all remaining arguments are directories to create.
  51253. - # When -t is used, the destination is already specified.
  51254. - test -n "$dir_arg$dstarg" && break
  51255. - # Otherwise, the last argument is the destination. Remove it from $@.
  51256. - for arg
  51257. - do
  51258. - if test -n "$dstarg"; then
  51259. - # $@ is not empty: it contains at least $arg.
  51260. - set fnord "$@" "$dstarg"
  51261. - shift # fnord
  51262. - fi
  51263. - shift # arg
  51264. - dstarg=$arg
  51265. - done
  51266. + shift;;
  51267. +
  51268. + -s) stripcmd=$stripprog;;
  51269. +
  51270. + -t) dst_arg=$2
  51271. + shift;;
  51272. +
  51273. + -T) no_target_directory=true;;
  51274. +
  51275. + --version) echo "$0 $scriptversion"; exit $?;;
  51276. +
  51277. + --) shift
  51278. break;;
  51279. +
  51280. + -*) echo "$0: invalid option: $1" >&2
  51281. + exit 1;;
  51282. +
  51283. + *) break;;
  51284. esac
  51285. + shift
  51286. done
  51287. -if test -z "$1"; then
  51288. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  51289. + # When -d is used, all remaining arguments are directories to create.
  51290. + # When -t is used, the destination is already specified.
  51291. + # Otherwise, the last argument is the destination. Remove it from $@.
  51292. + for arg
  51293. + do
  51294. + if test -n "$dst_arg"; then
  51295. + # $@ is not empty: it contains at least $arg.
  51296. + set fnord "$@" "$dst_arg"
  51297. + shift # fnord
  51298. + fi
  51299. + shift # arg
  51300. + dst_arg=$arg
  51301. + done
  51302. +fi
  51303. +
  51304. +if test $# -eq 0; then
  51305. if test -z "$dir_arg"; then
  51306. echo "$0: no input file specified." >&2
  51307. exit 1
  51308. @@ -164,24 +199,47 @@
  51309. exit 0
  51310. fi
  51311. +if test -z "$dir_arg"; then
  51312. + trap '(exit $?); exit' 1 2 13 15
  51313. +
  51314. + # Set umask so as not to create temps with too-generous modes.
  51315. + # However, 'strip' requires both read and write access to temps.
  51316. + case $mode in
  51317. + # Optimize common cases.
  51318. + *644) cp_umask=133;;
  51319. + *755) cp_umask=22;;
  51320. +
  51321. + *[0-7])
  51322. + if test -z "$stripcmd"; then
  51323. + u_plus_rw=
  51324. + else
  51325. + u_plus_rw='% 200'
  51326. + fi
  51327. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  51328. + *)
  51329. + if test -z "$stripcmd"; then
  51330. + u_plus_rw=
  51331. + else
  51332. + u_plus_rw=,u+rw
  51333. + fi
  51334. + cp_umask=$mode$u_plus_rw;;
  51335. + esac
  51336. +fi
  51337. +
  51338. for src
  51339. do
  51340. # Protect names starting with `-'.
  51341. case $src in
  51342. - -*) src=./$src ;;
  51343. + -*) src=./$src;;
  51344. esac
  51345. if test -n "$dir_arg"; then
  51346. dst=$src
  51347. - src=
  51348. -
  51349. - if test -d "$dst"; then
  51350. - mkdircmd=:
  51351. - chmodcmd=
  51352. - else
  51353. - mkdircmd=$mkdirprog
  51354. - fi
  51355. + dstdir=$dst
  51356. + test -d "$dstdir"
  51357. + dstdir_status=$?
  51358. else
  51359. +
  51360. # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  51361. # might cause directories to be created, which would be especially bad
  51362. # if $src (and thus $dsttmp) contains '*'.
  51363. @@ -190,71 +248,199 @@
  51364. exit 1
  51365. fi
  51366. - if test -z "$dstarg"; then
  51367. + if test -z "$dst_arg"; then
  51368. echo "$0: no destination specified." >&2
  51369. exit 1
  51370. fi
  51371. - dst=$dstarg
  51372. + dst=$dst_arg
  51373. # Protect names starting with `-'.
  51374. case $dst in
  51375. - -*) dst=./$dst ;;
  51376. + -*) dst=./$dst;;
  51377. esac
  51378. # If destination is a directory, append the input filename; won't work
  51379. # if double slashes aren't ignored.
  51380. if test -d "$dst"; then
  51381. if test -n "$no_target_directory"; then
  51382. - echo "$0: $dstarg: Is a directory" >&2
  51383. + echo "$0: $dst_arg: Is a directory" >&2
  51384. exit 1
  51385. fi
  51386. - dst=$dst/`basename "$src"`
  51387. + dstdir=$dst
  51388. + dst=$dstdir/`basename "$src"`
  51389. + dstdir_status=0
  51390. + else
  51391. + # Prefer dirname, but fall back on a substitute if dirname fails.
  51392. + dstdir=`
  51393. + (dirname "$dst") 2>/dev/null ||
  51394. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51395. + X"$dst" : 'X\(//\)[^/]' \| \
  51396. + X"$dst" : 'X\(//\)$' \| \
  51397. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  51398. + echo X"$dst" |
  51399. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51400. + s//\1/
  51401. + q
  51402. + }
  51403. + /^X\(\/\/\)[^/].*/{
  51404. + s//\1/
  51405. + q
  51406. + }
  51407. + /^X\(\/\/\)$/{
  51408. + s//\1/
  51409. + q
  51410. + }
  51411. + /^X\(\/\).*/{
  51412. + s//\1/
  51413. + q
  51414. + }
  51415. + s/.*/./; q'
  51416. + `
  51417. +
  51418. + test -d "$dstdir"
  51419. + dstdir_status=$?
  51420. fi
  51421. fi
  51422. - # This sed command emulates the dirname command.
  51423. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  51424. + obsolete_mkdir_used=false
  51425. - # Make sure that the destination directory exists.
  51426. -
  51427. - # Skip lots of stat calls in the usual case.
  51428. - if test ! -d "$dstdir"; then
  51429. - defaultIFS='
  51430. - '
  51431. - IFS="${IFS-$defaultIFS}"
  51432. -
  51433. - oIFS=$IFS
  51434. - # Some sh's can't handle IFS=/ for some reason.
  51435. - IFS='%'
  51436. - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  51437. - shift
  51438. - IFS=$oIFS
  51439. + if test $dstdir_status != 0; then
  51440. + case $posix_mkdir in
  51441. + '')
  51442. + # Create intermediate dirs using mode 755 as modified by the umask.
  51443. + # This is like FreeBSD 'install' as of 1997-10-28.
  51444. + umask=`umask`
  51445. + case $stripcmd.$umask in
  51446. + # Optimize common cases.
  51447. + *[2367][2367]) mkdir_umask=$umask;;
  51448. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  51449. +
  51450. + *[0-7])
  51451. + mkdir_umask=`expr $umask + 22 \
  51452. + - $umask % 100 % 40 + $umask % 20 \
  51453. + - $umask % 10 % 4 + $umask % 2
  51454. + `;;
  51455. + *) mkdir_umask=$umask,go-w;;
  51456. + esac
  51457. +
  51458. + # With -d, create the new directory with the user-specified mode.
  51459. + # Otherwise, rely on $mkdir_umask.
  51460. + if test -n "$dir_arg"; then
  51461. + mkdir_mode=-m$mode
  51462. + else
  51463. + mkdir_mode=
  51464. + fi
  51465. +
  51466. + posix_mkdir=false
  51467. + case $umask in
  51468. + *[123567][0-7][0-7])
  51469. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  51470. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  51471. + ;;
  51472. + *)
  51473. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  51474. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  51475. +
  51476. + if (umask $mkdir_umask &&
  51477. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  51478. + then
  51479. + if test -z "$dir_arg" || {
  51480. + # Check for POSIX incompatibilities with -m.
  51481. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  51482. + # other-writeable bit of parent directory when it shouldn't.
  51483. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  51484. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  51485. + case $ls_ld_tmpdir in
  51486. + d????-?r-*) different_mode=700;;
  51487. + d????-?--*) different_mode=755;;
  51488. + *) false;;
  51489. + esac &&
  51490. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  51491. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  51492. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  51493. + }
  51494. + }
  51495. + then posix_mkdir=:
  51496. + fi
  51497. + rmdir "$tmpdir/d" "$tmpdir"
  51498. + else
  51499. + # Remove any dirs left behind by ancient mkdir implementations.
  51500. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  51501. + fi
  51502. + trap '' 0;;
  51503. + esac;;
  51504. + esac
  51505. - pathcomp=
  51506. + if
  51507. + $posix_mkdir && (
  51508. + umask $mkdir_umask &&
  51509. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  51510. + )
  51511. + then :
  51512. + else
  51513. - while test $# -ne 0 ; do
  51514. - pathcomp=$pathcomp$1
  51515. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  51516. + # or it failed possibly due to a race condition. Create the
  51517. + # directory the slow way, step by step, checking for races as we go.
  51518. +
  51519. + case $dstdir in
  51520. + /*) prefix='/';;
  51521. + -*) prefix='./';;
  51522. + *) prefix='';;
  51523. + esac
  51524. +
  51525. + eval "$initialize_posix_glob"
  51526. +
  51527. + oIFS=$IFS
  51528. + IFS=/
  51529. + $posix_glob set -f
  51530. + set fnord $dstdir
  51531. shift
  51532. - if test ! -d "$pathcomp"; then
  51533. - $mkdirprog "$pathcomp"
  51534. - # mkdir can fail with a `File exist' error in case several
  51535. - # install-sh are creating the directory concurrently. This
  51536. - # is OK.
  51537. - test -d "$pathcomp" || exit
  51538. + $posix_glob set +f
  51539. + IFS=$oIFS
  51540. +
  51541. + prefixes=
  51542. +
  51543. + for d
  51544. + do
  51545. + test -z "$d" && continue
  51546. +
  51547. + prefix=$prefix$d
  51548. + if test -d "$prefix"; then
  51549. + prefixes=
  51550. + else
  51551. + if $posix_mkdir; then
  51552. + (umask=$mkdir_umask &&
  51553. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  51554. + # Don't fail if two instances are running concurrently.
  51555. + test -d "$prefix" || exit 1
  51556. + else
  51557. + case $prefix in
  51558. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  51559. + *) qprefix=$prefix;;
  51560. + esac
  51561. + prefixes="$prefixes '$qprefix'"
  51562. + fi
  51563. + fi
  51564. + prefix=$prefix/
  51565. + done
  51566. +
  51567. + if test -n "$prefixes"; then
  51568. + # Don't fail if two instances are running concurrently.
  51569. + (umask $mkdir_umask &&
  51570. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  51571. + test -d "$dstdir" || exit 1
  51572. + obsolete_mkdir_used=true
  51573. fi
  51574. - pathcomp=$pathcomp/
  51575. - done
  51576. + fi
  51577. fi
  51578. if test -n "$dir_arg"; then
  51579. - $doit $mkdircmd "$dst" \
  51580. - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  51581. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  51582. - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  51583. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  51584. -
  51585. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  51586. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  51587. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  51588. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  51589. else
  51590. - dstfile=`basename "$dst"`
  51591. # Make a couple of temp file names in the proper directory.
  51592. dsttmp=$dstdir/_inst.$$_
  51593. @@ -262,10 +448,9 @@
  51594. # Trap to clean up those temp files at exit.
  51595. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  51596. - trap '(exit $?); exit' 1 2 13 15
  51597. # Copy the file name to the temp name.
  51598. - $doit $cpprog "$src" "$dsttmp" &&
  51599. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  51600. # and set any options; do chmod last to preserve setuid bits.
  51601. #
  51602. @@ -273,51 +458,63 @@
  51603. # ignore errors from any of these, just make sure not to ignore
  51604. # errors from the above "$doit $cpprog $src $dsttmp" command.
  51605. #
  51606. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  51607. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  51608. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  51609. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  51610. -
  51611. - # Now rename the file to the real destination.
  51612. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  51613. - || {
  51614. - # The rename failed, perhaps because mv can't rename something else
  51615. - # to itself, or perhaps because mv is so ancient that it does not
  51616. - # support -f.
  51617. -
  51618. - # Now remove or move aside any old file at destination location.
  51619. - # We try this two ways since rm can't unlink itself on some
  51620. - # systems and the destination file might be busy for other
  51621. - # reasons. In this case, the final cleanup might fail but the new
  51622. - # file should still install successfully.
  51623. - {
  51624. - if test -f "$dstdir/$dstfile"; then
  51625. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  51626. - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  51627. - || {
  51628. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  51629. - (exit 1); exit 1
  51630. - }
  51631. - else
  51632. - :
  51633. - fi
  51634. - } &&
  51635. -
  51636. - # Now rename the file to the real destination.
  51637. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  51638. - }
  51639. - }
  51640. - fi || { (exit 1); exit 1; }
  51641. -done
  51642. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  51643. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  51644. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  51645. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  51646. +
  51647. + # If -C, don't bother to copy if it wouldn't change the file.
  51648. + if $copy_on_change &&
  51649. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  51650. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  51651. +
  51652. + eval "$initialize_posix_glob" &&
  51653. + $posix_glob set -f &&
  51654. + set X $old && old=:$2:$4:$5:$6 &&
  51655. + set X $new && new=:$2:$4:$5:$6 &&
  51656. + $posix_glob set +f &&
  51657. +
  51658. + test "$old" = "$new" &&
  51659. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  51660. + then
  51661. + rm -f "$dsttmp"
  51662. + else
  51663. + # Rename the file to the real destination.
  51664. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  51665. -# The final little trick to "correctly" pass the exit status to the exit trap.
  51666. -{
  51667. - (exit 0); exit 0
  51668. -}
  51669. + # The rename failed, perhaps because mv can't rename something else
  51670. + # to itself, or perhaps because mv is so ancient that it does not
  51671. + # support -f.
  51672. + {
  51673. + # Now remove or move aside any old file at destination location.
  51674. + # We try this two ways since rm can't unlink itself on some
  51675. + # systems and the destination file might be busy for other
  51676. + # reasons. In this case, the final cleanup might fail but the new
  51677. + # file should still install successfully.
  51678. + {
  51679. + test ! -f "$dst" ||
  51680. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  51681. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  51682. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  51683. + } ||
  51684. + { echo "$0: cannot unlink or rename $dst" >&2
  51685. + (exit 1); exit 1
  51686. + }
  51687. + } &&
  51688. +
  51689. + # Now rename the file to the real destination.
  51690. + $doit $mvcmd "$dsttmp" "$dst"
  51691. + }
  51692. + fi || exit 1
  51693. +
  51694. + trap '' 0
  51695. + fi
  51696. +done
  51697. # Local variables:
  51698. # eval: (add-hook 'write-file-hooks 'time-stamp)
  51699. # time-stamp-start: "scriptversion="
  51700. # time-stamp-format: "%:y-%02m-%02d.%02H"
  51701. -# time-stamp-end: "$"
  51702. +# time-stamp-time-zone: "UTC"
  51703. +# time-stamp-end: "; # UTC"
  51704. # End:
  51705. diff -Nur audiofile-0.2.7.orig/libaudiofile/Makefile.in audiofile-0.2.7/libaudiofile/Makefile.in
  51706. --- audiofile-0.2.7.orig/libaudiofile/Makefile.in 2010-03-22 06:45:48.000000000 +0100
  51707. +++ audiofile-0.2.7/libaudiofile/Makefile.in 2011-02-24 20:00:34.464801739 +0100
  51708. @@ -1,8 +1,9 @@
  51709. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  51710. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  51711. # @configure_input@
  51712. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  51713. -# 2003, 2004 Free Software Foundation, Inc.
  51714. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  51715. +# Inc.
  51716. # This Makefile.in is free software; the Free Software Foundation
  51717. # gives unlimited permission to copy and/or distribute it,
  51718. # with or without modifications, as long as this notice is preserved.
  51719. @@ -15,17 +16,12 @@
  51720. @SET_MAKE@
  51721. -SOURCES = $(libaudiofile_la_SOURCES)
  51722. -
  51723. -srcdir = @srcdir@
  51724. -top_srcdir = @top_srcdir@
  51725. VPATH = @srcdir@
  51726. pkgdatadir = $(datadir)/@PACKAGE@
  51727. -pkglibdir = $(libdir)/@PACKAGE@
  51728. pkgincludedir = $(includedir)/@PACKAGE@
  51729. -top_builddir = ..
  51730. +pkglibdir = $(libdir)/@PACKAGE@
  51731. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  51732. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  51733. -INSTALL = @INSTALL@
  51734. install_sh_DATA = $(install_sh) -c -m 644
  51735. install_sh_PROGRAM = $(install_sh) -c
  51736. install_sh_SCRIPT = $(install_sh) -c
  51737. @@ -49,14 +45,29 @@
  51738. mkinstalldirs = $(install_sh) -d
  51739. CONFIG_HEADER = $(top_builddir)/config.h
  51740. CONFIG_CLEAN_FILES =
  51741. +CONFIG_CLEAN_VPATH_FILES =
  51742. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  51743. am__vpath_adj = case $$p in \
  51744. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  51745. *) f=$$p;; \
  51746. esac;
  51747. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  51748. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  51749. +am__install_max = 40
  51750. +am__nobase_strip_setup = \
  51751. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  51752. +am__nobase_strip = \
  51753. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  51754. +am__nobase_list = $(am__nobase_strip_setup); \
  51755. + for p in $$list; do echo "$$p $$p"; done | \
  51756. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  51757. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  51758. + if (++n[$$2] == $(am__install_max)) \
  51759. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  51760. + END { for (dir in files) print dir, files[dir] }'
  51761. +am__base_list = \
  51762. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  51763. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  51764. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  51765. -libLTLIBRARIES_INSTALL = $(INSTALL)
  51766. LTLIBRARIES = $(lib_LTLIBRARIES)
  51767. libaudiofile_la_DEPENDENCIES = modules/libmodules.la
  51768. am_libaudiofile_la_OBJECTS = openclose.lo setup.lo format.lo data.lo \
  51769. @@ -67,34 +78,67 @@
  51770. wavewrite.lo ircam.lo ircamwrite.lo avr.lo avrwrite.lo iff.lo \
  51771. iffwrite.lo nist.lo nistwrite.lo g711.lo modules.lo
  51772. libaudiofile_la_OBJECTS = $(am_libaudiofile_la_OBJECTS)
  51773. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  51774. +libaudiofile_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  51775. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  51776. + $(libaudiofile_la_LDFLAGS) $(LDFLAGS) -o $@
  51777. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  51778. depcomp = $(SHELL) $(top_srcdir)/depcomp
  51779. am__depfiles_maybe = depfiles
  51780. +am__mv = mv -f
  51781. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  51782. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  51783. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  51784. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  51785. - $(AM_CFLAGS) $(CFLAGS)
  51786. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  51787. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  51788. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  51789. CCLD = $(CC)
  51790. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  51791. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  51792. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  51793. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  51794. + $(LDFLAGS) -o $@
  51795. SOURCES = $(libaudiofile_la_SOURCES)
  51796. DIST_SOURCES = $(libaudiofile_la_SOURCES)
  51797. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  51798. html-recursive info-recursive install-data-recursive \
  51799. - install-exec-recursive install-info-recursive \
  51800. - install-recursive installcheck-recursive installdirs-recursive \
  51801. - pdf-recursive ps-recursive uninstall-info-recursive \
  51802. - uninstall-recursive
  51803. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  51804. + install-dvi-recursive install-exec-recursive \
  51805. + install-html-recursive install-info-recursive \
  51806. + install-pdf-recursive install-ps-recursive install-recursive \
  51807. + installcheck-recursive installdirs-recursive pdf-recursive \
  51808. + ps-recursive uninstall-recursive
  51809. HEADERS = $(include_HEADERS)
  51810. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  51811. + distclean-recursive maintainer-clean-recursive
  51812. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  51813. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  51814. + distdir
  51815. ETAGS = etags
  51816. CTAGS = ctags
  51817. DIST_SUBDIRS = $(SUBDIRS)
  51818. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  51819. +am__relativize = \
  51820. + dir0=`pwd`; \
  51821. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  51822. + sed_rest='s,^[^/]*/*,,'; \
  51823. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  51824. + sed_butlast='s,/*[^/]*$$,,'; \
  51825. + while test -n "$$dir1"; do \
  51826. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  51827. + if test "$$first" != "."; then \
  51828. + if test "$$first" = ".."; then \
  51829. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  51830. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  51831. + else \
  51832. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  51833. + if test "$$first2" = "$$first"; then \
  51834. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  51835. + else \
  51836. + dir2="../$$dir2"; \
  51837. + fi; \
  51838. + dir0="$$dir0"/"$$first"; \
  51839. + fi; \
  51840. + fi; \
  51841. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  51842. + done; \
  51843. + reldir="$$dir2"
  51844. ACLOCAL = @ACLOCAL@
  51845. -AMDEP_FALSE = @AMDEP_FALSE@
  51846. -AMDEP_TRUE = @AMDEP_TRUE@
  51847. AMTAR = @AMTAR@
  51848. AR = @AR@
  51849. AS = @AS@
  51850. @@ -113,56 +157,61 @@
  51851. CFLAGS = @CFLAGS@
  51852. CPP = @CPP@
  51853. CPPFLAGS = @CPPFLAGS@
  51854. -CXX = @CXX@
  51855. -CXXCPP = @CXXCPP@
  51856. -CXXDEPMODE = @CXXDEPMODE@
  51857. -CXXFLAGS = @CXXFLAGS@
  51858. CYGPATH_W = @CYGPATH_W@
  51859. DEFS = @DEFS@
  51860. DEPDIR = @DEPDIR@
  51861. DLLTOOL = @DLLTOOL@
  51862. -ECHO = @ECHO@
  51863. +DSYMUTIL = @DSYMUTIL@
  51864. +DUMPBIN = @DUMPBIN@
  51865. ECHO_C = @ECHO_C@
  51866. ECHO_N = @ECHO_N@
  51867. ECHO_T = @ECHO_T@
  51868. EGREP = @EGREP@
  51869. EXEEXT = @EXEEXT@
  51870. -F77 = @F77@
  51871. -FFLAGS = @FFLAGS@
  51872. +FGREP = @FGREP@
  51873. GREP = @GREP@
  51874. +INSTALL = @INSTALL@
  51875. INSTALL_DATA = @INSTALL_DATA@
  51876. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  51877. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  51878. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  51879. +LD = @LD@
  51880. LDFLAGS = @LDFLAGS@
  51881. LIBOBJS = @LIBOBJS@
  51882. LIBS = @LIBS@
  51883. LIBTOOL = @LIBTOOL@
  51884. +LIPO = @LIPO@
  51885. LN_S = @LN_S@
  51886. LTLIBOBJS = @LTLIBOBJS@
  51887. MAKEINFO = @MAKEINFO@
  51888. +MKDIR_P = @MKDIR_P@
  51889. +NM = @NM@
  51890. +NMEDIT = @NMEDIT@
  51891. OBJDUMP = @OBJDUMP@
  51892. OBJEXT = @OBJEXT@
  51893. +OTOOL = @OTOOL@
  51894. +OTOOL64 = @OTOOL64@
  51895. PACKAGE = @PACKAGE@
  51896. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  51897. PACKAGE_NAME = @PACKAGE_NAME@
  51898. PACKAGE_STRING = @PACKAGE_STRING@
  51899. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  51900. +PACKAGE_URL = @PACKAGE_URL@
  51901. PACKAGE_VERSION = @PACKAGE_VERSION@
  51902. PATH_SEPARATOR = @PATH_SEPARATOR@
  51903. RANLIB = @RANLIB@
  51904. +SED = @SED@
  51905. SET_MAKE = @SET_MAKE@
  51906. SHELL = @SHELL@
  51907. STRIP = @STRIP@
  51908. TEST_BIN = @TEST_BIN@
  51909. VERSION = @VERSION@
  51910. +abs_builddir = @abs_builddir@
  51911. +abs_srcdir = @abs_srcdir@
  51912. +abs_top_builddir = @abs_top_builddir@
  51913. +abs_top_srcdir = @abs_top_srcdir@
  51914. ac_ct_CC = @ac_ct_CC@
  51915. -ac_ct_CXX = @ac_ct_CXX@
  51916. -ac_ct_F77 = @ac_ct_F77@
  51917. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  51918. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  51919. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  51920. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  51921. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  51922. am__include = @am__include@
  51923. am__leading_dot = @am__leading_dot@
  51924. am__quote = @am__quote@
  51925. @@ -174,6 +223,7 @@
  51926. build_cpu = @build_cpu@
  51927. build_os = @build_os@
  51928. build_vendor = @build_vendor@
  51929. +builddir = @builddir@
  51930. datadir = @datadir@
  51931. datarootdir = @datarootdir@
  51932. docdir = @docdir@
  51933. @@ -192,6 +242,7 @@
  51934. libexecdir = @libexecdir@
  51935. localedir = @localedir@
  51936. localstatedir = @localstatedir@
  51937. +lt_ECHO = @lt_ECHO@
  51938. mandir = @mandir@
  51939. mkdir_p = @mkdir_p@
  51940. oldincludedir = @oldincludedir@
  51941. @@ -201,8 +252,12 @@
  51942. psdir = @psdir@
  51943. sbindir = @sbindir@
  51944. sharedstatedir = @sharedstatedir@
  51945. +srcdir = @srcdir@
  51946. sysconfdir = @sysconfdir@
  51947. target_alias = @target_alias@
  51948. +top_build_prefix = @top_build_prefix@
  51949. +top_builddir = @top_builddir@
  51950. +top_srcdir = @top_srcdir@
  51951. SUBDIRS = modules
  51952. lib_LTLIBRARIES = libaudiofile.la
  51953. EXTRA_DIST = audiofile.exports
  51954. @@ -246,14 +301,14 @@
  51955. @for dep in $?; do \
  51956. case '$(am__configure_deps)' in \
  51957. *$$dep*) \
  51958. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  51959. - && exit 0; \
  51960. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  51961. + && { if test -f $@; then exit 0; else break; fi; }; \
  51962. exit 1;; \
  51963. esac; \
  51964. done; \
  51965. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libaudiofile/Makefile'; \
  51966. - cd $(top_srcdir) && \
  51967. - $(AUTOMAKE) --gnu libaudiofile/Makefile
  51968. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libaudiofile/Makefile'; \
  51969. + $(am__cd) $(top_srcdir) && \
  51970. + $(AUTOMAKE) --gnu libaudiofile/Makefile
  51971. .PRECIOUS: Makefile
  51972. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  51973. @case '$?' in \
  51974. @@ -271,23 +326,28 @@
  51975. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51976. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  51977. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51978. +$(am__aclocal_m4_deps):
  51979. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  51980. @$(NORMAL_INSTALL)
  51981. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  51982. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  51983. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  51984. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  51985. + list2=; for p in $$list; do \
  51986. if test -f $$p; then \
  51987. - f=$(am__strip_dir) \
  51988. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  51989. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  51990. + list2="$$list2 $$p"; \
  51991. else :; fi; \
  51992. - done
  51993. + done; \
  51994. + test -z "$$list2" || { \
  51995. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  51996. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  51997. + }
  51998. uninstall-libLTLIBRARIES:
  51999. @$(NORMAL_UNINSTALL)
  52000. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  52001. - p=$(am__strip_dir) \
  52002. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  52003. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  52004. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  52005. + for p in $$list; do \
  52006. + $(am__strip_dir) \
  52007. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  52008. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  52009. done
  52010. clean-libLTLIBRARIES:
  52011. @@ -299,7 +359,7 @@
  52012. rm -f "$${dir}/so_locations"; \
  52013. done
  52014. libaudiofile.la: $(libaudiofile_la_OBJECTS) $(libaudiofile_la_DEPENDENCIES)
  52015. - $(LINK) -rpath $(libdir) $(libaudiofile_la_LDFLAGS) $(libaudiofile_la_OBJECTS) $(libaudiofile_la_LIBADD) $(LIBS)
  52016. + $(libaudiofile_la_LINK) -rpath $(libdir) $(libaudiofile_la_OBJECTS) $(libaudiofile_la_LIBADD) $(LIBS)
  52017. mostlyclean-compile:
  52018. -rm -f *.$(OBJEXT)
  52019. @@ -347,22 +407,22 @@
  52020. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wavewrite.Plo@am__quote@
  52021. .c.o:
  52022. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  52023. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52024. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  52025. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  52026. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52027. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52028. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  52029. .c.obj:
  52030. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  52031. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52032. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  52033. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  52034. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52035. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52036. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  52037. .c.lo:
  52038. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  52039. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52040. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  52041. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  52042. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  52043. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52044. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  52045. @@ -372,27 +432,26 @@
  52046. clean-libtool:
  52047. -rm -rf .libs _libs
  52048. -
  52049. -distclean-libtool:
  52050. - -rm -f libtool
  52051. -uninstall-info-am:
  52052. install-includeHEADERS: $(include_HEADERS)
  52053. @$(NORMAL_INSTALL)
  52054. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  52055. - @list='$(include_HEADERS)'; for p in $$list; do \
  52056. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  52057. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  52058. + for p in $$list; do \
  52059. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  52060. - f=$(am__strip_dir) \
  52061. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  52062. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  52063. + echo "$$d$$p"; \
  52064. + done | $(am__base_list) | \
  52065. + while read files; do \
  52066. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  52067. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  52068. done
  52069. uninstall-includeHEADERS:
  52070. @$(NORMAL_UNINSTALL)
  52071. - @list='$(include_HEADERS)'; for p in $$list; do \
  52072. - f=$(am__strip_dir) \
  52073. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  52074. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  52075. - done
  52076. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  52077. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  52078. + test -n "$$files" || exit 0; \
  52079. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  52080. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  52081. # This directory's subdirectories are mostly independent; you can cd
  52082. # into them and run `make' without going through this Makefile.
  52083. @@ -401,7 +460,13 @@
  52084. # (which will cause the Makefiles to be regenerated when you run `make');
  52085. # (2) otherwise, pass the desired values on the `make' command line.
  52086. $(RECURSIVE_TARGETS):
  52087. - @set fnord $$MAKEFLAGS; amf=$$2; \
  52088. + @fail= failcom='exit 1'; \
  52089. + for f in x $$MAKEFLAGS; do \
  52090. + case $$f in \
  52091. + *=* | --[!k]*);; \
  52092. + *k*) failcom='fail=yes';; \
  52093. + esac; \
  52094. + done; \
  52095. dot_seen=no; \
  52096. target=`echo $@ | sed s/-recursive//`; \
  52097. list='$(SUBDIRS)'; for subdir in $$list; do \
  52098. @@ -412,16 +477,21 @@
  52099. else \
  52100. local_target="$$target"; \
  52101. fi; \
  52102. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52103. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  52104. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52105. + || eval $$failcom; \
  52106. done; \
  52107. if test "$$dot_seen" = "no"; then \
  52108. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  52109. fi; test -z "$$fail"
  52110. -mostlyclean-recursive clean-recursive distclean-recursive \
  52111. -maintainer-clean-recursive:
  52112. - @set fnord $$MAKEFLAGS; amf=$$2; \
  52113. +$(RECURSIVE_CLEAN_TARGETS):
  52114. + @fail= failcom='exit 1'; \
  52115. + for f in x $$MAKEFLAGS; do \
  52116. + case $$f in \
  52117. + *=* | --[!k]*);; \
  52118. + *k*) failcom='fail=yes';; \
  52119. + esac; \
  52120. + done; \
  52121. dot_seen=no; \
  52122. case "$@" in \
  52123. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  52124. @@ -441,16 +511,16 @@
  52125. else \
  52126. local_target="$$target"; \
  52127. fi; \
  52128. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52129. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  52130. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52131. + || eval $$failcom; \
  52132. done && test -z "$$fail"
  52133. tags-recursive:
  52134. list='$(SUBDIRS)'; for subdir in $$list; do \
  52135. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  52136. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  52137. done
  52138. ctags-recursive:
  52139. list='$(SUBDIRS)'; for subdir in $$list; do \
  52140. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  52141. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  52142. done
  52143. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  52144. @@ -458,14 +528,14 @@
  52145. unique=`for i in $$list; do \
  52146. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52147. done | \
  52148. - $(AWK) ' { files[$$0] = 1; } \
  52149. - END { for (i in files) print i; }'`; \
  52150. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52151. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52152. mkid -fID $$unique
  52153. tags: TAGS
  52154. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52155. $(TAGS_FILES) $(LISP)
  52156. - tags=; \
  52157. + set x; \
  52158. here=`pwd`; \
  52159. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  52160. include_option=--etags-include; \
  52161. @@ -477,81 +547,101 @@
  52162. list='$(SUBDIRS)'; for subdir in $$list; do \
  52163. if test "$$subdir" = .; then :; else \
  52164. test ! -f $$subdir/TAGS || \
  52165. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  52166. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  52167. fi; \
  52168. done; \
  52169. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52170. unique=`for i in $$list; do \
  52171. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52172. done | \
  52173. - $(AWK) ' { files[$$0] = 1; } \
  52174. - END { for (i in files) print i; }'`; \
  52175. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  52176. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52177. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52178. + shift; \
  52179. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  52180. test -n "$$unique" || unique=$$empty_fix; \
  52181. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52182. - $$tags $$unique; \
  52183. + if test $$# -gt 0; then \
  52184. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52185. + "$$@" $$unique; \
  52186. + else \
  52187. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52188. + $$unique; \
  52189. + fi; \
  52190. fi
  52191. ctags: CTAGS
  52192. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52193. $(TAGS_FILES) $(LISP)
  52194. - tags=; \
  52195. - here=`pwd`; \
  52196. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52197. unique=`for i in $$list; do \
  52198. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52199. done | \
  52200. - $(AWK) ' { files[$$0] = 1; } \
  52201. - END { for (i in files) print i; }'`; \
  52202. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  52203. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52204. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52205. + test -z "$(CTAGS_ARGS)$$unique" \
  52206. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  52207. - $$tags $$unique
  52208. + $$unique
  52209. GTAGS:
  52210. here=`$(am__cd) $(top_builddir) && pwd` \
  52211. - && cd $(top_srcdir) \
  52212. - && gtags -i $(GTAGS_ARGS) $$here
  52213. + && $(am__cd) $(top_srcdir) \
  52214. + && gtags -i $(GTAGS_ARGS) "$$here"
  52215. distclean-tags:
  52216. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  52217. distdir: $(DISTFILES)
  52218. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  52219. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  52220. - list='$(DISTFILES)'; for file in $$list; do \
  52221. - case $$file in \
  52222. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  52223. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  52224. - esac; \
  52225. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52226. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52227. + list='$(DISTFILES)'; \
  52228. + dist_files=`for file in $$list; do echo $$file; done | \
  52229. + sed -e "s|^$$srcdirstrip/||;t" \
  52230. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  52231. + case $$dist_files in \
  52232. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  52233. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  52234. + sort -u` ;; \
  52235. + esac; \
  52236. + for file in $$dist_files; do \
  52237. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  52238. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  52239. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  52240. - dir="/$$dir"; \
  52241. - $(mkdir_p) "$(distdir)$$dir"; \
  52242. - else \
  52243. - dir=''; \
  52244. - fi; \
  52245. if test -d $$d/$$file; then \
  52246. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  52247. + if test -d "$(distdir)/$$file"; then \
  52248. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52249. + fi; \
  52250. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  52251. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  52252. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  52253. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52254. fi; \
  52255. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  52256. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  52257. else \
  52258. - test -f $(distdir)/$$file \
  52259. - || cp -p $$d/$$file $(distdir)/$$file \
  52260. + test -f "$(distdir)/$$file" \
  52261. + || cp -p $$d/$$file "$(distdir)/$$file" \
  52262. || exit 1; \
  52263. fi; \
  52264. done
  52265. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52266. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52267. if test "$$subdir" = .; then :; else \
  52268. test -d "$(distdir)/$$subdir" \
  52269. - || $(mkdir_p) "$(distdir)/$$subdir" \
  52270. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  52271. || exit 1; \
  52272. - distdir=`$(am__cd) $(distdir) && pwd`; \
  52273. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  52274. - (cd $$subdir && \
  52275. + fi; \
  52276. + done
  52277. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52278. + if test "$$subdir" = .; then :; else \
  52279. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  52280. + $(am__relativize); \
  52281. + new_distdir=$$reldir; \
  52282. + dir1=$$subdir; dir2="$(top_distdir)"; \
  52283. + $(am__relativize); \
  52284. + new_top_distdir=$$reldir; \
  52285. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  52286. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  52287. + ($(am__cd) $$subdir && \
  52288. $(MAKE) $(AM_MAKEFLAGS) \
  52289. - top_distdir="$$top_distdir" \
  52290. - distdir="$$distdir/$$subdir" \
  52291. + top_distdir="$$new_top_distdir" \
  52292. + distdir="$$new_distdir" \
  52293. + am__remove_distdir=: \
  52294. + am__skip_length_check=: \
  52295. + am__skip_mode_fix=: \
  52296. distdir) \
  52297. || exit 1; \
  52298. fi; \
  52299. @@ -562,7 +652,7 @@
  52300. installdirs: installdirs-recursive
  52301. installdirs-am:
  52302. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  52303. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  52304. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  52305. done
  52306. install: install-recursive
  52307. install-exec: install-exec-recursive
  52308. @@ -584,6 +674,7 @@
  52309. distclean-generic:
  52310. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  52311. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  52312. maintainer-clean-generic:
  52313. @echo "This command is intended for maintainers to use"
  52314. @@ -597,7 +688,7 @@
  52315. -rm -rf ./$(DEPDIR)
  52316. -rm -f Makefile
  52317. distclean-am: clean-am distclean-compile distclean-generic \
  52318. - distclean-libtool distclean-tags
  52319. + distclean-tags
  52320. dvi: dvi-recursive
  52321. @@ -605,18 +696,38 @@
  52322. html: html-recursive
  52323. +html-am:
  52324. +
  52325. info: info-recursive
  52326. info-am:
  52327. install-data-am: install-includeHEADERS
  52328. +install-dvi: install-dvi-recursive
  52329. +
  52330. +install-dvi-am:
  52331. +
  52332. install-exec-am: install-libLTLIBRARIES
  52333. +install-html: install-html-recursive
  52334. +
  52335. +install-html-am:
  52336. +
  52337. install-info: install-info-recursive
  52338. +install-info-am:
  52339. +
  52340. install-man:
  52341. +install-pdf: install-pdf-recursive
  52342. +
  52343. +install-pdf-am:
  52344. +
  52345. +install-ps: install-ps-recursive
  52346. +
  52347. +install-ps-am:
  52348. +
  52349. installcheck-am:
  52350. maintainer-clean: maintainer-clean-recursive
  52351. @@ -637,27 +748,28 @@
  52352. ps-am:
  52353. -uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  52354. - uninstall-libLTLIBRARIES
  52355. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  52356. -uninstall-info: uninstall-info-recursive
  52357. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  52358. + install-am install-strip tags-recursive
  52359. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  52360. - clean clean-generic clean-libLTLIBRARIES clean-libtool \
  52361. - clean-recursive ctags ctags-recursive distclean \
  52362. - distclean-compile distclean-generic distclean-libtool \
  52363. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  52364. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  52365. + all all-am check check-am clean clean-generic \
  52366. + clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
  52367. + distclean distclean-compile distclean-generic \
  52368. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  52369. html-am info info-am install install-am install-data \
  52370. - install-data-am install-exec install-exec-am \
  52371. + install-data-am install-dvi install-dvi-am install-exec \
  52372. + install-exec-am install-html install-html-am \
  52373. install-includeHEADERS install-info install-info-am \
  52374. - install-libLTLIBRARIES install-man install-strip installcheck \
  52375. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  52376. + install-ps install-ps-am install-strip installcheck \
  52377. installcheck-am installdirs installdirs-am maintainer-clean \
  52378. - maintainer-clean-generic maintainer-clean-recursive \
  52379. - mostlyclean mostlyclean-compile mostlyclean-generic \
  52380. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  52381. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  52382. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  52383. tags tags-recursive uninstall uninstall-am \
  52384. - uninstall-includeHEADERS uninstall-info-am \
  52385. - uninstall-libLTLIBRARIES
  52386. + uninstall-includeHEADERS uninstall-libLTLIBRARIES
  52387. +
  52388. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  52389. # Otherwise a system limit (for SysV at least) may be exceeded.
  52390. diff -Nur audiofile-0.2.7.orig/libaudiofile/modules/Makefile.in audiofile-0.2.7/libaudiofile/modules/Makefile.in
  52391. --- audiofile-0.2.7.orig/libaudiofile/modules/Makefile.in 2010-03-22 06:45:49.000000000 +0100
  52392. +++ audiofile-0.2.7/libaudiofile/modules/Makefile.in 2011-02-24 20:00:34.524802663 +0100
  52393. @@ -1,8 +1,9 @@
  52394. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  52395. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  52396. # @configure_input@
  52397. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  52398. -# 2003, 2004 Free Software Foundation, Inc.
  52399. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  52400. +# Inc.
  52401. # This Makefile.in is free software; the Free Software Foundation
  52402. # gives unlimited permission to copy and/or distribute it,
  52403. # with or without modifications, as long as this notice is preserved.
  52404. @@ -14,17 +15,12 @@
  52405. @SET_MAKE@
  52406. -SOURCES = $(libmodules_la_SOURCES)
  52407. -
  52408. -srcdir = @srcdir@
  52409. -top_srcdir = @top_srcdir@
  52410. VPATH = @srcdir@
  52411. pkgdatadir = $(datadir)/@PACKAGE@
  52412. -pkglibdir = $(libdir)/@PACKAGE@
  52413. pkgincludedir = $(includedir)/@PACKAGE@
  52414. -top_builddir = ../..
  52415. +pkglibdir = $(libdir)/@PACKAGE@
  52416. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  52417. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  52418. -INSTALL = @INSTALL@
  52419. install_sh_DATA = $(install_sh) -c -m 644
  52420. install_sh_PROGRAM = $(install_sh) -c
  52421. install_sh_SCRIPT = $(install_sh) -c
  52422. @@ -47,30 +43,31 @@
  52423. mkinstalldirs = $(install_sh) -d
  52424. CONFIG_HEADER = $(top_builddir)/config.h
  52425. CONFIG_CLEAN_FILES =
  52426. +CONFIG_CLEAN_VPATH_FILES =
  52427. LTLIBRARIES = $(noinst_LTLIBRARIES)
  52428. libmodules_la_LIBADD =
  52429. am_libmodules_la_OBJECTS = g711.lo pcm.lo msadpcm.lo ima.lo adpcm.lo \
  52430. rebuffer.lo
  52431. libmodules_la_OBJECTS = $(am_libmodules_la_OBJECTS)
  52432. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  52433. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  52434. depcomp = $(SHELL) $(top_srcdir)/depcomp
  52435. am__depfiles_maybe = depfiles
  52436. +am__mv = mv -f
  52437. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  52438. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  52439. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  52440. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  52441. - $(AM_CFLAGS) $(CFLAGS)
  52442. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  52443. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  52444. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  52445. CCLD = $(CC)
  52446. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  52447. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  52448. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  52449. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  52450. + $(LDFLAGS) -o $@
  52451. SOURCES = $(libmodules_la_SOURCES)
  52452. DIST_SOURCES = $(libmodules_la_SOURCES)
  52453. ETAGS = etags
  52454. CTAGS = ctags
  52455. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  52456. ACLOCAL = @ACLOCAL@
  52457. -AMDEP_FALSE = @AMDEP_FALSE@
  52458. -AMDEP_TRUE = @AMDEP_TRUE@
  52459. AMTAR = @AMTAR@
  52460. AR = @AR@
  52461. AS = @AS@
  52462. @@ -89,56 +86,61 @@
  52463. CFLAGS = @CFLAGS@
  52464. CPP = @CPP@
  52465. CPPFLAGS = @CPPFLAGS@
  52466. -CXX = @CXX@
  52467. -CXXCPP = @CXXCPP@
  52468. -CXXDEPMODE = @CXXDEPMODE@
  52469. -CXXFLAGS = @CXXFLAGS@
  52470. CYGPATH_W = @CYGPATH_W@
  52471. DEFS = @DEFS@
  52472. DEPDIR = @DEPDIR@
  52473. DLLTOOL = @DLLTOOL@
  52474. -ECHO = @ECHO@
  52475. +DSYMUTIL = @DSYMUTIL@
  52476. +DUMPBIN = @DUMPBIN@
  52477. ECHO_C = @ECHO_C@
  52478. ECHO_N = @ECHO_N@
  52479. ECHO_T = @ECHO_T@
  52480. EGREP = @EGREP@
  52481. EXEEXT = @EXEEXT@
  52482. -F77 = @F77@
  52483. -FFLAGS = @FFLAGS@
  52484. +FGREP = @FGREP@
  52485. GREP = @GREP@
  52486. +INSTALL = @INSTALL@
  52487. INSTALL_DATA = @INSTALL_DATA@
  52488. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  52489. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  52490. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  52491. +LD = @LD@
  52492. LDFLAGS = @LDFLAGS@
  52493. LIBOBJS = @LIBOBJS@
  52494. LIBS = @LIBS@
  52495. LIBTOOL = @LIBTOOL@
  52496. +LIPO = @LIPO@
  52497. LN_S = @LN_S@
  52498. LTLIBOBJS = @LTLIBOBJS@
  52499. MAKEINFO = @MAKEINFO@
  52500. +MKDIR_P = @MKDIR_P@
  52501. +NM = @NM@
  52502. +NMEDIT = @NMEDIT@
  52503. OBJDUMP = @OBJDUMP@
  52504. OBJEXT = @OBJEXT@
  52505. +OTOOL = @OTOOL@
  52506. +OTOOL64 = @OTOOL64@
  52507. PACKAGE = @PACKAGE@
  52508. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  52509. PACKAGE_NAME = @PACKAGE_NAME@
  52510. PACKAGE_STRING = @PACKAGE_STRING@
  52511. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  52512. +PACKAGE_URL = @PACKAGE_URL@
  52513. PACKAGE_VERSION = @PACKAGE_VERSION@
  52514. PATH_SEPARATOR = @PATH_SEPARATOR@
  52515. RANLIB = @RANLIB@
  52516. +SED = @SED@
  52517. SET_MAKE = @SET_MAKE@
  52518. SHELL = @SHELL@
  52519. STRIP = @STRIP@
  52520. TEST_BIN = @TEST_BIN@
  52521. VERSION = @VERSION@
  52522. +abs_builddir = @abs_builddir@
  52523. +abs_srcdir = @abs_srcdir@
  52524. +abs_top_builddir = @abs_top_builddir@
  52525. +abs_top_srcdir = @abs_top_srcdir@
  52526. ac_ct_CC = @ac_ct_CC@
  52527. -ac_ct_CXX = @ac_ct_CXX@
  52528. -ac_ct_F77 = @ac_ct_F77@
  52529. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  52530. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  52531. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  52532. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  52533. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  52534. am__include = @am__include@
  52535. am__leading_dot = @am__leading_dot@
  52536. am__quote = @am__quote@
  52537. @@ -150,6 +152,7 @@
  52538. build_cpu = @build_cpu@
  52539. build_os = @build_os@
  52540. build_vendor = @build_vendor@
  52541. +builddir = @builddir@
  52542. datadir = @datadir@
  52543. datarootdir = @datarootdir@
  52544. docdir = @docdir@
  52545. @@ -168,6 +171,7 @@
  52546. libexecdir = @libexecdir@
  52547. localedir = @localedir@
  52548. localstatedir = @localstatedir@
  52549. +lt_ECHO = @lt_ECHO@
  52550. mandir = @mandir@
  52551. mkdir_p = @mkdir_p@
  52552. oldincludedir = @oldincludedir@
  52553. @@ -177,8 +181,12 @@
  52554. psdir = @psdir@
  52555. sbindir = @sbindir@
  52556. sharedstatedir = @sharedstatedir@
  52557. +srcdir = @srcdir@
  52558. sysconfdir = @sysconfdir@
  52559. target_alias = @target_alias@
  52560. +top_build_prefix = @top_build_prefix@
  52561. +top_builddir = @top_builddir@
  52562. +top_srcdir = @top_srcdir@
  52563. noinst_LTLIBRARIES = libmodules.la
  52564. INCLUDES = -I$(srcdir)/..
  52565. libmodules_la_SOURCES = \
  52566. @@ -204,14 +212,14 @@
  52567. @for dep in $?; do \
  52568. case '$(am__configure_deps)' in \
  52569. *$$dep*) \
  52570. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  52571. - && exit 0; \
  52572. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  52573. + && { if test -f $@; then exit 0; else break; fi; }; \
  52574. exit 1;; \
  52575. esac; \
  52576. done; \
  52577. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libaudiofile/modules/Makefile'; \
  52578. - cd $(top_srcdir) && \
  52579. - $(AUTOMAKE) --gnu libaudiofile/modules/Makefile
  52580. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libaudiofile/modules/Makefile'; \
  52581. + $(am__cd) $(top_srcdir) && \
  52582. + $(AUTOMAKE) --gnu libaudiofile/modules/Makefile
  52583. .PRECIOUS: Makefile
  52584. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  52585. @case '$?' in \
  52586. @@ -229,6 +237,7 @@
  52587. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52588. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  52589. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52590. +$(am__aclocal_m4_deps):
  52591. clean-noinstLTLIBRARIES:
  52592. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  52593. @@ -239,7 +248,7 @@
  52594. rm -f "$${dir}/so_locations"; \
  52595. done
  52596. libmodules.la: $(libmodules_la_OBJECTS) $(libmodules_la_DEPENDENCIES)
  52597. - $(LINK) $(libmodules_la_LDFLAGS) $(libmodules_la_OBJECTS) $(libmodules_la_LIBADD) $(LIBS)
  52598. + $(LINK) $(libmodules_la_OBJECTS) $(libmodules_la_LIBADD) $(LIBS)
  52599. mostlyclean-compile:
  52600. -rm -f *.$(OBJEXT)
  52601. @@ -255,22 +264,22 @@
  52602. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rebuffer.Plo@am__quote@
  52603. .c.o:
  52604. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  52605. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52606. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  52607. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  52608. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52609. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52610. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  52611. .c.obj:
  52612. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  52613. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52614. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  52615. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  52616. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52617. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52618. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  52619. .c.lo:
  52620. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  52621. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  52622. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  52623. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  52624. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  52625. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52626. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  52627. @@ -281,82 +290,85 @@
  52628. clean-libtool:
  52629. -rm -rf .libs _libs
  52630. -distclean-libtool:
  52631. - -rm -f libtool
  52632. -uninstall-info-am:
  52633. -
  52634. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  52635. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52636. unique=`for i in $$list; do \
  52637. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52638. done | \
  52639. - $(AWK) ' { files[$$0] = 1; } \
  52640. - END { for (i in files) print i; }'`; \
  52641. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52642. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52643. mkid -fID $$unique
  52644. tags: TAGS
  52645. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52646. $(TAGS_FILES) $(LISP)
  52647. - tags=; \
  52648. + set x; \
  52649. here=`pwd`; \
  52650. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52651. unique=`for i in $$list; do \
  52652. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52653. done | \
  52654. - $(AWK) ' { files[$$0] = 1; } \
  52655. - END { for (i in files) print i; }'`; \
  52656. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  52657. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52658. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52659. + shift; \
  52660. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  52661. test -n "$$unique" || unique=$$empty_fix; \
  52662. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52663. - $$tags $$unique; \
  52664. + if test $$# -gt 0; then \
  52665. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52666. + "$$@" $$unique; \
  52667. + else \
  52668. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52669. + $$unique; \
  52670. + fi; \
  52671. fi
  52672. ctags: CTAGS
  52673. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52674. $(TAGS_FILES) $(LISP)
  52675. - tags=; \
  52676. - here=`pwd`; \
  52677. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52678. unique=`for i in $$list; do \
  52679. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52680. done | \
  52681. - $(AWK) ' { files[$$0] = 1; } \
  52682. - END { for (i in files) print i; }'`; \
  52683. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  52684. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52685. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52686. + test -z "$(CTAGS_ARGS)$$unique" \
  52687. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  52688. - $$tags $$unique
  52689. + $$unique
  52690. GTAGS:
  52691. here=`$(am__cd) $(top_builddir) && pwd` \
  52692. - && cd $(top_srcdir) \
  52693. - && gtags -i $(GTAGS_ARGS) $$here
  52694. + && $(am__cd) $(top_srcdir) \
  52695. + && gtags -i $(GTAGS_ARGS) "$$here"
  52696. distclean-tags:
  52697. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  52698. distdir: $(DISTFILES)
  52699. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  52700. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  52701. - list='$(DISTFILES)'; for file in $$list; do \
  52702. - case $$file in \
  52703. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  52704. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  52705. - esac; \
  52706. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52707. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52708. + list='$(DISTFILES)'; \
  52709. + dist_files=`for file in $$list; do echo $$file; done | \
  52710. + sed -e "s|^$$srcdirstrip/||;t" \
  52711. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  52712. + case $$dist_files in \
  52713. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  52714. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  52715. + sort -u` ;; \
  52716. + esac; \
  52717. + for file in $$dist_files; do \
  52718. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  52719. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  52720. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  52721. - dir="/$$dir"; \
  52722. - $(mkdir_p) "$(distdir)$$dir"; \
  52723. - else \
  52724. - dir=''; \
  52725. - fi; \
  52726. if test -d $$d/$$file; then \
  52727. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  52728. + if test -d "$(distdir)/$$file"; then \
  52729. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52730. + fi; \
  52731. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  52732. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  52733. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  52734. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52735. fi; \
  52736. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  52737. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  52738. else \
  52739. - test -f $(distdir)/$$file \
  52740. - || cp -p $$d/$$file $(distdir)/$$file \
  52741. + test -f "$(distdir)/$$file" \
  52742. + || cp -p $$d/$$file "$(distdir)/$$file" \
  52743. || exit 1; \
  52744. fi; \
  52745. done
  52746. @@ -384,6 +396,7 @@
  52747. distclean-generic:
  52748. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  52749. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  52750. maintainer-clean-generic:
  52751. @echo "This command is intended for maintainers to use"
  52752. @@ -397,7 +410,7 @@
  52753. -rm -rf ./$(DEPDIR)
  52754. -rm -f Makefile
  52755. distclean-am: clean-am distclean-compile distclean-generic \
  52756. - distclean-libtool distclean-tags
  52757. + distclean-tags
  52758. dvi: dvi-am
  52759. @@ -405,18 +418,38 @@
  52760. html: html-am
  52761. +html-am:
  52762. +
  52763. info: info-am
  52764. info-am:
  52765. install-data-am:
  52766. +install-dvi: install-dvi-am
  52767. +
  52768. +install-dvi-am:
  52769. +
  52770. install-exec-am:
  52771. +install-html: install-html-am
  52772. +
  52773. +install-html-am:
  52774. +
  52775. install-info: install-info-am
  52776. +install-info-am:
  52777. +
  52778. install-man:
  52779. +install-pdf: install-pdf-am
  52780. +
  52781. +install-pdf-am:
  52782. +
  52783. +install-ps: install-ps-am
  52784. +
  52785. +install-ps-am:
  52786. +
  52787. installcheck-am:
  52788. maintainer-clean: maintainer-clean-am
  52789. @@ -437,19 +470,23 @@
  52790. ps-am:
  52791. -uninstall-am: uninstall-info-am
  52792. +uninstall-am:
  52793. +
  52794. +.MAKE: install-am install-strip
  52795. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  52796. clean-libtool clean-noinstLTLIBRARIES ctags distclean \
  52797. distclean-compile distclean-generic distclean-libtool \
  52798. distclean-tags distdir dvi dvi-am html html-am info info-am \
  52799. - install install-am install-data install-data-am install-exec \
  52800. - install-exec-am install-info install-info-am install-man \
  52801. + install install-am install-data install-data-am install-dvi \
  52802. + install-dvi-am install-exec install-exec-am install-html \
  52803. + install-html-am install-info install-info-am install-man \
  52804. + install-pdf install-pdf-am install-ps install-ps-am \
  52805. install-strip installcheck installcheck-am installdirs \
  52806. maintainer-clean maintainer-clean-generic mostlyclean \
  52807. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  52808. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  52809. - uninstall-info-am
  52810. + pdf pdf-am ps ps-am tags uninstall uninstall-am
  52811. +
  52812. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  52813. # Otherwise a system limit (for SysV at least) may be exceeded.
  52814. diff -Nur audiofile-0.2.7.orig/ltmain.sh audiofile-0.2.7/ltmain.sh
  52815. --- audiofile-0.2.7.orig/ltmain.sh 2010-03-22 04:48:34.000000000 +0100
  52816. +++ audiofile-0.2.7/ltmain.sh 2011-02-24 20:00:30.714804461 +0100
  52817. @@ -1,30 +1,174 @@
  52818. -# ltmain.sh - Provide generalized library-building support services.
  52819. -# NOTE: Changing this file will not affect anything until you rerun configure.
  52820. -#
  52821. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  52822. -# Free Software Foundation, Inc.
  52823. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  52824. -#
  52825. -# This program is free software; you can redistribute it and/or modify
  52826. +# Generated from ltmain.m4sh.
  52827. +
  52828. +# ltmain.sh (GNU libtool) 2.2.6b
  52829. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  52830. +
  52831. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  52832. +# This is free software; see the source for copying conditions. There is NO
  52833. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  52834. +
  52835. +# GNU Libtool is free software; you can redistribute it and/or modify
  52836. # it under the terms of the GNU General Public License as published by
  52837. # the Free Software Foundation; either version 2 of the License, or
  52838. # (at your option) any later version.
  52839. #
  52840. -# This program is distributed in the hope that it will be useful, but
  52841. +# As a special exception to the GNU General Public License,
  52842. +# if you distribute this file as part of a program or library that
  52843. +# is built using GNU Libtool, you may include this file under the
  52844. +# same distribution terms that you use for the rest of that program.
  52845. +#
  52846. +# GNU Libtool is distributed in the hope that it will be useful, but
  52847. # WITHOUT ANY WARRANTY; without even the implied warranty of
  52848. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  52849. # General Public License for more details.
  52850. #
  52851. # You should have received a copy of the GNU General Public License
  52852. -# along with this program; if not, write to the Free Software
  52853. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  52854. +# along with GNU Libtool; see the file COPYING. If not, a copy
  52855. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  52856. +# or obtained by writing to the Free Software Foundation, Inc.,
  52857. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  52858. +
  52859. +# Usage: $progname [OPTION]... [MODE-ARG]...
  52860. +#
  52861. +# Provide generalized library-building support services.
  52862. #
  52863. -# As a special exception to the GNU General Public License, if you
  52864. -# distribute this file as part of a program that contains a
  52865. -# configuration script generated by Autoconf, you may include it under
  52866. -# the same distribution terms that you use for the rest of that program.
  52867. +# --config show all configuration variables
  52868. +# --debug enable verbose shell tracing
  52869. +# -n, --dry-run display commands without modifying any files
  52870. +# --features display basic configuration information and exit
  52871. +# --mode=MODE use operation mode MODE
  52872. +# --preserve-dup-deps don't remove duplicate dependency libraries
  52873. +# --quiet, --silent don't print informational messages
  52874. +# --tag=TAG use configuration variables from tag TAG
  52875. +# -v, --verbose print informational messages (default)
  52876. +# --version print version information
  52877. +# -h, --help print short or long help message
  52878. +#
  52879. +# MODE must be one of the following:
  52880. +#
  52881. +# clean remove files from the build directory
  52882. +# compile compile a source file into a libtool object
  52883. +# execute automatically set library path, then run a program
  52884. +# finish complete the installation of libtool libraries
  52885. +# install install libraries or executables
  52886. +# link create a library or an executable
  52887. +# uninstall remove libraries from an installed directory
  52888. +#
  52889. +# MODE-ARGS vary depending on the MODE.
  52890. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  52891. +#
  52892. +# When reporting a bug, please describe a test case to reproduce it and
  52893. +# include the following information:
  52894. +#
  52895. +# host-triplet: $host
  52896. +# shell: $SHELL
  52897. +# compiler: $LTCC
  52898. +# compiler flags: $LTCFLAGS
  52899. +# linker: $LD (gnu? $with_gnu_ld)
  52900. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  52901. +# automake: $automake_version
  52902. +# autoconf: $autoconf_version
  52903. +#
  52904. +# Report bugs to <bug-libtool@gnu.org>.
  52905. +
  52906. +PROGRAM=ltmain.sh
  52907. +PACKAGE=libtool
  52908. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  52909. +TIMESTAMP=""
  52910. +package_revision=1.3017
  52911. +
  52912. +# Be Bourne compatible
  52913. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  52914. + emulate sh
  52915. + NULLCMD=:
  52916. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  52917. + # is contrary to our usage. Disable this feature.
  52918. + alias -g '${1+"$@"}'='"$@"'
  52919. + setopt NO_GLOB_SUBST
  52920. +else
  52921. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  52922. +fi
  52923. +BIN_SH=xpg4; export BIN_SH # for Tru64
  52924. +DUALCASE=1; export DUALCASE # for MKS sh
  52925. +
  52926. +# NLS nuisances: We save the old values to restore during execute mode.
  52927. +# Only set LANG and LC_ALL to C if already set.
  52928. +# These must not be set unconditionally because not all systems understand
  52929. +# e.g. LANG=C (notably SCO).
  52930. +lt_user_locale=
  52931. +lt_safe_locale=
  52932. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  52933. +do
  52934. + eval "if test \"\${$lt_var+set}\" = set; then
  52935. + save_$lt_var=\$$lt_var
  52936. + $lt_var=C
  52937. + export $lt_var
  52938. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  52939. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  52940. + fi"
  52941. +done
  52942. +
  52943. +$lt_unset CDPATH
  52944. +
  52945. +
  52946. +
  52947. +
  52948. +
  52949. +: ${CP="cp -f"}
  52950. +: ${ECHO="echo"}
  52951. +: ${EGREP="/bin/grep -E"}
  52952. +: ${FGREP="/bin/grep -F"}
  52953. +: ${GREP="/bin/grep"}
  52954. +: ${LN_S="ln -s"}
  52955. +: ${MAKE="make"}
  52956. +: ${MKDIR="mkdir"}
  52957. +: ${MV="mv -f"}
  52958. +: ${RM="rm -f"}
  52959. +: ${SED="/bin/sed"}
  52960. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  52961. +: ${Xsed="$SED -e 1s/^X//"}
  52962. -basename="s,^.*/,,g"
  52963. +# Global variables:
  52964. +EXIT_SUCCESS=0
  52965. +EXIT_FAILURE=1
  52966. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  52967. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  52968. +
  52969. +exit_status=$EXIT_SUCCESS
  52970. +
  52971. +# Make sure IFS has a sensible default
  52972. +lt_nl='
  52973. +'
  52974. +IFS=" $lt_nl"
  52975. +
  52976. +dirname="s,/[^/]*$,,"
  52977. +basename="s,^.*/,,"
  52978. +
  52979. +# func_dirname_and_basename file append nondir_replacement
  52980. +# perform func_basename and func_dirname in a single function
  52981. +# call:
  52982. +# dirname: Compute the dirname of FILE. If nonempty,
  52983. +# add APPEND to the result, otherwise set result
  52984. +# to NONDIR_REPLACEMENT.
  52985. +# value returned in "$func_dirname_result"
  52986. +# basename: Compute filename of FILE.
  52987. +# value retuned in "$func_basename_result"
  52988. +# Implementation must be kept synchronized with func_dirname
  52989. +# and func_basename. For efficiency, we do not delegate to
  52990. +# those functions but instead duplicate the functionality here.
  52991. +func_dirname_and_basename ()
  52992. +{
  52993. + # Extract subdirectory from the argument.
  52994. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  52995. + if test "X$func_dirname_result" = "X${1}"; then
  52996. + func_dirname_result="${3}"
  52997. + else
  52998. + func_dirname_result="$func_dirname_result${2}"
  52999. + fi
  53000. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  53001. +}
  53002. +
  53003. +# Generated shell functions inserted here.
  53004. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  53005. # is ksh but when the shell is invoked as "sh" and the current value of
  53006. @@ -34,36 +178,396 @@
  53007. progpath="$0"
  53008. # The name of this program:
  53009. -progname=`echo "$progpath" | $SED $basename`
  53010. -modename="$progname"
  53011. +# In the unlikely event $progname began with a '-', it would play havoc with
  53012. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  53013. +func_dirname_and_basename "$progpath"
  53014. +progname=$func_basename_result
  53015. +case $progname in
  53016. + -*) progname=./$progname ;;
  53017. +esac
  53018. -# Global variables:
  53019. -EXIT_SUCCESS=0
  53020. -EXIT_FAILURE=1
  53021. +# Make sure we have an absolute path for reexecution:
  53022. +case $progpath in
  53023. + [\\/]*|[A-Za-z]:\\*) ;;
  53024. + *[\\/]*)
  53025. + progdir=$func_dirname_result
  53026. + progdir=`cd "$progdir" && pwd`
  53027. + progpath="$progdir/$progname"
  53028. + ;;
  53029. + *)
  53030. + save_IFS="$IFS"
  53031. + IFS=:
  53032. + for progdir in $PATH; do
  53033. + IFS="$save_IFS"
  53034. + test -x "$progdir/$progname" && break
  53035. + done
  53036. + IFS="$save_IFS"
  53037. + test -n "$progdir" || progdir=`pwd`
  53038. + progpath="$progdir/$progname"
  53039. + ;;
  53040. +esac
  53041. +
  53042. +# Sed substitution that helps us do robust quoting. It backslashifies
  53043. +# metacharacters that are still active within double-quoted strings.
  53044. +Xsed="${SED}"' -e 1s/^X//'
  53045. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  53046. +
  53047. +# Same as above, but do not quote variable references.
  53048. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  53049. +
  53050. +# Re-`\' parameter expansions in output of double_quote_subst that were
  53051. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  53052. +# in input to double_quote_subst, that '$' was protected from expansion.
  53053. +# Since each input `\' is now two `\'s, look for any number of runs of
  53054. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  53055. +bs='\\'
  53056. +bs2='\\\\'
  53057. +bs4='\\\\\\\\'
  53058. +dollar='\$'
  53059. +sed_double_backslash="\
  53060. + s/$bs4/&\\
  53061. +/g
  53062. + s/^$bs2$dollar/$bs&/
  53063. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  53064. + s/\n//g"
  53065. +
  53066. +# Standard options:
  53067. +opt_dry_run=false
  53068. +opt_help=false
  53069. +opt_quiet=false
  53070. +opt_verbose=false
  53071. +opt_warning=:
  53072. +
  53073. +# func_echo arg...
  53074. +# Echo program name prefixed message, along with the current mode
  53075. +# name if it has been set yet.
  53076. +func_echo ()
  53077. +{
  53078. + $ECHO "$progname${mode+: }$mode: $*"
  53079. +}
  53080. +
  53081. +# func_verbose arg...
  53082. +# Echo program name prefixed message in verbose mode only.
  53083. +func_verbose ()
  53084. +{
  53085. + $opt_verbose && func_echo ${1+"$@"}
  53086. +
  53087. + # A bug in bash halts the script if the last line of a function
  53088. + # fails when set -e is in force, so we need another command to
  53089. + # work around that:
  53090. + :
  53091. +}
  53092. +
  53093. +# func_error arg...
  53094. +# Echo program name prefixed message to standard error.
  53095. +func_error ()
  53096. +{
  53097. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  53098. +}
  53099. +
  53100. +# func_warning arg...
  53101. +# Echo program name prefixed warning message to standard error.
  53102. +func_warning ()
  53103. +{
  53104. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  53105. +
  53106. + # bash bug again:
  53107. + :
  53108. +}
  53109. +
  53110. +# func_fatal_error arg...
  53111. +# Echo program name prefixed message to standard error, and exit.
  53112. +func_fatal_error ()
  53113. +{
  53114. + func_error ${1+"$@"}
  53115. + exit $EXIT_FAILURE
  53116. +}
  53117. +
  53118. +# func_fatal_help arg...
  53119. +# Echo program name prefixed message to standard error, followed by
  53120. +# a help hint, and exit.
  53121. +func_fatal_help ()
  53122. +{
  53123. + func_error ${1+"$@"}
  53124. + func_fatal_error "$help"
  53125. +}
  53126. +help="Try \`$progname --help' for more information." ## default
  53127. +
  53128. +
  53129. +# func_grep expression filename
  53130. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  53131. +func_grep ()
  53132. +{
  53133. + $GREP "$1" "$2" >/dev/null 2>&1
  53134. +}
  53135. +
  53136. +
  53137. +# func_mkdir_p directory-path
  53138. +# Make sure the entire path to DIRECTORY-PATH is available.
  53139. +func_mkdir_p ()
  53140. +{
  53141. + my_directory_path="$1"
  53142. + my_dir_list=
  53143. +
  53144. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  53145. +
  53146. + # Protect directory names starting with `-'
  53147. + case $my_directory_path in
  53148. + -*) my_directory_path="./$my_directory_path" ;;
  53149. + esac
  53150. +
  53151. + # While some portion of DIR does not yet exist...
  53152. + while test ! -d "$my_directory_path"; do
  53153. + # ...make a list in topmost first order. Use a colon delimited
  53154. + # list incase some portion of path contains whitespace.
  53155. + my_dir_list="$my_directory_path:$my_dir_list"
  53156. +
  53157. + # If the last portion added has no slash in it, the list is done
  53158. + case $my_directory_path in */*) ;; *) break ;; esac
  53159. +
  53160. + # ...otherwise throw away the child directory and loop
  53161. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  53162. + done
  53163. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  53164. +
  53165. + save_mkdir_p_IFS="$IFS"; IFS=':'
  53166. + for my_dir in $my_dir_list; do
  53167. + IFS="$save_mkdir_p_IFS"
  53168. + # mkdir can fail with a `File exist' error if two processes
  53169. + # try to create one of the directories concurrently. Don't
  53170. + # stop in that case!
  53171. + $MKDIR "$my_dir" 2>/dev/null || :
  53172. + done
  53173. + IFS="$save_mkdir_p_IFS"
  53174. +
  53175. + # Bail out if we (or some other process) failed to create a directory.
  53176. + test -d "$my_directory_path" || \
  53177. + func_fatal_error "Failed to create \`$1'"
  53178. + fi
  53179. +}
  53180. +
  53181. +
  53182. +# func_mktempdir [string]
  53183. +# Make a temporary directory that won't clash with other running
  53184. +# libtool processes, and avoids race conditions if possible. If
  53185. +# given, STRING is the basename for that directory.
  53186. +func_mktempdir ()
  53187. +{
  53188. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  53189. +
  53190. + if test "$opt_dry_run" = ":"; then
  53191. + # Return a directory name, but don't create it in dry-run mode
  53192. + my_tmpdir="${my_template}-$$"
  53193. + else
  53194. +
  53195. + # If mktemp works, use that first and foremost
  53196. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  53197. +
  53198. + if test ! -d "$my_tmpdir"; then
  53199. + # Failing that, at least try and use $RANDOM to avoid a race
  53200. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  53201. +
  53202. + save_mktempdir_umask=`umask`
  53203. + umask 0077
  53204. + $MKDIR "$my_tmpdir"
  53205. + umask $save_mktempdir_umask
  53206. + fi
  53207. +
  53208. + # If we're not in dry-run mode, bomb out on failure
  53209. + test -d "$my_tmpdir" || \
  53210. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  53211. + fi
  53212. +
  53213. + $ECHO "X$my_tmpdir" | $Xsed
  53214. +}
  53215. +
  53216. +
  53217. +# func_quote_for_eval arg
  53218. +# Aesthetically quote ARG to be evaled later.
  53219. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  53220. +# is double-quoted, suitable for a subsequent eval, whereas
  53221. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  53222. +# which are still active within double quotes backslashified.
  53223. +func_quote_for_eval ()
  53224. +{
  53225. + case $1 in
  53226. + *[\\\`\"\$]*)
  53227. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  53228. + *)
  53229. + func_quote_for_eval_unquoted_result="$1" ;;
  53230. + esac
  53231. +
  53232. + case $func_quote_for_eval_unquoted_result in
  53233. + # Double-quote args containing shell metacharacters to delay
  53234. + # word splitting, command substitution and and variable
  53235. + # expansion for a subsequent eval.
  53236. + # Many Bourne shells cannot handle close brackets correctly
  53237. + # in scan sets, so we specify it separately.
  53238. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53239. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  53240. + ;;
  53241. + *)
  53242. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  53243. + esac
  53244. +}
  53245. +
  53246. +
  53247. +# func_quote_for_expand arg
  53248. +# Aesthetically quote ARG to be evaled later; same as above,
  53249. +# but do not quote variable references.
  53250. +func_quote_for_expand ()
  53251. +{
  53252. + case $1 in
  53253. + *[\\\`\"]*)
  53254. + my_arg=`$ECHO "X$1" | $Xsed \
  53255. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  53256. + *)
  53257. + my_arg="$1" ;;
  53258. + esac
  53259. +
  53260. + case $my_arg in
  53261. + # Double-quote args containing shell metacharacters to delay
  53262. + # word splitting and command substitution for a subsequent eval.
  53263. + # Many Bourne shells cannot handle close brackets correctly
  53264. + # in scan sets, so we specify it separately.
  53265. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53266. + my_arg="\"$my_arg\""
  53267. + ;;
  53268. + esac
  53269. +
  53270. + func_quote_for_expand_result="$my_arg"
  53271. +}
  53272. +
  53273. +
  53274. +# func_show_eval cmd [fail_exp]
  53275. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  53276. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  53277. +# is given, then evaluate it.
  53278. +func_show_eval ()
  53279. +{
  53280. + my_cmd="$1"
  53281. + my_fail_exp="${2-:}"
  53282. +
  53283. + ${opt_silent-false} || {
  53284. + func_quote_for_expand "$my_cmd"
  53285. + eval "func_echo $func_quote_for_expand_result"
  53286. + }
  53287. +
  53288. + if ${opt_dry_run-false}; then :; else
  53289. + eval "$my_cmd"
  53290. + my_status=$?
  53291. + if test "$my_status" -eq 0; then :; else
  53292. + eval "(exit $my_status); $my_fail_exp"
  53293. + fi
  53294. + fi
  53295. +}
  53296. +
  53297. +
  53298. +# func_show_eval_locale cmd [fail_exp]
  53299. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  53300. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  53301. +# is given, then evaluate it. Use the saved locale for evaluation.
  53302. +func_show_eval_locale ()
  53303. +{
  53304. + my_cmd="$1"
  53305. + my_fail_exp="${2-:}"
  53306. +
  53307. + ${opt_silent-false} || {
  53308. + func_quote_for_expand "$my_cmd"
  53309. + eval "func_echo $func_quote_for_expand_result"
  53310. + }
  53311. +
  53312. + if ${opt_dry_run-false}; then :; else
  53313. + eval "$lt_user_locale
  53314. + $my_cmd"
  53315. + my_status=$?
  53316. + eval "$lt_safe_locale"
  53317. + if test "$my_status" -eq 0; then :; else
  53318. + eval "(exit $my_status); $my_fail_exp"
  53319. + fi
  53320. + fi
  53321. +}
  53322. +
  53323. +
  53324. +
  53325. +
  53326. +
  53327. +# func_version
  53328. +# Echo version message to standard output and exit.
  53329. +func_version ()
  53330. +{
  53331. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  53332. + s/^# //
  53333. + s/^# *$//
  53334. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  53335. + p
  53336. + }' < "$progpath"
  53337. + exit $?
  53338. +}
  53339. +
  53340. +# func_usage
  53341. +# Echo short help message to standard output and exit.
  53342. +func_usage ()
  53343. +{
  53344. + $SED -n '/^# Usage:/,/# -h/ {
  53345. + s/^# //
  53346. + s/^# *$//
  53347. + s/\$progname/'$progname'/
  53348. + p
  53349. + }' < "$progpath"
  53350. + $ECHO
  53351. + $ECHO "run \`$progname --help | more' for full usage"
  53352. + exit $?
  53353. +}
  53354. +
  53355. +# func_help
  53356. +# Echo long help message to standard output and exit.
  53357. +func_help ()
  53358. +{
  53359. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  53360. + s/^# //
  53361. + s/^# *$//
  53362. + s*\$progname*'$progname'*
  53363. + s*\$host*'"$host"'*
  53364. + s*\$SHELL*'"$SHELL"'*
  53365. + s*\$LTCC*'"$LTCC"'*
  53366. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  53367. + s*\$LD*'"$LD"'*
  53368. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  53369. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  53370. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  53371. + p
  53372. + }' < "$progpath"
  53373. + exit $?
  53374. +}
  53375. +
  53376. +# func_missing_arg argname
  53377. +# Echo program name prefixed message to standard error and set global
  53378. +# exit_cmd.
  53379. +func_missing_arg ()
  53380. +{
  53381. + func_error "missing argument for $1"
  53382. + exit_cmd=exit
  53383. +}
  53384. +
  53385. +exit_cmd=:
  53386. -PROGRAM=ltmain.sh
  53387. -PACKAGE=libtool
  53388. -VERSION=1.5.10
  53389. -TIMESTAMP=" (1.1220.2.130 2004/09/19 12:13:49)"
  53390. -# See if we are running on zsh, and set the options which allow our
  53391. -# commands through without removal of \ escapes.
  53392. -if test -n "${ZSH_VERSION+set}" ; then
  53393. - setopt NO_GLOB_SUBST
  53394. -fi
  53395. -# Check that we have a working $echo.
  53396. +
  53397. +
  53398. +# Check that we have a working $ECHO.
  53399. if test "X$1" = X--no-reexec; then
  53400. # Discard the --no-reexec flag, and continue.
  53401. shift
  53402. elif test "X$1" = X--fallback-echo; then
  53403. # Avoid inline document here, it may be left over
  53404. :
  53405. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  53406. - # Yippee, $echo works!
  53407. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  53408. + # Yippee, $ECHO works!
  53409. :
  53410. else
  53411. - # Restart under the correct shell, and then maybe $echo will work.
  53412. + # Restart under the correct shell, and then maybe $ECHO will work.
  53413. exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  53414. fi
  53415. @@ -76,147 +580,461 @@
  53416. exit $EXIT_SUCCESS
  53417. fi
  53418. -default_mode=
  53419. -help="Try \`$progname --help' for more information."
  53420. magic="%%%MAGIC variable%%%"
  53421. -mkdir="mkdir"
  53422. -mv="mv -f"
  53423. -rm="rm -f"
  53424. -
  53425. -# Sed substitution that helps us do robust quoting. It backslashifies
  53426. -# metacharacters that are still active within double-quoted strings.
  53427. -Xsed="${SED}"' -e 1s/^X//'
  53428. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  53429. -# test EBCDIC or ASCII
  53430. -case `echo A|tr A '\301'` in
  53431. - A) # EBCDIC based system
  53432. - SP2NL="tr '\100' '\n'"
  53433. - NL2SP="tr '\r\n' '\100\100'"
  53434. - ;;
  53435. - *) # Assume ASCII based system
  53436. - SP2NL="tr '\040' '\012'"
  53437. - NL2SP="tr '\015\012' '\040\040'"
  53438. - ;;
  53439. -esac
  53440. -
  53441. -# NLS nuisances.
  53442. -# Only set LANG and LC_ALL to C if already set.
  53443. -# These must not be set unconditionally because not all systems understand
  53444. -# e.g. LANG=C (notably SCO).
  53445. -# We save the old values to restore during execute mode.
  53446. -if test "${LC_ALL+set}" = set; then
  53447. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  53448. -fi
  53449. -if test "${LANG+set}" = set; then
  53450. - save_LANG="$LANG"; LANG=C; export LANG
  53451. -fi
  53452. -
  53453. -# Make sure IFS has a sensible default
  53454. -: ${IFS="
  53455. -"}
  53456. -
  53457. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  53458. - $echo "$modename: not configured to build any kind of library" 1>&2
  53459. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  53460. - exit $EXIT_FAILURE
  53461. -fi
  53462. +magic_exe="%%%MAGIC EXE variable%%%"
  53463. # Global variables.
  53464. -mode=$default_mode
  53465. +# $mode is unset
  53466. nonopt=
  53467. -prev=
  53468. -prevopt=
  53469. -run=
  53470. -show="$echo"
  53471. -show_help=
  53472. execute_dlfiles=
  53473. +preserve_args=
  53474. lo2o="s/\\.lo\$/.${objext}/"
  53475. o2lo="s/\\.${objext}\$/.lo/"
  53476. +extracted_archives=
  53477. +extracted_serial=0
  53478. -#####################################
  53479. -# Shell function definitions:
  53480. -# This seems to be the best place for them
  53481. +opt_dry_run=false
  53482. +opt_duplicate_deps=false
  53483. +opt_silent=false
  53484. +opt_debug=:
  53485. -# func_win32_libid arg
  53486. -# return the library type of file 'arg'
  53487. -#
  53488. -# Need a lot of goo to handle *both* DLLs and import libs
  53489. -# Has to be a shell function in order to 'eat' the argument
  53490. -# that is supplied when $file_magic_command is called.
  53491. -func_win32_libid () {
  53492. - win32_libid_type="unknown"
  53493. - win32_fileres=`file -L $1 2>/dev/null`
  53494. - case $win32_fileres in
  53495. - *ar\ archive\ import\ library*) # definitely import
  53496. - win32_libid_type="x86 archive import"
  53497. - ;;
  53498. - *ar\ archive*) # could be an import, or static
  53499. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  53500. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  53501. - win32_nmres=`eval $NM -f posix -A $1 | \
  53502. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  53503. - if test "X$win32_nmres" = "Ximport" ; then
  53504. - win32_libid_type="x86 archive import"
  53505. +# If this variable is set in any of the actions, the command in it
  53506. +# will be execed at the end. This prevents here-documents from being
  53507. +# left over by shells.
  53508. +exec_cmd=
  53509. +
  53510. +# func_fatal_configuration arg...
  53511. +# Echo program name prefixed message to standard error, followed by
  53512. +# a configuration failure hint, and exit.
  53513. +func_fatal_configuration ()
  53514. +{
  53515. + func_error ${1+"$@"}
  53516. + func_error "See the $PACKAGE documentation for more information."
  53517. + func_fatal_error "Fatal configuration error."
  53518. +}
  53519. +
  53520. +
  53521. +# func_config
  53522. +# Display the configuration for all the tags in this script.
  53523. +func_config ()
  53524. +{
  53525. + re_begincf='^# ### BEGIN LIBTOOL'
  53526. + re_endcf='^# ### END LIBTOOL'
  53527. +
  53528. + # Default configuration.
  53529. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  53530. +
  53531. + # Now print the configurations for the tags.
  53532. + for tagname in $taglist; do
  53533. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  53534. + done
  53535. +
  53536. + exit $?
  53537. +}
  53538. +
  53539. +# func_features
  53540. +# Display the features supported by this script.
  53541. +func_features ()
  53542. +{
  53543. + $ECHO "host: $host"
  53544. + if test "$build_libtool_libs" = yes; then
  53545. + $ECHO "enable shared libraries"
  53546. + else
  53547. + $ECHO "disable shared libraries"
  53548. + fi
  53549. + if test "$build_old_libs" = yes; then
  53550. + $ECHO "enable static libraries"
  53551. + else
  53552. + $ECHO "disable static libraries"
  53553. + fi
  53554. +
  53555. + exit $?
  53556. +}
  53557. +
  53558. +# func_enable_tag tagname
  53559. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  53560. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  53561. +# variable here.
  53562. +func_enable_tag ()
  53563. +{
  53564. + # Global variable:
  53565. + tagname="$1"
  53566. +
  53567. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  53568. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  53569. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  53570. +
  53571. + # Validate tagname.
  53572. + case $tagname in
  53573. + *[!-_A-Za-z0-9,/]*)
  53574. + func_fatal_error "invalid tag name: $tagname"
  53575. + ;;
  53576. + esac
  53577. +
  53578. + # Don't test for the "default" C tag, as we know it's
  53579. + # there but not specially marked.
  53580. + case $tagname in
  53581. + CC) ;;
  53582. + *)
  53583. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  53584. + taglist="$taglist $tagname"
  53585. +
  53586. + # Evaluate the configuration. Be careful to quote the path
  53587. + # and the sed script, to avoid splitting on whitespace, but
  53588. + # also don't use non-portable quotes within backquotes within
  53589. + # quotes we have to do it in 2 steps:
  53590. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  53591. + eval "$extractedcf"
  53592. else
  53593. - win32_libid_type="x86 archive static"
  53594. + func_error "ignoring unknown tag $tagname"
  53595. fi
  53596. - fi
  53597. + ;;
  53598. + esac
  53599. +}
  53600. +
  53601. +# Parse options once, thoroughly. This comes as soon as possible in
  53602. +# the script to make things like `libtool --version' happen quickly.
  53603. +{
  53604. +
  53605. + # Shorthand for --mode=foo, only valid as the first argument
  53606. + case $1 in
  53607. + clean|clea|cle|cl)
  53608. + shift; set dummy --mode clean ${1+"$@"}; shift
  53609. ;;
  53610. - *DLL*)
  53611. - win32_libid_type="x86 DLL"
  53612. + compile|compil|compi|comp|com|co|c)
  53613. + shift; set dummy --mode compile ${1+"$@"}; shift
  53614. ;;
  53615. - *executable*) # but shell scripts are "executable" too...
  53616. - case $win32_fileres in
  53617. - *MS\ Windows\ PE\ Intel*)
  53618. - win32_libid_type="x86 DLL"
  53619. - ;;
  53620. - esac
  53621. + execute|execut|execu|exec|exe|ex|e)
  53622. + shift; set dummy --mode execute ${1+"$@"}; shift
  53623. + ;;
  53624. + finish|finis|fini|fin|fi|f)
  53625. + shift; set dummy --mode finish ${1+"$@"}; shift
  53626. + ;;
  53627. + install|instal|insta|inst|ins|in|i)
  53628. + shift; set dummy --mode install ${1+"$@"}; shift
  53629. + ;;
  53630. + link|lin|li|l)
  53631. + shift; set dummy --mode link ${1+"$@"}; shift
  53632. + ;;
  53633. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  53634. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  53635. ;;
  53636. esac
  53637. - $echo $win32_libid_type
  53638. -}
  53639. + # Parse non-mode specific arguments:
  53640. + while test "$#" -gt 0; do
  53641. + opt="$1"
  53642. + shift
  53643. -# func_infer_tag arg
  53644. + case $opt in
  53645. + --config) func_config ;;
  53646. +
  53647. + --debug) preserve_args="$preserve_args $opt"
  53648. + func_echo "enabling shell trace mode"
  53649. + opt_debug='set -x'
  53650. + $opt_debug
  53651. + ;;
  53652. +
  53653. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  53654. + execute_dlfiles="$execute_dlfiles $1"
  53655. + shift
  53656. + ;;
  53657. +
  53658. + --dry-run | -n) opt_dry_run=: ;;
  53659. + --features) func_features ;;
  53660. + --finish) mode="finish" ;;
  53661. +
  53662. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  53663. + case $1 in
  53664. + # Valid mode arguments:
  53665. + clean) ;;
  53666. + compile) ;;
  53667. + execute) ;;
  53668. + finish) ;;
  53669. + install) ;;
  53670. + link) ;;
  53671. + relink) ;;
  53672. + uninstall) ;;
  53673. +
  53674. + # Catch anything else as an error
  53675. + *) func_error "invalid argument for $opt"
  53676. + exit_cmd=exit
  53677. + break
  53678. + ;;
  53679. + esac
  53680. +
  53681. + mode="$1"
  53682. + shift
  53683. + ;;
  53684. +
  53685. + --preserve-dup-deps)
  53686. + opt_duplicate_deps=: ;;
  53687. +
  53688. + --quiet|--silent) preserve_args="$preserve_args $opt"
  53689. + opt_silent=:
  53690. + ;;
  53691. +
  53692. + --verbose| -v) preserve_args="$preserve_args $opt"
  53693. + opt_silent=false
  53694. + ;;
  53695. +
  53696. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  53697. + preserve_args="$preserve_args $opt $1"
  53698. + func_enable_tag "$1" # tagname is set here
  53699. + shift
  53700. + ;;
  53701. +
  53702. + # Separate optargs to long options:
  53703. + -dlopen=*|--mode=*|--tag=*)
  53704. + func_opt_split "$opt"
  53705. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  53706. + shift
  53707. + ;;
  53708. +
  53709. + -\?|-h) func_usage ;;
  53710. + --help) opt_help=: ;;
  53711. + --version) func_version ;;
  53712. +
  53713. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  53714. +
  53715. + *) nonopt="$opt"
  53716. + break
  53717. + ;;
  53718. + esac
  53719. + done
  53720. +
  53721. +
  53722. + case $host in
  53723. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  53724. + # don't eliminate duplications in $postdeps and $predeps
  53725. + opt_duplicate_compiler_generated_deps=:
  53726. + ;;
  53727. + *)
  53728. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  53729. + ;;
  53730. + esac
  53731. +
  53732. + # Having warned about all mis-specified options, bail out if
  53733. + # anything was wrong.
  53734. + $exit_cmd $EXIT_FAILURE
  53735. +}
  53736. +
  53737. +# func_check_version_match
  53738. +# Ensure that we are using m4 macros, and libtool script from the same
  53739. +# release of libtool.
  53740. +func_check_version_match ()
  53741. +{
  53742. + if test "$package_revision" != "$macro_revision"; then
  53743. + if test "$VERSION" != "$macro_version"; then
  53744. + if test -z "$macro_version"; then
  53745. + cat >&2 <<_LT_EOF
  53746. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  53747. +$progname: definition of this LT_INIT comes from an older release.
  53748. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  53749. +$progname: and run autoconf again.
  53750. +_LT_EOF
  53751. + else
  53752. + cat >&2 <<_LT_EOF
  53753. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  53754. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  53755. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  53756. +$progname: and run autoconf again.
  53757. +_LT_EOF
  53758. + fi
  53759. + else
  53760. + cat >&2 <<_LT_EOF
  53761. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  53762. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  53763. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  53764. +$progname: of $PACKAGE $VERSION and run autoconf again.
  53765. +_LT_EOF
  53766. + fi
  53767. +
  53768. + exit $EXIT_MISMATCH
  53769. + fi
  53770. +}
  53771. +
  53772. +
  53773. +## ----------- ##
  53774. +## Main. ##
  53775. +## ----------- ##
  53776. +
  53777. +$opt_help || {
  53778. + # Sanity checks first:
  53779. + func_check_version_match
  53780. +
  53781. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  53782. + func_fatal_configuration "not configured to build any kind of library"
  53783. + fi
  53784. +
  53785. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  53786. +
  53787. +
  53788. + # Darwin sucks
  53789. + eval std_shrext=\"$shrext_cmds\"
  53790. +
  53791. +
  53792. + # Only execute mode is allowed to have -dlopen flags.
  53793. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  53794. + func_error "unrecognized option \`-dlopen'"
  53795. + $ECHO "$help" 1>&2
  53796. + exit $EXIT_FAILURE
  53797. + fi
  53798. +
  53799. + # Change the help message to a mode-specific one.
  53800. + generic_help="$help"
  53801. + help="Try \`$progname --help --mode=$mode' for more information."
  53802. +}
  53803. +
  53804. +
  53805. +# func_lalib_p file
  53806. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  53807. +# This function is only a basic sanity check; it will hardly flush out
  53808. +# determined imposters.
  53809. +func_lalib_p ()
  53810. +{
  53811. + test -f "$1" &&
  53812. + $SED -e 4q "$1" 2>/dev/null \
  53813. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  53814. +}
  53815. +
  53816. +# func_lalib_unsafe_p file
  53817. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  53818. +# This function implements the same check as func_lalib_p without
  53819. +# resorting to external programs. To this end, it redirects stdin and
  53820. +# closes it afterwards, without saving the original file descriptor.
  53821. +# As a safety measure, use it only where a negative result would be
  53822. +# fatal anyway. Works if `file' does not exist.
  53823. +func_lalib_unsafe_p ()
  53824. +{
  53825. + lalib_p=no
  53826. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  53827. + for lalib_p_l in 1 2 3 4
  53828. + do
  53829. + read lalib_p_line
  53830. + case "$lalib_p_line" in
  53831. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  53832. + esac
  53833. + done
  53834. + exec 0<&5 5<&-
  53835. + fi
  53836. + test "$lalib_p" = yes
  53837. +}
  53838. +
  53839. +# func_ltwrapper_script_p file
  53840. +# True iff FILE is a libtool wrapper script
  53841. +# This function is only a basic sanity check; it will hardly flush out
  53842. +# determined imposters.
  53843. +func_ltwrapper_script_p ()
  53844. +{
  53845. + func_lalib_p "$1"
  53846. +}
  53847. +
  53848. +# func_ltwrapper_executable_p file
  53849. +# True iff FILE is a libtool wrapper executable
  53850. +# This function is only a basic sanity check; it will hardly flush out
  53851. +# determined imposters.
  53852. +func_ltwrapper_executable_p ()
  53853. +{
  53854. + func_ltwrapper_exec_suffix=
  53855. + case $1 in
  53856. + *.exe) ;;
  53857. + *) func_ltwrapper_exec_suffix=.exe ;;
  53858. + esac
  53859. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  53860. +}
  53861. +
  53862. +# func_ltwrapper_scriptname file
  53863. +# Assumes file is an ltwrapper_executable
  53864. +# uses $file to determine the appropriate filename for a
  53865. +# temporary ltwrapper_script.
  53866. +func_ltwrapper_scriptname ()
  53867. +{
  53868. + func_ltwrapper_scriptname_result=""
  53869. + if func_ltwrapper_executable_p "$1"; then
  53870. + func_dirname_and_basename "$1" "" "."
  53871. + func_stripname '' '.exe' "$func_basename_result"
  53872. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  53873. + fi
  53874. +}
  53875. +
  53876. +# func_ltwrapper_p file
  53877. +# True iff FILE is a libtool wrapper script or wrapper executable
  53878. +# This function is only a basic sanity check; it will hardly flush out
  53879. +# determined imposters.
  53880. +func_ltwrapper_p ()
  53881. +{
  53882. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  53883. +}
  53884. +
  53885. +
  53886. +# func_execute_cmds commands fail_cmd
  53887. +# Execute tilde-delimited COMMANDS.
  53888. +# If FAIL_CMD is given, eval that upon failure.
  53889. +# FAIL_CMD may read-access the current command in variable CMD!
  53890. +func_execute_cmds ()
  53891. +{
  53892. + $opt_debug
  53893. + save_ifs=$IFS; IFS='~'
  53894. + for cmd in $1; do
  53895. + IFS=$save_ifs
  53896. + eval cmd=\"$cmd\"
  53897. + func_show_eval "$cmd" "${2-:}"
  53898. + done
  53899. + IFS=$save_ifs
  53900. +}
  53901. +
  53902. +
  53903. +# func_source file
  53904. +# Source FILE, adding directory component if necessary.
  53905. +# Note that it is not necessary on cygwin/mingw to append a dot to
  53906. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  53907. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  53908. +# `FILE.' does not work on cygwin managed mounts.
  53909. +func_source ()
  53910. +{
  53911. + $opt_debug
  53912. + case $1 in
  53913. + */* | *\\*) . "$1" ;;
  53914. + *) . "./$1" ;;
  53915. + esac
  53916. +}
  53917. +
  53918. +
  53919. +# func_infer_tag arg
  53920. # Infer tagged configuration to use if any are available and
  53921. # if one wasn't chosen via the "--tag" command line option.
  53922. # Only attempt this if the compiler in the base compile
  53923. # command doesn't match the default compiler.
  53924. # arg is usually of the form 'gcc ...'
  53925. -func_infer_tag () {
  53926. +func_infer_tag ()
  53927. +{
  53928. + $opt_debug
  53929. if test -n "$available_tags" && test -z "$tagname"; then
  53930. CC_quoted=
  53931. for arg in $CC; do
  53932. - case $arg in
  53933. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53934. - arg="\"$arg\""
  53935. - ;;
  53936. - esac
  53937. - CC_quoted="$CC_quoted $arg"
  53938. + func_quote_for_eval "$arg"
  53939. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  53940. done
  53941. case $@ in
  53942. # Blanks in the command may have been stripped by the calling shell,
  53943. # but not from the CC environment variable when configure was run.
  53944. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  53945. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  53946. # Blanks at the start of $base_compile will cause this to fail
  53947. # if we don't check for them as well.
  53948. *)
  53949. for z in $available_tags; do
  53950. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  53951. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  53952. # Evaluate the configuration.
  53953. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  53954. CC_quoted=
  53955. for arg in $CC; do
  53956. - # Double-quote args containing other shell metacharacters.
  53957. - case $arg in
  53958. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53959. - arg="\"$arg\""
  53960. - ;;
  53961. - esac
  53962. - CC_quoted="$CC_quoted $arg"
  53963. - done
  53964. + # Double-quote args containing other shell metacharacters.
  53965. + func_quote_for_eval "$arg"
  53966. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  53967. + done
  53968. case "$@ " in
  53969. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  53970. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  53971. # The compiler in the base compile command matches
  53972. # the one in the tagged configuration.
  53973. # Assume this is the tagged configuration we want.
  53974. @@ -230,11 +1048,10 @@
  53975. # was found and let the user know that the "--tag" command
  53976. # line option must be used.
  53977. if test -z "$tagname"; then
  53978. - $echo "$modename: unable to infer tagged configuration"
  53979. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  53980. - exit $EXIT_FAILURE
  53981. -# else
  53982. -# $echo "$modename: using $tagname tagged configuration"
  53983. + func_echo "unable to infer tagged configuration"
  53984. + func_fatal_error "specify a tag with \`--tag'"
  53985. +# else
  53986. +# func_verbose "using $tagname tagged configuration"
  53987. fi
  53988. ;;
  53989. esac
  53990. @@ -242,416 +1059,123 @@
  53991. }
  53992. -# func_extract_archives gentop oldlib ...
  53993. -func_extract_archives () {
  53994. - my_gentop="$1"; shift
  53995. - my_oldlibs=${1+"$@"}
  53996. - my_oldobjs=""
  53997. - my_xlib=""
  53998. - my_xabs=""
  53999. - my_xdir=""
  54000. - my_status=""
  54001. - $show "${rm}r $my_gentop"
  54002. - $run ${rm}r "$my_gentop"
  54003. - $show "$mkdir $my_gentop"
  54004. - $run $mkdir "$my_gentop"
  54005. - my_status=$?
  54006. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  54007. - exit $my_status
  54008. +# func_write_libtool_object output_name pic_name nonpic_name
  54009. +# Create a libtool object file (analogous to a ".la" file),
  54010. +# but don't create it if we're doing a dry run.
  54011. +func_write_libtool_object ()
  54012. +{
  54013. + write_libobj=${1}
  54014. + if test "$build_libtool_libs" = yes; then
  54015. + write_lobj=\'${2}\'
  54016. + else
  54017. + write_lobj=none
  54018. fi
  54019. - for my_xlib in $my_oldlibs; do
  54020. - # Extract the objects.
  54021. - case $my_xlib in
  54022. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  54023. - *) my_xabs=`pwd`"/$my_xlib" ;;
  54024. - esac
  54025. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  54026. - my_xdir="$my_gentop/$my_xlib"
  54027. + if test "$build_old_libs" = yes; then
  54028. + write_oldobj=\'${3}\'
  54029. + else
  54030. + write_oldobj=none
  54031. + fi
  54032. - $show "${rm}r $my_xdir"
  54033. - $run ${rm}r "$my_xdir"
  54034. - $show "$mkdir $my_xdir"
  54035. - $run $mkdir "$my_xdir"
  54036. - status=$?
  54037. - if test "$status" -ne 0 && test ! -d "$my_xdir"; then
  54038. - exit $status
  54039. - fi
  54040. - case $host in
  54041. - *-darwin*)
  54042. - $show "Extracting $my_xabs"
  54043. - # Do not bother doing anything if just a dry run
  54044. - if test -z "$run"; then
  54045. - darwin_orig_dir=`pwd`
  54046. - cd $my_xdir || exit $?
  54047. - darwin_archive=$my_xabs
  54048. - darwin_curdir=`pwd`
  54049. - darwin_base_archive=`basename $darwin_archive`
  54050. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  54051. - if test -n "$darwin_arches"; then
  54052. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  54053. - darwin_arch=
  54054. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  54055. - for darwin_arch in $darwin_arches ; do
  54056. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  54057. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  54058. - # Remove the table of contents from the thin files.
  54059. - $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
  54060. - $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
  54061. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  54062. - $AR -xo "${darwin_base_archive}"
  54063. - rm "${darwin_base_archive}"
  54064. - cd "$darwin_curdir"
  54065. - done # $darwin_arches
  54066. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  54067. - darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
  54068. - darwin_file=
  54069. - darwin_files=
  54070. - for darwin_file in $darwin_filelist; do
  54071. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  54072. - lipo -create -output "$darwin_file" $darwin_files
  54073. - done # $darwin_filelist
  54074. - rm -rf unfat-$$
  54075. - cd "$darwin_orig_dir"
  54076. - else
  54077. - cd $darwin_orig_dir
  54078. - (cd $my_xdir && $AR x $my_xabs) || exit $?
  54079. - fi # $darwin_arches
  54080. - fi # $run
  54081. - ;;
  54082. - *)
  54083. - # We will extract separately just the conflicting names and we will
  54084. - # no longer touch any unique names. It is faster to leave these
  54085. - # extract automatically by $AR in one run.
  54086. - $show "(cd $my_xdir && $AR x $my_xabs)"
  54087. - $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
  54088. - if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
  54089. - :
  54090. - else
  54091. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  54092. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  54093. - $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
  54094. - do
  54095. - i=1
  54096. - while test "$i" -le "$count"
  54097. - do
  54098. - # Put our $i before any first dot (extension)
  54099. - # Never overwrite any file
  54100. - name_to="$name"
  54101. - while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
  54102. - do
  54103. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  54104. - done
  54105. - $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
  54106. - $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
  54107. - i=`expr $i + 1`
  54108. - done
  54109. - done
  54110. - fi
  54111. - ;;
  54112. - esac
  54113. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  54114. - done
  54115. + $opt_dry_run || {
  54116. + cat >${write_libobj}T <<EOF
  54117. +# $write_libobj - a libtool object file
  54118. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  54119. +#
  54120. +# Please DO NOT delete this file!
  54121. +# It is necessary for linking the library.
  54122. - func_extract_archives_result="$my_oldobjs"
  54123. -}
  54124. -# End of Shell function definitions
  54125. -#####################################
  54126. +# Name of the PIC object.
  54127. +pic_object=$write_lobj
  54128. -# Darwin sucks
  54129. -eval std_shrext=\"$shrext_cmds\"
  54130. +# Name of the non-PIC object
  54131. +non_pic_object=$write_oldobj
  54132. -# Parse our command line options once, thoroughly.
  54133. -while test "$#" -gt 0
  54134. -do
  54135. - arg="$1"
  54136. - shift
  54137. +EOF
  54138. + $MV "${write_libobj}T" "${write_libobj}"
  54139. + }
  54140. +}
  54141. - case $arg in
  54142. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  54143. - *) optarg= ;;
  54144. - esac
  54145. +# func_mode_compile arg...
  54146. +func_mode_compile ()
  54147. +{
  54148. + $opt_debug
  54149. + # Get the compilation command and the source file.
  54150. + base_compile=
  54151. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  54152. + suppress_opt=yes
  54153. + suppress_output=
  54154. + arg_mode=normal
  54155. + libobj=
  54156. + later=
  54157. + pie_flag=
  54158. - # If the previous option needs an argument, assign it.
  54159. - if test -n "$prev"; then
  54160. - case $prev in
  54161. - execute_dlfiles)
  54162. - execute_dlfiles="$execute_dlfiles $arg"
  54163. - ;;
  54164. - tag)
  54165. - tagname="$arg"
  54166. - preserve_args="${preserve_args}=$arg"
  54167. -
  54168. - # Check whether tagname contains only valid characters
  54169. - case $tagname in
  54170. - *[!-_A-Za-z0-9,/]*)
  54171. - $echo "$progname: invalid tag name: $tagname" 1>&2
  54172. - exit $EXIT_FAILURE
  54173. + for arg
  54174. + do
  54175. + case $arg_mode in
  54176. + arg )
  54177. + # do not "continue". Instead, add this to base_compile
  54178. + lastarg="$arg"
  54179. + arg_mode=normal
  54180. ;;
  54181. - esac
  54182. - case $tagname in
  54183. - CC)
  54184. - # Don't test for the "default" C tag, as we know, it's there, but
  54185. - # not specially marked.
  54186. - ;;
  54187. - *)
  54188. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  54189. - taglist="$taglist $tagname"
  54190. - # Evaluate the configuration.
  54191. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  54192. - else
  54193. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  54194. - fi
  54195. + target )
  54196. + libobj="$arg"
  54197. + arg_mode=normal
  54198. + continue
  54199. ;;
  54200. - esac
  54201. - ;;
  54202. - *)
  54203. - eval "$prev=\$arg"
  54204. - ;;
  54205. - esac
  54206. -
  54207. - prev=
  54208. - prevopt=
  54209. - continue
  54210. - fi
  54211. -
  54212. - # Have we seen a non-optional argument yet?
  54213. - case $arg in
  54214. - --help)
  54215. - show_help=yes
  54216. - ;;
  54217. -
  54218. - --version)
  54219. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  54220. - $echo
  54221. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  54222. - $echo "This is free software; see the source for copying conditions. There is NO"
  54223. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  54224. - exit $EXIT_SUCCESS
  54225. - ;;
  54226. -
  54227. - --config)
  54228. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  54229. - # Now print the configurations for the tags.
  54230. - for tagname in $taglist; do
  54231. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  54232. - done
  54233. - exit $EXIT_SUCCESS
  54234. - ;;
  54235. - --debug)
  54236. - $echo "$progname: enabling shell trace mode"
  54237. - set -x
  54238. - preserve_args="$preserve_args $arg"
  54239. - ;;
  54240. + normal )
  54241. + # Accept any command-line options.
  54242. + case $arg in
  54243. + -o)
  54244. + test -n "$libobj" && \
  54245. + func_fatal_error "you cannot specify \`-o' more than once"
  54246. + arg_mode=target
  54247. + continue
  54248. + ;;
  54249. - --dry-run | -n)
  54250. - run=:
  54251. - ;;
  54252. + -pie | -fpie | -fPIE)
  54253. + pie_flag="$pie_flag $arg"
  54254. + continue
  54255. + ;;
  54256. - --features)
  54257. - $echo "host: $host"
  54258. - if test "$build_libtool_libs" = yes; then
  54259. - $echo "enable shared libraries"
  54260. - else
  54261. - $echo "disable shared libraries"
  54262. - fi
  54263. - if test "$build_old_libs" = yes; then
  54264. - $echo "enable static libraries"
  54265. - else
  54266. - $echo "disable static libraries"
  54267. - fi
  54268. - exit $EXIT_SUCCESS
  54269. - ;;
  54270. + -shared | -static | -prefer-pic | -prefer-non-pic)
  54271. + later="$later $arg"
  54272. + continue
  54273. + ;;
  54274. - --finish) mode="finish" ;;
  54275. + -no-suppress)
  54276. + suppress_opt=no
  54277. + continue
  54278. + ;;
  54279. - --mode) prevopt="--mode" prev=mode ;;
  54280. - --mode=*) mode="$optarg" ;;
  54281. + -Xcompiler)
  54282. + arg_mode=arg # the next one goes into the "base_compile" arg list
  54283. + continue # The current "srcfile" will either be retained or
  54284. + ;; # replaced later. I would guess that would be a bug.
  54285. - --preserve-dup-deps) duplicate_deps="yes" ;;
  54286. + -Wc,*)
  54287. + func_stripname '-Wc,' '' "$arg"
  54288. + args=$func_stripname_result
  54289. + lastarg=
  54290. + save_ifs="$IFS"; IFS=','
  54291. + for arg in $args; do
  54292. + IFS="$save_ifs"
  54293. + func_quote_for_eval "$arg"
  54294. + lastarg="$lastarg $func_quote_for_eval_result"
  54295. + done
  54296. + IFS="$save_ifs"
  54297. + func_stripname ' ' '' "$lastarg"
  54298. + lastarg=$func_stripname_result
  54299. - --quiet | --silent)
  54300. - show=:
  54301. - preserve_args="$preserve_args $arg"
  54302. - ;;
  54303. + # Add the arguments to base_compile.
  54304. + base_compile="$base_compile $lastarg"
  54305. + continue
  54306. + ;;
  54307. - --tag) prevopt="--tag" prev=tag ;;
  54308. - --tag=*)
  54309. - set tag "$optarg" ${1+"$@"}
  54310. - shift
  54311. - prev=tag
  54312. - preserve_args="$preserve_args --tag"
  54313. - ;;
  54314. -
  54315. - -dlopen)
  54316. - prevopt="-dlopen"
  54317. - prev=execute_dlfiles
  54318. - ;;
  54319. -
  54320. - -*)
  54321. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  54322. - $echo "$help" 1>&2
  54323. - exit $EXIT_FAILURE
  54324. - ;;
  54325. -
  54326. - *)
  54327. - nonopt="$arg"
  54328. - break
  54329. - ;;
  54330. - esac
  54331. -done
  54332. -
  54333. -if test -n "$prevopt"; then
  54334. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  54335. - $echo "$help" 1>&2
  54336. - exit $EXIT_FAILURE
  54337. -fi
  54338. -
  54339. -# If this variable is set in any of the actions, the command in it
  54340. -# will be execed at the end. This prevents here-documents from being
  54341. -# left over by shells.
  54342. -exec_cmd=
  54343. -
  54344. -if test -z "$show_help"; then
  54345. -
  54346. - # Infer the operation mode.
  54347. - if test -z "$mode"; then
  54348. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  54349. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  54350. - case $nonopt in
  54351. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  54352. - mode=link
  54353. - for arg
  54354. - do
  54355. - case $arg in
  54356. - -c)
  54357. - mode=compile
  54358. - break
  54359. - ;;
  54360. - esac
  54361. - done
  54362. - ;;
  54363. - *db | *dbx | *strace | *truss)
  54364. - mode=execute
  54365. - ;;
  54366. - *install*|cp|mv)
  54367. - mode=install
  54368. - ;;
  54369. - *rm)
  54370. - mode=uninstall
  54371. - ;;
  54372. - *)
  54373. - # If we have no mode, but dlfiles were specified, then do execute mode.
  54374. - test -n "$execute_dlfiles" && mode=execute
  54375. -
  54376. - # Just use the default operation mode.
  54377. - if test -z "$mode"; then
  54378. - if test -n "$nonopt"; then
  54379. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  54380. - else
  54381. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  54382. - fi
  54383. - fi
  54384. - ;;
  54385. - esac
  54386. - fi
  54387. -
  54388. - # Only execute mode is allowed to have -dlopen flags.
  54389. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  54390. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  54391. - $echo "$help" 1>&2
  54392. - exit $EXIT_FAILURE
  54393. - fi
  54394. -
  54395. - # Change the help message to a mode-specific one.
  54396. - generic_help="$help"
  54397. - help="Try \`$modename --help --mode=$mode' for more information."
  54398. -
  54399. - # These modes are in order of execution frequency so that they run quickly.
  54400. - case $mode in
  54401. - # libtool compile mode
  54402. - compile)
  54403. - modename="$modename: compile"
  54404. - # Get the compilation command and the source file.
  54405. - base_compile=
  54406. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  54407. - suppress_opt=yes
  54408. - suppress_output=
  54409. - arg_mode=normal
  54410. - libobj=
  54411. - later=
  54412. -
  54413. - for arg
  54414. - do
  54415. - case "$arg_mode" in
  54416. - arg )
  54417. - # do not "continue". Instead, add this to base_compile
  54418. - lastarg="$arg"
  54419. - arg_mode=normal
  54420. - ;;
  54421. -
  54422. - target )
  54423. - libobj="$arg"
  54424. - arg_mode=normal
  54425. - continue
  54426. - ;;
  54427. -
  54428. - normal )
  54429. - # Accept any command-line options.
  54430. - case $arg in
  54431. - -o)
  54432. - if test -n "$libobj" ; then
  54433. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  54434. - exit $EXIT_FAILURE
  54435. - fi
  54436. - arg_mode=target
  54437. - continue
  54438. - ;;
  54439. -
  54440. - -static | -prefer-pic | -prefer-non-pic)
  54441. - later="$later $arg"
  54442. - continue
  54443. - ;;
  54444. -
  54445. - -no-suppress)
  54446. - suppress_opt=no
  54447. - continue
  54448. - ;;
  54449. -
  54450. - -Xcompiler)
  54451. - arg_mode=arg # the next one goes into the "base_compile" arg list
  54452. - continue # The current "srcfile" will either be retained or
  54453. - ;; # replaced later. I would guess that would be a bug.
  54454. -
  54455. - -Wc,*)
  54456. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  54457. - lastarg=
  54458. - save_ifs="$IFS"; IFS=','
  54459. - for arg in $args; do
  54460. - IFS="$save_ifs"
  54461. -
  54462. - # Double-quote args containing other shell metacharacters.
  54463. - # Many Bourne shells cannot handle close brackets correctly
  54464. - # in scan sets, so we specify it separately.
  54465. - case $arg in
  54466. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54467. - arg="\"$arg\""
  54468. - ;;
  54469. - esac
  54470. - lastarg="$lastarg $arg"
  54471. - done
  54472. - IFS="$save_ifs"
  54473. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  54474. -
  54475. - # Add the arguments to base_compile.
  54476. - base_compile="$base_compile $lastarg"
  54477. - continue
  54478. - ;;
  54479. -
  54480. - * )
  54481. + *)
  54482. # Accept the current argument as the source file.
  54483. # The previous "srcfile" becomes the current argument.
  54484. #
  54485. @@ -663,61 +1187,42 @@
  54486. esac # case $arg_mode
  54487. # Aesthetically quote the previous argument.
  54488. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  54489. -
  54490. - case $lastarg in
  54491. - # Double-quote args containing other shell metacharacters.
  54492. - # Many Bourne shells cannot handle close brackets correctly
  54493. - # in scan sets, so we specify it separately.
  54494. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54495. - lastarg="\"$lastarg\""
  54496. - ;;
  54497. - esac
  54498. -
  54499. - base_compile="$base_compile $lastarg"
  54500. + func_quote_for_eval "$lastarg"
  54501. + base_compile="$base_compile $func_quote_for_eval_result"
  54502. done # for arg
  54503. case $arg_mode in
  54504. arg)
  54505. - $echo "$modename: you must specify an argument for -Xcompile"
  54506. - exit $EXIT_FAILURE
  54507. + func_fatal_error "you must specify an argument for -Xcompile"
  54508. ;;
  54509. target)
  54510. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  54511. - exit $EXIT_FAILURE
  54512. + func_fatal_error "you must specify a target with \`-o'"
  54513. ;;
  54514. *)
  54515. # Get the name of the library object.
  54516. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  54517. + test -z "$libobj" && {
  54518. + func_basename "$srcfile"
  54519. + libobj="$func_basename_result"
  54520. + }
  54521. ;;
  54522. esac
  54523. # Recognize several different file suffixes.
  54524. # If the user specifies -o file.o, it is replaced with file.lo
  54525. - xform='[cCFSifmso]'
  54526. case $libobj in
  54527. - *.ada) xform=ada ;;
  54528. - *.adb) xform=adb ;;
  54529. - *.ads) xform=ads ;;
  54530. - *.asm) xform=asm ;;
  54531. - *.c++) xform=c++ ;;
  54532. - *.cc) xform=cc ;;
  54533. - *.ii) xform=ii ;;
  54534. - *.class) xform=class ;;
  54535. - *.cpp) xform=cpp ;;
  54536. - *.cxx) xform=cxx ;;
  54537. - *.f90) xform=f90 ;;
  54538. - *.for) xform=for ;;
  54539. - *.java) xform=java ;;
  54540. + *.[cCFSifmso] | \
  54541. + *.ada | *.adb | *.ads | *.asm | \
  54542. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  54543. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  54544. + func_xform "$libobj"
  54545. + libobj=$func_xform_result
  54546. + ;;
  54547. esac
  54548. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  54549. -
  54550. case $libobj in
  54551. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  54552. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  54553. *)
  54554. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  54555. - exit $EXIT_FAILURE
  54556. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  54557. ;;
  54558. esac
  54559. @@ -725,7 +1230,15 @@
  54560. for arg in $later; do
  54561. case $arg in
  54562. + -shared)
  54563. + test "$build_libtool_libs" != yes && \
  54564. + func_fatal_configuration "can not build a shared library"
  54565. + build_old_libs=no
  54566. + continue
  54567. + ;;
  54568. +
  54569. -static)
  54570. + build_libtool_libs=no
  54571. build_old_libs=yes
  54572. continue
  54573. ;;
  54574. @@ -742,20 +1255,17 @@
  54575. esac
  54576. done
  54577. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  54578. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  54579. - if test "X$xdir" = "X$obj"; then
  54580. - xdir=
  54581. - else
  54582. - xdir=$xdir/
  54583. - fi
  54584. + func_quote_for_eval "$libobj"
  54585. + test "X$libobj" != "X$func_quote_for_eval_result" \
  54586. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  54587. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  54588. + func_dirname_and_basename "$obj" "/" ""
  54589. + objname="$func_basename_result"
  54590. + xdir="$func_dirname_result"
  54591. lobj=${xdir}$objdir/$objname
  54592. - if test -z "$base_compile"; then
  54593. - $echo "$modename: you must specify a compilation command" 1>&2
  54594. - $echo "$help" 1>&2
  54595. - exit $EXIT_FAILURE
  54596. - fi
  54597. + test -z "$base_compile" && \
  54598. + func_fatal_help "you must specify a compilation command"
  54599. # Delete any leftover library objects.
  54600. if test "$build_old_libs" = yes; then
  54601. @@ -764,12 +1274,9 @@
  54602. removelist="$lobj $libobj ${libobj}T"
  54603. fi
  54604. - $run $rm $removelist
  54605. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  54606. -
  54607. # On Cygwin there's no "real" PIC flag so we must build both object types
  54608. case $host_os in
  54609. - cygwin* | mingw* | pw32* | os2*)
  54610. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  54611. pic_mode=default
  54612. ;;
  54613. esac
  54614. @@ -781,10 +1288,8 @@
  54615. # Calculate the filename of the output object if compiler does
  54616. # not support -o with -c
  54617. if test "$compiler_c_o" = no; then
  54618. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  54619. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  54620. lockfile="$output_obj.lock"
  54621. - removelist="$removelist $output_obj $lockfile"
  54622. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  54623. else
  54624. output_obj=
  54625. need_locks=no
  54626. @@ -794,13 +1299,13 @@
  54627. # Lock this critical section if it is needed
  54628. # We use this script file to make the link, it avoids creating a new file
  54629. if test "$need_locks" = yes; then
  54630. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  54631. - $show "Waiting for $lockfile to be removed"
  54632. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  54633. + func_echo "Waiting for $lockfile to be removed"
  54634. sleep 2
  54635. done
  54636. elif test "$need_locks" = warn; then
  54637. if test -f "$lockfile"; then
  54638. - $echo "\
  54639. + $ECHO "\
  54640. *** ERROR, $lockfile exists and contains:
  54641. `cat $lockfile 2>/dev/null`
  54642. @@ -811,29 +1316,22 @@
  54643. avoid parallel builds (make -j) in this platform, or get a better
  54644. compiler."
  54645. - $run $rm $removelist
  54646. + $opt_dry_run || $RM $removelist
  54647. exit $EXIT_FAILURE
  54648. fi
  54649. - $echo $srcfile > "$lockfile"
  54650. + removelist="$removelist $output_obj"
  54651. + $ECHO "$srcfile" > "$lockfile"
  54652. fi
  54653. + $opt_dry_run || $RM $removelist
  54654. + removelist="$removelist $lockfile"
  54655. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  54656. +
  54657. if test -n "$fix_srcfile_path"; then
  54658. eval srcfile=\"$fix_srcfile_path\"
  54659. fi
  54660. -
  54661. - $run $rm "$libobj" "${libobj}T"
  54662. -
  54663. - # Create a libtool object file (analogous to a ".la" file),
  54664. - # but don't create it if we're doing a dry run.
  54665. - test -z "$run" && cat > ${libobj}T <<EOF
  54666. -# $libobj - a libtool object file
  54667. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54668. -#
  54669. -# Please DO NOT delete this file!
  54670. -# It is necessary for linking the library.
  54671. -
  54672. -# Name of the PIC object.
  54673. -EOF
  54674. + func_quote_for_eval "$srcfile"
  54675. + qsrcfile=$func_quote_for_eval_result
  54676. # Only build a PIC object if we are building libtool libraries.
  54677. if test "$build_libtool_libs" = yes; then
  54678. @@ -841,38 +1339,25 @@
  54679. fbsd_hideous_sh_bug=$base_compile
  54680. if test "$pic_mode" != no; then
  54681. - command="$base_compile $srcfile $pic_flag"
  54682. + command="$base_compile $qsrcfile $pic_flag"
  54683. else
  54684. # Don't build PIC code
  54685. - command="$base_compile $srcfile"
  54686. + command="$base_compile $qsrcfile"
  54687. fi
  54688. - if test ! -d "${xdir}$objdir"; then
  54689. - $show "$mkdir ${xdir}$objdir"
  54690. - $run $mkdir ${xdir}$objdir
  54691. - status=$?
  54692. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  54693. - exit $status
  54694. - fi
  54695. - fi
  54696. + func_mkdir_p "$xdir$objdir"
  54697. if test -z "$output_obj"; then
  54698. # Place PIC objects in $objdir
  54699. command="$command -o $lobj"
  54700. fi
  54701. - $run $rm "$lobj" "$output_obj"
  54702. -
  54703. - $show "$command"
  54704. - if $run eval "$command"; then :
  54705. - else
  54706. - test -n "$output_obj" && $run $rm $removelist
  54707. - exit $EXIT_FAILURE
  54708. - fi
  54709. + func_show_eval_locale "$command" \
  54710. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  54711. if test "$need_locks" = warn &&
  54712. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  54713. - $echo "\
  54714. + $ECHO "\
  54715. *** ERROR, $lockfile contains:
  54716. `cat $lockfile 2>/dev/null`
  54717. @@ -886,47 +1371,29 @@
  54718. avoid parallel builds (make -j) in this platform, or get a better
  54719. compiler."
  54720. - $run $rm $removelist
  54721. + $opt_dry_run || $RM $removelist
  54722. exit $EXIT_FAILURE
  54723. fi
  54724. # Just move the object if needed, then go on to compile the next one
  54725. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  54726. - $show "$mv $output_obj $lobj"
  54727. - if $run $mv $output_obj $lobj; then :
  54728. - else
  54729. - error=$?
  54730. - $run $rm $removelist
  54731. - exit $error
  54732. - fi
  54733. + func_show_eval '$MV "$output_obj" "$lobj"' \
  54734. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  54735. fi
  54736. - # Append the name of the PIC object to the libtool object file.
  54737. - test -z "$run" && cat >> ${libobj}T <<EOF
  54738. -pic_object='$objdir/$objname'
  54739. -
  54740. -EOF
  54741. -
  54742. # Allow error messages only from the first compilation.
  54743. if test "$suppress_opt" = yes; then
  54744. - suppress_output=' >/dev/null 2>&1'
  54745. + suppress_output=' >/dev/null 2>&1'
  54746. fi
  54747. - else
  54748. - # No PIC object so indicate it doesn't exist in the libtool
  54749. - # object file.
  54750. - test -z "$run" && cat >> ${libobj}T <<EOF
  54751. -pic_object=none
  54752. -
  54753. -EOF
  54754. fi
  54755. # Only build a position-dependent object if we build old libraries.
  54756. if test "$build_old_libs" = yes; then
  54757. if test "$pic_mode" != yes; then
  54758. # Don't build PIC code
  54759. - command="$base_compile $srcfile"
  54760. + command="$base_compile $qsrcfile$pie_flag"
  54761. else
  54762. - command="$base_compile $srcfile $pic_flag"
  54763. + command="$base_compile $qsrcfile $pic_flag"
  54764. fi
  54765. if test "$compiler_c_o" = yes; then
  54766. command="$command -o $obj"
  54767. @@ -934,17 +1401,12 @@
  54768. # Suppress compiler output if we already did a PIC compilation.
  54769. command="$command$suppress_output"
  54770. - $run $rm "$obj" "$output_obj"
  54771. - $show "$command"
  54772. - if $run eval "$command"; then :
  54773. - else
  54774. - $run $rm $removelist
  54775. - exit $EXIT_FAILURE
  54776. - fi
  54777. + func_show_eval_locale "$command" \
  54778. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  54779. if test "$need_locks" = warn &&
  54780. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  54781. - $echo "\
  54782. + $ECHO "\
  54783. *** ERROR, $lockfile contains:
  54784. `cat $lockfile 2>/dev/null`
  54785. @@ -958,5032 +1420,6784 @@
  54786. avoid parallel builds (make -j) in this platform, or get a better
  54787. compiler."
  54788. - $run $rm $removelist
  54789. + $opt_dry_run || $RM $removelist
  54790. exit $EXIT_FAILURE
  54791. fi
  54792. # Just move the object if needed
  54793. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  54794. - $show "$mv $output_obj $obj"
  54795. - if $run $mv $output_obj $obj; then :
  54796. - else
  54797. - error=$?
  54798. - $run $rm $removelist
  54799. - exit $error
  54800. - fi
  54801. + func_show_eval '$MV "$output_obj" "$obj"' \
  54802. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  54803. fi
  54804. -
  54805. - # Append the name of the non-PIC object the libtool object file.
  54806. - # Only append if the libtool object file exists.
  54807. - test -z "$run" && cat >> ${libobj}T <<EOF
  54808. -# Name of the non-PIC object.
  54809. -non_pic_object='$objname'
  54810. -
  54811. -EOF
  54812. - else
  54813. - # Append the name of the non-PIC object the libtool object file.
  54814. - # Only append if the libtool object file exists.
  54815. - test -z "$run" && cat >> ${libobj}T <<EOF
  54816. -# Name of the non-PIC object.
  54817. -non_pic_object=none
  54818. -
  54819. -EOF
  54820. fi
  54821. - $run $mv "${libobj}T" "${libobj}"
  54822. + $opt_dry_run || {
  54823. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  54824. - # Unlock the critical section if it was locked
  54825. - if test "$need_locks" != no; then
  54826. - $run $rm "$lockfile"
  54827. - fi
  54828. + # Unlock the critical section if it was locked
  54829. + if test "$need_locks" != no; then
  54830. + removelist=$lockfile
  54831. + $RM "$lockfile"
  54832. + fi
  54833. + }
  54834. exit $EXIT_SUCCESS
  54835. - ;;
  54836. +}
  54837. - # libtool link mode
  54838. - link | relink)
  54839. - modename="$modename: link"
  54840. - case $host in
  54841. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  54842. - # It is impossible to link a dll without this setting, and
  54843. - # we shouldn't force the makefile maintainer to figure out
  54844. - # which system we are compiling for in order to pass an extra
  54845. - # flag for every libtool invocation.
  54846. - # allow_undefined=no
  54847. +$opt_help || {
  54848. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  54849. +}
  54850. - # FIXME: Unfortunately, there are problems with the above when trying
  54851. - # to make a dll which has undefined symbols, in which case not
  54852. - # even a static library is built. For now, we need to specify
  54853. - # -no-undefined on the libtool link line when we can be certain
  54854. - # that all symbols are satisfied, otherwise we get a static library.
  54855. - allow_undefined=yes
  54856. - ;;
  54857. - *)
  54858. - allow_undefined=yes
  54859. - ;;
  54860. - esac
  54861. - libtool_args="$nonopt"
  54862. - base_compile="$nonopt $@"
  54863. - compile_command="$nonopt"
  54864. - finalize_command="$nonopt"
  54865. +func_mode_help ()
  54866. +{
  54867. + # We need to display help for each of the modes.
  54868. + case $mode in
  54869. + "")
  54870. + # Generic help is extracted from the usage comments
  54871. + # at the start of this file.
  54872. + func_help
  54873. + ;;
  54874. - compile_rpath=
  54875. - finalize_rpath=
  54876. - compile_shlibpath=
  54877. - finalize_shlibpath=
  54878. - convenience=
  54879. - old_convenience=
  54880. - deplibs=
  54881. - old_deplibs=
  54882. - compiler_flags=
  54883. - linker_flags=
  54884. - dllsearchpath=
  54885. - lib_search_path=`pwd`
  54886. - inst_prefix_dir=
  54887. + clean)
  54888. + $ECHO \
  54889. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  54890. - avoid_version=no
  54891. - dlfiles=
  54892. - dlprefiles=
  54893. - dlself=no
  54894. - export_dynamic=no
  54895. - export_symbols=
  54896. - export_symbols_regex=
  54897. - generated=
  54898. - libobjs=
  54899. - ltlibs=
  54900. - module=no
  54901. - no_install=no
  54902. - objs=
  54903. - non_pic_objects=
  54904. - precious_files_regex=
  54905. - prefer_static_libs=no
  54906. - preload=no
  54907. - prev=
  54908. - prevarg=
  54909. - release=
  54910. - rpath=
  54911. - xrpath=
  54912. - perm_rpath=
  54913. - temp_rpath=
  54914. - thread_safe=no
  54915. - vinfo=
  54916. - vinfo_number=no
  54917. +Remove files from the build directory.
  54918. - func_infer_tag $base_compile
  54919. +RM is the name of the program to use to delete files associated with each FILE
  54920. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  54921. +to RM.
  54922. - # We need to know -static, to get the right output filenames.
  54923. - for arg
  54924. - do
  54925. - case $arg in
  54926. - -all-static | -static)
  54927. - if test "X$arg" = "X-all-static"; then
  54928. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  54929. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  54930. - fi
  54931. - if test -n "$link_static_flag"; then
  54932. - dlopen_self=$dlopen_self_static
  54933. - fi
  54934. - else
  54935. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  54936. - dlopen_self=$dlopen_self_static
  54937. - fi
  54938. - fi
  54939. - build_libtool_libs=no
  54940. - build_old_libs=yes
  54941. - prefer_static_libs=yes
  54942. - break
  54943. - ;;
  54944. - esac
  54945. - done
  54946. +If FILE is a libtool library, object or program, all the files associated
  54947. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  54948. + ;;
  54949. - # See if our shared archives depend on static archives.
  54950. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  54951. + compile)
  54952. + $ECHO \
  54953. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  54954. - # Go through the arguments, transforming them on the way.
  54955. - while test "$#" -gt 0; do
  54956. - arg="$1"
  54957. - shift
  54958. - case $arg in
  54959. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54960. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  54961. - ;;
  54962. - *) qarg=$arg ;;
  54963. - esac
  54964. - libtool_args="$libtool_args $qarg"
  54965. +Compile a source file into a libtool library object.
  54966. - # If the previous option needs an argument, assign it.
  54967. - if test -n "$prev"; then
  54968. - case $prev in
  54969. - output)
  54970. - compile_command="$compile_command @OUTPUT@"
  54971. - finalize_command="$finalize_command @OUTPUT@"
  54972. - ;;
  54973. - esac
  54974. +This mode accepts the following additional options:
  54975. - case $prev in
  54976. - dlfiles|dlprefiles)
  54977. - if test "$preload" = no; then
  54978. - # Add the symbol object into the linking commands.
  54979. - compile_command="$compile_command @SYMFILE@"
  54980. - finalize_command="$finalize_command @SYMFILE@"
  54981. - preload=yes
  54982. - fi
  54983. - case $arg in
  54984. - *.la | *.lo) ;; # We handle these cases below.
  54985. - force)
  54986. - if test "$dlself" = no; then
  54987. - dlself=needless
  54988. - export_dynamic=yes
  54989. - fi
  54990. - prev=
  54991. - continue
  54992. - ;;
  54993. - self)
  54994. - if test "$prev" = dlprefiles; then
  54995. - dlself=yes
  54996. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  54997. - dlself=yes
  54998. - else
  54999. - dlself=needless
  55000. - export_dynamic=yes
  55001. - fi
  55002. - prev=
  55003. - continue
  55004. - ;;
  55005. - *)
  55006. - if test "$prev" = dlfiles; then
  55007. - dlfiles="$dlfiles $arg"
  55008. - else
  55009. - dlprefiles="$dlprefiles $arg"
  55010. - fi
  55011. - prev=
  55012. - continue
  55013. - ;;
  55014. - esac
  55015. - ;;
  55016. - expsyms)
  55017. - export_symbols="$arg"
  55018. - if test ! -f "$arg"; then
  55019. - $echo "$modename: symbol file \`$arg' does not exist"
  55020. - exit $EXIT_FAILURE
  55021. - fi
  55022. - prev=
  55023. - continue
  55024. - ;;
  55025. - expsyms_regex)
  55026. - export_symbols_regex="$arg"
  55027. - prev=
  55028. - continue
  55029. - ;;
  55030. - inst_prefix)
  55031. - inst_prefix_dir="$arg"
  55032. - prev=
  55033. - continue
  55034. - ;;
  55035. - precious_regex)
  55036. - precious_files_regex="$arg"
  55037. - prev=
  55038. - continue
  55039. - ;;
  55040. - release)
  55041. - release="-$arg"
  55042. - prev=
  55043. - continue
  55044. - ;;
  55045. - objectlist)
  55046. - if test -f "$arg"; then
  55047. - save_arg=$arg
  55048. - moreargs=
  55049. - for fil in `cat $save_arg`
  55050. - do
  55051. -# moreargs="$moreargs $fil"
  55052. - arg=$fil
  55053. - # A libtool-controlled object.
  55054. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  55055. + -no-suppress do not suppress compiler output for multiple passes
  55056. + -prefer-pic try to building PIC objects only
  55057. + -prefer-non-pic try to building non-PIC objects only
  55058. + -shared do not build a \`.o' file suitable for static linking
  55059. + -static only build a \`.o' file suitable for static linking
  55060. - # Check to see that this really is a libtool object.
  55061. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  55062. - pic_object=
  55063. - non_pic_object=
  55064. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  55065. +from the given SOURCEFILE.
  55066. - # Read the .lo file
  55067. - # If there is no directory component, then add one.
  55068. - case $arg in
  55069. - */* | *\\*) . $arg ;;
  55070. - *) . ./$arg ;;
  55071. - esac
  55072. +The output file name is determined by removing the directory component from
  55073. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  55074. +library object suffix, \`.lo'."
  55075. + ;;
  55076. - if test -z "$pic_object" || \
  55077. - test -z "$non_pic_object" ||
  55078. - test "$pic_object" = none && \
  55079. - test "$non_pic_object" = none; then
  55080. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  55081. - exit $EXIT_FAILURE
  55082. - fi
  55083. + execute)
  55084. + $ECHO \
  55085. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  55086. - # Extract subdirectory from the argument.
  55087. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55088. - if test "X$xdir" = "X$arg"; then
  55089. - xdir=
  55090. - else
  55091. - xdir="$xdir/"
  55092. - fi
  55093. +Automatically set library path, then run a program.
  55094. - if test "$pic_object" != none; then
  55095. - # Prepend the subdirectory the object is found in.
  55096. - pic_object="$xdir$pic_object"
  55097. +This mode accepts the following additional options:
  55098. - if test "$prev" = dlfiles; then
  55099. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55100. - dlfiles="$dlfiles $pic_object"
  55101. - prev=
  55102. - continue
  55103. - else
  55104. - # If libtool objects are unsupported, then we need to preload.
  55105. - prev=dlprefiles
  55106. - fi
  55107. - fi
  55108. + -dlopen FILE add the directory containing FILE to the library path
  55109. - # CHECK ME: I think I busted this. -Ossama
  55110. - if test "$prev" = dlprefiles; then
  55111. - # Preload the old-style object.
  55112. - dlprefiles="$dlprefiles $pic_object"
  55113. - prev=
  55114. - fi
  55115. +This mode sets the library path environment variable according to \`-dlopen'
  55116. +flags.
  55117. - # A PIC object.
  55118. - libobjs="$libobjs $pic_object"
  55119. - arg="$pic_object"
  55120. - fi
  55121. +If any of the ARGS are libtool executable wrappers, then they are translated
  55122. +into their corresponding uninstalled binary, and any of their required library
  55123. +directories are added to the library path.
  55124. - # Non-PIC object.
  55125. - if test "$non_pic_object" != none; then
  55126. - # Prepend the subdirectory the object is found in.
  55127. - non_pic_object="$xdir$non_pic_object"
  55128. +Then, COMMAND is executed, with ARGS as arguments."
  55129. + ;;
  55130. - # A standard non-PIC object
  55131. - non_pic_objects="$non_pic_objects $non_pic_object"
  55132. - if test -z "$pic_object" || test "$pic_object" = none ; then
  55133. - arg="$non_pic_object"
  55134. - fi
  55135. - fi
  55136. - else
  55137. - # Only an error if not doing a dry-run.
  55138. - if test -z "$run"; then
  55139. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  55140. - exit $EXIT_FAILURE
  55141. - else
  55142. - # Dry-run case.
  55143. + finish)
  55144. + $ECHO \
  55145. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  55146. - # Extract subdirectory from the argument.
  55147. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55148. - if test "X$xdir" = "X$arg"; then
  55149. - xdir=
  55150. - else
  55151. - xdir="$xdir/"
  55152. - fi
  55153. +Complete the installation of libtool libraries.
  55154. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  55155. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  55156. - libobjs="$libobjs $pic_object"
  55157. - non_pic_objects="$non_pic_objects $non_pic_object"
  55158. - fi
  55159. - fi
  55160. - done
  55161. - else
  55162. - $echo "$modename: link input file \`$save_arg' does not exist"
  55163. - exit $EXIT_FAILURE
  55164. - fi
  55165. - arg=$save_arg
  55166. - prev=
  55167. - continue
  55168. - ;;
  55169. - rpath | xrpath)
  55170. - # We need an absolute path.
  55171. - case $arg in
  55172. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55173. - *)
  55174. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  55175. - exit $EXIT_FAILURE
  55176. - ;;
  55177. - esac
  55178. - if test "$prev" = rpath; then
  55179. - case "$rpath " in
  55180. - *" $arg "*) ;;
  55181. - *) rpath="$rpath $arg" ;;
  55182. - esac
  55183. - else
  55184. - case "$xrpath " in
  55185. - *" $arg "*) ;;
  55186. - *) xrpath="$xrpath $arg" ;;
  55187. - esac
  55188. - fi
  55189. - prev=
  55190. - continue
  55191. - ;;
  55192. - xcompiler)
  55193. - compiler_flags="$compiler_flags $qarg"
  55194. - prev=
  55195. - compile_command="$compile_command $qarg"
  55196. - finalize_command="$finalize_command $qarg"
  55197. - continue
  55198. - ;;
  55199. - xlinker)
  55200. - linker_flags="$linker_flags $qarg"
  55201. - compiler_flags="$compiler_flags $wl$qarg"
  55202. - prev=
  55203. - compile_command="$compile_command $wl$qarg"
  55204. - finalize_command="$finalize_command $wl$qarg"
  55205. - continue
  55206. - ;;
  55207. - xcclinker)
  55208. - linker_flags="$linker_flags $qarg"
  55209. - compiler_flags="$compiler_flags $qarg"
  55210. - prev=
  55211. - compile_command="$compile_command $qarg"
  55212. - finalize_command="$finalize_command $qarg"
  55213. - continue
  55214. - ;;
  55215. - shrext)
  55216. - shrext_cmds="$arg"
  55217. - prev=
  55218. - continue
  55219. - ;;
  55220. - *)
  55221. - eval "$prev=\"\$arg\""
  55222. - prev=
  55223. - continue
  55224. - ;;
  55225. - esac
  55226. - fi # test -n "$prev"
  55227. +Each LIBDIR is a directory that contains libtool libraries.
  55228. - prevarg="$arg"
  55229. +The commands that this mode executes may require superuser privileges. Use
  55230. +the \`--dry-run' option if you just want to see what would be executed."
  55231. + ;;
  55232. - case $arg in
  55233. - -all-static)
  55234. - if test -n "$link_static_flag"; then
  55235. - compile_command="$compile_command $link_static_flag"
  55236. - finalize_command="$finalize_command $link_static_flag"
  55237. - fi
  55238. - continue
  55239. - ;;
  55240. + install)
  55241. + $ECHO \
  55242. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  55243. - -allow-undefined)
  55244. - # FIXME: remove this flag sometime in the future.
  55245. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  55246. - continue
  55247. - ;;
  55248. +Install executables or libraries.
  55249. - -avoid-version)
  55250. - avoid_version=yes
  55251. - continue
  55252. - ;;
  55253. +INSTALL-COMMAND is the installation command. The first component should be
  55254. +either the \`install' or \`cp' program.
  55255. - -dlopen)
  55256. - prev=dlfiles
  55257. - continue
  55258. - ;;
  55259. +The following components of INSTALL-COMMAND are treated specially:
  55260. - -dlpreopen)
  55261. - prev=dlprefiles
  55262. - continue
  55263. - ;;
  55264. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  55265. - -export-dynamic)
  55266. - export_dynamic=yes
  55267. - continue
  55268. - ;;
  55269. +The rest of the components are interpreted as arguments to that command (only
  55270. +BSD-compatible install options are recognized)."
  55271. + ;;
  55272. - -export-symbols | -export-symbols-regex)
  55273. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55274. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  55275. - exit $EXIT_FAILURE
  55276. - fi
  55277. - if test "X$arg" = "X-export-symbols"; then
  55278. - prev=expsyms
  55279. - else
  55280. - prev=expsyms_regex
  55281. - fi
  55282. - continue
  55283. - ;;
  55284. + link)
  55285. + $ECHO \
  55286. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  55287. - -inst-prefix-dir)
  55288. - prev=inst_prefix
  55289. - continue
  55290. - ;;
  55291. +Link object files or libraries together to form another library, or to
  55292. +create an executable program.
  55293. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55294. - # so, if we see these flags be careful not to treat them like -L
  55295. - -L[A-Z][A-Z]*:*)
  55296. - case $with_gcc/$host in
  55297. - no/*-*-irix* | /*-*-irix*)
  55298. - compile_command="$compile_command $arg"
  55299. - finalize_command="$finalize_command $arg"
  55300. - ;;
  55301. - esac
  55302. - continue
  55303. - ;;
  55304. +LINK-COMMAND is a command using the C compiler that you would use to create
  55305. +a program from several object files.
  55306. - -L*)
  55307. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  55308. - # We need an absolute path.
  55309. - case $dir in
  55310. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55311. - *)
  55312. - absdir=`cd "$dir" && pwd`
  55313. - if test -z "$absdir"; then
  55314. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  55315. - exit $EXIT_FAILURE
  55316. - fi
  55317. - dir="$absdir"
  55318. - ;;
  55319. - esac
  55320. - case "$deplibs " in
  55321. - *" -L$dir "*) ;;
  55322. - *)
  55323. - deplibs="$deplibs -L$dir"
  55324. - lib_search_path="$lib_search_path $dir"
  55325. - ;;
  55326. - esac
  55327. - case $host in
  55328. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  55329. - case :$dllsearchpath: in
  55330. - *":$dir:"*) ;;
  55331. - *) dllsearchpath="$dllsearchpath:$dir";;
  55332. - esac
  55333. - ;;
  55334. - esac
  55335. - continue
  55336. - ;;
  55337. +The following components of LINK-COMMAND are treated specially:
  55338. - -l*)
  55339. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  55340. - case $host in
  55341. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  55342. - # These systems don't actually have a C or math library (as such)
  55343. - continue
  55344. - ;;
  55345. - *-*-mingw* | *-*-os2*)
  55346. - # These systems don't actually have a C library (as such)
  55347. - test "X$arg" = "X-lc" && continue
  55348. - ;;
  55349. - *-*-openbsd* | *-*-freebsd*)
  55350. - # Do not include libc due to us having libc/libc_r.
  55351. - test "X$arg" = "X-lc" && continue
  55352. - ;;
  55353. - *-*-rhapsody* | *-*-darwin1.[012])
  55354. - # Rhapsody C and math libraries are in the System framework
  55355. - deplibs="$deplibs -framework System"
  55356. - continue
  55357. - esac
  55358. - elif test "X$arg" = "X-lc_r"; then
  55359. - case $host in
  55360. - *-*-openbsd* | *-*-freebsd*)
  55361. - # Do not include libc_r directly, use -pthread flag.
  55362. - continue
  55363. - ;;
  55364. - esac
  55365. - fi
  55366. - deplibs="$deplibs $arg"
  55367. - continue
  55368. - ;;
  55369. + -all-static do not do any dynamic linking at all
  55370. + -avoid-version do not add a version suffix if possible
  55371. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  55372. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  55373. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  55374. + -export-symbols SYMFILE
  55375. + try to export only the symbols listed in SYMFILE
  55376. + -export-symbols-regex REGEX
  55377. + try to export only the symbols matching REGEX
  55378. + -LLIBDIR search LIBDIR for required installed libraries
  55379. + -lNAME OUTPUT-FILE requires the installed library libNAME
  55380. + -module build a library that can dlopened
  55381. + -no-fast-install disable the fast-install mode
  55382. + -no-install link a not-installable executable
  55383. + -no-undefined declare that a library does not refer to external symbols
  55384. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  55385. + -objectlist FILE Use a list of object files found in FILE to specify objects
  55386. + -precious-files-regex REGEX
  55387. + don't remove output files matching REGEX
  55388. + -release RELEASE specify package release information
  55389. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  55390. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  55391. + -shared only do dynamic linking of libtool libraries
  55392. + -shrext SUFFIX override the standard shared library file extension
  55393. + -static do not do any dynamic linking of uninstalled libtool libraries
  55394. + -static-libtool-libs
  55395. + do not do any dynamic linking of libtool libraries
  55396. + -version-info CURRENT[:REVISION[:AGE]]
  55397. + specify library version info [each variable defaults to 0]
  55398. + -weak LIBNAME declare that the target provides the LIBNAME interface
  55399. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  55400. - deplibs="$deplibs $arg"
  55401. - continue
  55402. - ;;
  55403. +All other options (arguments beginning with \`-') are ignored.
  55404. - -module)
  55405. - module=yes
  55406. - continue
  55407. - ;;
  55408. +Every other argument is treated as a filename. Files ending in \`.la' are
  55409. +treated as uninstalled libtool libraries, other files are standard or library
  55410. +object files.
  55411. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  55412. - # in order to pass architecture information to the linker
  55413. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  55414. - # but this is not reliable with gcc because gcc may use -mfoo to
  55415. - # select a different linker, different libraries, etc, while
  55416. - # -Wl,-mfoo simply passes -mfoo to the linker.
  55417. - -m*)
  55418. - # Unknown arguments in both finalize_command and compile_command need
  55419. - # to be aesthetically quoted because they are evaled later.
  55420. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  55421. - case $arg in
  55422. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55423. - arg="\"$arg\""
  55424. - ;;
  55425. - esac
  55426. - compile_command="$compile_command $arg"
  55427. - finalize_command="$finalize_command $arg"
  55428. - if test "$with_gcc" = "yes" ; then
  55429. - compiler_flags="$compiler_flags $arg"
  55430. - fi
  55431. - continue
  55432. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  55433. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  55434. +required, except when creating a convenience library.
  55435. +
  55436. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  55437. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  55438. +
  55439. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  55440. +is created, otherwise an executable program is created."
  55441. ;;
  55442. - -shrext)
  55443. - prev=shrext
  55444. - continue
  55445. - ;;
  55446. + uninstall)
  55447. + $ECHO \
  55448. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  55449. - -no-fast-install)
  55450. - fast_install=no
  55451. - continue
  55452. - ;;
  55453. +Remove libraries from an installation directory.
  55454. - -no-install)
  55455. - case $host in
  55456. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  55457. - # The PATH hackery in wrapper scripts is required on Windows
  55458. - # in order for the loader to find any dlls it needs.
  55459. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  55460. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  55461. - fast_install=no
  55462. - ;;
  55463. - *) no_install=yes ;;
  55464. - esac
  55465. - continue
  55466. - ;;
  55467. +RM is the name of the program to use to delete files associated with each FILE
  55468. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  55469. +to RM.
  55470. - -no-undefined)
  55471. - allow_undefined=no
  55472. - continue
  55473. - ;;
  55474. +If FILE is a libtool library, all the files associated with it are deleted.
  55475. +Otherwise, only FILE itself is deleted using RM."
  55476. + ;;
  55477. - -objectlist)
  55478. - prev=objectlist
  55479. - continue
  55480. - ;;
  55481. + *)
  55482. + func_fatal_help "invalid operation mode \`$mode'"
  55483. + ;;
  55484. + esac
  55485. - -o) prev=output ;;
  55486. + $ECHO
  55487. + $ECHO "Try \`$progname --help' for more information about other modes."
  55488. - -precious-files-regex)
  55489. - prev=precious_regex
  55490. - continue
  55491. - ;;
  55492. + exit $?
  55493. +}
  55494. - -release)
  55495. - prev=release
  55496. - continue
  55497. - ;;
  55498. + # Now that we've collected a possible --mode arg, show help if necessary
  55499. + $opt_help && func_mode_help
  55500. - -rpath)
  55501. - prev=rpath
  55502. - continue
  55503. - ;;
  55504. - -R)
  55505. - prev=xrpath
  55506. - continue
  55507. - ;;
  55508. +# func_mode_execute arg...
  55509. +func_mode_execute ()
  55510. +{
  55511. + $opt_debug
  55512. + # The first argument is the command name.
  55513. + cmd="$nonopt"
  55514. + test -z "$cmd" && \
  55515. + func_fatal_help "you must specify a COMMAND"
  55516. - -R*)
  55517. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  55518. - # We need an absolute path.
  55519. - case $dir in
  55520. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55521. - *)
  55522. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  55523. - exit $EXIT_FAILURE
  55524. - ;;
  55525. - esac
  55526. - case "$xrpath " in
  55527. - *" $dir "*) ;;
  55528. - *) xrpath="$xrpath $dir" ;;
  55529. - esac
  55530. - continue
  55531. - ;;
  55532. + # Handle -dlopen flags immediately.
  55533. + for file in $execute_dlfiles; do
  55534. + test -f "$file" \
  55535. + || func_fatal_help "\`$file' is not a file"
  55536. - -static)
  55537. - # The effects of -static are defined in a previous loop.
  55538. - # We used to do the same as -all-static on platforms that
  55539. - # didn't have a PIC flag, but the assumption that the effects
  55540. - # would be equivalent was wrong. It would break on at least
  55541. - # Digital Unix and AIX.
  55542. - continue
  55543. - ;;
  55544. + dir=
  55545. + case $file in
  55546. + *.la)
  55547. + # Check to see that this really is a libtool archive.
  55548. + func_lalib_unsafe_p "$file" \
  55549. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  55550. - -thread-safe)
  55551. - thread_safe=yes
  55552. - continue
  55553. + # Read the libtool library.
  55554. + dlname=
  55555. + library_names=
  55556. + func_source "$file"
  55557. +
  55558. + # Skip this library if it cannot be dlopened.
  55559. + if test -z "$dlname"; then
  55560. + # Warn if it was a shared library.
  55561. + test -n "$library_names" && \
  55562. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  55563. + continue
  55564. + fi
  55565. +
  55566. + func_dirname "$file" "" "."
  55567. + dir="$func_dirname_result"
  55568. +
  55569. + if test -f "$dir/$objdir/$dlname"; then
  55570. + dir="$dir/$objdir"
  55571. + else
  55572. + if test ! -f "$dir/$dlname"; then
  55573. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  55574. + fi
  55575. + fi
  55576. ;;
  55577. - -version-info)
  55578. - prev=vinfo
  55579. - continue
  55580. + *.lo)
  55581. + # Just add the directory containing the .lo file.
  55582. + func_dirname "$file" "" "."
  55583. + dir="$func_dirname_result"
  55584. ;;
  55585. - -version-number)
  55586. - prev=vinfo
  55587. - vinfo_number=yes
  55588. +
  55589. + *)
  55590. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  55591. continue
  55592. ;;
  55593. + esac
  55594. - -Wc,*)
  55595. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  55596. - arg=
  55597. - save_ifs="$IFS"; IFS=','
  55598. - for flag in $args; do
  55599. - IFS="$save_ifs"
  55600. - case $flag in
  55601. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55602. - flag="\"$flag\""
  55603. - ;;
  55604. - esac
  55605. - arg="$arg $wl$flag"
  55606. - compiler_flags="$compiler_flags $flag"
  55607. - done
  55608. - IFS="$save_ifs"
  55609. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  55610. - ;;
  55611. + # Get the absolute pathname.
  55612. + absdir=`cd "$dir" && pwd`
  55613. + test -n "$absdir" && dir="$absdir"
  55614. - -Wl,*)
  55615. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  55616. - arg=
  55617. - save_ifs="$IFS"; IFS=','
  55618. - for flag in $args; do
  55619. - IFS="$save_ifs"
  55620. - case $flag in
  55621. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55622. - flag="\"$flag\""
  55623. - ;;
  55624. - esac
  55625. - arg="$arg $wl$flag"
  55626. - compiler_flags="$compiler_flags $wl$flag"
  55627. - linker_flags="$linker_flags $flag"
  55628. - done
  55629. - IFS="$save_ifs"
  55630. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  55631. - ;;
  55632. + # Now add the directory to shlibpath_var.
  55633. + if eval "test -z \"\$$shlibpath_var\""; then
  55634. + eval "$shlibpath_var=\"\$dir\""
  55635. + else
  55636. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  55637. + fi
  55638. + done
  55639. - -Xcompiler)
  55640. - prev=xcompiler
  55641. - continue
  55642. - ;;
  55643. + # This variable tells wrapper scripts just to set shlibpath_var
  55644. + # rather than running their programs.
  55645. + libtool_execute_magic="$magic"
  55646. - -Xlinker)
  55647. - prev=xlinker
  55648. - continue
  55649. + # Check if any of the arguments is a wrapper script.
  55650. + args=
  55651. + for file
  55652. + do
  55653. + case $file in
  55654. + -*) ;;
  55655. + *)
  55656. + # Do a test to see if this is really a libtool program.
  55657. + if func_ltwrapper_script_p "$file"; then
  55658. + func_source "$file"
  55659. + # Transform arg to wrapped name.
  55660. + file="$progdir/$program"
  55661. + elif func_ltwrapper_executable_p "$file"; then
  55662. + func_ltwrapper_scriptname "$file"
  55663. + func_source "$func_ltwrapper_scriptname_result"
  55664. + # Transform arg to wrapped name.
  55665. + file="$progdir/$program"
  55666. + fi
  55667. ;;
  55668. + esac
  55669. + # Quote arguments (to preserve shell metacharacters).
  55670. + func_quote_for_eval "$file"
  55671. + args="$args $func_quote_for_eval_result"
  55672. + done
  55673. - -XCClinker)
  55674. - prev=xcclinker
  55675. - continue
  55676. - ;;
  55677. + if test "X$opt_dry_run" = Xfalse; then
  55678. + if test -n "$shlibpath_var"; then
  55679. + # Export the shlibpath_var.
  55680. + eval "export $shlibpath_var"
  55681. + fi
  55682. - # Some other compiler flag.
  55683. - -* | +*)
  55684. - # Unknown arguments in both finalize_command and compile_command need
  55685. - # to be aesthetically quoted because they are evaled later.
  55686. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  55687. - case $arg in
  55688. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55689. - arg="\"$arg\""
  55690. - ;;
  55691. - esac
  55692. - ;;
  55693. + # Restore saved environment variables
  55694. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  55695. + do
  55696. + eval "if test \"\${save_$lt_var+set}\" = set; then
  55697. + $lt_var=\$save_$lt_var; export $lt_var
  55698. + else
  55699. + $lt_unset $lt_var
  55700. + fi"
  55701. + done
  55702. - *.$objext)
  55703. - # A standard object.
  55704. - objs="$objs $arg"
  55705. - ;;
  55706. + # Now prepare to actually exec the command.
  55707. + exec_cmd="\$cmd$args"
  55708. + else
  55709. + # Display what would be done.
  55710. + if test -n "$shlibpath_var"; then
  55711. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  55712. + $ECHO "export $shlibpath_var"
  55713. + fi
  55714. + $ECHO "$cmd$args"
  55715. + exit $EXIT_SUCCESS
  55716. + fi
  55717. +}
  55718. - *.lo)
  55719. - # A libtool-controlled object.
  55720. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  55721. - # Check to see that this really is a libtool object.
  55722. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  55723. - pic_object=
  55724. - non_pic_object=
  55725. - # Read the .lo file
  55726. - # If there is no directory component, then add one.
  55727. - case $arg in
  55728. - */* | *\\*) . $arg ;;
  55729. - *) . ./$arg ;;
  55730. - esac
  55731. +# func_mode_finish arg...
  55732. +func_mode_finish ()
  55733. +{
  55734. + $opt_debug
  55735. + libdirs="$nonopt"
  55736. + admincmds=
  55737. - if test -z "$pic_object" || \
  55738. - test -z "$non_pic_object" ||
  55739. - test "$pic_object" = none && \
  55740. - test "$non_pic_object" = none; then
  55741. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  55742. - exit $EXIT_FAILURE
  55743. - fi
  55744. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  55745. + for dir
  55746. + do
  55747. + libdirs="$libdirs $dir"
  55748. + done
  55749. - # Extract subdirectory from the argument.
  55750. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55751. - if test "X$xdir" = "X$arg"; then
  55752. - xdir=
  55753. - else
  55754. - xdir="$xdir/"
  55755. - fi
  55756. + for libdir in $libdirs; do
  55757. + if test -n "$finish_cmds"; then
  55758. + # Do each command in the finish commands.
  55759. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  55760. +'"$cmd"'"'
  55761. + fi
  55762. + if test -n "$finish_eval"; then
  55763. + # Do the single finish_eval.
  55764. + eval cmds=\"$finish_eval\"
  55765. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  55766. + $cmds"
  55767. + fi
  55768. + done
  55769. + fi
  55770. - if test "$pic_object" != none; then
  55771. - # Prepend the subdirectory the object is found in.
  55772. - pic_object="$xdir$pic_object"
  55773. + # Exit here if they wanted silent mode.
  55774. + $opt_silent && exit $EXIT_SUCCESS
  55775. - if test "$prev" = dlfiles; then
  55776. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55777. - dlfiles="$dlfiles $pic_object"
  55778. - prev=
  55779. - continue
  55780. - else
  55781. - # If libtool objects are unsupported, then we need to preload.
  55782. - prev=dlprefiles
  55783. - fi
  55784. - fi
  55785. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  55786. + $ECHO "Libraries have been installed in:"
  55787. + for libdir in $libdirs; do
  55788. + $ECHO " $libdir"
  55789. + done
  55790. + $ECHO
  55791. + $ECHO "If you ever happen to want to link against installed libraries"
  55792. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  55793. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  55794. + $ECHO "flag during linking and do at least one of the following:"
  55795. + if test -n "$shlibpath_var"; then
  55796. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  55797. + $ECHO " during execution"
  55798. + fi
  55799. + if test -n "$runpath_var"; then
  55800. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  55801. + $ECHO " during linking"
  55802. + fi
  55803. + if test -n "$hardcode_libdir_flag_spec"; then
  55804. + libdir=LIBDIR
  55805. + eval flag=\"$hardcode_libdir_flag_spec\"
  55806. - # CHECK ME: I think I busted this. -Ossama
  55807. - if test "$prev" = dlprefiles; then
  55808. - # Preload the old-style object.
  55809. - dlprefiles="$dlprefiles $pic_object"
  55810. - prev=
  55811. - fi
  55812. + $ECHO " - use the \`$flag' linker flag"
  55813. + fi
  55814. + if test -n "$admincmds"; then
  55815. + $ECHO " - have your system administrator run these commands:$admincmds"
  55816. + fi
  55817. + if test -f /etc/ld.so.conf; then
  55818. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  55819. + fi
  55820. + $ECHO
  55821. - # A PIC object.
  55822. - libobjs="$libobjs $pic_object"
  55823. - arg="$pic_object"
  55824. - fi
  55825. + $ECHO "See any operating system documentation about shared libraries for"
  55826. + case $host in
  55827. + solaris2.[6789]|solaris2.1[0-9])
  55828. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  55829. + $ECHO "pages."
  55830. + ;;
  55831. + *)
  55832. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  55833. + ;;
  55834. + esac
  55835. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  55836. + exit $EXIT_SUCCESS
  55837. +}
  55838. - # Non-PIC object.
  55839. - if test "$non_pic_object" != none; then
  55840. - # Prepend the subdirectory the object is found in.
  55841. - non_pic_object="$xdir$non_pic_object"
  55842. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  55843. - # A standard non-PIC object
  55844. - non_pic_objects="$non_pic_objects $non_pic_object"
  55845. - if test -z "$pic_object" || test "$pic_object" = none ; then
  55846. - arg="$non_pic_object"
  55847. - fi
  55848. - fi
  55849. - else
  55850. - # Only an error if not doing a dry-run.
  55851. - if test -z "$run"; then
  55852. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  55853. - exit $EXIT_FAILURE
  55854. - else
  55855. - # Dry-run case.
  55856. - # Extract subdirectory from the argument.
  55857. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55858. - if test "X$xdir" = "X$arg"; then
  55859. - xdir=
  55860. - else
  55861. - xdir="$xdir/"
  55862. - fi
  55863. +# func_mode_install arg...
  55864. +func_mode_install ()
  55865. +{
  55866. + $opt_debug
  55867. + # There may be an optional sh(1) argument at the beginning of
  55868. + # install_prog (especially on Windows NT).
  55869. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  55870. + # Allow the use of GNU shtool's install command.
  55871. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  55872. + # Aesthetically quote it.
  55873. + func_quote_for_eval "$nonopt"
  55874. + install_prog="$func_quote_for_eval_result "
  55875. + arg=$1
  55876. + shift
  55877. + else
  55878. + install_prog=
  55879. + arg=$nonopt
  55880. + fi
  55881. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  55882. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  55883. - libobjs="$libobjs $pic_object"
  55884. - non_pic_objects="$non_pic_objects $non_pic_object"
  55885. - fi
  55886. - fi
  55887. - ;;
  55888. + # The real first argument should be the name of the installation program.
  55889. + # Aesthetically quote it.
  55890. + func_quote_for_eval "$arg"
  55891. + install_prog="$install_prog$func_quote_for_eval_result"
  55892. - *.$libext)
  55893. - # An archive.
  55894. - deplibs="$deplibs $arg"
  55895. - old_deplibs="$old_deplibs $arg"
  55896. + # We need to accept at least all the BSD install flags.
  55897. + dest=
  55898. + files=
  55899. + opts=
  55900. + prev=
  55901. + install_type=
  55902. + isdir=no
  55903. + stripme=
  55904. + for arg
  55905. + do
  55906. + if test -n "$dest"; then
  55907. + files="$files $dest"
  55908. + dest=$arg
  55909. continue
  55910. - ;;
  55911. -
  55912. - *.la)
  55913. - # A libtool-controlled library.
  55914. + fi
  55915. - if test "$prev" = dlfiles; then
  55916. - # This library was specified with -dlopen.
  55917. - dlfiles="$dlfiles $arg"
  55918. - prev=
  55919. - elif test "$prev" = dlprefiles; then
  55920. - # The library was specified with -dlpreopen.
  55921. - dlprefiles="$dlprefiles $arg"
  55922. + case $arg in
  55923. + -d) isdir=yes ;;
  55924. + -f)
  55925. + case " $install_prog " in
  55926. + *[\\\ /]cp\ *) ;;
  55927. + *) prev=$arg ;;
  55928. + esac
  55929. + ;;
  55930. + -g | -m | -o)
  55931. + prev=$arg
  55932. + ;;
  55933. + -s)
  55934. + stripme=" -s"
  55935. + continue
  55936. + ;;
  55937. + -*)
  55938. + ;;
  55939. + *)
  55940. + # If the previous option needed an argument, then skip it.
  55941. + if test -n "$prev"; then
  55942. prev=
  55943. else
  55944. - deplibs="$deplibs $arg"
  55945. + dest=$arg
  55946. + continue
  55947. fi
  55948. - continue
  55949. ;;
  55950. + esac
  55951. - # Some other compiler argument.
  55952. - *)
  55953. - # Unknown arguments in both finalize_command and compile_command need
  55954. - # to be aesthetically quoted because they are evaled later.
  55955. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  55956. - case $arg in
  55957. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55958. - arg="\"$arg\""
  55959. - ;;
  55960. - esac
  55961. - ;;
  55962. - esac # arg
  55963. + # Aesthetically quote the argument.
  55964. + func_quote_for_eval "$arg"
  55965. + install_prog="$install_prog $func_quote_for_eval_result"
  55966. + done
  55967. - # Now actually substitute the argument into the commands.
  55968. - if test -n "$arg"; then
  55969. - compile_command="$compile_command $arg"
  55970. - finalize_command="$finalize_command $arg"
  55971. - fi
  55972. - done # argument parsing loop
  55973. + test -z "$install_prog" && \
  55974. + func_fatal_help "you must specify an install program"
  55975. - if test -n "$prev"; then
  55976. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  55977. - $echo "$help" 1>&2
  55978. - exit $EXIT_FAILURE
  55979. - fi
  55980. + test -n "$prev" && \
  55981. + func_fatal_help "the \`$prev' option requires an argument"
  55982. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  55983. - eval arg=\"$export_dynamic_flag_spec\"
  55984. - compile_command="$compile_command $arg"
  55985. - finalize_command="$finalize_command $arg"
  55986. + if test -z "$files"; then
  55987. + if test -z "$dest"; then
  55988. + func_fatal_help "no file or destination specified"
  55989. + else
  55990. + func_fatal_help "you must specify a destination"
  55991. + fi
  55992. fi
  55993. - oldlibs=
  55994. - # calculate the name of the file, without its directory
  55995. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  55996. - libobjs_save="$libobjs"
  55997. + # Strip any trailing slash from the destination.
  55998. + func_stripname '' '/' "$dest"
  55999. + dest=$func_stripname_result
  56000. - if test -n "$shlibpath_var"; then
  56001. - # get the directories listed in $shlibpath_var
  56002. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56003. + # Check to see that the destination is a directory.
  56004. + test -d "$dest" && isdir=yes
  56005. + if test "$isdir" = yes; then
  56006. + destdir="$dest"
  56007. + destname=
  56008. else
  56009. - shlib_search_path=
  56010. - fi
  56011. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56012. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56013. + func_dirname_and_basename "$dest" "" "."
  56014. + destdir="$func_dirname_result"
  56015. + destname="$func_basename_result"
  56016. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  56017. - if test "X$output_objdir" = "X$output"; then
  56018. - output_objdir="$objdir"
  56019. - else
  56020. - output_objdir="$output_objdir/$objdir"
  56021. - fi
  56022. - # Create the object directory.
  56023. - if test ! -d "$output_objdir"; then
  56024. - $show "$mkdir $output_objdir"
  56025. - $run $mkdir $output_objdir
  56026. - status=$?
  56027. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  56028. - exit $status
  56029. - fi
  56030. + # Not a directory, so check to see that there is only one file specified.
  56031. + set dummy $files; shift
  56032. + test "$#" -gt 1 && \
  56033. + func_fatal_help "\`$dest' is not a directory"
  56034. fi
  56035. -
  56036. - # Determine the type of output
  56037. - case $output in
  56038. - "")
  56039. - $echo "$modename: you must specify an output file" 1>&2
  56040. - $echo "$help" 1>&2
  56041. - exit $EXIT_FAILURE
  56042. - ;;
  56043. - *.$libext) linkmode=oldlib ;;
  56044. - *.lo | *.$objext) linkmode=obj ;;
  56045. - *.la) linkmode=lib ;;
  56046. - *) linkmode=prog ;; # Anything else should be a program.
  56047. - esac
  56048. -
  56049. - case $host in
  56050. - *cygwin* | *mingw* | *pw32*)
  56051. - # don't eliminate duplications in $postdeps and $predeps
  56052. - duplicate_compiler_generated_deps=yes
  56053. - ;;
  56054. + case $destdir in
  56055. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56056. *)
  56057. - duplicate_compiler_generated_deps=$duplicate_deps
  56058. + for file in $files; do
  56059. + case $file in
  56060. + *.lo) ;;
  56061. + *)
  56062. + func_fatal_help "\`$destdir' must be an absolute directory name"
  56063. + ;;
  56064. + esac
  56065. + done
  56066. ;;
  56067. esac
  56068. - specialdeplibs=
  56069. - libs=
  56070. - # Find all interdependent deplibs by searching for libraries
  56071. - # that are linked more than once (e.g. -la -lb -la)
  56072. - for deplib in $deplibs; do
  56073. - if test "X$duplicate_deps" = "Xyes" ; then
  56074. - case "$libs " in
  56075. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56076. - esac
  56077. - fi
  56078. - libs="$libs $deplib"
  56079. - done
  56080. + # This variable tells wrapper scripts just to set variables rather
  56081. + # than running their programs.
  56082. + libtool_install_magic="$magic"
  56083. - if test "$linkmode" = lib; then
  56084. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56085. + staticlibs=
  56086. + future_libdirs=
  56087. + current_libdirs=
  56088. + for file in $files; do
  56089. - # Compute libraries that are listed more than once in $predeps
  56090. - # $postdeps and mark them as special (i.e., whose duplicates are
  56091. - # not to be eliminated).
  56092. - pre_post_deps=
  56093. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  56094. - for pre_post_dep in $predeps $postdeps; do
  56095. - case "$pre_post_deps " in
  56096. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56097. - esac
  56098. - pre_post_deps="$pre_post_deps $pre_post_dep"
  56099. - done
  56100. - fi
  56101. - pre_post_deps=
  56102. - fi
  56103. + # Do each installation.
  56104. + case $file in
  56105. + *.$libext)
  56106. + # Do the static libraries later.
  56107. + staticlibs="$staticlibs $file"
  56108. + ;;
  56109. - deplibs=
  56110. - newdependency_libs=
  56111. - newlib_search_path=
  56112. - need_relink=no # whether we're linking any uninstalled libtool libraries
  56113. - notinst_deplibs= # not-installed libtool libraries
  56114. - notinst_path= # paths that contain not-installed libtool libraries
  56115. - case $linkmode in
  56116. - lib)
  56117. - passes="conv link"
  56118. - for file in $dlfiles $dlprefiles; do
  56119. - case $file in
  56120. - *.la) ;;
  56121. - *)
  56122. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  56123. - exit $EXIT_FAILURE
  56124. - ;;
  56125. + *.la)
  56126. + # Check to see that this really is a libtool archive.
  56127. + func_lalib_unsafe_p "$file" \
  56128. + || func_fatal_help "\`$file' is not a valid libtool archive"
  56129. +
  56130. + library_names=
  56131. + old_library=
  56132. + relink_command=
  56133. + func_source "$file"
  56134. +
  56135. + # Add the libdir to current_libdirs if it is the destination.
  56136. + if test "X$destdir" = "X$libdir"; then
  56137. + case "$current_libdirs " in
  56138. + *" $libdir "*) ;;
  56139. + *) current_libdirs="$current_libdirs $libdir" ;;
  56140. esac
  56141. - done
  56142. - ;;
  56143. - prog)
  56144. - compile_deplibs=
  56145. - finalize_deplibs=
  56146. - alldeplibs=no
  56147. - newdlfiles=
  56148. - newdlprefiles=
  56149. - passes="conv scan dlopen dlpreopen link"
  56150. - ;;
  56151. - *) passes="conv"
  56152. - ;;
  56153. - esac
  56154. - for pass in $passes; do
  56155. - if test "$linkmode,$pass" = "lib,link" ||
  56156. - test "$linkmode,$pass" = "prog,scan"; then
  56157. - libs="$deplibs"
  56158. - deplibs=
  56159. - fi
  56160. - if test "$linkmode" = prog; then
  56161. - case $pass in
  56162. - dlopen) libs="$dlfiles" ;;
  56163. - dlpreopen) libs="$dlprefiles" ;;
  56164. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  56165. - esac
  56166. - fi
  56167. - if test "$pass" = dlopen; then
  56168. - # Collect dlpreopened libraries
  56169. - save_deplibs="$deplibs"
  56170. - deplibs=
  56171. - fi
  56172. - for deplib in $libs; do
  56173. - lib=
  56174. - found=no
  56175. - case $deplib in
  56176. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  56177. - if test "$linkmode,$pass" = "prog,link"; then
  56178. - compile_deplibs="$deplib $compile_deplibs"
  56179. - finalize_deplibs="$deplib $finalize_deplibs"
  56180. + else
  56181. + # Note the libdir as a future libdir.
  56182. + case "$future_libdirs " in
  56183. + *" $libdir "*) ;;
  56184. + *) future_libdirs="$future_libdirs $libdir" ;;
  56185. + esac
  56186. + fi
  56187. +
  56188. + func_dirname "$file" "/" ""
  56189. + dir="$func_dirname_result"
  56190. + dir="$dir$objdir"
  56191. +
  56192. + if test -n "$relink_command"; then
  56193. + # Determine the prefix the user has applied to our future dir.
  56194. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  56195. +
  56196. + # Don't allow the user to place us outside of our expected
  56197. + # location b/c this prevents finding dependent libraries that
  56198. + # are installed to the same prefix.
  56199. + # At present, this check doesn't affect windows .dll's that
  56200. + # are installed into $libdir/../bin (currently, that works fine)
  56201. + # but it's something to keep an eye on.
  56202. + test "$inst_prefix_dir" = "$destdir" && \
  56203. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  56204. +
  56205. + if test -n "$inst_prefix_dir"; then
  56206. + # Stick the inst_prefix_dir data into the link command.
  56207. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  56208. else
  56209. - deplibs="$deplib $deplibs"
  56210. - fi
  56211. - continue
  56212. - ;;
  56213. - -l*)
  56214. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  56215. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  56216. - continue
  56217. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  56218. fi
  56219. - if test "$pass" = conv; then
  56220. - deplibs="$deplib $deplibs"
  56221. - continue
  56222. +
  56223. + func_warning "relinking \`$file'"
  56224. + func_show_eval "$relink_command" \
  56225. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  56226. + fi
  56227. +
  56228. + # See the names of the shared library.
  56229. + set dummy $library_names; shift
  56230. + if test -n "$1"; then
  56231. + realname="$1"
  56232. + shift
  56233. +
  56234. + srcname="$realname"
  56235. + test -n "$relink_command" && srcname="$realname"T
  56236. +
  56237. + # Install the shared library and build the symlinks.
  56238. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  56239. + 'exit $?'
  56240. + tstripme="$stripme"
  56241. + case $host_os in
  56242. + cygwin* | mingw* | pw32* | cegcc*)
  56243. + case $realname in
  56244. + *.dll.a)
  56245. + tstripme=""
  56246. + ;;
  56247. + esac
  56248. + ;;
  56249. + esac
  56250. + if test -n "$tstripme" && test -n "$striplib"; then
  56251. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  56252. fi
  56253. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  56254. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56255. - for search_ext in .la $std_shrext .so .a; do
  56256. - # Search the libtool library
  56257. - lib="$searchdir/lib${name}${search_ext}"
  56258. - if test -f "$lib"; then
  56259. - if test "$search_ext" = ".la"; then
  56260. - found=yes
  56261. - else
  56262. - found=no
  56263. - fi
  56264. - break 2
  56265. - fi
  56266. +
  56267. + if test "$#" -gt 0; then
  56268. + # Delete the old symlinks, and create new ones.
  56269. + # Try `ln -sf' first, because the `ln' binary might depend on
  56270. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  56271. + # so we also need to try rm && ln -s.
  56272. + for linkname
  56273. + do
  56274. + test "$linkname" != "$realname" \
  56275. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  56276. done
  56277. - done
  56278. - if test "$found" != yes; then
  56279. - # deplib doesn't seem to be a libtool library
  56280. - if test "$linkmode,$pass" = "prog,link"; then
  56281. - compile_deplibs="$deplib $compile_deplibs"
  56282. - finalize_deplibs="$deplib $finalize_deplibs"
  56283. - else
  56284. - deplibs="$deplib $deplibs"
  56285. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56286. - fi
  56287. - continue
  56288. - else # deplib is a libtool library
  56289. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56290. - # We need to do some special things here, and not later.
  56291. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56292. - case " $predeps $postdeps " in
  56293. - *" $deplib "*)
  56294. - if (${SED} -e '2q' $lib |
  56295. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56296. - library_names=
  56297. - old_library=
  56298. - case $lib in
  56299. - */* | *\\*) . $lib ;;
  56300. - *) . ./$lib ;;
  56301. - esac
  56302. - for l in $old_library $library_names; do
  56303. - ll="$l"
  56304. - done
  56305. - if test "X$ll" = "X$old_library" ; then # only static version available
  56306. - found=no
  56307. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  56308. - test "X$ladir" = "X$lib" && ladir="."
  56309. - lib=$ladir/$old_library
  56310. - if test "$linkmode,$pass" = "prog,link"; then
  56311. - compile_deplibs="$deplib $compile_deplibs"
  56312. - finalize_deplibs="$deplib $finalize_deplibs"
  56313. - else
  56314. - deplibs="$deplib $deplibs"
  56315. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56316. - fi
  56317. - continue
  56318. - fi
  56319. - fi
  56320. - ;;
  56321. - *) ;;
  56322. - esac
  56323. - fi
  56324. fi
  56325. - ;; # -l
  56326. - -L*)
  56327. - case $linkmode in
  56328. - lib)
  56329. - deplibs="$deplib $deplibs"
  56330. - test "$pass" = conv && continue
  56331. - newdependency_libs="$deplib $newdependency_libs"
  56332. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  56333. - ;;
  56334. - prog)
  56335. - if test "$pass" = conv; then
  56336. - deplibs="$deplib $deplibs"
  56337. - continue
  56338. - fi
  56339. - if test "$pass" = scan; then
  56340. - deplibs="$deplib $deplibs"
  56341. - else
  56342. - compile_deplibs="$deplib $compile_deplibs"
  56343. - finalize_deplibs="$deplib $finalize_deplibs"
  56344. - fi
  56345. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  56346. - ;;
  56347. - *)
  56348. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  56349. - ;;
  56350. - esac # linkmode
  56351. - continue
  56352. - ;; # -L
  56353. - -R*)
  56354. - if test "$pass" = link; then
  56355. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  56356. - # Make sure the xrpath contains only unique directories.
  56357. - case "$xrpath " in
  56358. - *" $dir "*) ;;
  56359. - *) xrpath="$xrpath $dir" ;;
  56360. - esac
  56361. - fi
  56362. - deplibs="$deplib $deplibs"
  56363. - continue
  56364. +
  56365. + # Do each command in the postinstall commands.
  56366. + lib="$destdir/$realname"
  56367. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  56368. + fi
  56369. +
  56370. + # Install the pseudo-library for information purposes.
  56371. + func_basename "$file"
  56372. + name="$func_basename_result"
  56373. + instname="$dir/$name"i
  56374. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  56375. +
  56376. + # Maybe install the static library, too.
  56377. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  56378. + ;;
  56379. +
  56380. + *.lo)
  56381. + # Install (i.e. copy) a libtool object.
  56382. +
  56383. + # Figure out destination file name, if it wasn't already specified.
  56384. + if test -n "$destname"; then
  56385. + destfile="$destdir/$destname"
  56386. + else
  56387. + func_basename "$file"
  56388. + destfile="$func_basename_result"
  56389. + destfile="$destdir/$destfile"
  56390. + fi
  56391. +
  56392. + # Deduce the name of the destination old-style object file.
  56393. + case $destfile in
  56394. + *.lo)
  56395. + func_lo2o "$destfile"
  56396. + staticdest=$func_lo2o_result
  56397. ;;
  56398. - *.la) lib="$deplib" ;;
  56399. - *.$libext)
  56400. - if test "$pass" = conv; then
  56401. - deplibs="$deplib $deplibs"
  56402. - continue
  56403. - fi
  56404. - case $linkmode in
  56405. - lib)
  56406. - valid_a_lib=no
  56407. - case $deplibs_check_method in
  56408. - match_pattern*)
  56409. - set dummy $deplibs_check_method
  56410. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  56411. - if eval $echo \"$deplib\" 2>/dev/null \
  56412. - | $SED 10q \
  56413. - | $EGREP "$match_pattern_regex" > /dev/null; then
  56414. - valid_a_lib=yes
  56415. - fi
  56416. - ;;
  56417. - pass_all)
  56418. - valid_a_lib=yes
  56419. - ;;
  56420. - esac
  56421. - if test "$valid_a_lib" != yes; then
  56422. - $echo
  56423. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  56424. - $echo "*** I have the capability to make that library automatically link in when"
  56425. - $echo "*** you link to this library. But I can only do this if you have a"
  56426. - $echo "*** shared version of the library, which you do not appear to have"
  56427. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  56428. - $echo "*** that it is just a static archive that I should not used here."
  56429. - else
  56430. - $echo
  56431. - $echo "*** Warning: Linking the shared library $output against the"
  56432. - $echo "*** static library $deplib is not portable!"
  56433. - deplibs="$deplib $deplibs"
  56434. - fi
  56435. - continue
  56436. - ;;
  56437. - prog)
  56438. - if test "$pass" != link; then
  56439. - deplibs="$deplib $deplibs"
  56440. - else
  56441. - compile_deplibs="$deplib $compile_deplibs"
  56442. - finalize_deplibs="$deplib $finalize_deplibs"
  56443. - fi
  56444. - continue
  56445. - ;;
  56446. - esac # linkmode
  56447. - ;; # *.$libext
  56448. - *.lo | *.$objext)
  56449. - if test "$pass" = conv; then
  56450. - deplibs="$deplib $deplibs"
  56451. - elif test "$linkmode" = prog; then
  56452. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  56453. - # If there is no dlopen support or we're linking statically,
  56454. - # we need to preload.
  56455. - newdlprefiles="$newdlprefiles $deplib"
  56456. - compile_deplibs="$deplib $compile_deplibs"
  56457. - finalize_deplibs="$deplib $finalize_deplibs"
  56458. - else
  56459. - newdlfiles="$newdlfiles $deplib"
  56460. - fi
  56461. - fi
  56462. - continue
  56463. + *.$objext)
  56464. + staticdest="$destfile"
  56465. + destfile=
  56466. ;;
  56467. - %DEPLIBS%)
  56468. - alldeplibs=yes
  56469. - continue
  56470. + *)
  56471. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  56472. ;;
  56473. - esac # case $deplib
  56474. - if test "$found" = yes || test -f "$lib"; then :
  56475. - else
  56476. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  56477. - exit $EXIT_FAILURE
  56478. + esac
  56479. +
  56480. + # Install the libtool object if requested.
  56481. + test -n "$destfile" && \
  56482. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  56483. +
  56484. + # Install the old object if enabled.
  56485. + if test "$build_old_libs" = yes; then
  56486. + # Deduce the name of the old-style object file.
  56487. + func_lo2o "$file"
  56488. + staticobj=$func_lo2o_result
  56489. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  56490. fi
  56491. + exit $EXIT_SUCCESS
  56492. + ;;
  56493. - # Check to see that this really is a libtool archive.
  56494. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  56495. + *)
  56496. + # Figure out destination file name, if it wasn't already specified.
  56497. + if test -n "$destname"; then
  56498. + destfile="$destdir/$destname"
  56499. else
  56500. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56501. - exit $EXIT_FAILURE
  56502. + func_basename "$file"
  56503. + destfile="$func_basename_result"
  56504. + destfile="$destdir/$destfile"
  56505. fi
  56506. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  56507. - test "X$ladir" = "X$lib" && ladir="."
  56508. -
  56509. - dlname=
  56510. - dlopen=
  56511. - dlpreopen=
  56512. - libdir=
  56513. - library_names=
  56514. - old_library=
  56515. - # If the library was installed with an old release of libtool,
  56516. - # it will not redefine variables installed, or shouldnotlink
  56517. - installed=yes
  56518. - shouldnotlink=no
  56519. + # If the file is missing, and there is a .exe on the end, strip it
  56520. + # because it is most likely a libtool script we actually want to
  56521. + # install
  56522. + stripped_ext=""
  56523. + case $file in
  56524. + *.exe)
  56525. + if test ! -f "$file"; then
  56526. + func_stripname '' '.exe' "$file"
  56527. + file=$func_stripname_result
  56528. + stripped_ext=".exe"
  56529. + fi
  56530. + ;;
  56531. + esac
  56532. - # Read the .la file
  56533. - case $lib in
  56534. - */* | *\\*) . $lib ;;
  56535. - *) . ./$lib ;;
  56536. + # Do a test to see if this is really a libtool program.
  56537. + case $host in
  56538. + *cygwin* | *mingw*)
  56539. + if func_ltwrapper_executable_p "$file"; then
  56540. + func_ltwrapper_scriptname "$file"
  56541. + wrapper=$func_ltwrapper_scriptname_result
  56542. + else
  56543. + func_stripname '' '.exe' "$file"
  56544. + wrapper=$func_stripname_result
  56545. + fi
  56546. + ;;
  56547. + *)
  56548. + wrapper=$file
  56549. + ;;
  56550. esac
  56551. + if func_ltwrapper_script_p "$wrapper"; then
  56552. + notinst_deplibs=
  56553. + relink_command=
  56554. - if test "$linkmode,$pass" = "lib,link" ||
  56555. - test "$linkmode,$pass" = "prog,scan" ||
  56556. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  56557. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  56558. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  56559. - fi
  56560. + func_source "$wrapper"
  56561. - if test "$pass" = conv; then
  56562. - # Only check for convenience libraries
  56563. - deplibs="$lib $deplibs"
  56564. - if test -z "$libdir"; then
  56565. - if test -z "$old_library"; then
  56566. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  56567. - exit $EXIT_FAILURE
  56568. - fi
  56569. - # It is a libtool convenience library, so add in its objects.
  56570. - convenience="$convenience $ladir/$objdir/$old_library"
  56571. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  56572. - tmp_libs=
  56573. - for deplib in $dependency_libs; do
  56574. - deplibs="$deplib $deplibs"
  56575. - if test "X$duplicate_deps" = "Xyes" ; then
  56576. - case "$tmp_libs " in
  56577. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56578. - esac
  56579. - fi
  56580. - tmp_libs="$tmp_libs $deplib"
  56581. - done
  56582. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  56583. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  56584. - exit $EXIT_FAILURE
  56585. - fi
  56586. - continue
  56587. - fi # $pass = conv
  56588. + # Check the variables that should have been set.
  56589. + test -z "$generated_by_libtool_version" && \
  56590. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  56591. + finalize=yes
  56592. + for lib in $notinst_deplibs; do
  56593. + # Check to see that each library is installed.
  56594. + libdir=
  56595. + if test -f "$lib"; then
  56596. + func_source "$lib"
  56597. + fi
  56598. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  56599. + if test -n "$libdir" && test ! -f "$libfile"; then
  56600. + func_warning "\`$lib' has not been installed in \`$libdir'"
  56601. + finalize=no
  56602. + fi
  56603. + done
  56604. - # Get the name of the library we link against.
  56605. - linklib=
  56606. - for l in $old_library $library_names; do
  56607. - linklib="$l"
  56608. - done
  56609. - if test -z "$linklib"; then
  56610. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  56611. - exit $EXIT_FAILURE
  56612. - fi
  56613. + relink_command=
  56614. + func_source "$wrapper"
  56615. - # This library was specified with -dlopen.
  56616. - if test "$pass" = dlopen; then
  56617. - if test -z "$libdir"; then
  56618. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  56619. - exit $EXIT_FAILURE
  56620. - fi
  56621. - if test -z "$dlname" ||
  56622. - test "$dlopen_support" != yes ||
  56623. - test "$build_libtool_libs" = no; then
  56624. - # If there is no dlname, no dlopen support or we're linking
  56625. - # statically, we need to preload. We also need to preload any
  56626. - # dependent libraries so libltdl's deplib preloader doesn't
  56627. - # bomb out in the load deplibs phase.
  56628. - dlprefiles="$dlprefiles $lib $dependency_libs"
  56629. + outputname=
  56630. + if test "$fast_install" = no && test -n "$relink_command"; then
  56631. + $opt_dry_run || {
  56632. + if test "$finalize" = yes; then
  56633. + tmpdir=`func_mktempdir`
  56634. + func_basename "$file$stripped_ext"
  56635. + file="$func_basename_result"
  56636. + outputname="$tmpdir/$file"
  56637. + # Replace the output file specification.
  56638. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  56639. +
  56640. + $opt_silent || {
  56641. + func_quote_for_expand "$relink_command"
  56642. + eval "func_echo $func_quote_for_expand_result"
  56643. + }
  56644. + if eval "$relink_command"; then :
  56645. + else
  56646. + func_error "error: relink \`$file' with the above command before installing it"
  56647. + $opt_dry_run || ${RM}r "$tmpdir"
  56648. + continue
  56649. + fi
  56650. + file="$outputname"
  56651. + else
  56652. + func_warning "cannot relink \`$file'"
  56653. + fi
  56654. + }
  56655. else
  56656. - newdlfiles="$newdlfiles $lib"
  56657. + # Install the binary that we compiled earlier.
  56658. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  56659. fi
  56660. - continue
  56661. - fi # $pass = dlopen
  56662. + fi
  56663. - # We need an absolute path.
  56664. - case $ladir in
  56665. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  56666. - *)
  56667. - abs_ladir=`cd "$ladir" && pwd`
  56668. - if test -z "$abs_ladir"; then
  56669. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  56670. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  56671. - abs_ladir="$ladir"
  56672. - fi
  56673. + # remove .exe since cygwin /usr/bin/install will append another
  56674. + # one anyway
  56675. + case $install_prog,$host in
  56676. + */usr/bin/install*,*cygwin*)
  56677. + case $file:$destfile in
  56678. + *.exe:*.exe)
  56679. + # this is ok
  56680. + ;;
  56681. + *.exe:*)
  56682. + destfile=$destfile.exe
  56683. + ;;
  56684. + *:*.exe)
  56685. + func_stripname '' '.exe' "$destfile"
  56686. + destfile=$func_stripname_result
  56687. + ;;
  56688. + esac
  56689. ;;
  56690. esac
  56691. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  56692. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  56693. + $opt_dry_run || if test -n "$outputname"; then
  56694. + ${RM}r "$tmpdir"
  56695. + fi
  56696. + ;;
  56697. + esac
  56698. + done
  56699. - # Find the relevant object directory and library name.
  56700. - if test "X$installed" = Xyes; then
  56701. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56702. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  56703. - dir="$ladir"
  56704. - absdir="$abs_ladir"
  56705. - libdir="$abs_ladir"
  56706. - else
  56707. - dir="$libdir"
  56708. - absdir="$libdir"
  56709. - fi
  56710. - else
  56711. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56712. - dir="$ladir"
  56713. - absdir="$abs_ladir"
  56714. - # Remove this search path later
  56715. - notinst_path="$notinst_path $abs_ladir"
  56716. - else
  56717. - dir="$ladir/$objdir"
  56718. - absdir="$abs_ladir/$objdir"
  56719. - # Remove this search path later
  56720. - notinst_path="$notinst_path $abs_ladir"
  56721. - fi
  56722. - fi # $installed = yes
  56723. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  56724. + for file in $staticlibs; do
  56725. + func_basename "$file"
  56726. + name="$func_basename_result"
  56727. - # This library was specified with -dlpreopen.
  56728. - if test "$pass" = dlpreopen; then
  56729. - if test -z "$libdir"; then
  56730. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  56731. - exit $EXIT_FAILURE
  56732. - fi
  56733. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  56734. - # are required to link).
  56735. - if test -n "$old_library"; then
  56736. - newdlprefiles="$newdlprefiles $dir/$old_library"
  56737. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  56738. - elif test -n "$dlname"; then
  56739. - newdlprefiles="$newdlprefiles $dir/$dlname"
  56740. - else
  56741. - newdlprefiles="$newdlprefiles $dir/$linklib"
  56742. - fi
  56743. - fi # $pass = dlpreopen
  56744. + # Set up the ranlib parameters.
  56745. + oldlib="$destdir/$name"
  56746. - if test -z "$libdir"; then
  56747. - # Link the convenience library
  56748. - if test "$linkmode" = lib; then
  56749. - deplibs="$dir/$old_library $deplibs"
  56750. - elif test "$linkmode,$pass" = "prog,link"; then
  56751. - compile_deplibs="$dir/$old_library $compile_deplibs"
  56752. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  56753. - else
  56754. - deplibs="$lib $deplibs" # used for prog,scan pass
  56755. - fi
  56756. - continue
  56757. - fi
  56758. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  56759. + if test -n "$stripme" && test -n "$old_striplib"; then
  56760. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  56761. + fi
  56762. - if test "$linkmode" = prog && test "$pass" != link; then
  56763. - newlib_search_path="$newlib_search_path $ladir"
  56764. - deplibs="$lib $deplibs"
  56765. + # Do each command in the postinstall commands.
  56766. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  56767. + done
  56768. - linkalldeplibs=no
  56769. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  56770. - test "$build_libtool_libs" = no; then
  56771. - linkalldeplibs=yes
  56772. - fi
  56773. + test -n "$future_libdirs" && \
  56774. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  56775. - tmp_libs=
  56776. - for deplib in $dependency_libs; do
  56777. - case $deplib in
  56778. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  56779. - esac
  56780. - # Need to link against all dependency_libs?
  56781. - if test "$linkalldeplibs" = yes; then
  56782. - deplibs="$deplib $deplibs"
  56783. - else
  56784. - # Need to hardcode shared library paths
  56785. - # or/and link against static libraries
  56786. - newdependency_libs="$deplib $newdependency_libs"
  56787. - fi
  56788. - if test "X$duplicate_deps" = "Xyes" ; then
  56789. - case "$tmp_libs " in
  56790. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56791. - esac
  56792. - fi
  56793. - tmp_libs="$tmp_libs $deplib"
  56794. - done # for deplib
  56795. - continue
  56796. - fi # $linkmode = prog...
  56797. + if test -n "$current_libdirs"; then
  56798. + # Maybe just do a dry run.
  56799. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  56800. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  56801. + else
  56802. + exit $EXIT_SUCCESS
  56803. + fi
  56804. +}
  56805. - if test "$linkmode,$pass" = "prog,link"; then
  56806. - if test -n "$library_names" &&
  56807. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  56808. - # We need to hardcode the library path
  56809. - if test -n "$shlibpath_var"; then
  56810. - # Make sure the rpath contains only unique directories.
  56811. - case "$temp_rpath " in
  56812. - *" $dir "*) ;;
  56813. - *" $absdir "*) ;;
  56814. - *) temp_rpath="$temp_rpath $dir" ;;
  56815. - esac
  56816. - fi
  56817. +test "$mode" = install && func_mode_install ${1+"$@"}
  56818. - # Hardcode the library path.
  56819. - # Skip directories that are in the system default run-time
  56820. - # search path.
  56821. - case " $sys_lib_dlsearch_path " in
  56822. - *" $absdir "*) ;;
  56823. - *)
  56824. - case "$compile_rpath " in
  56825. - *" $absdir "*) ;;
  56826. - *) compile_rpath="$compile_rpath $absdir"
  56827. +
  56828. +# func_generate_dlsyms outputname originator pic_p
  56829. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  56830. +# a dlpreopen symbol table.
  56831. +func_generate_dlsyms ()
  56832. +{
  56833. + $opt_debug
  56834. + my_outputname="$1"
  56835. + my_originator="$2"
  56836. + my_pic_p="${3-no}"
  56837. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  56838. + my_dlsyms=
  56839. +
  56840. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56841. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  56842. + my_dlsyms="${my_outputname}S.c"
  56843. + else
  56844. + func_error "not configured to extract global symbols from dlpreopened files"
  56845. + fi
  56846. + fi
  56847. +
  56848. + if test -n "$my_dlsyms"; then
  56849. + case $my_dlsyms in
  56850. + "") ;;
  56851. + *.c)
  56852. + # Discover the nlist of each of the dlfiles.
  56853. + nlist="$output_objdir/${my_outputname}.nm"
  56854. +
  56855. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  56856. +
  56857. + # Parse the name list into a source file.
  56858. + func_verbose "creating $output_objdir/$my_dlsyms"
  56859. +
  56860. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  56861. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  56862. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  56863. +
  56864. +#ifdef __cplusplus
  56865. +extern \"C\" {
  56866. +#endif
  56867. +
  56868. +/* External symbol declarations for the compiler. */\
  56869. +"
  56870. +
  56871. + if test "$dlself" = yes; then
  56872. + func_verbose "generating symbol list for \`$output'"
  56873. +
  56874. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  56875. +
  56876. + # Add our own program objects to the symbol list.
  56877. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56878. + for progfile in $progfiles; do
  56879. + func_verbose "extracting global C symbols from \`$progfile'"
  56880. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  56881. + done
  56882. +
  56883. + if test -n "$exclude_expsyms"; then
  56884. + $opt_dry_run || {
  56885. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  56886. + eval '$MV "$nlist"T "$nlist"'
  56887. + }
  56888. + fi
  56889. +
  56890. + if test -n "$export_symbols_regex"; then
  56891. + $opt_dry_run || {
  56892. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  56893. + eval '$MV "$nlist"T "$nlist"'
  56894. + }
  56895. + fi
  56896. +
  56897. + # Prepare the list of exported symbols
  56898. + if test -z "$export_symbols"; then
  56899. + export_symbols="$output_objdir/$outputname.exp"
  56900. + $opt_dry_run || {
  56901. + $RM $export_symbols
  56902. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  56903. + case $host in
  56904. + *cygwin* | *mingw* | *cegcc* )
  56905. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  56906. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  56907. + ;;
  56908. esac
  56909. - ;;
  56910. - esac
  56911. - case " $sys_lib_dlsearch_path " in
  56912. - *" $libdir "*) ;;
  56913. - *)
  56914. - case "$finalize_rpath " in
  56915. - *" $libdir "*) ;;
  56916. - *) finalize_rpath="$finalize_rpath $libdir"
  56917. + }
  56918. + else
  56919. + $opt_dry_run || {
  56920. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  56921. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  56922. + eval '$MV "$nlist"T "$nlist"'
  56923. + case $host in
  56924. + *cygwin | *mingw* | *cegcc* )
  56925. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  56926. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  56927. + ;;
  56928. esac
  56929. - ;;
  56930. - esac
  56931. - fi # $linkmode,$pass = prog,link...
  56932. -
  56933. - if test "$alldeplibs" = yes &&
  56934. - { test "$deplibs_check_method" = pass_all ||
  56935. - { test "$build_libtool_libs" = yes &&
  56936. - test -n "$library_names"; }; }; then
  56937. - # We only need to search for static libraries
  56938. - continue
  56939. + }
  56940. fi
  56941. fi
  56942. - link_static=no # Whether the deplib will be linked statically
  56943. - if test -n "$library_names" &&
  56944. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  56945. - if test "$installed" = no; then
  56946. - notinst_deplibs="$notinst_deplibs $lib"
  56947. - need_relink=yes
  56948. + for dlprefile in $dlprefiles; do
  56949. + func_verbose "extracting global C symbols from \`$dlprefile'"
  56950. + func_basename "$dlprefile"
  56951. + name="$func_basename_result"
  56952. + $opt_dry_run || {
  56953. + eval '$ECHO ": $name " >> "$nlist"'
  56954. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  56955. + }
  56956. + done
  56957. +
  56958. + $opt_dry_run || {
  56959. + # Make sure we have at least an empty file.
  56960. + test -f "$nlist" || : > "$nlist"
  56961. +
  56962. + if test -n "$exclude_expsyms"; then
  56963. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  56964. + $MV "$nlist"T "$nlist"
  56965. fi
  56966. - # This is a shared library
  56967. - # Warn about portability, can't link against -module's on
  56968. - # some systems (darwin)
  56969. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  56970. - $echo
  56971. - if test "$linkmode" = prog; then
  56972. - $echo "*** Warning: Linking the executable $output against the loadable module"
  56973. - else
  56974. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  56975. - fi
  56976. - $echo "*** $linklib is not portable!"
  56977. + # Try sorting and uniquifying the output.
  56978. + if $GREP -v "^: " < "$nlist" |
  56979. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  56980. + sort -k 3
  56981. + else
  56982. + sort +2
  56983. + fi |
  56984. + uniq > "$nlist"S; then
  56985. + :
  56986. + else
  56987. + $GREP -v "^: " < "$nlist" > "$nlist"S
  56988. fi
  56989. - if test "$linkmode" = lib &&
  56990. - test "$hardcode_into_libs" = yes; then
  56991. - # Hardcode the library path.
  56992. - # Skip directories that are in the system default run-time
  56993. - # search path.
  56994. - case " $sys_lib_dlsearch_path " in
  56995. - *" $absdir "*) ;;
  56996. - *)
  56997. - case "$compile_rpath " in
  56998. - *" $absdir "*) ;;
  56999. - *) compile_rpath="$compile_rpath $absdir"
  57000. - esac
  57001. - ;;
  57002. - esac
  57003. - case " $sys_lib_dlsearch_path " in
  57004. - *" $libdir "*) ;;
  57005. - *)
  57006. - case "$finalize_rpath " in
  57007. - *" $libdir "*) ;;
  57008. - *) finalize_rpath="$finalize_rpath $libdir"
  57009. - esac
  57010. - ;;
  57011. - esac
  57012. +
  57013. + if test -f "$nlist"S; then
  57014. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  57015. + else
  57016. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  57017. fi
  57018. - if test -n "$old_archive_from_expsyms_cmds"; then
  57019. - # figure out the soname
  57020. - set dummy $library_names
  57021. - realname="$2"
  57022. - shift; shift
  57023. - libname=`eval \\$echo \"$libname_spec\"`
  57024. - # use dlname if we got it. it's perfectly good, no?
  57025. - if test -n "$dlname"; then
  57026. - soname="$dlname"
  57027. - elif test -n "$soname_spec"; then
  57028. - # bleh windows
  57029. - case $host in
  57030. - *cygwin* | mingw*)
  57031. - major=`expr $current - $age`
  57032. - versuffix="-$major"
  57033. - ;;
  57034. - esac
  57035. - eval soname=\"$soname_spec\"
  57036. - else
  57037. - soname="$realname"
  57038. - fi
  57039. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57040. - # Make a new name for the extract_expsyms_cmds to use
  57041. - soroot="$soname"
  57042. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  57043. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  57044. +/* The mapping between symbol names and symbols. */
  57045. +typedef struct {
  57046. + const char *name;
  57047. + void *address;
  57048. +} lt_dlsymlist;
  57049. +"
  57050. + case $host in
  57051. + *cygwin* | *mingw* | *cegcc* )
  57052. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57053. +/* DATA imports from DLLs on WIN32 con't be const, because
  57054. + runtime relocations are performed -- see ld's documentation
  57055. + on pseudo-relocs. */"
  57056. + lt_dlsym_const= ;;
  57057. + *osf5*)
  57058. + echo >> "$output_objdir/$my_dlsyms" "\
  57059. +/* This system does not cope well with relocations in const data */"
  57060. + lt_dlsym_const= ;;
  57061. + *)
  57062. + lt_dlsym_const=const ;;
  57063. + esac
  57064. - # If the library has no export list, then create one now
  57065. - if test -f "$output_objdir/$soname-def"; then :
  57066. - else
  57067. - $show "extracting exported symbol list from \`$soname'"
  57068. - save_ifs="$IFS"; IFS='~'
  57069. - cmds=$extract_expsyms_cmds
  57070. - for cmd in $cmds; do
  57071. - IFS="$save_ifs"
  57072. - eval cmd=\"$cmd\"
  57073. - $show "$cmd"
  57074. - $run eval "$cmd" || exit $?
  57075. - done
  57076. - IFS="$save_ifs"
  57077. - fi
  57078. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57079. +extern $lt_dlsym_const lt_dlsymlist
  57080. +lt_${my_prefix}_LTX_preloaded_symbols[];
  57081. +$lt_dlsym_const lt_dlsymlist
  57082. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  57083. +{\
  57084. + { \"$my_originator\", (void *) 0 },"
  57085. - # Create $newlib
  57086. - if test -f "$output_objdir/$newlib"; then :; else
  57087. - $show "generating import library for \`$soname'"
  57088. - save_ifs="$IFS"; IFS='~'
  57089. - cmds=$old_archive_from_expsyms_cmds
  57090. - for cmd in $cmds; do
  57091. - IFS="$save_ifs"
  57092. - eval cmd=\"$cmd\"
  57093. - $show "$cmd"
  57094. - $run eval "$cmd" || exit $?
  57095. - done
  57096. - IFS="$save_ifs"
  57097. + case $need_lib_prefix in
  57098. + no)
  57099. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  57100. + ;;
  57101. + *)
  57102. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  57103. + ;;
  57104. + esac
  57105. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57106. + {0, (void *) 0}
  57107. +};
  57108. +
  57109. +/* This works around a problem in FreeBSD linker */
  57110. +#ifdef FREEBSD_WORKAROUND
  57111. +static const void *lt_preloaded_setup() {
  57112. + return lt_${my_prefix}_LTX_preloaded_symbols;
  57113. +}
  57114. +#endif
  57115. +
  57116. +#ifdef __cplusplus
  57117. +}
  57118. +#endif\
  57119. +"
  57120. + } # !$opt_dry_run
  57121. +
  57122. + pic_flag_for_symtable=
  57123. + case "$compile_command " in
  57124. + *" -static "*) ;;
  57125. + *)
  57126. + case $host in
  57127. + # compiling the symbol table file with pic_flag works around
  57128. + # a FreeBSD bug that causes programs to crash when -lm is
  57129. + # linked before any other PIC object. But we must not use
  57130. + # pic_flag when linking with -static. The problem exists in
  57131. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  57132. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  57133. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  57134. + *-*-hpux*)
  57135. + pic_flag_for_symtable=" $pic_flag" ;;
  57136. + *)
  57137. + if test "X$my_pic_p" != Xno; then
  57138. + pic_flag_for_symtable=" $pic_flag"
  57139. fi
  57140. - # make sure the library variables are pointing to the new library
  57141. - dir=$output_objdir
  57142. - linklib=$newlib
  57143. - fi # test -n "$old_archive_from_expsyms_cmds"
  57144. + ;;
  57145. + esac
  57146. + ;;
  57147. + esac
  57148. + symtab_cflags=
  57149. + for arg in $LTCFLAGS; do
  57150. + case $arg in
  57151. + -pie | -fpie | -fPIE) ;;
  57152. + *) symtab_cflags="$symtab_cflags $arg" ;;
  57153. + esac
  57154. + done
  57155. - if test "$linkmode" = prog || test "$mode" != relink; then
  57156. - add_shlibpath=
  57157. - add_dir=
  57158. - add=
  57159. - lib_linked=yes
  57160. - case $hardcode_action in
  57161. - immediate | unsupported)
  57162. - if test "$hardcode_direct" = no; then
  57163. - add="$dir/$linklib"
  57164. - case $host in
  57165. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  57166. - *-*-darwin* )
  57167. - # if the lib is a module then we can not link against
  57168. - # it, someone is ignoring the new warnings I added
  57169. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  57170. - $echo "** Warning, lib $linklib is a module, not a shared library"
  57171. - if test -z "$old_library" ; then
  57172. - $echo
  57173. - $echo "** And there doesn't seem to be a static archive available"
  57174. - $echo "** The link will probably fail, sorry"
  57175. - else
  57176. - add="$dir/$old_library"
  57177. - fi
  57178. - fi
  57179. - esac
  57180. - elif test "$hardcode_minus_L" = no; then
  57181. - case $host in
  57182. - *-*-sunos*) add_shlibpath="$dir" ;;
  57183. - esac
  57184. - add_dir="-L$dir"
  57185. - add="-l$name"
  57186. - elif test "$hardcode_shlibpath_var" = no; then
  57187. - add_shlibpath="$dir"
  57188. - add="-l$name"
  57189. - else
  57190. - lib_linked=no
  57191. - fi
  57192. - ;;
  57193. - relink)
  57194. - if test "$hardcode_direct" = yes; then
  57195. - add="$dir/$linklib"
  57196. - elif test "$hardcode_minus_L" = yes; then
  57197. - add_dir="-L$dir"
  57198. - # Try looking first in the location we're being installed to.
  57199. - if test -n "$inst_prefix_dir"; then
  57200. - case "$libdir" in
  57201. - [\\/]*)
  57202. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57203. - ;;
  57204. - esac
  57205. - fi
  57206. - add="-l$name"
  57207. - elif test "$hardcode_shlibpath_var" = yes; then
  57208. - add_shlibpath="$dir"
  57209. - add="-l$name"
  57210. - else
  57211. - lib_linked=no
  57212. - fi
  57213. - ;;
  57214. - *) lib_linked=no ;;
  57215. - esac
  57216. + # Now compile the dynamic symbol file.
  57217. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  57218. - if test "$lib_linked" != yes; then
  57219. - $echo "$modename: configuration error: unsupported hardcode properties"
  57220. - exit $EXIT_FAILURE
  57221. - fi
  57222. + # Clean up the generated files.
  57223. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  57224. - if test -n "$add_shlibpath"; then
  57225. - case :$compile_shlibpath: in
  57226. - *":$add_shlibpath:"*) ;;
  57227. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  57228. - esac
  57229. - fi
  57230. - if test "$linkmode" = prog; then
  57231. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  57232. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  57233. - else
  57234. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57235. - test -n "$add" && deplibs="$add $deplibs"
  57236. - if test "$hardcode_direct" != yes && \
  57237. - test "$hardcode_minus_L" != yes && \
  57238. - test "$hardcode_shlibpath_var" = yes; then
  57239. - case :$finalize_shlibpath: in
  57240. - *":$libdir:"*) ;;
  57241. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57242. - esac
  57243. - fi
  57244. - fi
  57245. + # Transform the symbol file into the correct name.
  57246. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  57247. + case $host in
  57248. + *cygwin* | *mingw* | *cegcc* )
  57249. + if test -f "$output_objdir/$my_outputname.def"; then
  57250. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  57251. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  57252. + else
  57253. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57254. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57255. fi
  57256. + ;;
  57257. + *)
  57258. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57259. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57260. + ;;
  57261. + esac
  57262. + ;;
  57263. + *)
  57264. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  57265. + ;;
  57266. + esac
  57267. + else
  57268. + # We keep going just in case the user didn't refer to
  57269. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  57270. + # really was required.
  57271. +
  57272. + # Nullify the symbol file.
  57273. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  57274. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  57275. + fi
  57276. +}
  57277. - if test "$linkmode" = prog || test "$mode" = relink; then
  57278. - add_shlibpath=
  57279. - add_dir=
  57280. - add=
  57281. - # Finalize command for both is simple: just hardcode it.
  57282. - if test "$hardcode_direct" = yes; then
  57283. - add="$libdir/$linklib"
  57284. - elif test "$hardcode_minus_L" = yes; then
  57285. - add_dir="-L$libdir"
  57286. - add="-l$name"
  57287. - elif test "$hardcode_shlibpath_var" = yes; then
  57288. - case :$finalize_shlibpath: in
  57289. - *":$libdir:"*) ;;
  57290. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57291. - esac
  57292. - add="-l$name"
  57293. - elif test "$hardcode_automatic" = yes; then
  57294. - if test -n "$inst_prefix_dir" &&
  57295. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57296. - add="$inst_prefix_dir$libdir/$linklib"
  57297. - else
  57298. - add="$libdir/$linklib"
  57299. - fi
  57300. - else
  57301. - # We cannot seem to hardcode it, guess we'll fake it.
  57302. - add_dir="-L$libdir"
  57303. - # Try looking first in the location we're being installed to.
  57304. - if test -n "$inst_prefix_dir"; then
  57305. - case "$libdir" in
  57306. - [\\/]*)
  57307. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57308. - ;;
  57309. - esac
  57310. - fi
  57311. - add="-l$name"
  57312. - fi
  57313. +# func_win32_libid arg
  57314. +# return the library type of file 'arg'
  57315. +#
  57316. +# Need a lot of goo to handle *both* DLLs and import libs
  57317. +# Has to be a shell function in order to 'eat' the argument
  57318. +# that is supplied when $file_magic_command is called.
  57319. +func_win32_libid ()
  57320. +{
  57321. + $opt_debug
  57322. + win32_libid_type="unknown"
  57323. + win32_fileres=`file -L $1 2>/dev/null`
  57324. + case $win32_fileres in
  57325. + *ar\ archive\ import\ library*) # definitely import
  57326. + win32_libid_type="x86 archive import"
  57327. + ;;
  57328. + *ar\ archive*) # could be an import, or static
  57329. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  57330. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  57331. + win32_nmres=`eval $NM -f posix -A $1 |
  57332. + $SED -n -e '
  57333. + 1,100{
  57334. + / I /{
  57335. + s,.*,import,
  57336. + p
  57337. + q
  57338. + }
  57339. + }'`
  57340. + case $win32_nmres in
  57341. + import*) win32_libid_type="x86 archive import";;
  57342. + *) win32_libid_type="x86 archive static";;
  57343. + esac
  57344. + fi
  57345. + ;;
  57346. + *DLL*)
  57347. + win32_libid_type="x86 DLL"
  57348. + ;;
  57349. + *executable*) # but shell scripts are "executable" too...
  57350. + case $win32_fileres in
  57351. + *MS\ Windows\ PE\ Intel*)
  57352. + win32_libid_type="x86 DLL"
  57353. + ;;
  57354. + esac
  57355. + ;;
  57356. + esac
  57357. + $ECHO "$win32_libid_type"
  57358. +}
  57359. - if test "$linkmode" = prog; then
  57360. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57361. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57362. - else
  57363. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57364. - test -n "$add" && deplibs="$add $deplibs"
  57365. - fi
  57366. - fi
  57367. - elif test "$linkmode" = prog; then
  57368. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  57369. - # is not unsupported. This is valid on all known static and
  57370. - # shared platforms.
  57371. - if test "$hardcode_direct" != unsupported; then
  57372. - test -n "$old_library" && linklib="$old_library"
  57373. - compile_deplibs="$dir/$linklib $compile_deplibs"
  57374. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57375. - else
  57376. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  57377. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57378. - fi
  57379. - elif test "$build_libtool_libs" = yes; then
  57380. - # Not a shared library
  57381. - if test "$deplibs_check_method" != pass_all; then
  57382. - # We're trying link a shared library against a static one
  57383. - # but the system doesn't support it.
  57384. - # Just print a warning and add the library to dependency_libs so
  57385. - # that the program can be linked against the static library.
  57386. - $echo
  57387. - $echo "*** Warning: This system can not link to static lib archive $lib."
  57388. - $echo "*** I have the capability to make that library automatically link in when"
  57389. - $echo "*** you link to this library. But I can only do this if you have a"
  57390. - $echo "*** shared version of the library, which you do not appear to have."
  57391. - if test "$module" = yes; then
  57392. - $echo "*** But as you try to build a module library, libtool will still create "
  57393. - $echo "*** a static module, that should work as long as the dlopening application"
  57394. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57395. - if test -z "$global_symbol_pipe"; then
  57396. - $echo
  57397. - $echo "*** However, this would only work if libtool was able to extract symbol"
  57398. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57399. - $echo "*** not find such a program. So, this module is probably useless."
  57400. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  57401. - fi
  57402. - if test "$build_old_libs" = no; then
  57403. - build_libtool_libs=module
  57404. - build_old_libs=yes
  57405. - else
  57406. - build_libtool_libs=no
  57407. - fi
  57408. - fi
  57409. +
  57410. +# func_extract_an_archive dir oldlib
  57411. +func_extract_an_archive ()
  57412. +{
  57413. + $opt_debug
  57414. + f_ex_an_ar_dir="$1"; shift
  57415. + f_ex_an_ar_oldlib="$1"
  57416. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  57417. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  57418. + :
  57419. + else
  57420. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  57421. + fi
  57422. +}
  57423. +
  57424. +
  57425. +# func_extract_archives gentop oldlib ...
  57426. +func_extract_archives ()
  57427. +{
  57428. + $opt_debug
  57429. + my_gentop="$1"; shift
  57430. + my_oldlibs=${1+"$@"}
  57431. + my_oldobjs=""
  57432. + my_xlib=""
  57433. + my_xabs=""
  57434. + my_xdir=""
  57435. +
  57436. + for my_xlib in $my_oldlibs; do
  57437. + # Extract the objects.
  57438. + case $my_xlib in
  57439. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  57440. + *) my_xabs=`pwd`"/$my_xlib" ;;
  57441. + esac
  57442. + func_basename "$my_xlib"
  57443. + my_xlib="$func_basename_result"
  57444. + my_xlib_u=$my_xlib
  57445. + while :; do
  57446. + case " $extracted_archives " in
  57447. + *" $my_xlib_u "*)
  57448. + func_arith $extracted_serial + 1
  57449. + extracted_serial=$func_arith_result
  57450. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  57451. + *) break ;;
  57452. + esac
  57453. + done
  57454. + extracted_archives="$extracted_archives $my_xlib_u"
  57455. + my_xdir="$my_gentop/$my_xlib_u"
  57456. +
  57457. + func_mkdir_p "$my_xdir"
  57458. +
  57459. + case $host in
  57460. + *-darwin*)
  57461. + func_verbose "Extracting $my_xabs"
  57462. + # Do not bother doing anything if just a dry run
  57463. + $opt_dry_run || {
  57464. + darwin_orig_dir=`pwd`
  57465. + cd $my_xdir || exit $?
  57466. + darwin_archive=$my_xabs
  57467. + darwin_curdir=`pwd`
  57468. + darwin_base_archive=`basename "$darwin_archive"`
  57469. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  57470. + if test -n "$darwin_arches"; then
  57471. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  57472. + darwin_arch=
  57473. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  57474. + for darwin_arch in $darwin_arches ; do
  57475. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  57476. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  57477. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  57478. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  57479. + cd "$darwin_curdir"
  57480. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  57481. + done # $darwin_arches
  57482. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  57483. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  57484. + darwin_file=
  57485. + darwin_files=
  57486. + for darwin_file in $darwin_filelist; do
  57487. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  57488. + $LIPO -create -output "$darwin_file" $darwin_files
  57489. + done # $darwin_filelist
  57490. + $RM -rf unfat-$$
  57491. + cd "$darwin_orig_dir"
  57492. else
  57493. - convenience="$convenience $dir/$old_library"
  57494. - old_convenience="$old_convenience $dir/$old_library"
  57495. - deplibs="$dir/$old_library $deplibs"
  57496. - link_static=yes
  57497. - fi
  57498. - fi # link shared/static library?
  57499. + cd $darwin_orig_dir
  57500. + func_extract_an_archive "$my_xdir" "$my_xabs"
  57501. + fi # $darwin_arches
  57502. + } # !$opt_dry_run
  57503. + ;;
  57504. + *)
  57505. + func_extract_an_archive "$my_xdir" "$my_xabs"
  57506. + ;;
  57507. + esac
  57508. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  57509. + done
  57510. - if test "$linkmode" = lib; then
  57511. - if test -n "$dependency_libs" &&
  57512. - { test "$hardcode_into_libs" != yes ||
  57513. - test "$build_old_libs" = yes ||
  57514. - test "$link_static" = yes; }; then
  57515. - # Extract -R from dependency_libs
  57516. - temp_deplibs=
  57517. - for libdir in $dependency_libs; do
  57518. - case $libdir in
  57519. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  57520. - case " $xrpath " in
  57521. - *" $temp_xrpath "*) ;;
  57522. - *) xrpath="$xrpath $temp_xrpath";;
  57523. - esac;;
  57524. - *) temp_deplibs="$temp_deplibs $libdir";;
  57525. - esac
  57526. - done
  57527. - dependency_libs="$temp_deplibs"
  57528. - fi
  57529. + func_extract_archives_result="$my_oldobjs"
  57530. +}
  57531. - newlib_search_path="$newlib_search_path $absdir"
  57532. - # Link against this library
  57533. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57534. - # ... and its dependency_libs
  57535. - tmp_libs=
  57536. - for deplib in $dependency_libs; do
  57537. - newdependency_libs="$deplib $newdependency_libs"
  57538. - if test "X$duplicate_deps" = "Xyes" ; then
  57539. - case "$tmp_libs " in
  57540. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57541. - esac
  57542. - fi
  57543. - tmp_libs="$tmp_libs $deplib"
  57544. - done
  57545. - if test "$link_all_deplibs" != no; then
  57546. - # Add the search paths of all dependency libraries
  57547. - for deplib in $dependency_libs; do
  57548. - case $deplib in
  57549. - -L*) path="$deplib" ;;
  57550. - *.la)
  57551. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  57552. - test "X$dir" = "X$deplib" && dir="."
  57553. - # We need an absolute path.
  57554. - case $dir in
  57555. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57556. - *)
  57557. - absdir=`cd "$dir" && pwd`
  57558. - if test -z "$absdir"; then
  57559. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  57560. - absdir="$dir"
  57561. - fi
  57562. - ;;
  57563. - esac
  57564. - if grep "^installed=no" $deplib > /dev/null; then
  57565. - path="$absdir/$objdir"
  57566. - else
  57567. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57568. - if test -z "$libdir"; then
  57569. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  57570. - exit $EXIT_FAILURE
  57571. - fi
  57572. - if test "$absdir" != "$libdir"; then
  57573. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  57574. - fi
  57575. - path="$absdir"
  57576. - fi
  57577. - depdepl=
  57578. - case $host in
  57579. - *-*-darwin*)
  57580. - # we do not want to link against static libs,
  57581. - # but need to link against shared
  57582. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57583. - if test -n "$deplibrary_names" ; then
  57584. - for tmp in $deplibrary_names ; do
  57585. - depdepl=$tmp
  57586. - done
  57587. - if test -f "$path/$depdepl" ; then
  57588. - depdepl="$path/$depdepl"
  57589. - fi
  57590. - # do not add paths which are already there
  57591. - case " $newlib_search_path " in
  57592. - *" $path "*) ;;
  57593. - *) newlib_search_path="$newlib_search_path $path";;
  57594. - esac
  57595. - fi
  57596. - path=""
  57597. - ;;
  57598. - *)
  57599. - path="-L$path"
  57600. - ;;
  57601. - esac
  57602. - ;;
  57603. - -l*)
  57604. - case $host in
  57605. - *-*-darwin*)
  57606. - # Again, we only want to link against shared libraries
  57607. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  57608. - for tmp in $newlib_search_path ; do
  57609. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  57610. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  57611. - break
  57612. - fi
  57613. - done
  57614. - path=""
  57615. - ;;
  57616. - *) continue ;;
  57617. - esac
  57618. - ;;
  57619. - *) continue ;;
  57620. - esac
  57621. - case " $deplibs " in
  57622. - *" $depdepl "*) ;;
  57623. - *) deplibs="$depdepl $deplibs" ;;
  57624. - esac
  57625. - case " $deplibs " in
  57626. - *" $path "*) ;;
  57627. - *) deplibs="$deplibs $path" ;;
  57628. - esac
  57629. - done
  57630. - fi # link_all_deplibs != no
  57631. - fi # linkmode = lib
  57632. - done # for deplib in $libs
  57633. - dependency_libs="$newdependency_libs"
  57634. - if test "$pass" = dlpreopen; then
  57635. - # Link the dlpreopened libraries before other libraries
  57636. - for deplib in $save_deplibs; do
  57637. - deplibs="$deplib $deplibs"
  57638. - done
  57639. - fi
  57640. - if test "$pass" != dlopen; then
  57641. - if test "$pass" != conv; then
  57642. - # Make sure lib_search_path contains only unique directories.
  57643. - lib_search_path=
  57644. - for dir in $newlib_search_path; do
  57645. - case "$lib_search_path " in
  57646. - *" $dir "*) ;;
  57647. - *) lib_search_path="$lib_search_path $dir" ;;
  57648. - esac
  57649. - done
  57650. - newlib_search_path=
  57651. - fi
  57652. - if test "$linkmode,$pass" != "prog,link"; then
  57653. - vars="deplibs"
  57654. - else
  57655. - vars="compile_deplibs finalize_deplibs"
  57656. - fi
  57657. - for var in $vars dependency_libs; do
  57658. - # Add libraries to $var in reverse order
  57659. - eval tmp_libs=\"\$$var\"
  57660. - new_libs=
  57661. - for deplib in $tmp_libs; do
  57662. - # FIXME: Pedantically, this is the right thing to do, so
  57663. - # that some nasty dependency loop isn't accidentally
  57664. - # broken:
  57665. - #new_libs="$deplib $new_libs"
  57666. - # Pragmatically, this seems to cause very few problems in
  57667. - # practice:
  57668. - case $deplib in
  57669. - -L*) new_libs="$deplib $new_libs" ;;
  57670. - -R*) ;;
  57671. - *)
  57672. - # And here is the reason: when a library appears more
  57673. - # than once as an explicit dependence of a library, or
  57674. - # is implicitly linked in more than once by the
  57675. - # compiler, it is considered special, and multiple
  57676. - # occurrences thereof are not removed. Compare this
  57677. - # with having the same library being listed as a
  57678. - # dependency of multiple other libraries: in this case,
  57679. - # we know (pedantically, we assume) the library does not
  57680. - # need to be listed more than once, so we keep only the
  57681. - # last copy. This is not always right, but it is rare
  57682. - # enough that we require users that really mean to play
  57683. - # such unportable linking tricks to link the library
  57684. - # using -Wl,-lname, so that libtool does not consider it
  57685. - # for duplicate removal.
  57686. - case " $specialdeplibs " in
  57687. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57688. - *)
  57689. - case " $new_libs " in
  57690. - *" $deplib "*) ;;
  57691. - *) new_libs="$deplib $new_libs" ;;
  57692. - esac
  57693. - ;;
  57694. - esac
  57695. - ;;
  57696. - esac
  57697. - done
  57698. - tmp_libs=
  57699. - for deplib in $new_libs; do
  57700. - case $deplib in
  57701. - -L*)
  57702. - case " $tmp_libs " in
  57703. - *" $deplib "*) ;;
  57704. - *) tmp_libs="$tmp_libs $deplib" ;;
  57705. - esac
  57706. - ;;
  57707. - *) tmp_libs="$tmp_libs $deplib" ;;
  57708. - esac
  57709. - done
  57710. - eval $var=\"$tmp_libs\"
  57711. - done # for var
  57712. - fi
  57713. - # Last step: remove runtime libs from dependency_libs
  57714. - # (they stay in deplibs)
  57715. - tmp_libs=
  57716. - for i in $dependency_libs ; do
  57717. - case " $predeps $postdeps $compiler_lib_search_path " in
  57718. - *" $i "*)
  57719. - i=""
  57720. - ;;
  57721. - esac
  57722. - if test -n "$i" ; then
  57723. - tmp_libs="$tmp_libs $i"
  57724. +# func_emit_wrapper_part1 [arg=no]
  57725. +#
  57726. +# Emit the first part of a libtool wrapper script on stdout.
  57727. +# For more information, see the description associated with
  57728. +# func_emit_wrapper(), below.
  57729. +func_emit_wrapper_part1 ()
  57730. +{
  57731. + func_emit_wrapper_part1_arg1=no
  57732. + if test -n "$1" ; then
  57733. + func_emit_wrapper_part1_arg1=$1
  57734. fi
  57735. - done
  57736. - dependency_libs=$tmp_libs
  57737. - done # for pass
  57738. - if test "$linkmode" = prog; then
  57739. - dlfiles="$newdlfiles"
  57740. - dlprefiles="$newdlprefiles"
  57741. - fi
  57742. - case $linkmode in
  57743. - oldlib)
  57744. - if test -n "$deplibs"; then
  57745. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  57746. - fi
  57747. + $ECHO "\
  57748. +#! $SHELL
  57749. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57750. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  57751. - fi
  57752. +# $output - temporary wrapper script for $objdir/$outputname
  57753. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  57754. +#
  57755. +# The $output program cannot be directly executed until all the libtool
  57756. +# libraries that it depends on are installed.
  57757. +#
  57758. +# This wrapper script should never be moved out of the build directory.
  57759. +# If it is, it will not operate correctly.
  57760. - if test -n "$rpath"; then
  57761. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  57762. - fi
  57763. +# Sed substitution that helps us do robust quoting. It backslashifies
  57764. +# metacharacters that are still active within double-quoted strings.
  57765. +Xsed='${SED} -e 1s/^X//'
  57766. +sed_quote_subst='$sed_quote_subst'
  57767. - if test -n "$xrpath"; then
  57768. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  57769. - fi
  57770. +# Be Bourne compatible
  57771. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  57772. + emulate sh
  57773. + NULLCMD=:
  57774. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  57775. + # is contrary to our usage. Disable this feature.
  57776. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  57777. + setopt NO_GLOB_SUBST
  57778. +else
  57779. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  57780. +fi
  57781. +BIN_SH=xpg4; export BIN_SH # for Tru64
  57782. +DUALCASE=1; export DUALCASE # for MKS sh
  57783. - if test -n "$vinfo"; then
  57784. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  57785. - fi
  57786. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  57787. +# if CDPATH is set.
  57788. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  57789. - if test -n "$release"; then
  57790. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  57791. - fi
  57792. +relink_command=\"$relink_command\"
  57793. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  57794. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  57795. - fi
  57796. +# This environment variable determines our operation mode.
  57797. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  57798. + # install mode needs the following variables:
  57799. + generated_by_libtool_version='$macro_version'
  57800. + notinst_deplibs='$notinst_deplibs'
  57801. +else
  57802. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  57803. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  57804. + ECHO=\"$qecho\"
  57805. + file=\"\$0\"
  57806. + # Make sure echo works.
  57807. + if test \"X\$1\" = X--no-reexec; then
  57808. + # Discard the --no-reexec flag, and continue.
  57809. + shift
  57810. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  57811. + # Yippee, \$ECHO works!
  57812. + :
  57813. + else
  57814. + # Restart under the correct shell, and then maybe \$ECHO will work.
  57815. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  57816. + fi
  57817. + fi\
  57818. +"
  57819. + $ECHO "\
  57820. - # Now set the variables for building old libraries.
  57821. - build_libtool_libs=no
  57822. - oldlibs="$output"
  57823. - objs="$objs$old_deplibs"
  57824. - ;;
  57825. + # Find the directory that this script lives in.
  57826. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  57827. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  57828. - lib)
  57829. - # Make sure we only generate libraries of the form `libNAME.la'.
  57830. - case $outputname in
  57831. - lib*)
  57832. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  57833. - eval shared_ext=\"$shrext_cmds\"
  57834. - eval libname=\"$libname_spec\"
  57835. - ;;
  57836. - *)
  57837. - if test "$module" = no; then
  57838. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  57839. - $echo "$help" 1>&2
  57840. - exit $EXIT_FAILURE
  57841. - fi
  57842. - if test "$need_lib_prefix" != no; then
  57843. - # Add the "lib" prefix for modules if required
  57844. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  57845. - eval shared_ext=\"$shrext_cmds\"
  57846. - eval libname=\"$libname_spec\"
  57847. - else
  57848. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  57849. - fi
  57850. - ;;
  57851. + # Follow symbolic links until we get to the real thisdir.
  57852. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  57853. + while test -n \"\$file\"; do
  57854. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  57855. +
  57856. + # If there was a directory component, then change thisdir.
  57857. + if test \"x\$destdir\" != \"x\$file\"; then
  57858. + case \"\$destdir\" in
  57859. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  57860. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  57861. esac
  57862. + fi
  57863. - if test -n "$objs"; then
  57864. - if test "$deplibs_check_method" != pass_all; then
  57865. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  57866. - exit $EXIT_FAILURE
  57867. - else
  57868. - $echo
  57869. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  57870. - $echo "*** objects $objs is not portable!"
  57871. - libobjs="$libobjs $objs"
  57872. - fi
  57873. - fi
  57874. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  57875. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  57876. + done
  57877. +"
  57878. +}
  57879. +# end: func_emit_wrapper_part1
  57880. - if test "$dlself" != no; then
  57881. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  57882. - fi
  57883. +# func_emit_wrapper_part2 [arg=no]
  57884. +#
  57885. +# Emit the second part of a libtool wrapper script on stdout.
  57886. +# For more information, see the description associated with
  57887. +# func_emit_wrapper(), below.
  57888. +func_emit_wrapper_part2 ()
  57889. +{
  57890. + func_emit_wrapper_part2_arg1=no
  57891. + if test -n "$1" ; then
  57892. + func_emit_wrapper_part2_arg1=$1
  57893. + fi
  57894. +
  57895. + $ECHO "\
  57896. +
  57897. + # Usually 'no', except on cygwin/mingw when embedded into
  57898. + # the cwrapper.
  57899. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  57900. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  57901. + # special case for '.'
  57902. + if test \"\$thisdir\" = \".\"; then
  57903. + thisdir=\`pwd\`
  57904. + fi
  57905. + # remove .libs from thisdir
  57906. + case \"\$thisdir\" in
  57907. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  57908. + $objdir ) thisdir=. ;;
  57909. + esac
  57910. + fi
  57911. - set dummy $rpath
  57912. - if test "$#" -gt 2; then
  57913. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  57914. - fi
  57915. - install_libdir="$2"
  57916. + # Try to get the absolute directory name.
  57917. + absdir=\`cd \"\$thisdir\" && pwd\`
  57918. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  57919. +"
  57920. - oldlibs=
  57921. - if test -z "$rpath"; then
  57922. - if test "$build_libtool_libs" = yes; then
  57923. - # Building a libtool convenience library.
  57924. - # Some compilers have problems with a `.al' extension so
  57925. - # convenience libraries should have the same extension an
  57926. - # archive normally would.
  57927. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  57928. - build_libtool_libs=convenience
  57929. - build_old_libs=yes
  57930. - fi
  57931. + if test "$fast_install" = yes; then
  57932. + $ECHO "\
  57933. + program=lt-'$outputname'$exeext
  57934. + progdir=\"\$thisdir/$objdir\"
  57935. - if test -n "$vinfo"; then
  57936. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  57937. - fi
  57938. + if test ! -f \"\$progdir/\$program\" ||
  57939. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  57940. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  57941. - if test -n "$release"; then
  57942. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  57943. - fi
  57944. - else
  57945. + file=\"\$\$-\$program\"
  57946. - # Parse the version information argument.
  57947. - save_ifs="$IFS"; IFS=':'
  57948. - set dummy $vinfo 0 0 0
  57949. - IFS="$save_ifs"
  57950. + if test ! -d \"\$progdir\"; then
  57951. + $MKDIR \"\$progdir\"
  57952. + else
  57953. + $RM \"\$progdir/\$file\"
  57954. + fi"
  57955. - if test -n "$8"; then
  57956. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  57957. - $echo "$help" 1>&2
  57958. - exit $EXIT_FAILURE
  57959. + $ECHO "\
  57960. +
  57961. + # relink executable if necessary
  57962. + if test -n \"\$relink_command\"; then
  57963. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  57964. + else
  57965. + $ECHO \"\$relink_command_output\" >&2
  57966. + $RM \"\$progdir/\$file\"
  57967. + exit 1
  57968. + fi
  57969. + fi
  57970. +
  57971. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  57972. + { $RM \"\$progdir/\$program\";
  57973. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  57974. + $RM \"\$progdir/\$file\"
  57975. + fi"
  57976. + else
  57977. + $ECHO "\
  57978. + program='$outputname'
  57979. + progdir=\"\$thisdir/$objdir\"
  57980. +"
  57981. fi
  57982. - # convert absolute version numbers to libtool ages
  57983. - # this retains compatibility with .la files and attempts
  57984. - # to make the code below a bit more comprehensible
  57985. + $ECHO "\
  57986. - case $vinfo_number in
  57987. - yes)
  57988. - number_major="$2"
  57989. - number_minor="$3"
  57990. - number_revision="$4"
  57991. - #
  57992. - # There are really only two kinds -- those that
  57993. - # use the current revision as the major version
  57994. - # and those that subtract age and use age as
  57995. - # a minor version. But, then there is irix
  57996. - # which has an extra 1 added just for fun
  57997. - #
  57998. - case $version_type in
  57999. - darwin|linux|osf|windows)
  58000. - current=`expr $number_major + $number_minor`
  58001. - age="$number_minor"
  58002. - revision="$number_revision"
  58003. - ;;
  58004. - freebsd-aout|freebsd-elf|sunos)
  58005. - current="$number_major"
  58006. - revision="$number_minor"
  58007. - age="0"
  58008. - ;;
  58009. - irix|nonstopux)
  58010. - current=`expr $number_major + $number_minor - 1`
  58011. - age="$number_minor"
  58012. - revision="$number_minor"
  58013. - ;;
  58014. - esac
  58015. - ;;
  58016. - no)
  58017. - current="$2"
  58018. - revision="$3"
  58019. - age="$4"
  58020. - ;;
  58021. - esac
  58022. + if test -f \"\$progdir/\$program\"; then"
  58023. - # Check that each of the things are valid numbers.
  58024. - case $current in
  58025. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  58026. - *)
  58027. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  58028. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58029. - exit $EXIT_FAILURE
  58030. - ;;
  58031. - esac
  58032. + # Export our shlibpath_var if we have one.
  58033. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58034. + $ECHO "\
  58035. + # Add our own library path to $shlibpath_var
  58036. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58037. - case $revision in
  58038. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  58039. - *)
  58040. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  58041. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58042. - exit $EXIT_FAILURE
  58043. + # Some systems cannot cope with colon-terminated $shlibpath_var
  58044. + # The second colon is a workaround for a bug in BeOS R4 sed
  58045. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58046. +
  58047. + export $shlibpath_var
  58048. +"
  58049. + fi
  58050. +
  58051. + # fixup the dll searchpath if we need to.
  58052. + if test -n "$dllsearchpath"; then
  58053. + $ECHO "\
  58054. + # Add the dll search path components to the executable PATH
  58055. + PATH=$dllsearchpath:\$PATH
  58056. +"
  58057. + fi
  58058. +
  58059. + $ECHO "\
  58060. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58061. + # Run the actual program with our arguments.
  58062. +"
  58063. + case $host in
  58064. + # Backslashes separate directories on plain windows
  58065. + *-*-mingw | *-*-os2* | *-cegcc*)
  58066. + $ECHO "\
  58067. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  58068. +"
  58069. ;;
  58070. - esac
  58071. - case $age in
  58072. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  58073. *)
  58074. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  58075. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58076. - exit $EXIT_FAILURE
  58077. + $ECHO "\
  58078. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  58079. +"
  58080. ;;
  58081. esac
  58082. + $ECHO "\
  58083. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  58084. + exit 1
  58085. + fi
  58086. + else
  58087. + # The program doesn't exist.
  58088. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  58089. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  58090. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  58091. + exit 1
  58092. + fi
  58093. +fi\
  58094. +"
  58095. +}
  58096. +# end: func_emit_wrapper_part2
  58097. - if test "$age" -gt "$current"; then
  58098. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  58099. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58100. - exit $EXIT_FAILURE
  58101. +
  58102. +# func_emit_wrapper [arg=no]
  58103. +#
  58104. +# Emit a libtool wrapper script on stdout.
  58105. +# Don't directly open a file because we may want to
  58106. +# incorporate the script contents within a cygwin/mingw
  58107. +# wrapper executable. Must ONLY be called from within
  58108. +# func_mode_link because it depends on a number of variables
  58109. +# set therein.
  58110. +#
  58111. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  58112. +# variable will take. If 'yes', then the emitted script
  58113. +# will assume that the directory in which it is stored is
  58114. +# the $objdir directory. This is a cygwin/mingw-specific
  58115. +# behavior.
  58116. +func_emit_wrapper ()
  58117. +{
  58118. + func_emit_wrapper_arg1=no
  58119. + if test -n "$1" ; then
  58120. + func_emit_wrapper_arg1=$1
  58121. fi
  58122. - # Calculate the version variables.
  58123. - major=
  58124. - versuffix=
  58125. - verstring=
  58126. - case $version_type in
  58127. - none) ;;
  58128. + # split this up so that func_emit_cwrapperexe_src
  58129. + # can call each part independently.
  58130. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  58131. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  58132. +}
  58133. - darwin)
  58134. - # Like Linux, but with the current version available in
  58135. - # verstring for coding it into the library header
  58136. - major=.`expr $current - $age`
  58137. - versuffix="$major.$age.$revision"
  58138. - # Darwin ld doesn't like 0 for these options...
  58139. - minor_current=`expr $current + 1`
  58140. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  58141. - ;;
  58142. - freebsd-aout)
  58143. - major=".$current"
  58144. - versuffix=".$current.$revision";
  58145. - ;;
  58146. +# func_to_host_path arg
  58147. +#
  58148. +# Convert paths to host format when used with build tools.
  58149. +# Intended for use with "native" mingw (where libtool itself
  58150. +# is running under the msys shell), or in the following cross-
  58151. +# build environments:
  58152. +# $build $host
  58153. +# mingw (msys) mingw [e.g. native]
  58154. +# cygwin mingw
  58155. +# *nix + wine mingw
  58156. +# where wine is equipped with the `winepath' executable.
  58157. +# In the native mingw case, the (msys) shell automatically
  58158. +# converts paths for any non-msys applications it launches,
  58159. +# but that facility isn't available from inside the cwrapper.
  58160. +# Similar accommodations are necessary for $host mingw and
  58161. +# $build cygwin. Calling this function does no harm for other
  58162. +# $host/$build combinations not listed above.
  58163. +#
  58164. +# ARG is the path (on $build) that should be converted to
  58165. +# the proper representation for $host. The result is stored
  58166. +# in $func_to_host_path_result.
  58167. +func_to_host_path ()
  58168. +{
  58169. + func_to_host_path_result="$1"
  58170. + if test -n "$1" ; then
  58171. + case $host in
  58172. + *mingw* )
  58173. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  58174. + case $build in
  58175. + *mingw* ) # actually, msys
  58176. + # awkward: cmd appends spaces to result
  58177. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  58178. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  58179. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  58180. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58181. + $SED -e "$lt_sed_naive_backslashify"`
  58182. + ;;
  58183. + *cygwin* )
  58184. + func_to_host_path_tmp1=`cygpath -w "$1"`
  58185. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58186. + $SED -e "$lt_sed_naive_backslashify"`
  58187. + ;;
  58188. + * )
  58189. + # Unfortunately, winepath does not exit with a non-zero
  58190. + # error code, so we are forced to check the contents of
  58191. + # stdout. On the other hand, if the command is not
  58192. + # found, the shell will set an exit code of 127 and print
  58193. + # *an error message* to stdout. So we must check for both
  58194. + # error code of zero AND non-empty stdout, which explains
  58195. + # the odd construction:
  58196. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  58197. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  58198. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58199. + $SED -e "$lt_sed_naive_backslashify"`
  58200. + else
  58201. + # Allow warning below.
  58202. + func_to_host_path_result=""
  58203. + fi
  58204. + ;;
  58205. + esac
  58206. + if test -z "$func_to_host_path_result" ; then
  58207. + func_error "Could not determine host path corresponding to"
  58208. + func_error " '$1'"
  58209. + func_error "Continuing, but uninstalled executables may not work."
  58210. + # Fallback:
  58211. + func_to_host_path_result="$1"
  58212. + fi
  58213. + ;;
  58214. + esac
  58215. + fi
  58216. +}
  58217. +# end: func_to_host_path
  58218. - freebsd-elf)
  58219. - major=".$current"
  58220. - versuffix=".$current";
  58221. - ;;
  58222. +# func_to_host_pathlist arg
  58223. +#
  58224. +# Convert pathlists to host format when used with build tools.
  58225. +# See func_to_host_path(), above. This function supports the
  58226. +# following $build/$host combinations (but does no harm for
  58227. +# combinations not listed here):
  58228. +# $build $host
  58229. +# mingw (msys) mingw [e.g. native]
  58230. +# cygwin mingw
  58231. +# *nix + wine mingw
  58232. +#
  58233. +# Path separators are also converted from $build format to
  58234. +# $host format. If ARG begins or ends with a path separator
  58235. +# character, it is preserved (but converted to $host format)
  58236. +# on output.
  58237. +#
  58238. +# ARG is a pathlist (on $build) that should be converted to
  58239. +# the proper representation on $host. The result is stored
  58240. +# in $func_to_host_pathlist_result.
  58241. +func_to_host_pathlist ()
  58242. +{
  58243. + func_to_host_pathlist_result="$1"
  58244. + if test -n "$1" ; then
  58245. + case $host in
  58246. + *mingw* )
  58247. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  58248. + # Remove leading and trailing path separator characters from
  58249. + # ARG. msys behavior is inconsistent here, cygpath turns them
  58250. + # into '.;' and ';.', and winepath ignores them completely.
  58251. + func_to_host_pathlist_tmp2="$1"
  58252. + # Once set for this call, this variable should not be
  58253. + # reassigned. It is used in tha fallback case.
  58254. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  58255. + $SED -e 's|^:*||' -e 's|:*$||'`
  58256. + case $build in
  58257. + *mingw* ) # Actually, msys.
  58258. + # Awkward: cmd appends spaces to result.
  58259. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  58260. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  58261. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  58262. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  58263. + $SED -e "$lt_sed_naive_backslashify"`
  58264. + ;;
  58265. + *cygwin* )
  58266. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  58267. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  58268. + $SED -e "$lt_sed_naive_backslashify"`
  58269. + ;;
  58270. + * )
  58271. + # unfortunately, winepath doesn't convert pathlists
  58272. + func_to_host_pathlist_result=""
  58273. + func_to_host_pathlist_oldIFS=$IFS
  58274. + IFS=:
  58275. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  58276. + IFS=$func_to_host_pathlist_oldIFS
  58277. + if test -n "$func_to_host_pathlist_f" ; then
  58278. + func_to_host_path "$func_to_host_pathlist_f"
  58279. + if test -n "$func_to_host_path_result" ; then
  58280. + if test -z "$func_to_host_pathlist_result" ; then
  58281. + func_to_host_pathlist_result="$func_to_host_path_result"
  58282. + else
  58283. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  58284. + fi
  58285. + fi
  58286. + fi
  58287. + IFS=:
  58288. + done
  58289. + IFS=$func_to_host_pathlist_oldIFS
  58290. + ;;
  58291. + esac
  58292. + if test -z "$func_to_host_pathlist_result" ; then
  58293. + func_error "Could not determine the host path(s) corresponding to"
  58294. + func_error " '$1'"
  58295. + func_error "Continuing, but uninstalled executables may not work."
  58296. + # Fallback. This may break if $1 contains DOS-style drive
  58297. + # specifications. The fix is not to complicate the expression
  58298. + # below, but for the user to provide a working wine installation
  58299. + # with winepath so that path translation in the cross-to-mingw
  58300. + # case works properly.
  58301. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  58302. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  58303. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  58304. + fi
  58305. + # Now, add the leading and trailing path separators back
  58306. + case "$1" in
  58307. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  58308. + ;;
  58309. + esac
  58310. + case "$1" in
  58311. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  58312. + ;;
  58313. + esac
  58314. + ;;
  58315. + esac
  58316. + fi
  58317. +}
  58318. +# end: func_to_host_pathlist
  58319. - irix | nonstopux)
  58320. - major=`expr $current - $age + 1`
  58321. +# func_emit_cwrapperexe_src
  58322. +# emit the source code for a wrapper executable on stdout
  58323. +# Must ONLY be called from within func_mode_link because
  58324. +# it depends on a number of variable set therein.
  58325. +func_emit_cwrapperexe_src ()
  58326. +{
  58327. + cat <<EOF
  58328. - case $version_type in
  58329. - nonstopux) verstring_prefix=nonstopux ;;
  58330. - *) verstring_prefix=sgi ;;
  58331. - esac
  58332. - verstring="$verstring_prefix$major.$revision"
  58333. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  58334. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  58335. - # Add in all the interfaces that we are compatible with.
  58336. - loop=$revision
  58337. - while test "$loop" -ne 0; do
  58338. - iface=`expr $revision - $loop`
  58339. - loop=`expr $loop - 1`
  58340. - verstring="$verstring_prefix$major.$iface:$verstring"
  58341. - done
  58342. + The $output program cannot be directly executed until all the libtool
  58343. + libraries that it depends on are installed.
  58344. - # Before this point, $major must not contain `.'.
  58345. - major=.$major
  58346. - versuffix="$major.$revision"
  58347. - ;;
  58348. + This wrapper executable should never be moved out of the build directory.
  58349. + If it is, it will not operate correctly.
  58350. - linux)
  58351. - major=.`expr $current - $age`
  58352. - versuffix="$major.$age.$revision"
  58353. - ;;
  58354. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  58355. + but could eventually absorb all of the scripts functionality and
  58356. + exec $objdir/$outputname directly.
  58357. +*/
  58358. +EOF
  58359. + cat <<"EOF"
  58360. +#include <stdio.h>
  58361. +#include <stdlib.h>
  58362. +#ifdef _MSC_VER
  58363. +# include <direct.h>
  58364. +# include <process.h>
  58365. +# include <io.h>
  58366. +# define setmode _setmode
  58367. +#else
  58368. +# include <unistd.h>
  58369. +# include <stdint.h>
  58370. +# ifdef __CYGWIN__
  58371. +# include <io.h>
  58372. +# define HAVE_SETENV
  58373. +# ifdef __STRICT_ANSI__
  58374. +char *realpath (const char *, char *);
  58375. +int putenv (char *);
  58376. +int setenv (const char *, const char *, int);
  58377. +# endif
  58378. +# endif
  58379. +#endif
  58380. +#include <malloc.h>
  58381. +#include <stdarg.h>
  58382. +#include <assert.h>
  58383. +#include <string.h>
  58384. +#include <ctype.h>
  58385. +#include <errno.h>
  58386. +#include <fcntl.h>
  58387. +#include <sys/stat.h>
  58388. - osf)
  58389. - major=.`expr $current - $age`
  58390. - versuffix=".$current.$age.$revision"
  58391. - verstring="$current.$age.$revision"
  58392. +#if defined(PATH_MAX)
  58393. +# define LT_PATHMAX PATH_MAX
  58394. +#elif defined(MAXPATHLEN)
  58395. +# define LT_PATHMAX MAXPATHLEN
  58396. +#else
  58397. +# define LT_PATHMAX 1024
  58398. +#endif
  58399. - # Add in all the interfaces that we are compatible with.
  58400. - loop=$age
  58401. - while test "$loop" -ne 0; do
  58402. - iface=`expr $current - $loop`
  58403. - loop=`expr $loop - 1`
  58404. - verstring="$verstring:${iface}.0"
  58405. - done
  58406. +#ifndef S_IXOTH
  58407. +# define S_IXOTH 0
  58408. +#endif
  58409. +#ifndef S_IXGRP
  58410. +# define S_IXGRP 0
  58411. +#endif
  58412. - # Make executables depend on our current version.
  58413. - verstring="$verstring:${current}.0"
  58414. - ;;
  58415. +#ifdef _MSC_VER
  58416. +# define S_IXUSR _S_IEXEC
  58417. +# define stat _stat
  58418. +# ifndef _INTPTR_T_DEFINED
  58419. +# define intptr_t int
  58420. +# endif
  58421. +#endif
  58422. - sunos)
  58423. - major=".$current"
  58424. - versuffix=".$current.$revision"
  58425. - ;;
  58426. +#ifndef DIR_SEPARATOR
  58427. +# define DIR_SEPARATOR '/'
  58428. +# define PATH_SEPARATOR ':'
  58429. +#endif
  58430. - windows)
  58431. - # Use '-' rather than '.', since we only want one
  58432. - # extension on DOS 8.3 filesystems.
  58433. - major=`expr $current - $age`
  58434. - versuffix="-$major"
  58435. - ;;
  58436. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  58437. + defined (__OS2__)
  58438. +# define HAVE_DOS_BASED_FILE_SYSTEM
  58439. +# define FOPEN_WB "wb"
  58440. +# ifndef DIR_SEPARATOR_2
  58441. +# define DIR_SEPARATOR_2 '\\'
  58442. +# endif
  58443. +# ifndef PATH_SEPARATOR_2
  58444. +# define PATH_SEPARATOR_2 ';'
  58445. +# endif
  58446. +#endif
  58447. - *)
  58448. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  58449. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  58450. - exit $EXIT_FAILURE
  58451. - ;;
  58452. - esac
  58453. +#ifndef DIR_SEPARATOR_2
  58454. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  58455. +#else /* DIR_SEPARATOR_2 */
  58456. +# define IS_DIR_SEPARATOR(ch) \
  58457. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  58458. +#endif /* DIR_SEPARATOR_2 */
  58459. - # Clear the version info if we defaulted, and they specified a release.
  58460. - if test -z "$vinfo" && test -n "$release"; then
  58461. - major=
  58462. - case $version_type in
  58463. - darwin)
  58464. - # we can't check for "0.0" in archive_cmds due to quoting
  58465. - # problems, so we reset it completely
  58466. - verstring=
  58467. - ;;
  58468. - *)
  58469. - verstring="0.0"
  58470. - ;;
  58471. - esac
  58472. - if test "$need_version" = no; then
  58473. - versuffix=
  58474. - else
  58475. - versuffix=".0.0"
  58476. - fi
  58477. - fi
  58478. +#ifndef PATH_SEPARATOR_2
  58479. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  58480. +#else /* PATH_SEPARATOR_2 */
  58481. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  58482. +#endif /* PATH_SEPARATOR_2 */
  58483. - # Remove version info from name if versioning should be avoided
  58484. - if test "$avoid_version" = yes && test "$need_version" = no; then
  58485. - major=
  58486. - versuffix=
  58487. - verstring=""
  58488. - fi
  58489. +#ifdef __CYGWIN__
  58490. +# define FOPEN_WB "wb"
  58491. +#endif
  58492. - # Check to see if the archive will have undefined symbols.
  58493. - if test "$allow_undefined" = yes; then
  58494. - if test "$allow_undefined_flag" = unsupported; then
  58495. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  58496. - build_libtool_libs=no
  58497. - build_old_libs=yes
  58498. - fi
  58499. - else
  58500. - # Don't allow undefined symbols.
  58501. - allow_undefined_flag="$no_undefined_flag"
  58502. - fi
  58503. - fi
  58504. +#ifndef FOPEN_WB
  58505. +# define FOPEN_WB "w"
  58506. +#endif
  58507. +#ifndef _O_BINARY
  58508. +# define _O_BINARY 0
  58509. +#endif
  58510. - if test "$mode" != relink; then
  58511. - # Remove our outputs, but don't remove object files since they
  58512. - # may have been created when compiling PIC objects.
  58513. - removelist=
  58514. - tempremovelist=`$echo "$output_objdir/*"`
  58515. - for p in $tempremovelist; do
  58516. - case $p in
  58517. - *.$objext)
  58518. - ;;
  58519. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  58520. - if test "X$precious_files_regex" != "X"; then
  58521. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  58522. - then
  58523. - continue
  58524. - fi
  58525. - fi
  58526. - removelist="$removelist $p"
  58527. - ;;
  58528. - *) ;;
  58529. - esac
  58530. - done
  58531. - if test -n "$removelist"; then
  58532. - $show "${rm}r $removelist"
  58533. - $run ${rm}r $removelist
  58534. - fi
  58535. - fi
  58536. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  58537. +#define XFREE(stale) do { \
  58538. + if (stale) { free ((void *) stale); stale = 0; } \
  58539. +} while (0)
  58540. - # Now set the variables for building old libraries.
  58541. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  58542. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  58543. +#undef LTWRAPPER_DEBUGPRINTF
  58544. +#if defined DEBUGWRAPPER
  58545. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  58546. +static void
  58547. +ltwrapper_debugprintf (const char *fmt, ...)
  58548. +{
  58549. + va_list args;
  58550. + va_start (args, fmt);
  58551. + (void) vfprintf (stderr, fmt, args);
  58552. + va_end (args);
  58553. +}
  58554. +#else
  58555. +# define LTWRAPPER_DEBUGPRINTF(args)
  58556. +#endif
  58557. - # Transform .lo files to .o files.
  58558. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  58559. - fi
  58560. +const char *program_name = NULL;
  58561. - # Eliminate all temporary directories.
  58562. - for path in $notinst_path; do
  58563. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  58564. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  58565. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  58566. - done
  58567. +void *xmalloc (size_t num);
  58568. +char *xstrdup (const char *string);
  58569. +const char *base_name (const char *name);
  58570. +char *find_executable (const char *wrapper);
  58571. +char *chase_symlinks (const char *pathspec);
  58572. +int make_executable (const char *path);
  58573. +int check_executable (const char *path);
  58574. +char *strendzap (char *str, const char *pat);
  58575. +void lt_fatal (const char *message, ...);
  58576. +void lt_setenv (const char *name, const char *value);
  58577. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  58578. +void lt_opt_process_env_set (const char *arg);
  58579. +void lt_opt_process_env_prepend (const char *arg);
  58580. +void lt_opt_process_env_append (const char *arg);
  58581. +int lt_split_name_value (const char *arg, char** name, char** value);
  58582. +void lt_update_exe_path (const char *name, const char *value);
  58583. +void lt_update_lib_path (const char *name, const char *value);
  58584. - if test -n "$xrpath"; then
  58585. - # If the user specified any rpath flags, then add them.
  58586. - temp_xrpath=
  58587. - for libdir in $xrpath; do
  58588. - temp_xrpath="$temp_xrpath -R$libdir"
  58589. - case "$finalize_rpath " in
  58590. - *" $libdir "*) ;;
  58591. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  58592. - esac
  58593. - done
  58594. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  58595. - dependency_libs="$temp_xrpath $dependency_libs"
  58596. - fi
  58597. - fi
  58598. +static const char *script_text_part1 =
  58599. +EOF
  58600. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  58601. - old_dlfiles="$dlfiles"
  58602. - dlfiles=
  58603. - for lib in $old_dlfiles; do
  58604. - case " $dlprefiles $dlfiles " in
  58605. - *" $lib "*) ;;
  58606. - *) dlfiles="$dlfiles $lib" ;;
  58607. - esac
  58608. - done
  58609. + func_emit_wrapper_part1 yes |
  58610. + $SED -e 's/\([\\"]\)/\\\1/g' \
  58611. + -e 's/^/ "/' -e 's/$/\\n"/'
  58612. + echo ";"
  58613. + cat <<EOF
  58614. - # Make sure dlprefiles contains only unique files
  58615. - old_dlprefiles="$dlprefiles"
  58616. - dlprefiles=
  58617. - for lib in $old_dlprefiles; do
  58618. - case "$dlprefiles " in
  58619. - *" $lib "*) ;;
  58620. - *) dlprefiles="$dlprefiles $lib" ;;
  58621. - esac
  58622. - done
  58623. +static const char *script_text_part2 =
  58624. +EOF
  58625. + func_emit_wrapper_part2 yes |
  58626. + $SED -e 's/\([\\"]\)/\\\1/g' \
  58627. + -e 's/^/ "/' -e 's/$/\\n"/'
  58628. + echo ";"
  58629. +
  58630. + cat <<EOF
  58631. +const char * MAGIC_EXE = "$magic_exe";
  58632. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  58633. +EOF
  58634. - if test "$build_libtool_libs" = yes; then
  58635. - if test -n "$rpath"; then
  58636. - case $host in
  58637. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  58638. - # these systems don't actually have a c library (as such)!
  58639. - ;;
  58640. - *-*-rhapsody* | *-*-darwin1.[012])
  58641. - # Rhapsody C library is in the System framework
  58642. - deplibs="$deplibs -framework System"
  58643. - ;;
  58644. - *-*-netbsd*)
  58645. - # Don't link with libc until the a.out ld.so is fixed.
  58646. - ;;
  58647. - *-*-openbsd* | *-*-freebsd*)
  58648. - # Do not include libc due to us having libc/libc_r.
  58649. - test "X$arg" = "X-lc" && continue
  58650. - ;;
  58651. - *)
  58652. - # Add libc to deplibs on all other systems if necessary.
  58653. - if test "$build_libtool_need_lc" = "yes"; then
  58654. - deplibs="$deplibs -lc"
  58655. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58656. + func_to_host_pathlist "$temp_rpath"
  58657. + cat <<EOF
  58658. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  58659. +EOF
  58660. + else
  58661. + cat <<"EOF"
  58662. +const char * LIB_PATH_VALUE = "";
  58663. +EOF
  58664. fi
  58665. - ;;
  58666. - esac
  58667. - fi
  58668. - # Transform deplibs into only deplibs that can be linked in shared.
  58669. - name_save=$name
  58670. - libname_save=$libname
  58671. - release_save=$release
  58672. - versuffix_save=$versuffix
  58673. - major_save=$major
  58674. - # I'm not sure if I'm treating the release correctly. I think
  58675. - # release should show up in the -l (ie -lgmp5) so we don't want to
  58676. - # add it in twice. Is that correct?
  58677. - release=""
  58678. - versuffix=""
  58679. - major=""
  58680. - newdeplibs=
  58681. - droppeddeps=no
  58682. - case $deplibs_check_method in
  58683. - pass_all)
  58684. - # Don't check for shared/static. Everything works.
  58685. - # This might be a little naive. We might want to check
  58686. - # whether the library exists or not. But this is on
  58687. - # osf3 & osf4 and I'm not really sure... Just
  58688. - # implementing what was already the behavior.
  58689. - newdeplibs=$deplibs
  58690. - ;;
  58691. - test_compile)
  58692. - # This code stresses the "libraries are programs" paradigm to its
  58693. - # limits. Maybe even breaks it. We compile a program, linking it
  58694. - # against the deplibs as a proxy for the library. Then we can check
  58695. - # whether they linked in statically or dynamically with ldd.
  58696. - $rm conftest.c
  58697. - cat > conftest.c <<EOF
  58698. - int main() { return 0; }
  58699. + if test -n "$dllsearchpath"; then
  58700. + func_to_host_pathlist "$dllsearchpath:"
  58701. + cat <<EOF
  58702. +const char * EXE_PATH_VARNAME = "PATH";
  58703. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  58704. EOF
  58705. - $rm conftest
  58706. - $LTCC -o conftest conftest.c $deplibs
  58707. - if test "$?" -eq 0 ; then
  58708. - ldd_output=`ldd conftest`
  58709. - for i in $deplibs; do
  58710. - name="`expr $i : '-l\(.*\)'`"
  58711. - # If $name is empty we are operating on a -L argument.
  58712. - if test "$name" != "" && test "$name" -ne "0"; then
  58713. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58714. - case " $predeps $postdeps " in
  58715. - *" $i "*)
  58716. - newdeplibs="$newdeplibs $i"
  58717. - i=""
  58718. - ;;
  58719. - esac
  58720. - fi
  58721. - if test -n "$i" ; then
  58722. - libname=`eval \\$echo \"$libname_spec\"`
  58723. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  58724. - set dummy $deplib_matches
  58725. - deplib_match=$2
  58726. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58727. - newdeplibs="$newdeplibs $i"
  58728. - else
  58729. - droppeddeps=yes
  58730. - $echo
  58731. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  58732. - $echo "*** I have the capability to make that library automatically link in when"
  58733. - $echo "*** you link to this library. But I can only do this if you have a"
  58734. - $echo "*** shared version of the library, which I believe you do not have"
  58735. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  58736. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  58737. - fi
  58738. - fi
  58739. - else
  58740. - newdeplibs="$newdeplibs $i"
  58741. - fi
  58742. - done
  58743. - else
  58744. - # Error occurred in the first compile. Let's try to salvage
  58745. - # the situation: Compile a separate program for each library.
  58746. - for i in $deplibs; do
  58747. - name="`expr $i : '-l\(.*\)'`"
  58748. - # If $name is empty we are operating on a -L argument.
  58749. - if test "$name" != "" && test "$name" != "0"; then
  58750. - $rm conftest
  58751. - $LTCC -o conftest conftest.c $i
  58752. - # Did it work?
  58753. - if test "$?" -eq 0 ; then
  58754. - ldd_output=`ldd conftest`
  58755. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58756. - case " $predeps $postdeps " in
  58757. - *" $i "*)
  58758. - newdeplibs="$newdeplibs $i"
  58759. - i=""
  58760. - ;;
  58761. - esac
  58762. - fi
  58763. - if test -n "$i" ; then
  58764. - libname=`eval \\$echo \"$libname_spec\"`
  58765. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  58766. - set dummy $deplib_matches
  58767. - deplib_match=$2
  58768. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58769. - newdeplibs="$newdeplibs $i"
  58770. - else
  58771. - droppeddeps=yes
  58772. - $echo
  58773. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  58774. - $echo "*** I have the capability to make that library automatically link in when"
  58775. - $echo "*** you link to this library. But I can only do this if you have a"
  58776. - $echo "*** shared version of the library, which you do not appear to have"
  58777. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  58778. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  58779. - fi
  58780. - fi
  58781. - else
  58782. - droppeddeps=yes
  58783. - $echo
  58784. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  58785. - $echo "*** make it link in! You will probably need to install it or some"
  58786. - $echo "*** library that it depends on before this library will be fully"
  58787. - $echo "*** functional. Installing it before continuing would be even better."
  58788. - fi
  58789. - else
  58790. - newdeplibs="$newdeplibs $i"
  58791. - fi
  58792. - done
  58793. - fi
  58794. - ;;
  58795. - file_magic*)
  58796. - set dummy $deplibs_check_method
  58797. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  58798. - for a_deplib in $deplibs; do
  58799. - name="`expr $a_deplib : '-l\(.*\)'`"
  58800. - # If $name is empty we are operating on a -L argument.
  58801. - if test "$name" != "" && test "$name" != "0"; then
  58802. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58803. - case " $predeps $postdeps " in
  58804. - *" $a_deplib "*)
  58805. - newdeplibs="$newdeplibs $a_deplib"
  58806. - a_deplib=""
  58807. - ;;
  58808. - esac
  58809. - fi
  58810. - if test -n "$a_deplib" ; then
  58811. - libname=`eval \\$echo \"$libname_spec\"`
  58812. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58813. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58814. - for potent_lib in $potential_libs; do
  58815. - # Follow soft links.
  58816. - if ls -lLd "$potent_lib" 2>/dev/null \
  58817. - | grep " -> " >/dev/null; then
  58818. - continue
  58819. - fi
  58820. - # The statement above tries to avoid entering an
  58821. - # endless loop below, in case of cyclic links.
  58822. - # We might still enter an endless loop, since a link
  58823. - # loop can be closed while we follow links,
  58824. - # but so what?
  58825. - potlib="$potent_lib"
  58826. - while test -h "$potlib" 2>/dev/null; do
  58827. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58828. - case $potliblink in
  58829. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58830. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58831. - esac
  58832. - done
  58833. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  58834. - | ${SED} 10q \
  58835. - | $EGREP "$file_magic_regex" > /dev/null; then
  58836. - newdeplibs="$newdeplibs $a_deplib"
  58837. - a_deplib=""
  58838. - break 2
  58839. - fi
  58840. - done
  58841. - done
  58842. - fi
  58843. - if test -n "$a_deplib" ; then
  58844. - droppeddeps=yes
  58845. - $echo
  58846. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  58847. - $echo "*** I have the capability to make that library automatically link in when"
  58848. - $echo "*** you link to this library. But I can only do this if you have a"
  58849. - $echo "*** shared version of the library, which you do not appear to have"
  58850. - $echo "*** because I did check the linker path looking for a file starting"
  58851. - if test -z "$potlib" ; then
  58852. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  58853. - else
  58854. - $echo "*** with $libname and none of the candidates passed a file format test"
  58855. - $echo "*** using a file magic. Last file checked: $potlib"
  58856. - fi
  58857. - fi
  58858. else
  58859. - # Add a -L argument.
  58860. - newdeplibs="$newdeplibs $a_deplib"
  58861. + cat <<"EOF"
  58862. +const char * EXE_PATH_VARNAME = "";
  58863. +const char * EXE_PATH_VALUE = "";
  58864. +EOF
  58865. fi
  58866. - done # Gone through all deplibs.
  58867. - ;;
  58868. - match_pattern*)
  58869. - set dummy $deplibs_check_method
  58870. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  58871. - for a_deplib in $deplibs; do
  58872. - name="`expr $a_deplib : '-l\(.*\)'`"
  58873. - # If $name is empty we are operating on a -L argument.
  58874. - if test -n "$name" && test "$name" != "0"; then
  58875. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58876. - case " $predeps $postdeps " in
  58877. - *" $a_deplib "*)
  58878. - newdeplibs="$newdeplibs $a_deplib"
  58879. - a_deplib=""
  58880. - ;;
  58881. - esac
  58882. - fi
  58883. - if test -n "$a_deplib" ; then
  58884. - libname=`eval \\$echo \"$libname_spec\"`
  58885. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58886. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58887. - for potent_lib in $potential_libs; do
  58888. - potlib="$potent_lib" # see symlink-check above in file_magic test
  58889. - if eval $echo \"$potent_lib\" 2>/dev/null \
  58890. - | ${SED} 10q \
  58891. - | $EGREP "$match_pattern_regex" > /dev/null; then
  58892. - newdeplibs="$newdeplibs $a_deplib"
  58893. - a_deplib=""
  58894. - break 2
  58895. - fi
  58896. - done
  58897. - done
  58898. - fi
  58899. - if test -n "$a_deplib" ; then
  58900. - droppeddeps=yes
  58901. - $echo
  58902. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  58903. - $echo "*** I have the capability to make that library automatically link in when"
  58904. - $echo "*** you link to this library. But I can only do this if you have a"
  58905. - $echo "*** shared version of the library, which you do not appear to have"
  58906. - $echo "*** because I did check the linker path looking for a file starting"
  58907. - if test -z "$potlib" ; then
  58908. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  58909. - else
  58910. - $echo "*** with $libname and none of the candidates passed a file format test"
  58911. - $echo "*** using a regex pattern. Last file checked: $potlib"
  58912. - fi
  58913. - fi
  58914. - else
  58915. - # Add a -L argument.
  58916. - newdeplibs="$newdeplibs $a_deplib"
  58917. - fi
  58918. - done # Gone through all deplibs.
  58919. - ;;
  58920. - none | unknown | *)
  58921. - newdeplibs=""
  58922. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  58923. - -e 's/ -[LR][^ ]*//g'`
  58924. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58925. - for i in $predeps $postdeps ; do
  58926. - # can't use Xsed below, because $i might contain '/'
  58927. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  58928. - done
  58929. - fi
  58930. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  58931. - | grep . >/dev/null; then
  58932. - $echo
  58933. - if test "X$deplibs_check_method" = "Xnone"; then
  58934. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  58935. - else
  58936. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  58937. - fi
  58938. - $echo "*** All declared inter-library dependencies are being dropped."
  58939. - droppeddeps=yes
  58940. - fi
  58941. - ;;
  58942. - esac
  58943. - versuffix=$versuffix_save
  58944. - major=$major_save
  58945. - release=$release_save
  58946. - libname=$libname_save
  58947. - name=$name_save
  58948. -
  58949. - case $host in
  58950. - *-*-rhapsody* | *-*-darwin1.[012])
  58951. - # On Rhapsody replace the C library is the System framework
  58952. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  58953. - ;;
  58954. - esac
  58955. - if test "$droppeddeps" = yes; then
  58956. - if test "$module" = yes; then
  58957. - $echo
  58958. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  58959. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  58960. - $echo "*** a static module, that should work as long as the dlopening"
  58961. - $echo "*** application is linked with the -dlopen flag."
  58962. - if test -z "$global_symbol_pipe"; then
  58963. - $echo
  58964. - $echo "*** However, this would only work if libtool was able to extract symbol"
  58965. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58966. - $echo "*** not find such a program. So, this module is probably useless."
  58967. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  58968. - fi
  58969. - if test "$build_old_libs" = no; then
  58970. - oldlibs="$output_objdir/$libname.$libext"
  58971. - build_libtool_libs=module
  58972. - build_old_libs=yes
  58973. + if test "$fast_install" = yes; then
  58974. + cat <<EOF
  58975. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  58976. +EOF
  58977. else
  58978. - build_libtool_libs=no
  58979. + cat <<EOF
  58980. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  58981. +EOF
  58982. fi
  58983. - else
  58984. - $echo "*** The inter-library dependencies that have been dropped here will be"
  58985. - $echo "*** automatically added whenever a program is linked with this library"
  58986. - $echo "*** or is declared to -dlopen it."
  58987. - if test "$allow_undefined" = no; then
  58988. - $echo
  58989. - $echo "*** Since this library must not contain undefined symbols,"
  58990. - $echo "*** because either the platform does not support them or"
  58991. - $echo "*** it was explicitly requested with -no-undefined,"
  58992. - $echo "*** libtool will only create a static version of it."
  58993. - if test "$build_old_libs" = no; then
  58994. - oldlibs="$output_objdir/$libname.$libext"
  58995. - build_libtool_libs=module
  58996. - build_old_libs=yes
  58997. - else
  58998. - build_libtool_libs=no
  58999. - fi
  59000. - fi
  59001. - fi
  59002. - fi
  59003. - # Done checking deplibs!
  59004. - deplibs=$newdeplibs
  59005. - fi
  59006. - # All the library-specific variables (install_libdir is set above).
  59007. - library_names=
  59008. - old_library=
  59009. - dlname=
  59010. + cat <<"EOF"
  59011. - # Test again, we may have decided not to build it any more
  59012. - if test "$build_libtool_libs" = yes; then
  59013. - if test "$hardcode_into_libs" = yes; then
  59014. - # Hardcode the library paths
  59015. - hardcode_libdirs=
  59016. - dep_rpath=
  59017. - rpath="$finalize_rpath"
  59018. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  59019. - for libdir in $rpath; do
  59020. - if test -n "$hardcode_libdir_flag_spec"; then
  59021. - if test -n "$hardcode_libdir_separator"; then
  59022. - if test -z "$hardcode_libdirs"; then
  59023. - hardcode_libdirs="$libdir"
  59024. - else
  59025. - # Just accumulate the unique libdirs.
  59026. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59027. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59028. - ;;
  59029. - *)
  59030. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59031. - ;;
  59032. - esac
  59033. - fi
  59034. - else
  59035. - eval flag=\"$hardcode_libdir_flag_spec\"
  59036. - dep_rpath="$dep_rpath $flag"
  59037. - fi
  59038. - elif test -n "$runpath_var"; then
  59039. - case "$perm_rpath " in
  59040. - *" $libdir "*) ;;
  59041. - *) perm_rpath="$perm_rpath $libdir" ;;
  59042. - esac
  59043. - fi
  59044. - done
  59045. - # Substitute the hardcoded libdirs into the rpath.
  59046. - if test -n "$hardcode_libdir_separator" &&
  59047. - test -n "$hardcode_libdirs"; then
  59048. - libdir="$hardcode_libdirs"
  59049. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  59050. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  59051. - else
  59052. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  59053. - fi
  59054. - fi
  59055. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  59056. - # We should set the runpath_var.
  59057. - rpath=
  59058. - for dir in $perm_rpath; do
  59059. - rpath="$rpath$dir:"
  59060. - done
  59061. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  59062. - fi
  59063. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  59064. - fi
  59065. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  59066. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  59067. - shlibpath="$finalize_shlibpath"
  59068. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  59069. - if test -n "$shlibpath"; then
  59070. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  59071. - fi
  59072. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  59073. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  59074. - # Get the real and link names of the library.
  59075. - eval shared_ext=\"$shrext_cmds\"
  59076. - eval library_names=\"$library_names_spec\"
  59077. - set dummy $library_names
  59078. - realname="$2"
  59079. - shift; shift
  59080. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  59081. - if test -n "$soname_spec"; then
  59082. - eval soname=\"$soname_spec\"
  59083. - else
  59084. - soname="$realname"
  59085. - fi
  59086. - if test -z "$dlname"; then
  59087. - dlname=$soname
  59088. - fi
  59089. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  59090. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  59091. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  59092. - lib="$output_objdir/$realname"
  59093. - for link
  59094. - do
  59095. - linknames="$linknames $link"
  59096. - done
  59097. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  59098. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  59099. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  59100. - # Use standard objects if they are pic
  59101. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59102. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  59103. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  59104. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  59105. - # Prepare the list of exported symbols
  59106. - if test -z "$export_symbols"; then
  59107. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  59108. - $show "generating symbol list for \`$libname.la'"
  59109. - export_symbols="$output_objdir/$libname.exp"
  59110. - $run $rm $export_symbols
  59111. - cmds=$export_symbols_cmds
  59112. - save_ifs="$IFS"; IFS='~'
  59113. - for cmd in $cmds; do
  59114. - IFS="$save_ifs"
  59115. - eval cmd=\"$cmd\"
  59116. - if len=`expr "X$cmd" : ".*"` &&
  59117. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59118. - $show "$cmd"
  59119. - $run eval "$cmd" || exit $?
  59120. - skipped_export=false
  59121. - else
  59122. - # The command line is too long to execute in one step.
  59123. - $show "using reloadable object file for export list..."
  59124. - skipped_export=:
  59125. - fi
  59126. - done
  59127. - IFS="$save_ifs"
  59128. - if test -n "$export_symbols_regex"; then
  59129. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  59130. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59131. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  59132. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  59133. - fi
  59134. - fi
  59135. - fi
  59136. +int
  59137. +main (int argc, char *argv[])
  59138. +{
  59139. + char **newargz;
  59140. + int newargc;
  59141. + char *tmp_pathspec;
  59142. + char *actual_cwrapper_path;
  59143. + char *actual_cwrapper_name;
  59144. + char *target_name;
  59145. + char *lt_argv_zero;
  59146. + intptr_t rval = 127;
  59147. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59148. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  59149. - fi
  59150. + int i;
  59151. - tmp_deplibs=
  59152. - for test_deplib in $deplibs; do
  59153. - case " $convenience " in
  59154. - *" $test_deplib "*) ;;
  59155. - *)
  59156. - tmp_deplibs="$tmp_deplibs $test_deplib"
  59157. - ;;
  59158. - esac
  59159. - done
  59160. - deplibs="$tmp_deplibs"
  59161. + program_name = (char *) xstrdup (base_name (argv[0]));
  59162. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  59163. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  59164. - if test -n "$convenience"; then
  59165. - if test -n "$whole_archive_flag_spec"; then
  59166. - save_libobjs=$libobjs
  59167. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59168. - else
  59169. - gentop="$output_objdir/${outputname}x"
  59170. - generated="$generated $gentop"
  59171. + /* very simple arg parsing; don't want to rely on getopt */
  59172. + for (i = 1; i < argc; i++)
  59173. + {
  59174. + if (strcmp (argv[i], dumpscript_opt) == 0)
  59175. + {
  59176. +EOF
  59177. + case "$host" in
  59178. + *mingw* | *cygwin* )
  59179. + # make stdout use "unix" line endings
  59180. + echo " setmode(1,_O_BINARY);"
  59181. + ;;
  59182. + esac
  59183. - func_extract_archives $gentop $convenience
  59184. - libobjs="$libobjs $func_extract_archives_result"
  59185. - fi
  59186. - fi
  59187. -
  59188. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  59189. - eval flag=\"$thread_safe_flag_spec\"
  59190. - linker_flags="$linker_flags $flag"
  59191. - fi
  59192. + cat <<"EOF"
  59193. + printf ("%s", script_text_part1);
  59194. + printf ("%s", script_text_part2);
  59195. + return 0;
  59196. + }
  59197. + }
  59198. +
  59199. + newargz = XMALLOC (char *, argc + 1);
  59200. + tmp_pathspec = find_executable (argv[0]);
  59201. + if (tmp_pathspec == NULL)
  59202. + lt_fatal ("Couldn't find %s", argv[0]);
  59203. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  59204. + tmp_pathspec));
  59205. +
  59206. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  59207. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  59208. + actual_cwrapper_path));
  59209. + XFREE (tmp_pathspec);
  59210. +
  59211. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  59212. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  59213. +
  59214. + /* wrapper name transforms */
  59215. + strendzap (actual_cwrapper_name, ".exe");
  59216. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  59217. + XFREE (actual_cwrapper_name);
  59218. + actual_cwrapper_name = tmp_pathspec;
  59219. + tmp_pathspec = 0;
  59220. +
  59221. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  59222. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  59223. + strendzap (target_name, ".exe");
  59224. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  59225. + XFREE (target_name);
  59226. + target_name = tmp_pathspec;
  59227. + tmp_pathspec = 0;
  59228. - # Make a backup of the uninstalled library when relinking
  59229. - if test "$mode" = relink; then
  59230. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  59231. - fi
  59232. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  59233. + target_name));
  59234. +EOF
  59235. - # Do each of the archive commands.
  59236. - if test "$module" = yes && test -n "$module_cmds" ; then
  59237. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59238. - eval test_cmds=\"$module_expsym_cmds\"
  59239. - cmds=$module_expsym_cmds
  59240. - else
  59241. - eval test_cmds=\"$module_cmds\"
  59242. - cmds=$module_cmds
  59243. - fi
  59244. - else
  59245. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59246. - eval test_cmds=\"$archive_expsym_cmds\"
  59247. - cmds=$archive_expsym_cmds
  59248. - else
  59249. - eval test_cmds=\"$archive_cmds\"
  59250. - cmds=$archive_cmds
  59251. - fi
  59252. - fi
  59253. + cat <<EOF
  59254. + newargz[0] =
  59255. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  59256. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  59257. + strcpy (newargz[0], actual_cwrapper_path);
  59258. + strcat (newargz[0], "$objdir");
  59259. + strcat (newargz[0], "/");
  59260. +EOF
  59261. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  59262. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59263. - :
  59264. - else
  59265. - # The command line is too long to link in one step, link piecewise.
  59266. - $echo "creating reloadable object files..."
  59267. + cat <<"EOF"
  59268. + /* stop here, and copy so we don't have to do this twice */
  59269. + tmp_pathspec = xstrdup (newargz[0]);
  59270. +
  59271. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  59272. + strcat (newargz[0], actual_cwrapper_name);
  59273. +
  59274. + /* DO want the lt- prefix here if it exists, so use target_name */
  59275. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  59276. + XFREE (tmp_pathspec);
  59277. + tmp_pathspec = NULL;
  59278. +EOF
  59279. - # Save the value of $output and $libobjs because we want to
  59280. - # use them later. If we have whole_archive_flag_spec, we
  59281. - # want to use save_libobjs as it was before
  59282. - # whole_archive_flag_spec was expanded, because we can't
  59283. - # assume the linker understands whole_archive_flag_spec.
  59284. - # This may have to be revisited, in case too many
  59285. - # convenience libraries get linked in and end up exceeding
  59286. - # the spec.
  59287. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  59288. - save_libobjs=$libobjs
  59289. - fi
  59290. - save_output=$output
  59291. + case $host_os in
  59292. + mingw*)
  59293. + cat <<"EOF"
  59294. + {
  59295. + char* p;
  59296. + while ((p = strchr (newargz[0], '\\')) != NULL)
  59297. + {
  59298. + *p = '/';
  59299. + }
  59300. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  59301. + {
  59302. + *p = '/';
  59303. + }
  59304. + }
  59305. +EOF
  59306. + ;;
  59307. + esac
  59308. - # Clear the reloadable object creation command queue and
  59309. - # initialize k to one.
  59310. - test_cmds=
  59311. - concat_cmds=
  59312. - objlist=
  59313. - delfiles=
  59314. - last_robj=
  59315. - k=1
  59316. - output=$output_objdir/$save_output-${k}.$objext
  59317. - # Loop over the list of objects to be linked.
  59318. - for obj in $save_libobjs
  59319. - do
  59320. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  59321. - if test "X$objlist" = X ||
  59322. - { len=`expr "X$test_cmds" : ".*"` &&
  59323. - test "$len" -le "$max_cmd_len"; }; then
  59324. - objlist="$objlist $obj"
  59325. - else
  59326. - # The command $test_cmds is almost too long, add a
  59327. - # command to the queue.
  59328. - if test "$k" -eq 1 ; then
  59329. - # The first file doesn't have a previous command to add.
  59330. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  59331. - else
  59332. - # All subsequent reloadable object files will link in
  59333. - # the last one created.
  59334. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  59335. - fi
  59336. - last_robj=$output_objdir/$save_output-${k}.$objext
  59337. - k=`expr $k + 1`
  59338. - output=$output_objdir/$save_output-${k}.$objext
  59339. - objlist=$obj
  59340. - len=1
  59341. - fi
  59342. - done
  59343. - # Handle the remaining objects by creating one last
  59344. - # reloadable object file. All subsequent reloadable object
  59345. - # files will link in the last one created.
  59346. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59347. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  59348. + cat <<"EOF"
  59349. + XFREE (target_name);
  59350. + XFREE (actual_cwrapper_path);
  59351. + XFREE (actual_cwrapper_name);
  59352. +
  59353. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  59354. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  59355. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  59356. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  59357. - if ${skipped_export-false}; then
  59358. - $show "generating symbol list for \`$libname.la'"
  59359. - export_symbols="$output_objdir/$libname.exp"
  59360. - $run $rm $export_symbols
  59361. - libobjs=$output
  59362. - # Append the command to create the export file.
  59363. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  59364. - fi
  59365. -
  59366. - # Set up a command to remove the reloadale object files
  59367. - # after they are used.
  59368. - i=0
  59369. - while test "$i" -lt "$k"
  59370. - do
  59371. - i=`expr $i + 1`
  59372. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  59373. - done
  59374. + newargc=0;
  59375. + for (i = 1; i < argc; i++)
  59376. + {
  59377. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  59378. + {
  59379. + if (argv[i][env_set_opt_len] == '=')
  59380. + {
  59381. + const char *p = argv[i] + env_set_opt_len + 1;
  59382. + lt_opt_process_env_set (p);
  59383. + }
  59384. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  59385. + {
  59386. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  59387. + }
  59388. + else
  59389. + lt_fatal ("%s missing required argument", env_set_opt);
  59390. + continue;
  59391. + }
  59392. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  59393. + {
  59394. + if (argv[i][env_prepend_opt_len] == '=')
  59395. + {
  59396. + const char *p = argv[i] + env_prepend_opt_len + 1;
  59397. + lt_opt_process_env_prepend (p);
  59398. + }
  59399. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  59400. + {
  59401. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  59402. + }
  59403. + else
  59404. + lt_fatal ("%s missing required argument", env_prepend_opt);
  59405. + continue;
  59406. + }
  59407. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  59408. + {
  59409. + if (argv[i][env_append_opt_len] == '=')
  59410. + {
  59411. + const char *p = argv[i] + env_append_opt_len + 1;
  59412. + lt_opt_process_env_append (p);
  59413. + }
  59414. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  59415. + {
  59416. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  59417. + }
  59418. + else
  59419. + lt_fatal ("%s missing required argument", env_append_opt);
  59420. + continue;
  59421. + }
  59422. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  59423. + {
  59424. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  59425. + namespace, but it is not one of the ones we know about and
  59426. + have already dealt with, above (inluding dump-script), then
  59427. + report an error. Otherwise, targets might begin to believe
  59428. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  59429. + namespace. The first time any user complains about this, we'll
  59430. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  59431. + or a configure.ac-settable value.
  59432. + */
  59433. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  59434. + ltwrapper_option_prefix, argv[i]);
  59435. + }
  59436. + /* otherwise ... */
  59437. + newargz[++newargc] = xstrdup (argv[i]);
  59438. + }
  59439. + newargz[++newargc] = NULL;
  59440. +
  59441. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  59442. + for (i = 0; i < newargc; i++)
  59443. + {
  59444. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  59445. + }
  59446. - $echo "creating a temporary reloadable object file: $output"
  59447. +EOF
  59448. - # Loop through the commands generated above and execute them.
  59449. - save_ifs="$IFS"; IFS='~'
  59450. - for cmd in $concat_cmds; do
  59451. - IFS="$save_ifs"
  59452. - $show "$cmd"
  59453. - $run eval "$cmd" || exit $?
  59454. - done
  59455. - IFS="$save_ifs"
  59456. + case $host_os in
  59457. + mingw*)
  59458. + cat <<"EOF"
  59459. + /* execv doesn't actually work on mingw as expected on unix */
  59460. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  59461. + if (rval == -1)
  59462. + {
  59463. + /* failed to start process */
  59464. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  59465. + return 127;
  59466. + }
  59467. + return rval;
  59468. +EOF
  59469. + ;;
  59470. + *)
  59471. + cat <<"EOF"
  59472. + execv (lt_argv_zero, newargz);
  59473. + return rval; /* =127, but avoids unused variable warning */
  59474. +EOF
  59475. + ;;
  59476. + esac
  59477. - libobjs=$output
  59478. - # Restore the value of output.
  59479. - output=$save_output
  59480. + cat <<"EOF"
  59481. +}
  59482. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  59483. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59484. - fi
  59485. - # Expand the library linking commands again to reset the
  59486. - # value of $libobjs for piecewise linking.
  59487. +void *
  59488. +xmalloc (size_t num)
  59489. +{
  59490. + void *p = (void *) malloc (num);
  59491. + if (!p)
  59492. + lt_fatal ("Memory exhausted");
  59493. - # Do each of the archive commands.
  59494. - if test "$module" = yes && test -n "$module_cmds" ; then
  59495. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59496. - cmds=$module_expsym_cmds
  59497. - else
  59498. - cmds=$module_cmds
  59499. - fi
  59500. - else
  59501. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59502. - cmds=$archive_expsym_cmds
  59503. - else
  59504. - cmds=$archive_cmds
  59505. - fi
  59506. - fi
  59507. + return p;
  59508. +}
  59509. - # Append the command to remove the reloadable object files
  59510. - # to the just-reset $cmds.
  59511. - eval cmds=\"\$cmds~\$rm $delfiles\"
  59512. - fi
  59513. - save_ifs="$IFS"; IFS='~'
  59514. - for cmd in $cmds; do
  59515. - IFS="$save_ifs"
  59516. - eval cmd=\"$cmd\"
  59517. - $show "$cmd"
  59518. - $run eval "$cmd" || exit $?
  59519. - done
  59520. - IFS="$save_ifs"
  59521. +char *
  59522. +xstrdup (const char *string)
  59523. +{
  59524. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  59525. + string) : NULL;
  59526. +}
  59527. - # Restore the uninstalled library and exit
  59528. - if test "$mode" = relink; then
  59529. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  59530. - exit $EXIT_SUCCESS
  59531. - fi
  59532. +const char *
  59533. +base_name (const char *name)
  59534. +{
  59535. + const char *base;
  59536. - # Create links to the real library.
  59537. - for linkname in $linknames; do
  59538. - if test "$realname" != "$linkname"; then
  59539. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  59540. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  59541. - fi
  59542. - done
  59543. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  59544. + /* Skip over the disk name in MSDOS pathnames. */
  59545. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  59546. + name += 2;
  59547. +#endif
  59548. - # If -module or -export-dynamic was specified, set the dlname.
  59549. - if test "$module" = yes || test "$export_dynamic" = yes; then
  59550. - # On all known operating systems, these are identical.
  59551. - dlname="$soname"
  59552. - fi
  59553. - fi
  59554. - ;;
  59555. + for (base = name; *name; name++)
  59556. + if (IS_DIR_SEPARATOR (*name))
  59557. + base = name + 1;
  59558. + return base;
  59559. +}
  59560. - obj)
  59561. - if test -n "$deplibs"; then
  59562. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  59563. - fi
  59564. +int
  59565. +check_executable (const char *path)
  59566. +{
  59567. + struct stat st;
  59568. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  59569. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  59570. - fi
  59571. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  59572. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  59573. + if ((!path) || (!*path))
  59574. + return 0;
  59575. +
  59576. + if ((stat (path, &st) >= 0)
  59577. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  59578. + return 1;
  59579. + else
  59580. + return 0;
  59581. +}
  59582. - if test -n "$rpath"; then
  59583. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  59584. - fi
  59585. +int
  59586. +make_executable (const char *path)
  59587. +{
  59588. + int rval = 0;
  59589. + struct stat st;
  59590. - if test -n "$xrpath"; then
  59591. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  59592. - fi
  59593. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  59594. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  59595. + if ((!path) || (!*path))
  59596. + return 0;
  59597. +
  59598. + if (stat (path, &st) >= 0)
  59599. + {
  59600. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  59601. + }
  59602. + return rval;
  59603. +}
  59604. - if test -n "$vinfo"; then
  59605. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  59606. - fi
  59607. +/* Searches for the full path of the wrapper. Returns
  59608. + newly allocated full path name if found, NULL otherwise
  59609. + Does not chase symlinks, even on platforms that support them.
  59610. +*/
  59611. +char *
  59612. +find_executable (const char *wrapper)
  59613. +{
  59614. + int has_slash = 0;
  59615. + const char *p;
  59616. + const char *p_next;
  59617. + /* static buffer for getcwd */
  59618. + char tmp[LT_PATHMAX + 1];
  59619. + int tmp_len;
  59620. + char *concat_name;
  59621. - if test -n "$release"; then
  59622. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  59623. - fi
  59624. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  59625. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  59626. - case $output in
  59627. - *.lo)
  59628. - if test -n "$objs$old_deplibs"; then
  59629. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  59630. - exit $EXIT_FAILURE
  59631. - fi
  59632. - libobj="$output"
  59633. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  59634. - ;;
  59635. - *)
  59636. - libobj=
  59637. - obj="$output"
  59638. - ;;
  59639. - esac
  59640. + if ((wrapper == NULL) || (*wrapper == '\0'))
  59641. + return NULL;
  59642. - # Delete the old objects.
  59643. - $run $rm $obj $libobj
  59644. + /* Absolute path? */
  59645. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  59646. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  59647. + {
  59648. + concat_name = xstrdup (wrapper);
  59649. + if (check_executable (concat_name))
  59650. + return concat_name;
  59651. + XFREE (concat_name);
  59652. + }
  59653. + else
  59654. + {
  59655. +#endif
  59656. + if (IS_DIR_SEPARATOR (wrapper[0]))
  59657. + {
  59658. + concat_name = xstrdup (wrapper);
  59659. + if (check_executable (concat_name))
  59660. + return concat_name;
  59661. + XFREE (concat_name);
  59662. + }
  59663. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  59664. + }
  59665. +#endif
  59666. - # Objects from convenience libraries. This assumes
  59667. - # single-version convenience libraries. Whenever we create
  59668. - # different ones for PIC/non-PIC, this we'll have to duplicate
  59669. - # the extraction.
  59670. - reload_conv_objs=
  59671. - gentop=
  59672. - # reload_cmds runs $LD directly, so let us get rid of
  59673. - # -Wl from whole_archive_flag_spec
  59674. - wl=
  59675. + for (p = wrapper; *p; p++)
  59676. + if (*p == '/')
  59677. + {
  59678. + has_slash = 1;
  59679. + break;
  59680. + }
  59681. + if (!has_slash)
  59682. + {
  59683. + /* no slashes; search PATH */
  59684. + const char *path = getenv ("PATH");
  59685. + if (path != NULL)
  59686. + {
  59687. + for (p = path; *p; p = p_next)
  59688. + {
  59689. + const char *q;
  59690. + size_t p_len;
  59691. + for (q = p; *q; q++)
  59692. + if (IS_PATH_SEPARATOR (*q))
  59693. + break;
  59694. + p_len = q - p;
  59695. + p_next = (*q == '\0' ? q : q + 1);
  59696. + if (p_len == 0)
  59697. + {
  59698. + /* empty path: current directory */
  59699. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  59700. + lt_fatal ("getcwd failed");
  59701. + tmp_len = strlen (tmp);
  59702. + concat_name =
  59703. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  59704. + memcpy (concat_name, tmp, tmp_len);
  59705. + concat_name[tmp_len] = '/';
  59706. + strcpy (concat_name + tmp_len + 1, wrapper);
  59707. + }
  59708. + else
  59709. + {
  59710. + concat_name =
  59711. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  59712. + memcpy (concat_name, p, p_len);
  59713. + concat_name[p_len] = '/';
  59714. + strcpy (concat_name + p_len + 1, wrapper);
  59715. + }
  59716. + if (check_executable (concat_name))
  59717. + return concat_name;
  59718. + XFREE (concat_name);
  59719. + }
  59720. + }
  59721. + /* not found in PATH; assume curdir */
  59722. + }
  59723. + /* Relative path | not found in path: prepend cwd */
  59724. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  59725. + lt_fatal ("getcwd failed");
  59726. + tmp_len = strlen (tmp);
  59727. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  59728. + memcpy (concat_name, tmp, tmp_len);
  59729. + concat_name[tmp_len] = '/';
  59730. + strcpy (concat_name + tmp_len + 1, wrapper);
  59731. +
  59732. + if (check_executable (concat_name))
  59733. + return concat_name;
  59734. + XFREE (concat_name);
  59735. + return NULL;
  59736. +}
  59737. - if test -n "$convenience"; then
  59738. - if test -n "$whole_archive_flag_spec"; then
  59739. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  59740. - else
  59741. - gentop="$output_objdir/${obj}x"
  59742. - generated="$generated $gentop"
  59743. +char *
  59744. +chase_symlinks (const char *pathspec)
  59745. +{
  59746. +#ifndef S_ISLNK
  59747. + return xstrdup (pathspec);
  59748. +#else
  59749. + char buf[LT_PATHMAX];
  59750. + struct stat s;
  59751. + char *tmp_pathspec = xstrdup (pathspec);
  59752. + char *p;
  59753. + int has_symlinks = 0;
  59754. + while (strlen (tmp_pathspec) && !has_symlinks)
  59755. + {
  59756. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  59757. + tmp_pathspec));
  59758. + if (lstat (tmp_pathspec, &s) == 0)
  59759. + {
  59760. + if (S_ISLNK (s.st_mode) != 0)
  59761. + {
  59762. + has_symlinks = 1;
  59763. + break;
  59764. + }
  59765. +
  59766. + /* search backwards for last DIR_SEPARATOR */
  59767. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  59768. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  59769. + p--;
  59770. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  59771. + {
  59772. + /* no more DIR_SEPARATORS left */
  59773. + break;
  59774. + }
  59775. + *p = '\0';
  59776. + }
  59777. + else
  59778. + {
  59779. + char *errstr = strerror (errno);
  59780. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  59781. + }
  59782. + }
  59783. + XFREE (tmp_pathspec);
  59784. +
  59785. + if (!has_symlinks)
  59786. + {
  59787. + return xstrdup (pathspec);
  59788. + }
  59789. +
  59790. + tmp_pathspec = realpath (pathspec, buf);
  59791. + if (tmp_pathspec == 0)
  59792. + {
  59793. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  59794. + }
  59795. + return xstrdup (tmp_pathspec);
  59796. +#endif
  59797. +}
  59798. - func_extract_archives $gentop $convenience
  59799. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  59800. - fi
  59801. - fi
  59802. +char *
  59803. +strendzap (char *str, const char *pat)
  59804. +{
  59805. + size_t len, patlen;
  59806. - # Create the old-style object.
  59807. - 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
  59808. + assert (str != NULL);
  59809. + assert (pat != NULL);
  59810. - output="$obj"
  59811. - cmds=$reload_cmds
  59812. - save_ifs="$IFS"; IFS='~'
  59813. - for cmd in $cmds; do
  59814. - IFS="$save_ifs"
  59815. - eval cmd=\"$cmd\"
  59816. - $show "$cmd"
  59817. - $run eval "$cmd" || exit $?
  59818. - done
  59819. - IFS="$save_ifs"
  59820. + len = strlen (str);
  59821. + patlen = strlen (pat);
  59822. - # Exit if we aren't doing a library object file.
  59823. - if test -z "$libobj"; then
  59824. - if test -n "$gentop"; then
  59825. - $show "${rm}r $gentop"
  59826. - $run ${rm}r $gentop
  59827. - fi
  59828. + if (patlen <= len)
  59829. + {
  59830. + str += len - patlen;
  59831. + if (strcmp (str, pat) == 0)
  59832. + *str = '\0';
  59833. + }
  59834. + return str;
  59835. +}
  59836. - exit $EXIT_SUCCESS
  59837. - fi
  59838. +static void
  59839. +lt_error_core (int exit_status, const char *mode,
  59840. + const char *message, va_list ap)
  59841. +{
  59842. + fprintf (stderr, "%s: %s: ", program_name, mode);
  59843. + vfprintf (stderr, message, ap);
  59844. + fprintf (stderr, ".\n");
  59845. - if test "$build_libtool_libs" != yes; then
  59846. - if test -n "$gentop"; then
  59847. - $show "${rm}r $gentop"
  59848. - $run ${rm}r $gentop
  59849. - fi
  59850. + if (exit_status >= 0)
  59851. + exit (exit_status);
  59852. +}
  59853. - # Create an invalid libtool object if no PIC, so that we don't
  59854. - # accidentally link it into a program.
  59855. - # $show "echo timestamp > $libobj"
  59856. - # $run eval "echo timestamp > $libobj" || exit $?
  59857. - exit $EXIT_SUCCESS
  59858. - fi
  59859. +void
  59860. +lt_fatal (const char *message, ...)
  59861. +{
  59862. + va_list ap;
  59863. + va_start (ap, message);
  59864. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  59865. + va_end (ap);
  59866. +}
  59867. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  59868. - # Only do commands if we really have different PIC objects.
  59869. - reload_objs="$libobjs $reload_conv_objs"
  59870. - output="$libobj"
  59871. - cmds=$reload_cmds
  59872. - save_ifs="$IFS"; IFS='~'
  59873. - for cmd in $cmds; do
  59874. - IFS="$save_ifs"
  59875. - eval cmd=\"$cmd\"
  59876. - $show "$cmd"
  59877. - $run eval "$cmd" || exit $?
  59878. - done
  59879. - IFS="$save_ifs"
  59880. - fi
  59881. +void
  59882. +lt_setenv (const char *name, const char *value)
  59883. +{
  59884. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  59885. + (name ? name : "<NULL>"),
  59886. + (value ? value : "<NULL>")));
  59887. + {
  59888. +#ifdef HAVE_SETENV
  59889. + /* always make a copy, for consistency with !HAVE_SETENV */
  59890. + char *str = xstrdup (value);
  59891. + setenv (name, str, 1);
  59892. +#else
  59893. + int len = strlen (name) + 1 + strlen (value) + 1;
  59894. + char *str = XMALLOC (char, len);
  59895. + sprintf (str, "%s=%s", name, value);
  59896. + if (putenv (str) != EXIT_SUCCESS)
  59897. + {
  59898. + XFREE (str);
  59899. + }
  59900. +#endif
  59901. + }
  59902. +}
  59903. - if test -n "$gentop"; then
  59904. - $show "${rm}r $gentop"
  59905. - $run ${rm}r $gentop
  59906. - fi
  59907. +char *
  59908. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  59909. +{
  59910. + char *new_value;
  59911. + if (orig_value && *orig_value)
  59912. + {
  59913. + int orig_value_len = strlen (orig_value);
  59914. + int add_len = strlen (add);
  59915. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  59916. + if (to_end)
  59917. + {
  59918. + strcpy (new_value, orig_value);
  59919. + strcpy (new_value + orig_value_len, add);
  59920. + }
  59921. + else
  59922. + {
  59923. + strcpy (new_value, add);
  59924. + strcpy (new_value + add_len, orig_value);
  59925. + }
  59926. + }
  59927. + else
  59928. + {
  59929. + new_value = xstrdup (add);
  59930. + }
  59931. + return new_value;
  59932. +}
  59933. - exit $EXIT_SUCCESS
  59934. - ;;
  59935. +int
  59936. +lt_split_name_value (const char *arg, char** name, char** value)
  59937. +{
  59938. + const char *p;
  59939. + int len;
  59940. + if (!arg || !*arg)
  59941. + return 1;
  59942. - prog)
  59943. - case $host in
  59944. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  59945. - esac
  59946. - if test -n "$vinfo"; then
  59947. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  59948. - fi
  59949. + p = strchr (arg, (int)'=');
  59950. - if test -n "$release"; then
  59951. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  59952. - fi
  59953. + if (!p)
  59954. + return 1;
  59955. - if test "$preload" = yes; then
  59956. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  59957. - test "$dlopen_self_static" = unknown; then
  59958. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  59959. - fi
  59960. - fi
  59961. + *value = xstrdup (++p);
  59962. - case $host in
  59963. - *-*-rhapsody* | *-*-darwin1.[012])
  59964. - # On Rhapsody replace the C library is the System framework
  59965. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  59966. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  59967. - ;;
  59968. - esac
  59969. + len = strlen (arg) - strlen (*value);
  59970. + *name = XMALLOC (char, len);
  59971. + strncpy (*name, arg, len-1);
  59972. + (*name)[len - 1] = '\0';
  59973. - case $host in
  59974. - *darwin*)
  59975. - # Don't allow lazy linking, it breaks C++ global constructors
  59976. - if test "$tagname" = CXX ; then
  59977. - compile_command="$compile_command ${wl}-bind_at_load"
  59978. - finalize_command="$finalize_command ${wl}-bind_at_load"
  59979. - fi
  59980. - ;;
  59981. - esac
  59982. + return 0;
  59983. +}
  59984. - compile_command="$compile_command $compile_deplibs"
  59985. - finalize_command="$finalize_command $finalize_deplibs"
  59986. +void
  59987. +lt_opt_process_env_set (const char *arg)
  59988. +{
  59989. + char *name = NULL;
  59990. + char *value = NULL;
  59991. - if test -n "$rpath$xrpath"; then
  59992. - # If the user specified any rpath flags, then add them.
  59993. - for libdir in $rpath $xrpath; do
  59994. - # This is the magic to use -rpath.
  59995. - case "$finalize_rpath " in
  59996. - *" $libdir "*) ;;
  59997. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  59998. - esac
  59999. - done
  60000. - fi
  60001. + if (lt_split_name_value (arg, &name, &value) != 0)
  60002. + {
  60003. + XFREE (name);
  60004. + XFREE (value);
  60005. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  60006. + }
  60007. +
  60008. + lt_setenv (name, value);
  60009. + XFREE (name);
  60010. + XFREE (value);
  60011. +}
  60012. - # Now hardcode the library paths
  60013. - rpath=
  60014. - hardcode_libdirs=
  60015. - for libdir in $compile_rpath $finalize_rpath; do
  60016. - if test -n "$hardcode_libdir_flag_spec"; then
  60017. - if test -n "$hardcode_libdir_separator"; then
  60018. - if test -z "$hardcode_libdirs"; then
  60019. - hardcode_libdirs="$libdir"
  60020. - else
  60021. - # Just accumulate the unique libdirs.
  60022. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60023. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60024. - ;;
  60025. - *)
  60026. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60027. - ;;
  60028. - esac
  60029. - fi
  60030. - else
  60031. - eval flag=\"$hardcode_libdir_flag_spec\"
  60032. - rpath="$rpath $flag"
  60033. - fi
  60034. - elif test -n "$runpath_var"; then
  60035. - case "$perm_rpath " in
  60036. - *" $libdir "*) ;;
  60037. - *) perm_rpath="$perm_rpath $libdir" ;;
  60038. - esac
  60039. - fi
  60040. - case $host in
  60041. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  60042. - case :$dllsearchpath: in
  60043. - *":$libdir:"*) ;;
  60044. - *) dllsearchpath="$dllsearchpath:$libdir";;
  60045. - esac
  60046. - ;;
  60047. - esac
  60048. - done
  60049. - # Substitute the hardcoded libdirs into the rpath.
  60050. - if test -n "$hardcode_libdir_separator" &&
  60051. - test -n "$hardcode_libdirs"; then
  60052. - libdir="$hardcode_libdirs"
  60053. - eval rpath=\" $hardcode_libdir_flag_spec\"
  60054. - fi
  60055. - compile_rpath="$rpath"
  60056. -
  60057. - rpath=
  60058. - hardcode_libdirs=
  60059. - for libdir in $finalize_rpath; do
  60060. - if test -n "$hardcode_libdir_flag_spec"; then
  60061. - if test -n "$hardcode_libdir_separator"; then
  60062. - if test -z "$hardcode_libdirs"; then
  60063. - hardcode_libdirs="$libdir"
  60064. - else
  60065. - # Just accumulate the unique libdirs.
  60066. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60067. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60068. - ;;
  60069. - *)
  60070. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60071. - ;;
  60072. - esac
  60073. - fi
  60074. - else
  60075. - eval flag=\"$hardcode_libdir_flag_spec\"
  60076. - rpath="$rpath $flag"
  60077. - fi
  60078. - elif test -n "$runpath_var"; then
  60079. - case "$finalize_perm_rpath " in
  60080. - *" $libdir "*) ;;
  60081. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  60082. - esac
  60083. - fi
  60084. - done
  60085. - # Substitute the hardcoded libdirs into the rpath.
  60086. - if test -n "$hardcode_libdir_separator" &&
  60087. - test -n "$hardcode_libdirs"; then
  60088. - libdir="$hardcode_libdirs"
  60089. - eval rpath=\" $hardcode_libdir_flag_spec\"
  60090. - fi
  60091. - finalize_rpath="$rpath"
  60092. -
  60093. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  60094. - # Transform all the library objects into standard objects.
  60095. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60096. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60097. - fi
  60098. +void
  60099. +lt_opt_process_env_prepend (const char *arg)
  60100. +{
  60101. + char *name = NULL;
  60102. + char *value = NULL;
  60103. + char *new_value = NULL;
  60104. +
  60105. + if (lt_split_name_value (arg, &name, &value) != 0)
  60106. + {
  60107. + XFREE (name);
  60108. + XFREE (value);
  60109. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  60110. + }
  60111. +
  60112. + new_value = lt_extend_str (getenv (name), value, 0);
  60113. + lt_setenv (name, new_value);
  60114. + XFREE (new_value);
  60115. + XFREE (name);
  60116. + XFREE (value);
  60117. +}
  60118. - dlsyms=
  60119. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  60120. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  60121. - dlsyms="${outputname}S.c"
  60122. - else
  60123. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  60124. - fi
  60125. - fi
  60126. +void
  60127. +lt_opt_process_env_append (const char *arg)
  60128. +{
  60129. + char *name = NULL;
  60130. + char *value = NULL;
  60131. + char *new_value = NULL;
  60132. +
  60133. + if (lt_split_name_value (arg, &name, &value) != 0)
  60134. + {
  60135. + XFREE (name);
  60136. + XFREE (value);
  60137. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  60138. + }
  60139. +
  60140. + new_value = lt_extend_str (getenv (name), value, 1);
  60141. + lt_setenv (name, new_value);
  60142. + XFREE (new_value);
  60143. + XFREE (name);
  60144. + XFREE (value);
  60145. +}
  60146. - if test -n "$dlsyms"; then
  60147. - case $dlsyms in
  60148. - "") ;;
  60149. - *.c)
  60150. - # Discover the nlist of each of the dlfiles.
  60151. - nlist="$output_objdir/${outputname}.nm"
  60152. +void
  60153. +lt_update_exe_path (const char *name, const char *value)
  60154. +{
  60155. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  60156. + (name ? name : "<NULL>"),
  60157. + (value ? value : "<NULL>")));
  60158. +
  60159. + if (name && *name && value && *value)
  60160. + {
  60161. + char *new_value = lt_extend_str (getenv (name), value, 0);
  60162. + /* some systems can't cope with a ':'-terminated path #' */
  60163. + int len = strlen (new_value);
  60164. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  60165. + {
  60166. + new_value[len-1] = '\0';
  60167. + }
  60168. + lt_setenv (name, new_value);
  60169. + XFREE (new_value);
  60170. + }
  60171. +}
  60172. - $show "$rm $nlist ${nlist}S ${nlist}T"
  60173. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  60174. +void
  60175. +lt_update_lib_path (const char *name, const char *value)
  60176. +{
  60177. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  60178. + (name ? name : "<NULL>"),
  60179. + (value ? value : "<NULL>")));
  60180. +
  60181. + if (name && *name && value && *value)
  60182. + {
  60183. + char *new_value = lt_extend_str (getenv (name), value, 0);
  60184. + lt_setenv (name, new_value);
  60185. + XFREE (new_value);
  60186. + }
  60187. +}
  60188. - # Parse the name list into a source file.
  60189. - $show "creating $output_objdir/$dlsyms"
  60190. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  60191. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  60192. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  60193. +EOF
  60194. +}
  60195. +# end: func_emit_cwrapperexe_src
  60196. -#ifdef __cplusplus
  60197. -extern \"C\" {
  60198. -#endif
  60199. +# func_mode_link arg...
  60200. +func_mode_link ()
  60201. +{
  60202. + $opt_debug
  60203. + case $host in
  60204. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  60205. + # It is impossible to link a dll without this setting, and
  60206. + # we shouldn't force the makefile maintainer to figure out
  60207. + # which system we are compiling for in order to pass an extra
  60208. + # flag for every libtool invocation.
  60209. + # allow_undefined=no
  60210. -/* Prevent the only kind of declaration conflicts we can make. */
  60211. -#define lt_preloaded_symbols some_other_symbol
  60212. + # FIXME: Unfortunately, there are problems with the above when trying
  60213. + # to make a dll which has undefined symbols, in which case not
  60214. + # even a static library is built. For now, we need to specify
  60215. + # -no-undefined on the libtool link line when we can be certain
  60216. + # that all symbols are satisfied, otherwise we get a static library.
  60217. + allow_undefined=yes
  60218. + ;;
  60219. + *)
  60220. + allow_undefined=yes
  60221. + ;;
  60222. + esac
  60223. + libtool_args=$nonopt
  60224. + base_compile="$nonopt $@"
  60225. + compile_command=$nonopt
  60226. + finalize_command=$nonopt
  60227. -/* External symbol declarations for the compiler. */\
  60228. -"
  60229. + compile_rpath=
  60230. + finalize_rpath=
  60231. + compile_shlibpath=
  60232. + finalize_shlibpath=
  60233. + convenience=
  60234. + old_convenience=
  60235. + deplibs=
  60236. + old_deplibs=
  60237. + compiler_flags=
  60238. + linker_flags=
  60239. + dllsearchpath=
  60240. + lib_search_path=`pwd`
  60241. + inst_prefix_dir=
  60242. + new_inherited_linker_flags=
  60243. - if test "$dlself" = yes; then
  60244. - $show "generating symbol list for \`$output'"
  60245. + avoid_version=no
  60246. + dlfiles=
  60247. + dlprefiles=
  60248. + dlself=no
  60249. + export_dynamic=no
  60250. + export_symbols=
  60251. + export_symbols_regex=
  60252. + generated=
  60253. + libobjs=
  60254. + ltlibs=
  60255. + module=no
  60256. + no_install=no
  60257. + objs=
  60258. + non_pic_objects=
  60259. + precious_files_regex=
  60260. + prefer_static_libs=no
  60261. + preload=no
  60262. + prev=
  60263. + prevarg=
  60264. + release=
  60265. + rpath=
  60266. + xrpath=
  60267. + perm_rpath=
  60268. + temp_rpath=
  60269. + thread_safe=no
  60270. + vinfo=
  60271. + vinfo_number=no
  60272. + weak_libs=
  60273. + single_module="${wl}-single_module"
  60274. + func_infer_tag $base_compile
  60275. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  60276. + # We need to know -static, to get the right output filenames.
  60277. + for arg
  60278. + do
  60279. + case $arg in
  60280. + -shared)
  60281. + test "$build_libtool_libs" != yes && \
  60282. + func_fatal_configuration "can not build a shared library"
  60283. + build_old_libs=no
  60284. + break
  60285. + ;;
  60286. + -all-static | -static | -static-libtool-libs)
  60287. + case $arg in
  60288. + -all-static)
  60289. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  60290. + func_warning "complete static linking is impossible in this configuration"
  60291. + fi
  60292. + if test -n "$link_static_flag"; then
  60293. + dlopen_self=$dlopen_self_static
  60294. + fi
  60295. + prefer_static_libs=yes
  60296. + ;;
  60297. + -static)
  60298. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  60299. + dlopen_self=$dlopen_self_static
  60300. + fi
  60301. + prefer_static_libs=built
  60302. + ;;
  60303. + -static-libtool-libs)
  60304. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  60305. + dlopen_self=$dlopen_self_static
  60306. + fi
  60307. + prefer_static_libs=yes
  60308. + ;;
  60309. + esac
  60310. + build_libtool_libs=no
  60311. + build_old_libs=yes
  60312. + break
  60313. + ;;
  60314. + esac
  60315. + done
  60316. - # Add our own program objects to the symbol list.
  60317. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60318. - for arg in $progfiles; do
  60319. - $show "extracting global C symbols from \`$arg'"
  60320. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  60321. - done
  60322. + # See if our shared archives depend on static archives.
  60323. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  60324. - if test -n "$exclude_expsyms"; then
  60325. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  60326. - $run eval '$mv "$nlist"T "$nlist"'
  60327. - fi
  60328. + # Go through the arguments, transforming them on the way.
  60329. + while test "$#" -gt 0; do
  60330. + arg="$1"
  60331. + shift
  60332. + func_quote_for_eval "$arg"
  60333. + qarg=$func_quote_for_eval_unquoted_result
  60334. + func_append libtool_args " $func_quote_for_eval_result"
  60335. - if test -n "$export_symbols_regex"; then
  60336. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  60337. - $run eval '$mv "$nlist"T "$nlist"'
  60338. - fi
  60339. + # If the previous option needs an argument, assign it.
  60340. + if test -n "$prev"; then
  60341. + case $prev in
  60342. + output)
  60343. + func_append compile_command " @OUTPUT@"
  60344. + func_append finalize_command " @OUTPUT@"
  60345. + ;;
  60346. + esac
  60347. - # Prepare the list of exported symbols
  60348. - if test -z "$export_symbols"; then
  60349. - export_symbols="$output_objdir/$output.exp"
  60350. - $run $rm $export_symbols
  60351. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  60352. - else
  60353. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  60354. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  60355. - $run eval 'mv "$nlist"T "$nlist"'
  60356. - fi
  60357. + case $prev in
  60358. + dlfiles|dlprefiles)
  60359. + if test "$preload" = no; then
  60360. + # Add the symbol object into the linking commands.
  60361. + func_append compile_command " @SYMFILE@"
  60362. + func_append finalize_command " @SYMFILE@"
  60363. + preload=yes
  60364. fi
  60365. -
  60366. - for arg in $dlprefiles; do
  60367. - $show "extracting global C symbols from \`$arg'"
  60368. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  60369. - $run eval '$echo ": $name " >> "$nlist"'
  60370. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  60371. - done
  60372. -
  60373. - if test -z "$run"; then
  60374. - # Make sure we have at least an empty file.
  60375. - test -f "$nlist" || : > "$nlist"
  60376. -
  60377. - if test -n "$exclude_expsyms"; then
  60378. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  60379. - $mv "$nlist"T "$nlist"
  60380. + case $arg in
  60381. + *.la | *.lo) ;; # We handle these cases below.
  60382. + force)
  60383. + if test "$dlself" = no; then
  60384. + dlself=needless
  60385. + export_dynamic=yes
  60386. fi
  60387. -
  60388. - # Try sorting and uniquifying the output.
  60389. - if grep -v "^: " < "$nlist" |
  60390. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  60391. - sort -k 3
  60392. - else
  60393. - sort +2
  60394. - fi |
  60395. - uniq > "$nlist"S; then
  60396. - :
  60397. + prev=
  60398. + continue
  60399. + ;;
  60400. + self)
  60401. + if test "$prev" = dlprefiles; then
  60402. + dlself=yes
  60403. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  60404. + dlself=yes
  60405. else
  60406. - grep -v "^: " < "$nlist" > "$nlist"S
  60407. + dlself=needless
  60408. + export_dynamic=yes
  60409. fi
  60410. -
  60411. - if test -f "$nlist"S; then
  60412. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  60413. + prev=
  60414. + continue
  60415. + ;;
  60416. + *)
  60417. + if test "$prev" = dlfiles; then
  60418. + dlfiles="$dlfiles $arg"
  60419. else
  60420. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  60421. + dlprefiles="$dlprefiles $arg"
  60422. fi
  60423. + prev=
  60424. + continue
  60425. + ;;
  60426. + esac
  60427. + ;;
  60428. + expsyms)
  60429. + export_symbols="$arg"
  60430. + test -f "$arg" \
  60431. + || func_fatal_error "symbol file \`$arg' does not exist"
  60432. + prev=
  60433. + continue
  60434. + ;;
  60435. + expsyms_regex)
  60436. + export_symbols_regex="$arg"
  60437. + prev=
  60438. + continue
  60439. + ;;
  60440. + framework)
  60441. + case $host in
  60442. + *-*-darwin*)
  60443. + case "$deplibs " in
  60444. + *" $qarg.ltframework "*) ;;
  60445. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  60446. + ;;
  60447. + esac
  60448. + ;;
  60449. + esac
  60450. + prev=
  60451. + continue
  60452. + ;;
  60453. + inst_prefix)
  60454. + inst_prefix_dir="$arg"
  60455. + prev=
  60456. + continue
  60457. + ;;
  60458. + objectlist)
  60459. + if test -f "$arg"; then
  60460. + save_arg=$arg
  60461. + moreargs=
  60462. + for fil in `cat "$save_arg"`
  60463. + do
  60464. +# moreargs="$moreargs $fil"
  60465. + arg=$fil
  60466. + # A libtool-controlled object.
  60467. - $echo >> "$output_objdir/$dlsyms" "\
  60468. -
  60469. -#undef lt_preloaded_symbols
  60470. -
  60471. -#if defined (__STDC__) && __STDC__
  60472. -# define lt_ptr void *
  60473. -#else
  60474. -# define lt_ptr char *
  60475. -# define const
  60476. -#endif
  60477. + # Check to see that this really is a libtool object.
  60478. + if func_lalib_unsafe_p "$arg"; then
  60479. + pic_object=
  60480. + non_pic_object=
  60481. -/* The mapping between symbol names and symbols. */
  60482. -const struct {
  60483. - const char *name;
  60484. - lt_ptr address;
  60485. -}
  60486. -lt_preloaded_symbols[] =
  60487. -{\
  60488. -"
  60489. + # Read the .lo file
  60490. + func_source "$arg"
  60491. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  60492. + if test -z "$pic_object" ||
  60493. + test -z "$non_pic_object" ||
  60494. + test "$pic_object" = none &&
  60495. + test "$non_pic_object" = none; then
  60496. + func_fatal_error "cannot find name of object for \`$arg'"
  60497. + fi
  60498. - $echo >> "$output_objdir/$dlsyms" "\
  60499. - {0, (lt_ptr) 0}
  60500. -};
  60501. + # Extract subdirectory from the argument.
  60502. + func_dirname "$arg" "/" ""
  60503. + xdir="$func_dirname_result"
  60504. -/* This works around a problem in FreeBSD linker */
  60505. -#ifdef FREEBSD_WORKAROUND
  60506. -static const void *lt_preloaded_setup() {
  60507. - return lt_preloaded_symbols;
  60508. -}
  60509. -#endif
  60510. + if test "$pic_object" != none; then
  60511. + # Prepend the subdirectory the object is found in.
  60512. + pic_object="$xdir$pic_object"
  60513. -#ifdef __cplusplus
  60514. -}
  60515. -#endif\
  60516. -"
  60517. - fi
  60518. + if test "$prev" = dlfiles; then
  60519. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  60520. + dlfiles="$dlfiles $pic_object"
  60521. + prev=
  60522. + continue
  60523. + else
  60524. + # If libtool objects are unsupported, then we need to preload.
  60525. + prev=dlprefiles
  60526. + fi
  60527. + fi
  60528. - pic_flag_for_symtable=
  60529. - case $host in
  60530. - # compiling the symbol table file with pic_flag works around
  60531. - # a FreeBSD bug that causes programs to crash when -lm is
  60532. - # linked before any other PIC object. But we must not use
  60533. - # pic_flag when linking with -static. The problem exists in
  60534. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  60535. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  60536. - case "$compile_command " in
  60537. - *" -static "*) ;;
  60538. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  60539. - esac;;
  60540. - *-*-hpux*)
  60541. - case "$compile_command " in
  60542. - *" -static "*) ;;
  60543. - *) pic_flag_for_symtable=" $pic_flag";;
  60544. - esac
  60545. - esac
  60546. + # CHECK ME: I think I busted this. -Ossama
  60547. + if test "$prev" = dlprefiles; then
  60548. + # Preload the old-style object.
  60549. + dlprefiles="$dlprefiles $pic_object"
  60550. + prev=
  60551. + fi
  60552. +
  60553. + # A PIC object.
  60554. + func_append libobjs " $pic_object"
  60555. + arg="$pic_object"
  60556. + fi
  60557. +
  60558. + # Non-PIC object.
  60559. + if test "$non_pic_object" != none; then
  60560. + # Prepend the subdirectory the object is found in.
  60561. + non_pic_object="$xdir$non_pic_object"
  60562. +
  60563. + # A standard non-PIC object
  60564. + func_append non_pic_objects " $non_pic_object"
  60565. + if test -z "$pic_object" || test "$pic_object" = none ; then
  60566. + arg="$non_pic_object"
  60567. + fi
  60568. + else
  60569. + # If the PIC object exists, use it instead.
  60570. + # $xdir was prepended to $pic_object above.
  60571. + non_pic_object="$pic_object"
  60572. + func_append non_pic_objects " $non_pic_object"
  60573. + fi
  60574. + else
  60575. + # Only an error if not doing a dry-run.
  60576. + if $opt_dry_run; then
  60577. + # Extract subdirectory from the argument.
  60578. + func_dirname "$arg" "/" ""
  60579. + xdir="$func_dirname_result"
  60580. - # Now compile the dynamic symbol file.
  60581. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  60582. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  60583. -
  60584. - # Clean up the generated files.
  60585. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  60586. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  60587. -
  60588. - # Transform the symbol file into the correct name.
  60589. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  60590. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  60591. + func_lo2o "$arg"
  60592. + pic_object=$xdir$objdir/$func_lo2o_result
  60593. + non_pic_object=$xdir$func_lo2o_result
  60594. + func_append libobjs " $pic_object"
  60595. + func_append non_pic_objects " $non_pic_object"
  60596. + else
  60597. + func_fatal_error "\`$arg' is not a valid libtool object"
  60598. + fi
  60599. + fi
  60600. + done
  60601. + else
  60602. + func_fatal_error "link input file \`$arg' does not exist"
  60603. + fi
  60604. + arg=$save_arg
  60605. + prev=
  60606. + continue
  60607. + ;;
  60608. + precious_regex)
  60609. + precious_files_regex="$arg"
  60610. + prev=
  60611. + continue
  60612. + ;;
  60613. + release)
  60614. + release="-$arg"
  60615. + prev=
  60616. + continue
  60617. + ;;
  60618. + rpath | xrpath)
  60619. + # We need an absolute path.
  60620. + case $arg in
  60621. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  60622. + *)
  60623. + func_fatal_error "only absolute run-paths are allowed"
  60624. + ;;
  60625. + esac
  60626. + if test "$prev" = rpath; then
  60627. + case "$rpath " in
  60628. + *" $arg "*) ;;
  60629. + *) rpath="$rpath $arg" ;;
  60630. + esac
  60631. + else
  60632. + case "$xrpath " in
  60633. + *" $arg "*) ;;
  60634. + *) xrpath="$xrpath $arg" ;;
  60635. + esac
  60636. + fi
  60637. + prev=
  60638. + continue
  60639. + ;;
  60640. + shrext)
  60641. + shrext_cmds="$arg"
  60642. + prev=
  60643. + continue
  60644. + ;;
  60645. + weak)
  60646. + weak_libs="$weak_libs $arg"
  60647. + prev=
  60648. + continue
  60649. + ;;
  60650. + xcclinker)
  60651. + linker_flags="$linker_flags $qarg"
  60652. + compiler_flags="$compiler_flags $qarg"
  60653. + prev=
  60654. + func_append compile_command " $qarg"
  60655. + func_append finalize_command " $qarg"
  60656. + continue
  60657. + ;;
  60658. + xcompiler)
  60659. + compiler_flags="$compiler_flags $qarg"
  60660. + prev=
  60661. + func_append compile_command " $qarg"
  60662. + func_append finalize_command " $qarg"
  60663. + continue
  60664. + ;;
  60665. + xlinker)
  60666. + linker_flags="$linker_flags $qarg"
  60667. + compiler_flags="$compiler_flags $wl$qarg"
  60668. + prev=
  60669. + func_append compile_command " $wl$qarg"
  60670. + func_append finalize_command " $wl$qarg"
  60671. + continue
  60672. ;;
  60673. *)
  60674. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  60675. - exit $EXIT_FAILURE
  60676. + eval "$prev=\"\$arg\""
  60677. + prev=
  60678. + continue
  60679. ;;
  60680. esac
  60681. - else
  60682. - # We keep going just in case the user didn't refer to
  60683. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  60684. - # really was required.
  60685. + fi # test -n "$prev"
  60686. - # Nullify the symbol file.
  60687. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  60688. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  60689. - fi
  60690. + prevarg="$arg"
  60691. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  60692. - # Replace the output file specification.
  60693. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60694. - link_command="$compile_command$compile_rpath"
  60695. + case $arg in
  60696. + -all-static)
  60697. + if test -n "$link_static_flag"; then
  60698. + # See comment for -static flag below, for more details.
  60699. + func_append compile_command " $link_static_flag"
  60700. + func_append finalize_command " $link_static_flag"
  60701. + fi
  60702. + continue
  60703. + ;;
  60704. - # We have no uninstalled library dependencies, so finalize right now.
  60705. - $show "$link_command"
  60706. - $run eval "$link_command"
  60707. - status=$?
  60708. + -allow-undefined)
  60709. + # FIXME: remove this flag sometime in the future.
  60710. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  60711. + ;;
  60712. - # Delete the generated files.
  60713. - if test -n "$dlsyms"; then
  60714. - $show "$rm $output_objdir/${outputname}S.${objext}"
  60715. - $run $rm "$output_objdir/${outputname}S.${objext}"
  60716. - fi
  60717. + -avoid-version)
  60718. + avoid_version=yes
  60719. + continue
  60720. + ;;
  60721. - exit $status
  60722. - fi
  60723. + -dlopen)
  60724. + prev=dlfiles
  60725. + continue
  60726. + ;;
  60727. - if test -n "$shlibpath_var"; then
  60728. - # We should set the shlibpath_var
  60729. - rpath=
  60730. - for dir in $temp_rpath; do
  60731. - case $dir in
  60732. - [\\/]* | [A-Za-z]:[\\/]*)
  60733. - # Absolute path.
  60734. - rpath="$rpath$dir:"
  60735. - ;;
  60736. - *)
  60737. - # Relative path: add a thisdir entry.
  60738. - rpath="$rpath\$thisdir/$dir:"
  60739. - ;;
  60740. - esac
  60741. - done
  60742. - temp_rpath="$rpath"
  60743. - fi
  60744. + -dlpreopen)
  60745. + prev=dlprefiles
  60746. + continue
  60747. + ;;
  60748. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  60749. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  60750. - fi
  60751. - if test -n "$finalize_shlibpath"; then
  60752. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  60753. - fi
  60754. + -export-dynamic)
  60755. + export_dynamic=yes
  60756. + continue
  60757. + ;;
  60758. - compile_var=
  60759. - finalize_var=
  60760. - if test -n "$runpath_var"; then
  60761. - if test -n "$perm_rpath"; then
  60762. - # We should set the runpath_var.
  60763. - rpath=
  60764. - for dir in $perm_rpath; do
  60765. - rpath="$rpath$dir:"
  60766. - done
  60767. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60768. + -export-symbols | -export-symbols-regex)
  60769. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  60770. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  60771. fi
  60772. - if test -n "$finalize_perm_rpath"; then
  60773. - # We should set the runpath_var.
  60774. - rpath=
  60775. - for dir in $finalize_perm_rpath; do
  60776. - rpath="$rpath$dir:"
  60777. - done
  60778. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60779. + if test "X$arg" = "X-export-symbols"; then
  60780. + prev=expsyms
  60781. + else
  60782. + prev=expsyms_regex
  60783. fi
  60784. - fi
  60785. + continue
  60786. + ;;
  60787. - if test "$no_install" = yes; then
  60788. - # We don't need to create a wrapper script.
  60789. - link_command="$compile_var$compile_command$compile_rpath"
  60790. - # Replace the output file specification.
  60791. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60792. - # Delete the old output file.
  60793. - $run $rm $output
  60794. - # Link the executable and exit
  60795. - $show "$link_command"
  60796. - $run eval "$link_command" || exit $?
  60797. - exit $EXIT_SUCCESS
  60798. - fi
  60799. + -framework)
  60800. + prev=framework
  60801. + continue
  60802. + ;;
  60803. - if test "$hardcode_action" = relink; then
  60804. - # Fast installation is not supported
  60805. - link_command="$compile_var$compile_command$compile_rpath"
  60806. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  60807. + -inst-prefix-dir)
  60808. + prev=inst_prefix
  60809. + continue
  60810. + ;;
  60811. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  60812. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  60813. - else
  60814. - if test "$fast_install" != no; then
  60815. - link_command="$finalize_var$compile_command$finalize_rpath"
  60816. - if test "$fast_install" = yes; then
  60817. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  60818. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  60819. + # so, if we see these flags be careful not to treat them like -L
  60820. + -L[A-Z][A-Z]*:*)
  60821. + case $with_gcc/$host in
  60822. + no/*-*-irix* | /*-*-irix*)
  60823. + func_append compile_command " $arg"
  60824. + func_append finalize_command " $arg"
  60825. + ;;
  60826. + esac
  60827. + continue
  60828. + ;;
  60829. +
  60830. + -L*)
  60831. + func_stripname '-L' '' "$arg"
  60832. + dir=$func_stripname_result
  60833. + if test -z "$dir"; then
  60834. + if test "$#" -gt 0; then
  60835. + func_fatal_error "require no space between \`-L' and \`$1'"
  60836. else
  60837. - # fast_install is set to needless
  60838. - relink_command=
  60839. + func_fatal_error "need path for \`-L' option"
  60840. fi
  60841. - else
  60842. - link_command="$compile_var$compile_command$compile_rpath"
  60843. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  60844. fi
  60845. - fi
  60846. -
  60847. - # Replace the output file specification.
  60848. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  60849. -
  60850. - # Delete the old output files.
  60851. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  60852. -
  60853. - $show "$link_command"
  60854. - $run eval "$link_command" || exit $?
  60855. -
  60856. - # Now create the wrapper script.
  60857. - $show "creating $output"
  60858. -
  60859. - # Quote the relink command for shipping.
  60860. - if test -n "$relink_command"; then
  60861. - # Preserve any variables that may affect compiler behavior
  60862. - for var in $variables_saved_for_relink; do
  60863. - if eval test -z \"\${$var+set}\"; then
  60864. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  60865. - elif eval var_value=\$$var; test -z "$var_value"; then
  60866. - relink_command="$var=; export $var; $relink_command"
  60867. - else
  60868. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  60869. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  60870. - fi
  60871. - done
  60872. - relink_command="(cd `pwd`; $relink_command)"
  60873. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60874. - fi
  60875. -
  60876. - # Quote $echo for shipping.
  60877. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  60878. - case $progpath in
  60879. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  60880. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  60881. + # We need an absolute path.
  60882. + case $dir in
  60883. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  60884. + *)
  60885. + absdir=`cd "$dir" && pwd`
  60886. + test -z "$absdir" && \
  60887. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  60888. + dir="$absdir"
  60889. + ;;
  60890. esac
  60891. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  60892. - else
  60893. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  60894. - fi
  60895. -
  60896. - # Only actually do things if our run command is non-null.
  60897. - if test -z "$run"; then
  60898. - # win32 will think the script is a binary if it has
  60899. - # a .exe suffix, so we strip it off here.
  60900. - case $output in
  60901. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  60902. + case "$deplibs " in
  60903. + *" -L$dir "*) ;;
  60904. + *)
  60905. + deplibs="$deplibs -L$dir"
  60906. + lib_search_path="$lib_search_path $dir"
  60907. + ;;
  60908. esac
  60909. - # test for cygwin because mv fails w/o .exe extensions
  60910. case $host in
  60911. - *cygwin*)
  60912. - exeext=.exe
  60913. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  60914. - *) exeext= ;;
  60915. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  60916. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  60917. + case :$dllsearchpath: in
  60918. + *":$dir:"*) ;;
  60919. + ::) dllsearchpath=$dir;;
  60920. + *) dllsearchpath="$dllsearchpath:$dir";;
  60921. + esac
  60922. + case :$dllsearchpath: in
  60923. + *":$testbindir:"*) ;;
  60924. + ::) dllsearchpath=$testbindir;;
  60925. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  60926. + esac
  60927. + ;;
  60928. esac
  60929. - case $host in
  60930. - *cygwin* | *mingw* )
  60931. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  60932. - cwrapper=`$echo ${output}.exe`
  60933. - $rm $cwrappersource $cwrapper
  60934. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  60935. + continue
  60936. + ;;
  60937. - cat > $cwrappersource <<EOF
  60938. + -l*)
  60939. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  60940. + case $host in
  60941. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  60942. + # These systems don't actually have a C or math library (as such)
  60943. + continue
  60944. + ;;
  60945. + *-*-os2*)
  60946. + # These systems don't actually have a C library (as such)
  60947. + test "X$arg" = "X-lc" && continue
  60948. + ;;
  60949. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  60950. + # Do not include libc due to us having libc/libc_r.
  60951. + test "X$arg" = "X-lc" && continue
  60952. + ;;
  60953. + *-*-rhapsody* | *-*-darwin1.[012])
  60954. + # Rhapsody C and math libraries are in the System framework
  60955. + deplibs="$deplibs System.ltframework"
  60956. + continue
  60957. + ;;
  60958. + *-*-sco3.2v5* | *-*-sco5v6*)
  60959. + # Causes problems with __ctype
  60960. + test "X$arg" = "X-lc" && continue
  60961. + ;;
  60962. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  60963. + # Compiler inserts libc in the correct place for threads to work
  60964. + test "X$arg" = "X-lc" && continue
  60965. + ;;
  60966. + esac
  60967. + elif test "X$arg" = "X-lc_r"; then
  60968. + case $host in
  60969. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  60970. + # Do not include libc_r directly, use -pthread flag.
  60971. + continue
  60972. + ;;
  60973. + esac
  60974. + fi
  60975. + deplibs="$deplibs $arg"
  60976. + continue
  60977. + ;;
  60978. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  60979. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  60980. + -module)
  60981. + module=yes
  60982. + continue
  60983. + ;;
  60984. - The $output program cannot be directly executed until all the libtool
  60985. - libraries that it depends on are installed.
  60986. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  60987. + # classes, name mangling, and exception handling.
  60988. + # Darwin uses the -arch flag to determine output architecture.
  60989. + -model|-arch|-isysroot)
  60990. + compiler_flags="$compiler_flags $arg"
  60991. + func_append compile_command " $arg"
  60992. + func_append finalize_command " $arg"
  60993. + prev=xcompiler
  60994. + continue
  60995. + ;;
  60996. - This wrapper executable should never be moved out of the build directory.
  60997. - If it is, it will not operate correctly.
  60998. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  60999. + compiler_flags="$compiler_flags $arg"
  61000. + func_append compile_command " $arg"
  61001. + func_append finalize_command " $arg"
  61002. + case "$new_inherited_linker_flags " in
  61003. + *" $arg "*) ;;
  61004. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  61005. + esac
  61006. + continue
  61007. + ;;
  61008. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  61009. - but could eventually absorb all of the scripts functionality and
  61010. - exec $objdir/$outputname directly.
  61011. -*/
  61012. -EOF
  61013. - cat >> $cwrappersource<<"EOF"
  61014. -#include <stdio.h>
  61015. -#include <stdlib.h>
  61016. -#include <unistd.h>
  61017. -#include <malloc.h>
  61018. -#include <stdarg.h>
  61019. -#include <assert.h>
  61020. + -multi_module)
  61021. + single_module="${wl}-multi_module"
  61022. + continue
  61023. + ;;
  61024. -#if defined(PATH_MAX)
  61025. -# define LT_PATHMAX PATH_MAX
  61026. -#elif defined(MAXPATHLEN)
  61027. -# define LT_PATHMAX MAXPATHLEN
  61028. -#else
  61029. -# define LT_PATHMAX 1024
  61030. -#endif
  61031. + -no-fast-install)
  61032. + fast_install=no
  61033. + continue
  61034. + ;;
  61035. -#ifndef DIR_SEPARATOR
  61036. -#define DIR_SEPARATOR '/'
  61037. -#endif
  61038. + -no-install)
  61039. + case $host in
  61040. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  61041. + # The PATH hackery in wrapper scripts is required on Windows
  61042. + # and Darwin in order for the loader to find any dlls it needs.
  61043. + func_warning "\`-no-install' is ignored for $host"
  61044. + func_warning "assuming \`-no-fast-install' instead"
  61045. + fast_install=no
  61046. + ;;
  61047. + *) no_install=yes ;;
  61048. + esac
  61049. + continue
  61050. + ;;
  61051. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  61052. - defined (__OS2__)
  61053. -#define HAVE_DOS_BASED_FILE_SYSTEM
  61054. -#ifndef DIR_SEPARATOR_2
  61055. -#define DIR_SEPARATOR_2 '\\'
  61056. -#endif
  61057. -#endif
  61058. + -no-undefined)
  61059. + allow_undefined=no
  61060. + continue
  61061. + ;;
  61062. -#ifndef DIR_SEPARATOR_2
  61063. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  61064. -#else /* DIR_SEPARATOR_2 */
  61065. -# define IS_DIR_SEPARATOR(ch) \
  61066. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  61067. -#endif /* DIR_SEPARATOR_2 */
  61068. + -objectlist)
  61069. + prev=objectlist
  61070. + continue
  61071. + ;;
  61072. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  61073. -#define XFREE(stale) do { \
  61074. - if (stale) { free ((void *) stale); stale = 0; } \
  61075. -} while (0)
  61076. + -o) prev=output ;;
  61077. -const char *program_name = NULL;
  61078. + -precious-files-regex)
  61079. + prev=precious_regex
  61080. + continue
  61081. + ;;
  61082. -void * xmalloc (size_t num);
  61083. -char * xstrdup (const char *string);
  61084. -char * basename (const char *name);
  61085. -char * fnqualify(const char *path);
  61086. -char * strendzap(char *str, const char *pat);
  61087. -void lt_fatal (const char *message, ...);
  61088. + -release)
  61089. + prev=release
  61090. + continue
  61091. + ;;
  61092. -int
  61093. -main (int argc, char *argv[])
  61094. -{
  61095. - char **newargz;
  61096. - int i;
  61097. + -rpath)
  61098. + prev=rpath
  61099. + continue
  61100. + ;;
  61101. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  61102. - newargz = XMALLOC(char *, argc+2);
  61103. -EOF
  61104. + -R)
  61105. + prev=xrpath
  61106. + continue
  61107. + ;;
  61108. - cat >> $cwrappersource <<EOF
  61109. - newargz[0] = "$SHELL";
  61110. -EOF
  61111. + -R*)
  61112. + func_stripname '-R' '' "$arg"
  61113. + dir=$func_stripname_result
  61114. + # We need an absolute path.
  61115. + case $dir in
  61116. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  61117. + *)
  61118. + func_fatal_error "only absolute run-paths are allowed"
  61119. + ;;
  61120. + esac
  61121. + case "$xrpath " in
  61122. + *" $dir "*) ;;
  61123. + *) xrpath="$xrpath $dir" ;;
  61124. + esac
  61125. + continue
  61126. + ;;
  61127. - cat >> $cwrappersource <<"EOF"
  61128. - newargz[1] = fnqualify(argv[0]);
  61129. - /* we know the script has the same name, without the .exe */
  61130. - /* so make sure newargz[1] doesn't end in .exe */
  61131. - strendzap(newargz[1],".exe");
  61132. - for (i = 1; i < argc; i++)
  61133. - newargz[i+1] = xstrdup(argv[i]);
  61134. - newargz[argc+1] = NULL;
  61135. -EOF
  61136. + -shared)
  61137. + # The effects of -shared are defined in a previous loop.
  61138. + continue
  61139. + ;;
  61140. - cat >> $cwrappersource <<EOF
  61141. - execv("$SHELL",newargz);
  61142. -EOF
  61143. + -shrext)
  61144. + prev=shrext
  61145. + continue
  61146. + ;;
  61147. - cat >> $cwrappersource <<"EOF"
  61148. -}
  61149. + -static | -static-libtool-libs)
  61150. + # The effects of -static are defined in a previous loop.
  61151. + # We used to do the same as -all-static on platforms that
  61152. + # didn't have a PIC flag, but the assumption that the effects
  61153. + # would be equivalent was wrong. It would break on at least
  61154. + # Digital Unix and AIX.
  61155. + continue
  61156. + ;;
  61157. -void *
  61158. -xmalloc (size_t num)
  61159. -{
  61160. - void * p = (void *) malloc (num);
  61161. - if (!p)
  61162. - lt_fatal ("Memory exhausted");
  61163. + -thread-safe)
  61164. + thread_safe=yes
  61165. + continue
  61166. + ;;
  61167. - return p;
  61168. -}
  61169. + -version-info)
  61170. + prev=vinfo
  61171. + continue
  61172. + ;;
  61173. -char *
  61174. -xstrdup (const char *string)
  61175. -{
  61176. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  61177. -;
  61178. -}
  61179. + -version-number)
  61180. + prev=vinfo
  61181. + vinfo_number=yes
  61182. + continue
  61183. + ;;
  61184. -char *
  61185. -basename (const char *name)
  61186. -{
  61187. - const char *base;
  61188. + -weak)
  61189. + prev=weak
  61190. + continue
  61191. + ;;
  61192. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  61193. - /* Skip over the disk name in MSDOS pathnames. */
  61194. - if (isalpha (name[0]) && name[1] == ':')
  61195. - name += 2;
  61196. -#endif
  61197. + -Wc,*)
  61198. + func_stripname '-Wc,' '' "$arg"
  61199. + args=$func_stripname_result
  61200. + arg=
  61201. + save_ifs="$IFS"; IFS=','
  61202. + for flag in $args; do
  61203. + IFS="$save_ifs"
  61204. + func_quote_for_eval "$flag"
  61205. + arg="$arg $wl$func_quote_for_eval_result"
  61206. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  61207. + done
  61208. + IFS="$save_ifs"
  61209. + func_stripname ' ' '' "$arg"
  61210. + arg=$func_stripname_result
  61211. + ;;
  61212. - for (base = name; *name; name++)
  61213. - if (IS_DIR_SEPARATOR (*name))
  61214. - base = name + 1;
  61215. - return (char *) base;
  61216. -}
  61217. + -Wl,*)
  61218. + func_stripname '-Wl,' '' "$arg"
  61219. + args=$func_stripname_result
  61220. + arg=
  61221. + save_ifs="$IFS"; IFS=','
  61222. + for flag in $args; do
  61223. + IFS="$save_ifs"
  61224. + func_quote_for_eval "$flag"
  61225. + arg="$arg $wl$func_quote_for_eval_result"
  61226. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  61227. + linker_flags="$linker_flags $func_quote_for_eval_result"
  61228. + done
  61229. + IFS="$save_ifs"
  61230. + func_stripname ' ' '' "$arg"
  61231. + arg=$func_stripname_result
  61232. + ;;
  61233. -char *
  61234. -fnqualify(const char *path)
  61235. -{
  61236. - size_t size;
  61237. - char *p;
  61238. - char tmp[LT_PATHMAX + 1];
  61239. + -Xcompiler)
  61240. + prev=xcompiler
  61241. + continue
  61242. + ;;
  61243. - assert(path != NULL);
  61244. + -Xlinker)
  61245. + prev=xlinker
  61246. + continue
  61247. + ;;
  61248. - /* Is it qualified already? */
  61249. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  61250. - if (isalpha (path[0]) && path[1] == ':')
  61251. - return xstrdup (path);
  61252. -#endif
  61253. - if (IS_DIR_SEPARATOR (path[0]))
  61254. - return xstrdup (path);
  61255. + -XCClinker)
  61256. + prev=xcclinker
  61257. + continue
  61258. + ;;
  61259. - /* prepend the current directory */
  61260. - /* doesn't handle '~' */
  61261. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  61262. - lt_fatal ("getcwd failed");
  61263. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  61264. - p = XMALLOC(char, size);
  61265. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  61266. - return p;
  61267. -}
  61268. + # -msg_* for osf cc
  61269. + -msg_*)
  61270. + func_quote_for_eval "$arg"
  61271. + arg="$func_quote_for_eval_result"
  61272. + ;;
  61273. +
  61274. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  61275. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  61276. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  61277. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  61278. + # -q* pass through compiler args for the IBM compiler
  61279. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  61280. + # compiler args for GCC
  61281. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  61282. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  61283. + # @file GCC response files
  61284. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  61285. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  61286. + func_quote_for_eval "$arg"
  61287. + arg="$func_quote_for_eval_result"
  61288. + func_append compile_command " $arg"
  61289. + func_append finalize_command " $arg"
  61290. + compiler_flags="$compiler_flags $arg"
  61291. + continue
  61292. + ;;
  61293. -char *
  61294. -strendzap(char *str, const char *pat)
  61295. -{
  61296. - size_t len, patlen;
  61297. + # Some other compiler flag.
  61298. + -* | +*)
  61299. + func_quote_for_eval "$arg"
  61300. + arg="$func_quote_for_eval_result"
  61301. + ;;
  61302. - assert(str != NULL);
  61303. - assert(pat != NULL);
  61304. + *.$objext)
  61305. + # A standard object.
  61306. + objs="$objs $arg"
  61307. + ;;
  61308. - len = strlen(str);
  61309. - patlen = strlen(pat);
  61310. + *.lo)
  61311. + # A libtool-controlled object.
  61312. - if (patlen <= len)
  61313. - {
  61314. - str += len - patlen;
  61315. - if (strcmp(str, pat) == 0)
  61316. - *str = '\0';
  61317. - }
  61318. - return str;
  61319. -}
  61320. + # Check to see that this really is a libtool object.
  61321. + if func_lalib_unsafe_p "$arg"; then
  61322. + pic_object=
  61323. + non_pic_object=
  61324. -static void
  61325. -lt_error_core (int exit_status, const char * mode,
  61326. - const char * message, va_list ap)
  61327. -{
  61328. - fprintf (stderr, "%s: %s: ", program_name, mode);
  61329. - vfprintf (stderr, message, ap);
  61330. - fprintf (stderr, ".\n");
  61331. + # Read the .lo file
  61332. + func_source "$arg"
  61333. - if (exit_status >= 0)
  61334. - exit (exit_status);
  61335. -}
  61336. + if test -z "$pic_object" ||
  61337. + test -z "$non_pic_object" ||
  61338. + test "$pic_object" = none &&
  61339. + test "$non_pic_object" = none; then
  61340. + func_fatal_error "cannot find name of object for \`$arg'"
  61341. + fi
  61342. -void
  61343. -lt_fatal (const char *message, ...)
  61344. -{
  61345. - va_list ap;
  61346. - va_start (ap, message);
  61347. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  61348. - va_end (ap);
  61349. -}
  61350. -EOF
  61351. - # we should really use a build-platform specific compiler
  61352. - # here, but OTOH, the wrappers (shell script and this C one)
  61353. - # are only useful if you want to execute the "real" binary.
  61354. - # Since the "real" binary is built for $host, then this
  61355. - # wrapper might as well be built for $host, too.
  61356. - $run $LTCC -s -o $cwrapper $cwrappersource
  61357. - ;;
  61358. - esac
  61359. - $rm $output
  61360. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  61361. + # Extract subdirectory from the argument.
  61362. + func_dirname "$arg" "/" ""
  61363. + xdir="$func_dirname_result"
  61364. - $echo > $output "\
  61365. -#! $SHELL
  61366. + if test "$pic_object" != none; then
  61367. + # Prepend the subdirectory the object is found in.
  61368. + pic_object="$xdir$pic_object"
  61369. -# $output - temporary wrapper script for $objdir/$outputname
  61370. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  61371. -#
  61372. -# The $output program cannot be directly executed until all the libtool
  61373. -# libraries that it depends on are installed.
  61374. -#
  61375. -# This wrapper script should never be moved out of the build directory.
  61376. -# If it is, it will not operate correctly.
  61377. + if test "$prev" = dlfiles; then
  61378. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  61379. + dlfiles="$dlfiles $pic_object"
  61380. + prev=
  61381. + continue
  61382. + else
  61383. + # If libtool objects are unsupported, then we need to preload.
  61384. + prev=dlprefiles
  61385. + fi
  61386. + fi
  61387. -# Sed substitution that helps us do robust quoting. It backslashifies
  61388. -# metacharacters that are still active within double-quoted strings.
  61389. -Xsed='${SED} -e 1s/^X//'
  61390. -sed_quote_subst='$sed_quote_subst'
  61391. + # CHECK ME: I think I busted this. -Ossama
  61392. + if test "$prev" = dlprefiles; then
  61393. + # Preload the old-style object.
  61394. + dlprefiles="$dlprefiles $pic_object"
  61395. + prev=
  61396. + fi
  61397. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  61398. -# if CDPATH is set.
  61399. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  61400. + # A PIC object.
  61401. + func_append libobjs " $pic_object"
  61402. + arg="$pic_object"
  61403. + fi
  61404. -relink_command=\"$relink_command\"
  61405. + # Non-PIC object.
  61406. + if test "$non_pic_object" != none; then
  61407. + # Prepend the subdirectory the object is found in.
  61408. + non_pic_object="$xdir$non_pic_object"
  61409. -# This environment variable determines our operation mode.
  61410. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  61411. - # install mode needs the following variable:
  61412. - notinst_deplibs='$notinst_deplibs'
  61413. -else
  61414. - # When we are sourced in execute mode, \$file and \$echo are already set.
  61415. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  61416. - echo=\"$qecho\"
  61417. - file=\"\$0\"
  61418. - # Make sure echo works.
  61419. - if test \"X\$1\" = X--no-reexec; then
  61420. - # Discard the --no-reexec flag, and continue.
  61421. - shift
  61422. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  61423. - # Yippee, \$echo works!
  61424. - :
  61425. + # A standard non-PIC object
  61426. + func_append non_pic_objects " $non_pic_object"
  61427. + if test -z "$pic_object" || test "$pic_object" = none ; then
  61428. + arg="$non_pic_object"
  61429. + fi
  61430. + else
  61431. + # If the PIC object exists, use it instead.
  61432. + # $xdir was prepended to $pic_object above.
  61433. + non_pic_object="$pic_object"
  61434. + func_append non_pic_objects " $non_pic_object"
  61435. + fi
  61436. + else
  61437. + # Only an error if not doing a dry-run.
  61438. + if $opt_dry_run; then
  61439. + # Extract subdirectory from the argument.
  61440. + func_dirname "$arg" "/" ""
  61441. + xdir="$func_dirname_result"
  61442. +
  61443. + func_lo2o "$arg"
  61444. + pic_object=$xdir$objdir/$func_lo2o_result
  61445. + non_pic_object=$xdir$func_lo2o_result
  61446. + func_append libobjs " $pic_object"
  61447. + func_append non_pic_objects " $non_pic_object"
  61448. + else
  61449. + func_fatal_error "\`$arg' is not a valid libtool object"
  61450. + fi
  61451. + fi
  61452. + ;;
  61453. +
  61454. + *.$libext)
  61455. + # An archive.
  61456. + deplibs="$deplibs $arg"
  61457. + old_deplibs="$old_deplibs $arg"
  61458. + continue
  61459. + ;;
  61460. +
  61461. + *.la)
  61462. + # A libtool-controlled library.
  61463. +
  61464. + if test "$prev" = dlfiles; then
  61465. + # This library was specified with -dlopen.
  61466. + dlfiles="$dlfiles $arg"
  61467. + prev=
  61468. + elif test "$prev" = dlprefiles; then
  61469. + # The library was specified with -dlpreopen.
  61470. + dlprefiles="$dlprefiles $arg"
  61471. + prev=
  61472. + else
  61473. + deplibs="$deplibs $arg"
  61474. + fi
  61475. + continue
  61476. + ;;
  61477. +
  61478. + # Some other compiler argument.
  61479. + *)
  61480. + # Unknown arguments in both finalize_command and compile_command need
  61481. + # to be aesthetically quoted because they are evaled later.
  61482. + func_quote_for_eval "$arg"
  61483. + arg="$func_quote_for_eval_result"
  61484. + ;;
  61485. + esac # arg
  61486. +
  61487. + # Now actually substitute the argument into the commands.
  61488. + if test -n "$arg"; then
  61489. + func_append compile_command " $arg"
  61490. + func_append finalize_command " $arg"
  61491. + fi
  61492. + done # argument parsing loop
  61493. +
  61494. + test -n "$prev" && \
  61495. + func_fatal_help "the \`$prevarg' option requires an argument"
  61496. +
  61497. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  61498. + eval arg=\"$export_dynamic_flag_spec\"
  61499. + func_append compile_command " $arg"
  61500. + func_append finalize_command " $arg"
  61501. + fi
  61502. +
  61503. + oldlibs=
  61504. + # calculate the name of the file, without its directory
  61505. + func_basename "$output"
  61506. + outputname="$func_basename_result"
  61507. + libobjs_save="$libobjs"
  61508. +
  61509. + if test -n "$shlibpath_var"; then
  61510. + # get the directories listed in $shlibpath_var
  61511. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  61512. else
  61513. - # Restart under the correct shell, and then maybe \$echo will work.
  61514. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  61515. + shlib_search_path=
  61516. fi
  61517. - fi\
  61518. -"
  61519. - $echo >> $output "\
  61520. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  61521. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  61522. +
  61523. + func_dirname "$output" "/" ""
  61524. + output_objdir="$func_dirname_result$objdir"
  61525. + # Create the object directory.
  61526. + func_mkdir_p "$output_objdir"
  61527. +
  61528. + # Determine the type of output
  61529. + case $output in
  61530. + "")
  61531. + func_fatal_help "you must specify an output file"
  61532. + ;;
  61533. + *.$libext) linkmode=oldlib ;;
  61534. + *.lo | *.$objext) linkmode=obj ;;
  61535. + *.la) linkmode=lib ;;
  61536. + *) linkmode=prog ;; # Anything else should be a program.
  61537. + esac
  61538. +
  61539. + specialdeplibs=
  61540. +
  61541. + libs=
  61542. + # Find all interdependent deplibs by searching for libraries
  61543. + # that are linked more than once (e.g. -la -lb -la)
  61544. + for deplib in $deplibs; do
  61545. + if $opt_duplicate_deps ; then
  61546. + case "$libs " in
  61547. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  61548. + esac
  61549. + fi
  61550. + libs="$libs $deplib"
  61551. + done
  61552. +
  61553. + if test "$linkmode" = lib; then
  61554. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  61555. +
  61556. + # Compute libraries that are listed more than once in $predeps
  61557. + # $postdeps and mark them as special (i.e., whose duplicates are
  61558. + # not to be eliminated).
  61559. + pre_post_deps=
  61560. + if $opt_duplicate_compiler_generated_deps; then
  61561. + for pre_post_dep in $predeps $postdeps; do
  61562. + case "$pre_post_deps " in
  61563. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  61564. + esac
  61565. + pre_post_deps="$pre_post_deps $pre_post_dep"
  61566. + done
  61567. + fi
  61568. + pre_post_deps=
  61569. + fi
  61570. +
  61571. + deplibs=
  61572. + newdependency_libs=
  61573. + newlib_search_path=
  61574. + need_relink=no # whether we're linking any uninstalled libtool libraries
  61575. + notinst_deplibs= # not-installed libtool libraries
  61576. + notinst_path= # paths that contain not-installed libtool libraries
  61577. +
  61578. + case $linkmode in
  61579. + lib)
  61580. + passes="conv dlpreopen link"
  61581. + for file in $dlfiles $dlprefiles; do
  61582. + case $file in
  61583. + *.la) ;;
  61584. + *)
  61585. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  61586. + ;;
  61587. + esac
  61588. + done
  61589. + ;;
  61590. + prog)
  61591. + compile_deplibs=
  61592. + finalize_deplibs=
  61593. + alldeplibs=no
  61594. + newdlfiles=
  61595. + newdlprefiles=
  61596. + passes="conv scan dlopen dlpreopen link"
  61597. + ;;
  61598. + *) passes="conv"
  61599. + ;;
  61600. + esac
  61601. +
  61602. + for pass in $passes; do
  61603. + # The preopen pass in lib mode reverses $deplibs; put it back here
  61604. + # so that -L comes before libs that need it for instance...
  61605. + if test "$linkmode,$pass" = "lib,link"; then
  61606. + ## FIXME: Find the place where the list is rebuilt in the wrong
  61607. + ## order, and fix it there properly
  61608. + tmp_deplibs=
  61609. + for deplib in $deplibs; do
  61610. + tmp_deplibs="$deplib $tmp_deplibs"
  61611. + done
  61612. + deplibs="$tmp_deplibs"
  61613. + fi
  61614. +
  61615. + if test "$linkmode,$pass" = "lib,link" ||
  61616. + test "$linkmode,$pass" = "prog,scan"; then
  61617. + libs="$deplibs"
  61618. + deplibs=
  61619. + fi
  61620. + if test "$linkmode" = prog; then
  61621. + case $pass in
  61622. + dlopen) libs="$dlfiles" ;;
  61623. + dlpreopen) libs="$dlprefiles" ;;
  61624. + link)
  61625. + libs="$deplibs %DEPLIBS%"
  61626. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  61627. + ;;
  61628. + esac
  61629. + fi
  61630. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  61631. + # Collect and forward deplibs of preopened libtool libs
  61632. + for lib in $dlprefiles; do
  61633. + # Ignore non-libtool-libs
  61634. + dependency_libs=
  61635. + case $lib in
  61636. + *.la) func_source "$lib" ;;
  61637. + esac
  61638. +
  61639. + # Collect preopened libtool deplibs, except any this library
  61640. + # has declared as weak libs
  61641. + for deplib in $dependency_libs; do
  61642. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  61643. + case " $weak_libs " in
  61644. + *" $deplib_base "*) ;;
  61645. + *) deplibs="$deplibs $deplib" ;;
  61646. + esac
  61647. + done
  61648. + done
  61649. + libs="$dlprefiles"
  61650. + fi
  61651. + if test "$pass" = dlopen; then
  61652. + # Collect dlpreopened libraries
  61653. + save_deplibs="$deplibs"
  61654. + deplibs=
  61655. + fi
  61656. +
  61657. + for deplib in $libs; do
  61658. + lib=
  61659. + found=no
  61660. + case $deplib in
  61661. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  61662. + if test "$linkmode,$pass" = "prog,link"; then
  61663. + compile_deplibs="$deplib $compile_deplibs"
  61664. + finalize_deplibs="$deplib $finalize_deplibs"
  61665. + else
  61666. + compiler_flags="$compiler_flags $deplib"
  61667. + if test "$linkmode" = lib ; then
  61668. + case "$new_inherited_linker_flags " in
  61669. + *" $deplib "*) ;;
  61670. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  61671. + esac
  61672. + fi
  61673. + fi
  61674. + continue
  61675. + ;;
  61676. + -l*)
  61677. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  61678. + func_warning "\`-l' is ignored for archives/objects"
  61679. + continue
  61680. + fi
  61681. + func_stripname '-l' '' "$deplib"
  61682. + name=$func_stripname_result
  61683. + if test "$linkmode" = lib; then
  61684. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  61685. + else
  61686. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  61687. + fi
  61688. + for searchdir in $searchdirs; do
  61689. + for search_ext in .la $std_shrext .so .a; do
  61690. + # Search the libtool library
  61691. + lib="$searchdir/lib${name}${search_ext}"
  61692. + if test -f "$lib"; then
  61693. + if test "$search_ext" = ".la"; then
  61694. + found=yes
  61695. + else
  61696. + found=no
  61697. + fi
  61698. + break 2
  61699. + fi
  61700. + done
  61701. + done
  61702. + if test "$found" != yes; then
  61703. + # deplib doesn't seem to be a libtool library
  61704. + if test "$linkmode,$pass" = "prog,link"; then
  61705. + compile_deplibs="$deplib $compile_deplibs"
  61706. + finalize_deplibs="$deplib $finalize_deplibs"
  61707. + else
  61708. + deplibs="$deplib $deplibs"
  61709. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  61710. + fi
  61711. + continue
  61712. + else # deplib is a libtool library
  61713. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  61714. + # We need to do some special things here, and not later.
  61715. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61716. + case " $predeps $postdeps " in
  61717. + *" $deplib "*)
  61718. + if func_lalib_p "$lib"; then
  61719. + library_names=
  61720. + old_library=
  61721. + func_source "$lib"
  61722. + for l in $old_library $library_names; do
  61723. + ll="$l"
  61724. + done
  61725. + if test "X$ll" = "X$old_library" ; then # only static version available
  61726. + found=no
  61727. + func_dirname "$lib" "" "."
  61728. + ladir="$func_dirname_result"
  61729. + lib=$ladir/$old_library
  61730. + if test "$linkmode,$pass" = "prog,link"; then
  61731. + compile_deplibs="$deplib $compile_deplibs"
  61732. + finalize_deplibs="$deplib $finalize_deplibs"
  61733. + else
  61734. + deplibs="$deplib $deplibs"
  61735. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  61736. + fi
  61737. + continue
  61738. + fi
  61739. + fi
  61740. + ;;
  61741. + *) ;;
  61742. + esac
  61743. + fi
  61744. + fi
  61745. + ;; # -l
  61746. + *.ltframework)
  61747. + if test "$linkmode,$pass" = "prog,link"; then
  61748. + compile_deplibs="$deplib $compile_deplibs"
  61749. + finalize_deplibs="$deplib $finalize_deplibs"
  61750. + else
  61751. + deplibs="$deplib $deplibs"
  61752. + if test "$linkmode" = lib ; then
  61753. + case "$new_inherited_linker_flags " in
  61754. + *" $deplib "*) ;;
  61755. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  61756. + esac
  61757. + fi
  61758. + fi
  61759. + continue
  61760. + ;;
  61761. + -L*)
  61762. + case $linkmode in
  61763. + lib)
  61764. + deplibs="$deplib $deplibs"
  61765. + test "$pass" = conv && continue
  61766. + newdependency_libs="$deplib $newdependency_libs"
  61767. + func_stripname '-L' '' "$deplib"
  61768. + newlib_search_path="$newlib_search_path $func_stripname_result"
  61769. + ;;
  61770. + prog)
  61771. + if test "$pass" = conv; then
  61772. + deplibs="$deplib $deplibs"
  61773. + continue
  61774. + fi
  61775. + if test "$pass" = scan; then
  61776. + deplibs="$deplib $deplibs"
  61777. + else
  61778. + compile_deplibs="$deplib $compile_deplibs"
  61779. + finalize_deplibs="$deplib $finalize_deplibs"
  61780. + fi
  61781. + func_stripname '-L' '' "$deplib"
  61782. + newlib_search_path="$newlib_search_path $func_stripname_result"
  61783. + ;;
  61784. + *)
  61785. + func_warning "\`-L' is ignored for archives/objects"
  61786. + ;;
  61787. + esac # linkmode
  61788. + continue
  61789. + ;; # -L
  61790. + -R*)
  61791. + if test "$pass" = link; then
  61792. + func_stripname '-R' '' "$deplib"
  61793. + dir=$func_stripname_result
  61794. + # Make sure the xrpath contains only unique directories.
  61795. + case "$xrpath " in
  61796. + *" $dir "*) ;;
  61797. + *) xrpath="$xrpath $dir" ;;
  61798. + esac
  61799. + fi
  61800. + deplibs="$deplib $deplibs"
  61801. + continue
  61802. + ;;
  61803. + *.la) lib="$deplib" ;;
  61804. + *.$libext)
  61805. + if test "$pass" = conv; then
  61806. + deplibs="$deplib $deplibs"
  61807. + continue
  61808. + fi
  61809. + case $linkmode in
  61810. + lib)
  61811. + # Linking convenience modules into shared libraries is allowed,
  61812. + # but linking other static libraries is non-portable.
  61813. + case " $dlpreconveniencelibs " in
  61814. + *" $deplib "*) ;;
  61815. + *)
  61816. + valid_a_lib=no
  61817. + case $deplibs_check_method in
  61818. + match_pattern*)
  61819. + set dummy $deplibs_check_method; shift
  61820. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  61821. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  61822. + | $EGREP "$match_pattern_regex" > /dev/null; then
  61823. + valid_a_lib=yes
  61824. + fi
  61825. + ;;
  61826. + pass_all)
  61827. + valid_a_lib=yes
  61828. + ;;
  61829. + esac
  61830. + if test "$valid_a_lib" != yes; then
  61831. + $ECHO
  61832. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  61833. + $ECHO "*** I have the capability to make that library automatically link in when"
  61834. + $ECHO "*** you link to this library. But I can only do this if you have a"
  61835. + $ECHO "*** shared version of the library, which you do not appear to have"
  61836. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  61837. + $ECHO "*** that it is just a static archive that I should not use here."
  61838. + else
  61839. + $ECHO
  61840. + $ECHO "*** Warning: Linking the shared library $output against the"
  61841. + $ECHO "*** static library $deplib is not portable!"
  61842. + deplibs="$deplib $deplibs"
  61843. + fi
  61844. + ;;
  61845. + esac
  61846. + continue
  61847. + ;;
  61848. + prog)
  61849. + if test "$pass" != link; then
  61850. + deplibs="$deplib $deplibs"
  61851. + else
  61852. + compile_deplibs="$deplib $compile_deplibs"
  61853. + finalize_deplibs="$deplib $finalize_deplibs"
  61854. + fi
  61855. + continue
  61856. + ;;
  61857. + esac # linkmode
  61858. + ;; # *.$libext
  61859. + *.lo | *.$objext)
  61860. + if test "$pass" = conv; then
  61861. + deplibs="$deplib $deplibs"
  61862. + elif test "$linkmode" = prog; then
  61863. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  61864. + # If there is no dlopen support or we're linking statically,
  61865. + # we need to preload.
  61866. + newdlprefiles="$newdlprefiles $deplib"
  61867. + compile_deplibs="$deplib $compile_deplibs"
  61868. + finalize_deplibs="$deplib $finalize_deplibs"
  61869. + else
  61870. + newdlfiles="$newdlfiles $deplib"
  61871. + fi
  61872. + fi
  61873. + continue
  61874. + ;;
  61875. + %DEPLIBS%)
  61876. + alldeplibs=yes
  61877. + continue
  61878. + ;;
  61879. + esac # case $deplib
  61880. +
  61881. + if test "$found" = yes || test -f "$lib"; then :
  61882. + else
  61883. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  61884. + fi
  61885. +
  61886. + # Check to see that this really is a libtool archive.
  61887. + func_lalib_unsafe_p "$lib" \
  61888. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  61889. +
  61890. + func_dirname "$lib" "" "."
  61891. + ladir="$func_dirname_result"
  61892. +
  61893. + dlname=
  61894. + dlopen=
  61895. + dlpreopen=
  61896. + libdir=
  61897. + library_names=
  61898. + old_library=
  61899. + inherited_linker_flags=
  61900. + # If the library was installed with an old release of libtool,
  61901. + # it will not redefine variables installed, or shouldnotlink
  61902. + installed=yes
  61903. + shouldnotlink=no
  61904. + avoidtemprpath=
  61905. +
  61906. +
  61907. + # Read the .la file
  61908. + func_source "$lib"
  61909. +
  61910. + # Convert "-framework foo" to "foo.ltframework"
  61911. + if test -n "$inherited_linker_flags"; then
  61912. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  61913. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  61914. + case " $new_inherited_linker_flags " in
  61915. + *" $tmp_inherited_linker_flag "*) ;;
  61916. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  61917. + esac
  61918. + done
  61919. + fi
  61920. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  61921. + if test "$linkmode,$pass" = "lib,link" ||
  61922. + test "$linkmode,$pass" = "prog,scan" ||
  61923. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  61924. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  61925. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  61926. + fi
  61927. +
  61928. + if test "$pass" = conv; then
  61929. + # Only check for convenience libraries
  61930. + deplibs="$lib $deplibs"
  61931. + if test -z "$libdir"; then
  61932. + if test -z "$old_library"; then
  61933. + func_fatal_error "cannot find name of link library for \`$lib'"
  61934. + fi
  61935. + # It is a libtool convenience library, so add in its objects.
  61936. + convenience="$convenience $ladir/$objdir/$old_library"
  61937. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  61938. + tmp_libs=
  61939. + for deplib in $dependency_libs; do
  61940. + deplibs="$deplib $deplibs"
  61941. + if $opt_duplicate_deps ; then
  61942. + case "$tmp_libs " in
  61943. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  61944. + esac
  61945. + fi
  61946. + tmp_libs="$tmp_libs $deplib"
  61947. + done
  61948. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  61949. + func_fatal_error "\`$lib' is not a convenience library"
  61950. + fi
  61951. + continue
  61952. + fi # $pass = conv
  61953. +
  61954. +
  61955. + # Get the name of the library we link against.
  61956. + linklib=
  61957. + for l in $old_library $library_names; do
  61958. + linklib="$l"
  61959. + done
  61960. + if test -z "$linklib"; then
  61961. + func_fatal_error "cannot find name of link library for \`$lib'"
  61962. + fi
  61963. +
  61964. + # This library was specified with -dlopen.
  61965. + if test "$pass" = dlopen; then
  61966. + if test -z "$libdir"; then
  61967. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  61968. + fi
  61969. + if test -z "$dlname" ||
  61970. + test "$dlopen_support" != yes ||
  61971. + test "$build_libtool_libs" = no; then
  61972. + # If there is no dlname, no dlopen support or we're linking
  61973. + # statically, we need to preload. We also need to preload any
  61974. + # dependent libraries so libltdl's deplib preloader doesn't
  61975. + # bomb out in the load deplibs phase.
  61976. + dlprefiles="$dlprefiles $lib $dependency_libs"
  61977. + else
  61978. + newdlfiles="$newdlfiles $lib"
  61979. + fi
  61980. + continue
  61981. + fi # $pass = dlopen
  61982. +
  61983. + # We need an absolute path.
  61984. + case $ladir in
  61985. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  61986. + *)
  61987. + abs_ladir=`cd "$ladir" && pwd`
  61988. + if test -z "$abs_ladir"; then
  61989. + func_warning "cannot determine absolute directory name of \`$ladir'"
  61990. + func_warning "passing it literally to the linker, although it might fail"
  61991. + abs_ladir="$ladir"
  61992. + fi
  61993. + ;;
  61994. + esac
  61995. + func_basename "$lib"
  61996. + laname="$func_basename_result"
  61997. +
  61998. + # Find the relevant object directory and library name.
  61999. + if test "X$installed" = Xyes; then
  62000. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  62001. + func_warning "library \`$lib' was moved."
  62002. + dir="$ladir"
  62003. + absdir="$abs_ladir"
  62004. + libdir="$abs_ladir"
  62005. + else
  62006. + dir="$libdir"
  62007. + absdir="$libdir"
  62008. + fi
  62009. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  62010. + else
  62011. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  62012. + dir="$ladir"
  62013. + absdir="$abs_ladir"
  62014. + # Remove this search path later
  62015. + notinst_path="$notinst_path $abs_ladir"
  62016. + else
  62017. + dir="$ladir/$objdir"
  62018. + absdir="$abs_ladir/$objdir"
  62019. + # Remove this search path later
  62020. + notinst_path="$notinst_path $abs_ladir"
  62021. + fi
  62022. + fi # $installed = yes
  62023. + func_stripname 'lib' '.la' "$laname"
  62024. + name=$func_stripname_result
  62025. +
  62026. + # This library was specified with -dlpreopen.
  62027. + if test "$pass" = dlpreopen; then
  62028. + if test -z "$libdir" && test "$linkmode" = prog; then
  62029. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  62030. + fi
  62031. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  62032. + # are required to link).
  62033. + if test -n "$old_library"; then
  62034. + newdlprefiles="$newdlprefiles $dir/$old_library"
  62035. + # Keep a list of preopened convenience libraries to check
  62036. + # that they are being used correctly in the link pass.
  62037. + test -z "$libdir" && \
  62038. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  62039. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  62040. + elif test -n "$dlname"; then
  62041. + newdlprefiles="$newdlprefiles $dir/$dlname"
  62042. + else
  62043. + newdlprefiles="$newdlprefiles $dir/$linklib"
  62044. + fi
  62045. + fi # $pass = dlpreopen
  62046. +
  62047. + if test -z "$libdir"; then
  62048. + # Link the convenience library
  62049. + if test "$linkmode" = lib; then
  62050. + deplibs="$dir/$old_library $deplibs"
  62051. + elif test "$linkmode,$pass" = "prog,link"; then
  62052. + compile_deplibs="$dir/$old_library $compile_deplibs"
  62053. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  62054. + else
  62055. + deplibs="$lib $deplibs" # used for prog,scan pass
  62056. + fi
  62057. + continue
  62058. + fi
  62059. +
  62060. +
  62061. + if test "$linkmode" = prog && test "$pass" != link; then
  62062. + newlib_search_path="$newlib_search_path $ladir"
  62063. + deplibs="$lib $deplibs"
  62064. +
  62065. + linkalldeplibs=no
  62066. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  62067. + test "$build_libtool_libs" = no; then
  62068. + linkalldeplibs=yes
  62069. + fi
  62070. +
  62071. + tmp_libs=
  62072. + for deplib in $dependency_libs; do
  62073. + case $deplib in
  62074. + -L*) func_stripname '-L' '' "$deplib"
  62075. + newlib_search_path="$newlib_search_path $func_stripname_result"
  62076. + ;;
  62077. + esac
  62078. + # Need to link against all dependency_libs?
  62079. + if test "$linkalldeplibs" = yes; then
  62080. + deplibs="$deplib $deplibs"
  62081. + else
  62082. + # Need to hardcode shared library paths
  62083. + # or/and link against static libraries
  62084. + newdependency_libs="$deplib $newdependency_libs"
  62085. + fi
  62086. + if $opt_duplicate_deps ; then
  62087. + case "$tmp_libs " in
  62088. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  62089. + esac
  62090. + fi
  62091. + tmp_libs="$tmp_libs $deplib"
  62092. + done # for deplib
  62093. + continue
  62094. + fi # $linkmode = prog...
  62095. +
  62096. + if test "$linkmode,$pass" = "prog,link"; then
  62097. + if test -n "$library_names" &&
  62098. + { { test "$prefer_static_libs" = no ||
  62099. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  62100. + test -z "$old_library"; }; then
  62101. + # We need to hardcode the library path
  62102. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  62103. + # Make sure the rpath contains only unique directories.
  62104. + case "$temp_rpath:" in
  62105. + *"$absdir:"*) ;;
  62106. + *) temp_rpath="$temp_rpath$absdir:" ;;
  62107. + esac
  62108. + fi
  62109. +
  62110. + # Hardcode the library path.
  62111. + # Skip directories that are in the system default run-time
  62112. + # search path.
  62113. + case " $sys_lib_dlsearch_path " in
  62114. + *" $absdir "*) ;;
  62115. + *)
  62116. + case "$compile_rpath " in
  62117. + *" $absdir "*) ;;
  62118. + *) compile_rpath="$compile_rpath $absdir"
  62119. + esac
  62120. + ;;
  62121. + esac
  62122. + case " $sys_lib_dlsearch_path " in
  62123. + *" $libdir "*) ;;
  62124. + *)
  62125. + case "$finalize_rpath " in
  62126. + *" $libdir "*) ;;
  62127. + *) finalize_rpath="$finalize_rpath $libdir"
  62128. + esac
  62129. + ;;
  62130. + esac
  62131. + fi # $linkmode,$pass = prog,link...
  62132. +
  62133. + if test "$alldeplibs" = yes &&
  62134. + { test "$deplibs_check_method" = pass_all ||
  62135. + { test "$build_libtool_libs" = yes &&
  62136. + test -n "$library_names"; }; }; then
  62137. + # We only need to search for static libraries
  62138. + continue
  62139. + fi
  62140. + fi
  62141. +
  62142. + link_static=no # Whether the deplib will be linked statically
  62143. + use_static_libs=$prefer_static_libs
  62144. + if test "$use_static_libs" = built && test "$installed" = yes; then
  62145. + use_static_libs=no
  62146. + fi
  62147. + if test -n "$library_names" &&
  62148. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  62149. + case $host in
  62150. + *cygwin* | *mingw* | *cegcc*)
  62151. + # No point in relinking DLLs because paths are not encoded
  62152. + notinst_deplibs="$notinst_deplibs $lib"
  62153. + need_relink=no
  62154. + ;;
  62155. + *)
  62156. + if test "$installed" = no; then
  62157. + notinst_deplibs="$notinst_deplibs $lib"
  62158. + need_relink=yes
  62159. + fi
  62160. + ;;
  62161. + esac
  62162. + # This is a shared library
  62163. +
  62164. + # Warn about portability, can't link against -module's on some
  62165. + # systems (darwin). Don't bleat about dlopened modules though!
  62166. + dlopenmodule=""
  62167. + for dlpremoduletest in $dlprefiles; do
  62168. + if test "X$dlpremoduletest" = "X$lib"; then
  62169. + dlopenmodule="$dlpremoduletest"
  62170. + break
  62171. + fi
  62172. + done
  62173. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  62174. + $ECHO
  62175. + if test "$linkmode" = prog; then
  62176. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  62177. + else
  62178. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  62179. + fi
  62180. + $ECHO "*** $linklib is not portable!"
  62181. + fi
  62182. + if test "$linkmode" = lib &&
  62183. + test "$hardcode_into_libs" = yes; then
  62184. + # Hardcode the library path.
  62185. + # Skip directories that are in the system default run-time
  62186. + # search path.
  62187. + case " $sys_lib_dlsearch_path " in
  62188. + *" $absdir "*) ;;
  62189. + *)
  62190. + case "$compile_rpath " in
  62191. + *" $absdir "*) ;;
  62192. + *) compile_rpath="$compile_rpath $absdir"
  62193. + esac
  62194. + ;;
  62195. + esac
  62196. + case " $sys_lib_dlsearch_path " in
  62197. + *" $libdir "*) ;;
  62198. + *)
  62199. + case "$finalize_rpath " in
  62200. + *" $libdir "*) ;;
  62201. + *) finalize_rpath="$finalize_rpath $libdir"
  62202. + esac
  62203. + ;;
  62204. + esac
  62205. + fi
  62206. +
  62207. + if test -n "$old_archive_from_expsyms_cmds"; then
  62208. + # figure out the soname
  62209. + set dummy $library_names
  62210. + shift
  62211. + realname="$1"
  62212. + shift
  62213. + libname=`eval "\\$ECHO \"$libname_spec\""`
  62214. + # use dlname if we got it. it's perfectly good, no?
  62215. + if test -n "$dlname"; then
  62216. + soname="$dlname"
  62217. + elif test -n "$soname_spec"; then
  62218. + # bleh windows
  62219. + case $host in
  62220. + *cygwin* | mingw* | *cegcc*)
  62221. + func_arith $current - $age
  62222. + major=$func_arith_result
  62223. + versuffix="-$major"
  62224. + ;;
  62225. + esac
  62226. + eval soname=\"$soname_spec\"
  62227. + else
  62228. + soname="$realname"
  62229. + fi
  62230. +
  62231. + # Make a new name for the extract_expsyms_cmds to use
  62232. + soroot="$soname"
  62233. + func_basename "$soroot"
  62234. + soname="$func_basename_result"
  62235. + func_stripname 'lib' '.dll' "$soname"
  62236. + newlib=libimp-$func_stripname_result.a
  62237. +
  62238. + # If the library has no export list, then create one now
  62239. + if test -f "$output_objdir/$soname-def"; then :
  62240. + else
  62241. + func_verbose "extracting exported symbol list from \`$soname'"
  62242. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  62243. + fi
  62244. +
  62245. + # Create $newlib
  62246. + if test -f "$output_objdir/$newlib"; then :; else
  62247. + func_verbose "generating import library for \`$soname'"
  62248. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  62249. + fi
  62250. + # make sure the library variables are pointing to the new library
  62251. + dir=$output_objdir
  62252. + linklib=$newlib
  62253. + fi # test -n "$old_archive_from_expsyms_cmds"
  62254. +
  62255. + if test "$linkmode" = prog || test "$mode" != relink; then
  62256. + add_shlibpath=
  62257. + add_dir=
  62258. + add=
  62259. + lib_linked=yes
  62260. + case $hardcode_action in
  62261. + immediate | unsupported)
  62262. + if test "$hardcode_direct" = no; then
  62263. + add="$dir/$linklib"
  62264. + case $host in
  62265. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  62266. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  62267. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  62268. + *-*-unixware7*) add_dir="-L$dir" ;;
  62269. + *-*-darwin* )
  62270. + # if the lib is a (non-dlopened) module then we can not
  62271. + # link against it, someone is ignoring the earlier warnings
  62272. + if /usr/bin/file -L $add 2> /dev/null |
  62273. + $GREP ": [^:]* bundle" >/dev/null ; then
  62274. + if test "X$dlopenmodule" != "X$lib"; then
  62275. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  62276. + if test -z "$old_library" ; then
  62277. + $ECHO
  62278. + $ECHO "*** And there doesn't seem to be a static archive available"
  62279. + $ECHO "*** The link will probably fail, sorry"
  62280. + else
  62281. + add="$dir/$old_library"
  62282. + fi
  62283. + elif test -n "$old_library"; then
  62284. + add="$dir/$old_library"
  62285. + fi
  62286. + fi
  62287. + esac
  62288. + elif test "$hardcode_minus_L" = no; then
  62289. + case $host in
  62290. + *-*-sunos*) add_shlibpath="$dir" ;;
  62291. + esac
  62292. + add_dir="-L$dir"
  62293. + add="-l$name"
  62294. + elif test "$hardcode_shlibpath_var" = no; then
  62295. + add_shlibpath="$dir"
  62296. + add="-l$name"
  62297. + else
  62298. + lib_linked=no
  62299. + fi
  62300. + ;;
  62301. + relink)
  62302. + if test "$hardcode_direct" = yes &&
  62303. + test "$hardcode_direct_absolute" = no; then
  62304. + add="$dir/$linklib"
  62305. + elif test "$hardcode_minus_L" = yes; then
  62306. + add_dir="-L$dir"
  62307. + # Try looking first in the location we're being installed to.
  62308. + if test -n "$inst_prefix_dir"; then
  62309. + case $libdir in
  62310. + [\\/]*)
  62311. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  62312. + ;;
  62313. + esac
  62314. + fi
  62315. + add="-l$name"
  62316. + elif test "$hardcode_shlibpath_var" = yes; then
  62317. + add_shlibpath="$dir"
  62318. + add="-l$name"
  62319. + else
  62320. + lib_linked=no
  62321. + fi
  62322. + ;;
  62323. + *) lib_linked=no ;;
  62324. + esac
  62325. +
  62326. + if test "$lib_linked" != yes; then
  62327. + func_fatal_configuration "unsupported hardcode properties"
  62328. + fi
  62329. +
  62330. + if test -n "$add_shlibpath"; then
  62331. + case :$compile_shlibpath: in
  62332. + *":$add_shlibpath:"*) ;;
  62333. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  62334. + esac
  62335. + fi
  62336. + if test "$linkmode" = prog; then
  62337. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  62338. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  62339. + else
  62340. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  62341. + test -n "$add" && deplibs="$add $deplibs"
  62342. + if test "$hardcode_direct" != yes &&
  62343. + test "$hardcode_minus_L" != yes &&
  62344. + test "$hardcode_shlibpath_var" = yes; then
  62345. + case :$finalize_shlibpath: in
  62346. + *":$libdir:"*) ;;
  62347. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  62348. + esac
  62349. + fi
  62350. + fi
  62351. + fi
  62352. +
  62353. + if test "$linkmode" = prog || test "$mode" = relink; then
  62354. + add_shlibpath=
  62355. + add_dir=
  62356. + add=
  62357. + # Finalize command for both is simple: just hardcode it.
  62358. + if test "$hardcode_direct" = yes &&
  62359. + test "$hardcode_direct_absolute" = no; then
  62360. + add="$libdir/$linklib"
  62361. + elif test "$hardcode_minus_L" = yes; then
  62362. + add_dir="-L$libdir"
  62363. + add="-l$name"
  62364. + elif test "$hardcode_shlibpath_var" = yes; then
  62365. + case :$finalize_shlibpath: in
  62366. + *":$libdir:"*) ;;
  62367. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  62368. + esac
  62369. + add="-l$name"
  62370. + elif test "$hardcode_automatic" = yes; then
  62371. + if test -n "$inst_prefix_dir" &&
  62372. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  62373. + add="$inst_prefix_dir$libdir/$linklib"
  62374. + else
  62375. + add="$libdir/$linklib"
  62376. + fi
  62377. + else
  62378. + # We cannot seem to hardcode it, guess we'll fake it.
  62379. + add_dir="-L$libdir"
  62380. + # Try looking first in the location we're being installed to.
  62381. + if test -n "$inst_prefix_dir"; then
  62382. + case $libdir in
  62383. + [\\/]*)
  62384. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  62385. + ;;
  62386. + esac
  62387. + fi
  62388. + add="-l$name"
  62389. + fi
  62390. +
  62391. + if test "$linkmode" = prog; then
  62392. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  62393. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  62394. + else
  62395. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  62396. + test -n "$add" && deplibs="$add $deplibs"
  62397. + fi
  62398. + fi
  62399. + elif test "$linkmode" = prog; then
  62400. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  62401. + # is not unsupported. This is valid on all known static and
  62402. + # shared platforms.
  62403. + if test "$hardcode_direct" != unsupported; then
  62404. + test -n "$old_library" && linklib="$old_library"
  62405. + compile_deplibs="$dir/$linklib $compile_deplibs"
  62406. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  62407. + else
  62408. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  62409. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  62410. + fi
  62411. + elif test "$build_libtool_libs" = yes; then
  62412. + # Not a shared library
  62413. + if test "$deplibs_check_method" != pass_all; then
  62414. + # We're trying link a shared library against a static one
  62415. + # but the system doesn't support it.
  62416. +
  62417. + # Just print a warning and add the library to dependency_libs so
  62418. + # that the program can be linked against the static library.
  62419. + $ECHO
  62420. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  62421. + $ECHO "*** I have the capability to make that library automatically link in when"
  62422. + $ECHO "*** you link to this library. But I can only do this if you have a"
  62423. + $ECHO "*** shared version of the library, which you do not appear to have."
  62424. + if test "$module" = yes; then
  62425. + $ECHO "*** But as you try to build a module library, libtool will still create "
  62426. + $ECHO "*** a static module, that should work as long as the dlopening application"
  62427. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  62428. + if test -z "$global_symbol_pipe"; then
  62429. + $ECHO
  62430. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  62431. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  62432. + $ECHO "*** not find such a program. So, this module is probably useless."
  62433. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  62434. + fi
  62435. + if test "$build_old_libs" = no; then
  62436. + build_libtool_libs=module
  62437. + build_old_libs=yes
  62438. + else
  62439. + build_libtool_libs=no
  62440. + fi
  62441. + fi
  62442. + else
  62443. + deplibs="$dir/$old_library $deplibs"
  62444. + link_static=yes
  62445. + fi
  62446. + fi # link shared/static library?
  62447. +
  62448. + if test "$linkmode" = lib; then
  62449. + if test -n "$dependency_libs" &&
  62450. + { test "$hardcode_into_libs" != yes ||
  62451. + test "$build_old_libs" = yes ||
  62452. + test "$link_static" = yes; }; then
  62453. + # Extract -R from dependency_libs
  62454. + temp_deplibs=
  62455. + for libdir in $dependency_libs; do
  62456. + case $libdir in
  62457. + -R*) func_stripname '-R' '' "$libdir"
  62458. + temp_xrpath=$func_stripname_result
  62459. + case " $xrpath " in
  62460. + *" $temp_xrpath "*) ;;
  62461. + *) xrpath="$xrpath $temp_xrpath";;
  62462. + esac;;
  62463. + *) temp_deplibs="$temp_deplibs $libdir";;
  62464. + esac
  62465. + done
  62466. + dependency_libs="$temp_deplibs"
  62467. + fi
  62468. +
  62469. + newlib_search_path="$newlib_search_path $absdir"
  62470. + # Link against this library
  62471. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  62472. + # ... and its dependency_libs
  62473. + tmp_libs=
  62474. + for deplib in $dependency_libs; do
  62475. + newdependency_libs="$deplib $newdependency_libs"
  62476. + if $opt_duplicate_deps ; then
  62477. + case "$tmp_libs " in
  62478. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  62479. + esac
  62480. + fi
  62481. + tmp_libs="$tmp_libs $deplib"
  62482. + done
  62483. +
  62484. + if test "$link_all_deplibs" != no; then
  62485. + # Add the search paths of all dependency libraries
  62486. + for deplib in $dependency_libs; do
  62487. + path=
  62488. + case $deplib in
  62489. + -L*) path="$deplib" ;;
  62490. + *.la)
  62491. + func_dirname "$deplib" "" "."
  62492. + dir="$func_dirname_result"
  62493. + # We need an absolute path.
  62494. + case $dir in
  62495. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  62496. + *)
  62497. + absdir=`cd "$dir" && pwd`
  62498. + if test -z "$absdir"; then
  62499. + func_warning "cannot determine absolute directory name of \`$dir'"
  62500. + absdir="$dir"
  62501. + fi
  62502. + ;;
  62503. + esac
  62504. + if $GREP "^installed=no" $deplib > /dev/null; then
  62505. + case $host in
  62506. + *-*-darwin*)
  62507. + depdepl=
  62508. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  62509. + if test -n "$deplibrary_names" ; then
  62510. + for tmp in $deplibrary_names ; do
  62511. + depdepl=$tmp
  62512. + done
  62513. + if test -f "$absdir/$objdir/$depdepl" ; then
  62514. + depdepl="$absdir/$objdir/$depdepl"
  62515. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  62516. + if test -z "$darwin_install_name"; then
  62517. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  62518. + fi
  62519. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  62520. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  62521. + path=
  62522. + fi
  62523. + fi
  62524. + ;;
  62525. + *)
  62526. + path="-L$absdir/$objdir"
  62527. + ;;
  62528. + esac
  62529. + else
  62530. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  62531. + test -z "$libdir" && \
  62532. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  62533. + test "$absdir" != "$libdir" && \
  62534. + func_warning "\`$deplib' seems to be moved"
  62535. +
  62536. + path="-L$absdir"
  62537. + fi
  62538. + ;;
  62539. + esac
  62540. + case " $deplibs " in
  62541. + *" $path "*) ;;
  62542. + *) deplibs="$path $deplibs" ;;
  62543. + esac
  62544. + done
  62545. + fi # link_all_deplibs != no
  62546. + fi # linkmode = lib
  62547. + done # for deplib in $libs
  62548. + if test "$pass" = link; then
  62549. + if test "$linkmode" = "prog"; then
  62550. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  62551. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  62552. + else
  62553. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  62554. + fi
  62555. + fi
  62556. + dependency_libs="$newdependency_libs"
  62557. + if test "$pass" = dlpreopen; then
  62558. + # Link the dlpreopened libraries before other libraries
  62559. + for deplib in $save_deplibs; do
  62560. + deplibs="$deplib $deplibs"
  62561. + done
  62562. + fi
  62563. + if test "$pass" != dlopen; then
  62564. + if test "$pass" != conv; then
  62565. + # Make sure lib_search_path contains only unique directories.
  62566. + lib_search_path=
  62567. + for dir in $newlib_search_path; do
  62568. + case "$lib_search_path " in
  62569. + *" $dir "*) ;;
  62570. + *) lib_search_path="$lib_search_path $dir" ;;
  62571. + esac
  62572. + done
  62573. + newlib_search_path=
  62574. + fi
  62575. +
  62576. + if test "$linkmode,$pass" != "prog,link"; then
  62577. + vars="deplibs"
  62578. + else
  62579. + vars="compile_deplibs finalize_deplibs"
  62580. + fi
  62581. + for var in $vars dependency_libs; do
  62582. + # Add libraries to $var in reverse order
  62583. + eval tmp_libs=\"\$$var\"
  62584. + new_libs=
  62585. + for deplib in $tmp_libs; do
  62586. + # FIXME: Pedantically, this is the right thing to do, so
  62587. + # that some nasty dependency loop isn't accidentally
  62588. + # broken:
  62589. + #new_libs="$deplib $new_libs"
  62590. + # Pragmatically, this seems to cause very few problems in
  62591. + # practice:
  62592. + case $deplib in
  62593. + -L*) new_libs="$deplib $new_libs" ;;
  62594. + -R*) ;;
  62595. + *)
  62596. + # And here is the reason: when a library appears more
  62597. + # than once as an explicit dependence of a library, or
  62598. + # is implicitly linked in more than once by the
  62599. + # compiler, it is considered special, and multiple
  62600. + # occurrences thereof are not removed. Compare this
  62601. + # with having the same library being listed as a
  62602. + # dependency of multiple other libraries: in this case,
  62603. + # we know (pedantically, we assume) the library does not
  62604. + # need to be listed more than once, so we keep only the
  62605. + # last copy. This is not always right, but it is rare
  62606. + # enough that we require users that really mean to play
  62607. + # such unportable linking tricks to link the library
  62608. + # using -Wl,-lname, so that libtool does not consider it
  62609. + # for duplicate removal.
  62610. + case " $specialdeplibs " in
  62611. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  62612. + *)
  62613. + case " $new_libs " in
  62614. + *" $deplib "*) ;;
  62615. + *) new_libs="$deplib $new_libs" ;;
  62616. + esac
  62617. + ;;
  62618. + esac
  62619. + ;;
  62620. + esac
  62621. + done
  62622. + tmp_libs=
  62623. + for deplib in $new_libs; do
  62624. + case $deplib in
  62625. + -L*)
  62626. + case " $tmp_libs " in
  62627. + *" $deplib "*) ;;
  62628. + *) tmp_libs="$tmp_libs $deplib" ;;
  62629. + esac
  62630. + ;;
  62631. + *) tmp_libs="$tmp_libs $deplib" ;;
  62632. + esac
  62633. + done
  62634. + eval $var=\"$tmp_libs\"
  62635. + done # for var
  62636. + fi
  62637. + # Last step: remove runtime libs from dependency_libs
  62638. + # (they stay in deplibs)
  62639. + tmp_libs=
  62640. + for i in $dependency_libs ; do
  62641. + case " $predeps $postdeps $compiler_lib_search_path " in
  62642. + *" $i "*)
  62643. + i=""
  62644. + ;;
  62645. + esac
  62646. + if test -n "$i" ; then
  62647. + tmp_libs="$tmp_libs $i"
  62648. + fi
  62649. + done
  62650. + dependency_libs=$tmp_libs
  62651. + done # for pass
  62652. + if test "$linkmode" = prog; then
  62653. + dlfiles="$newdlfiles"
  62654. + fi
  62655. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  62656. + dlprefiles="$newdlprefiles"
  62657. + fi
  62658. +
  62659. + case $linkmode in
  62660. + oldlib)
  62661. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  62662. + func_warning "\`-dlopen' is ignored for archives"
  62663. + fi
  62664. +
  62665. + case " $deplibs" in
  62666. + *\ -l* | *\ -L*)
  62667. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  62668. + esac
  62669. +
  62670. + test -n "$rpath" && \
  62671. + func_warning "\`-rpath' is ignored for archives"
  62672. +
  62673. + test -n "$xrpath" && \
  62674. + func_warning "\`-R' is ignored for archives"
  62675. +
  62676. + test -n "$vinfo" && \
  62677. + func_warning "\`-version-info/-version-number' is ignored for archives"
  62678. +
  62679. + test -n "$release" && \
  62680. + func_warning "\`-release' is ignored for archives"
  62681. +
  62682. + test -n "$export_symbols$export_symbols_regex" && \
  62683. + func_warning "\`-export-symbols' is ignored for archives"
  62684. +
  62685. + # Now set the variables for building old libraries.
  62686. + build_libtool_libs=no
  62687. + oldlibs="$output"
  62688. + objs="$objs$old_deplibs"
  62689. + ;;
  62690. +
  62691. + lib)
  62692. + # Make sure we only generate libraries of the form `libNAME.la'.
  62693. + case $outputname in
  62694. + lib*)
  62695. + func_stripname 'lib' '.la' "$outputname"
  62696. + name=$func_stripname_result
  62697. + eval shared_ext=\"$shrext_cmds\"
  62698. + eval libname=\"$libname_spec\"
  62699. + ;;
  62700. + *)
  62701. + test "$module" = no && \
  62702. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  62703. +
  62704. + if test "$need_lib_prefix" != no; then
  62705. + # Add the "lib" prefix for modules if required
  62706. + func_stripname '' '.la' "$outputname"
  62707. + name=$func_stripname_result
  62708. + eval shared_ext=\"$shrext_cmds\"
  62709. + eval libname=\"$libname_spec\"
  62710. + else
  62711. + func_stripname '' '.la' "$outputname"
  62712. + libname=$func_stripname_result
  62713. + fi
  62714. + ;;
  62715. + esac
  62716. +
  62717. + if test -n "$objs"; then
  62718. + if test "$deplibs_check_method" != pass_all; then
  62719. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  62720. + else
  62721. + $ECHO
  62722. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  62723. + $ECHO "*** objects $objs is not portable!"
  62724. + libobjs="$libobjs $objs"
  62725. + fi
  62726. + fi
  62727. +
  62728. + test "$dlself" != no && \
  62729. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  62730. +
  62731. + set dummy $rpath
  62732. + shift
  62733. + test "$#" -gt 1 && \
  62734. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  62735. +
  62736. + install_libdir="$1"
  62737. +
  62738. + oldlibs=
  62739. + if test -z "$rpath"; then
  62740. + if test "$build_libtool_libs" = yes; then
  62741. + # Building a libtool convenience library.
  62742. + # Some compilers have problems with a `.al' extension so
  62743. + # convenience libraries should have the same extension an
  62744. + # archive normally would.
  62745. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  62746. + build_libtool_libs=convenience
  62747. + build_old_libs=yes
  62748. + fi
  62749. +
  62750. + test -n "$vinfo" && \
  62751. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  62752. +
  62753. + test -n "$release" && \
  62754. + func_warning "\`-release' is ignored for convenience libraries"
  62755. + else
  62756. +
  62757. + # Parse the version information argument.
  62758. + save_ifs="$IFS"; IFS=':'
  62759. + set dummy $vinfo 0 0 0
  62760. + shift
  62761. + IFS="$save_ifs"
  62762. +
  62763. + test -n "$7" && \
  62764. + func_fatal_help "too many parameters to \`-version-info'"
  62765. +
  62766. + # convert absolute version numbers to libtool ages
  62767. + # this retains compatibility with .la files and attempts
  62768. + # to make the code below a bit more comprehensible
  62769. +
  62770. + case $vinfo_number in
  62771. + yes)
  62772. + number_major="$1"
  62773. + number_minor="$2"
  62774. + number_revision="$3"
  62775. + #
  62776. + # There are really only two kinds -- those that
  62777. + # use the current revision as the major version
  62778. + # and those that subtract age and use age as
  62779. + # a minor version. But, then there is irix
  62780. + # which has an extra 1 added just for fun
  62781. + #
  62782. + case $version_type in
  62783. + darwin|linux|osf|windows|none)
  62784. + func_arith $number_major + $number_minor
  62785. + current=$func_arith_result
  62786. + age="$number_minor"
  62787. + revision="$number_revision"
  62788. + ;;
  62789. + freebsd-aout|freebsd-elf|sunos)
  62790. + current="$number_major"
  62791. + revision="$number_minor"
  62792. + age="0"
  62793. + ;;
  62794. + irix|nonstopux)
  62795. + func_arith $number_major + $number_minor
  62796. + current=$func_arith_result
  62797. + age="$number_minor"
  62798. + revision="$number_minor"
  62799. + lt_irix_increment=no
  62800. + ;;
  62801. + *)
  62802. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  62803. + ;;
  62804. + esac
  62805. + ;;
  62806. + no)
  62807. + current="$1"
  62808. + revision="$2"
  62809. + age="$3"
  62810. + ;;
  62811. + esac
  62812. +
  62813. + # Check that each of the things are valid numbers.
  62814. + case $current in
  62815. + 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]) ;;
  62816. + *)
  62817. + func_error "CURRENT \`$current' must be a nonnegative integer"
  62818. + func_fatal_error "\`$vinfo' is not valid version information"
  62819. + ;;
  62820. + esac
  62821. +
  62822. + case $revision in
  62823. + 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]) ;;
  62824. + *)
  62825. + func_error "REVISION \`$revision' must be a nonnegative integer"
  62826. + func_fatal_error "\`$vinfo' is not valid version information"
  62827. + ;;
  62828. + esac
  62829. +
  62830. + case $age in
  62831. + 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]) ;;
  62832. + *)
  62833. + func_error "AGE \`$age' must be a nonnegative integer"
  62834. + func_fatal_error "\`$vinfo' is not valid version information"
  62835. + ;;
  62836. + esac
  62837. +
  62838. + if test "$age" -gt "$current"; then
  62839. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  62840. + func_fatal_error "\`$vinfo' is not valid version information"
  62841. + fi
  62842. +
  62843. + # Calculate the version variables.
  62844. + major=
  62845. + versuffix=
  62846. + verstring=
  62847. + case $version_type in
  62848. + none) ;;
  62849. +
  62850. + darwin)
  62851. + # Like Linux, but with the current version available in
  62852. + # verstring for coding it into the library header
  62853. + func_arith $current - $age
  62854. + major=.$func_arith_result
  62855. + versuffix="$major.$age.$revision"
  62856. + # Darwin ld doesn't like 0 for these options...
  62857. + func_arith $current + 1
  62858. + minor_current=$func_arith_result
  62859. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  62860. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  62861. + ;;
  62862. +
  62863. + freebsd-aout)
  62864. + major=".$current"
  62865. + versuffix=".$current.$revision";
  62866. + ;;
  62867. +
  62868. + freebsd-elf)
  62869. + major=".$current"
  62870. + versuffix=".$current"
  62871. + ;;
  62872. +
  62873. + irix | nonstopux)
  62874. + if test "X$lt_irix_increment" = "Xno"; then
  62875. + func_arith $current - $age
  62876. + else
  62877. + func_arith $current - $age + 1
  62878. + fi
  62879. + major=$func_arith_result
  62880. +
  62881. + case $version_type in
  62882. + nonstopux) verstring_prefix=nonstopux ;;
  62883. + *) verstring_prefix=sgi ;;
  62884. + esac
  62885. + verstring="$verstring_prefix$major.$revision"
  62886. +
  62887. + # Add in all the interfaces that we are compatible with.
  62888. + loop=$revision
  62889. + while test "$loop" -ne 0; do
  62890. + func_arith $revision - $loop
  62891. + iface=$func_arith_result
  62892. + func_arith $loop - 1
  62893. + loop=$func_arith_result
  62894. + verstring="$verstring_prefix$major.$iface:$verstring"
  62895. + done
  62896. +
  62897. + # Before this point, $major must not contain `.'.
  62898. + major=.$major
  62899. + versuffix="$major.$revision"
  62900. + ;;
  62901. +
  62902. + linux)
  62903. + func_arith $current - $age
  62904. + major=.$func_arith_result
  62905. + versuffix="$major.$age.$revision"
  62906. + ;;
  62907. +
  62908. + osf)
  62909. + func_arith $current - $age
  62910. + major=.$func_arith_result
  62911. + versuffix=".$current.$age.$revision"
  62912. + verstring="$current.$age.$revision"
  62913. +
  62914. + # Add in all the interfaces that we are compatible with.
  62915. + loop=$age
  62916. + while test "$loop" -ne 0; do
  62917. + func_arith $current - $loop
  62918. + iface=$func_arith_result
  62919. + func_arith $loop - 1
  62920. + loop=$func_arith_result
  62921. + verstring="$verstring:${iface}.0"
  62922. + done
  62923. +
  62924. + # Make executables depend on our current version.
  62925. + verstring="$verstring:${current}.0"
  62926. + ;;
  62927. +
  62928. + qnx)
  62929. + major=".$current"
  62930. + versuffix=".$current"
  62931. + ;;
  62932. +
  62933. + sunos)
  62934. + major=".$current"
  62935. + versuffix=".$current.$revision"
  62936. + ;;
  62937. +
  62938. + windows)
  62939. + # Use '-' rather than '.', since we only want one
  62940. + # extension on DOS 8.3 filesystems.
  62941. + func_arith $current - $age
  62942. + major=$func_arith_result
  62943. + versuffix="-$major"
  62944. + ;;
  62945. +
  62946. + *)
  62947. + func_fatal_configuration "unknown library version type \`$version_type'"
  62948. + ;;
  62949. + esac
  62950. +
  62951. + # Clear the version info if we defaulted, and they specified a release.
  62952. + if test -z "$vinfo" && test -n "$release"; then
  62953. + major=
  62954. + case $version_type in
  62955. + darwin)
  62956. + # we can't check for "0.0" in archive_cmds due to quoting
  62957. + # problems, so we reset it completely
  62958. + verstring=
  62959. + ;;
  62960. + *)
  62961. + verstring="0.0"
  62962. + ;;
  62963. + esac
  62964. + if test "$need_version" = no; then
  62965. + versuffix=
  62966. + else
  62967. + versuffix=".0.0"
  62968. + fi
  62969. + fi
  62970. +
  62971. + # Remove version info from name if versioning should be avoided
  62972. + if test "$avoid_version" = yes && test "$need_version" = no; then
  62973. + major=
  62974. + versuffix=
  62975. + verstring=""
  62976. + fi
  62977. +
  62978. + # Check to see if the archive will have undefined symbols.
  62979. + if test "$allow_undefined" = yes; then
  62980. + if test "$allow_undefined_flag" = unsupported; then
  62981. + func_warning "undefined symbols not allowed in $host shared libraries"
  62982. + build_libtool_libs=no
  62983. + build_old_libs=yes
  62984. + fi
  62985. + else
  62986. + # Don't allow undefined symbols.
  62987. + allow_undefined_flag="$no_undefined_flag"
  62988. + fi
  62989. +
  62990. + fi
  62991. +
  62992. + func_generate_dlsyms "$libname" "$libname" "yes"
  62993. + libobjs="$libobjs $symfileobj"
  62994. + test "X$libobjs" = "X " && libobjs=
  62995. +
  62996. + if test "$mode" != relink; then
  62997. + # Remove our outputs, but don't remove object files since they
  62998. + # may have been created when compiling PIC objects.
  62999. + removelist=
  63000. + tempremovelist=`$ECHO "$output_objdir/*"`
  63001. + for p in $tempremovelist; do
  63002. + case $p in
  63003. + *.$objext | *.gcno)
  63004. + ;;
  63005. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  63006. + if test "X$precious_files_regex" != "X"; then
  63007. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  63008. + then
  63009. + continue
  63010. + fi
  63011. + fi
  63012. + removelist="$removelist $p"
  63013. + ;;
  63014. + *) ;;
  63015. + esac
  63016. + done
  63017. + test -n "$removelist" && \
  63018. + func_show_eval "${RM}r \$removelist"
  63019. + fi
  63020. +
  63021. + # Now set the variables for building old libraries.
  63022. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  63023. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  63024. +
  63025. + # Transform .lo files to .o files.
  63026. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  63027. + fi
  63028. +
  63029. + # Eliminate all temporary directories.
  63030. + #for path in $notinst_path; do
  63031. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  63032. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  63033. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  63034. + #done
  63035. +
  63036. + if test -n "$xrpath"; then
  63037. + # If the user specified any rpath flags, then add them.
  63038. + temp_xrpath=
  63039. + for libdir in $xrpath; do
  63040. + temp_xrpath="$temp_xrpath -R$libdir"
  63041. + case "$finalize_rpath " in
  63042. + *" $libdir "*) ;;
  63043. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  63044. + esac
  63045. + done
  63046. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  63047. + dependency_libs="$temp_xrpath $dependency_libs"
  63048. + fi
  63049. + fi
  63050. +
  63051. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  63052. + old_dlfiles="$dlfiles"
  63053. + dlfiles=
  63054. + for lib in $old_dlfiles; do
  63055. + case " $dlprefiles $dlfiles " in
  63056. + *" $lib "*) ;;
  63057. + *) dlfiles="$dlfiles $lib" ;;
  63058. + esac
  63059. + done
  63060. +
  63061. + # Make sure dlprefiles contains only unique files
  63062. + old_dlprefiles="$dlprefiles"
  63063. + dlprefiles=
  63064. + for lib in $old_dlprefiles; do
  63065. + case "$dlprefiles " in
  63066. + *" $lib "*) ;;
  63067. + *) dlprefiles="$dlprefiles $lib" ;;
  63068. + esac
  63069. + done
  63070. +
  63071. + if test "$build_libtool_libs" = yes; then
  63072. + if test -n "$rpath"; then
  63073. + case $host in
  63074. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  63075. + # these systems don't actually have a c library (as such)!
  63076. + ;;
  63077. + *-*-rhapsody* | *-*-darwin1.[012])
  63078. + # Rhapsody C library is in the System framework
  63079. + deplibs="$deplibs System.ltframework"
  63080. + ;;
  63081. + *-*-netbsd*)
  63082. + # Don't link with libc until the a.out ld.so is fixed.
  63083. + ;;
  63084. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  63085. + # Do not include libc due to us having libc/libc_r.
  63086. + ;;
  63087. + *-*-sco3.2v5* | *-*-sco5v6*)
  63088. + # Causes problems with __ctype
  63089. + ;;
  63090. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  63091. + # Compiler inserts libc in the correct place for threads to work
  63092. + ;;
  63093. + *)
  63094. + # Add libc to deplibs on all other systems if necessary.
  63095. + if test "$build_libtool_need_lc" = "yes"; then
  63096. + deplibs="$deplibs -lc"
  63097. + fi
  63098. + ;;
  63099. + esac
  63100. + fi
  63101. +
  63102. + # Transform deplibs into only deplibs that can be linked in shared.
  63103. + name_save=$name
  63104. + libname_save=$libname
  63105. + release_save=$release
  63106. + versuffix_save=$versuffix
  63107. + major_save=$major
  63108. + # I'm not sure if I'm treating the release correctly. I think
  63109. + # release should show up in the -l (ie -lgmp5) so we don't want to
  63110. + # add it in twice. Is that correct?
  63111. + release=""
  63112. + versuffix=""
  63113. + major=""
  63114. + newdeplibs=
  63115. + droppeddeps=no
  63116. + case $deplibs_check_method in
  63117. + pass_all)
  63118. + # Don't check for shared/static. Everything works.
  63119. + # This might be a little naive. We might want to check
  63120. + # whether the library exists or not. But this is on
  63121. + # osf3 & osf4 and I'm not really sure... Just
  63122. + # implementing what was already the behavior.
  63123. + newdeplibs=$deplibs
  63124. + ;;
  63125. + test_compile)
  63126. + # This code stresses the "libraries are programs" paradigm to its
  63127. + # limits. Maybe even breaks it. We compile a program, linking it
  63128. + # against the deplibs as a proxy for the library. Then we can check
  63129. + # whether they linked in statically or dynamically with ldd.
  63130. + $opt_dry_run || $RM conftest.c
  63131. + cat > conftest.c <<EOF
  63132. + int main() { return 0; }
  63133. +EOF
  63134. + $opt_dry_run || $RM conftest
  63135. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  63136. + ldd_output=`ldd conftest`
  63137. + for i in $deplibs; do
  63138. + case $i in
  63139. + -l*)
  63140. + func_stripname -l '' "$i"
  63141. + name=$func_stripname_result
  63142. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  63143. + case " $predeps $postdeps " in
  63144. + *" $i "*)
  63145. + newdeplibs="$newdeplibs $i"
  63146. + i=""
  63147. + ;;
  63148. + esac
  63149. + fi
  63150. + if test -n "$i" ; then
  63151. + libname=`eval "\\$ECHO \"$libname_spec\""`
  63152. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  63153. + set dummy $deplib_matches; shift
  63154. + deplib_match=$1
  63155. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  63156. + newdeplibs="$newdeplibs $i"
  63157. + else
  63158. + droppeddeps=yes
  63159. + $ECHO
  63160. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  63161. + $ECHO "*** I have the capability to make that library automatically link in when"
  63162. + $ECHO "*** you link to this library. But I can only do this if you have a"
  63163. + $ECHO "*** shared version of the library, which I believe you do not have"
  63164. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  63165. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  63166. + fi
  63167. + fi
  63168. + ;;
  63169. + *)
  63170. + newdeplibs="$newdeplibs $i"
  63171. + ;;
  63172. + esac
  63173. + done
  63174. + else
  63175. + # Error occurred in the first compile. Let's try to salvage
  63176. + # the situation: Compile a separate program for each library.
  63177. + for i in $deplibs; do
  63178. + case $i in
  63179. + -l*)
  63180. + func_stripname -l '' "$i"
  63181. + name=$func_stripname_result
  63182. + $opt_dry_run || $RM conftest
  63183. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  63184. + ldd_output=`ldd conftest`
  63185. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  63186. + case " $predeps $postdeps " in
  63187. + *" $i "*)
  63188. + newdeplibs="$newdeplibs $i"
  63189. + i=""
  63190. + ;;
  63191. + esac
  63192. + fi
  63193. + if test -n "$i" ; then
  63194. + libname=`eval "\\$ECHO \"$libname_spec\""`
  63195. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  63196. + set dummy $deplib_matches; shift
  63197. + deplib_match=$1
  63198. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  63199. + newdeplibs="$newdeplibs $i"
  63200. + else
  63201. + droppeddeps=yes
  63202. + $ECHO
  63203. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  63204. + $ECHO "*** I have the capability to make that library automatically link in when"
  63205. + $ECHO "*** you link to this library. But I can only do this if you have a"
  63206. + $ECHO "*** shared version of the library, which you do not appear to have"
  63207. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  63208. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  63209. + fi
  63210. + fi
  63211. + else
  63212. + droppeddeps=yes
  63213. + $ECHO
  63214. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  63215. + $ECHO "*** make it link in! You will probably need to install it or some"
  63216. + $ECHO "*** library that it depends on before this library will be fully"
  63217. + $ECHO "*** functional. Installing it before continuing would be even better."
  63218. + fi
  63219. + ;;
  63220. + *)
  63221. + newdeplibs="$newdeplibs $i"
  63222. + ;;
  63223. + esac
  63224. + done
  63225. + fi
  63226. + ;;
  63227. + file_magic*)
  63228. + set dummy $deplibs_check_method; shift
  63229. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  63230. + for a_deplib in $deplibs; do
  63231. + case $a_deplib in
  63232. + -l*)
  63233. + func_stripname -l '' "$a_deplib"
  63234. + name=$func_stripname_result
  63235. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  63236. + case " $predeps $postdeps " in
  63237. + *" $a_deplib "*)
  63238. + newdeplibs="$newdeplibs $a_deplib"
  63239. + a_deplib=""
  63240. + ;;
  63241. + esac
  63242. + fi
  63243. + if test -n "$a_deplib" ; then
  63244. + libname=`eval "\\$ECHO \"$libname_spec\""`
  63245. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  63246. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  63247. + for potent_lib in $potential_libs; do
  63248. + # Follow soft links.
  63249. + if ls -lLd "$potent_lib" 2>/dev/null |
  63250. + $GREP " -> " >/dev/null; then
  63251. + continue
  63252. + fi
  63253. + # The statement above tries to avoid entering an
  63254. + # endless loop below, in case of cyclic links.
  63255. + # We might still enter an endless loop, since a link
  63256. + # loop can be closed while we follow links,
  63257. + # but so what?
  63258. + potlib="$potent_lib"
  63259. + while test -h "$potlib" 2>/dev/null; do
  63260. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  63261. + case $potliblink in
  63262. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  63263. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  63264. + esac
  63265. + done
  63266. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  63267. + $SED -e 10q |
  63268. + $EGREP "$file_magic_regex" > /dev/null; then
  63269. + newdeplibs="$newdeplibs $a_deplib"
  63270. + a_deplib=""
  63271. + break 2
  63272. + fi
  63273. + done
  63274. + done
  63275. + fi
  63276. + if test -n "$a_deplib" ; then
  63277. + droppeddeps=yes
  63278. + $ECHO
  63279. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  63280. + $ECHO "*** I have the capability to make that library automatically link in when"
  63281. + $ECHO "*** you link to this library. But I can only do this if you have a"
  63282. + $ECHO "*** shared version of the library, which you do not appear to have"
  63283. + $ECHO "*** because I did check the linker path looking for a file starting"
  63284. + if test -z "$potlib" ; then
  63285. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  63286. + else
  63287. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  63288. + $ECHO "*** using a file magic. Last file checked: $potlib"
  63289. + fi
  63290. + fi
  63291. + ;;
  63292. + *)
  63293. + # Add a -L argument.
  63294. + newdeplibs="$newdeplibs $a_deplib"
  63295. + ;;
  63296. + esac
  63297. + done # Gone through all deplibs.
  63298. + ;;
  63299. + match_pattern*)
  63300. + set dummy $deplibs_check_method; shift
  63301. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  63302. + for a_deplib in $deplibs; do
  63303. + case $a_deplib in
  63304. + -l*)
  63305. + func_stripname -l '' "$a_deplib"
  63306. + name=$func_stripname_result
  63307. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  63308. + case " $predeps $postdeps " in
  63309. + *" $a_deplib "*)
  63310. + newdeplibs="$newdeplibs $a_deplib"
  63311. + a_deplib=""
  63312. + ;;
  63313. + esac
  63314. + fi
  63315. + if test -n "$a_deplib" ; then
  63316. + libname=`eval "\\$ECHO \"$libname_spec\""`
  63317. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  63318. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  63319. + for potent_lib in $potential_libs; do
  63320. + potlib="$potent_lib" # see symlink-check above in file_magic test
  63321. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  63322. + $EGREP "$match_pattern_regex" > /dev/null; then
  63323. + newdeplibs="$newdeplibs $a_deplib"
  63324. + a_deplib=""
  63325. + break 2
  63326. + fi
  63327. + done
  63328. + done
  63329. + fi
  63330. + if test -n "$a_deplib" ; then
  63331. + droppeddeps=yes
  63332. + $ECHO
  63333. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  63334. + $ECHO "*** I have the capability to make that library automatically link in when"
  63335. + $ECHO "*** you link to this library. But I can only do this if you have a"
  63336. + $ECHO "*** shared version of the library, which you do not appear to have"
  63337. + $ECHO "*** because I did check the linker path looking for a file starting"
  63338. + if test -z "$potlib" ; then
  63339. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  63340. + else
  63341. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  63342. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  63343. + fi
  63344. + fi
  63345. + ;;
  63346. + *)
  63347. + # Add a -L argument.
  63348. + newdeplibs="$newdeplibs $a_deplib"
  63349. + ;;
  63350. + esac
  63351. + done # Gone through all deplibs.
  63352. + ;;
  63353. + none | unknown | *)
  63354. + newdeplibs=""
  63355. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  63356. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  63357. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  63358. + for i in $predeps $postdeps ; do
  63359. + # can't use Xsed below, because $i might contain '/'
  63360. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  63361. + done
  63362. + fi
  63363. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  63364. + $GREP . >/dev/null; then
  63365. + $ECHO
  63366. + if test "X$deplibs_check_method" = "Xnone"; then
  63367. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  63368. + else
  63369. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  63370. + fi
  63371. + $ECHO "*** All declared inter-library dependencies are being dropped."
  63372. + droppeddeps=yes
  63373. + fi
  63374. + ;;
  63375. + esac
  63376. + versuffix=$versuffix_save
  63377. + major=$major_save
  63378. + release=$release_save
  63379. + libname=$libname_save
  63380. + name=$name_save
  63381. - # Find the directory that this script lives in.
  63382. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  63383. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  63384. + case $host in
  63385. + *-*-rhapsody* | *-*-darwin1.[012])
  63386. + # On Rhapsody replace the C library with the System framework
  63387. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  63388. + ;;
  63389. + esac
  63390. - # Follow symbolic links until we get to the real thisdir.
  63391. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  63392. - while test -n \"\$file\"; do
  63393. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  63394. + if test "$droppeddeps" = yes; then
  63395. + if test "$module" = yes; then
  63396. + $ECHO
  63397. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  63398. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  63399. + $ECHO "*** a static module, that should work as long as the dlopening"
  63400. + $ECHO "*** application is linked with the -dlopen flag."
  63401. + if test -z "$global_symbol_pipe"; then
  63402. + $ECHO
  63403. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  63404. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  63405. + $ECHO "*** not find such a program. So, this module is probably useless."
  63406. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  63407. + fi
  63408. + if test "$build_old_libs" = no; then
  63409. + oldlibs="$output_objdir/$libname.$libext"
  63410. + build_libtool_libs=module
  63411. + build_old_libs=yes
  63412. + else
  63413. + build_libtool_libs=no
  63414. + fi
  63415. + else
  63416. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  63417. + $ECHO "*** automatically added whenever a program is linked with this library"
  63418. + $ECHO "*** or is declared to -dlopen it."
  63419. - # If there was a directory component, then change thisdir.
  63420. - if test \"x\$destdir\" != \"x\$file\"; then
  63421. - case \"\$destdir\" in
  63422. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  63423. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  63424. + if test "$allow_undefined" = no; then
  63425. + $ECHO
  63426. + $ECHO "*** Since this library must not contain undefined symbols,"
  63427. + $ECHO "*** because either the platform does not support them or"
  63428. + $ECHO "*** it was explicitly requested with -no-undefined,"
  63429. + $ECHO "*** libtool will only create a static version of it."
  63430. + if test "$build_old_libs" = no; then
  63431. + oldlibs="$output_objdir/$libname.$libext"
  63432. + build_libtool_libs=module
  63433. + build_old_libs=yes
  63434. + else
  63435. + build_libtool_libs=no
  63436. + fi
  63437. + fi
  63438. + fi
  63439. + fi
  63440. + # Done checking deplibs!
  63441. + deplibs=$newdeplibs
  63442. + fi
  63443. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  63444. + case $host in
  63445. + *-*-darwin*)
  63446. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  63447. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  63448. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  63449. + ;;
  63450. esac
  63451. - fi
  63452. -
  63453. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  63454. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  63455. - done
  63456. -
  63457. - # Try to get the absolute directory name.
  63458. - absdir=\`cd \"\$thisdir\" && pwd\`
  63459. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  63460. -"
  63461. -
  63462. - if test "$fast_install" = yes; then
  63463. - $echo >> $output "\
  63464. - program=lt-'$outputname'$exeext
  63465. - progdir=\"\$thisdir/$objdir\"
  63466. - if test ! -f \"\$progdir/\$program\" || \\
  63467. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  63468. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  63469. + # move library search paths that coincide with paths to not yet
  63470. + # installed libraries to the beginning of the library search list
  63471. + new_libs=
  63472. + for path in $notinst_path; do
  63473. + case " $new_libs " in
  63474. + *" -L$path/$objdir "*) ;;
  63475. + *)
  63476. + case " $deplibs " in
  63477. + *" -L$path/$objdir "*)
  63478. + new_libs="$new_libs -L$path/$objdir" ;;
  63479. + esac
  63480. + ;;
  63481. + esac
  63482. + done
  63483. + for deplib in $deplibs; do
  63484. + case $deplib in
  63485. + -L*)
  63486. + case " $new_libs " in
  63487. + *" $deplib "*) ;;
  63488. + *) new_libs="$new_libs $deplib" ;;
  63489. + esac
  63490. + ;;
  63491. + *) new_libs="$new_libs $deplib" ;;
  63492. + esac
  63493. + done
  63494. + deplibs="$new_libs"
  63495. - file=\"\$\$-\$program\"
  63496. + # All the library-specific variables (install_libdir is set above).
  63497. + library_names=
  63498. + old_library=
  63499. + dlname=
  63500. - if test ! -d \"\$progdir\"; then
  63501. - $mkdir \"\$progdir\"
  63502. - else
  63503. - $rm \"\$progdir/\$file\"
  63504. - fi"
  63505. + # Test again, we may have decided not to build it any more
  63506. + if test "$build_libtool_libs" = yes; then
  63507. + if test "$hardcode_into_libs" = yes; then
  63508. + # Hardcode the library paths
  63509. + hardcode_libdirs=
  63510. + dep_rpath=
  63511. + rpath="$finalize_rpath"
  63512. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  63513. + for libdir in $rpath; do
  63514. + if test -n "$hardcode_libdir_flag_spec"; then
  63515. + if test -n "$hardcode_libdir_separator"; then
  63516. + if test -z "$hardcode_libdirs"; then
  63517. + hardcode_libdirs="$libdir"
  63518. + else
  63519. + # Just accumulate the unique libdirs.
  63520. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  63521. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  63522. + ;;
  63523. + *)
  63524. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  63525. + ;;
  63526. + esac
  63527. + fi
  63528. + else
  63529. + eval flag=\"$hardcode_libdir_flag_spec\"
  63530. + dep_rpath="$dep_rpath $flag"
  63531. + fi
  63532. + elif test -n "$runpath_var"; then
  63533. + case "$perm_rpath " in
  63534. + *" $libdir "*) ;;
  63535. + *) perm_rpath="$perm_rpath $libdir" ;;
  63536. + esac
  63537. + fi
  63538. + done
  63539. + # Substitute the hardcoded libdirs into the rpath.
  63540. + if test -n "$hardcode_libdir_separator" &&
  63541. + test -n "$hardcode_libdirs"; then
  63542. + libdir="$hardcode_libdirs"
  63543. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  63544. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  63545. + else
  63546. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  63547. + fi
  63548. + fi
  63549. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  63550. + # We should set the runpath_var.
  63551. + rpath=
  63552. + for dir in $perm_rpath; do
  63553. + rpath="$rpath$dir:"
  63554. + done
  63555. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  63556. + fi
  63557. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  63558. + fi
  63559. - $echo >> $output "\
  63560. + shlibpath="$finalize_shlibpath"
  63561. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  63562. + if test -n "$shlibpath"; then
  63563. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  63564. + fi
  63565. - # relink executable if necessary
  63566. - if test -n \"\$relink_command\"; then
  63567. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  63568. - else
  63569. - $echo \"\$relink_command_output\" >&2
  63570. - $rm \"\$progdir/\$file\"
  63571. - exit $EXIT_FAILURE
  63572. - fi
  63573. - fi
  63574. + # Get the real and link names of the library.
  63575. + eval shared_ext=\"$shrext_cmds\"
  63576. + eval library_names=\"$library_names_spec\"
  63577. + set dummy $library_names
  63578. + shift
  63579. + realname="$1"
  63580. + shift
  63581. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  63582. - { $rm \"\$progdir/\$program\";
  63583. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  63584. - $rm \"\$progdir/\$file\"
  63585. - fi"
  63586. + if test -n "$soname_spec"; then
  63587. + eval soname=\"$soname_spec\"
  63588. else
  63589. - $echo >> $output "\
  63590. - program='$outputname'
  63591. - progdir=\"\$thisdir/$objdir\"
  63592. -"
  63593. + soname="$realname"
  63594. fi
  63595. -
  63596. - $echo >> $output "\
  63597. -
  63598. - if test -f \"\$progdir/\$program\"; then"
  63599. -
  63600. - # Export our shlibpath_var if we have one.
  63601. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  63602. - $echo >> $output "\
  63603. - # Add our own library path to $shlibpath_var
  63604. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  63605. -
  63606. - # Some systems cannot cope with colon-terminated $shlibpath_var
  63607. - # The second colon is a workaround for a bug in BeOS R4 sed
  63608. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  63609. -
  63610. - export $shlibpath_var
  63611. -"
  63612. + if test -z "$dlname"; then
  63613. + dlname=$soname
  63614. fi
  63615. - # fixup the dll searchpath if we need to.
  63616. - if test -n "$dllsearchpath"; then
  63617. - $echo >> $output "\
  63618. - # Add the dll search path components to the executable PATH
  63619. - PATH=$dllsearchpath:\$PATH
  63620. -"
  63621. - fi
  63622. + lib="$output_objdir/$realname"
  63623. + linknames=
  63624. + for link
  63625. + do
  63626. + linknames="$linknames $link"
  63627. + done
  63628. - $echo >> $output "\
  63629. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  63630. - # Run the actual program with our arguments.
  63631. -"
  63632. - case $host in
  63633. - # Backslashes separate directories on plain windows
  63634. - *-*-mingw | *-*-os2*)
  63635. - $echo >> $output "\
  63636. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  63637. -"
  63638. - ;;
  63639. + # Use standard objects if they are pic
  63640. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  63641. + test "X$libobjs" = "X " && libobjs=
  63642. - *)
  63643. - $echo >> $output "\
  63644. - exec \$progdir/\$program \${1+\"\$@\"}
  63645. -"
  63646. + delfiles=
  63647. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  63648. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  63649. + export_symbols="$output_objdir/$libname.uexp"
  63650. + delfiles="$delfiles $export_symbols"
  63651. + fi
  63652. +
  63653. + orig_export_symbols=
  63654. + case $host_os in
  63655. + cygwin* | mingw* | cegcc*)
  63656. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  63657. + # exporting using user supplied symfile
  63658. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  63659. + # and it's NOT already a .def file. Must figure out
  63660. + # which of the given symbols are data symbols and tag
  63661. + # them as such. So, trigger use of export_symbols_cmds.
  63662. + # export_symbols gets reassigned inside the "prepare
  63663. + # the list of exported symbols" if statement, so the
  63664. + # include_expsyms logic still works.
  63665. + orig_export_symbols="$export_symbols"
  63666. + export_symbols=
  63667. + always_export_symbols=yes
  63668. + fi
  63669. + fi
  63670. ;;
  63671. esac
  63672. - $echo >> $output "\
  63673. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  63674. - exit $EXIT_FAILURE
  63675. - fi
  63676. - else
  63677. - # The program doesn't exist.
  63678. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  63679. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  63680. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  63681. - exit $EXIT_FAILURE
  63682. - fi
  63683. -fi\
  63684. -"
  63685. - chmod +x $output
  63686. - fi
  63687. - exit $EXIT_SUCCESS
  63688. - ;;
  63689. - esac
  63690. -
  63691. - # See if we need to build an old-fashioned archive.
  63692. - for oldlib in $oldlibs; do
  63693. - if test "$build_libtool_libs" = convenience; then
  63694. - oldobjs="$libobjs_save"
  63695. - addlibs="$convenience"
  63696. - build_libtool_libs=no
  63697. - else
  63698. - if test "$build_libtool_libs" = module; then
  63699. - oldobjs="$libobjs_save"
  63700. - build_libtool_libs=no
  63701. - else
  63702. - oldobjs="$old_deplibs $non_pic_objects"
  63703. + # Prepare the list of exported symbols
  63704. + if test -z "$export_symbols"; then
  63705. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  63706. + func_verbose "generating symbol list for \`$libname.la'"
  63707. + export_symbols="$output_objdir/$libname.exp"
  63708. + $opt_dry_run || $RM $export_symbols
  63709. + cmds=$export_symbols_cmds
  63710. + save_ifs="$IFS"; IFS='~'
  63711. + for cmd in $cmds; do
  63712. + IFS="$save_ifs"
  63713. + eval cmd=\"$cmd\"
  63714. + func_len " $cmd"
  63715. + len=$func_len_result
  63716. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  63717. + func_show_eval "$cmd" 'exit $?'
  63718. + skipped_export=false
  63719. + else
  63720. + # The command line is too long to execute in one step.
  63721. + func_verbose "using reloadable object file for export list..."
  63722. + skipped_export=:
  63723. + # Break out early, otherwise skipped_export may be
  63724. + # set to false by a later but shorter cmd.
  63725. + break
  63726. + fi
  63727. + done
  63728. + IFS="$save_ifs"
  63729. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  63730. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  63731. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  63732. + fi
  63733. + fi
  63734. fi
  63735. - addlibs="$old_convenience"
  63736. - fi
  63737. - if test -n "$addlibs"; then
  63738. - gentop="$output_objdir/${outputname}x"
  63739. - generated="$generated $gentop"
  63740. -
  63741. - func_extract_archives $gentop $addlibs
  63742. - oldobjs="$oldobjs $func_extract_archives_result"
  63743. - fi
  63744. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  63745. + tmp_export_symbols="$export_symbols"
  63746. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  63747. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  63748. + fi
  63749. +
  63750. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  63751. + # The given exports_symbols file has to be filtered, so filter it.
  63752. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  63753. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  63754. + # 's' commands which not all seds can handle. GNU sed should be fine
  63755. + # though. Also, the filter scales superlinearly with the number of
  63756. + # global variables. join(1) would be nice here, but unfortunately
  63757. + # isn't a blessed tool.
  63758. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  63759. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  63760. + export_symbols=$output_objdir/$libname.def
  63761. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  63762. + fi
  63763. - # Do each command in the archive commands.
  63764. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  63765. - cmds=$old_archive_from_new_cmds
  63766. - else
  63767. - eval cmds=\"$old_archive_cmds\"
  63768. + tmp_deplibs=
  63769. + for test_deplib in $deplibs; do
  63770. + case " $convenience " in
  63771. + *" $test_deplib "*) ;;
  63772. + *)
  63773. + tmp_deplibs="$tmp_deplibs $test_deplib"
  63774. + ;;
  63775. + esac
  63776. + done
  63777. + deplibs="$tmp_deplibs"
  63778. - if len=`expr "X$cmds" : ".*"` &&
  63779. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  63780. - cmds=$old_archive_cmds
  63781. - else
  63782. - # the command line is too long to link in one step, link in parts
  63783. - $echo "using piecewise archive linking..."
  63784. - save_RANLIB=$RANLIB
  63785. - RANLIB=:
  63786. - objlist=
  63787. - concat_cmds=
  63788. - save_oldobjs=$oldobjs
  63789. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  63790. - # encoded into archives. This makes 'ar r' malfunction in
  63791. - # this piecewise linking case whenever conflicting object
  63792. - # names appear in distinct ar calls; check, warn and compensate.
  63793. - if (for obj in $save_oldobjs
  63794. - do
  63795. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  63796. - done | sort | sort -uc >/dev/null 2>&1); then
  63797. - :
  63798. - else
  63799. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  63800. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  63801. - AR_FLAGS=cq
  63802. + if test -n "$convenience"; then
  63803. + if test -n "$whole_archive_flag_spec" &&
  63804. + test "$compiler_needs_object" = yes &&
  63805. + test -z "$libobjs"; then
  63806. + # extract the archives, so we have objects to list.
  63807. + # TODO: could optimize this to just extract one archive.
  63808. + whole_archive_flag_spec=
  63809. fi
  63810. - # Is there a better way of finding the last object in the list?
  63811. - for obj in $save_oldobjs
  63812. - do
  63813. - last_oldobj=$obj
  63814. - done
  63815. - for obj in $save_oldobjs
  63816. - do
  63817. - oldobjs="$objlist $obj"
  63818. - objlist="$objlist $obj"
  63819. - eval test_cmds=\"$old_archive_cmds\"
  63820. - if len=`expr "X$test_cmds" : ".*"` &&
  63821. - test "$len" -le "$max_cmd_len"; then
  63822. - :
  63823. - else
  63824. - # the above command should be used before it gets too long
  63825. - oldobjs=$objlist
  63826. - if test "$obj" = "$last_oldobj" ; then
  63827. - RANLIB=$save_RANLIB
  63828. - fi
  63829. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  63830. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  63831. - objlist=
  63832. - fi
  63833. - done
  63834. - RANLIB=$save_RANLIB
  63835. - oldobjs=$objlist
  63836. - if test "X$oldobjs" = "X" ; then
  63837. - eval cmds=\"\$concat_cmds\"
  63838. + if test -n "$whole_archive_flag_spec"; then
  63839. + save_libobjs=$libobjs
  63840. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  63841. + test "X$libobjs" = "X " && libobjs=
  63842. else
  63843. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  63844. + gentop="$output_objdir/${outputname}x"
  63845. + generated="$generated $gentop"
  63846. +
  63847. + func_extract_archives $gentop $convenience
  63848. + libobjs="$libobjs $func_extract_archives_result"
  63849. + test "X$libobjs" = "X " && libobjs=
  63850. fi
  63851. fi
  63852. - fi
  63853. - save_ifs="$IFS"; IFS='~'
  63854. - for cmd in $cmds; do
  63855. - eval cmd=\"$cmd\"
  63856. - IFS="$save_ifs"
  63857. - $show "$cmd"
  63858. - $run eval "$cmd" || exit $?
  63859. - done
  63860. - IFS="$save_ifs"
  63861. - done
  63862. - if test -n "$generated"; then
  63863. - $show "${rm}r$generated"
  63864. - $run ${rm}r$generated
  63865. - fi
  63866. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  63867. + eval flag=\"$thread_safe_flag_spec\"
  63868. + linker_flags="$linker_flags $flag"
  63869. + fi
  63870. - # Now create the libtool archive.
  63871. - case $output in
  63872. - *.la)
  63873. - old_library=
  63874. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  63875. - $show "creating $output"
  63876. + # Make a backup of the uninstalled library when relinking
  63877. + if test "$mode" = relink; then
  63878. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  63879. + fi
  63880. - # Preserve any variables that may affect compiler behavior
  63881. - for var in $variables_saved_for_relink; do
  63882. - if eval test -z \"\${$var+set}\"; then
  63883. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  63884. - elif eval var_value=\$$var; test -z "$var_value"; then
  63885. - relink_command="$var=; export $var; $relink_command"
  63886. + # Do each of the archive commands.
  63887. + if test "$module" = yes && test -n "$module_cmds" ; then
  63888. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  63889. + eval test_cmds=\"$module_expsym_cmds\"
  63890. + cmds=$module_expsym_cmds
  63891. + else
  63892. + eval test_cmds=\"$module_cmds\"
  63893. + cmds=$module_cmds
  63894. + fi
  63895. else
  63896. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  63897. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  63898. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  63899. + eval test_cmds=\"$archive_expsym_cmds\"
  63900. + cmds=$archive_expsym_cmds
  63901. + else
  63902. + eval test_cmds=\"$archive_cmds\"
  63903. + cmds=$archive_cmds
  63904. + fi
  63905. fi
  63906. - done
  63907. - # Quote the link command for shipping.
  63908. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  63909. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  63910. - if test "$hardcode_automatic" = yes ; then
  63911. - relink_command=
  63912. - fi
  63913. + if test "X$skipped_export" != "X:" &&
  63914. + func_len " $test_cmds" &&
  63915. + len=$func_len_result &&
  63916. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  63917. + :
  63918. + else
  63919. + # The command line is too long to link in one step, link piecewise
  63920. + # or, if using GNU ld and skipped_export is not :, use a linker
  63921. + # script.
  63922. - # Only create the output if not a dry run.
  63923. - if test -z "$run"; then
  63924. - for installed in no yes; do
  63925. - if test "$installed" = yes; then
  63926. - if test -z "$install_libdir"; then
  63927. - break
  63928. + # Save the value of $output and $libobjs because we want to
  63929. + # use them later. If we have whole_archive_flag_spec, we
  63930. + # want to use save_libobjs as it was before
  63931. + # whole_archive_flag_spec was expanded, because we can't
  63932. + # assume the linker understands whole_archive_flag_spec.
  63933. + # This may have to be revisited, in case too many
  63934. + # convenience libraries get linked in and end up exceeding
  63935. + # the spec.
  63936. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  63937. + save_libobjs=$libobjs
  63938. + fi
  63939. + save_output=$output
  63940. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  63941. +
  63942. + # Clear the reloadable object creation command queue and
  63943. + # initialize k to one.
  63944. + test_cmds=
  63945. + concat_cmds=
  63946. + objlist=
  63947. + last_robj=
  63948. + k=1
  63949. +
  63950. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  63951. + output=${output_objdir}/${output_la}.lnkscript
  63952. + func_verbose "creating GNU ld script: $output"
  63953. + $ECHO 'INPUT (' > $output
  63954. + for obj in $save_libobjs
  63955. + do
  63956. + $ECHO "$obj" >> $output
  63957. + done
  63958. + $ECHO ')' >> $output
  63959. + delfiles="$delfiles $output"
  63960. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  63961. + output=${output_objdir}/${output_la}.lnk
  63962. + func_verbose "creating linker input file list: $output"
  63963. + : > $output
  63964. + set x $save_libobjs
  63965. + shift
  63966. + firstobj=
  63967. + if test "$compiler_needs_object" = yes; then
  63968. + firstobj="$1 "
  63969. + shift
  63970. fi
  63971. - output="$output_objdir/$outputname"i
  63972. - # Replace all uninstalled libtool libraries with the installed ones
  63973. - newdependency_libs=
  63974. - for deplib in $dependency_libs; do
  63975. - case $deplib in
  63976. - *.la)
  63977. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  63978. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  63979. - if test -z "$libdir"; then
  63980. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  63981. - exit $EXIT_FAILURE
  63982. - fi
  63983. - newdependency_libs="$newdependency_libs $libdir/$name"
  63984. - ;;
  63985. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  63986. - esac
  63987. + for obj
  63988. + do
  63989. + $ECHO "$obj" >> $output
  63990. done
  63991. - dependency_libs="$newdependency_libs"
  63992. - newdlfiles=
  63993. - for lib in $dlfiles; do
  63994. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  63995. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  63996. - if test -z "$libdir"; then
  63997. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  63998. - exit $EXIT_FAILURE
  63999. + delfiles="$delfiles $output"
  64000. + output=$firstobj\"$file_list_spec$output\"
  64001. + else
  64002. + if test -n "$save_libobjs"; then
  64003. + func_verbose "creating reloadable object files..."
  64004. + output=$output_objdir/$output_la-${k}.$objext
  64005. + eval test_cmds=\"$reload_cmds\"
  64006. + func_len " $test_cmds"
  64007. + len0=$func_len_result
  64008. + len=$len0
  64009. +
  64010. + # Loop over the list of objects to be linked.
  64011. + for obj in $save_libobjs
  64012. + do
  64013. + func_len " $obj"
  64014. + func_arith $len + $func_len_result
  64015. + len=$func_arith_result
  64016. + if test "X$objlist" = X ||
  64017. + test "$len" -lt "$max_cmd_len"; then
  64018. + func_append objlist " $obj"
  64019. + else
  64020. + # The command $test_cmds is almost too long, add a
  64021. + # command to the queue.
  64022. + if test "$k" -eq 1 ; then
  64023. + # The first file doesn't have a previous command to add.
  64024. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  64025. + else
  64026. + # All subsequent reloadable object files will link in
  64027. + # the last one created.
  64028. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  64029. + fi
  64030. + last_robj=$output_objdir/$output_la-${k}.$objext
  64031. + func_arith $k + 1
  64032. + k=$func_arith_result
  64033. + output=$output_objdir/$output_la-${k}.$objext
  64034. + objlist=$obj
  64035. + func_len " $last_robj"
  64036. + func_arith $len0 + $func_len_result
  64037. + len=$func_arith_result
  64038. + fi
  64039. + done
  64040. + # Handle the remaining objects by creating one last
  64041. + # reloadable object file. All subsequent reloadable object
  64042. + # files will link in the last one created.
  64043. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  64044. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  64045. + if test -n "$last_robj"; then
  64046. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  64047. fi
  64048. - newdlfiles="$newdlfiles $libdir/$name"
  64049. - done
  64050. - dlfiles="$newdlfiles"
  64051. - newdlprefiles=
  64052. - for lib in $dlprefiles; do
  64053. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  64054. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  64055. - if test -z "$libdir"; then
  64056. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  64057. - exit $EXIT_FAILURE
  64058. + delfiles="$delfiles $output"
  64059. +
  64060. + else
  64061. + output=
  64062. + fi
  64063. +
  64064. + if ${skipped_export-false}; then
  64065. + func_verbose "generating symbol list for \`$libname.la'"
  64066. + export_symbols="$output_objdir/$libname.exp"
  64067. + $opt_dry_run || $RM $export_symbols
  64068. + libobjs=$output
  64069. + # Append the command to create the export file.
  64070. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  64071. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  64072. + if test -n "$last_robj"; then
  64073. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  64074. fi
  64075. - newdlprefiles="$newdlprefiles $libdir/$name"
  64076. + fi
  64077. +
  64078. + test -n "$save_libobjs" &&
  64079. + func_verbose "creating a temporary reloadable object file: $output"
  64080. +
  64081. + # Loop through the commands generated above and execute them.
  64082. + save_ifs="$IFS"; IFS='~'
  64083. + for cmd in $concat_cmds; do
  64084. + IFS="$save_ifs"
  64085. + $opt_silent || {
  64086. + func_quote_for_expand "$cmd"
  64087. + eval "func_echo $func_quote_for_expand_result"
  64088. + }
  64089. + $opt_dry_run || eval "$cmd" || {
  64090. + lt_exit=$?
  64091. +
  64092. + # Restore the uninstalled library and exit
  64093. + if test "$mode" = relink; then
  64094. + ( cd "$output_objdir" && \
  64095. + $RM "${realname}T" && \
  64096. + $MV "${realname}U" "$realname" )
  64097. + fi
  64098. +
  64099. + exit $lt_exit
  64100. + }
  64101. done
  64102. - dlprefiles="$newdlprefiles"
  64103. + IFS="$save_ifs"
  64104. +
  64105. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  64106. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  64107. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  64108. + fi
  64109. + fi
  64110. +
  64111. + if ${skipped_export-false}; then
  64112. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  64113. + tmp_export_symbols="$export_symbols"
  64114. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  64115. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  64116. + fi
  64117. +
  64118. + if test -n "$orig_export_symbols"; then
  64119. + # The given exports_symbols file has to be filtered, so filter it.
  64120. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  64121. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  64122. + # 's' commands which not all seds can handle. GNU sed should be fine
  64123. + # though. Also, the filter scales superlinearly with the number of
  64124. + # global variables. join(1) would be nice here, but unfortunately
  64125. + # isn't a blessed tool.
  64126. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  64127. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  64128. + export_symbols=$output_objdir/$libname.def
  64129. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  64130. + fi
  64131. + fi
  64132. +
  64133. + libobjs=$output
  64134. + # Restore the value of output.
  64135. + output=$save_output
  64136. +
  64137. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  64138. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  64139. + test "X$libobjs" = "X " && libobjs=
  64140. + fi
  64141. + # Expand the library linking commands again to reset the
  64142. + # value of $libobjs for piecewise linking.
  64143. +
  64144. + # Do each of the archive commands.
  64145. + if test "$module" = yes && test -n "$module_cmds" ; then
  64146. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  64147. + cmds=$module_expsym_cmds
  64148. + else
  64149. + cmds=$module_cmds
  64150. + fi
  64151. else
  64152. - newdlfiles=
  64153. - for lib in $dlfiles; do
  64154. - case $lib in
  64155. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  64156. - *) abs=`pwd`"/$lib" ;;
  64157. - esac
  64158. - newdlfiles="$newdlfiles $abs"
  64159. - done
  64160. - dlfiles="$newdlfiles"
  64161. - newdlprefiles=
  64162. - for lib in $dlprefiles; do
  64163. - case $lib in
  64164. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  64165. - *) abs=`pwd`"/$lib" ;;
  64166. - esac
  64167. - newdlprefiles="$newdlprefiles $abs"
  64168. - done
  64169. - dlprefiles="$newdlprefiles"
  64170. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  64171. + cmds=$archive_expsym_cmds
  64172. + else
  64173. + cmds=$archive_cmds
  64174. + fi
  64175. fi
  64176. - $rm $output
  64177. - # place dlname in correct position for cygwin
  64178. - tdlname=$dlname
  64179. - case $host,$output,$installed,$module,$dlname in
  64180. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  64181. - esac
  64182. - $echo > $output "\
  64183. -# $outputname - a libtool library file
  64184. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  64185. -#
  64186. -# Please DO NOT delete this file!
  64187. -# It is necessary for linking the library.
  64188. + fi
  64189. -# The name that we can dlopen(3).
  64190. -dlname='$tdlname'
  64191. + if test -n "$delfiles"; then
  64192. + # Append the command to remove temporary files to $cmds.
  64193. + eval cmds=\"\$cmds~\$RM $delfiles\"
  64194. + fi
  64195. -# Names of this library.
  64196. -library_names='$library_names'
  64197. + # Add any objects from preloaded convenience libraries
  64198. + if test -n "$dlprefiles"; then
  64199. + gentop="$output_objdir/${outputname}x"
  64200. + generated="$generated $gentop"
  64201. -# The name of the static archive.
  64202. -old_library='$old_library'
  64203. + func_extract_archives $gentop $dlprefiles
  64204. + libobjs="$libobjs $func_extract_archives_result"
  64205. + test "X$libobjs" = "X " && libobjs=
  64206. + fi
  64207. -# Libraries that this one depends upon.
  64208. -dependency_libs='$dependency_libs'
  64209. + save_ifs="$IFS"; IFS='~'
  64210. + for cmd in $cmds; do
  64211. + IFS="$save_ifs"
  64212. + eval cmd=\"$cmd\"
  64213. + $opt_silent || {
  64214. + func_quote_for_expand "$cmd"
  64215. + eval "func_echo $func_quote_for_expand_result"
  64216. + }
  64217. + $opt_dry_run || eval "$cmd" || {
  64218. + lt_exit=$?
  64219. +
  64220. + # Restore the uninstalled library and exit
  64221. + if test "$mode" = relink; then
  64222. + ( cd "$output_objdir" && \
  64223. + $RM "${realname}T" && \
  64224. + $MV "${realname}U" "$realname" )
  64225. + fi
  64226. -# Version information for $libname.
  64227. -current=$current
  64228. -age=$age
  64229. -revision=$revision
  64230. + exit $lt_exit
  64231. + }
  64232. + done
  64233. + IFS="$save_ifs"
  64234. -# Is this an already installed library?
  64235. -installed=$installed
  64236. + # Restore the uninstalled library and exit
  64237. + if test "$mode" = relink; then
  64238. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  64239. -# Should we warn about portability when linking against -modules?
  64240. -shouldnotlink=$module
  64241. + if test -n "$convenience"; then
  64242. + if test -z "$whole_archive_flag_spec"; then
  64243. + func_show_eval '${RM}r "$gentop"'
  64244. + fi
  64245. + fi
  64246. -# Files to dlopen/dlpreopen
  64247. -dlopen='$dlfiles'
  64248. -dlpreopen='$dlprefiles'
  64249. + exit $EXIT_SUCCESS
  64250. + fi
  64251. -# Directory that this library needs to be installed in:
  64252. -libdir='$install_libdir'"
  64253. - if test "$installed" = no && test "$need_relink" = yes; then
  64254. - $echo >> $output "\
  64255. -relink_command=\"$relink_command\""
  64256. + # Create links to the real library.
  64257. + for linkname in $linknames; do
  64258. + if test "$realname" != "$linkname"; then
  64259. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  64260. fi
  64261. done
  64262. - fi
  64263. - # Do a symbolic link so that the libtool archive can be found in
  64264. - # LD_LIBRARY_PATH before the program is installed.
  64265. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  64266. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  64267. + # If -module or -export-dynamic was specified, set the dlname.
  64268. + if test "$module" = yes || test "$export_dynamic" = yes; then
  64269. + # On all known operating systems, these are identical.
  64270. + dlname="$soname"
  64271. + fi
  64272. + fi
  64273. ;;
  64274. - esac
  64275. - exit $EXIT_SUCCESS
  64276. - ;;
  64277. - # libtool install mode
  64278. - install)
  64279. - modename="$modename: install"
  64280. + obj)
  64281. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  64282. + func_warning "\`-dlopen' is ignored for objects"
  64283. + fi
  64284. - # There may be an optional sh(1) argument at the beginning of
  64285. - # install_prog (especially on Windows NT).
  64286. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  64287. - # Allow the use of GNU shtool's install command.
  64288. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  64289. - # Aesthetically quote it.
  64290. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  64291. - case $arg in
  64292. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  64293. - arg="\"$arg\""
  64294. - ;;
  64295. + case " $deplibs" in
  64296. + *\ -l* | *\ -L*)
  64297. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  64298. esac
  64299. - install_prog="$arg "
  64300. - arg="$1"
  64301. - shift
  64302. - else
  64303. - install_prog=
  64304. - arg="$nonopt"
  64305. - fi
  64306. - # The real first argument should be the name of the installation program.
  64307. - # Aesthetically quote it.
  64308. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  64309. - case $arg in
  64310. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  64311. - arg="\"$arg\""
  64312. - ;;
  64313. - esac
  64314. - install_prog="$install_prog$arg"
  64315. + test -n "$rpath" && \
  64316. + func_warning "\`-rpath' is ignored for objects"
  64317. - # We need to accept at least all the BSD install flags.
  64318. - dest=
  64319. - files=
  64320. - opts=
  64321. - prev=
  64322. - install_type=
  64323. - isdir=no
  64324. - stripme=
  64325. - for arg
  64326. - do
  64327. - if test -n "$dest"; then
  64328. - files="$files $dest"
  64329. - dest="$arg"
  64330. - continue
  64331. - fi
  64332. + test -n "$xrpath" && \
  64333. + func_warning "\`-R' is ignored for objects"
  64334. - case $arg in
  64335. - -d) isdir=yes ;;
  64336. - -f) prev="-f" ;;
  64337. - -g) prev="-g" ;;
  64338. - -m) prev="-m" ;;
  64339. - -o) prev="-o" ;;
  64340. - -s)
  64341. - stripme=" -s"
  64342. - continue
  64343. - ;;
  64344. - -*) ;;
  64345. + test -n "$vinfo" && \
  64346. + func_warning "\`-version-info' is ignored for objects"
  64347. +
  64348. + test -n "$release" && \
  64349. + func_warning "\`-release' is ignored for objects"
  64350. +
  64351. + case $output in
  64352. + *.lo)
  64353. + test -n "$objs$old_deplibs" && \
  64354. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  64355. + libobj=$output
  64356. + func_lo2o "$libobj"
  64357. + obj=$func_lo2o_result
  64358. + ;;
  64359. *)
  64360. - # If the previous option needed an argument, then skip it.
  64361. - if test -n "$prev"; then
  64362. - prev=
  64363. - else
  64364. - dest="$arg"
  64365. - continue
  64366. - fi
  64367. + libobj=
  64368. + obj="$output"
  64369. ;;
  64370. esac
  64371. - # Aesthetically quote the argument.
  64372. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  64373. - case $arg in
  64374. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  64375. - arg="\"$arg\""
  64376. - ;;
  64377. - esac
  64378. - install_prog="$install_prog $arg"
  64379. - done
  64380. + # Delete the old objects.
  64381. + $opt_dry_run || $RM $obj $libobj
  64382. - if test -z "$install_prog"; then
  64383. - $echo "$modename: you must specify an install program" 1>&2
  64384. - $echo "$help" 1>&2
  64385. - exit $EXIT_FAILURE
  64386. - fi
  64387. + # Objects from convenience libraries. This assumes
  64388. + # single-version convenience libraries. Whenever we create
  64389. + # different ones for PIC/non-PIC, this we'll have to duplicate
  64390. + # the extraction.
  64391. + reload_conv_objs=
  64392. + gentop=
  64393. + # reload_cmds runs $LD directly, so let us get rid of
  64394. + # -Wl from whole_archive_flag_spec and hope we can get by with
  64395. + # turning comma into space..
  64396. + wl=
  64397. - if test -n "$prev"; then
  64398. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  64399. - $echo "$help" 1>&2
  64400. - exit $EXIT_FAILURE
  64401. - fi
  64402. + if test -n "$convenience"; then
  64403. + if test -n "$whole_archive_flag_spec"; then
  64404. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  64405. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  64406. + else
  64407. + gentop="$output_objdir/${obj}x"
  64408. + generated="$generated $gentop"
  64409. - if test -z "$files"; then
  64410. - if test -z "$dest"; then
  64411. - $echo "$modename: no file or destination specified" 1>&2
  64412. - else
  64413. - $echo "$modename: you must specify a destination" 1>&2
  64414. + func_extract_archives $gentop $convenience
  64415. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  64416. + fi
  64417. fi
  64418. - $echo "$help" 1>&2
  64419. - exit $EXIT_FAILURE
  64420. - fi
  64421. - # Strip any trailing slash from the destination.
  64422. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  64423. + # Create the old-style object.
  64424. + 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
  64425. - # Check to see that the destination is a directory.
  64426. - test -d "$dest" && isdir=yes
  64427. - if test "$isdir" = yes; then
  64428. - destdir="$dest"
  64429. - destname=
  64430. - else
  64431. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  64432. - test "X$destdir" = "X$dest" && destdir=.
  64433. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  64434. + output="$obj"
  64435. + func_execute_cmds "$reload_cmds" 'exit $?'
  64436. - # Not a directory, so check to see that there is only one file specified.
  64437. - set dummy $files
  64438. - if test "$#" -gt 2; then
  64439. - $echo "$modename: \`$dest' is not a directory" 1>&2
  64440. - $echo "$help" 1>&2
  64441. - exit $EXIT_FAILURE
  64442. + # Exit if we aren't doing a library object file.
  64443. + if test -z "$libobj"; then
  64444. + if test -n "$gentop"; then
  64445. + func_show_eval '${RM}r "$gentop"'
  64446. + fi
  64447. +
  64448. + exit $EXIT_SUCCESS
  64449. fi
  64450. - fi
  64451. - case $destdir in
  64452. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  64453. - *)
  64454. - for file in $files; do
  64455. - case $file in
  64456. - *.lo) ;;
  64457. - *)
  64458. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  64459. - $echo "$help" 1>&2
  64460. - exit $EXIT_FAILURE
  64461. - ;;
  64462. - esac
  64463. - done
  64464. +
  64465. + if test "$build_libtool_libs" != yes; then
  64466. + if test -n "$gentop"; then
  64467. + func_show_eval '${RM}r "$gentop"'
  64468. + fi
  64469. +
  64470. + # Create an invalid libtool object if no PIC, so that we don't
  64471. + # accidentally link it into a program.
  64472. + # $show "echo timestamp > $libobj"
  64473. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  64474. + exit $EXIT_SUCCESS
  64475. + fi
  64476. +
  64477. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  64478. + # Only do commands if we really have different PIC objects.
  64479. + reload_objs="$libobjs $reload_conv_objs"
  64480. + output="$libobj"
  64481. + func_execute_cmds "$reload_cmds" 'exit $?'
  64482. + fi
  64483. +
  64484. + if test -n "$gentop"; then
  64485. + func_show_eval '${RM}r "$gentop"'
  64486. + fi
  64487. +
  64488. + exit $EXIT_SUCCESS
  64489. ;;
  64490. - esac
  64491. - # This variable tells wrapper scripts just to set variables rather
  64492. - # than running their programs.
  64493. - libtool_install_magic="$magic"
  64494. + prog)
  64495. + case $host in
  64496. + *cygwin*) func_stripname '' '.exe' "$output"
  64497. + output=$func_stripname_result.exe;;
  64498. + esac
  64499. + test -n "$vinfo" && \
  64500. + func_warning "\`-version-info' is ignored for programs"
  64501. - staticlibs=
  64502. - future_libdirs=
  64503. - current_libdirs=
  64504. - for file in $files; do
  64505. + test -n "$release" && \
  64506. + func_warning "\`-release' is ignored for programs"
  64507. - # Do each installation.
  64508. - case $file in
  64509. - *.$libext)
  64510. - # Do the static libraries later.
  64511. - staticlibs="$staticlibs $file"
  64512. + test "$preload" = yes \
  64513. + && test "$dlopen_support" = unknown \
  64514. + && test "$dlopen_self" = unknown \
  64515. + && test "$dlopen_self_static" = unknown && \
  64516. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  64517. +
  64518. + case $host in
  64519. + *-*-rhapsody* | *-*-darwin1.[012])
  64520. + # On Rhapsody replace the C library is the System framework
  64521. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  64522. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  64523. ;;
  64524. + esac
  64525. - *.la)
  64526. - # Check to see that this really is a libtool archive.
  64527. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  64528. - else
  64529. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  64530. - $echo "$help" 1>&2
  64531. - exit $EXIT_FAILURE
  64532. + case $host in
  64533. + *-*-darwin*)
  64534. + # Don't allow lazy linking, it breaks C++ global constructors
  64535. + # But is supposedly fixed on 10.4 or later (yay!).
  64536. + if test "$tagname" = CXX ; then
  64537. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  64538. + 10.[0123])
  64539. + compile_command="$compile_command ${wl}-bind_at_load"
  64540. + finalize_command="$finalize_command ${wl}-bind_at_load"
  64541. + ;;
  64542. + esac
  64543. fi
  64544. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  64545. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  64546. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  64547. + ;;
  64548. + esac
  64549. - library_names=
  64550. - old_library=
  64551. - relink_command=
  64552. - # If there is no directory component, then add one.
  64553. - case $file in
  64554. - */* | *\\*) . $file ;;
  64555. - *) . ./$file ;;
  64556. +
  64557. + # move library search paths that coincide with paths to not yet
  64558. + # installed libraries to the beginning of the library search list
  64559. + new_libs=
  64560. + for path in $notinst_path; do
  64561. + case " $new_libs " in
  64562. + *" -L$path/$objdir "*) ;;
  64563. + *)
  64564. + case " $compile_deplibs " in
  64565. + *" -L$path/$objdir "*)
  64566. + new_libs="$new_libs -L$path/$objdir" ;;
  64567. + esac
  64568. + ;;
  64569. + esac
  64570. + done
  64571. + for deplib in $compile_deplibs; do
  64572. + case $deplib in
  64573. + -L*)
  64574. + case " $new_libs " in
  64575. + *" $deplib "*) ;;
  64576. + *) new_libs="$new_libs $deplib" ;;
  64577. + esac
  64578. + ;;
  64579. + *) new_libs="$new_libs $deplib" ;;
  64580. esac
  64581. + done
  64582. + compile_deplibs="$new_libs"
  64583. - # Add the libdir to current_libdirs if it is the destination.
  64584. - if test "X$destdir" = "X$libdir"; then
  64585. - case "$current_libdirs " in
  64586. +
  64587. + compile_command="$compile_command $compile_deplibs"
  64588. + finalize_command="$finalize_command $finalize_deplibs"
  64589. +
  64590. + if test -n "$rpath$xrpath"; then
  64591. + # If the user specified any rpath flags, then add them.
  64592. + for libdir in $rpath $xrpath; do
  64593. + # This is the magic to use -rpath.
  64594. + case "$finalize_rpath " in
  64595. *" $libdir "*) ;;
  64596. - *) current_libdirs="$current_libdirs $libdir" ;;
  64597. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  64598. esac
  64599. - else
  64600. - # Note the libdir as a future libdir.
  64601. - case "$future_libdirs " in
  64602. + done
  64603. + fi
  64604. +
  64605. + # Now hardcode the library paths
  64606. + rpath=
  64607. + hardcode_libdirs=
  64608. + for libdir in $compile_rpath $finalize_rpath; do
  64609. + if test -n "$hardcode_libdir_flag_spec"; then
  64610. + if test -n "$hardcode_libdir_separator"; then
  64611. + if test -z "$hardcode_libdirs"; then
  64612. + hardcode_libdirs="$libdir"
  64613. + else
  64614. + # Just accumulate the unique libdirs.
  64615. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  64616. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  64617. + ;;
  64618. + *)
  64619. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  64620. + ;;
  64621. + esac
  64622. + fi
  64623. + else
  64624. + eval flag=\"$hardcode_libdir_flag_spec\"
  64625. + rpath="$rpath $flag"
  64626. + fi
  64627. + elif test -n "$runpath_var"; then
  64628. + case "$perm_rpath " in
  64629. *" $libdir "*) ;;
  64630. - *) future_libdirs="$future_libdirs $libdir" ;;
  64631. + *) perm_rpath="$perm_rpath $libdir" ;;
  64632. esac
  64633. fi
  64634. + case $host in
  64635. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  64636. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  64637. + case :$dllsearchpath: in
  64638. + *":$libdir:"*) ;;
  64639. + ::) dllsearchpath=$libdir;;
  64640. + *) dllsearchpath="$dllsearchpath:$libdir";;
  64641. + esac
  64642. + case :$dllsearchpath: in
  64643. + *":$testbindir:"*) ;;
  64644. + ::) dllsearchpath=$testbindir;;
  64645. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  64646. + esac
  64647. + ;;
  64648. + esac
  64649. + done
  64650. + # Substitute the hardcoded libdirs into the rpath.
  64651. + if test -n "$hardcode_libdir_separator" &&
  64652. + test -n "$hardcode_libdirs"; then
  64653. + libdir="$hardcode_libdirs"
  64654. + eval rpath=\" $hardcode_libdir_flag_spec\"
  64655. + fi
  64656. + compile_rpath="$rpath"
  64657. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  64658. - test "X$dir" = "X$file/" && dir=
  64659. - dir="$dir$objdir"
  64660. -
  64661. - if test -n "$relink_command"; then
  64662. - # Determine the prefix the user has applied to our future dir.
  64663. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  64664. -
  64665. - # Don't allow the user to place us outside of our expected
  64666. - # location b/c this prevents finding dependent libraries that
  64667. - # are installed to the same prefix.
  64668. - # At present, this check doesn't affect windows .dll's that
  64669. - # are installed into $libdir/../bin (currently, that works fine)
  64670. - # but it's something to keep an eye on.
  64671. - if test "$inst_prefix_dir" = "$destdir"; then
  64672. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  64673. - exit $EXIT_FAILURE
  64674. - fi
  64675. -
  64676. - if test -n "$inst_prefix_dir"; then
  64677. - # Stick the inst_prefix_dir data into the link command.
  64678. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  64679. - else
  64680. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  64681. - fi
  64682. -
  64683. - $echo "$modename: warning: relinking \`$file'" 1>&2
  64684. - $show "$relink_command"
  64685. - if $run eval "$relink_command"; then :
  64686. + rpath=
  64687. + hardcode_libdirs=
  64688. + for libdir in $finalize_rpath; do
  64689. + if test -n "$hardcode_libdir_flag_spec"; then
  64690. + if test -n "$hardcode_libdir_separator"; then
  64691. + if test -z "$hardcode_libdirs"; then
  64692. + hardcode_libdirs="$libdir"
  64693. + else
  64694. + # Just accumulate the unique libdirs.
  64695. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  64696. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  64697. + ;;
  64698. + *)
  64699. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  64700. + ;;
  64701. + esac
  64702. + fi
  64703. else
  64704. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  64705. - exit $EXIT_FAILURE
  64706. + eval flag=\"$hardcode_libdir_flag_spec\"
  64707. + rpath="$rpath $flag"
  64708. fi
  64709. + elif test -n "$runpath_var"; then
  64710. + case "$finalize_perm_rpath " in
  64711. + *" $libdir "*) ;;
  64712. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  64713. + esac
  64714. fi
  64715. + done
  64716. + # Substitute the hardcoded libdirs into the rpath.
  64717. + if test -n "$hardcode_libdir_separator" &&
  64718. + test -n "$hardcode_libdirs"; then
  64719. + libdir="$hardcode_libdirs"
  64720. + eval rpath=\" $hardcode_libdir_flag_spec\"
  64721. + fi
  64722. + finalize_rpath="$rpath"
  64723. - # See the names of the shared library.
  64724. - set dummy $library_names
  64725. - if test -n "$2"; then
  64726. - realname="$2"
  64727. - shift
  64728. - shift
  64729. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  64730. + # Transform all the library objects into standard objects.
  64731. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  64732. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  64733. + fi
  64734. - srcname="$realname"
  64735. - test -n "$relink_command" && srcname="$realname"T
  64736. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  64737. - # Install the shared library and build the symlinks.
  64738. - $show "$install_prog $dir/$srcname $destdir/$realname"
  64739. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  64740. - if test -n "$stripme" && test -n "$striplib"; then
  64741. - $show "$striplib $destdir/$realname"
  64742. - $run eval "$striplib $destdir/$realname" || exit $?
  64743. - fi
  64744. + # template prelinking step
  64745. + if test -n "$prelink_cmds"; then
  64746. + func_execute_cmds "$prelink_cmds" 'exit $?'
  64747. + fi
  64748. - if test "$#" -gt 0; then
  64749. - # Delete the old symlinks, and create new ones.
  64750. - for linkname
  64751. - do
  64752. - if test "$linkname" != "$realname"; then
  64753. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  64754. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  64755. - fi
  64756. - done
  64757. - fi
  64758. + wrappers_required=yes
  64759. + case $host in
  64760. + *cygwin* | *mingw* )
  64761. + if test "$build_libtool_libs" != yes; then
  64762. + wrappers_required=no
  64763. + fi
  64764. + ;;
  64765. + *cegcc)
  64766. + # Disable wrappers for cegcc, we are cross compiling anyway.
  64767. + wrappers_required=no
  64768. + ;;
  64769. + *)
  64770. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  64771. + wrappers_required=no
  64772. + fi
  64773. + ;;
  64774. + esac
  64775. + if test "$wrappers_required" = no; then
  64776. + # Replace the output file specification.
  64777. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  64778. + link_command="$compile_command$compile_rpath"
  64779. - # Do each command in the postinstall commands.
  64780. - lib="$destdir/$realname"
  64781. - cmds=$postinstall_cmds
  64782. - save_ifs="$IFS"; IFS='~'
  64783. - for cmd in $cmds; do
  64784. - IFS="$save_ifs"
  64785. - eval cmd=\"$cmd\"
  64786. - $show "$cmd"
  64787. - $run eval "$cmd" || exit $?
  64788. - done
  64789. - IFS="$save_ifs"
  64790. - fi
  64791. + # We have no uninstalled library dependencies, so finalize right now.
  64792. + exit_status=0
  64793. + func_show_eval "$link_command" 'exit_status=$?'
  64794. - # Install the pseudo-library for information purposes.
  64795. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  64796. - instname="$dir/$name"i
  64797. - $show "$install_prog $instname $destdir/$name"
  64798. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  64799. + # Delete the generated files.
  64800. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  64801. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  64802. + fi
  64803. - # Maybe install the static library, too.
  64804. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  64805. - ;;
  64806. + exit $exit_status
  64807. + fi
  64808. - *.lo)
  64809. - # Install (i.e. copy) a libtool object.
  64810. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  64811. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  64812. + fi
  64813. + if test -n "$finalize_shlibpath"; then
  64814. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  64815. + fi
  64816. - # Figure out destination file name, if it wasn't already specified.
  64817. - if test -n "$destname"; then
  64818. - destfile="$destdir/$destname"
  64819. - else
  64820. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  64821. - destfile="$destdir/$destfile"
  64822. + compile_var=
  64823. + finalize_var=
  64824. + if test -n "$runpath_var"; then
  64825. + if test -n "$perm_rpath"; then
  64826. + # We should set the runpath_var.
  64827. + rpath=
  64828. + for dir in $perm_rpath; do
  64829. + rpath="$rpath$dir:"
  64830. + done
  64831. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  64832. fi
  64833. -
  64834. - # Deduce the name of the destination old-style object file.
  64835. - case $destfile in
  64836. - *.lo)
  64837. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  64838. - ;;
  64839. - *.$objext)
  64840. - staticdest="$destfile"
  64841. - destfile=
  64842. - ;;
  64843. - *)
  64844. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  64845. - $echo "$help" 1>&2
  64846. - exit $EXIT_FAILURE
  64847. - ;;
  64848. - esac
  64849. -
  64850. - # Install the libtool object if requested.
  64851. - if test -n "$destfile"; then
  64852. - $show "$install_prog $file $destfile"
  64853. - $run eval "$install_prog $file $destfile" || exit $?
  64854. + if test -n "$finalize_perm_rpath"; then
  64855. + # We should set the runpath_var.
  64856. + rpath=
  64857. + for dir in $finalize_perm_rpath; do
  64858. + rpath="$rpath$dir:"
  64859. + done
  64860. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  64861. fi
  64862. + fi
  64863. - # Install the old object if enabled.
  64864. - if test "$build_old_libs" = yes; then
  64865. - # Deduce the name of the old-style object file.
  64866. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  64867. -
  64868. - $show "$install_prog $staticobj $staticdest"
  64869. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  64870. - fi
  64871. + if test "$no_install" = yes; then
  64872. + # We don't need to create a wrapper script.
  64873. + link_command="$compile_var$compile_command$compile_rpath"
  64874. + # Replace the output file specification.
  64875. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  64876. + # Delete the old output file.
  64877. + $opt_dry_run || $RM $output
  64878. + # Link the executable and exit
  64879. + func_show_eval "$link_command" 'exit $?'
  64880. exit $EXIT_SUCCESS
  64881. - ;;
  64882. + fi
  64883. - *)
  64884. - # Figure out destination file name, if it wasn't already specified.
  64885. - if test -n "$destname"; then
  64886. - destfile="$destdir/$destname"
  64887. + if test "$hardcode_action" = relink; then
  64888. + # Fast installation is not supported
  64889. + link_command="$compile_var$compile_command$compile_rpath"
  64890. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  64891. +
  64892. + func_warning "this platform does not like uninstalled shared libraries"
  64893. + func_warning "\`$output' will be relinked during installation"
  64894. + else
  64895. + if test "$fast_install" != no; then
  64896. + link_command="$finalize_var$compile_command$finalize_rpath"
  64897. + if test "$fast_install" = yes; then
  64898. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  64899. + else
  64900. + # fast_install is set to needless
  64901. + relink_command=
  64902. + fi
  64903. else
  64904. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  64905. - destfile="$destdir/$destfile"
  64906. + link_command="$compile_var$compile_command$compile_rpath"
  64907. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  64908. fi
  64909. + fi
  64910. - # If the file is missing, and there is a .exe on the end, strip it
  64911. - # because it is most likely a libtool script we actually want to
  64912. - # install
  64913. - stripped_ext=""
  64914. - case $file in
  64915. - *.exe)
  64916. - if test ! -f "$file"; then
  64917. - file=`$echo $file|${SED} 's,.exe$,,'`
  64918. - stripped_ext=".exe"
  64919. - fi
  64920. - ;;
  64921. - esac
  64922. -
  64923. - # Do a test to see if this is really a libtool program.
  64924. - case $host in
  64925. - *cygwin*|*mingw*)
  64926. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  64927. - ;;
  64928. - *)
  64929. - wrapper=$file
  64930. - ;;
  64931. - esac
  64932. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  64933. - notinst_deplibs=
  64934. - relink_command=
  64935. + # Replace the output file specification.
  64936. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  64937. - # To insure that "foo" is sourced, and not "foo.exe",
  64938. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  64939. - # which disallows the automatic-append-.exe behavior.
  64940. - case $build in
  64941. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  64942. - *) wrapperdot=${wrapper} ;;
  64943. - esac
  64944. - # If there is no directory component, then add one.
  64945. - case $file in
  64946. - */* | *\\*) . ${wrapperdot} ;;
  64947. - *) . ./${wrapperdot} ;;
  64948. - esac
  64949. + # Delete the old output files.
  64950. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  64951. - # Check the variables that should have been set.
  64952. - if test -z "$notinst_deplibs"; then
  64953. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  64954. - exit $EXIT_FAILURE
  64955. - fi
  64956. + func_show_eval "$link_command" 'exit $?'
  64957. - finalize=yes
  64958. - for lib in $notinst_deplibs; do
  64959. - # Check to see that each library is installed.
  64960. - libdir=
  64961. - if test -f "$lib"; then
  64962. - # If there is no directory component, then add one.
  64963. - case $lib in
  64964. - */* | *\\*) . $lib ;;
  64965. - *) . ./$lib ;;
  64966. - esac
  64967. - fi
  64968. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  64969. - if test -n "$libdir" && test ! -f "$libfile"; then
  64970. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  64971. - finalize=no
  64972. - fi
  64973. - done
  64974. + # Now create the wrapper script.
  64975. + func_verbose "creating $output"
  64976. - relink_command=
  64977. - # To insure that "foo" is sourced, and not "foo.exe",
  64978. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  64979. - # which disallows the automatic-append-.exe behavior.
  64980. - case $build in
  64981. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  64982. - *) wrapperdot=${wrapper} ;;
  64983. - esac
  64984. - # If there is no directory component, then add one.
  64985. - case $file in
  64986. - */* | *\\*) . ${wrapperdot} ;;
  64987. - *) . ./${wrapperdot} ;;
  64988. - esac
  64989. + # Quote the relink command for shipping.
  64990. + if test -n "$relink_command"; then
  64991. + # Preserve any variables that may affect compiler behavior
  64992. + for var in $variables_saved_for_relink; do
  64993. + if eval test -z \"\${$var+set}\"; then
  64994. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  64995. + elif eval var_value=\$$var; test -z "$var_value"; then
  64996. + relink_command="$var=; export $var; $relink_command"
  64997. + else
  64998. + func_quote_for_eval "$var_value"
  64999. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  65000. + fi
  65001. + done
  65002. + relink_command="(cd `pwd`; $relink_command)"
  65003. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  65004. + fi
  65005. - outputname=
  65006. - if test "$fast_install" = no && test -n "$relink_command"; then
  65007. - if test "$finalize" = yes && test -z "$run"; then
  65008. - tmpdir="/tmp"
  65009. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  65010. - tmpdir="$tmpdir/libtool-$$"
  65011. - save_umask=`umask`
  65012. - umask 0077
  65013. - if $mkdir "$tmpdir"; then
  65014. - umask $save_umask
  65015. - else
  65016. - umask $save_umask
  65017. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  65018. - continue
  65019. - fi
  65020. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  65021. - outputname="$tmpdir/$file"
  65022. - # Replace the output file specification.
  65023. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  65024. + # Quote $ECHO for shipping.
  65025. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  65026. + case $progpath in
  65027. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  65028. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  65029. + esac
  65030. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  65031. + else
  65032. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  65033. + fi
  65034. - $show "$relink_command"
  65035. - if $run eval "$relink_command"; then :
  65036. + # Only actually do things if not in dry run mode.
  65037. + $opt_dry_run || {
  65038. + # win32 will think the script is a binary if it has
  65039. + # a .exe suffix, so we strip it off here.
  65040. + case $output in
  65041. + *.exe) func_stripname '' '.exe' "$output"
  65042. + output=$func_stripname_result ;;
  65043. + esac
  65044. + # test for cygwin because mv fails w/o .exe extensions
  65045. + case $host in
  65046. + *cygwin*)
  65047. + exeext=.exe
  65048. + func_stripname '' '.exe' "$outputname"
  65049. + outputname=$func_stripname_result ;;
  65050. + *) exeext= ;;
  65051. + esac
  65052. + case $host in
  65053. + *cygwin* | *mingw* )
  65054. + func_dirname_and_basename "$output" "" "."
  65055. + output_name=$func_basename_result
  65056. + output_path=$func_dirname_result
  65057. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  65058. + cwrapper="$output_path/$output_name.exe"
  65059. + $RM $cwrappersource $cwrapper
  65060. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  65061. +
  65062. + func_emit_cwrapperexe_src > $cwrappersource
  65063. +
  65064. + # The wrapper executable is built using the $host compiler,
  65065. + # because it contains $host paths and files. If cross-
  65066. + # compiling, it, like the target executable, must be
  65067. + # executed on the $host or under an emulation environment.
  65068. + $opt_dry_run || {
  65069. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  65070. + $STRIP $cwrapper
  65071. + }
  65072. +
  65073. + # Now, create the wrapper script for func_source use:
  65074. + func_ltwrapper_scriptname $cwrapper
  65075. + $RM $func_ltwrapper_scriptname_result
  65076. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  65077. + $opt_dry_run || {
  65078. + # note: this script will not be executed, so do not chmod.
  65079. + if test "x$build" = "x$host" ; then
  65080. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  65081. else
  65082. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  65083. - ${rm}r "$tmpdir"
  65084. - continue
  65085. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  65086. fi
  65087. - file="$outputname"
  65088. - else
  65089. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  65090. - fi
  65091. - else
  65092. - # Install the binary that we compiled earlier.
  65093. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  65094. - fi
  65095. - fi
  65096. + }
  65097. + ;;
  65098. + * )
  65099. + $RM $output
  65100. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  65101. - # remove .exe since cygwin /usr/bin/install will append another
  65102. - # one anyways
  65103. - case $install_prog,$host in
  65104. - */usr/bin/install*,*cygwin*)
  65105. - case $file:$destfile in
  65106. - *.exe:*.exe)
  65107. - # this is ok
  65108. - ;;
  65109. - *.exe:*)
  65110. - destfile=$destfile.exe
  65111. - ;;
  65112. - *:*.exe)
  65113. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  65114. - ;;
  65115. - esac
  65116. + func_emit_wrapper no > $output
  65117. + chmod +x $output
  65118. ;;
  65119. esac
  65120. - $show "$install_prog$stripme $file $destfile"
  65121. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  65122. - test -n "$outputname" && ${rm}r "$tmpdir"
  65123. - ;;
  65124. - esac
  65125. - done
  65126. -
  65127. - for file in $staticlibs; do
  65128. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  65129. -
  65130. - # Set up the ranlib parameters.
  65131. - oldlib="$destdir/$name"
  65132. + }
  65133. + exit $EXIT_SUCCESS
  65134. + ;;
  65135. + esac
  65136. - $show "$install_prog $file $oldlib"
  65137. - $run eval "$install_prog \$file \$oldlib" || exit $?
  65138. + # See if we need to build an old-fashioned archive.
  65139. + for oldlib in $oldlibs; do
  65140. - if test -n "$stripme" && test -n "$old_striplib"; then
  65141. - $show "$old_striplib $oldlib"
  65142. - $run eval "$old_striplib $oldlib" || exit $?
  65143. + if test "$build_libtool_libs" = convenience; then
  65144. + oldobjs="$libobjs_save $symfileobj"
  65145. + addlibs="$convenience"
  65146. + build_libtool_libs=no
  65147. + else
  65148. + if test "$build_libtool_libs" = module; then
  65149. + oldobjs="$libobjs_save"
  65150. + build_libtool_libs=no
  65151. + else
  65152. + oldobjs="$old_deplibs $non_pic_objects"
  65153. + if test "$preload" = yes && test -f "$symfileobj"; then
  65154. + oldobjs="$oldobjs $symfileobj"
  65155. + fi
  65156. + fi
  65157. + addlibs="$old_convenience"
  65158. fi
  65159. - # Do each command in the postinstall commands.
  65160. - cmds=$old_postinstall_cmds
  65161. - save_ifs="$IFS"; IFS='~'
  65162. - for cmd in $cmds; do
  65163. - IFS="$save_ifs"
  65164. - eval cmd=\"$cmd\"
  65165. - $show "$cmd"
  65166. - $run eval "$cmd" || exit $?
  65167. - done
  65168. - IFS="$save_ifs"
  65169. - done
  65170. + if test -n "$addlibs"; then
  65171. + gentop="$output_objdir/${outputname}x"
  65172. + generated="$generated $gentop"
  65173. - if test -n "$future_libdirs"; then
  65174. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  65175. - fi
  65176. + func_extract_archives $gentop $addlibs
  65177. + oldobjs="$oldobjs $func_extract_archives_result"
  65178. + fi
  65179. - if test -n "$current_libdirs"; then
  65180. - # Maybe just do a dry run.
  65181. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  65182. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  65183. - else
  65184. - exit $EXIT_SUCCESS
  65185. - fi
  65186. - ;;
  65187. + # Do each command in the archive commands.
  65188. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  65189. + cmds=$old_archive_from_new_cmds
  65190. + else
  65191. - # libtool finish mode
  65192. - finish)
  65193. - modename="$modename: finish"
  65194. - libdirs="$nonopt"
  65195. - admincmds=
  65196. + # Add any objects from preloaded convenience libraries
  65197. + if test -n "$dlprefiles"; then
  65198. + gentop="$output_objdir/${outputname}x"
  65199. + generated="$generated $gentop"
  65200. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  65201. - for dir
  65202. - do
  65203. - libdirs="$libdirs $dir"
  65204. - done
  65205. + func_extract_archives $gentop $dlprefiles
  65206. + oldobjs="$oldobjs $func_extract_archives_result"
  65207. + fi
  65208. - for libdir in $libdirs; do
  65209. - if test -n "$finish_cmds"; then
  65210. - # Do each command in the finish commands.
  65211. - cmds=$finish_cmds
  65212. - save_ifs="$IFS"; IFS='~'
  65213. - for cmd in $cmds; do
  65214. - IFS="$save_ifs"
  65215. - eval cmd=\"$cmd\"
  65216. - $show "$cmd"
  65217. - $run eval "$cmd" || admincmds="$admincmds
  65218. - $cmd"
  65219. + # POSIX demands no paths to be encoded in archives. We have
  65220. + # to avoid creating archives with duplicate basenames if we
  65221. + # might have to extract them afterwards, e.g., when creating a
  65222. + # static archive out of a convenience library, or when linking
  65223. + # the entirety of a libtool archive into another (currently
  65224. + # not supported by libtool).
  65225. + if (for obj in $oldobjs
  65226. + do
  65227. + func_basename "$obj"
  65228. + $ECHO "$func_basename_result"
  65229. + done | sort | sort -uc >/dev/null 2>&1); then
  65230. + :
  65231. + else
  65232. + $ECHO "copying selected object files to avoid basename conflicts..."
  65233. + gentop="$output_objdir/${outputname}x"
  65234. + generated="$generated $gentop"
  65235. + func_mkdir_p "$gentop"
  65236. + save_oldobjs=$oldobjs
  65237. + oldobjs=
  65238. + counter=1
  65239. + for obj in $save_oldobjs
  65240. + do
  65241. + func_basename "$obj"
  65242. + objbase="$func_basename_result"
  65243. + case " $oldobjs " in
  65244. + " ") oldobjs=$obj ;;
  65245. + *[\ /]"$objbase "*)
  65246. + while :; do
  65247. + # Make sure we don't pick an alternate name that also
  65248. + # overlaps.
  65249. + newobj=lt$counter-$objbase
  65250. + func_arith $counter + 1
  65251. + counter=$func_arith_result
  65252. + case " $oldobjs " in
  65253. + *[\ /]"$newobj "*) ;;
  65254. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  65255. + esac
  65256. + done
  65257. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  65258. + oldobjs="$oldobjs $gentop/$newobj"
  65259. + ;;
  65260. + *) oldobjs="$oldobjs $obj" ;;
  65261. + esac
  65262. done
  65263. - IFS="$save_ifs"
  65264. - fi
  65265. - if test -n "$finish_eval"; then
  65266. - # Do the single finish_eval.
  65267. - eval cmds=\"$finish_eval\"
  65268. - $run eval "$cmds" || admincmds="$admincmds
  65269. - $cmds"
  65270. fi
  65271. - done
  65272. - fi
  65273. -
  65274. - # Exit here if they wanted silent mode.
  65275. - test "$show" = : && exit $EXIT_SUCCESS
  65276. + eval cmds=\"$old_archive_cmds\"
  65277. - $echo "----------------------------------------------------------------------"
  65278. - $echo "Libraries have been installed in:"
  65279. - for libdir in $libdirs; do
  65280. - $echo " $libdir"
  65281. + func_len " $cmds"
  65282. + len=$func_len_result
  65283. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  65284. + cmds=$old_archive_cmds
  65285. + else
  65286. + # the command line is too long to link in one step, link in parts
  65287. + func_verbose "using piecewise archive linking..."
  65288. + save_RANLIB=$RANLIB
  65289. + RANLIB=:
  65290. + objlist=
  65291. + concat_cmds=
  65292. + save_oldobjs=$oldobjs
  65293. + oldobjs=
  65294. + # Is there a better way of finding the last object in the list?
  65295. + for obj in $save_oldobjs
  65296. + do
  65297. + last_oldobj=$obj
  65298. + done
  65299. + eval test_cmds=\"$old_archive_cmds\"
  65300. + func_len " $test_cmds"
  65301. + len0=$func_len_result
  65302. + len=$len0
  65303. + for obj in $save_oldobjs
  65304. + do
  65305. + func_len " $obj"
  65306. + func_arith $len + $func_len_result
  65307. + len=$func_arith_result
  65308. + func_append objlist " $obj"
  65309. + if test "$len" -lt "$max_cmd_len"; then
  65310. + :
  65311. + else
  65312. + # the above command should be used before it gets too long
  65313. + oldobjs=$objlist
  65314. + if test "$obj" = "$last_oldobj" ; then
  65315. + RANLIB=$save_RANLIB
  65316. + fi
  65317. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  65318. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  65319. + objlist=
  65320. + len=$len0
  65321. + fi
  65322. + done
  65323. + RANLIB=$save_RANLIB
  65324. + oldobjs=$objlist
  65325. + if test "X$oldobjs" = "X" ; then
  65326. + eval cmds=\"\$concat_cmds\"
  65327. + else
  65328. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  65329. + fi
  65330. + fi
  65331. + fi
  65332. + func_execute_cmds "$cmds" 'exit $?'
  65333. done
  65334. - $echo
  65335. - $echo "If you ever happen to want to link against installed libraries"
  65336. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  65337. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  65338. - $echo "flag during linking and do at least one of the following:"
  65339. - if test -n "$shlibpath_var"; then
  65340. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  65341. - $echo " during execution"
  65342. - fi
  65343. - if test -n "$runpath_var"; then
  65344. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  65345. - $echo " during linking"
  65346. - fi
  65347. - if test -n "$hardcode_libdir_flag_spec"; then
  65348. - libdir=LIBDIR
  65349. - eval flag=\"$hardcode_libdir_flag_spec\"
  65350. -
  65351. - $echo " - use the \`$flag' linker flag"
  65352. - fi
  65353. - if test -n "$admincmds"; then
  65354. - $echo " - have your system administrator run these commands:$admincmds"
  65355. - fi
  65356. - if test -f /etc/ld.so.conf; then
  65357. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  65358. - fi
  65359. - $echo
  65360. - $echo "See any operating system documentation about shared libraries for"
  65361. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  65362. - $echo "----------------------------------------------------------------------"
  65363. - exit $EXIT_SUCCESS
  65364. - ;;
  65365. - # libtool execute mode
  65366. - execute)
  65367. - modename="$modename: execute"
  65368. -
  65369. - # The first argument is the command name.
  65370. - cmd="$nonopt"
  65371. - if test -z "$cmd"; then
  65372. - $echo "$modename: you must specify a COMMAND" 1>&2
  65373. - $echo "$help"
  65374. - exit $EXIT_FAILURE
  65375. - fi
  65376. + test -n "$generated" && \
  65377. + func_show_eval "${RM}r$generated"
  65378. - # Handle -dlopen flags immediately.
  65379. - for file in $execute_dlfiles; do
  65380. - if test ! -f "$file"; then
  65381. - $echo "$modename: \`$file' is not a file" 1>&2
  65382. - $echo "$help" 1>&2
  65383. - exit $EXIT_FAILURE
  65384. - fi
  65385. + # Now create the libtool archive.
  65386. + case $output in
  65387. + *.la)
  65388. + old_library=
  65389. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  65390. + func_verbose "creating $output"
  65391. - dir=
  65392. - case $file in
  65393. - *.la)
  65394. - # Check to see that this really is a libtool archive.
  65395. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  65396. + # Preserve any variables that may affect compiler behavior
  65397. + for var in $variables_saved_for_relink; do
  65398. + if eval test -z \"\${$var+set}\"; then
  65399. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  65400. + elif eval var_value=\$$var; test -z "$var_value"; then
  65401. + relink_command="$var=; export $var; $relink_command"
  65402. else
  65403. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  65404. - $echo "$help" 1>&2
  65405. - exit $EXIT_FAILURE
  65406. + func_quote_for_eval "$var_value"
  65407. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  65408. fi
  65409. + done
  65410. + # Quote the link command for shipping.
  65411. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  65412. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  65413. + if test "$hardcode_automatic" = yes ; then
  65414. + relink_command=
  65415. + fi
  65416. - # Read the libtool library.
  65417. - dlname=
  65418. - library_names=
  65419. + # Only create the output if not a dry run.
  65420. + $opt_dry_run || {
  65421. + for installed in no yes; do
  65422. + if test "$installed" = yes; then
  65423. + if test -z "$install_libdir"; then
  65424. + break
  65425. + fi
  65426. + output="$output_objdir/$outputname"i
  65427. + # Replace all uninstalled libtool libraries with the installed ones
  65428. + newdependency_libs=
  65429. + for deplib in $dependency_libs; do
  65430. + case $deplib in
  65431. + *.la)
  65432. + func_basename "$deplib"
  65433. + name="$func_basename_result"
  65434. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  65435. + test -z "$libdir" && \
  65436. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  65437. + newdependency_libs="$newdependency_libs $libdir/$name"
  65438. + ;;
  65439. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  65440. + esac
  65441. + done
  65442. + dependency_libs="$newdependency_libs"
  65443. + newdlfiles=
  65444. +
  65445. + for lib in $dlfiles; do
  65446. + case $lib in
  65447. + *.la)
  65448. + func_basename "$lib"
  65449. + name="$func_basename_result"
  65450. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  65451. + test -z "$libdir" && \
  65452. + func_fatal_error "\`$lib' is not a valid libtool archive"
  65453. + newdlfiles="$newdlfiles $libdir/$name"
  65454. + ;;
  65455. + *) newdlfiles="$newdlfiles $lib" ;;
  65456. + esac
  65457. + done
  65458. + dlfiles="$newdlfiles"
  65459. + newdlprefiles=
  65460. + for lib in $dlprefiles; do
  65461. + case $lib in
  65462. + *.la)
  65463. + # Only pass preopened files to the pseudo-archive (for
  65464. + # eventual linking with the app. that links it) if we
  65465. + # didn't already link the preopened objects directly into
  65466. + # the library:
  65467. + func_basename "$lib"
  65468. + name="$func_basename_result"
  65469. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  65470. + test -z "$libdir" && \
  65471. + func_fatal_error "\`$lib' is not a valid libtool archive"
  65472. + newdlprefiles="$newdlprefiles $libdir/$name"
  65473. + ;;
  65474. + esac
  65475. + done
  65476. + dlprefiles="$newdlprefiles"
  65477. + else
  65478. + newdlfiles=
  65479. + for lib in $dlfiles; do
  65480. + case $lib in
  65481. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  65482. + *) abs=`pwd`"/$lib" ;;
  65483. + esac
  65484. + newdlfiles="$newdlfiles $abs"
  65485. + done
  65486. + dlfiles="$newdlfiles"
  65487. + newdlprefiles=
  65488. + for lib in $dlprefiles; do
  65489. + case $lib in
  65490. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  65491. + *) abs=`pwd`"/$lib" ;;
  65492. + esac
  65493. + newdlprefiles="$newdlprefiles $abs"
  65494. + done
  65495. + dlprefiles="$newdlprefiles"
  65496. + fi
  65497. + $RM $output
  65498. + # place dlname in correct position for cygwin
  65499. + tdlname=$dlname
  65500. + case $host,$output,$installed,$module,$dlname in
  65501. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  65502. + esac
  65503. + $ECHO > $output "\
  65504. +# $outputname - a libtool library file
  65505. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  65506. +#
  65507. +# Please DO NOT delete this file!
  65508. +# It is necessary for linking the library.
  65509. - # If there is no directory component, then add one.
  65510. - case $file in
  65511. - */* | *\\*) . $file ;;
  65512. - *) . ./$file ;;
  65513. - esac
  65514. +# The name that we can dlopen(3).
  65515. +dlname='$tdlname'
  65516. - # Skip this library if it cannot be dlopened.
  65517. - if test -z "$dlname"; then
  65518. - # Warn if it was a shared library.
  65519. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  65520. - continue
  65521. - fi
  65522. +# Names of this library.
  65523. +library_names='$library_names'
  65524. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  65525. - test "X$dir" = "X$file" && dir=.
  65526. +# The name of the static archive.
  65527. +old_library='$old_library'
  65528. - if test -f "$dir/$objdir/$dlname"; then
  65529. - dir="$dir/$objdir"
  65530. - else
  65531. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  65532. - exit $EXIT_FAILURE
  65533. - fi
  65534. - ;;
  65535. +# Linker flags that can not go in dependency_libs.
  65536. +inherited_linker_flags='$new_inherited_linker_flags'
  65537. - *.lo)
  65538. - # Just add the directory containing the .lo file.
  65539. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  65540. - test "X$dir" = "X$file" && dir=.
  65541. - ;;
  65542. +# Libraries that this one depends upon.
  65543. +dependency_libs='$dependency_libs'
  65544. - *)
  65545. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  65546. - continue
  65547. - ;;
  65548. - esac
  65549. +# Names of additional weak libraries provided by this library
  65550. +weak_library_names='$weak_libs'
  65551. - # Get the absolute pathname.
  65552. - absdir=`cd "$dir" && pwd`
  65553. - test -n "$absdir" && dir="$absdir"
  65554. +# Version information for $libname.
  65555. +current=$current
  65556. +age=$age
  65557. +revision=$revision
  65558. - # Now add the directory to shlibpath_var.
  65559. - if eval "test -z \"\$$shlibpath_var\""; then
  65560. - eval "$shlibpath_var=\"\$dir\""
  65561. - else
  65562. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  65563. - fi
  65564. - done
  65565. +# Is this an already installed library?
  65566. +installed=$installed
  65567. - # This variable tells wrapper scripts just to set shlibpath_var
  65568. - # rather than running their programs.
  65569. - libtool_execute_magic="$magic"
  65570. +# Should we warn about portability when linking against -modules?
  65571. +shouldnotlink=$module
  65572. - # Check if any of the arguments is a wrapper script.
  65573. - args=
  65574. - for file
  65575. - do
  65576. - case $file in
  65577. - -*) ;;
  65578. - *)
  65579. - # Do a test to see if this is really a libtool program.
  65580. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  65581. - # If there is no directory component, then add one.
  65582. - case $file in
  65583. - */* | *\\*) . $file ;;
  65584. - *) . ./$file ;;
  65585. - esac
  65586. +# Files to dlopen/dlpreopen
  65587. +dlopen='$dlfiles'
  65588. +dlpreopen='$dlprefiles'
  65589. - # Transform arg to wrapped name.
  65590. - file="$progdir/$program"
  65591. - fi
  65592. - ;;
  65593. - esac
  65594. - # Quote arguments (to preserve shell metacharacters).
  65595. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  65596. - args="$args \"$file\""
  65597. - done
  65598. +# Directory that this library needs to be installed in:
  65599. +libdir='$install_libdir'"
  65600. + if test "$installed" = no && test "$need_relink" = yes; then
  65601. + $ECHO >> $output "\
  65602. +relink_command=\"$relink_command\""
  65603. + fi
  65604. + done
  65605. + }
  65606. - if test -z "$run"; then
  65607. - if test -n "$shlibpath_var"; then
  65608. - # Export the shlibpath_var.
  65609. - eval "export $shlibpath_var"
  65610. - fi
  65611. + # Do a symbolic link so that the libtool archive can be found in
  65612. + # LD_LIBRARY_PATH before the program is installed.
  65613. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  65614. + ;;
  65615. + esac
  65616. + exit $EXIT_SUCCESS
  65617. +}
  65618. - # Restore saved environment variables
  65619. - if test "${save_LC_ALL+set}" = set; then
  65620. - LC_ALL="$save_LC_ALL"; export LC_ALL
  65621. - fi
  65622. - if test "${save_LANG+set}" = set; then
  65623. - LANG="$save_LANG"; export LANG
  65624. - fi
  65625. +{ test "$mode" = link || test "$mode" = relink; } &&
  65626. + func_mode_link ${1+"$@"}
  65627. - # Now prepare to actually exec the command.
  65628. - exec_cmd="\$cmd$args"
  65629. - else
  65630. - # Display what would be done.
  65631. - if test -n "$shlibpath_var"; then
  65632. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  65633. - $echo "export $shlibpath_var"
  65634. - fi
  65635. - $echo "$cmd$args"
  65636. - exit $EXIT_SUCCESS
  65637. - fi
  65638. - ;;
  65639. - # libtool clean and uninstall mode
  65640. - clean | uninstall)
  65641. - modename="$modename: $mode"
  65642. - rm="$nonopt"
  65643. +# func_mode_uninstall arg...
  65644. +func_mode_uninstall ()
  65645. +{
  65646. + $opt_debug
  65647. + RM="$nonopt"
  65648. files=
  65649. rmforce=
  65650. exit_status=0
  65651. @@ -5995,30 +8209,28 @@
  65652. for arg
  65653. do
  65654. case $arg in
  65655. - -f) rm="$rm $arg"; rmforce=yes ;;
  65656. - -*) rm="$rm $arg" ;;
  65657. + -f) RM="$RM $arg"; rmforce=yes ;;
  65658. + -*) RM="$RM $arg" ;;
  65659. *) files="$files $arg" ;;
  65660. esac
  65661. done
  65662. - if test -z "$rm"; then
  65663. - $echo "$modename: you must specify an RM program" 1>&2
  65664. - $echo "$help" 1>&2
  65665. - exit $EXIT_FAILURE
  65666. - fi
  65667. + test -z "$RM" && \
  65668. + func_fatal_help "you must specify an RM program"
  65669. rmdirs=
  65670. origobjdir="$objdir"
  65671. for file in $files; do
  65672. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  65673. - if test "X$dir" = "X$file"; then
  65674. - dir=.
  65675. + func_dirname "$file" "" "."
  65676. + dir="$func_dirname_result"
  65677. + if test "X$dir" = X.; then
  65678. objdir="$origobjdir"
  65679. else
  65680. objdir="$dir/$origobjdir"
  65681. fi
  65682. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  65683. + func_basename "$file"
  65684. + name="$func_basename_result"
  65685. test "$mode" = uninstall && objdir="$dir"
  65686. # Remember objdir for removal later, being careful to avoid duplicates
  65687. @@ -6030,9 +8242,9 @@
  65688. fi
  65689. # Don't error if the file doesn't exist and rm -f was used.
  65690. - if (test -L "$file") >/dev/null 2>&1 \
  65691. - || (test -h "$file") >/dev/null 2>&1 \
  65692. - || test -f "$file"; then
  65693. + if { test -L "$file"; } >/dev/null 2>&1 ||
  65694. + { test -h "$file"; } >/dev/null 2>&1 ||
  65695. + test -f "$file"; then
  65696. :
  65697. elif test -d "$file"; then
  65698. exit_status=1
  65699. @@ -6046,69 +8258,56 @@
  65700. case $name in
  65701. *.la)
  65702. # Possibly a libtool archive, so verify it.
  65703. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  65704. - . $dir/$name
  65705. + if func_lalib_p "$file"; then
  65706. + func_source $dir/$name
  65707. # Delete the libtool libraries and symlinks.
  65708. for n in $library_names; do
  65709. rmfiles="$rmfiles $objdir/$n"
  65710. done
  65711. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  65712. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  65713. - if test "$mode" = uninstall; then
  65714. + case "$mode" in
  65715. + clean)
  65716. + case " $library_names " in
  65717. + # " " in the beginning catches empty $dlname
  65718. + *" $dlname "*) ;;
  65719. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  65720. + esac
  65721. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  65722. + ;;
  65723. + uninstall)
  65724. if test -n "$library_names"; then
  65725. # Do each command in the postuninstall commands.
  65726. - cmds=$postuninstall_cmds
  65727. - save_ifs="$IFS"; IFS='~'
  65728. - for cmd in $cmds; do
  65729. - IFS="$save_ifs"
  65730. - eval cmd=\"$cmd\"
  65731. - $show "$cmd"
  65732. - $run eval "$cmd"
  65733. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  65734. - exit_status=1
  65735. - fi
  65736. - done
  65737. - IFS="$save_ifs"
  65738. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  65739. fi
  65740. if test -n "$old_library"; then
  65741. # Do each command in the old_postuninstall commands.
  65742. - cmds=$old_postuninstall_cmds
  65743. - save_ifs="$IFS"; IFS='~'
  65744. - for cmd in $cmds; do
  65745. - IFS="$save_ifs"
  65746. - eval cmd=\"$cmd\"
  65747. - $show "$cmd"
  65748. - $run eval "$cmd"
  65749. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  65750. - exit_status=1
  65751. - fi
  65752. - done
  65753. - IFS="$save_ifs"
  65754. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  65755. fi
  65756. # FIXME: should reinstall the best remaining shared library.
  65757. - fi
  65758. + ;;
  65759. + esac
  65760. fi
  65761. ;;
  65762. *.lo)
  65763. # Possibly a libtool object, so verify it.
  65764. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  65765. + if func_lalib_p "$file"; then
  65766. # Read the .lo file
  65767. - . $dir/$name
  65768. + func_source $dir/$name
  65769. # Add PIC object to the list of files to remove.
  65770. - if test -n "$pic_object" \
  65771. - && test "$pic_object" != none; then
  65772. + if test -n "$pic_object" &&
  65773. + test "$pic_object" != none; then
  65774. rmfiles="$rmfiles $dir/$pic_object"
  65775. fi
  65776. # Add non-PIC object to the list of files to remove.
  65777. - if test -n "$non_pic_object" \
  65778. - && test "$non_pic_object" != none; then
  65779. + if test -n "$non_pic_object" &&
  65780. + test "$non_pic_object" != none; then
  65781. rmfiles="$rmfiles $dir/$non_pic_object"
  65782. fi
  65783. fi
  65784. @@ -6119,17 +8318,26 @@
  65785. noexename=$name
  65786. case $file in
  65787. *.exe)
  65788. - file=`$echo $file|${SED} 's,.exe$,,'`
  65789. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  65790. + func_stripname '' '.exe' "$file"
  65791. + file=$func_stripname_result
  65792. + func_stripname '' '.exe' "$name"
  65793. + noexename=$func_stripname_result
  65794. # $file with .exe has already been added to rmfiles,
  65795. # add $file without .exe
  65796. rmfiles="$rmfiles $file"
  65797. ;;
  65798. esac
  65799. # Do a test to see if this is a libtool program.
  65800. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  65801. - relink_command=
  65802. - . $dir/$noexename
  65803. + if func_ltwrapper_p "$file"; then
  65804. + if func_ltwrapper_executable_p "$file"; then
  65805. + func_ltwrapper_scriptname "$file"
  65806. + relink_command=
  65807. + func_source $func_ltwrapper_scriptname_result
  65808. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  65809. + else
  65810. + relink_command=
  65811. + func_source $dir/$noexename
  65812. + fi
  65813. # note $name still contains .exe if it was in $file originally
  65814. # as does the version of $file that was added into $rmfiles
  65815. @@ -6144,237 +8352,38 @@
  65816. fi
  65817. ;;
  65818. esac
  65819. - $show "$rm $rmfiles"
  65820. - $run $rm $rmfiles || exit_status=1
  65821. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  65822. done
  65823. objdir="$origobjdir"
  65824. # Try to remove the ${objdir}s in the directories where we deleted files
  65825. for dir in $rmdirs; do
  65826. if test -d "$dir"; then
  65827. - $show "rmdir $dir"
  65828. - $run rmdir $dir >/dev/null 2>&1
  65829. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  65830. fi
  65831. done
  65832. exit $exit_status
  65833. - ;;
  65834. +}
  65835. - "")
  65836. - $echo "$modename: you must specify a MODE" 1>&2
  65837. - $echo "$generic_help" 1>&2
  65838. - exit $EXIT_FAILURE
  65839. - ;;
  65840. - esac
  65841. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  65842. + func_mode_uninstall ${1+"$@"}
  65843. - if test -z "$exec_cmd"; then
  65844. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  65845. - $echo "$generic_help" 1>&2
  65846. - exit $EXIT_FAILURE
  65847. - fi
  65848. -fi # test -z "$show_help"
  65849. +test -z "$mode" && {
  65850. + help="$generic_help"
  65851. + func_fatal_help "you must specify a MODE"
  65852. +}
  65853. +
  65854. +test -z "$exec_cmd" && \
  65855. + func_fatal_help "invalid operation mode \`$mode'"
  65856. if test -n "$exec_cmd"; then
  65857. - eval exec $exec_cmd
  65858. + eval exec "$exec_cmd"
  65859. exit $EXIT_FAILURE
  65860. fi
  65861. -# We need to display help for each of the modes.
  65862. -case $mode in
  65863. -"") $echo \
  65864. -"Usage: $modename [OPTION]... [MODE-ARG]...
  65865. -
  65866. -Provide generalized library-building support services.
  65867. -
  65868. - --config show all configuration variables
  65869. - --debug enable verbose shell tracing
  65870. --n, --dry-run display commands without modifying any files
  65871. - --features display basic configuration information and exit
  65872. - --finish same as \`--mode=finish'
  65873. - --help display this help message and exit
  65874. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  65875. - --quiet same as \`--silent'
  65876. - --silent don't print informational messages
  65877. - --tag=TAG use configuration variables from tag TAG
  65878. - --version print version information
  65879. -
  65880. -MODE must be one of the following:
  65881. -
  65882. - clean remove files from the build directory
  65883. - compile compile a source file into a libtool object
  65884. - execute automatically set library path, then run a program
  65885. - finish complete the installation of libtool libraries
  65886. - install install libraries or executables
  65887. - link create a library or an executable
  65888. - uninstall remove libraries from an installed directory
  65889. -
  65890. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  65891. -a more detailed description of MODE.
  65892. -
  65893. -Report bugs to <bug-libtool@gnu.org>."
  65894. - exit $EXIT_SUCCESS
  65895. - ;;
  65896. -
  65897. -clean)
  65898. - $echo \
  65899. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  65900. -
  65901. -Remove files from the build directory.
  65902. -
  65903. -RM is the name of the program to use to delete files associated with each FILE
  65904. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  65905. -to RM.
  65906. -
  65907. -If FILE is a libtool library, object or program, all the files associated
  65908. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  65909. - ;;
  65910. -
  65911. -compile)
  65912. - $echo \
  65913. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  65914. -
  65915. -Compile a source file into a libtool library object.
  65916. -
  65917. -This mode accepts the following additional options:
  65918. -
  65919. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  65920. - -prefer-pic try to building PIC objects only
  65921. - -prefer-non-pic try to building non-PIC objects only
  65922. - -static always build a \`.o' file suitable for static linking
  65923. -
  65924. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  65925. -from the given SOURCEFILE.
  65926. -
  65927. -The output file name is determined by removing the directory component from
  65928. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  65929. -library object suffix, \`.lo'."
  65930. - ;;
  65931. -
  65932. -execute)
  65933. - $echo \
  65934. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  65935. -
  65936. -Automatically set library path, then run a program.
  65937. -
  65938. -This mode accepts the following additional options:
  65939. -
  65940. - -dlopen FILE add the directory containing FILE to the library path
  65941. -
  65942. -This mode sets the library path environment variable according to \`-dlopen'
  65943. -flags.
  65944. -
  65945. -If any of the ARGS are libtool executable wrappers, then they are translated
  65946. -into their corresponding uninstalled binary, and any of their required library
  65947. -directories are added to the library path.
  65948. -
  65949. -Then, COMMAND is executed, with ARGS as arguments."
  65950. - ;;
  65951. -
  65952. -finish)
  65953. - $echo \
  65954. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  65955. -
  65956. -Complete the installation of libtool libraries.
  65957. -
  65958. -Each LIBDIR is a directory that contains libtool libraries.
  65959. -
  65960. -The commands that this mode executes may require superuser privileges. Use
  65961. -the \`--dry-run' option if you just want to see what would be executed."
  65962. - ;;
  65963. -
  65964. -install)
  65965. - $echo \
  65966. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  65967. -
  65968. -Install executables or libraries.
  65969. -
  65970. -INSTALL-COMMAND is the installation command. The first component should be
  65971. -either the \`install' or \`cp' program.
  65972. -
  65973. -The rest of the components are interpreted as arguments to that command (only
  65974. -BSD-compatible install options are recognized)."
  65975. - ;;
  65976. -
  65977. -link)
  65978. - $echo \
  65979. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  65980. -
  65981. -Link object files or libraries together to form another library, or to
  65982. -create an executable program.
  65983. -
  65984. -LINK-COMMAND is a command using the C compiler that you would use to create
  65985. -a program from several object files.
  65986. -
  65987. -The following components of LINK-COMMAND are treated specially:
  65988. -
  65989. - -all-static do not do any dynamic linking at all
  65990. - -avoid-version do not add a version suffix if possible
  65991. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  65992. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  65993. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  65994. - -export-symbols SYMFILE
  65995. - try to export only the symbols listed in SYMFILE
  65996. - -export-symbols-regex REGEX
  65997. - try to export only the symbols matching REGEX
  65998. - -LLIBDIR search LIBDIR for required installed libraries
  65999. - -lNAME OUTPUT-FILE requires the installed library libNAME
  66000. - -module build a library that can dlopened
  66001. - -no-fast-install disable the fast-install mode
  66002. - -no-install link a not-installable executable
  66003. - -no-undefined declare that a library does not refer to external symbols
  66004. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  66005. - -objectlist FILE Use a list of object files found in FILE to specify objects
  66006. - -precious-files-regex REGEX
  66007. - don't remove output files matching REGEX
  66008. - -release RELEASE specify package release information
  66009. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  66010. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  66011. - -static do not do any dynamic linking of libtool libraries
  66012. - -version-info CURRENT[:REVISION[:AGE]]
  66013. - specify library version info [each variable defaults to 0]
  66014. -
  66015. -All other options (arguments beginning with \`-') are ignored.
  66016. -
  66017. -Every other argument is treated as a filename. Files ending in \`.la' are
  66018. -treated as uninstalled libtool libraries, other files are standard or library
  66019. -object files.
  66020. -
  66021. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  66022. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  66023. -required, except when creating a convenience library.
  66024. -
  66025. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  66026. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  66027. -
  66028. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  66029. -is created, otherwise an executable program is created."
  66030. - ;;
  66031. -
  66032. -uninstall)
  66033. - $echo \
  66034. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  66035. -
  66036. -Remove libraries from an installation directory.
  66037. -
  66038. -RM is the name of the program to use to delete files associated with each FILE
  66039. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  66040. -to RM.
  66041. +exit $exit_status
  66042. -If FILE is a libtool library, all the files associated with it are deleted.
  66043. -Otherwise, only FILE itself is deleted using RM."
  66044. - ;;
  66045. -
  66046. -*)
  66047. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  66048. - $echo "$help" 1>&2
  66049. - exit $EXIT_FAILURE
  66050. - ;;
  66051. -esac
  66052. -
  66053. -$echo
  66054. -$echo "Try \`$modename --help' for more information about other modes."
  66055. -
  66056. -exit $EXIT_SUCCESS
  66057. # The TAGs below are defined such that we never get into a situation
  66058. # in which we disable both kinds of libraries. Given conflicting
  66059. @@ -6393,10 +8402,12 @@
  66060. # ### END LIBTOOL TAG CONFIG: disable-shared
  66061. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  66062. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  66063. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  66064. # ### END LIBTOOL TAG CONFIG: disable-static
  66065. # Local Variables:
  66066. # mode:shell-script
  66067. # sh-indentation:2
  66068. # End:
  66069. +# vi:sw=2
  66070. +
  66071. diff -Nur audiofile-0.2.7.orig/Makefile.in audiofile-0.2.7/Makefile.in
  66072. --- audiofile-0.2.7.orig/Makefile.in 2010-03-22 06:45:52.000000000 +0100
  66073. +++ audiofile-0.2.7/Makefile.in 2011-02-24 20:00:34.764802183 +0100
  66074. @@ -1,8 +1,9 @@
  66075. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  66076. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66077. # @configure_input@
  66078. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66079. -# 2003, 2004 Free Software Foundation, Inc.
  66080. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66081. +# Inc.
  66082. # This Makefile.in is free software; the Free Software Foundation
  66083. # gives unlimited permission to copy and/or distribute it,
  66084. # with or without modifications, as long as this notice is preserved.
  66085. @@ -15,15 +16,12 @@
  66086. @SET_MAKE@
  66087. -srcdir = @srcdir@
  66088. -top_srcdir = @top_srcdir@
  66089. VPATH = @srcdir@
  66090. pkgdatadir = $(datadir)/@PACKAGE@
  66091. -pkglibdir = $(libdir)/@PACKAGE@
  66092. pkgincludedir = $(includedir)/@PACKAGE@
  66093. -top_builddir = .
  66094. +pkglibdir = $(libdir)/@PACKAGE@
  66095. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66096. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66097. -INSTALL = @INSTALL@
  66098. install_sh_DATA = $(install_sh) -c -m 644
  66099. install_sh_PROGRAM = $(install_sh) -c
  66100. install_sh_SCRIPT = $(install_sh) -c
  66101. @@ -37,43 +35,62 @@
  66102. POST_UNINSTALL = :
  66103. build_triplet = @build@
  66104. host_triplet = @host@
  66105. +subdir = .
  66106. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  66107. $(srcdir)/Makefile.in $(srcdir)/audiofile-config.in \
  66108. $(srcdir)/audiofile.pc.in $(srcdir)/audiofile.spec.in \
  66109. $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
  66110. ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
  66111. install-sh ltmain.sh missing
  66112. -subdir = .
  66113. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  66114. am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  66115. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  66116. $(ACLOCAL_M4)
  66117. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  66118. - configure.lineno configure.status.lineno
  66119. + configure.lineno config.status.lineno
  66120. mkinstalldirs = $(install_sh) -d
  66121. CONFIG_HEADER = config.h
  66122. CONFIG_CLEAN_FILES = audiofile.spec audiofile.pc audiofile-config
  66123. +CONFIG_CLEAN_VPATH_FILES =
  66124. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  66125. +am__vpath_adj = case $$p in \
  66126. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  66127. + *) f=$$p;; \
  66128. + esac;
  66129. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  66130. +am__install_max = 40
  66131. +am__nobase_strip_setup = \
  66132. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  66133. +am__nobase_strip = \
  66134. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  66135. +am__nobase_list = $(am__nobase_strip_setup); \
  66136. + for p in $$list; do echo "$$p $$p"; done | \
  66137. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  66138. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  66139. + if (++n[$$2] == $(am__install_max)) \
  66140. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  66141. + END { for (dir in files) print dir, files[dir] }'
  66142. +am__base_list = \
  66143. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  66144. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  66145. am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(m4datadir)" \
  66146. "$(DESTDIR)$(pkgconfigdir)"
  66147. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  66148. SCRIPTS = $(bin_SCRIPTS)
  66149. SOURCES =
  66150. DIST_SOURCES =
  66151. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  66152. html-recursive info-recursive install-data-recursive \
  66153. - install-exec-recursive install-info-recursive \
  66154. - install-recursive installcheck-recursive installdirs-recursive \
  66155. - pdf-recursive ps-recursive uninstall-info-recursive \
  66156. - uninstall-recursive
  66157. -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  66158. -am__vpath_adj = case $$p in \
  66159. - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  66160. - *) f=$$p;; \
  66161. - esac;
  66162. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  66163. -m4dataDATA_INSTALL = $(INSTALL_DATA)
  66164. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  66165. + install-dvi-recursive install-exec-recursive \
  66166. + install-html-recursive install-info-recursive \
  66167. + install-pdf-recursive install-ps-recursive install-recursive \
  66168. + installcheck-recursive installdirs-recursive pdf-recursive \
  66169. + ps-recursive uninstall-recursive
  66170. DATA = $(m4data_DATA) $(pkgconfig_DATA)
  66171. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  66172. + distclean-recursive maintainer-clean-recursive
  66173. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  66174. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  66175. + distdir dist dist-all distcheck
  66176. ETAGS = etags
  66177. CTAGS = ctags
  66178. DIST_SUBDIRS = $(SUBDIRS)
  66179. @@ -81,16 +98,39 @@
  66180. distdir = $(PACKAGE)-$(VERSION)
  66181. top_distdir = $(distdir)
  66182. am__remove_distdir = \
  66183. - { test ! -d $(distdir) \
  66184. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  66185. - && rm -fr $(distdir); }; }
  66186. + { test ! -d "$(distdir)" \
  66187. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  66188. + && rm -fr "$(distdir)"; }; }
  66189. +am__relativize = \
  66190. + dir0=`pwd`; \
  66191. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  66192. + sed_rest='s,^[^/]*/*,,'; \
  66193. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  66194. + sed_butlast='s,/*[^/]*$$,,'; \
  66195. + while test -n "$$dir1"; do \
  66196. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  66197. + if test "$$first" != "."; then \
  66198. + if test "$$first" = ".."; then \
  66199. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  66200. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  66201. + else \
  66202. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  66203. + if test "$$first2" = "$$first"; then \
  66204. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  66205. + else \
  66206. + dir2="../$$dir2"; \
  66207. + fi; \
  66208. + dir0="$$dir0"/"$$first"; \
  66209. + fi; \
  66210. + fi; \
  66211. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  66212. + done; \
  66213. + reldir="$$dir2"
  66214. DIST_ARCHIVES = $(distdir).tar.gz
  66215. GZIP_ENV = --best
  66216. distuninstallcheck_listfiles = find . -type f -print
  66217. distcleancheck_listfiles = find . -type f -print
  66218. ACLOCAL = @ACLOCAL@
  66219. -AMDEP_FALSE = @AMDEP_FALSE@
  66220. -AMDEP_TRUE = @AMDEP_TRUE@
  66221. AMTAR = @AMTAR@
  66222. AR = @AR@
  66223. AS = @AS@
  66224. @@ -109,56 +149,61 @@
  66225. CFLAGS = @CFLAGS@
  66226. CPP = @CPP@
  66227. CPPFLAGS = @CPPFLAGS@
  66228. -CXX = @CXX@
  66229. -CXXCPP = @CXXCPP@
  66230. -CXXDEPMODE = @CXXDEPMODE@
  66231. -CXXFLAGS = @CXXFLAGS@
  66232. CYGPATH_W = @CYGPATH_W@
  66233. DEFS = @DEFS@
  66234. DEPDIR = @DEPDIR@
  66235. DLLTOOL = @DLLTOOL@
  66236. -ECHO = @ECHO@
  66237. +DSYMUTIL = @DSYMUTIL@
  66238. +DUMPBIN = @DUMPBIN@
  66239. ECHO_C = @ECHO_C@
  66240. ECHO_N = @ECHO_N@
  66241. ECHO_T = @ECHO_T@
  66242. EGREP = @EGREP@
  66243. EXEEXT = @EXEEXT@
  66244. -F77 = @F77@
  66245. -FFLAGS = @FFLAGS@
  66246. +FGREP = @FGREP@
  66247. GREP = @GREP@
  66248. +INSTALL = @INSTALL@
  66249. INSTALL_DATA = @INSTALL_DATA@
  66250. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  66251. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66252. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66253. +LD = @LD@
  66254. LDFLAGS = @LDFLAGS@
  66255. LIBOBJS = @LIBOBJS@
  66256. LIBS = @LIBS@
  66257. LIBTOOL = @LIBTOOL@
  66258. +LIPO = @LIPO@
  66259. LN_S = @LN_S@
  66260. LTLIBOBJS = @LTLIBOBJS@
  66261. MAKEINFO = @MAKEINFO@
  66262. +MKDIR_P = @MKDIR_P@
  66263. +NM = @NM@
  66264. +NMEDIT = @NMEDIT@
  66265. OBJDUMP = @OBJDUMP@
  66266. OBJEXT = @OBJEXT@
  66267. +OTOOL = @OTOOL@
  66268. +OTOOL64 = @OTOOL64@
  66269. PACKAGE = @PACKAGE@
  66270. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  66271. PACKAGE_NAME = @PACKAGE_NAME@
  66272. PACKAGE_STRING = @PACKAGE_STRING@
  66273. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  66274. +PACKAGE_URL = @PACKAGE_URL@
  66275. PACKAGE_VERSION = @PACKAGE_VERSION@
  66276. PATH_SEPARATOR = @PATH_SEPARATOR@
  66277. RANLIB = @RANLIB@
  66278. +SED = @SED@
  66279. SET_MAKE = @SET_MAKE@
  66280. SHELL = @SHELL@
  66281. STRIP = @STRIP@
  66282. TEST_BIN = @TEST_BIN@
  66283. VERSION = @VERSION@
  66284. +abs_builddir = @abs_builddir@
  66285. +abs_srcdir = @abs_srcdir@
  66286. +abs_top_builddir = @abs_top_builddir@
  66287. +abs_top_srcdir = @abs_top_srcdir@
  66288. ac_ct_CC = @ac_ct_CC@
  66289. -ac_ct_CXX = @ac_ct_CXX@
  66290. -ac_ct_F77 = @ac_ct_F77@
  66291. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  66292. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  66293. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  66294. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  66295. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  66296. am__include = @am__include@
  66297. am__leading_dot = @am__leading_dot@
  66298. am__quote = @am__quote@
  66299. @@ -170,6 +215,7 @@
  66300. build_cpu = @build_cpu@
  66301. build_os = @build_os@
  66302. build_vendor = @build_vendor@
  66303. +builddir = @builddir@
  66304. datadir = @datadir@
  66305. datarootdir = @datarootdir@
  66306. docdir = @docdir@
  66307. @@ -188,6 +234,7 @@
  66308. libexecdir = @libexecdir@
  66309. localedir = @localedir@
  66310. localstatedir = @localstatedir@
  66311. +lt_ECHO = @lt_ECHO@
  66312. mandir = @mandir@
  66313. mkdir_p = @mkdir_p@
  66314. oldincludedir = @oldincludedir@
  66315. @@ -197,8 +244,12 @@
  66316. psdir = @psdir@
  66317. sbindir = @sbindir@
  66318. sharedstatedir = @sharedstatedir@
  66319. +srcdir = @srcdir@
  66320. sysconfdir = @sysconfdir@
  66321. target_alias = @target_alias@
  66322. +top_build_prefix = @top_build_prefix@
  66323. +top_builddir = @top_builddir@
  66324. +top_srcdir = @top_srcdir@
  66325. bin_SCRIPTS = \
  66326. audiofile-config
  66327. @@ -229,15 +280,15 @@
  66328. @for dep in $?; do \
  66329. case '$(am__configure_deps)' in \
  66330. *$$dep*) \
  66331. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  66332. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  66333. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  66334. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  66335. && exit 0; \
  66336. exit 1;; \
  66337. esac; \
  66338. done; \
  66339. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  66340. - cd $(top_srcdir) && \
  66341. - $(AUTOMAKE) --gnu Makefile
  66342. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  66343. + $(am__cd) $(top_srcdir) && \
  66344. + $(AUTOMAKE) --gnu Makefile
  66345. .PRECIOUS: Makefile
  66346. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  66347. @case '$?' in \
  66348. @@ -253,21 +304,22 @@
  66349. $(SHELL) ./config.status --recheck
  66350. $(top_srcdir)/configure: $(am__configure_deps)
  66351. - cd $(srcdir) && $(AUTOCONF)
  66352. + $(am__cd) $(srcdir) && $(AUTOCONF)
  66353. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  66354. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  66355. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  66356. +$(am__aclocal_m4_deps):
  66357. config.h: stamp-h1
  66358. @if test ! -f $@; then \
  66359. rm -f stamp-h1; \
  66360. - $(MAKE) stamp-h1; \
  66361. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  66362. else :; fi
  66363. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  66364. @rm -f stamp-h1
  66365. cd $(top_builddir) && $(SHELL) ./config.status config.h
  66366. $(srcdir)/config.h.in: $(am__configure_deps)
  66367. - cd $(top_srcdir) && $(AUTOHEADER)
  66368. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  66369. rm -f stamp-h1
  66370. touch $@
  66371. @@ -281,23 +333,38 @@
  66372. cd $(top_builddir) && $(SHELL) ./config.status $@
  66373. install-binSCRIPTS: $(bin_SCRIPTS)
  66374. @$(NORMAL_INSTALL)
  66375. - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  66376. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  66377. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  66378. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  66379. + for p in $$list; do \
  66380. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  66381. - if test -f $$d$$p; then \
  66382. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  66383. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  66384. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  66385. - else :; fi; \
  66386. - done
  66387. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  66388. + done | \
  66389. + sed -e 'p;s,.*/,,;n' \
  66390. + -e 'h;s|.*|.|' \
  66391. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  66392. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  66393. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  66394. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  66395. + if (++n[d] == $(am__install_max)) { \
  66396. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  66397. + else { print "f", d "/" $$4, $$1 } } \
  66398. + END { for (d in files) print "f", d, files[d] }' | \
  66399. + while read type dir files; do \
  66400. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  66401. + test -z "$$files" || { \
  66402. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  66403. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  66404. + } \
  66405. + ; done
  66406. uninstall-binSCRIPTS:
  66407. @$(NORMAL_UNINSTALL)
  66408. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  66409. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  66410. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  66411. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  66412. - done
  66413. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  66414. + files=`for p in $$list; do echo "$$p"; done | \
  66415. + sed -e 's,.*/,,;$(transform)'`; \
  66416. + test -n "$$list" || exit 0; \
  66417. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  66418. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  66419. mostlyclean-libtool:
  66420. -rm -f *.lo
  66421. @@ -306,42 +373,47 @@
  66422. -rm -rf .libs _libs
  66423. distclean-libtool:
  66424. - -rm -f libtool
  66425. -uninstall-info-am:
  66426. + -rm -f libtool config.lt
  66427. install-m4dataDATA: $(m4data_DATA)
  66428. @$(NORMAL_INSTALL)
  66429. - test -z "$(m4datadir)" || $(mkdir_p) "$(DESTDIR)$(m4datadir)"
  66430. - @list='$(m4data_DATA)'; for p in $$list; do \
  66431. + test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
  66432. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  66433. + for p in $$list; do \
  66434. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  66435. - f=$(am__strip_dir) \
  66436. - echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
  66437. - $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
  66438. + echo "$$d$$p"; \
  66439. + done | $(am__base_list) | \
  66440. + while read files; do \
  66441. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
  66442. + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
  66443. done
  66444. uninstall-m4dataDATA:
  66445. @$(NORMAL_UNINSTALL)
  66446. - @list='$(m4data_DATA)'; for p in $$list; do \
  66447. - f=$(am__strip_dir) \
  66448. - echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
  66449. - rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
  66450. - done
  66451. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  66452. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  66453. + test -n "$$files" || exit 0; \
  66454. + echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \
  66455. + cd "$(DESTDIR)$(m4datadir)" && rm -f $$files
  66456. install-pkgconfigDATA: $(pkgconfig_DATA)
  66457. @$(NORMAL_INSTALL)
  66458. - test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
  66459. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  66460. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  66461. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  66462. + for p in $$list; do \
  66463. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  66464. - f=$(am__strip_dir) \
  66465. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  66466. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  66467. + echo "$$d$$p"; \
  66468. + done | $(am__base_list) | \
  66469. + while read files; do \
  66470. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  66471. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  66472. done
  66473. uninstall-pkgconfigDATA:
  66474. @$(NORMAL_UNINSTALL)
  66475. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  66476. - f=$(am__strip_dir) \
  66477. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  66478. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  66479. - done
  66480. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  66481. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  66482. + test -n "$$files" || exit 0; \
  66483. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  66484. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  66485. # This directory's subdirectories are mostly independent; you can cd
  66486. # into them and run `make' without going through this Makefile.
  66487. @@ -350,7 +422,13 @@
  66488. # (which will cause the Makefiles to be regenerated when you run `make');
  66489. # (2) otherwise, pass the desired values on the `make' command line.
  66490. $(RECURSIVE_TARGETS):
  66491. - @set fnord $$MAKEFLAGS; amf=$$2; \
  66492. + @fail= failcom='exit 1'; \
  66493. + for f in x $$MAKEFLAGS; do \
  66494. + case $$f in \
  66495. + *=* | --[!k]*);; \
  66496. + *k*) failcom='fail=yes';; \
  66497. + esac; \
  66498. + done; \
  66499. dot_seen=no; \
  66500. target=`echo $@ | sed s/-recursive//`; \
  66501. list='$(SUBDIRS)'; for subdir in $$list; do \
  66502. @@ -361,16 +439,21 @@
  66503. else \
  66504. local_target="$$target"; \
  66505. fi; \
  66506. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66507. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  66508. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66509. + || eval $$failcom; \
  66510. done; \
  66511. if test "$$dot_seen" = "no"; then \
  66512. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  66513. fi; test -z "$$fail"
  66514. -mostlyclean-recursive clean-recursive distclean-recursive \
  66515. -maintainer-clean-recursive:
  66516. - @set fnord $$MAKEFLAGS; amf=$$2; \
  66517. +$(RECURSIVE_CLEAN_TARGETS):
  66518. + @fail= failcom='exit 1'; \
  66519. + for f in x $$MAKEFLAGS; do \
  66520. + case $$f in \
  66521. + *=* | --[!k]*);; \
  66522. + *k*) failcom='fail=yes';; \
  66523. + esac; \
  66524. + done; \
  66525. dot_seen=no; \
  66526. case "$@" in \
  66527. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  66528. @@ -390,16 +473,16 @@
  66529. else \
  66530. local_target="$$target"; \
  66531. fi; \
  66532. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66533. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  66534. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66535. + || eval $$failcom; \
  66536. done && test -z "$$fail"
  66537. tags-recursive:
  66538. list='$(SUBDIRS)'; for subdir in $$list; do \
  66539. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  66540. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  66541. done
  66542. ctags-recursive:
  66543. list='$(SUBDIRS)'; for subdir in $$list; do \
  66544. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  66545. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  66546. done
  66547. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  66548. @@ -407,14 +490,14 @@
  66549. unique=`for i in $$list; do \
  66550. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66551. done | \
  66552. - $(AWK) ' { files[$$0] = 1; } \
  66553. - END { for (i in files) print i; }'`; \
  66554. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66555. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66556. mkid -fID $$unique
  66557. tags: TAGS
  66558. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  66559. $(TAGS_FILES) $(LISP)
  66560. - tags=; \
  66561. + set x; \
  66562. here=`pwd`; \
  66563. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  66564. include_option=--etags-include; \
  66565. @@ -426,84 +509,103 @@
  66566. list='$(SUBDIRS)'; for subdir in $$list; do \
  66567. if test "$$subdir" = .; then :; else \
  66568. test ! -f $$subdir/TAGS || \
  66569. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  66570. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  66571. fi; \
  66572. done; \
  66573. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  66574. unique=`for i in $$list; do \
  66575. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66576. done | \
  66577. - $(AWK) ' { files[$$0] = 1; } \
  66578. - END { for (i in files) print i; }'`; \
  66579. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  66580. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66581. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66582. + shift; \
  66583. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  66584. test -n "$$unique" || unique=$$empty_fix; \
  66585. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66586. - $$tags $$unique; \
  66587. + if test $$# -gt 0; then \
  66588. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66589. + "$$@" $$unique; \
  66590. + else \
  66591. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66592. + $$unique; \
  66593. + fi; \
  66594. fi
  66595. ctags: CTAGS
  66596. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  66597. $(TAGS_FILES) $(LISP)
  66598. - tags=; \
  66599. - here=`pwd`; \
  66600. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  66601. unique=`for i in $$list; do \
  66602. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66603. done | \
  66604. - $(AWK) ' { files[$$0] = 1; } \
  66605. - END { for (i in files) print i; }'`; \
  66606. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  66607. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66608. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66609. + test -z "$(CTAGS_ARGS)$$unique" \
  66610. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  66611. - $$tags $$unique
  66612. + $$unique
  66613. GTAGS:
  66614. here=`$(am__cd) $(top_builddir) && pwd` \
  66615. - && cd $(top_srcdir) \
  66616. - && gtags -i $(GTAGS_ARGS) $$here
  66617. + && $(am__cd) $(top_srcdir) \
  66618. + && gtags -i $(GTAGS_ARGS) "$$here"
  66619. distclean-tags:
  66620. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  66621. distdir: $(DISTFILES)
  66622. $(am__remove_distdir)
  66623. - mkdir $(distdir)
  66624. - $(mkdir_p) $(distdir)/.
  66625. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  66626. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  66627. - list='$(DISTFILES)'; for file in $$list; do \
  66628. - case $$file in \
  66629. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  66630. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  66631. - esac; \
  66632. + test -d "$(distdir)" || mkdir "$(distdir)"
  66633. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66634. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66635. + list='$(DISTFILES)'; \
  66636. + dist_files=`for file in $$list; do echo $$file; done | \
  66637. + sed -e "s|^$$srcdirstrip/||;t" \
  66638. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  66639. + case $$dist_files in \
  66640. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  66641. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  66642. + sort -u` ;; \
  66643. + esac; \
  66644. + for file in $$dist_files; do \
  66645. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66646. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  66647. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  66648. - dir="/$$dir"; \
  66649. - $(mkdir_p) "$(distdir)$$dir"; \
  66650. - else \
  66651. - dir=''; \
  66652. - fi; \
  66653. if test -d $$d/$$file; then \
  66654. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66655. + if test -d "$(distdir)/$$file"; then \
  66656. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66657. + fi; \
  66658. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66659. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66660. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66661. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66662. fi; \
  66663. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66664. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66665. else \
  66666. - test -f $(distdir)/$$file \
  66667. - || cp -p $$d/$$file $(distdir)/$$file \
  66668. + test -f "$(distdir)/$$file" \
  66669. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66670. || exit 1; \
  66671. fi; \
  66672. done
  66673. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  66674. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  66675. if test "$$subdir" = .; then :; else \
  66676. test -d "$(distdir)/$$subdir" \
  66677. - || $(mkdir_p) "$(distdir)/$$subdir" \
  66678. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  66679. || exit 1; \
  66680. - distdir=`$(am__cd) $(distdir) && pwd`; \
  66681. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  66682. - (cd $$subdir && \
  66683. + fi; \
  66684. + done
  66685. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  66686. + if test "$$subdir" = .; then :; else \
  66687. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  66688. + $(am__relativize); \
  66689. + new_distdir=$$reldir; \
  66690. + dir1=$$subdir; dir2="$(top_distdir)"; \
  66691. + $(am__relativize); \
  66692. + new_top_distdir=$$reldir; \
  66693. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  66694. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  66695. + ($(am__cd) $$subdir && \
  66696. $(MAKE) $(AM_MAKEFLAGS) \
  66697. - top_distdir="$$top_distdir" \
  66698. - distdir="$$distdir/$$subdir" \
  66699. + top_distdir="$$new_top_distdir" \
  66700. + distdir="$$new_distdir" \
  66701. + am__remove_distdir=: \
  66702. + am__skip_length_check=: \
  66703. + am__skip_mode_fix=: \
  66704. distdir) \
  66705. || exit 1; \
  66706. fi; \
  66707. @@ -511,11 +613,13 @@
  66708. $(MAKE) $(AM_MAKEFLAGS) \
  66709. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  66710. dist-hook
  66711. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  66712. + -test -n "$(am__skip_mode_fix)" \
  66713. + || find "$(distdir)" -type d ! -perm -755 \
  66714. + -exec chmod u+rwx,go+rx {} \; -o \
  66715. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  66716. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  66717. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  66718. - || chmod -R a+r $(distdir)
  66719. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  66720. + || chmod -R a+r "$(distdir)"
  66721. dist-gzip: distdir
  66722. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  66723. $(am__remove_distdir)
  66724. @@ -524,6 +628,14 @@
  66725. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  66726. $(am__remove_distdir)
  66727. +dist-lzma: distdir
  66728. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  66729. + $(am__remove_distdir)
  66730. +
  66731. +dist-xz: distdir
  66732. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  66733. + $(am__remove_distdir)
  66734. +
  66735. dist-tarZ: distdir
  66736. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  66737. $(am__remove_distdir)
  66738. @@ -547,13 +659,17 @@
  66739. distcheck: dist
  66740. case '$(DIST_ARCHIVES)' in \
  66741. *.tar.gz*) \
  66742. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  66743. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  66744. *.tar.bz2*) \
  66745. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  66746. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  66747. + *.tar.lzma*) \
  66748. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  66749. + *.tar.xz*) \
  66750. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  66751. *.tar.Z*) \
  66752. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  66753. *.shar.gz*) \
  66754. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  66755. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  66756. *.zip*) \
  66757. unzip $(distdir).zip ;;\
  66758. esac
  66759. @@ -561,9 +677,11 @@
  66760. mkdir $(distdir)/_build
  66761. mkdir $(distdir)/_inst
  66762. chmod a-w $(distdir)
  66763. + test -d $(distdir)/_build || exit 0; \
  66764. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  66765. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  66766. - && cd $(distdir)/_build \
  66767. + && am__cwd=`pwd` \
  66768. + && $(am__cd) $(distdir)/_build \
  66769. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  66770. $(DISTCHECK_CONFIGURE_FLAGS) \
  66771. && $(MAKE) $(AM_MAKEFLAGS) \
  66772. @@ -585,13 +703,15 @@
  66773. && rm -rf "$$dc_destdir" \
  66774. && $(MAKE) $(AM_MAKEFLAGS) dist \
  66775. && rm -rf $(DIST_ARCHIVES) \
  66776. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  66777. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  66778. + && cd "$$am__cwd" \
  66779. + || exit 1
  66780. $(am__remove_distdir)
  66781. @(echo "$(distdir) archives ready for distribution: "; \
  66782. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  66783. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  66784. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  66785. distuninstallcheck:
  66786. - @cd $(distuninstallcheck_dir) \
  66787. + @$(am__cd) '$(distuninstallcheck_dir)' \
  66788. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  66789. || { echo "ERROR: files left after uninstall:" ; \
  66790. if test -n "$(DESTDIR)"; then \
  66791. @@ -614,7 +734,7 @@
  66792. installdirs: installdirs-recursive
  66793. installdirs-am:
  66794. for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
  66795. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  66796. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  66797. done
  66798. install: install-recursive
  66799. install-exec: install-exec-recursive
  66800. @@ -636,6 +756,7 @@
  66801. distclean-generic:
  66802. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66803. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66804. maintainer-clean-generic:
  66805. @echo "This command is intended for maintainers to use"
  66806. @@ -656,18 +777,38 @@
  66807. html: html-recursive
  66808. +html-am:
  66809. +
  66810. info: info-recursive
  66811. info-am:
  66812. install-data-am: install-m4dataDATA install-pkgconfigDATA
  66813. +install-dvi: install-dvi-recursive
  66814. +
  66815. +install-dvi-am:
  66816. +
  66817. install-exec-am: install-binSCRIPTS
  66818. +install-html: install-html-recursive
  66819. +
  66820. +install-html-am:
  66821. +
  66822. install-info: install-info-recursive
  66823. +install-info-am:
  66824. +
  66825. install-man:
  66826. +install-pdf: install-pdf-recursive
  66827. +
  66828. +install-pdf-am:
  66829. +
  66830. +install-ps: install-ps-recursive
  66831. +
  66832. +install-ps-am:
  66833. +
  66834. installcheck-am:
  66835. maintainer-clean: maintainer-clean-recursive
  66836. @@ -688,32 +829,35 @@
  66837. ps-am:
  66838. -uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
  66839. - uninstall-m4dataDATA uninstall-pkgconfigDATA
  66840. +uninstall-am: uninstall-binSCRIPTS uninstall-m4dataDATA \
  66841. + uninstall-pkgconfigDATA
  66842. -uninstall-info: uninstall-info-recursive
  66843. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  66844. + ctags-recursive install-am install-strip tags-recursive
  66845. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  66846. - check-am clean clean-generic clean-libtool clean-recursive \
  66847. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  66848. - dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
  66849. - distclean-generic distclean-hdr distclean-libtool \
  66850. - distclean-recursive distclean-tags distcleancheck distdir \
  66851. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  66852. + all all-am am--refresh check check-am clean clean-generic \
  66853. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  66854. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  66855. + dist-zip distcheck distclean distclean-generic distclean-hdr \
  66856. + distclean-libtool distclean-tags distcleancheck distdir \
  66857. distuninstallcheck dvi dvi-am html html-am info info-am \
  66858. install install-am install-binSCRIPTS install-data \
  66859. - install-data-am install-exec install-exec-am install-info \
  66860. - install-info-am install-m4dataDATA install-man \
  66861. - install-pkgconfigDATA install-strip installcheck \
  66862. - installcheck-am installdirs installdirs-am maintainer-clean \
  66863. - maintainer-clean-generic maintainer-clean-recursive \
  66864. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  66865. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  66866. - uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am \
  66867. - uninstall-m4dataDATA uninstall-pkgconfigDATA
  66868. + install-data-am install-dvi install-dvi-am install-exec \
  66869. + install-exec-am install-html install-html-am install-info \
  66870. + install-info-am install-m4dataDATA install-man install-pdf \
  66871. + install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
  66872. + install-strip installcheck installcheck-am installdirs \
  66873. + installdirs-am maintainer-clean maintainer-clean-generic \
  66874. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  66875. + ps ps-am tags tags-recursive uninstall uninstall-am \
  66876. + uninstall-binSCRIPTS uninstall-m4dataDATA \
  66877. + uninstall-pkgconfigDATA
  66878. dist-hook: audiofile.spec
  66879. cp audiofile.spec $(distdir)
  66880. +
  66881. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66882. # Otherwise a system limit (for SysV at least) may be exceeded.
  66883. .NOEXPORT:
  66884. diff -Nur audiofile-0.2.7.orig/missing audiofile-0.2.7/missing
  66885. --- audiofile-0.2.7.orig/missing 2006-03-23 07:16:37.000000000 +0100
  66886. +++ audiofile-0.2.7/missing 2011-02-24 20:00:34.244812362 +0100
  66887. @@ -1,10 +1,10 @@
  66888. #! /bin/sh
  66889. # Common stub for a few missing GNU programs while installing.
  66890. -scriptversion=2004-09-07.08
  66891. +scriptversion=2009-04-28.21; # UTC
  66892. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
  66893. -# Free Software Foundation, Inc.
  66894. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  66895. +# 2008, 2009 Free Software Foundation, Inc.
  66896. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  66897. # This program is free software; you can redistribute it and/or modify
  66898. @@ -18,9 +18,7 @@
  66899. # GNU General Public License for more details.
  66900. # You should have received a copy of the GNU General Public License
  66901. -# along with this program; if not, write to the Free Software
  66902. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  66903. -# 02111-1307, USA.
  66904. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  66905. # As a special exception to the GNU General Public License, if you
  66906. # distribute this file as part of a program that contains a
  66907. @@ -33,6 +31,8 @@
  66908. fi
  66909. run=:
  66910. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  66911. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  66912. # In the cases where this matters, `missing' is being run in the
  66913. # srcdir already.
  66914. @@ -44,7 +44,7 @@
  66915. msg="missing on your system"
  66916. -case "$1" in
  66917. +case $1 in
  66918. --run)
  66919. # Try to run requested program, and just exit if it succeeds.
  66920. run=
  66921. @@ -77,6 +77,7 @@
  66922. aclocal touch file \`aclocal.m4'
  66923. autoconf touch file \`configure'
  66924. autoheader touch file \`config.h.in'
  66925. + autom4te touch the output file, or create a stub one
  66926. automake touch all \`Makefile.in' files
  66927. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  66928. flex create \`lex.yy.c', if possible, from existing .c
  66929. @@ -86,13 +87,16 @@
  66930. tar try tar, gnutar, gtar, then tar without non-portable flags
  66931. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  66932. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  66933. +\`g' are ignored when checking the name.
  66934. +
  66935. Send bug reports to <bug-automake@gnu.org>."
  66936. - exit 0
  66937. + exit $?
  66938. ;;
  66939. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  66940. echo "missing $scriptversion (GNU Automake)"
  66941. - exit 0
  66942. + exit $?
  66943. ;;
  66944. -*)
  66945. @@ -103,15 +107,22 @@
  66946. esac
  66947. +# normalize program name to check for.
  66948. +program=`echo "$1" | sed '
  66949. + s/^gnu-//; t
  66950. + s/^gnu//; t
  66951. + s/^g//; t'`
  66952. +
  66953. # Now exit if we have it, but it failed. Also exit now if we
  66954. # don't have it and --version was passed (most likely to detect
  66955. -# the program).
  66956. -case "$1" in
  66957. - lex|yacc)
  66958. +# the program). This is about non-GNU programs, so use $1 not
  66959. +# $program.
  66960. +case $1 in
  66961. + lex*|yacc*)
  66962. # Not GNU programs, they don't have --version.
  66963. ;;
  66964. - tar)
  66965. + tar*)
  66966. if test -n "$run"; then
  66967. echo 1>&2 "ERROR: \`tar' requires --run"
  66968. exit 1
  66969. @@ -135,7 +146,7 @@
  66970. # If it does not exist, or fails to run (possibly an outdated version),
  66971. # try to emulate it.
  66972. -case "$1" in
  66973. +case $program in
  66974. aclocal*)
  66975. echo 1>&2 "\
  66976. WARNING: \`$1' is $msg. You should only need it if
  66977. @@ -145,7 +156,7 @@
  66978. touch aclocal.m4
  66979. ;;
  66980. - autoconf)
  66981. + autoconf*)
  66982. echo 1>&2 "\
  66983. WARNING: \`$1' is $msg. You should only need it if
  66984. you modified \`${configure_ac}'. You might want to install the
  66985. @@ -154,7 +165,7 @@
  66986. touch configure
  66987. ;;
  66988. - autoheader)
  66989. + autoheader*)
  66990. echo 1>&2 "\
  66991. WARNING: \`$1' is $msg. You should only need it if
  66992. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  66993. @@ -164,7 +175,7 @@
  66994. test -z "$files" && files="config.h"
  66995. touch_files=
  66996. for f in $files; do
  66997. - case "$f" in
  66998. + case $f in
  66999. *:*) touch_files="$touch_files "`echo "$f" |
  67000. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  67001. *) touch_files="$touch_files $f.in";;
  67002. @@ -184,7 +195,7 @@
  67003. while read f; do touch "$f"; done
  67004. ;;
  67005. - autom4te)
  67006. + autom4te*)
  67007. echo 1>&2 "\
  67008. WARNING: \`$1' is needed, but is $msg.
  67009. You might have modified some files without having the
  67010. @@ -192,8 +203,8 @@
  67011. You can get \`$1' as part of \`Autoconf' from any GNU
  67012. archive site."
  67013. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  67014. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  67015. + file=`echo "$*" | sed -n "$sed_output"`
  67016. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67017. if test -f "$file"; then
  67018. touch $file
  67019. else
  67020. @@ -207,80 +218,78 @@
  67021. fi
  67022. ;;
  67023. - bison|yacc)
  67024. + bison*|yacc*)
  67025. echo 1>&2 "\
  67026. WARNING: \`$1' $msg. You should only need it if
  67027. you modified a \`.y' file. You may need the \`Bison' package
  67028. in order for those modifications to take effect. You can get
  67029. \`Bison' from any GNU archive site."
  67030. rm -f y.tab.c y.tab.h
  67031. - if [ $# -ne 1 ]; then
  67032. + if test $# -ne 1; then
  67033. eval LASTARG="\${$#}"
  67034. - case "$LASTARG" in
  67035. + case $LASTARG in
  67036. *.y)
  67037. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  67038. - if [ -f "$SRCFILE" ]; then
  67039. + if test -f "$SRCFILE"; then
  67040. cp "$SRCFILE" y.tab.c
  67041. fi
  67042. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  67043. - if [ -f "$SRCFILE" ]; then
  67044. + if test -f "$SRCFILE"; then
  67045. cp "$SRCFILE" y.tab.h
  67046. fi
  67047. ;;
  67048. esac
  67049. fi
  67050. - if [ ! -f y.tab.h ]; then
  67051. + if test ! -f y.tab.h; then
  67052. echo >y.tab.h
  67053. fi
  67054. - if [ ! -f y.tab.c ]; then
  67055. + if test ! -f y.tab.c; then
  67056. echo 'main() { return 0; }' >y.tab.c
  67057. fi
  67058. ;;
  67059. - lex|flex)
  67060. + lex*|flex*)
  67061. echo 1>&2 "\
  67062. WARNING: \`$1' is $msg. You should only need it if
  67063. you modified a \`.l' file. You may need the \`Flex' package
  67064. in order for those modifications to take effect. You can get
  67065. \`Flex' from any GNU archive site."
  67066. rm -f lex.yy.c
  67067. - if [ $# -ne 1 ]; then
  67068. + if test $# -ne 1; then
  67069. eval LASTARG="\${$#}"
  67070. - case "$LASTARG" in
  67071. + case $LASTARG in
  67072. *.l)
  67073. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  67074. - if [ -f "$SRCFILE" ]; then
  67075. + if test -f "$SRCFILE"; then
  67076. cp "$SRCFILE" lex.yy.c
  67077. fi
  67078. ;;
  67079. esac
  67080. fi
  67081. - if [ ! -f lex.yy.c ]; then
  67082. + if test ! -f lex.yy.c; then
  67083. echo 'main() { return 0; }' >lex.yy.c
  67084. fi
  67085. ;;
  67086. - help2man)
  67087. + help2man*)
  67088. echo 1>&2 "\
  67089. WARNING: \`$1' is $msg. You should only need it if
  67090. you modified a dependency of a manual page. You may need the
  67091. \`Help2man' package in order for those modifications to take
  67092. effect. You can get \`Help2man' from any GNU archive site."
  67093. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  67094. - if test -z "$file"; then
  67095. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  67096. - fi
  67097. - if [ -f "$file" ]; then
  67098. + file=`echo "$*" | sed -n "$sed_output"`
  67099. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67100. + if test -f "$file"; then
  67101. touch $file
  67102. else
  67103. test -z "$file" || exec >$file
  67104. echo ".ab help2man is required to generate this page"
  67105. - exit 1
  67106. + exit $?
  67107. fi
  67108. ;;
  67109. - makeinfo)
  67110. + makeinfo*)
  67111. echo 1>&2 "\
  67112. WARNING: \`$1' is $msg. You should only need it if
  67113. you modified a \`.texi' or \`.texinfo' file, or any other file
  67114. @@ -288,15 +297,28 @@
  67115. call might also be the consequence of using a buggy \`make' (AIX,
  67116. DU, IRIX). You might want to install the \`Texinfo' package or
  67117. the \`GNU make' package. Grab either from any GNU archive site."
  67118. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  67119. + # The file to touch is that specified with -o ...
  67120. + file=`echo "$*" | sed -n "$sed_output"`
  67121. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67122. if test -z "$file"; then
  67123. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  67124. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  67125. - fi
  67126. + # ... or it is the one specified with @setfilename ...
  67127. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  67128. + file=`sed -n '
  67129. + /^@setfilename/{
  67130. + s/.* \([^ ]*\) *$/\1/
  67131. + p
  67132. + q
  67133. + }' $infile`
  67134. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  67135. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  67136. + fi
  67137. + # If the file does not exist, the user really needs makeinfo;
  67138. + # let's fail without touching anything.
  67139. + test -f $file || exit 1
  67140. touch $file
  67141. ;;
  67142. - tar)
  67143. + tar*)
  67144. shift
  67145. # We have already tried tar in the generic part.
  67146. @@ -310,13 +332,13 @@
  67147. fi
  67148. firstarg="$1"
  67149. if shift; then
  67150. - case "$firstarg" in
  67151. + case $firstarg in
  67152. *o*)
  67153. firstarg=`echo "$firstarg" | sed s/o//`
  67154. tar "$firstarg" "$@" && exit 0
  67155. ;;
  67156. esac
  67157. - case "$firstarg" in
  67158. + case $firstarg in
  67159. *h*)
  67160. firstarg=`echo "$firstarg" | sed s/h//`
  67161. tar "$firstarg" "$@" && exit 0
  67162. @@ -349,5 +371,6 @@
  67163. # eval: (add-hook 'write-file-hooks 'time-stamp)
  67164. # time-stamp-start: "scriptversion="
  67165. # time-stamp-format: "%:y-%02m-%02d.%02H"
  67166. -# time-stamp-end: "$"
  67167. +# time-stamp-time-zone: "UTC"
  67168. +# time-stamp-end: "; # UTC"
  67169. # End:
  67170. diff -Nur audiofile-0.2.7.orig/sfcommands/Makefile.in audiofile-0.2.7/sfcommands/Makefile.in
  67171. --- audiofile-0.2.7.orig/sfcommands/Makefile.in 2010-03-22 06:45:50.000000000 +0100
  67172. +++ audiofile-0.2.7/sfcommands/Makefile.in 2011-02-24 20:00:34.574804447 +0100
  67173. @@ -1,8 +1,9 @@
  67174. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  67175. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67176. # @configure_input@
  67177. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67178. -# 2003, 2004 Free Software Foundation, Inc.
  67179. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67180. +# Inc.
  67181. # This Makefile.in is free software; the Free Software Foundation
  67182. # gives unlimited permission to copy and/or distribute it,
  67183. # with or without modifications, as long as this notice is preserved.
  67184. @@ -14,17 +15,12 @@
  67185. @SET_MAKE@
  67186. -SOURCES = $(sfconvert_SOURCES) $(sfinfo_SOURCES)
  67187. -
  67188. -srcdir = @srcdir@
  67189. -top_srcdir = @top_srcdir@
  67190. VPATH = @srcdir@
  67191. pkgdatadir = $(datadir)/@PACKAGE@
  67192. -pkglibdir = $(libdir)/@PACKAGE@
  67193. pkgincludedir = $(includedir)/@PACKAGE@
  67194. -top_builddir = ..
  67195. +pkglibdir = $(libdir)/@PACKAGE@
  67196. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67197. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67198. -INSTALL = @INSTALL@
  67199. install_sh_DATA = $(install_sh) -c -m 644
  67200. install_sh_PROGRAM = $(install_sh) -c
  67201. install_sh_SCRIPT = $(install_sh) -c
  67202. @@ -48,8 +44,8 @@
  67203. mkinstalldirs = $(install_sh) -d
  67204. CONFIG_HEADER = $(top_builddir)/config.h
  67205. CONFIG_CLEAN_FILES =
  67206. +CONFIG_CLEAN_VPATH_FILES =
  67207. am__installdirs = "$(DESTDIR)$(bindir)"
  67208. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  67209. PROGRAMS = $(bin_PROGRAMS)
  67210. am_sfconvert_OBJECTS = sfconvert.$(OBJEXT) printinfo.$(OBJEXT)
  67211. sfconvert_OBJECTS = $(am_sfconvert_OBJECTS)
  67212. @@ -59,25 +55,25 @@
  67213. sfinfo_OBJECTS = $(am_sfinfo_OBJECTS)
  67214. sfinfo_LDADD = $(LDADD)
  67215. sfinfo_DEPENDENCIES = $(top_builddir)/libaudiofile/libaudiofile.la
  67216. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  67217. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  67218. depcomp = $(SHELL) $(top_srcdir)/depcomp
  67219. am__depfiles_maybe = depfiles
  67220. +am__mv = mv -f
  67221. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  67222. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67223. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  67224. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  67225. - $(AM_CFLAGS) $(CFLAGS)
  67226. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67227. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  67228. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67229. CCLD = $(CC)
  67230. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  67231. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  67232. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67233. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  67234. + $(LDFLAGS) -o $@
  67235. SOURCES = $(sfconvert_SOURCES) $(sfinfo_SOURCES)
  67236. DIST_SOURCES = $(sfconvert_SOURCES) $(sfinfo_SOURCES)
  67237. ETAGS = etags
  67238. CTAGS = ctags
  67239. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67240. ACLOCAL = @ACLOCAL@
  67241. -AMDEP_FALSE = @AMDEP_FALSE@
  67242. -AMDEP_TRUE = @AMDEP_TRUE@
  67243. AMTAR = @AMTAR@
  67244. AR = @AR@
  67245. AS = @AS@
  67246. @@ -96,56 +92,61 @@
  67247. CFLAGS = @CFLAGS@
  67248. CPP = @CPP@
  67249. CPPFLAGS = @CPPFLAGS@
  67250. -CXX = @CXX@
  67251. -CXXCPP = @CXXCPP@
  67252. -CXXDEPMODE = @CXXDEPMODE@
  67253. -CXXFLAGS = @CXXFLAGS@
  67254. CYGPATH_W = @CYGPATH_W@
  67255. DEFS = @DEFS@
  67256. DEPDIR = @DEPDIR@
  67257. DLLTOOL = @DLLTOOL@
  67258. -ECHO = @ECHO@
  67259. +DSYMUTIL = @DSYMUTIL@
  67260. +DUMPBIN = @DUMPBIN@
  67261. ECHO_C = @ECHO_C@
  67262. ECHO_N = @ECHO_N@
  67263. ECHO_T = @ECHO_T@
  67264. EGREP = @EGREP@
  67265. EXEEXT = @EXEEXT@
  67266. -F77 = @F77@
  67267. -FFLAGS = @FFLAGS@
  67268. +FGREP = @FGREP@
  67269. GREP = @GREP@
  67270. +INSTALL = @INSTALL@
  67271. INSTALL_DATA = @INSTALL_DATA@
  67272. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67273. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67274. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67275. +LD = @LD@
  67276. LDFLAGS = @LDFLAGS@
  67277. LIBOBJS = @LIBOBJS@
  67278. LIBS = @LIBS@
  67279. LIBTOOL = @LIBTOOL@
  67280. +LIPO = @LIPO@
  67281. LN_S = @LN_S@
  67282. LTLIBOBJS = @LTLIBOBJS@
  67283. MAKEINFO = @MAKEINFO@
  67284. +MKDIR_P = @MKDIR_P@
  67285. +NM = @NM@
  67286. +NMEDIT = @NMEDIT@
  67287. OBJDUMP = @OBJDUMP@
  67288. OBJEXT = @OBJEXT@
  67289. +OTOOL = @OTOOL@
  67290. +OTOOL64 = @OTOOL64@
  67291. PACKAGE = @PACKAGE@
  67292. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67293. PACKAGE_NAME = @PACKAGE_NAME@
  67294. PACKAGE_STRING = @PACKAGE_STRING@
  67295. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67296. +PACKAGE_URL = @PACKAGE_URL@
  67297. PACKAGE_VERSION = @PACKAGE_VERSION@
  67298. PATH_SEPARATOR = @PATH_SEPARATOR@
  67299. RANLIB = @RANLIB@
  67300. +SED = @SED@
  67301. SET_MAKE = @SET_MAKE@
  67302. SHELL = @SHELL@
  67303. STRIP = @STRIP@
  67304. TEST_BIN = @TEST_BIN@
  67305. VERSION = @VERSION@
  67306. +abs_builddir = @abs_builddir@
  67307. +abs_srcdir = @abs_srcdir@
  67308. +abs_top_builddir = @abs_top_builddir@
  67309. +abs_top_srcdir = @abs_top_srcdir@
  67310. ac_ct_CC = @ac_ct_CC@
  67311. -ac_ct_CXX = @ac_ct_CXX@
  67312. -ac_ct_F77 = @ac_ct_F77@
  67313. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  67314. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  67315. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  67316. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  67317. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67318. am__include = @am__include@
  67319. am__leading_dot = @am__leading_dot@
  67320. am__quote = @am__quote@
  67321. @@ -157,6 +158,7 @@
  67322. build_cpu = @build_cpu@
  67323. build_os = @build_os@
  67324. build_vendor = @build_vendor@
  67325. +builddir = @builddir@
  67326. datadir = @datadir@
  67327. datarootdir = @datarootdir@
  67328. docdir = @docdir@
  67329. @@ -175,6 +177,7 @@
  67330. libexecdir = @libexecdir@
  67331. localedir = @localedir@
  67332. localstatedir = @localstatedir@
  67333. +lt_ECHO = @lt_ECHO@
  67334. mandir = @mandir@
  67335. mkdir_p = @mkdir_p@
  67336. oldincludedir = @oldincludedir@
  67337. @@ -184,8 +187,12 @@
  67338. psdir = @psdir@
  67339. sbindir = @sbindir@
  67340. sharedstatedir = @sharedstatedir@
  67341. +srcdir = @srcdir@
  67342. sysconfdir = @sysconfdir@
  67343. target_alias = @target_alias@
  67344. +top_build_prefix = @top_build_prefix@
  67345. +top_builddir = @top_builddir@
  67346. +top_srcdir = @top_srcdir@
  67347. INCLUDES = -I$(top_srcdir)/libaudiofile
  67348. EXTRA_DIST = README
  67349. sfconvert_SOURCES = sfconvert.c printinfo.c
  67350. @@ -200,14 +207,14 @@
  67351. @for dep in $?; do \
  67352. case '$(am__configure_deps)' in \
  67353. *$$dep*) \
  67354. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  67355. - && exit 0; \
  67356. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  67357. + && { if test -f $@; then exit 0; else break; fi; }; \
  67358. exit 1;; \
  67359. esac; \
  67360. done; \
  67361. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sfcommands/Makefile'; \
  67362. - cd $(top_srcdir) && \
  67363. - $(AUTOMAKE) --gnu sfcommands/Makefile
  67364. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sfcommands/Makefile'; \
  67365. + $(am__cd) $(top_srcdir) && \
  67366. + $(AUTOMAKE) --gnu sfcommands/Makefile
  67367. .PRECIOUS: Makefile
  67368. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67369. @case '$?' in \
  67370. @@ -225,40 +232,56 @@
  67371. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67372. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  67373. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67374. +$(am__aclocal_m4_deps):
  67375. install-binPROGRAMS: $(bin_PROGRAMS)
  67376. @$(NORMAL_INSTALL)
  67377. - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  67378. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67379. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67380. - if test -f $$p \
  67381. - || test -f $$p1 \
  67382. - ; then \
  67383. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  67384. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  67385. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  67386. - else :; fi; \
  67387. - done
  67388. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  67389. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  67390. + for p in $$list; do echo "$$p $$p"; done | \
  67391. + sed 's/$(EXEEXT)$$//' | \
  67392. + while read p p1; do if test -f $$p || test -f $$p1; \
  67393. + then echo "$$p"; echo "$$p"; else :; fi; \
  67394. + done | \
  67395. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  67396. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  67397. + sed 'N;N;N;s,\n, ,g' | \
  67398. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  67399. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  67400. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  67401. + else { print "f", $$3 "/" $$4, $$1; } } \
  67402. + END { for (d in files) print "f", d, files[d] }' | \
  67403. + while read type dir files; do \
  67404. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  67405. + test -z "$$files" || { \
  67406. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  67407. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  67408. + } \
  67409. + ; done
  67410. uninstall-binPROGRAMS:
  67411. @$(NORMAL_UNINSTALL)
  67412. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67413. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  67414. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  67415. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  67416. - done
  67417. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  67418. + files=`for p in $$list; do echo "$$p"; done | \
  67419. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  67420. + -e 's/$$/$(EXEEXT)/' `; \
  67421. + test -n "$$list" || exit 0; \
  67422. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  67423. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  67424. clean-binPROGRAMS:
  67425. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67426. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67427. - echo " rm -f $$p $$f"; \
  67428. - rm -f $$p $$f ; \
  67429. - done
  67430. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  67431. + echo " rm -f" $$list; \
  67432. + rm -f $$list || exit $$?; \
  67433. + test -n "$(EXEEXT)" || exit 0; \
  67434. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  67435. + echo " rm -f" $$list; \
  67436. + rm -f $$list
  67437. sfconvert$(EXEEXT): $(sfconvert_OBJECTS) $(sfconvert_DEPENDENCIES)
  67438. @rm -f sfconvert$(EXEEXT)
  67439. - $(LINK) $(sfconvert_LDFLAGS) $(sfconvert_OBJECTS) $(sfconvert_LDADD) $(LIBS)
  67440. + $(LINK) $(sfconvert_OBJECTS) $(sfconvert_LDADD) $(LIBS)
  67441. sfinfo$(EXEEXT): $(sfinfo_OBJECTS) $(sfinfo_DEPENDENCIES)
  67442. @rm -f sfinfo$(EXEEXT)
  67443. - $(LINK) $(sfinfo_LDFLAGS) $(sfinfo_OBJECTS) $(sfinfo_LDADD) $(LIBS)
  67444. + $(LINK) $(sfinfo_OBJECTS) $(sfinfo_LDADD) $(LIBS)
  67445. mostlyclean-compile:
  67446. -rm -f *.$(OBJEXT)
  67447. @@ -271,22 +294,22 @@
  67448. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sfinfo.Po@am__quote@
  67449. .c.o:
  67450. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  67451. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  67452. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  67453. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  67454. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  67455. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  67456. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  67457. .c.obj:
  67458. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  67459. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  67460. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  67461. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  67462. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  67463. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  67464. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  67465. .c.lo:
  67466. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  67467. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  67468. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  67469. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  67470. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  67471. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  67472. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  67473. @@ -297,82 +320,85 @@
  67474. clean-libtool:
  67475. -rm -rf .libs _libs
  67476. -distclean-libtool:
  67477. - -rm -f libtool
  67478. -uninstall-info-am:
  67479. -
  67480. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  67481. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67482. unique=`for i in $$list; do \
  67483. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67484. done | \
  67485. - $(AWK) ' { files[$$0] = 1; } \
  67486. - END { for (i in files) print i; }'`; \
  67487. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67488. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67489. mkid -fID $$unique
  67490. tags: TAGS
  67491. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  67492. $(TAGS_FILES) $(LISP)
  67493. - tags=; \
  67494. + set x; \
  67495. here=`pwd`; \
  67496. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67497. unique=`for i in $$list; do \
  67498. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67499. done | \
  67500. - $(AWK) ' { files[$$0] = 1; } \
  67501. - END { for (i in files) print i; }'`; \
  67502. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  67503. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67504. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67505. + shift; \
  67506. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  67507. test -n "$$unique" || unique=$$empty_fix; \
  67508. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67509. - $$tags $$unique; \
  67510. + if test $$# -gt 0; then \
  67511. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67512. + "$$@" $$unique; \
  67513. + else \
  67514. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67515. + $$unique; \
  67516. + fi; \
  67517. fi
  67518. ctags: CTAGS
  67519. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  67520. $(TAGS_FILES) $(LISP)
  67521. - tags=; \
  67522. - here=`pwd`; \
  67523. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67524. unique=`for i in $$list; do \
  67525. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67526. done | \
  67527. - $(AWK) ' { files[$$0] = 1; } \
  67528. - END { for (i in files) print i; }'`; \
  67529. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  67530. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67531. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67532. + test -z "$(CTAGS_ARGS)$$unique" \
  67533. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  67534. - $$tags $$unique
  67535. + $$unique
  67536. GTAGS:
  67537. here=`$(am__cd) $(top_builddir) && pwd` \
  67538. - && cd $(top_srcdir) \
  67539. - && gtags -i $(GTAGS_ARGS) $$here
  67540. + && $(am__cd) $(top_srcdir) \
  67541. + && gtags -i $(GTAGS_ARGS) "$$here"
  67542. distclean-tags:
  67543. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  67544. distdir: $(DISTFILES)
  67545. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  67546. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  67547. - list='$(DISTFILES)'; for file in $$list; do \
  67548. - case $$file in \
  67549. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  67550. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  67551. - esac; \
  67552. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67553. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67554. + list='$(DISTFILES)'; \
  67555. + dist_files=`for file in $$list; do echo $$file; done | \
  67556. + sed -e "s|^$$srcdirstrip/||;t" \
  67557. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  67558. + case $$dist_files in \
  67559. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  67560. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  67561. + sort -u` ;; \
  67562. + esac; \
  67563. + for file in $$dist_files; do \
  67564. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  67565. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  67566. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  67567. - dir="/$$dir"; \
  67568. - $(mkdir_p) "$(distdir)$$dir"; \
  67569. - else \
  67570. - dir=''; \
  67571. - fi; \
  67572. if test -d $$d/$$file; then \
  67573. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  67574. + if test -d "$(distdir)/$$file"; then \
  67575. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67576. + fi; \
  67577. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  67578. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  67579. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  67580. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67581. fi; \
  67582. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  67583. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  67584. else \
  67585. - test -f $(distdir)/$$file \
  67586. - || cp -p $$d/$$file $(distdir)/$$file \
  67587. + test -f "$(distdir)/$$file" \
  67588. + || cp -p $$d/$$file "$(distdir)/$$file" \
  67589. || exit 1; \
  67590. fi; \
  67591. done
  67592. @@ -381,7 +407,7 @@
  67593. all-am: Makefile $(PROGRAMS)
  67594. installdirs:
  67595. for dir in "$(DESTDIR)$(bindir)"; do \
  67596. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  67597. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  67598. done
  67599. install: install-am
  67600. install-exec: install-exec-am
  67601. @@ -403,6 +429,7 @@
  67602. distclean-generic:
  67603. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  67604. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  67605. maintainer-clean-generic:
  67606. @echo "This command is intended for maintainers to use"
  67607. @@ -415,7 +442,7 @@
  67608. -rm -rf ./$(DEPDIR)
  67609. -rm -f Makefile
  67610. distclean-am: clean-am distclean-compile distclean-generic \
  67611. - distclean-libtool distclean-tags
  67612. + distclean-tags
  67613. dvi: dvi-am
  67614. @@ -423,18 +450,38 @@
  67615. html: html-am
  67616. +html-am:
  67617. +
  67618. info: info-am
  67619. info-am:
  67620. install-data-am:
  67621. +install-dvi: install-dvi-am
  67622. +
  67623. +install-dvi-am:
  67624. +
  67625. install-exec-am: install-binPROGRAMS
  67626. +install-html: install-html-am
  67627. +
  67628. +install-html-am:
  67629. +
  67630. install-info: install-info-am
  67631. +install-info-am:
  67632. +
  67633. install-man:
  67634. +install-pdf: install-pdf-am
  67635. +
  67636. +install-pdf-am:
  67637. +
  67638. +install-ps: install-ps-am
  67639. +
  67640. +install-ps-am:
  67641. +
  67642. installcheck-am:
  67643. maintainer-clean: maintainer-clean-am
  67644. @@ -455,19 +502,24 @@
  67645. ps-am:
  67646. -uninstall-am: uninstall-binPROGRAMS uninstall-info-am
  67647. +uninstall-am: uninstall-binPROGRAMS
  67648. +
  67649. +.MAKE: install-am install-strip
  67650. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
  67651. clean-generic clean-libtool ctags distclean distclean-compile \
  67652. distclean-generic distclean-libtool distclean-tags distdir dvi \
  67653. dvi-am html html-am info info-am install install-am \
  67654. - install-binPROGRAMS install-data install-data-am install-exec \
  67655. - install-exec-am install-info install-info-am install-man \
  67656. + install-binPROGRAMS install-data install-data-am install-dvi \
  67657. + install-dvi-am install-exec install-exec-am install-html \
  67658. + install-html-am install-info install-info-am install-man \
  67659. + install-pdf install-pdf-am install-ps install-ps-am \
  67660. install-strip installcheck installcheck-am installdirs \
  67661. maintainer-clean maintainer-clean-generic mostlyclean \
  67662. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  67663. pdf pdf-am ps ps-am tags uninstall uninstall-am \
  67664. - uninstall-binPROGRAMS uninstall-info-am
  67665. + uninstall-binPROGRAMS
  67666. +
  67667. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  67668. # Otherwise a system limit (for SysV at least) may be exceeded.
  67669. diff -Nur audiofile-0.2.7.orig/test/Makefile.in audiofile-0.2.7/test/Makefile.in
  67670. --- audiofile-0.2.7.orig/test/Makefile.in 2010-03-22 06:45:51.000000000 +0100
  67671. +++ audiofile-0.2.7/test/Makefile.in 2011-02-24 20:00:34.664802436 +0100
  67672. @@ -1,8 +1,9 @@
  67673. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  67674. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67675. # @configure_input@
  67676. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67677. -# 2003, 2004 Free Software Foundation, Inc.
  67678. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67679. +# Inc.
  67680. # This Makefile.in is free software; the Free Software Foundation
  67681. # gives unlimited permission to copy and/or distribute it,
  67682. # with or without modifications, as long as this notice is preserved.
  67683. @@ -14,17 +15,12 @@
  67684. @SET_MAKE@
  67685. -SOURCES = error.c floatto24.c instparamtest.c instparamwrite.c large.c loop.c miscread.c miscwrite.c pipe.c printmarkers.c query2.c seek.c sixteen-to-eight.c testaupv.c testchannelmatrix.c testdouble.c testfloat.c testmarkers.c transparency.c twentyfour.c twentyfour2.c writeaiff.c writealaw.c writeavr.c writeiff.c writeircam.c writenext.c writenist.c writeraw.c writeulaw.c writewave.c
  67686. -
  67687. -srcdir = @srcdir@
  67688. -top_srcdir = @top_srcdir@
  67689. VPATH = @srcdir@
  67690. pkgdatadir = $(datadir)/@PACKAGE@
  67691. -pkglibdir = $(libdir)/@PACKAGE@
  67692. pkgincludedir = $(includedir)/@PACKAGE@
  67693. -top_builddir = ..
  67694. +pkglibdir = $(libdir)/@PACKAGE@
  67695. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67696. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67697. -INSTALL = @INSTALL@
  67698. install_sh_DATA = $(install_sh) -c -m 644
  67699. install_sh_PROGRAM = $(install_sh) -c
  67700. install_sh_SCRIPT = $(install_sh) -c
  67701. @@ -49,6 +45,14 @@
  67702. testdouble$(EXEEXT) twentyfour$(EXEEXT) twentyfour2$(EXEEXT) \
  67703. pipe$(EXEEXT) testmarkers$(EXEEXT) testchannelmatrix$(EXEEXT) \
  67704. printmarkers$(EXEEXT) seek$(EXEEXT) large$(EXEEXT)
  67705. +TESTS = error$(EXEEXT) writeaiff$(EXEEXT) writeircam$(EXEEXT) \
  67706. + writenext$(EXEEXT) writewave$(EXEEXT) writeraw$(EXEEXT) \
  67707. + writeavr$(EXEEXT) writeiff$(EXEEXT) writenist$(EXEEXT) \
  67708. + writeulaw$(EXEEXT) writealaw$(EXEEXT) misc.sh transparency.sh \
  67709. + pipe.sh query2$(EXEEXT) sixteen-to-eight$(EXEEXT) \
  67710. + twentyfour$(EXEEXT) twentyfour2$(EXEEXT) floatto24$(EXEEXT) \
  67711. + testfloat$(EXEEXT) testdouble$(EXEEXT) testmarkers$(EXEEXT) \
  67712. + testchannelmatrix$(EXEEXT) seek$(EXEEXT) large$(EXEEXT)
  67713. subdir = test
  67714. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  67715. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67716. @@ -58,6 +62,7 @@
  67717. mkinstalldirs = $(install_sh) -d
  67718. CONFIG_HEADER = $(top_builddir)/config.h
  67719. CONFIG_CLEAN_FILES =
  67720. +CONFIG_CLEAN_VPATH_FILES =
  67721. PROGRAMS = $(noinst_PROGRAMS)
  67722. error_SOURCES = error.c
  67723. error_OBJECTS = error.$(OBJEXT)
  67724. @@ -194,17 +199,19 @@
  67725. writewave_OBJECTS = writewave.$(OBJEXT)
  67726. writewave_LDADD = $(LDADD)
  67727. writewave_DEPENDENCIES = $(top_builddir)/libaudiofile/libaudiofile.la
  67728. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  67729. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  67730. depcomp = $(SHELL) $(top_srcdir)/depcomp
  67731. am__depfiles_maybe = depfiles
  67732. +am__mv = mv -f
  67733. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  67734. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67735. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  67736. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  67737. - $(AM_CFLAGS) $(CFLAGS)
  67738. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67739. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  67740. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67741. CCLD = $(CC)
  67742. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  67743. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  67744. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67745. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  67746. + $(LDFLAGS) -o $@
  67747. SOURCES = error.c floatto24.c instparamtest.c instparamwrite.c large.c \
  67748. loop.c miscread.c miscwrite.c pipe.c printmarkers.c query2.c \
  67749. seek.c sixteen-to-eight.c testaupv.c testchannelmatrix.c \
  67750. @@ -221,10 +228,10 @@
  67751. writenist.c writeraw.c writeulaw.c writewave.c
  67752. ETAGS = etags
  67753. CTAGS = ctags
  67754. +am__tty_colors = \
  67755. +red=; grn=; lgn=; blu=; std=
  67756. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67757. ACLOCAL = @ACLOCAL@
  67758. -AMDEP_FALSE = @AMDEP_FALSE@
  67759. -AMDEP_TRUE = @AMDEP_TRUE@
  67760. AMTAR = @AMTAR@
  67761. AR = @AR@
  67762. AS = @AS@
  67763. @@ -243,56 +250,61 @@
  67764. CFLAGS = @CFLAGS@
  67765. CPP = @CPP@
  67766. CPPFLAGS = @CPPFLAGS@
  67767. -CXX = @CXX@
  67768. -CXXCPP = @CXXCPP@
  67769. -CXXDEPMODE = @CXXDEPMODE@
  67770. -CXXFLAGS = @CXXFLAGS@
  67771. CYGPATH_W = @CYGPATH_W@
  67772. DEFS = @DEFS@
  67773. DEPDIR = @DEPDIR@
  67774. DLLTOOL = @DLLTOOL@
  67775. -ECHO = @ECHO@
  67776. +DSYMUTIL = @DSYMUTIL@
  67777. +DUMPBIN = @DUMPBIN@
  67778. ECHO_C = @ECHO_C@
  67779. ECHO_N = @ECHO_N@
  67780. ECHO_T = @ECHO_T@
  67781. EGREP = @EGREP@
  67782. EXEEXT = @EXEEXT@
  67783. -F77 = @F77@
  67784. -FFLAGS = @FFLAGS@
  67785. +FGREP = @FGREP@
  67786. GREP = @GREP@
  67787. +INSTALL = @INSTALL@
  67788. INSTALL_DATA = @INSTALL_DATA@
  67789. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67790. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67791. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67792. +LD = @LD@
  67793. LDFLAGS = @LDFLAGS@
  67794. LIBOBJS = @LIBOBJS@
  67795. LIBS = @LIBS@
  67796. LIBTOOL = @LIBTOOL@
  67797. +LIPO = @LIPO@
  67798. LN_S = @LN_S@
  67799. LTLIBOBJS = @LTLIBOBJS@
  67800. MAKEINFO = @MAKEINFO@
  67801. +MKDIR_P = @MKDIR_P@
  67802. +NM = @NM@
  67803. +NMEDIT = @NMEDIT@
  67804. OBJDUMP = @OBJDUMP@
  67805. OBJEXT = @OBJEXT@
  67806. +OTOOL = @OTOOL@
  67807. +OTOOL64 = @OTOOL64@
  67808. PACKAGE = @PACKAGE@
  67809. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67810. PACKAGE_NAME = @PACKAGE_NAME@
  67811. PACKAGE_STRING = @PACKAGE_STRING@
  67812. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67813. +PACKAGE_URL = @PACKAGE_URL@
  67814. PACKAGE_VERSION = @PACKAGE_VERSION@
  67815. PATH_SEPARATOR = @PATH_SEPARATOR@
  67816. RANLIB = @RANLIB@
  67817. +SED = @SED@
  67818. SET_MAKE = @SET_MAKE@
  67819. SHELL = @SHELL@
  67820. STRIP = @STRIP@
  67821. TEST_BIN = @TEST_BIN@
  67822. VERSION = @VERSION@
  67823. +abs_builddir = @abs_builddir@
  67824. +abs_srcdir = @abs_srcdir@
  67825. +abs_top_builddir = @abs_top_builddir@
  67826. +abs_top_srcdir = @abs_top_srcdir@
  67827. ac_ct_CC = @ac_ct_CC@
  67828. -ac_ct_CXX = @ac_ct_CXX@
  67829. -ac_ct_F77 = @ac_ct_F77@
  67830. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  67831. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  67832. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  67833. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  67834. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67835. am__include = @am__include@
  67836. am__leading_dot = @am__leading_dot@
  67837. am__quote = @am__quote@
  67838. @@ -304,6 +316,7 @@
  67839. build_cpu = @build_cpu@
  67840. build_os = @build_os@
  67841. build_vendor = @build_vendor@
  67842. +builddir = @builddir@
  67843. datadir = @datadir@
  67844. datarootdir = @datarootdir@
  67845. docdir = @docdir@
  67846. @@ -322,6 +335,7 @@
  67847. libexecdir = @libexecdir@
  67848. localedir = @localedir@
  67849. localstatedir = @localstatedir@
  67850. +lt_ECHO = @lt_ECHO@
  67851. mandir = @mandir@
  67852. mkdir_p = @mkdir_p@
  67853. oldincludedir = @oldincludedir@
  67854. @@ -331,17 +345,14 @@
  67855. psdir = @psdir@
  67856. sbindir = @sbindir@
  67857. sharedstatedir = @sharedstatedir@
  67858. +srcdir = @srcdir@
  67859. sysconfdir = @sysconfdir@
  67860. target_alias = @target_alias@
  67861. +top_build_prefix = @top_build_prefix@
  67862. +top_builddir = @top_builddir@
  67863. +top_srcdir = @top_srcdir@
  67864. INCLUDES = -I$(top_srcdir)/libaudiofile
  67865. EXTRA_DIST = transparency.sh misc.sh pipe.sh
  67866. -TESTS = error writeaiff writeircam writenext writewave writeraw \
  67867. - writeavr writeiff writenist \
  67868. - writeulaw writealaw \
  67869. - misc.sh transparency.sh pipe.sh \
  67870. - query2 sixteen-to-eight twentyfour twentyfour2 floatto24 \
  67871. - testfloat testdouble testmarkers testchannelmatrix seek large
  67872. -
  67873. LDADD = $(top_builddir)/libaudiofile/libaudiofile.la
  67874. DEPENDENCIES = $(top_builddir)/libaudiofile/libaudiofile.la
  67875. all: all-am
  67876. @@ -352,14 +363,14 @@
  67877. @for dep in $?; do \
  67878. case '$(am__configure_deps)' in \
  67879. *$$dep*) \
  67880. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  67881. - && exit 0; \
  67882. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  67883. + && { if test -f $@; then exit 0; else break; fi; }; \
  67884. exit 1;; \
  67885. esac; \
  67886. done; \
  67887. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
  67888. - cd $(top_srcdir) && \
  67889. - $(AUTOMAKE) --gnu test/Makefile
  67890. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
  67891. + $(am__cd) $(top_srcdir) && \
  67892. + $(AUTOMAKE) --gnu test/Makefile
  67893. .PRECIOUS: Makefile
  67894. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67895. @case '$?' in \
  67896. @@ -377,106 +388,109 @@
  67897. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67898. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  67899. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67900. +$(am__aclocal_m4_deps):
  67901. clean-noinstPROGRAMS:
  67902. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  67903. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67904. - echo " rm -f $$p $$f"; \
  67905. - rm -f $$p $$f ; \
  67906. - done
  67907. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  67908. + echo " rm -f" $$list; \
  67909. + rm -f $$list || exit $$?; \
  67910. + test -n "$(EXEEXT)" || exit 0; \
  67911. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  67912. + echo " rm -f" $$list; \
  67913. + rm -f $$list
  67914. error$(EXEEXT): $(error_OBJECTS) $(error_DEPENDENCIES)
  67915. @rm -f error$(EXEEXT)
  67916. - $(LINK) $(error_LDFLAGS) $(error_OBJECTS) $(error_LDADD) $(LIBS)
  67917. + $(LINK) $(error_OBJECTS) $(error_LDADD) $(LIBS)
  67918. floatto24$(EXEEXT): $(floatto24_OBJECTS) $(floatto24_DEPENDENCIES)
  67919. @rm -f floatto24$(EXEEXT)
  67920. - $(LINK) $(floatto24_LDFLAGS) $(floatto24_OBJECTS) $(floatto24_LDADD) $(LIBS)
  67921. + $(LINK) $(floatto24_OBJECTS) $(floatto24_LDADD) $(LIBS)
  67922. instparamtest$(EXEEXT): $(instparamtest_OBJECTS) $(instparamtest_DEPENDENCIES)
  67923. @rm -f instparamtest$(EXEEXT)
  67924. - $(LINK) $(instparamtest_LDFLAGS) $(instparamtest_OBJECTS) $(instparamtest_LDADD) $(LIBS)
  67925. + $(LINK) $(instparamtest_OBJECTS) $(instparamtest_LDADD) $(LIBS)
  67926. instparamwrite$(EXEEXT): $(instparamwrite_OBJECTS) $(instparamwrite_DEPENDENCIES)
  67927. @rm -f instparamwrite$(EXEEXT)
  67928. - $(LINK) $(instparamwrite_LDFLAGS) $(instparamwrite_OBJECTS) $(instparamwrite_LDADD) $(LIBS)
  67929. + $(LINK) $(instparamwrite_OBJECTS) $(instparamwrite_LDADD) $(LIBS)
  67930. large$(EXEEXT): $(large_OBJECTS) $(large_DEPENDENCIES)
  67931. @rm -f large$(EXEEXT)
  67932. - $(LINK) $(large_LDFLAGS) $(large_OBJECTS) $(large_LDADD) $(LIBS)
  67933. + $(LINK) $(large_OBJECTS) $(large_LDADD) $(LIBS)
  67934. loop$(EXEEXT): $(loop_OBJECTS) $(loop_DEPENDENCIES)
  67935. @rm -f loop$(EXEEXT)
  67936. - $(LINK) $(loop_LDFLAGS) $(loop_OBJECTS) $(loop_LDADD) $(LIBS)
  67937. + $(LINK) $(loop_OBJECTS) $(loop_LDADD) $(LIBS)
  67938. miscread$(EXEEXT): $(miscread_OBJECTS) $(miscread_DEPENDENCIES)
  67939. @rm -f miscread$(EXEEXT)
  67940. - $(LINK) $(miscread_LDFLAGS) $(miscread_OBJECTS) $(miscread_LDADD) $(LIBS)
  67941. + $(LINK) $(miscread_OBJECTS) $(miscread_LDADD) $(LIBS)
  67942. miscwrite$(EXEEXT): $(miscwrite_OBJECTS) $(miscwrite_DEPENDENCIES)
  67943. @rm -f miscwrite$(EXEEXT)
  67944. - $(LINK) $(miscwrite_LDFLAGS) $(miscwrite_OBJECTS) $(miscwrite_LDADD) $(LIBS)
  67945. + $(LINK) $(miscwrite_OBJECTS) $(miscwrite_LDADD) $(LIBS)
  67946. pipe$(EXEEXT): $(pipe_OBJECTS) $(pipe_DEPENDENCIES)
  67947. @rm -f pipe$(EXEEXT)
  67948. - $(LINK) $(pipe_LDFLAGS) $(pipe_OBJECTS) $(pipe_LDADD) $(LIBS)
  67949. + $(LINK) $(pipe_OBJECTS) $(pipe_LDADD) $(LIBS)
  67950. printmarkers$(EXEEXT): $(printmarkers_OBJECTS) $(printmarkers_DEPENDENCIES)
  67951. @rm -f printmarkers$(EXEEXT)
  67952. - $(LINK) $(printmarkers_LDFLAGS) $(printmarkers_OBJECTS) $(printmarkers_LDADD) $(LIBS)
  67953. + $(LINK) $(printmarkers_OBJECTS) $(printmarkers_LDADD) $(LIBS)
  67954. query2$(EXEEXT): $(query2_OBJECTS) $(query2_DEPENDENCIES)
  67955. @rm -f query2$(EXEEXT)
  67956. - $(LINK) $(query2_LDFLAGS) $(query2_OBJECTS) $(query2_LDADD) $(LIBS)
  67957. + $(LINK) $(query2_OBJECTS) $(query2_LDADD) $(LIBS)
  67958. seek$(EXEEXT): $(seek_OBJECTS) $(seek_DEPENDENCIES)
  67959. @rm -f seek$(EXEEXT)
  67960. - $(LINK) $(seek_LDFLAGS) $(seek_OBJECTS) $(seek_LDADD) $(LIBS)
  67961. + $(LINK) $(seek_OBJECTS) $(seek_LDADD) $(LIBS)
  67962. sixteen-to-eight$(EXEEXT): $(sixteen_to_eight_OBJECTS) $(sixteen_to_eight_DEPENDENCIES)
  67963. @rm -f sixteen-to-eight$(EXEEXT)
  67964. - $(LINK) $(sixteen_to_eight_LDFLAGS) $(sixteen_to_eight_OBJECTS) $(sixteen_to_eight_LDADD) $(LIBS)
  67965. + $(LINK) $(sixteen_to_eight_OBJECTS) $(sixteen_to_eight_LDADD) $(LIBS)
  67966. testaupv$(EXEEXT): $(testaupv_OBJECTS) $(testaupv_DEPENDENCIES)
  67967. @rm -f testaupv$(EXEEXT)
  67968. - $(LINK) $(testaupv_LDFLAGS) $(testaupv_OBJECTS) $(testaupv_LDADD) $(LIBS)
  67969. + $(LINK) $(testaupv_OBJECTS) $(testaupv_LDADD) $(LIBS)
  67970. testchannelmatrix$(EXEEXT): $(testchannelmatrix_OBJECTS) $(testchannelmatrix_DEPENDENCIES)
  67971. @rm -f testchannelmatrix$(EXEEXT)
  67972. - $(LINK) $(testchannelmatrix_LDFLAGS) $(testchannelmatrix_OBJECTS) $(testchannelmatrix_LDADD) $(LIBS)
  67973. + $(LINK) $(testchannelmatrix_OBJECTS) $(testchannelmatrix_LDADD) $(LIBS)
  67974. testdouble$(EXEEXT): $(testdouble_OBJECTS) $(testdouble_DEPENDENCIES)
  67975. @rm -f testdouble$(EXEEXT)
  67976. - $(LINK) $(testdouble_LDFLAGS) $(testdouble_OBJECTS) $(testdouble_LDADD) $(LIBS)
  67977. + $(LINK) $(testdouble_OBJECTS) $(testdouble_LDADD) $(LIBS)
  67978. testfloat$(EXEEXT): $(testfloat_OBJECTS) $(testfloat_DEPENDENCIES)
  67979. @rm -f testfloat$(EXEEXT)
  67980. - $(LINK) $(testfloat_LDFLAGS) $(testfloat_OBJECTS) $(testfloat_LDADD) $(LIBS)
  67981. + $(LINK) $(testfloat_OBJECTS) $(testfloat_LDADD) $(LIBS)
  67982. testmarkers$(EXEEXT): $(testmarkers_OBJECTS) $(testmarkers_DEPENDENCIES)
  67983. @rm -f testmarkers$(EXEEXT)
  67984. - $(LINK) $(testmarkers_LDFLAGS) $(testmarkers_OBJECTS) $(testmarkers_LDADD) $(LIBS)
  67985. + $(LINK) $(testmarkers_OBJECTS) $(testmarkers_LDADD) $(LIBS)
  67986. transparency$(EXEEXT): $(transparency_OBJECTS) $(transparency_DEPENDENCIES)
  67987. @rm -f transparency$(EXEEXT)
  67988. - $(LINK) $(transparency_LDFLAGS) $(transparency_OBJECTS) $(transparency_LDADD) $(LIBS)
  67989. + $(LINK) $(transparency_OBJECTS) $(transparency_LDADD) $(LIBS)
  67990. twentyfour$(EXEEXT): $(twentyfour_OBJECTS) $(twentyfour_DEPENDENCIES)
  67991. @rm -f twentyfour$(EXEEXT)
  67992. - $(LINK) $(twentyfour_LDFLAGS) $(twentyfour_OBJECTS) $(twentyfour_LDADD) $(LIBS)
  67993. + $(LINK) $(twentyfour_OBJECTS) $(twentyfour_LDADD) $(LIBS)
  67994. twentyfour2$(EXEEXT): $(twentyfour2_OBJECTS) $(twentyfour2_DEPENDENCIES)
  67995. @rm -f twentyfour2$(EXEEXT)
  67996. - $(LINK) $(twentyfour2_LDFLAGS) $(twentyfour2_OBJECTS) $(twentyfour2_LDADD) $(LIBS)
  67997. + $(LINK) $(twentyfour2_OBJECTS) $(twentyfour2_LDADD) $(LIBS)
  67998. writeaiff$(EXEEXT): $(writeaiff_OBJECTS) $(writeaiff_DEPENDENCIES)
  67999. @rm -f writeaiff$(EXEEXT)
  68000. - $(LINK) $(writeaiff_LDFLAGS) $(writeaiff_OBJECTS) $(writeaiff_LDADD) $(LIBS)
  68001. + $(LINK) $(writeaiff_OBJECTS) $(writeaiff_LDADD) $(LIBS)
  68002. writealaw$(EXEEXT): $(writealaw_OBJECTS) $(writealaw_DEPENDENCIES)
  68003. @rm -f writealaw$(EXEEXT)
  68004. - $(LINK) $(writealaw_LDFLAGS) $(writealaw_OBJECTS) $(writealaw_LDADD) $(LIBS)
  68005. + $(LINK) $(writealaw_OBJECTS) $(writealaw_LDADD) $(LIBS)
  68006. writeavr$(EXEEXT): $(writeavr_OBJECTS) $(writeavr_DEPENDENCIES)
  68007. @rm -f writeavr$(EXEEXT)
  68008. - $(LINK) $(writeavr_LDFLAGS) $(writeavr_OBJECTS) $(writeavr_LDADD) $(LIBS)
  68009. + $(LINK) $(writeavr_OBJECTS) $(writeavr_LDADD) $(LIBS)
  68010. writeiff$(EXEEXT): $(writeiff_OBJECTS) $(writeiff_DEPENDENCIES)
  68011. @rm -f writeiff$(EXEEXT)
  68012. - $(LINK) $(writeiff_LDFLAGS) $(writeiff_OBJECTS) $(writeiff_LDADD) $(LIBS)
  68013. + $(LINK) $(writeiff_OBJECTS) $(writeiff_LDADD) $(LIBS)
  68014. writeircam$(EXEEXT): $(writeircam_OBJECTS) $(writeircam_DEPENDENCIES)
  68015. @rm -f writeircam$(EXEEXT)
  68016. - $(LINK) $(writeircam_LDFLAGS) $(writeircam_OBJECTS) $(writeircam_LDADD) $(LIBS)
  68017. + $(LINK) $(writeircam_OBJECTS) $(writeircam_LDADD) $(LIBS)
  68018. writenext$(EXEEXT): $(writenext_OBJECTS) $(writenext_DEPENDENCIES)
  68019. @rm -f writenext$(EXEEXT)
  68020. - $(LINK) $(writenext_LDFLAGS) $(writenext_OBJECTS) $(writenext_LDADD) $(LIBS)
  68021. + $(LINK) $(writenext_OBJECTS) $(writenext_LDADD) $(LIBS)
  68022. writenist$(EXEEXT): $(writenist_OBJECTS) $(writenist_DEPENDENCIES)
  68023. @rm -f writenist$(EXEEXT)
  68024. - $(LINK) $(writenist_LDFLAGS) $(writenist_OBJECTS) $(writenist_LDADD) $(LIBS)
  68025. + $(LINK) $(writenist_OBJECTS) $(writenist_LDADD) $(LIBS)
  68026. writeraw$(EXEEXT): $(writeraw_OBJECTS) $(writeraw_DEPENDENCIES)
  68027. @rm -f writeraw$(EXEEXT)
  68028. - $(LINK) $(writeraw_LDFLAGS) $(writeraw_OBJECTS) $(writeraw_LDADD) $(LIBS)
  68029. + $(LINK) $(writeraw_OBJECTS) $(writeraw_LDADD) $(LIBS)
  68030. writeulaw$(EXEEXT): $(writeulaw_OBJECTS) $(writeulaw_DEPENDENCIES)
  68031. @rm -f writeulaw$(EXEEXT)
  68032. - $(LINK) $(writeulaw_LDFLAGS) $(writeulaw_OBJECTS) $(writeulaw_LDADD) $(LIBS)
  68033. + $(LINK) $(writeulaw_OBJECTS) $(writeulaw_LDADD) $(LIBS)
  68034. writewave$(EXEEXT): $(writewave_OBJECTS) $(writewave_DEPENDENCIES)
  68035. @rm -f writewave$(EXEEXT)
  68036. - $(LINK) $(writewave_LDFLAGS) $(writewave_OBJECTS) $(writewave_LDADD) $(LIBS)
  68037. + $(LINK) $(writewave_OBJECTS) $(writewave_LDADD) $(LIBS)
  68038. mostlyclean-compile:
  68039. -rm -f *.$(OBJEXT)
  68040. @@ -517,22 +531,22 @@
  68041. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/writewave.Po@am__quote@
  68042. .c.o:
  68043. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  68044. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68045. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68046. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68047. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68048. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68049. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  68050. .c.obj:
  68051. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  68052. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68053. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  68054. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68055. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68056. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68057. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  68058. .c.lo:
  68059. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  68060. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68061. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68062. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  68063. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  68064. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68065. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  68066. @@ -543,54 +557,54 @@
  68067. clean-libtool:
  68068. -rm -rf .libs _libs
  68069. -distclean-libtool:
  68070. - -rm -f libtool
  68071. -uninstall-info-am:
  68072. -
  68073. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68074. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68075. unique=`for i in $$list; do \
  68076. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68077. done | \
  68078. - $(AWK) ' { files[$$0] = 1; } \
  68079. - END { for (i in files) print i; }'`; \
  68080. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68081. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68082. mkid -fID $$unique
  68083. tags: TAGS
  68084. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68085. $(TAGS_FILES) $(LISP)
  68086. - tags=; \
  68087. + set x; \
  68088. here=`pwd`; \
  68089. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68090. unique=`for i in $$list; do \
  68091. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68092. done | \
  68093. - $(AWK) ' { files[$$0] = 1; } \
  68094. - END { for (i in files) print i; }'`; \
  68095. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  68096. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68097. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68098. + shift; \
  68099. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68100. test -n "$$unique" || unique=$$empty_fix; \
  68101. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68102. - $$tags $$unique; \
  68103. + if test $$# -gt 0; then \
  68104. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68105. + "$$@" $$unique; \
  68106. + else \
  68107. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68108. + $$unique; \
  68109. + fi; \
  68110. fi
  68111. ctags: CTAGS
  68112. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68113. $(TAGS_FILES) $(LISP)
  68114. - tags=; \
  68115. - here=`pwd`; \
  68116. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68117. unique=`for i in $$list; do \
  68118. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68119. done | \
  68120. - $(AWK) ' { files[$$0] = 1; } \
  68121. - END { for (i in files) print i; }'`; \
  68122. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  68123. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68124. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68125. + test -z "$(CTAGS_ARGS)$$unique" \
  68126. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68127. - $$tags $$unique
  68128. + $$unique
  68129. GTAGS:
  68130. here=`$(am__cd) $(top_builddir) && pwd` \
  68131. - && cd $(top_srcdir) \
  68132. - && gtags -i $(GTAGS_ARGS) $$here
  68133. + && $(am__cd) $(top_srcdir) \
  68134. + && gtags -i $(GTAGS_ARGS) "$$here"
  68135. distclean-tags:
  68136. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68137. @@ -598,7 +612,8 @@
  68138. check-TESTS: $(TESTS)
  68139. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  68140. srcdir=$(srcdir); export srcdir; \
  68141. - list='$(TESTS)'; \
  68142. + list=' $(TESTS) '; \
  68143. + $(am__tty_colors); \
  68144. if test -n "$$list"; then \
  68145. for tst in $$list; do \
  68146. if test -f ./$$tst; then dir=./; \
  68147. @@ -607,49 +622,63 @@
  68148. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  68149. all=`expr $$all + 1`; \
  68150. case " $(XFAIL_TESTS) " in \
  68151. - *" $$tst "*) \
  68152. + *[\ \ ]$$tst[\ \ ]*) \
  68153. xpass=`expr $$xpass + 1`; \
  68154. failed=`expr $$failed + 1`; \
  68155. - echo "XPASS: $$tst"; \
  68156. + col=$$red; res=XPASS; \
  68157. ;; \
  68158. *) \
  68159. - echo "PASS: $$tst"; \
  68160. + col=$$grn; res=PASS; \
  68161. ;; \
  68162. esac; \
  68163. elif test $$? -ne 77; then \
  68164. all=`expr $$all + 1`; \
  68165. case " $(XFAIL_TESTS) " in \
  68166. - *" $$tst "*) \
  68167. + *[\ \ ]$$tst[\ \ ]*) \
  68168. xfail=`expr $$xfail + 1`; \
  68169. - echo "XFAIL: $$tst"; \
  68170. + col=$$lgn; res=XFAIL; \
  68171. ;; \
  68172. *) \
  68173. failed=`expr $$failed + 1`; \
  68174. - echo "FAIL: $$tst"; \
  68175. + col=$$red; res=FAIL; \
  68176. ;; \
  68177. esac; \
  68178. else \
  68179. skip=`expr $$skip + 1`; \
  68180. - echo "SKIP: $$tst"; \
  68181. + col=$$blu; res=SKIP; \
  68182. fi; \
  68183. + echo "$${col}$$res$${std}: $$tst"; \
  68184. done; \
  68185. + if test "$$all" -eq 1; then \
  68186. + tests="test"; \
  68187. + All=""; \
  68188. + else \
  68189. + tests="tests"; \
  68190. + All="All "; \
  68191. + fi; \
  68192. if test "$$failed" -eq 0; then \
  68193. if test "$$xfail" -eq 0; then \
  68194. - banner="All $$all tests passed"; \
  68195. + banner="$$All$$all $$tests passed"; \
  68196. else \
  68197. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  68198. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  68199. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  68200. fi; \
  68201. else \
  68202. if test "$$xpass" -eq 0; then \
  68203. - banner="$$failed of $$all tests failed"; \
  68204. + banner="$$failed of $$all $$tests failed"; \
  68205. else \
  68206. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  68207. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  68208. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  68209. fi; \
  68210. fi; \
  68211. dashes="$$banner"; \
  68212. skipped=""; \
  68213. if test "$$skip" -ne 0; then \
  68214. - skipped="($$skip tests were not run)"; \
  68215. + if test "$$skip" -eq 1; then \
  68216. + skipped="($$skip test was not run)"; \
  68217. + else \
  68218. + skipped="($$skip tests were not run)"; \
  68219. + fi; \
  68220. test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  68221. dashes="$$skipped"; \
  68222. fi; \
  68223. @@ -660,38 +689,45 @@
  68224. dashes="$$report"; \
  68225. fi; \
  68226. dashes=`echo "$$dashes" | sed s/./=/g`; \
  68227. - echo "$$dashes"; \
  68228. + if test "$$failed" -eq 0; then \
  68229. + echo "$$grn$$dashes"; \
  68230. + else \
  68231. + echo "$$red$$dashes"; \
  68232. + fi; \
  68233. echo "$$banner"; \
  68234. test -z "$$skipped" || echo "$$skipped"; \
  68235. test -z "$$report" || echo "$$report"; \
  68236. - echo "$$dashes"; \
  68237. + echo "$$dashes$$std"; \
  68238. test "$$failed" -eq 0; \
  68239. else :; fi
  68240. distdir: $(DISTFILES)
  68241. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  68242. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  68243. - list='$(DISTFILES)'; for file in $$list; do \
  68244. - case $$file in \
  68245. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  68246. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  68247. - esac; \
  68248. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68249. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68250. + list='$(DISTFILES)'; \
  68251. + dist_files=`for file in $$list; do echo $$file; done | \
  68252. + sed -e "s|^$$srcdirstrip/||;t" \
  68253. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68254. + case $$dist_files in \
  68255. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68256. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68257. + sort -u` ;; \
  68258. + esac; \
  68259. + for file in $$dist_files; do \
  68260. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68261. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68262. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68263. - dir="/$$dir"; \
  68264. - $(mkdir_p) "$(distdir)$$dir"; \
  68265. - else \
  68266. - dir=''; \
  68267. - fi; \
  68268. if test -d $$d/$$file; then \
  68269. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68270. + if test -d "$(distdir)/$$file"; then \
  68271. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68272. + fi; \
  68273. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68274. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68275. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68276. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68277. fi; \
  68278. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68279. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68280. else \
  68281. - test -f $(distdir)/$$file \
  68282. - || cp -p $$d/$$file $(distdir)/$$file \
  68283. + test -f "$(distdir)/$$file" \
  68284. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68285. || exit 1; \
  68286. fi; \
  68287. done
  68288. @@ -720,6 +756,7 @@
  68289. distclean-generic:
  68290. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68291. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68292. maintainer-clean-generic:
  68293. @echo "This command is intended for maintainers to use"
  68294. @@ -733,7 +770,7 @@
  68295. -rm -rf ./$(DEPDIR)
  68296. -rm -f Makefile
  68297. distclean-am: clean-am distclean-compile distclean-generic \
  68298. - distclean-libtool distclean-tags
  68299. + distclean-tags
  68300. dvi: dvi-am
  68301. @@ -741,18 +778,38 @@
  68302. html: html-am
  68303. +html-am:
  68304. +
  68305. info: info-am
  68306. info-am:
  68307. install-data-am:
  68308. +install-dvi: install-dvi-am
  68309. +
  68310. +install-dvi-am:
  68311. +
  68312. install-exec-am:
  68313. +install-html: install-html-am
  68314. +
  68315. +install-html-am:
  68316. +
  68317. install-info: install-info-am
  68318. +install-info-am:
  68319. +
  68320. install-man:
  68321. +install-pdf: install-pdf-am
  68322. +
  68323. +install-pdf-am:
  68324. +
  68325. +install-ps: install-ps-am
  68326. +
  68327. +install-ps-am:
  68328. +
  68329. installcheck-am:
  68330. maintainer-clean: maintainer-clean-am
  68331. @@ -773,19 +830,24 @@
  68332. ps-am:
  68333. -uninstall-am: uninstall-info-am
  68334. +uninstall-am:
  68335. +
  68336. +.MAKE: check-am install-am install-strip
  68337. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  68338. clean-generic clean-libtool clean-noinstPROGRAMS ctags \
  68339. distclean distclean-compile distclean-generic \
  68340. distclean-libtool distclean-tags distdir dvi dvi-am html \
  68341. html-am info info-am install install-am install-data \
  68342. - install-data-am install-exec install-exec-am install-info \
  68343. - install-info-am install-man install-strip installcheck \
  68344. + install-data-am install-dvi install-dvi-am install-exec \
  68345. + install-exec-am install-html install-html-am install-info \
  68346. + install-info-am install-man install-pdf install-pdf-am \
  68347. + install-ps install-ps-am install-strip installcheck \
  68348. installcheck-am installdirs maintainer-clean \
  68349. maintainer-clean-generic mostlyclean mostlyclean-compile \
  68350. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  68351. - tags uninstall uninstall-am uninstall-info-am
  68352. + tags uninstall uninstall-am
  68353. +
  68354. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68355. # Otherwise a system limit (for SysV at least) may be exceeded.
  68356. diff -Nur audiofile-0.2.7.orig/win32/Makefile.in audiofile-0.2.7/win32/Makefile.in
  68357. --- audiofile-0.2.7.orig/win32/Makefile.in 2010-03-22 06:45:51.000000000 +0100
  68358. +++ audiofile-0.2.7/win32/Makefile.in 2011-02-24 20:00:34.694802351 +0100
  68359. @@ -1,8 +1,9 @@
  68360. -# Makefile.in generated by automake 1.9.4 from Makefile.am.
  68361. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  68362. # @configure_input@
  68363. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  68364. -# 2003, 2004 Free Software Foundation, Inc.
  68365. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  68366. +# Inc.
  68367. # This Makefile.in is free software; the Free Software Foundation
  68368. # gives unlimited permission to copy and/or distribute it,
  68369. # with or without modifications, as long as this notice is preserved.
  68370. @@ -13,15 +14,12 @@
  68371. # PARTICULAR PURPOSE.
  68372. @SET_MAKE@
  68373. -srcdir = @srcdir@
  68374. -top_srcdir = @top_srcdir@
  68375. VPATH = @srcdir@
  68376. pkgdatadir = $(datadir)/@PACKAGE@
  68377. -pkglibdir = $(libdir)/@PACKAGE@
  68378. pkgincludedir = $(includedir)/@PACKAGE@
  68379. -top_builddir = ..
  68380. +pkglibdir = $(libdir)/@PACKAGE@
  68381. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  68382. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  68383. -INSTALL = @INSTALL@
  68384. install_sh_DATA = $(install_sh) -c -m 644
  68385. install_sh_PROGRAM = $(install_sh) -c
  68386. install_sh_SCRIPT = $(install_sh) -c
  68387. @@ -44,12 +42,11 @@
  68388. mkinstalldirs = $(install_sh) -d
  68389. CONFIG_HEADER = $(top_builddir)/config.h
  68390. CONFIG_CLEAN_FILES =
  68391. +CONFIG_CLEAN_VPATH_FILES =
  68392. SOURCES =
  68393. DIST_SOURCES =
  68394. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68395. ACLOCAL = @ACLOCAL@
  68396. -AMDEP_FALSE = @AMDEP_FALSE@
  68397. -AMDEP_TRUE = @AMDEP_TRUE@
  68398. AMTAR = @AMTAR@
  68399. AR = @AR@
  68400. AS = @AS@
  68401. @@ -68,56 +65,61 @@
  68402. CFLAGS = @CFLAGS@
  68403. CPP = @CPP@
  68404. CPPFLAGS = @CPPFLAGS@
  68405. -CXX = @CXX@
  68406. -CXXCPP = @CXXCPP@
  68407. -CXXDEPMODE = @CXXDEPMODE@
  68408. -CXXFLAGS = @CXXFLAGS@
  68409. CYGPATH_W = @CYGPATH_W@
  68410. DEFS = @DEFS@
  68411. DEPDIR = @DEPDIR@
  68412. DLLTOOL = @DLLTOOL@
  68413. -ECHO = @ECHO@
  68414. +DSYMUTIL = @DSYMUTIL@
  68415. +DUMPBIN = @DUMPBIN@
  68416. ECHO_C = @ECHO_C@
  68417. ECHO_N = @ECHO_N@
  68418. ECHO_T = @ECHO_T@
  68419. EGREP = @EGREP@
  68420. EXEEXT = @EXEEXT@
  68421. -F77 = @F77@
  68422. -FFLAGS = @FFLAGS@
  68423. +FGREP = @FGREP@
  68424. GREP = @GREP@
  68425. +INSTALL = @INSTALL@
  68426. INSTALL_DATA = @INSTALL_DATA@
  68427. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  68428. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  68429. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  68430. +LD = @LD@
  68431. LDFLAGS = @LDFLAGS@
  68432. LIBOBJS = @LIBOBJS@
  68433. LIBS = @LIBS@
  68434. LIBTOOL = @LIBTOOL@
  68435. +LIPO = @LIPO@
  68436. LN_S = @LN_S@
  68437. LTLIBOBJS = @LTLIBOBJS@
  68438. MAKEINFO = @MAKEINFO@
  68439. +MKDIR_P = @MKDIR_P@
  68440. +NM = @NM@
  68441. +NMEDIT = @NMEDIT@
  68442. OBJDUMP = @OBJDUMP@
  68443. OBJEXT = @OBJEXT@
  68444. +OTOOL = @OTOOL@
  68445. +OTOOL64 = @OTOOL64@
  68446. PACKAGE = @PACKAGE@
  68447. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  68448. PACKAGE_NAME = @PACKAGE_NAME@
  68449. PACKAGE_STRING = @PACKAGE_STRING@
  68450. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  68451. +PACKAGE_URL = @PACKAGE_URL@
  68452. PACKAGE_VERSION = @PACKAGE_VERSION@
  68453. PATH_SEPARATOR = @PATH_SEPARATOR@
  68454. RANLIB = @RANLIB@
  68455. +SED = @SED@
  68456. SET_MAKE = @SET_MAKE@
  68457. SHELL = @SHELL@
  68458. STRIP = @STRIP@
  68459. TEST_BIN = @TEST_BIN@
  68460. VERSION = @VERSION@
  68461. +abs_builddir = @abs_builddir@
  68462. +abs_srcdir = @abs_srcdir@
  68463. +abs_top_builddir = @abs_top_builddir@
  68464. +abs_top_srcdir = @abs_top_srcdir@
  68465. ac_ct_CC = @ac_ct_CC@
  68466. -ac_ct_CXX = @ac_ct_CXX@
  68467. -ac_ct_F77 = @ac_ct_F77@
  68468. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  68469. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  68470. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  68471. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  68472. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  68473. am__include = @am__include@
  68474. am__leading_dot = @am__leading_dot@
  68475. am__quote = @am__quote@
  68476. @@ -129,6 +131,7 @@
  68477. build_cpu = @build_cpu@
  68478. build_os = @build_os@
  68479. build_vendor = @build_vendor@
  68480. +builddir = @builddir@
  68481. datadir = @datadir@
  68482. datarootdir = @datarootdir@
  68483. docdir = @docdir@
  68484. @@ -147,6 +150,7 @@
  68485. libexecdir = @libexecdir@
  68486. localedir = @localedir@
  68487. localstatedir = @localstatedir@
  68488. +lt_ECHO = @lt_ECHO@
  68489. mandir = @mandir@
  68490. mkdir_p = @mkdir_p@
  68491. oldincludedir = @oldincludedir@
  68492. @@ -156,8 +160,12 @@
  68493. psdir = @psdir@
  68494. sbindir = @sbindir@
  68495. sharedstatedir = @sharedstatedir@
  68496. +srcdir = @srcdir@
  68497. sysconfdir = @sysconfdir@
  68498. target_alias = @target_alias@
  68499. +top_build_prefix = @top_build_prefix@
  68500. +top_builddir = @top_builddir@
  68501. +top_srcdir = @top_srcdir@
  68502. EXTRA_DIST = \
  68503. all.dsp \
  68504. all.dsw \
  68505. @@ -196,14 +204,14 @@
  68506. @for dep in $?; do \
  68507. case '$(am__configure_deps)' in \
  68508. *$$dep*) \
  68509. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  68510. - && exit 0; \
  68511. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  68512. + && { if test -f $@; then exit 0; else break; fi; }; \
  68513. exit 1;; \
  68514. esac; \
  68515. done; \
  68516. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  68517. - cd $(top_srcdir) && \
  68518. - $(AUTOMAKE) --gnu win32/Makefile
  68519. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  68520. + $(am__cd) $(top_srcdir) && \
  68521. + $(AUTOMAKE) --gnu win32/Makefile
  68522. .PRECIOUS: Makefile
  68523. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  68524. @case '$?' in \
  68525. @@ -221,16 +229,13 @@
  68526. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68527. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  68528. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68529. +$(am__aclocal_m4_deps):
  68530. mostlyclean-libtool:
  68531. -rm -f *.lo
  68532. clean-libtool:
  68533. -rm -rf .libs _libs
  68534. -
  68535. -distclean-libtool:
  68536. - -rm -f libtool
  68537. -uninstall-info-am:
  68538. tags: TAGS
  68539. TAGS:
  68540. @@ -239,29 +244,32 @@
  68541. distdir: $(DISTFILES)
  68542. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  68543. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  68544. - list='$(DISTFILES)'; for file in $$list; do \
  68545. - case $$file in \
  68546. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  68547. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  68548. - esac; \
  68549. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68550. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68551. + list='$(DISTFILES)'; \
  68552. + dist_files=`for file in $$list; do echo $$file; done | \
  68553. + sed -e "s|^$$srcdirstrip/||;t" \
  68554. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68555. + case $$dist_files in \
  68556. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68557. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68558. + sort -u` ;; \
  68559. + esac; \
  68560. + for file in $$dist_files; do \
  68561. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68562. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68563. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68564. - dir="/$$dir"; \
  68565. - $(mkdir_p) "$(distdir)$$dir"; \
  68566. - else \
  68567. - dir=''; \
  68568. - fi; \
  68569. if test -d $$d/$$file; then \
  68570. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68571. + if test -d "$(distdir)/$$file"; then \
  68572. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68573. + fi; \
  68574. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68575. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68576. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68577. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68578. fi; \
  68579. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68580. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68581. else \
  68582. - test -f $(distdir)/$$file \
  68583. - || cp -p $$d/$$file $(distdir)/$$file \
  68584. + test -f "$(distdir)/$$file" \
  68585. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68586. || exit 1; \
  68587. fi; \
  68588. done
  68589. @@ -289,6 +297,7 @@
  68590. distclean-generic:
  68591. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68592. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68593. maintainer-clean-generic:
  68594. @echo "This command is intended for maintainers to use"
  68595. @@ -299,7 +308,7 @@
  68596. distclean: distclean-am
  68597. -rm -f Makefile
  68598. -distclean-am: clean-am distclean-generic distclean-libtool
  68599. +distclean-am: clean-am distclean-generic
  68600. dvi: dvi-am
  68601. @@ -307,18 +316,38 @@
  68602. html: html-am
  68603. +html-am:
  68604. +
  68605. info: info-am
  68606. info-am:
  68607. install-data-am:
  68608. +install-dvi: install-dvi-am
  68609. +
  68610. +install-dvi-am:
  68611. +
  68612. install-exec-am:
  68613. +install-html: install-html-am
  68614. +
  68615. +install-html-am:
  68616. +
  68617. install-info: install-info-am
  68618. +install-info-am:
  68619. +
  68620. install-man:
  68621. +install-pdf: install-pdf-am
  68622. +
  68623. +install-pdf-am:
  68624. +
  68625. +install-ps: install-ps-am
  68626. +
  68627. +install-ps-am:
  68628. +
  68629. installcheck-am:
  68630. maintainer-clean: maintainer-clean-am
  68631. @@ -337,17 +366,21 @@
  68632. ps-am:
  68633. -uninstall-am: uninstall-info-am
  68634. +uninstall-am:
  68635. +
  68636. +.MAKE: install-am install-strip
  68637. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  68638. distclean distclean-generic distclean-libtool distdir dvi \
  68639. dvi-am html html-am info info-am install install-am \
  68640. - install-data install-data-am install-exec install-exec-am \
  68641. - install-info install-info-am install-man install-strip \
  68642. + install-data install-data-am install-dvi install-dvi-am \
  68643. + install-exec install-exec-am install-html install-html-am \
  68644. + install-info install-info-am install-man install-pdf \
  68645. + install-pdf-am install-ps install-ps-am install-strip \
  68646. installcheck installcheck-am installdirs maintainer-clean \
  68647. maintainer-clean-generic mostlyclean mostlyclean-generic \
  68648. - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  68649. - uninstall-info-am
  68650. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  68651. +
  68652. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68653. # Otherwise a system limit (for SysV at least) may be exceeded.